Delete no-longer-needed tests.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7079c36c
CV
12002-09-28 Corinna Vinschen <vinschen@redhat.com>
2
3 * sh-tdep.c (sh_use_struct_convention): Use definition according to ABI.
4 (sh_push_arguments): Store in register with correct endianess.
5 (sh_default_store_return_value): Ditto.
6 (sh_gdbarch_init): Set sizeof long double to 8.
7
975ac915
MK
82002-09-27 Mark Kettenis <kettenis@gnu.org>
9
10 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
11 Fix some whitespace problems.
12
9bbe19fb
DC
132002-09-27 David Carlton <carlton@math.stanford.edu>
14
15 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
16 (mcore-tdep.o): Ditto.
17 (ns32k-tdep.o): Ditto.
18 (ns32knbsd-tdep.o): Ditto.
19 (sh3-rom.o): Ditto.
20 (vax-tdep.o): Ditto.
21 * cris-tdep.c: #include "gdb_string.h"
22 * mcore-tdep.c: Ditto.
23 * ns32k-tdep.c: Ditto.
24 * ns32knbsd-tdep.c: Ditto.
25 * sh3-rom.c: Ditto.
26 * vax-tdep.c: Ditto.
27
43b2fdc7
DC
282002-09-27 David Carlton <carlton@math.stanford.edu>
29
30 * config/djgpp/fnchange.lst: Add entries for
31 gdb/testsuite/gdb.c++/m-static files.
32
e8cfbbd9
JW
332002-09-27 Jim Wilson <wilson@redhat.com>
34
35 * MAINTAINERS: Add myself to the Write After Approval list.
36
43b2fdc7 372002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
38
39 * mips-tdep.c (find_proc_desc): Initialize startaddr.
40
41
9f3b7f07
AC
422002-09-26 Andrew Cagney <ac131313@redhat.com>
43
44 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
45 frame.
46
11269d7e
AC
472002-09-26 Andrew Cagney <ac131313@redhat.com>
48
49 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
50 (rs6000_struct_return_address): Delete variable.
51 (rs6000_store_struct_return): Update.
52 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
53 deprecated_extract_struct_value_address.
54 (rs6000_frame_align): New function.
55 (rs6000_gdbarch_init): Set frame_align.
56
f15ab4a7
AC
572002-09-26 Andrew Cagney <ac131313@redhat.com>
58
59 From Grace Sainsbury <graces@redhat.com>:
60 * Makefile.in (gdbtk-main.o): New target.
61 (gdb.o): New target.
62 (main_h): Define.
63 (main.o): Update dependencies.
64 (gdb$(EXEEXT)): Add gdb.o.
65 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
66 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
67 (SUBDIR_GDBTK_CLEAN): Set.
68 (install-gdbtk): Install the insight binary.
69 (uninstall-gdbtk): New target.
70 (all-gdbtk, clean-gdbtk): New rule.
71 * top.c (use_windows): Default to zero.
72 * main.c: Include "main.h".
73 (main): Delete.
74 (struct captured_main_args): Delete.
75 (gdb_main): New function.
76 * main.h: New file.
77 * gdb.c: New File.
78
e36180d7
AC
792002-09-25 Andrew Cagney <cagney@redhat.com>
80
81 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
82 (frame_map_regnum_to_name): New function.
83 (frame_map_name_to_regnum): New function.
84 * frame.h (frame_map_name_to_regnum): Declare.
85 (frame_map_regnum_to_name): Declare.
86 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
87 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
88 * parse.c: Do not include "builtin-regs.h".
89 (target_map_name_to_register): Delete function.
90 (write_dollar_variable): Use frame_map_name_to_regnum.
91 * parser-defs.h (target_map_name_to_register): Delete declaration.
92 * expprint.c: Include "frame.h".
93 (print_subexp): Use frame_map_regnum_to_name.
94 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
95 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
96
8b69000d
AC
972002-09-25 Andrew Cagney <ac131313@redhat.com>
98
99 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
100 wasn't saved, and the next innermost frame is a dummy, return the
101 dummy frame's link register.
102
046ca86a
JB
1032002-09-24 Jim Blandy <jimb@redhat.com>
104
105 Fix from Paul Breed:
106 * main.c (captured_main): Add a `break' after the case for 'b'.
107
94b66fa7
KS
1082002-09-24 Keith Seitz <keiths@redhat.com>
109
110 * varobj.c (c_type_of_child): Use get_target_type instead
111 of TYPE_TARGET_TYPE.
112
c214a6fd
FN
1132002-09-22 Fernando Nasser <fnasser@redhat.com>
114
53cb0458
FN
115 * source.c (get_current_or_default_source_symtab_and_line): Remove
116 function.
117 (set_default_source_symtab_and_line): New function. Attempts to
118 determine a source file to list lines from if one is not currently
119 defined.
120 (get_current_source_symtab_and_line): Initialize sal.pc and
121 sal.end fields.
122 (set_current_source_symtab_and_line): Mark argument as const.
123 * source.h: Update declarations and comments.
124 * linespec.c (decode_line_1): Replace call to removed routine above.
125 * stack.c (print_frame_info_base): Ditto.
126 * cli/cli-cmds.c (edit_command): Ditto.
127 (list_command): Ditto.
128
1292002-09-22 Fernando Nasser <fnasser@redhat.com>
130
131 * source.c (get_current__or_default_source_symtab_and_line): Initialize
132 sal.pc and sal.end fields.
c214a6fd
FN
133 (get_current_or_default_source_symtab_and_line): Ditto.
134 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
135 so we do not cause a new source symtab to be searched for (reverting an
136 unintentional change from the 2002-09-20 patch).
137 * scm-lang.c (scm_unpac): Ditto.
138
cc3b68a5
AC
1392002-09-21 Andrew Cagney <cagney@redhat.com>
140
141 * complaints.c (symfile_explanations): Remove new-line from
142 ``isolated_message''.
143 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
144 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
145
5835abe7
NC
1462002-09-20 Nick Clifton <nickc@redhat.com>
147
148 * NEWS: Announce that V850EA ISA is no longer supported.
149 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
150
a15ef5f5
DC
1512002-09-20 David Carlton <carlton@math.stanford.edu>
152
06ba1b39
DC
153 * Makefile.in (c-lang.o): Correct dependencies.
154 (utils.o): Gather dependencies.
155 (charset.o): Move.
a15ef5f5
DC
156 * c-lang.c: #include "gdb_string.h"
157
87885426
FN
1582002-09-20 Fernando Nasser <fnasser@redhat.com>
159
160 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
161 * cli/cli-cmds.c (list_command): New function. Implements the new
162 cli edit command.
163 (_init_cli_cmds): Add new command definition.
164 * gdb.1: Document edit command.
165 * doc/gdb.texinfo: Document edit command.
166
1672002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
168
169 * source.c: Make global variables current_source_symtab and
170 current_source_line static.
171 (list_command): Moved to cli/cli-cmds.c.
172 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
173 (get_first_line_listed): New accessor function.
174 (get_lines_to_list): New accessor function.
175 (get_current_source_symtab_and_line): New function. Retrieves the
176 position in the source code that we consider current.
177 (get_current_or_default_source_symtab_and_line): New function.
178 Like the above but attempts to determine a default position if one
179 is not currently defined.
180 (set_current_source_symtab_and_line): New function. Sets the source
181 code position considered current and returns the previously set one.
182 (clear_current_source_symtab_and_line): Reset stored information about
183 a current source line.
184 (_initialize_source): Remove registration for the "list" command and
185 its alias.
186 * source.h: Add declarations for the new functions above.
187 * symtab.h: Remove declarations for the global variables mentioned
188 above.
189 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
190 obtain current source line.
191 * linespec.c (decode_line_1): Ditto.
192 * macroscope.c (default_macro_scope): Ditto.
193 * scm-lang.c (scm_unpac): Ditto.
194 * stack.c (print_frame_info_base): Ditto.
195 * symfile.c (clear_symtab_users): Ditto.
196 * symtab.c (decode_line_spec): Ditto.
197 * cli/cli-cmds.c (list_command): Moved here from source.c.
198 (ambiguous_line_spec): Moved here from source.c.
199 (_init_cli_cmds): Add definition for "list" and its alias.
200 * Makefile.in: Update dependencies.
201
ddd216ea
CV
2022002-09-20 Corinna Vinschen <vinschen@redhat.com>
203
204 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
205 with what gcc thinks is correct.
206
6d305052
CV
2072002-09-20 Corinna Vinschen <vinschen@redhat.com>
208
209 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
210 multiple register push instruction.
211
234b45d4
KB
2122002-09-19 Jim Blandy <jimb@redhat.com>
213
214 Add support for distinct host and target character sets.
215 * charset.c, charset.h: New files.
216 * c-exp.y: #include "charset.h".
217 (yylex): Convert character and string literals to the target
218 character set, before returning them as the semantic value of the
219 token.
220 * c-lang.c: #include "charset.h".
221 (c_emit_char): Use charset-specific methods to recognize
222 characters with backslash escape forms, to decide which characters
223 to print literally and which to print using numeric escape
224 sequences, and to convert target characters to host characters
225 before printing.
226 * utils.c: #include "charset.h".
227 (no_control_char_error): New function.
228 (parse_escape): Use charset-specific methods to recognize
229 backslash escapes, parse `control character' notation, and convert
230 characters from the host character set to the target character set.
231 * configure.in: Set the default host character set.
232 Check where to find iconv, and what its argument types might be.
233 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
234 * Makefile.in (SFILES): List charset.c.
235 (COMMON_OBS): List charset.o.
236 (charset.o): New rule.
237 (charset_h): New header dependency variable.
238 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
239 (LIBICONV): New variable, set by configure.
240 (CLIBS): Include $(LIBICONV) here.
241 * aclocal.m4, config.in, configure: Regenerated.
242
525d6a61
JB
2432002-09-19 Joel Brobecker <brobecker@gnat.com>
244
245 * ada-exp.y: Add missing semicolons to end rules. Fixes a
246 bison 1.35 warning.
247
3ed93867
RE
2482002-09-19 Richard Earnshaw <rearnsha@arm.com>
249
250 * gdb_mbuild.sh: New file.
251
437666f8
AC
2522002-09-19 Andrew Cagney <ac131313@redhat.com>
253
254 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
255
389e51db
AC
2562002-09-18 Andrew Cagney <ac131313@redhat.com>
257
258 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
259 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
260 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
261 valops.c, value.h: Revert previous change.
262
3b4efeaa
MS
2632002-09-18 Michael Snyder <msnyder@redhat.com>
264
265 Preliminary support for Objective-C:
266 * defs.h (language_objc): New enum value.
267 (puts_filtered_tabular): Declaration only, exported from utils.c.
268 (skip_quoted): Delete, declared in completer.h.
269 * c-exp.y: Include completer.h.
270 * p-exp.y: Ditto.
271 * jv-exp.y: Ditto.
272 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
273 New operator enum values.
274 * language.h (CAST_IS_CONVERSION): Test for language_objc.
275 * language.c (binop_result_type): Handle language_objc case.
276 (integral_type, character_type, string_type, boolean_type,
277 structured_type, binop_type_check): Ditto.
278 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
279 (struct objc_specific): Add to general_symbol_info.
280 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
281 (SYMBOL_DEMANGLED_NAME): Handle objc case.
282 * parser-defs.h (struct objc_class_str): New struct type.
283 (start_msglist, end_msglist, add_msglist): Declaration only,
284 exported from objc-lang.c.
285 * value.h (value_of_local, value_nsstring,
286 call_function_by_hand_expecting_type): Exported from valops.c.
287 * valops.c (find_function_addr): Export.
288 (call_function_by_hand_expecting_type): New function.
289 (value_of_local): New function.
290 * symfile.c (init_filename_language_table): Add ".m" extension
291 for Objective-C.
292 * utils.c (puts_filtered_tabular): New function.
293 (fprintf_symbol_filtered): Add objc demangling support (disabled).
294 (set/show demangle): Extend help-string to refer to ObjC.
295 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
296 * stabsread.c (symbol_reference_defined): Objective-C symbols
297 may contain colons: make allowances when scanning stabs strings
298 for colons.
299 (objc_find_colon): New function.
300 * printcmd.c (address_info): If language == objc then print
301 "self" instead of "this".
302 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
303 OP_NSSTRING, and OP_SELF.
304 (prefixify_subexp): Ditto.
305 * source.c (print_source_lines): Mention objc in comment.
306 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
307 method names.
308
b9caf505
AC
3092002-09-18 Andrew Cagney <ac131313@redhat.com>
310
311 * complaints.h: Update copyright.
312 (struct complaints): Declare.
313 (struct complaint): Make `message' constant.
314 (internal_complaint): Declare.
315 (complaint): Declare.
316 (complaint_root): Delete declaration.
317 (symfile_complaints): Delete declaration.
318 (struct complaints): Add opaque declaration.
319 (clear_complaints): Add a complaints parameter.
320 * complaints.c: Update copyright.
321 (enum complaint_series): Define.
322 (complaint_root): Delete.
323 (struct complaints): Define.
324 (complaint_sentinel, symfile_complaint_book): New variables.
325 (symfile_explanations, symfile_complaints): New variables.
326 New variables.
327 (get_complaints): New function.
328 (vcomplaint): New function.
329 (complaint): New function.
330 (internal_complaint): New function.
331 (complain): Call vcomplain with symfile_complaint.
332 (clear_complaints): Rewrite.
333 (_initialize_complaints): Use add_setshow_command.
334 * Makefile.in (complaints.o): Update dependencies.
335 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
336 to call to clear_complaints.
337 (new_symfile_objfile, reread_symbols): Ditto.
338 (oldsyms_complaint): Delete.
339 (empty_symtab_complaint, unknown_option_complaint): Delete.
340 (free_named_symtabs): Use complaint instead of complain.
341
d2e6263c
MS
3422002-09-18 Michael Snyder <msnyder@redhat.com>
343
5fb2031a
AC
344 Contributed by Apple Computer, Inc. Merged with current sources
345 by Adam Fedor <fedor@doc.com> [cagney].
346
d2e6263c
MS
347 * objc-lang.c: First clean-up round: comments, indentation.
348 * objc-lang.h: Ditto.
349 * objc-lang.y: Ditto.
350
dec43320
AC
3512002-09-18 Andrew Cagney <ac131313@redhat.com>
352
353 * maint.c (maintenance_internal_error): Print the parameter as the
354 error message.
355 (maintenance_internal_warning): New function.
356 (_initialize_maint_cmds): Add command `maint internal-warning'.
357
358 * defs.h (internal_warning, internal_vwarning): Declare.
359 * utils.c (struct internal_problem): Define.
360 (internal_vproblem): New function.
361 (internal_warning): New function.
362 (internal_vwarning): New function.
363 (internal_warning_problem, internal_error_problem): New variables.
364 (internal_verror): Just call internal_vproblem.
365
b81654f1
MS
3662002-09-18 Michael Snyder <msnyder@redhat.com>
367
368 * objc-lang.c: New file, support for Objective-C.
369 Preliminary check-in, not yet integrated into gdb.
370 * objc-lang.h: New file.
371 * objc-exp.y: New file.
372
0542c381
AC
3732002-09-18 Andrew Cagney <ac131313@redhat.com>
374
7bda5e4a
AC
375 * infrun.c (signal_stop_update): Convert definition to ISO C.
376 (signal_print_update): Ditto.
377 (signal_pass_update): Ditto.
378 * inflow.c (terminal_save_ours): Ditto.
379
5247b418
AC
380 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
381 comments.
382
fc60962c
AC
383 * config/djgpp/fnchange.lst: Handle name clashes between
384 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
385 bfd/coff-tic80.c.
386
0542c381
AC
387 * i386-linux-tdep.h: Fix tipo.
388
5b924b9b
AF
3892002-09-18 Adam Fedor <fedor@gnu.org>
390
391 * MAINTAINERS: Add myself to the Write After Approval list.
392
5afc051b
JB
3932002-09-18 Jim Blandy <jimb@redhat.com>
394
395 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
396 texthigh and textlow to reader-specific structs caused
397 objfile_relocate to miss them. This is fixable, but the work that
398 the change was supposed to prepare GDB for never got done anyway.
399
eb944380
DC
4002002-09-18 David Carlton <carlton@math.stanford.edu>
401
402 * MAINTAINERS: Alphabetize Write After Approval list.
403
948e66d9
DJ
4042002-09-18 Daniel Jacobowitz <drow@mvista.com>
405
406 Fix PR gdb/709
407 * values.c (value_static_field): Call read_var_value.
408
dc604539
AC
4092002-09-18 Andrew Cagney <ac131313@redhat.com>
410
411 * valops.c (hand_function_call): Align the initial stack pointer
412 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
413 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
414 return value.
415 * mips-tdep.c (mips_frame_align): New function.
416 (mips_gdbarch_init): Set frame_align.
417 * gdbarch.sh (FRAME_ALIGN): New method.
418 * gdbarch.h, gdbarch.c: Re-generate.
419
cb7e422f
ML
4202002-09-18 Michal Ludvig <mludvig@suse.cz>
421
422 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
423 registers.
424
a094c6fb
AC
4252002-09-17 Andrew Cagney <ac131313@redhat.com>
426
427 * NEWS: Mention that MIPS $fp behavior changed.
428 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
429 reference to FP_REGNUM.
430 (mipsnbsd_cannot_store_register): Ditto.
431 * mips-linux-nat.c: Update copyright.
432 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
433 (mips_linux_cannot_store_register): Ditto.
434 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
435 * config/mips/tm-mips.h: Update copyright.
436 (FP_REGNUM): Delete macro.
437 (MIPS_REGISTER_NAMES): Replace "fp" with "".
438 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
439 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
440 (mips_r3041_reg_names, mips_r3051_reg_names)
441 (mips_r3081_reg_names): Replace "fp" with "".
442 Fix PR gdb/480.
443
45cf40d1
TR
4442002-09-17 Theodore A. Roth <troth@verinet.com>
445
446 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
447 generic_read_register_dummy() (PR gdb/703).
448 (avr_push_return_address): #if 0 out unused vars.
449 (avr_gdbarch_init): Enable use of avr_push_return_address().
450
c7e701b5
MS
4512002-09-17 Michael Snyder <msnyder@redhat.com>
452
d76ba2a5 453 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
454 RTE will take care of it.
455
20bcf01c
AC
4562002-09-17 Andrew Cagney <ac131313@redhat.com>
457
458 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
459 invalid, return SP_REGNUM.
460
009a9971 4612002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
462
463 * mips-tdep.c (mips_pop_frame): Read saved values of floating
464 point registers without sign extension.
465
135c175f
AC
4662002-09-17 Andrew Cagney <cagney@redhat.com>
467
468 * blockframe.c (deprecated_read_register_dummy): Rename
469 generic_read_register_dummy.
470 * frame.c (frame_unwind_signed_register): New function.
471 (frame_unwind_unsigned_register): New function.
472 * frame.h (frame_unwind_signed_register): Declare.
473 (frame_unwind_unsigned_register): Declare.
474 (deprecated_read_register_dummy): Rename
475 generic_read_register_dummy.
476
477 * h8300-tdep.c (h8300_frame_chain): Update.
478 (h8300_frame_saved_pc): Update.
479 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
480 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
481 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
482 (s390_frame_chain): Update.
483 * v850-tdep.c (v850_find_callers_reg): Update.
484 (v850_frame_saved_pc): Update.
485 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
486 (m32r_find_callers_reg): Update.
487 (m32r_frame_saved_pc): Update.
488 * sh-tdep.c (sh_find_callers_reg): Update.
489 (sh64_get_saved_pr): Update.
490 (sh_init_extra_frame_info): Update.
491 (sh_init_extra_frame_info): Update.
492 (sh64_init_extra_frame_info): Update.
493 (sh64_init_extra_frame_info): Update.
494 * mcore-tdep.c (mcore_find_callers_reg): Update.
495 (mcore_frame_saved_pc): Update.
496 (mcore_init_extra_frame_info): Update.
497 * i386-tdep.c (i386_frame_saved_pc): Update.
498 * ia64-tdep.c (ia64_frame_saved_pc): Update.
499 (ia64_init_extra_frame_info): Update.
500 (ia64_init_extra_frame_info): Update.
501 * d10v-tdep.c (d10v_frame_saved_pc): Update.
502 * cris-tdep.c (cris_init_extra_frame_info): Update.
503 * avr-tdep.c (avr_frame_chain): Update.
504 (avr_init_extra_frame_info): Update.
505 (avr_frame_saved_pc): Update.
506 * arm-tdep.c (arm_find_callers_reg): Update.
507 (arm_init_extra_frame_info): Update.
508 (arm_frame_saved_pc): Update.
509
a741e514
TT
5102002-09-17 Tom Tromey <tromey@redhat.com>
511
512 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
513 is "'".
514
d1a8e808
CV
5152002-09-17 Corinna Vinschen <vinschen@redhat.com>
516
517 * MAINTAINERS: Remove "non multi-arched" text from h8300.
518 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
519 NEXT_PROLOGUE_INSN.
520 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
521 NEXT_PROLOGUE_INSN.
522
d9025a18
JB
5232002-09-16 Joel Brobecker <brobecker@gnat.com>
524
525 * osfsolib.c: Remove file, replaced by solib-osf.c.
526 * Makefile.in: Remove compilation rules for osfsolib.c.
527
1b2ef1b6
DC
5282002-09-16 David Carlton <carlton@math.stanford.edu>
529
530 * cp-valprint.c (cp_print_class_method): Correct args to
531 check_stub_method_group.
532
928e48af
CV
5332002-09-16 Corinna Vinschen <vinschen@redhat.com>
534
535 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
536 `set architecture'. Unify naming convention of functions.
537 (h8300_skip_prologue): Improve prologue analysis.
538 (h8300_push_arguments): Rewritten to more closely match GCC's
539 bizarre argument-passing behavior, along with the comment describing
540 said behavior.
541 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
542 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
543 sim, remote-e7000.c, remote-hms.c and remote.c
544
5e3397bb
MK
5452002-09-15 Mark Kettenis <kettenis@gnu.org>
546
547 * i386-tdep.c (gdb_print_insn_i386): Removed.
548 (i386_print_insn): New function.
549 (i386_gdbarch_init): Set print_insn to i386_print_insns.
550 (_initialize_i386_tdep): Don't initialize tm_print_insn and
551 tm_print_insn_info.
552
f710f4fc
MK
5532002-09-14 Mark Kettenis <kettenis@gnu.org>
554
555 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
556 zero.
557
db54fef4
CV
5582002-09-14 Corinna Vinschen <vinschen@redhat.com>
559
560 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
561 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
562 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
563
2becadee
CF
5642002-09-13 Christopher Faylor <cgf@redhat.com>
565
566 * win32-nat.c (child_create_inferior): Honor 'tty' command.
567
de17c821
DJ
5682002-09-13 Daniel Jacobowitz <drow@mvista.com>
569
570 * gdbtypes.c (check_stub_method): Make static.
571 (check_stub_method_group): New function.
572 * gdbtypes.h: Update prototypes.
573 * cp-support.c: New file.
574 * cp-support.h: New file.
575
576 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
577 (update_method_name_from_physname): New function.
578 (read_member_functions): Correct method names for operators
579 and v3 constructors/destructors. Separate v2 constructors and
580 destructors.
581 * Makefile.in (stabsread.o): Update dependencies.
582 (SFILES): Add cp-support.c.
583 (COMMON_OBS): Add cp-support.o.
584 (cp_support_h, cp-support.o): Add.
585
586 * cp-valprint.c (cp_print_class_method): Call
587 check_stub_method_group instead of check_stub_method. Remove
588 extraneous QUITs.
589 * p-valprint.c (pascal_object_print_class_method): Likewise.
590 * valops.c (search_struct_method): Likewise.
591 (find_method_list, value_struct_elt_for_reference): Likewise.
592
e76cff22
AC
5932002-09-13 Andrew Cagney <cagney@redhat.com>
594
595 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
596 * gdbarch.h, gdbarch.c: Regenerate.
597
905abb3f
AC
5982002-09-13 Andrew Cagney <ac131313@redhat.com>
599
600 * frame.c (find_saved_register): Delete function.
601 * frame.h (find_saved_register): Delete declaration.
602 Fix PR gdb/631.
603
64159455
AC
604Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
605
606 * mips-tdep.c (read_next_frame_reg): Re-hack using
607 frame_register_unwind.
608
795e1e11
AC
609Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
610
611 * mips-tdep.c (mips_get_saved_register): Re-hack using
612 frame_register_unwind.
613
5720643c
JB
6142002-09-12 Joel Brobecker <brobecker@gnat.com>
615
616 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
617 vector. Will be useful for Interix.
618 * gdbarch.h, gdbarch.c: Regenerate.
619
620 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
621 name of the malloc function by NAME_OF_MALLOC.
622
3bada2a2
JB
6232002-09-12 Joel Brobecker <brobecker@gnat.com>
624
625 * value.h (find_function_in_inferior): Add const keyword to
626 one of the parameters. Allows us to invoke this function with
627 a const char *.
628 * valops.c (find_function_in_inferior): Likewise.
629
3db26b01
JB
6302002-09-12 Joel Brobecker <brobecker@gnat.com>
631
632 * exec.c (xfer_memory): Fix compilation warning with old versions
633 of GCC.
634 * tracepoint.c (trace_find_tracepoint_command): Likewise.
635
17c5ed2c
DC
6362002-09-12 David Carlton <carlton@math.stanford.edu>
637
638 * symtab.h: Run through gdb_indent.h.
639 Add 2002 to Copyright year list.
640
ecd1107e
AM
6412002-09-12 Alan Modra <amodra@bigpond.net.au>
642
643 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
644 mach constants.
645 * MAINTAINERS: Add myself to write after approval list.
646
e64f66d1
JB
6472002-09-11 J. Brobecker <brobecker@gnat.com>
648
649 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
650
f9395794
JB
6512002-09-11 J. Brobecker <brobecker@gnat.com>
652
653 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
654 Interix.
655
1a303dec
MS
6562002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
657
658 * procfs.c (do_detach): Clear current signal, not just fault.
659 Corrects problem with breakpoint trap signal leaking to detached
660 process on Tru64.
661
c0219d42
MS
6622002-09-10 Michael Snyder <msnyder@redhat.com>
663
664 * buildsym.c (finish_block): Protect against null pointer.
665
9d84ac84
AC
6662002-09-10 Andrew Cagney <cagney@redhat.com>
667
668 * infcmd.c (default_print_registers_info): Send all output to
669 ``file'' instead of ``gdb_stdout''.
670
77d8f2b4
MS
6712002-09-10 Michael Snyder <msnyder@redhat.com>
672
673 * mips-tdep.c (mips_extract_struct_value_address): Make val a
674 LONGEST, and use signed register read (addresses are sign-
675 extended for mips).
676
99656a61
SC
6772002-09-10 Stephane Carrez <stcarrez@nerim.fr>
678
679 * event-loop.c (gdb_do_one_event): Make public.
680 * event-loop.h (gdb_do_one_event): Declare.
681
da12f4d8
JL
6822002-09-10 Jeff Law <law@redhat.com>
683
684 * infttrace.c (child_resume): Simplify and rework to avoid
685 TT_PROC_CONTINUE.
686
d0aee0c4
FF
6872002-09-09 Fred Fish <fnf@intrinsity.com>
688
689 * printcmd.c (print_scalar_formatted): "len" is the number of
690 target bytes, NOT the number of target bits.
691
7cb3ec5e
EZ
6922002-09-09 Elena Zannoni <ezannoni@redhat.com>
693
694 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
695 * top.c (init_main): Set rl_terminal_name.
696
4dc81987
AS
6972002-09-08 Aidan Skinner <aidan@velvet.net>
698
699 * ada-lang.c (ada_array_bound, ada_type_match,
700 _initialize_ada_language): Fix K&R definitions.
701 * ada-tasks.c (get_current_task): Fix K&R definitions.
702 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
703
842330b4
CF
7042002-09-07 Christopher Faylor <cgf@redhat.com>
705
706 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
707 Add XP.
708
43156d82
MK
7092002-09-06 Mark Kettenis <kettenis@gnu.org>
710
66da5fd8
MK
711 * i386-tdep.c (i386_register_virtual_type,
712 i386_register_convertible, i386_register_convert_to_virtual,
713 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
714 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
715 (i386_gdbarch_init): Fix comment. Add comments on calls that set
716 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
717 Don't set push_arguments twice.
718
4b218c18
MK
719 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
720 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
721 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
722 sigtramp_end to NULL.
723 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
724 defines.
725 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
726
4cc314d5
MK
727 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
728 whitespace.
729
43156d82
MK
730 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
731 * gdbarch.h, gdbarch.c: Re-generate.
732 * blockframe.c (find_pc_sect_partial_function): Convert to use
733 SIGTRAMP_START_P predicate.
734
6672060b
MS
7352002-09-05 Michael Snyder <msnyder@redhat.com>
736
a90c3637
MS
737 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
738 generic_dummy_frame method and old method. Also distinguish
739 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 740 (arm_extract_return_value): Use new regcache method.
a90c3637 741
6672060b
MS
742 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
743 adjustment that doesn't conform to the ABI.
744 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
745 saved regcache, not from current regcache.
746
299ffc64
AC
7472002-09-05 Andrew Cagney <ac131313@redhat.com>
748
749 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
750 * README: Update.
751
a3a2ee65
JT
7522002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
753
754 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
755 if arm_apcs_32 is false.
756
2bc7eea9
AC
7572002-09-04 Andrew Cagney <ac131313@redhat.com>
758
759 GDB 5.3 branch created.
760
8a55a7c5
TR
7612002-09-03 Theodore A. Roth <troth@verinet.com>
762
763 * gdb/avr-tdep.c (avr_gdbarch_init): Use
764 generic_unwind_get_saved_register.
765
e26fb1d7
DC
7662002-09-03 David Carlton <carlton@math.stanford.edu>
767
768 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
769 argument (PR gdb/653). Update call to smash_to_method_type.
770 (read_structure_scope): Update call to dwarf2_add_member_fn.
771
30d52491
ML
7722002-09-03 Michal Ludvig <mludvig@suse.cz>
773
774 * x86-64-linux-tdep.c: Include gdb_string.h
775 * x86-64-linux-nat.c: Ditto.
776
06891d83
JT
7772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
778
779 * ada-exp.y (yyname, yyrule): Remap global variables that appear
780 when YYDEBUG is set to 1.
781 * c-exp.y: Likewise.
782 * f-exp.y: Likewise.
783 * jv-exp.y: Likewise.
784 * m2-exp.y: Likewise.
785 * p-exp.y: Likewise.
786
7d400e77
JT
7872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
788
789 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
790 dependency list.
791 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
792 solib_svr4_fetch_link_map_offsets to
793 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
794 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
795 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
796 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
797 solib-svr4.o, and solib-legacy.o.
798 * config/i386/tm-nbsd.h: Include solib.h.
799
704a27c4
JT
8002002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
801
802 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
803 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
804 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
805 comment noting that this needs its own target configuration.
806 * config/i386/nbsd.mt: New file.
807 * config/i386/nbsdaout.mt: Remove.
808 * config/i386/nbsdelf.mt: Ditto.
809 * config/i386/tm-nbsdaout.h: Ditto.
810
d66198e1
JT
8112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
812
813 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
814 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
815 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
816 tdep->sigtramp_end.
817 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
818 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
819 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
820
3cac699e
JT
8212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
822
823 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
824 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
825 * i386-tdep.h (i386bsd_init_abi): New prototype.
826 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
827 function declaration.
828 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
829 for NetBSD-a.out or NetBSD-ELF.
830 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
831 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
832 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
833 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
834 and nbsd-tdep.h.
835 (i386nbsd_pc_in_sigtramp): New function.
836 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
837 i386nbsd_pc_in_sigtramp.
838 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
839 and i386nbsdelf_init_abi OS ABI handlers.
840 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
841 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
842
7010ca0a
MK
8432002-09-02 Mark Kettenis <kettenis@gnu.org>
844
845 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
846 registers if the target really has them.
847
6dd93b72
JT
8482002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
849
850 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
851 than nbsd-tdep.h.
852
2ca8ae21
JT
8532002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
854
855 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
856 list.
857 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
858 (alphanbsd_skip_sigtramp_frame): New functions.
859 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
860 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
861 to alphanbsd_sigcontext_addr.
862
3d9b49b0
JT
8632002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
864
865 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
866 list.
867 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
868 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
869 nbsd_pc_in_sigtramp.
870 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
871 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
872 * nbsd-tdep.c: Include gdb_string.h.
873 (nbsd_pc_in_sigtramp): New function.
874 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
875 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
876 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
877 ppcnbsd_pc_in_sigtramp.
878 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
879 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
880 shnbsd_pc_in_sigtramp.
881 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
882 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
883 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
884
c860120c
PM
8852002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
886
887 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
888 watchpoints to NULL.
889 (insert_breakpoints): set val field of watchpoints if NULL.
890
891
c7612d53
JB
8922002-08-29 Jim Blandy <jimb@redhat.com>
893
894 * symtab.c (lookup_symbol_aux): In the cases where we find a
895 minimal symbol of an appropriate name and use its address to
896 select a symtab to read and search, use `name' (as passed to us)
897 as the demangled name when searching the symtab's global and
898 static blocks, not the minsym's name.
899
66609862
KS
9002002-08-29 Keith Seitz <keiths@redhat.com>
901
902 * stack.c (print_frame_info_base): Always set current_source_symtab
903 and current_source_line.
904
151fefe2
JB
9052002-08-29 Donn Terry <donnte@microsoft.com>
906
907 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
908
bfb3754e
KS
9092002-08-28 Keith Seitz <keiths@redhat.com>
910
911 * stack.c (select_frame): Add FIXME concerning selected-frame
912 events.
913 (select_frame_command): Send selected-frame-level-changed
914 event notification, but only if the level actually changed.
915 (up_silently_base): Add selected-frame-level-changed event
916 notification.
917 (down_silently_base): Likewise.
918
e822a2a0
AC
9192002-08-28 Andrew Cagney <ac131313@redhat.com>
920
921 * Makefile.in: Update dependencies for all gdb/*.c files.
922
309367d4
TT
9232002-08-27 Tom Tromey <tromey@redhat.com>
924
925 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
926 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
927 Update dependencies.
928 * i387-tdep.c: Include gdb_string.h.
929 * osabi.c: Likewise.
930 * i386-linux-nat.c: Likewise.
931 * lin-lwp.c: Likewise.
932 * ax-gdb.c: Likewise.
933 * signals/signals.c: Likewise.
934 * jv-valprint.c: Likewise.
935 * p-lang.c: Likewise.
936 * c-valprint.c: Likewise.
937 * cp-abi.c: Likewise.
938
e1507482
EZ
9392002-08-27 Elena Zannoni <ezannoni@redhat.com>
940
941 * cli/cli-script.h (copy_command_lines): Export.
942 * breakpoint.c: Include cli/cli-script.h.
943 * Makefile.in (breakpoint.o): Update dependencies.
944
c6510018
MS
9452002-08-26 Michael Snyder <msnyder@redhat.com>
946
947 * breakpoint.c (insert_breakpoints): Protect all references
948 to 'process_warning'. Shorten long lines.
949
c2b8ed2c
MS
9502002-08-26 Joel Brobecker <brobecker@gnat.com>
951
952 * cli/cli-script.c (copy_command_lines): New function.
953 * defs.h (copy_command_lines): Export.
954 * testsuite/gdb.base/commands.exp: New tests for commands
955 attached to a temporary breakpoint, and for commands that
956 delete the breakpoint they are attached to.
957
9582002-08-26 Michael Snyder <msnyder@redhat.com>
959
960 * breakpoint.c (bpstat_stop_status): Instead of copying the
961 pointer to the breakpoint commands struct, make a new copy
962 of the struct and point to that.
963 (bpstat_clear): Free the commands struct.
964 (bpstat_clear_actions): Free the commands struct.
965 (bpstat_do_actions): Free the command actions. Also execute
966 the local cleanups, instead of deleting them.
967 (delete_breakpoint): Leave the commands field of the bpstat
968 chain alone -- it will be freed later.
969
64b84175
KB
9702002-08-26 Kevin Buettner <kevinb@redhat.com>
971
972 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
973 deleted in 2002-08-20 commit. This function is still used by
974 ppc-linux-nat.c.
975
55970da6
KS
9762002-08-26 Keith Seitz <keiths@redhat.com>
977
978 * gdb-events.sh: Add selected-frame-level-changed event.
979 * gdb-events.c: Regenerated.
980 * gdb-events.h: Regenerated.
981
a790ad35
SC
9822002-08-26 Stephane Carrez <stcarrez@nerim.fr>
983
984 Fix PR gdb/393:
985 * inflow.c (terminal_save_ours): New function to save terminal
986 settings.
987 * inferior.h (terminal_save_ours): Declare.
988 * target.c (debug_to_terminal_save_ours): New function.
989 (cleanup_target): Defaults to_terminal_save_ours.
990 (update_current_target): Inherit to_terminal_save_ours.
991 (setup_target_debug): Set to_terminal_save_ours.
992 * target.h (target_terminal_save_ours): New to save terminal settings.
993 (target_ops): New member to_terminal_save_ours.
994 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
995 * hpux-thread.c (init_hpux_thread_ops): Likewise.
996 * inftarg.c (init_child_ops): Likewise.
997 * m3-nat.c (init_m3_ops): Likewise.
998 * procfs.c (init_procfs_ops): Likewise.
999 * wince.c (init_child_ops): Likewise.
1000 * win32-nat.c (init_child_ops): Likewise.
1001 * sol-thread.c (init_sol_thread_ops): Likewise.
1002
c00dcbe9
MK
10032002-08-26 Mark Kettenis <kettenis@gnu.org>
1004
3d7f4f49
MK
1005 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1006 use regcache_* functions.
1007 (i386_gdbarch_init): Set store_return_value instead of
1008 deprecated_store_return_value.
1009
c00dcbe9
MK
1010 * regcache.c (regcache_raw_write_signed,
1011 regcache_raw_write_unsigned): New functions.
1012 * regcache.h (regcache_raw_write_signed,
1013 regcache_raw_write_unsigned): New prototypes.
1014
0e0d15ca
AC
10152002-08-25 Andrew Cagney <ac131313@redhat.com>
1016
1017 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1018 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1019 source file dependencies. Cleanup corresponding generator rules.
1020
d3b22ed5
AC
10212002-08-25 Andrew Cagney <ac131313@redhat.com>
1022
1023 * regcache.h (register_offset_hack): Declare.
1024 (regcache_cooked_read_using_offset_hack): Declare.
1025 (regcache_cooked_write_using_offset_hack): Declare.
1026
1027 * regcache.c (register_offset_hack): New function.
1028 (regcache_cooked_read_using_offset_hack): New function.
1029 (regcache_cooked_write_using_offset_hack): New function.
1030 (regcache_dump): Check that the registers, according to their
1031 offset, are packed hard against each other.
1032 (cooked_xfer_using_offset_hack): New function.
1033
bb425013
AC
10342002-08-25 Andrew Cagney <ac131313@redhat.com>
1035
1036 * regcache.c (struct regcache_descr): Add field register_type.
1037 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1038 in as a parameter
1039 (init_regcache_descr): Initialize register_type. Pass the descr
1040 to init_legacy_regcache_descr. Use register_type instead of
1041 REGISTER_VIRTUAL_TYPE.
1042 (register_type): New function.
1043 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1044 * regcache.h (register_type): Declare.
1045
d0403e00
AC
10462002-08-25 Andrew Cagney <ac131313@redhat.com>
1047
1048 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1049 instead of deprecated_store_return_value. Fix fallout from
1050 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1051
0ed04cce
AC
10522002-08-25 Andrew Cagney <ac131313@redhat.com>
1053
1054 * regcache.c (max_register_size): New function.
1055 (init_legacy_regcache_descr): Ensure that max_register_size is
1056 large enough for REGISTER_VIRTUAL_SIZE.
1057 * regcache.h (max_register_size): Declare.
1058
46d79c04
AC
10592002-08-24 Andrew Cagney <ac131313@redhat.com>
1060
1061 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1062 store_return_value.
1063 (e500_extract_return_value): Change type of valbuf pointer to
1064 void.
1065
853c7bd0
MK
10662002-08-24 Mark Kettenis <kettenis@gnu.org>
1067
cd87e769
MK
1068 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1069 workaround.
1070
853c7bd0
MK
1071 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1072 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1073 long long) to prevent compiler warning on 64-bit systems.
1074
ebba8386
AC
10752002-08-23 Andrew Cagney <cagney@redhat.com>
1076
1077 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1078 (DEPRECATED_STORE_RETURN_VALUE): New method.
1079 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1080 * gdbarch.h, gdbarch.c: Re-generate.
1081
1082 * values.c (set_return_value): Pass current_regcache to
1083 STORE_RETURN_VALUE.
1084 * arch-utils.h (legacy_store_return_value): Declare.
1085 * arch-utils.c (legacy_store_return_value): New function.
1086 (legacy_extract_return_value): Update parameters.
1087
1088 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1089 STORE_RETURN_VALUE.
1090 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1091 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1092 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1093 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1094 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1095 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1096 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1097 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1098 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1099 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1100
1101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1102 * i386-tdep.c (i386_extract_return_value): Update.
1103 * arch-utils.c (legacy_extract_return_value): Update.
1104 * frv-tdep.c (frv_gdbarch_init): Update.
1105 * cris-tdep.c (cris_gdbarch_init): Update.
1106 * d10v-tdep.c (d10v_gdbarch_init): Update.
1107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1108 * m68k-tdep.c (m68k_gdbarch_init): Update.
1109 * mcore-tdep.c (mcore_gdbarch_init): Update.
1110 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1111 * s390-tdep.c (s390_gdbarch_init): Update.
1112 * sparc-tdep.c (sparc_gdbarch_init): Update.
1113 * sh-tdep.c (sh_gdbarch_init): Update.
1114 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1115 * v850-tdep.c (v850_gdbarch_init): Update.
1116 * avr-tdep.c (avr_gdbarch_init): Update.
1117 * ia64-tdep.c (ia64_gdbarch_init): Update.
1118 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1119 * vax-tdep.c (vax_gdbarch_init): Update.
1120 * alpha-tdep.c (alpha_gdbarch_init): Update.
1121 * arm-tdep.c (arm_gdbarch_init): Update.
1122 * mips-tdep.c (mips_gdbarch_init): Update.
1123 * i386-tdep.c (i386_gdbarch_init): Update.
1124
5bd8c6d0
AC
11252002-08-23 Andrew Cagney <ac131313@redhat.com>
1126
1127 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1128 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1129
e73e1724
MK
11302002-08-24 Mark Kettenis <kettenis@gnu.org>
1131
1132 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1133 problems.
1134
3e6564e1
JB
11352002-08-23 Joel Brobecker <brobecker@gnat.com>
1136
1137 * infrun.c (handle_inferior_event): Move a comment outside of a
1138 function call, in order to avoid indent reformatting this part
1139 of the code in an unreadable way.
1140
81d0cc19
GS
11412002-08-23 Grace Sainsbury <graces@redhat.com>
1142
1143 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1144 when breakpoints fail. Move general breakpoint error messages to
1145 insert_breakpoints.
1146 * breakpoint.c (insert_breakpoints): Change warnings when
1147 breakpoints are nto inserted to specify the type. Remove call to
1148 memory_error when hardware breakpoints can't be inserted. Remove
1149 multiple calls to warning so all messages are sent to the user at
1150 once.
1151 (delete_breakpoints): Make insert error messsages more explicit.
1152
17574093
DJ
11532002-08-23 Daniel Jacobowitz <drow@mvista.com>
1154
1155 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1156 gdbserver/ChangeLog.
1157
8acc2935
MK
11582002-08-23 Mark Kettenis <kettenis@gnu.org>
1159
dfe01d39
MK
1160 * i386-tdep.c: Include "objfiles.h".
1161 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1162 skip_trampoline_code.
1163 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1164 (CPLUS_MARKER): Define to '.'.
1165
8acc2935
MK
1166 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1167 member.
1168 (linux_corefile_thread_callback): Increase args->num_notes.
1169 (linux_make_note_section): Initialize thread_args.num_notes, and
1170 use it to determine whether notes for any threads were created.
1171
151fefe2 11722002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1173
1174 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1175 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1176 and PCUNKILL.
1177 (write_with_trace): Conditionalize out the switch branch handling
1178 PCSHOLD if the corresponding macro is not defined. Likewise for
1179 PRSABORT and PRSTOP.
1180 This change will be needed by the Interix port.
1181
e1507482
EZ
11822002-08-22 Elena Zannoni <ezannoni@redhat.com>
1183
1184 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1185 write_register wherever possible instead of manipulating the
1186 register bytes directly.
1187 Assign VALUE_CONTENTS to a variable and use that.
1188 The GPR numbers are now dependent on the architecture.
1189
96ff0de4
EZ
11902002-08-22 Elena Zannoni <ezannoni@redhat.com>
1191
1192 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1193 ev_offset fields.
1194 (skip_prologue): Add support for BookE/e500 instructions.
1195 (e500_extract_return_value): New function.
1196 (frame_get_saved_regs): Add support for saving ev registers and
1197 pseudo gpr's.
1198 (e500_store_return_value): New function.
1199 (rs6000_gdbarch_init): Move up default intializations of
1200 deprecated_extract_return_value and store_return_value. Overwrite
1201 init of store_return_value with e500 specific version.
1202 Set extract_return_value for e500.
1203
fbefca5b
EZ
12042002-08-22 Elena Zannoni <ezannoni@redhat.com>
1205
1206 * blockframe.c (generic_call_dummy_register_unwind): Use
1207 regcache_cooked_read to catch cases in which the variable is
1208 stored in a pseudo register.
1209
4d210288
AC
12102002-08-22 Andrew Cagney <cagney@redhat.com>
1211
1212 * NEWS: Mention that the i960 has been made obsolete.
1213 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1214 i960-tdep.c
1215 (remote-nrom.o): Obsolete target.
1216 (remote-nindy.o, i960-tdep.o): Ditto.
1217 * remote-nrom.c: Make file obsolete.
1218 * remote-nindy.c, remote-vx960.c: Ditto.
1219 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1220 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1221 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1222 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1223 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1224 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1225 i960-*-vxworks* obsolete.
1226 * MAINTAINERS: Note that the i960 is obsolete.
1227
6c0c456d
CV
12282002-08-21 Corinna Vinschen <vinschen@redhat.com
1229
1230 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1231 detach to allow reinitialization.
1232
9f9d12b3
AC
12332002-08-22 Andrew Cagney <ac131313@redhat.com>
1234
1235 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1236 attempt).
1237
ebeb39fe
JB
12382002-08-22 Jim Blandy <jimb@redhat.com>
1239
1240 * coffread.c (coff_symfile_read): Don't try to read the line
1241 number table from disk if the image file doesn't have a symbol
1242 table; we'll never actually look at the info anyway, and Windows
1243 ships DLL's with bogus file offsets for the line number data.
1244
5bf1c677
EZ
12452002-08-21 Elena Zannoni <ezannoni@redhat.com>
1246
1247 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1248 an e500 executable.
1249
71b8ef93
MS
12502002-08-21 Michael Snyder <msnyder@redhat.com>
1251
1252 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1253 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1254 (DEFAULT_MIPS_TYPE): Delete unused macro.
1255 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1256 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1257
d174216d
JB
12582002-08-21 Jim Blandy <jimb@redhat.com>
1259
1260 * valops.c (value_cast): Simplify and correct logic for doing a
1261 static cast from a pointer to a base class to a pointer to a
1262 derived class.
1263
0ab7a791
AC
12642002-08-21 Andrew Cagney <ac131313@redhat.com>
1265
1266 * infcmd.c (default_print_registers_info): Replace
1267 do_registers_info.
1268 (registers_info): Use gdbarch_print_registers_info instead of
1269 DO_REGISTERS_INFO.
1270 * inferior.h (default_print_registers_info): Replace
1271 do_registers_info.
1272 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1273 (DO_REGISTERS_INFO): Change to a predicate function.
1274 * gdbarch.h, gdbarch.c: Regenerate.
1275
e23792cc
KS
12762002-08-21 Keith Seitz <keiths@redhat.com>
1277
1278 * gdb-events.sh: Add target-changed event.
1279 * gdb-events.c: Regenerated.
1280 * gdb-events.c: Regenerated.
1281 * valops.c (value_assign): Add target-changed event notification
1282 to inlval_register, lval_memory, and lval_reg_frame_relative.
1283
9fb14e79
JB
12842002-08-21 Joel Brobecker <brobecker@gnat.com>
1285
1286 * NEWS: Add an entry regarding the improvement of the next/step
1287 operation on Alpha Tru64 multi-processor machines.
1288
6d39a69f
AC
12892002-08-21 Andrew Cagney <ac131313@redhat.com>
1290
72acd513
AC
1291 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1292 directores.
342af04b 1293 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1294 * Makefile.in (install-gdbtk): Move to install section.
1295 (rdi-share/libangsd.a): Move to end of file.
1296
fa5f27c7
AC
12972002-08-19 Andrew Cagney <ac131313@redhat.com>
1298
1299 * frame.c (frame_register_unwind): When a register, set addrp to
1300 the register's byte.
1301
5a89d8aa
MS
13022002-08-20 Michael Snyder <msnyder@redhat.com>
1303
1304 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1305 used locally, so move them from the target machine header to here.
1306 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1307 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1308 Make static.
1309 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1310
822e978b
AC
13112002-08-20 Andrew Cagney <cagney@redhat.com>
1312
1313 * NEWS: Mention that the Apollo line was made obsolete.
1314 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1315 m68*-hp-hpux* obsolete.
1316 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1317 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1318 * buildsym.c (make_blockvector): Make static.
1319 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1320 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1321 (ALLDEPFILES): Remove dstread.c.
1322 (dstread.o): Obsolete make rule.
1323 * dstread.c: Makefile obsolete.
1324 * dst.h: Ditto.
1325 * config/m68k/hp300hpux.mt: Ditto.
1326 * config/m68k/hp300hpux.mh: Ditto.
1327 * config/m68k/hp300bsd.mt: Ditto.
1328 * config/m68k/hp300bsd.mh: Ditto.
1329 * config/m68k/apollo68b.mt: Ditto.
1330 * config/m68k/apollo68v.mh: Ditto.
1331 * config/m68k/apollo68b.mh: Ditto.
1332
e41b17f0
MS
13332002-08-20 Michael Snyder <msnyder@redhat.com>
1334
1335 * mips-tdep.c (mips_in_return_stub): Make static.
1336 (mips_gdbarch_init): Set in_solib_return_trampoline.
1337 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1338
d50355b6
MS
13392002-08-20 Michael Snyder <msnyder@redhat.com>
1340
1341 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1342 * gdbarch.c, gdbarch.h: Regenerate.
1343 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1344 Add.
1345 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1346
757a7cc6
MS
13472002-08-20 Michael Snyder <msnyder@redhat.com>
1348
1349 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1350 (mips_gdbarch_init): Set skip_trampoline_code,
1351 in_solib_call_trampoline.
1352 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1353 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1354
c8001721
EZ
13552002-08-20 Elena Zannoni <ezannoni@redhat.com>
1356
1357 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1358
1359 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1360 vector type for ev registers.
1361 (e500_pseudo_register_read): New function.
1362 (e500_pseudo_register_write): New function.
1363 (e500_dwarf2_reg_to_regnum): New function.
1364 (PPC_UISA_NOFP_SPRS): New macro.
1365 (PPC_EV_REGS): New macro.
1366 (PPC_GPRS_PSEUDO_REGS): New macro.
1367 (registers_e500): New register set for e500.
1368 (variants): Add e500 variant.
1369 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1370 before setting architectural dependent variations. Initialize ev
1371 registers numbers. Add case for e500 architecture. Set the
1372 number of pseudo registers.
1373
64366f1c
EZ
13742002-08-20 Elena Zannoni <ezannoni@redhat.com>
1375
1376 * rs6000-tdep.c: Clean up comments.
1377
7e78f0ca
AC
13782002-08-20 Andrew Cagney <cagney@redhat.com>
1379
1380 * h8300-tdep.c: Re-indent file.
1381
697f7479
JB
13822002-08-20 Jim Blandy <jimb@redhat.com>
1383
1384 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1385 default for this.
697f7479 1386
e86ae29f
KS
13872002-08-20 Keith Seitz <keiths@redhat.com>
1388
1389 * breakpoints.c (watch_command_1): Use internal breakpoint
1390 when setting a watchpoint_scope breakpoint.
1391
216b504f
EZ
13922002-08-20 Elena Zannoni <ezannoni@redhat.com>
1393
1394 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1395 (build_builtin_type_vec64i): Ditto.
1396 (build_builtin_type_vec128): Ditto.
1397 (build_builtin_type_vec128i): Ditto.
1398
f7ab6ec6
MS
13992002-08-19 Michael Snyder <msnyder@redhat.com>
1400
1401 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1402 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1403 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1404 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1405 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1406 CALL_DUMMY_ADDRESS): Delete.
1407 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1408 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1409 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1410 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1411 push_return_address.
1412 (mips_register_raw_size, mips_eabi_use_struct_convention,
1413 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1414 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1415 mips_init_extra_frame_info, mips_eabi_push_arguments,
1416 mips_n32n64_push_arguments, mips_push_return_address,
1417 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1418 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1419
b5d1566e
MS
14202002-08-19 Michael Snyder <msnyder@redhat.com>
1421
1422 * mips-tdep.c (mips_frame_num_args): New function.
1423 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1424 frame_saved_pc, frame_args_address, frame_locals_address,
1425 frame_num_args, and frame_args_skip.
1426 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1427 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1428 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1429 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1430
2f1488ce
MS
14312002-08-20 Michael Snyder <msnyder@redhat.com>
1432
1433 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1434 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1435 * mips-tdep.c (mips_store_struct_return): New function.
1436 (mips_extract_struct_value_address): New function.
1437 (mips_gdbarch_init): Set store_struct_return and
1438 extract_struct_value_address.
1439
41ff2da1
DC
14402002-08-20 David Carlton <carlton@math.stanford.edu>
1441
1442 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1443 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1444 (read_file_scope): Check that line_header is nonzero before
1445 decoding macro information.
1446
e5451d58
MK
14472002-08-20 Mark Kettenis <kettenis@gnu.org>
1448
1449 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1450 flag the general-purpose registers as floating-point on targets
1451 that don't support the floating-point registers.
1452
4a6daafa
EZ
14532002-08-20 Elena Zannoni <ezannoni@redhat.com>
1454
1455 * rs6000-tdep.c (altivec_register_p): Delete.
1456 (rs6000_do_altivec_registers): Delete.
1457 (rs6000_altivec_registers_info): Delete.
1458 (rs6000_do_registers_info): Delete.
1459 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1460 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1461
ab4327e0
EZ
14622002-08-20 Elena Zannoni <ezannoni@redhat.com>
1463
1464 * infcmd.c (do_registers_info): Print vector registers in hex
1465 format only.
1466 (print_vector_info): Check that printing registers
1467 makes sense.
1468 (print_float_info): Ditto.
1469
cb1d2653
AC
14702002-08-20 Andrew Cagney <ac131313@redhat.com>
1471
1472 * mips-tdep.c (mips_gdbarch_init): Update.
1473 (mips_o32_extract_return_value): Rewrite.
1474 (mips_o32_store_return_value): Rewrite.
1475 (mips_o32_xfer_return_value): New function.
1476 (mips_xfer_register): Tweak debug print message. Allow for
1477 buf_offset when dumping the value transfered.
1478
dfc3d9b2
AC
14792002-08-20 Andrew Cagney <ac131313@redhat.com>
1480
1481 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1482 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1483 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1484 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1485 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1486
7807aa61
MS
14872002-08-14 Michael Snyder <msnyder@redhat.com>
1488
1489 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1490
489461e2
EZ
14912002-08-19 Elena Zannoni <ezannoni@redhat.com>
1492
1493 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1494 register.
1495 (P): New macro to define a register as a pseudo register.
1496 (R, R4, R8, R16, FR32, R64, R0): Updated.
1497 (struct variant): Add new fields for number of pseudo registers
1498 and number of total registers.
1499 (tot_num_registers): New macro replacing....
1500 (num_registers): ...deleted macro.
1501 (num_registers): New function.
1502 (num_pseudo_registers): New function.
1503 (variants): Update all variants to intialize new fields correctly.
1504 Postpone initialization of number of pseudo regs and real regs.
1505 (init_variants): New function.
1506 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1507 registers offsets.
1508
fcaffe4c
DC
15092002-08-19 David Carlton <carlton@math.stanford.edu>
1510
2c2738a0
DC
1511 * valops.c (search_struct_field): Change error message to treat
1512 return value of 0 from value_static_field as meaning that field is
1513 optimized out.
1514 (value_struct_elt_for_reference): Ditto.
1515 * values.c (value_static_field): Treat an unresolved location the
1516 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1517 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1518 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1519 * MAINTAINERS: Add self to Write After Approval list.
1520
88658117
AC
15212002-08-19 Andrew Cagney <ac131313@redhat.com>
1522
1523 * mips-tdep.c (mips_xfer_register): New function.
1524 (mips_n32n64_extract_return_value): Rewrite.
1525 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1526 instead of deprecated_extract_return_value.
1527
21283beb
EZ
15282002-08-19 Elena Zannoni <ezannoni@redhat.com>
1529
1530 * rs6000-tdep.c (TDEP): Delete macro.
1531 (branch_dest): Replace use of TDEP macro with its body.
1532 (rs6000_pop_frame): Ditto.
1533 (rs6000_push_arguments): Ditto.
1534 (rs6000_skip_trampoline_code): Ditto.
1535 (rs6000_frame_saved_pc): Ditto.
1536 (rs6000_frame_chain): Ditto.
1537 (rs6000_register_name): Ditto.
1538 (rs6000_register_byte): Ditto.
1539 (rs6000_register_raw_size): Ditto.
1540 (rs6000_register_virtual_type): Ditto.
1541 (rs6000_register_convertible): Ditto.
1542 (rs6000_convert_from_func_ptr_addr): Ditto.
1543
bf072999
DJ
15442002-08-19 Daniel Jacobowitz <drow@mvista.com>
1545
1546 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1547 conditionally.
1548 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1549 MIPS_LINUX_JB_ELEMENT_SIZE.
1550 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1551 for MAX_REGISTER_RAW_SIZE arrays.
1552 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1553 MIPS_LINUX_JB_ELEMENT_SIZE.
1554
9b949a49
PM
15552002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1556
1557 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1558
6d3e79c6
AS
15592002-08-19 Aidan Skinner <aidan@velvet.net>
1560
1561 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1562 ada-valprint.c ada-tasks.c.
1563 (YYFILES): Add ada-exp.y.
1564 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1565 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1566 (ada-exp.tab.o): New target.
1567
06c0b04e
AC
15682002-08-18 Andrew Cagney <ac131313@redhat.com>
1569
1570 * regcache.c (regcache_xfer_part): New function.
1571 (regcache_raw_read_part): New function.
1572 (regcache_raw_write_part): New function.
1573 (regcache_cooked_read_part): New function.
1574 (regcache_cooked_write_part): New function.
1575 * regcache.h (regcache_raw_read_part): Declare.
1576 (regcache_raw_write_part): Declare.
1577 (regcache_cooked_read_part): Declare.
1578 (regcache_cooked_write_part): Declare.
1579
92d1e331
DJ
15802002-08-18 Daniel Jacobowitz <drow@mvista.com>
1581
1582 * remote.c (remote_open_1): Add async_p.
1583 (remote_async_open_1): Delete.
1584 (open_remote_target): Delete.
1585 (remote_open, extended_remote_open): Update calls to remote_open_1.
1586 (remote_async_open, extended_remote_async_open): Call
1587 remote_open_1 instead of remote_async_open_1.
1588
247055de
MK
15892002-08-19 Mark Kettenis <kettenis@gnu.org>
1590
1591 * blockframe.c: Fix a few coding standard violations.
1592
641eda39
MK
15932002-08-19 Mark Kettenis <kettenis@gnu.org>
1594
0b717710
MK
1595 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1596 here from ...
1597 * config/i386/tm-i386sco5.h: ... here. File removed.
1598 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1599
26d28e12 1600 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1601 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1602 (TM_FILE): Set to tm-i386.h.
1603 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1604 * config/i386/tm-i386v.h: Remove file.
1605 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1606 instead of "i386/tm-i386v.h".
1607 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1608 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1609 "i386/tm-i386v.h".
1610 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1611 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1612 "i386/tm-i386.h".
1613
d4e0bab4
MK
16142002-08-18 Mark Kettenis <kettenis@gnu.org>
1615
1616 * config/i386/nm-i386v.h: Add protection against
1617 multiple-inclusion.
1618 (i386_register_u_addr): Remove prototype.
1619 (register_u_addr): New prototype.
1620 (REGISTER_U_ADDR): Redefine accordingly.
1621 * i386v-nat.c: Improve several comments.
1622 (i386_register_u_addr): Change signature and rename to
1623 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1624 ubase variable.
1625
46cac009
AC
16262002-08-18 Andrew Cagney <ac131313@redhat.com>
1627
1628 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1629 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1630 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1631 deprecated_extract_return_value.
1632 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1633 rename mips_o32o64_push_arguments.
1634 (mips_gdbarch_init): Update.
1635 (mips_extract_return_value): Delete.
1636 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1637 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1638 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1639 (mips_n32n64_extract_return_value): Clone
1640 mips_extract_return_value.
1641 (mips_store_return_value): Delete.
1642 (mips_o32_store_return_value): Clone mips_store_return_value.
1643 (mips_o64_store_return_value): Clone mips_store_return_value.
1644 (mips_eabi_store_return_value): Clone mips_store_return_value.
1645 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1646
d2e4a39e
AS
16472002-08-18 Aidan Skinner <aidan@velvet.net>
1648
0c30c098
AS
1649 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1650 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1651
16522002-08-18 Aidan Skinner <aidan@velvet.net>
1653
1654 * ada-lang.c: Run through gdb_indent.sh.
1655 * ada-lang.h: Run through gdb_indent.sh.
1656 * ada-tasks.c: Run through gdb_indent.sh.
1657 * ada-typeprint.c: Run through gdb_indent.sh.
1658 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1659
01fc4e33
AC
16602002-08-18 Andrew Cagney <ac131313@redhat.com>
1661
1662 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1663 ABI.
1664
d8ee244c
MK
16652002-08-18 Mark Kettenis <kettenis@gnu.org>
1666
c38d8261
MK
1667 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1668
222db64c
MK
1669 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1670 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1671
c2848c82
MK
1672 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1673 write_register_gen instead of write_register_bytes.
1674
d8ee244c
MK
1675 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1676 i[3456]-*-osf1mk* configurations have been made obsolete.
1677 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1678 i[3456]86-*-osf1mk* hosts obsolete.
1679 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1680 targets obsolete.
1681 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1682 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1683 config/i386/i386m3.mt, config/i386/nm-m3.h,
1684 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1685 config/i386/i386mk.mh, config/i386/i386mk.mt,
1686 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1687 obsolete.
1688 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1689 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1690 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1691
61d8d407
AC
16922002-08-18 Andrew Cagney <ac131313@redhat.com>
1693
1694 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1695 (hppa_value_returned_from_stack): Declare.
1696 (hppa_extract_return_value): Declare.
1697 * config/pa/hppa.mt: New file.
1698 * configure.tgt: Recognize hppa*-*-*.
1699 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1700
0c52bd59
MK
17012002-08-18 Mark Kettenis <kettenis@gnu.org>
1702
1703 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1704 comment.
1705
b5686e99
MK
17062002-08-17 Mark Kettenis <kettenis@gnu.org>
1707
1708 * top.c (gdb_rl_operate_and_get_next): Make sure
1709 operate-and-get-next functions correctly even when the history
1710 list is completely filled.
1711
c1bab85b
AC
17122002-08-18 Andrew Cagney <ac131313@redhat.com>
1713
1714 * MAINTAINERS (Target Instruction Set Architectures): Rename
1715 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1716 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1717 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1718 already listed under Host/Native.
1719
1720 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1721 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1722 mips*-*-*.
1723
32089c7c
AC
17242002-08-17 Andrew Cagney <ac131313@redhat.com>
1725
1726 * config/ia64/ia64.mt: New file.
1727 * config/alpha/alpha.mt: New file.
1728 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1729 ia64-linux-gnu. Mention that ia64-elf is broken.
1730 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1731
b4671f85
MK
17322002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1733
1734 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1735 generic_func_frame_valid instead of func_frame_valid.
1736
c8edd8b4
JB
17372002-08-16 Joel Brobecker <brobecker@gnat.com>
1738
1739 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1740 procfs appears to be broken when debugging on multi-processor
1741 machines. So enable software single stepping in order to avoid
1742 using the procfs interface to do next/step operations, using
1743 internal breakpoints instead.
1744
1745 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1746 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1747 make this pc address equal to the value it would have if the
1748 system stepping capability was used. Also set a new flag used
1749 to ensure that we don't readjust the PC one more time later.
1750
1751 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1752 address by DECR_PC_AFTER_BREAK when software single step is
1753 in use for this architecture, as this has already been taken
1754 care of in handle_inferior_event().
1755
238617f6
JB
17562002-08-16 Joel Brobecker <brobecker@gnat.com>
1757
1758 * infrun.c (handle_inferior_event): Minor reformatting, to make
1759 a rather long condition expression easier to read.
1760
541a7aac
AC
17612002-08-16 Andrew Cagney <ac131313@redhat.com>
1762
1763 * Makefile.in (gdbtk.o): Move to end of file.
1764 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1765 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1766 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1767 (gdbtk-wrapper.o, gdbres.o): Ditto.
1768
f92d4a7b
AC
17692002-08-16 Andrew Cagney <ac131313@redhat.com>
1770
1771 * Makefile.in (copying.o): Separate out compile rule.
1772 (hpux-thread.o, procfs.o, signals.o): Ditto.
1773 (v850ice.o, z8k-tdep.o): Ditto.
1774 (tui-file.o): Move to TUI section.
1775 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1776 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1777
1cce71eb
JB
17782002-08-16 Joel Brobecker <brobecker@gnat.com>
1779
1780 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1781 skip_trampoline_code, for better namespace-proofing.
1782
1783 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1784
0851f23d
JB
17852002-08-16 Joel Brobecker <brobecker@gnat.com>
1786
1787 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1788
f8d40ec8
JB
17892002-08-16 Joel Brobecker <brobecker@gnat.com>
1790
1791 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1792 signal, check whether we hit a breakpoint before checking for a
1793 single step breakpoint. Otherwise, GDB fails to notice that a
1794 breakpoint has been hit when stepping onto a breakpoint.
1795
63d022e0
KS
17962002-08-16 Keith Seitz <keiths@redhat.com>
1797
1798 * gdb-events.sh (clear_gdb_event_hooks): New function.
1799 * gdb-events.c: Regenerate.
1800 * gdb-events.h: Regenerate.
1801
6e31adb3
AC
18022002-08-16 Andrew Cagney <ac131313@redhat.com>
1803
1804 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1805 not_a_sw_breakpoint.
1806 * breakpoint.h (bpstat_stop_status): Add parameter names.
1807
c8189ed1
GS
18082002-08-16 Grace Sainsbury <graces@redhat.com>
1809
1810 * remote.c (remote_insert_hw_breakpoint)
1811 (remote_remove_hw_breakpoint): Fix calculation of length field
1812 for Z-packet.
1813
d05285fa
MS
18142002-08-15 Michael Snyder <msnyder@redhat.com>
1815
466d7106
MS
1816 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1817 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1818 (supply_fpregset): Ditto.
1819
d05285fa
MS
1820 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1821 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1822 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1823 (TARGET_READ_SP): Delete.
bf1f5b4c 1824 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1825 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1826 Delete.
1827 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1828 from macros to functions.
bf1f5b4c 1829
d05285fa
MS
1830 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1831 (mips_register_convertible, mips_register_convert_to_virtual,
1832 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1833 (mips_read_sp): New function.
1834 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1835 (mips_do_registers_info): Make static.
1836 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1837 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1838 (mips_register_convert_from_type, mips_register_convert_to_type):
1839 New functions.
1840 (mips_gdbarch_init): Set up function_start_offset,
1841 register_virtual_size, pc_in_sigtramp.
d05285fa 1842
e76f1f2e
AC
18432002-08-15 Andrew Cagney <ac131313@redhat.com>
1844
1845 * infcmd.c (vector_info): New function.
1846 (_initialize_infcmd): Add command "info vector".
1847 (print_vector_info): New function.
1848
1849 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1850 * gdbarch.h, gdbarch.c: Regenerate.
1851
4782dc19
AC
18522002-08-15 Andrew Cagney <ac131313@redhat.com>
1853
1854 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1855 ``print_all''. Only print vector registers when ``print_all''.
1856
23e3a7ac
AC
18572002-08-15 Andrew Cagney <ac131313@redhat.com>
1858
8e186fd6
AC
1859 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1860 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1861
23e3a7ac
AC
1862 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1863 Add `args' parameter.
1864 * gdbarch.h, gdbarch.c: Regenerate.
1865
1866 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1867
1868 * infcmd.c (float_info): Call print_float_info.
1869 (print_float_info): New function. By default, print the
1870 floating-point registers.
1871
1872 * arch-utils.h (default_print_float_info): Delete declaration.
1873 * arch-utils.c (default_print_float_info): Delete function.
1874
e0ca2bb9
MK
18752002-08-16 Mark Kettenis <kettenis@gnu.org>
1876
3f733acc
MK
1877 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1878 out define.
1879
7d8d2918
MK
1880 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1881 FRAME.
1882
1c7cc583
MK
1883 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1884 * configure.host: Make i[3456]86-*-aix host obsolete.
1885 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1886 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1887 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1888 config/i386/xm-i386aix.h: Make files obsolete.
1889 * i386aix-nat.c: Make file obsolete.
1890 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1891 (i386aix-nat.o): Make target obsolete.
1892
e0ca2bb9
MK
1893 * config/i386/nm-gnu.h: Removed.
1894 * config/i386/nm-i386gnu.h: New file.
1895 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1896 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1897 Moved here from ...
1898 * config/i386/tm-i386gnu.h: ... here. Removed.
1899 * config/i386/xm-i386gnu.h: Removed.
1900 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1901 (NAT_FILE): Set to nm-i386gnu.h.
1902 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1903 * i386-tdep.c: New file.
1904 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1905 (i386gnu-tdep.o): Specify dependencies.
1906
16057ec7 19072002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1908
6b99ee2e
MK
1909 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1910 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1911 Adjust a few comments to reflect reality a bit closer.
1912 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1913 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1914 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1915 target_insert_watchpoint, target_remove_watchpoint):
1916 Move defines to ...
1917 * config/i386/nm-i386sco5.h: ... here.
1918 (kernel_u_size): Add prototype. Improve a few comments and add
1919 protection against multiple inclusion.
1920
d9a6f65c
MK
1921 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1922 out define.
1923
047eff6a
MK
1924 * uw-thread.c (SP_ARG0): Define if not already defined.
1925 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1926
dcdb1290
MK
1927 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1928
5d2d0b2a
MK
1929 * config/i386/tm-i386.h: Don't include "regcache.h".
1930
61113f8b
MK
1931 * i387-tdep.h (i387_print_float_info): New prototype.
1932 * i387-tdep.c (print_i387_value, print_i387_ext,
1933 print_i387_status_word, print_i387_control_word): Add `struct
1934 ui_file *' argument and use it for output.
1935 (i387_print_float_info): Renamed from i387_float_info. Add
1936 `struct gdbarch *' and `struct ui_file *' arguments and use the
1937 latter for output.
1938 * i386-tdep.c: Include "i387-tdep.h".
1939 (i386_gdbarch_init): Set print_float_info.
1940 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1941 (FLOAT_INFO): Remove define.
1942
46e0f506
MS
19432002-08-13 Michael Snyder <msnyder@redhat.com>
1944
1945 * mips-tdep.c (mips_push_arguments): Rename to
1946 mips_eabi_push_arguments, and tune for EABI.
1947 (MIPS_REGS_HAVE_HOME_P): Delete.
1948 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1949 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1950 Delete references to mips_regs_have_home_p.
1951
409268de
KS
19522002-08-14 Keith Seitz <keiths@redhat.com>
1953
1954 * Makefile.in (install-gdbtk): Create insight plugin directory.
1955 Install plugins.tcl file.
1956
ffc6a242
KS
19572002-08-14 Keith Seitz <keiths@redhat.com>
1958
1959 * configure.in: Move SUBDIRS to near top of the file so that
1960 --enable options may add things to it.
1961 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1962 * configure: Regenerate.
1963
ebafbe83
MS
19642002-08-13 Michael Snyder <msnyder@redhat.com>
1965
1966 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1967 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1968 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1969
32f6f25d
AC
19702002-08-13 Andrew Cagney <ac131313@redhat.com>
1971
1972 * vax-tdep.c (vax_get_saved_register): Delete function.
1973 (vax_gdbarch_init): Update.
1974 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1975 (ns32k_gdbarch_init): Update.
1976 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1977 (alpha_gdbarch_init): Update.
1978
53826de9
AC
19792002-08-13 Andrew Cagney <cagney@redhat.com>
1980
1981 * regcache.c (init_regcache_descr): Overallocate the
1982 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1983 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1984 nr_raw_registers.
1985 (set_register_cached): Add range checking assertions. Use
1986 current_regcache.
1987
16057ec7 19882002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1989
1990 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1991 numbers for MMX registers.
1992
7b4c2dce
AC
19932002-08-13 Andrew Cagney <cagney@redhat.com>
1994
1995 * i386-tdep.c (i386_gdbarch_init): Use
1996 generic_unwind_get_saved_register.
1997
1e03ad20
KB
19982002-08-13 Kevin Buettner <kevinb@redhat.com>
1999
2000 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2001 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2002 target vector.
2003 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2004 Delete. Add comment regarding this now-deleted target method.
2005
548bcbec
SC
20062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2007
2008 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2009 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2010 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2011 real PC and the page number (if it's within the memory bank window).
2012 (m68hc11_pseudo_register_write): Likewise when saving.
2013 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2014 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2015 (m68hc11_register_raw_size): And use 32-bit for it.
2016 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2017 16K memory bank is used by the prog; also use the virtual pc.
2018
7df11f59
SC
20192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2020
2021 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2022 (m68hc11_gdbarch_init): Install it in gdbarch.
2023 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2024 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2025 (MSYMBOL_SIZE): New for documentation.
2026 (insn_return_kind): Enum to specify how a function returns.
2027 (frame_extra_info): Cleanup and record the return mode.
2028 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2029 register in address computation.
2030 (m68hc11_get_return_insn): New to obtain the return instruction used
2031 by the function.
2032 (m68hc11_frame_init_saved_regs): Take into account the return
2033 instruction used by the function for far and interrupt functions.
2034 (m68hc11_init_extra_frame_info): Take into account page register.
2035 (m68hc11_frame_args_address): Adjust according to the return mode.
2036 (show_regs): Print page register only when it's used.
2037
5706502a
SC
20382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2039
2040 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2041 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2042 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2043 registers.
2044 (m68hc11_register_raw_size): Likewise.
2045
28fc6740
AC
20462002-08-13 Andrew Cagney <cagney@redhat.com>
2047
2048 * i386-tdep.c (i386_register_name): Handle mmx registers.
2049 (mmx_regnum_p): New function.
2050 (i386_mmx_names): New array.
2051 (mmx_num_regs): New variable.
2052 (i386_pseudo_register_read): New function.
2053 (i386_pseudo_register_write): New function.
2054 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2055
2056 * regcache.c (regcache_raw_read_unsigned): New function.
2057 (regcache_raw_read_signed): New function.
2058 * regcache.h (regcache_raw_read_unsigned): Declare.
2059 (regcache_raw_read_signed): Declare.
2060
a378f419
AC
20612002-08-13 Andrew Cagney <cagney@redhat.com>
2062
2063 * regcache.c (regcache_raw_read_as_address): Delete function.
2064 (regcache_cooked_read_signed): New function.
2065 (regcache_cooked_read_unsigned): New function.
2066 * regcache.h (regcache_cooked_read_signed): Declare.
2067 (regcache_cooked_read_unsigned): Declare.
2068 (regcache_raw_read_as_address): Delete declaration.
2069
2070 * blockframe.c (generic_read_register_dummy): Use
2071 regcache_cooked_read_unsigned.
2072 * i386-tdep.c (i386_extract_struct_value_address): Use
2073 regcache_cooked_read_unsigned.
2074
81967506
SC
20752002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2076
2077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2078 double sizes according to ELF ABI flags.
2079 (gdbarch_tdep): Record elf_flags.
2080
ffe1f3ee
SC
20812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2082
2083 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2084 (m6812_prolog): They can appear in 68HC12 function prologue.
2085 (m68hc11_frame_chain): Cleanup.
2086
98216c5d
AC
20872002-08-12 Andrew Cagney <cagney@redhat.com>
2088
2089 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2090 declarations.
2091 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2092 (i386_linux_register_raw_size): Delete function.
2093 (i386_linux_init_abi): Update.
2094 * i386-tdep.c (i386_register_raw_size): Delete function.
2095 (i386_register_byte): Delete function.
2096 (i386_gdbarch_init): Update.
2097 (i386_register_size): Delete array.
2098 (i386_register_offset): Delete array.
2099
2100 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2101 (REGISTER_RAW_SIZE): Delete macro.
2102 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2103 (REGISTER_BYTE): Delete macro.
2104
3b19021e
AS
21052002-08-11 Aidan Skinner <aidan@velvet.net>
2106
2107 * ada-lang.c (ada_lookup_partial_symbol)
2108 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2109 prototype names so that grep ^func works properly.
2110
2111 * ada-lang.c (ada_array_element_type)
2112 (ada_lookup_partial_symbol): Fix typos in parameter list.
2113
2114 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2115 Fix prototype names so that grep ^func works properly.
2116
b063e7a2
AC
21172002-08-10 Andrew Cagney <cagney@redhat.com>
2118 Elena Zannoni <ezannoni@redhat.com>
2119 Martin M. Hunt <hunt@redhat.com>
2120
2121 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2122 (build_builtin_type_vec128i): Set the vector bit.
2123 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2124 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2125 (build_builtin_type_vec64): New function.
2126 (build_builtin_type_vec64i): New function.
2127 (build_gdbtypes): Initialize builtin_type_vec64 and
2128 builtin_type_vec64i.
2129
a7e3c2ad
AC
21302002-08-09 Andrew Cagney <cagney@redhat.com>
2131
2132 * regcache.c (regcache_dump): Compare the register offset
2133 with REGISTER_BYTE.
2134 * arch-utils.c (generic_register_byte): New function.
2135 * arch-utils.h (generic_register_byte): Declare.
2136 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2137 * gdbarch.h, gdbarch.c: Regenerate.
2138
af030b9a
AC
21392002-08-09 Andrew Cagney <cagney@redhat.com>
2140
2141 * regcache.c: Include "gdbcmd.h"
2142 (_initialize_regcache): Add commands "maintenance print
2143 registers", "maintenance print raw-registers" and "maintenance
2144 print cooked-registers".
2145 (enum regcache_dump_what): Define.
2146 (dump_endian_bytes): New function.
2147 (regcache_dump): New function.
2148 (regcache_print): New function.
2149 (maintenance_print_registers): New function.
2150 (maintenance_print_raw_registers): New function.
2151 (maintenance_print_cooked_registers): New function.
2152 * Makefile.in (regcache.o): Update dependencies.
2153
cb3d25d1
MS
21542002-08-09 Michael Snyder <msnyder@redhat.com>
2155
2156 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2157 (mips_push_arguments): Correct some comments. Use paddr_nz
2158 for printing addresses in debug output. Replace static
2159 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2160 (mips_n32n64_push_arguments): New function, cloned from
2161 mips_push_arguments and tuned for the n32/n64 ABI.
2162 (mips_push_register): Buffer needs dynamic allocation.
2163 (mips_print_register): Ditto.
2164 (do_gp_register_row): Ditto.
2165 (mips_store_return_value): Ditto.
2166 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2167
2163ab9d
DH
21682002-08-09 Don Howard <dhoward@redhat.com>
2169
2170 * memattr.c (mem_info_command): Print special case of upper bound
2171 as max CORE_ADDR + 1.
2172
b78bcb18
MS
21732002-08-08 Michael Snyder <msnyder@redhat.com>
2174
2175 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2176 returns structs by ref if they're too big to fit in two registers.
2177
ffabd70d
KB
21782002-08-09 Kevin Buettner <kevinb@redhat.com>
2179
2180 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2181 saved regs value.
2182 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2183 mips_find_saved_regs().
2184 (mips_pop_frame): Likewise.
2185
fbcdb4a3
KB
21862002-08-09 Kevin Buettner <kevinb@redhat.com>
2187
2188 * blockframe.c (frame_saved_regs_register_unwind): Revise
2189 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2190 frames are in use.
2191
3c3bea1c
GS
21922002-08-09 Grace Sainsbury <graces@redhat.com>
2193
2194 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2195 T-packets; the 'a' is not taken as a register number.
2196 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2197 (remote_stopped_data_address): New functions; add to target
2198 vector.
2199 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2200 prototypes to match other implementations of this
2201 function. replace integer argument with pointer -- the length
2202 field in the Z-packet is the length of what is pointed to or 1 if
2203 pointer is null. Add to target vector.
2204 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2205 target vector.
2206
2207 From Mark Salter:
2208 * remote.c (remote_wait): Add support to extract optional
2209 watchpoint information from T-packet. Ignore unrecognized
2210 optional info in T-packet.
2211 (remote_async_wait): Ditto.
2212
5d1d95de
CV
22132002-08-09 Corinna Vinschen <vinschen@redhat.com>
2214
2215 * cli/cli-dump.c: Change fopen modes to use binary open modes
2216 as defined in include/fopen-bin.h throughout.
2217
c86b5b38
MS
22182002-08-08 Michael Snyder <msnyder@redhat.com>
2219
2220 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2221
b30590dc
KB
22222002-08-08 Kevin Buettner <kevinb@redhat.com>
2223
2224 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2225 assertion failure by returning early after a warning.
2226
498868ed
KB
22272002-08-08 Kevin Buettner <kevinb@redhat.com>
2228
2229 * mips-tdep.c (mips_find_saved_regs): Make static.
2230 (mips_frame_init_saved_regs): New function.
2231 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2232 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2233 (mips_find_saved_regs): Delete declaration.
2234
b2dd6311
GS
22352002-08-08 Grace Sainsbury <graces@redhat.com>
2236
3c3bea1c
GS
2237 * remote.c (remote_wait, remote_async_wait): Change
2238 thread_num from int to ULONGEST.
2239 (unpack_varlen_hex): Change result parameter from
2240 int * to ULONGEST *.
b2dd6311 2241
ea47855f
AC
22422002-08-08 Andrew Cagney <ac131313@redhat.com>
2243
2244 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2245 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2246 powerpc*-*-*.
2247 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2248
69db8bae
AC
22492002-08-08 Andrew Cagney <cagney@redhat.com>
2250
2251 * gcore.c (override_derive_stack_segment): Delete variable.
2252 (preempt_derive_stack_segment): Delete function.
2253 (derive_stack_segment): Delete function.
2254 (default_derive_stack_segment): Renamed to derive_stack_segment.
2255 (override_derive_heap_segment): Delete variable.
2256 (preempt_derive_heap_segment): Delete function.
2257 (derive_heap_segment): Delete function.
2258 (default_derive_heap_segment): Rename to derive_heap_segment.
2259
cb811fe7
MS
22602002-08-06 Michael Snyder <msnyder@redhat.com>
2261
2262 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2263 * mips-tdep.c (mips_EABI_use_struct_convention,
2264 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2265 New functions. (mips_use_struct_convention): Delete.
2266 (mips_gdbarch_init): set use_gdbarch_convention.
2267
8b389c40
MS
22682002-08-06 Michael Snyder <msnyder@redhat.com>
2269
2270 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2271 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2272 mips_o32_reg_struct_has_addr): New functions.
2273 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2274
5c27f28a
AC
22752002-08-07 Andrew Cagney <ac131313@redhat.com>
2276
2277 * regcache.c (pseudo_register): Delete function.
2278 (fetch_register): Delete function.
2279 (store_register): Delete function.
2280 (regcache_raw_read, legacy_read_register_gen): Use
2281 target_fetch_registers instead of fetch_register.
2282 (legacy_write_register_gen, regcache_raw_write): Use
2283 target_store_register instead of store_register.
2284 (write_register_bytes): Ditto.
2285
2286 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2287 (STORE_PSEUDO_REGISTER): Delete.
2288 * gdbarch.h, gdbarch.c: Regenerate.
2289
5b331675
CV
22902002-08-06 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2293 write dump file binary.
2294
6acdf5c7
MS
22952002-08-05 Michael Snyder <msnyder@redhat.com>
2296
2297 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2298 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2299 (mips_gdbarch_init): Set N32 target to be mips64.
2300
b2f01c35
KB
23012002-08-06 Kevin Buettner <kevinb@redhat.com>
2302
2303 * frame.c (find_saved_register): Break out of loop once saved
2304 register address is found. Don't mention sparc in loop comment
2305 anymore.
2306
63db5580
KB
23072002-08-06 Kevin Buettner <kevinb@redhat.com>
2308
2309 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2310 mips_default_saved_regsize to 8.
2311
5e34e75e
AC
23122002-08-06 Andrew Cagney <ac131313@redhat.com>
2313
2314 * gcore.c: Do not include <sys/procfs.h>.
2315 * Makefile.in (gcore.o): Update dependencies.
2316
eb4c54a2
AC
23172002-08-06 Andrew Cagney <cagney@redhat.com>
2318
2319 * configure.tgt: Make arc-*-* obsolete.
2320 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2321 * MAINTAINERS: Make arc-elf obsolete.
2322 * arc-tdep.c: Make file obsolete.
2323 * config/arc/arc.mt: Ditto.
2324 * config/arc/tm-arc.h: Ditto.
2325
ced15480
TR
23262002-08-05 Theodore A. Roth <troth@verinet.com>
2327
c1bab85b 2328 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2329
b4743822
AC
23302002-08-05 Andrew Cagney <ac131313@redhat.com>
2331
2332 * mcore-tdep.c (mcore_gdbarch_init): Use
2333 generic_unwind_get_saved_register instead of
2334 generic_get_saved_register.
2335 * v850-tdep.c (v850_gdbarch_init): Ditto.
2336 * frv-tdep.c (frv_gdbarch_init): Ditto.
2337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2338 * s390-tdep.c (s390_gdbarch_init): Ditto.
2339 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2340 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2341 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2342
3956d554
JB
23432002-08-05 Joel Brobecker <brobecker@gnat.com>
2344
2345 * objfiles.h: Add missing #include "symfile.h"
2346
2347 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2348
8249c0d6
AC
23492002-08-04 Andrew Cagney <ac131313@redhat.com>
2350
2351 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2352 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2353 of FIELD_BITSIZE.
2354
b9d14705
DJ
23552002-08-04 Daniel Jacobowitz <drow@mvista.com>
2356
2357 * NEWS: Cleanup and nitpick.
2358
dd73b9bb
AC
23592002-08-03 Andrew Cagney <ac131313@redhat.com>
2360
2361 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2362
043a27f8
AC
23632002-08-03 Andrew Cagney <ac131313@redhat.com>
2364
2365 * Makefile.in (gdbtk-bp.o): Update dependencies.
2366 (gdbtk-register.o): Ditto.
2367 (gdbtk-varobj.o): Ditto.
2368
46ce284d
AC
23692002-08-03 Andrew Cagney <cagney@redhat.com>
2370
2371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2372 m68hc11_fetch_pseudo_register.
2373 (m68hc11_pseudo_register_write): Replace
2374 m68hc11_store_pseudo_register.
2375 (m68hc11_gdbarch_init): Update.
2376
b66d6d2e
AC
2377Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2378
2379 * gdbarch.sh: Include "gdb_string.h".
2380 * gdbarch.c: Regenerate.
2381
2382 * regcache.c: Include "gdb_string.h".
2383 * ax-general.c: Ditto.
2384 * varobj.c: Ditto.
2385 * std-regs.c: Ditto.
2386 * fbsd-proc.c: Ditto.
2387 * thread.c: Ditto.
2388
2389 * Makefile.in (regcache.o): Update dependencies.
2390 (thread.o, gdbarch.o): Ditto.
2391 (ax-general.o, gdbarch.o): Ditto.
2392 (varobj.o, std-regs.o): Ditto.
2393 (fbsd-proc.o): Specify dependencies.
2394
29e1842b
AC
23952002-08-02 Andrew Cagney <cagney@redhat.com>
2396
2397 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2398 regnum.
2399 (regcache_cooked_write): Ditto.
2400
68365089
AC
24012002-08-02 Andrew Cagney <ac131313@redhat.com>
2402
2403 * regcache.c (regcache_cooked_read): New function.
2404 (regcache_cooked_write): New function.
2405 (read_register_gen): Rewrite using regcache_cooked_read.
2406 (write_register_gen): Rewrite using regcache_cooked_write.
2407
2408 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2409 Declare.
2410
d8124050
AC
24112002-08-02 Andrew Cagney <cagney@redhat.com>
2412
2413 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2414 Replace the architecture methods register_read and register_write.
2415 * gdbarch.h, gdbarch.c: Regenerate.
2416 * regcache.c (init_regcache_descr): Update.
2417 (read_register_gen): Update.
2418 (write_register_gen): Update.
2419 (supply_register): Update comment.
2420
2421 * sh-tdep.c (sh_gdbarch_init): Update.
2422 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2423 `regcache' and `gdbarch' parameters. Make `buffer' a void
2424 pointer. Update code.
2425 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2426 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2427 void pointer. Update code.
2428 (sh64_register_write): Delete.
2429 (sh4_register_read): Delete.
2430 (sh64_register_read): Delete.
2431 (sh4_register_write): Delete.
2432 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2433 void pointer, `to' parameter a void pointer.
2434 (sh_sh64_register_convert_to_raw): Ditto.
2435
a6425924
KB
24362002-08-01 Kevin Buettner <kevinb@redhat.com>
2437
2438 * mips-tdep.c (mips_register_virtual_type): Use architecture
2439 invariant return values.
2440
ff5922b5
AC
24412002-08-01 Andrew Cagney <cagney@redhat.com>
2442
2443 * linux-proc.c: Include "gdb_string.h".
2444 * Makefile.in (linux-proc.o): Update dependency list.
2445
32a6503c
KB
24462002-08-01 Kevin Buettner <kevinb@redhat.com>
2447
2448 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2449 comment.
2450
ccaa32c7
GS
24512002-08-01 Grace Sainsbury <graces@redhat.com>
2452
2453 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2454 to_insert_watchpoint, to_remove_watchpoint,
2455 to_stopped_by_watchpoint, to_stopped_data_address,
2456 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2457 target vecctor. Define their corresponding macros so they call
2458 them.
2459
2460 * target.c: Add default and debug versions of for
2461 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2462 to_insert_watchpoint, to_remove_watchpoint,
2463 to_stopped_by_watchpoint, to_stopped_data_address,
2464 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2465
78fde5f8
KB
24662002-08-01 Kevin Buettner <kevinb@redhat.com>
2467
2468 * mips-tdep.c (mips_register_virtual_type): New function.
2469 (mips_gdbarch_init): Register mips_register_virtual_type()
2470 with gdbarch machinery.
2471 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2472 this file instead of tm-bigmips.h.
2473 (MIPS_REGSIZE): Delete this macro.
2474 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2475 multiarch version in mips-tdep.c will be found.
2476
db034ac5
AC
24772002-08-01 Andrew Cagney <cagney@redhat.com>
2478
2479 * NEWS: Menion that CHILL has been made obsolete.
2480
2481 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2482 * stabsread.c (read_range_type): Ditto.
2483 * gdbtypes.h: Ditto.
2484 * language.c (binop_type_check): Ditto.
2485 (binop_result_type): Ditto.
2486 (integral_type): Ditto.
2487 (character_type): Ditto.
2488 (string_type): Ditto.
2489 (boolean_type): Ditto.
2490 (structured_type): Ditto.
2491 (lang_bool_type): Ditto.
2492 (binop_type_check): Ditto.
2493 * language.h (_LANG_chill): Ditto.
2494 * dwarfread.c (set_cu_language): Ditto.
2495 * dwarfread.c (CHILL_PRODUCER): Ditto.
2496 * dwarfread.c (handle_producer): Ditto.
2497 * expression.h (enum exp_opcode): Ditto.
2498 * eval.c: Ditto for comments.
2499 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2500 * expprint.c (print_subexp): Ditto.
2501 (print_subexp): Ditto.
2502 * valops.c (value_cast): Ditto.
2503 (search_struct_field): Ditto.
2504 * value.h (COERCE_VARYING_ARRAY): Ditto.
2505 * symfile.c (init_filename_language_table): Ditto.
2506 (add_psymbol_with_dem_name_to_list): Ditto.
2507 * valarith.c (value_binop): Ditto.
2508 (value_neg): Ditto.
2509 * valops.c (value_slice): Ditto.
2510 * symtab.h (union language_specific): Ditto.
2511 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2512 (SYMBOL_DEMANGLED_NAME): Ditto.
2513 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2514 * defs.h (enum language): Ditto.
2515 * symtab.c (got_symtab): Ditto.
2516 * utils.c (fprintf_symbol_filtered): Ditto.
2517
2518 * ch-typeprint.c: Make file obsolete.
2519 * ch-valprint.c: Make file obsolete.
2520 * ch-lang.h: Make file obsolete.
2521 * ch-exp.c: Make file obsolete.
2522 * ch-lang.c: Make file obsolete.
2523
2524 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2525 CHILL_LIB.
2526 (TARGET_FLAGS_TO_PASS): Ditto.
2527 (CHILLFLAGS): Obsolete.
2528 (CHILL): Obsolete.
2529 (CHILL_FOR_TARGET): Obsolete.
2530 (CHILL_LIB): Obsolete.
2531 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2532 ch-valprint.c.
2533 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2534 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2535 ch-lang.o.
2536 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2537 targets.
2538
8aaf0b47
JB
25392002-07-31 Joel Brobecker <brobecker@gnat.com>
2540
2541 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2542 This does not change anything at the moment, but will be helpful
2543 later when full Ada support is integrated.
2544
f3a7b3a5
KB
25452002-07-31 Kevin Buettner <kevinb@redhat.com>
2546
2547 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2548 help message.
2549
fb850278
KB
25502002-07-31 Kevin Buettner <kevinb@redhat.com>
2551
2552 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2553 and save it in a local variable. Use variable in later test.
2554
e3bddbfa
KB
25552002-07-31 Kevin Buettner <kevinb@redhat.com>
2556
2557 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2558 test. (Thanks to Daniel Jacobowitz.)
2559
28d169de
KB
25602002-07-31 Kevin Buettner <kevinb@redhat.com>
2561
2562 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2563 (mips_abi_strings): Add "n64".
2564 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2565
7fe7e44e
KB
25662002-07-31 Kevin Buettner <kevinb@redhat.com>
2567
2568 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2569 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2570
c6caf090
KB
25712002-07-31 Kevin Buettner <kevinb@redhat.com>
2572
2573 * utils.c (host_pointer_to_address, address_to_host_pointer):
2574 Use gdb_assert() instead of explicit call to internal_error().
2575
c41669e0
KB
25762002-07-30 Kevin Buettner <kevinb@redhat.com>
2577
2578 * Makefile.in (rs6000-nat.o): Update dependencies.
2579
2580 From Nicholas Duffek:
2581 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2582 (aix-thread.o): New rule.
2583 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2584 * config/powerpc/aix432.mh: New file.
2585
2fda4977
DJ
25862002-07-30 Daniel Jacobowitz <drow@mvista.com>
2587
2588 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2589 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2590 (fetch_core_registers, ppc_linux_supply_gregset)
2591 (ppc_linux_supply_fpregset): New functions.
2592 (ppc_linux_regset_core_fns): New.
2593 (_initialize_ppc_linux_tdep): Call add_core_fns.
2594 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2595 and ppc_linux_supply_gregset.
2596 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2597 (supply_fpregset): Call ppc_linux_supply_fpregset.
2598 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2599 corelow.o.
2600 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2601
729051e6
DJ
26022002-07-30 Daniel Jacobowitz <drow@mvista.com>
2603
2604 * symtab.c (lookup_symbol): Demangle before lowercasing.
2605
5f8a3188
AC
26062002-07-30 Andrew Cagney <ac131313@redhat.com>
2607
2608 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2609 declaration.
2610 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2611 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2612 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2613 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2614 "gdb_string.h".
2615 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2616 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2617 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2618 (avr-tdep.o, mon960-rom.o): Ditto.
2619 (aout_stabs_gnu_h): Define.
2620 (symtab_h): Remove $(gdb_obstack_h).
2621
67f07146
JB
26222002-07-30 Jim Blandy <jimb@redhat.com>
2623
2624 Patch from David Carlton <carlton@math.stanford.edu>:
2625 * gdbinit.in: Move the `dir' commands that add GDB's own source
2626 directory to the search path to the end, so that the `gdb' source
2627 directory will be searched first.
2628
04ea0df1
AC
26292002-07-29 Andrew Cagney <ac131313@redhat.com>
2630
2631 * gdb_obstack.h: New file.
2632 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2633 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2634 * objfiles.h: Include "gdb_obstack.h".
2635 * Makefile.in (gdb_obstack_h): Define.
2636 (symtab_h): Add $(gdb_obstack_h).
2637 (objfiles_h): Add $(gdb_obstack_h).
2638
2639 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2640 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2641 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2642 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2643 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2644 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2645 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2646 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2647
2648 * Makefile.in (bcache.o): Update dependencies.
2649 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2650 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2651 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2652 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2653 (stabsread.o, symfile.o, symmisc.o): Ditto.
2654 (symtab.o, typeprint.o, macroexp.o): Ditto.
2655 (macrotab.o, mdebugread.o): Ditto.
2656 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2657 (coff_ecoff_h, aout_aout64_h): Define.
2658 (aout_stabs_gnu_h, libaout_h): Define.
2659
d138e37a
AC
26602002-07-29 Andrew Cagney <cagney@redhat.com>
2661
2662 * regcache.c (struct regcache_descr): Rename nr_registers to
2663 nr_cooked_registers. Revise comments describing the structure
2664 member fields.
2665 (init_regcache_descr): Update.
2666 (init_legacy_regcache_descr): Update.
2667 (read_register_gen, write_register_gen): When a cooked register in
2668 the raw register range, directly access the value from the raw
2669 register cache.
2670
460e6ec3
AC
26712002-07-29 Andrew Cagney <ac131313@redhat.com>
2672
2673 * z8k-tdep.c: Do not include "obstack.h".
2674 * h8300-tdep.c, h8500-tdep.c: Ditto.
2675 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2676 * valprint.c, v850-tdep.c: Ditto.
2677 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2678 * mn10200-tdep.c: Ditto.
2679
2680 * Makefile.in (z8k-tdep.o): Update dependencies.
2681 (m68hc11-tdep.o, valprint.o): Ditto.
2682 (v850-tdep.o, d10v-tdep.o): Ditto.
2683 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2684 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2685 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2686 (sh_opc_h, gdb_sim_sh_h): Define.
2687 (elf_sh_h, elf_bfd_h): Define.
2688 (opcode_m68hc11_h): Define.
2689 (OPCODES_SRC, OPCODES_DIR): define.
2690 (OPCODES): Use $(OPCODES_DIR).
2691 (gdb_sim_d10v_h): Rename sim_d10v_h.
2692 (gdb_sim_arm_h): Rename sim_arm_h.
2693
790c9cf0
KB
26942002-07-26 Kevin Buettner <kevinb@redhat.com>
2695
2696 * utils.c (host_pointer_to_address, address_to_host_pointer):
2697 Change internal_error() message to indicate function responsible
2698 for the error.
2699
9647fa49
KB
27002002-07-26 Kevin Buettner <kevinb@redhat.com>
2701
2702 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2703 calls to local_hex_string_custom().
2704
dabbe2c0
KB
27052002-07-26 Kevin Buettner <kevinb@redhat.com>
2706
2707 * irix5-nat.c: Move IRIX shared library support from here...
2708 * solib-irix.c: ...to here. Revised substantially to work with
2709 generic solib framework.
2710
b96d0a4e
KB
2711 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2712 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2713 * mips-irix-tdep.c: New file.
2714
313fb2f6
KB
2715 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2716 (mips-irix-tdep.o, solib-irix.o): New rules.
2717 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2718 solib-irix.o.
2719 * config/mips/irix6.mt (TDEPFILES): Likewise.
2720 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2721
ab2eaf26
KB
27222002-07-26 Kevin Buettner <kevinb@redhat.com>
2723
177e4768 2724 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2725 disabled (via ``#if 0'') includes.
2726
7244546a
KB
27272002-07-26 Kevin Buettner <kevinb@redhat.com>
2728
2729 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2730 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2731 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2732 Add support for the fpscr register.
2733 * rs6000-nat.c (regmap, fetch_inferior_registers)
2734 (store_inferior_registers, fetch_core_registers): Likewise.
2735
dd7be90a
KB
27362002-07-26 Kevin Buettner <kevinb@redhat.com>
2737
2738 * rs6000-nat.c (language.h): Include.
2739 (special_regs): Delete this array.
2740 (regmap): New function.
2741 (fetch_register, store_register): Use regmap() to map gdb
2742 register numbers to ptrace register numbers. Also, use
2743 outputs from regmap() to make decisions regarding type of
2744 ptrace() call to make. In particular, don't compare against
2745 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2746 (fetch_inferior_registers, store_inferior_registers): Where
2747 possible, obtain register numbers from tdep struct. Don't
2748 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2749 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2750 (LAST_UISA_SP_REGNUM): Delete.
2751
11bf77db
KB
27522002-07-25 Kevin Buettner <kevinb@redhat.com>
2753
2754 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2755 (fetch_registers, store_register, fetch_core_registers): Don't
2756 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2757 regcache_collect() as appropriate.
2758 (find_toc_address): Format hex address with local_hex_string().
2759
06afebeb
AC
27602002-07-25 Andrew Cagney <ac131313@redhat.com>
2761
2762 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2763 bfd/elf32-frv.c.
2764
8c554d79
TT
27652002-07-24 Tom Tromey <tromey@redhat.com>
2766
2767 * jv-exp.y: Marked all strings with _().
2768 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2769 internal_error.
2770 (MethodInvocation, CastExpression, parse_number, yyerror,
2771 java_type_from_name, push_expression_name, yylex): Typo fixes.
2772
e4c242d9
DJ
27732002-07-24 Daniel Jacobowitz <drow@mvista.com>
2774
2775 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2776 (tee_file_flush, tee_file_write, tee_file_fputs)
2777 (tee_file_isatty): New.
2778 * ui-file.h (tee_file_new): Add prototype.
2779
ebf56fd3
AS
27802002-07-24 Aidan Skinner <aidan@velvet.net>
2781
2782 * ada-lang.c: Change k&r style function definitions to prototyped
2783 form.
2784 * ada-typeprint.c: Change k&r style function definitions to prototyped
2785 form.
2786 * ada-valprint.c: Change k&r style function definitions to prototyped
2787 form.
2788
7fb623f7
AC
27892002-07-24 Andrew Cagney <cagney@redhat.com>
2790
2791 * README: Remove reference to remote-bug.
2792 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2793 remote-bug.c.
2794 (m88k-nat.o): Delete rule.
2795 (m88k-tdep.o): Delete rule.
2796 (remote-bug.o): Delete rule.
2797 * MAINTAINERS: Mark as obsolete.
2798 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2799 * m88k-tdep.c: Make file obsolete.
2800 * config/m88k/m88k.mh: Ditto.
2801 * config/m88k/delta88v4.mh: Ditto.
2802 * config/m88k/delta88v4.mt: Ditto.
2803 * config/m88k/delta88.mt: Ditto.
2804 * config/m88k/delta88.mh: Ditto.
2805 * remote-bug.c: Ditto.
2806 * config/m88k/tm-delta88.h: Ditto.
2807 * config/m88k/nm-delta88v4.h: Ditto.
2808 * config/m88k/xm-delta88.h: Ditto.
2809 * config/m88k/xm-dgux.h: Ditto.
2810 * config/m88k/tm-m88k.h: Ditto.
2811 * config/m88k/nm-m88k.h: Ditto.
2812 * config/m88k/tm-delta88v4.h: Ditto.
2813 * m88k-nat.c: Ditto.
2814 * cxux-nat.c: Ditto.
2815 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2816 and m88*-*-* obsolete.
2817 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2818 m88*-*-* obsolete.
2819
37611a2b
AC
28202002-07-24 Andrew Cagney <cagney@redhat.com>
2821
2822 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2823 constant. Same for local pointer variables.
2824 (extract_signed_integer): Ditto.
2825 * defs.h (extract_unsigned_integer): Update.
2826 (extract_signed_integer): Update.
2827
1aaa5f99
AC
28282002-07-24 Andrew Cagney <cagney@redhat.com>
2829
2830 * regcache.c (regcache_raw_write): Change buf parameter to a
2831 constant void pointer.
2832 (regcache_raw_read): Change buf parameter to a void pointer.
2833 (legacy_write_register_gen): Change myaddr parameter a constant
2834 void pointer.
2835 (supply_register): Change val parameter to a const void pointer.
2836 * regcache.h (regcache_raw_write): Update declaration.
2837 (regcache_raw_read): Update declaration.
2838 (supply_register): Update declaration.
2839
b4f5539f
TT
28402002-07-24 Tom Tromey <tromey@redhat.com>
2841
2842 * defs.h (gdb_readline_wrapper): Declare.
2843 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2844 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2845 * top.c (gdb_readline_wrapper): New function.
2846 (command_line_input): Use it.
2847
0818c12a
AC
28482002-07-24 Andrew Cagney <cagney@redhat.com>
2849
2850 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2851 regcache_read and regcache_write.
2852 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2853 * regcache.c: Update.
2854 * sh-tdep.c (sh64_push_arguments): Update comment.
2855 (sh_pseudo_register_read): Update.
2856 (sh_pseudo_register_write): Update.
2857 (sh4_register_read): Update.
2858 (sh4_register_write): Update.
2859 (sh64_pseudo_register_read): Update.
2860 (sh64_pseudo_register_write): Update.
2861 (sh64_register_read): Update.
2862 (sh64_register_write): Update.
2863 * i386-tdep.c (i386_extract_return_value): Update.
2864 (i386_extract_struct_value_address): Update.
2865 (i386_extract_return_value): Update.
2866 * blockframe.c (generic_read_register_dummy): Update.
2867 (generic_call_dummy_register_unwind): Update
2868 * infrun.c (write_inferior_status_register): Update.
2869
f7321c06
JB
28702002-07-23 Jim Blandy <jimb@redhat.com>
2871
2872 * parser-defs.h (expression_context_pc): Make this extern.
2873 (Thanks to Michael Snyder.)
2874
2037aebb
AC
28752002-07-23 Andrew Cagney <ac131313@redhat.com>
2876
2877 GDB 5.2.1 released from 5.2 branch.
2878 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2879 * README: Update to mention 5.2.1.
2880
66504d44
MS
28812002-07-23 Mark Salter <msalter@redhat.com>
2882
2883 * remote.c (remote_read_bytes): Fix check for error.
2884
27bae383
KB
28852002-07-22 Kevin Buettner <kevinb@redhat.com>
2886
2887 * aix-thread.c (language.h): Include.
2888 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2889 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2890 Print newlines at end of debug messages.
2891 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2892 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2893
28942002-07-22 Kevin Buettner <kevinb@redhat.com>
2895
2896 * aix-thread.c (ppc-tdep.h): Include.
2897 (special_register_p): New function.
2898 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2899 (store_regs_user_thread): Use register number information from
2900 gdbarch_tdep struct instead of hardcoded offsets relative to
2901 FIRST_UISA_SP_REGNUM.
2902 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2903 special_register_p() instead of using FPLAST_REGNUM and
2904 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2905 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2906 will be MQ's register number.
2907
29082002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2909
2910 * aix-thread.c (ops): Rename to aix_thread_ops.
2911 (base_ops): Rename to base_target.
2912 (ops_attach): Rename to aix_thread_attach.
2913 (ops_detach): Rename to aix_thread_detach.
2914 (ops_resume): Rename to aix_thread_detach.
2915 (ops_wait): Rename to aix_thread_wait.
2916 (ops_kill): Rename to aix_thread_kill.
2917 (init_ops): Rename to init_aix_thread_ops.
2918 (ops_fetch_register): Rename to aix_thread_fetch_register.
2919 (ops_store_register): Rename to aix_thread_store_register.
2920 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2921 (ops_thread_alive): Rename to aix_thread_thread_alive.
2922 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2923 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2924 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2925 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2926 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2927 (store_regs_lib): Rename to store_regs_user_thread.
2928 (store_regs_kern): Rename to store_regs_kernel_thread.
2929
27bae383 29302002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2931
2932 * aix-thread.c (ops_prepare_to_store): Eliminate.
2933 (init_ops): Don't initialize ops.prepare_to_store.
2934 (store_regs_kern): Pre-fetch register buffers from child,
2935 because some registers may not be in the cache. Copy
2936 regs from register cache only if they are cached.
2937 (store_regs_lib): Copy regs from register cache only
2938 if they are cached.
2939 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2940 fill_gprs64): Ditto.
2941
61c5da0b
KB
29422002-07-22 Kevin Buettner <kevinb@redhat.com>
2943
2944 * aix-thread.c (gdb_assert.h): Include.
2945 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2946 register sizes (from register cache) match size of buffer holding
2947 register data.
2948 (fill_sprs32): Change parameter types to match those in the ptrace()
2949 buffer.
2950 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2951 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2952
29532002-07-22 Michael Snyder <msnyder@redhat.com>
2954
2955 * aix-thread.c (supply_sprs64): Cosmetic change.
2956 (supply_sprs32): Cosmetic change.
2957 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2958 (fill_sprs64): Use regcache_collect instead of read_register.
2959 (store_regs_lib): Use regcache_collect instead of
2960 read_register. Use fill_sprs32 instead of fill_sprs64,
2961 if debugging a 32-bit architecture.
2962 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2963 out of the register cache, instead of passing a pointer into
2964 the register cache directly to ptrace. Use regcache_collect
2965 insteaad of read_register.
2966 (ops_prepare_to_store): Use target_read_registers instead
2967 of read_register_bytes.
2968
36479eb1
AS
29692002-07-20 Aidan Skinner <aidan@velvet.net>
2970
2971 * MAINTAINERS: Add self under write after approval.
2972
80ae6ee2
AS
29732002-07-20 Aidan Skinner <aidan@velvet.net>
2974
2975 * ada-tasks.c: Change k&r style function definitions to prototyped
2976 form.
2977
8a8ab2b9
AC
29782002-07-19 Andrew Cagney <ac131313@redhat.com>
2979
2980 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2981 * x86-64-tdep.c: Include "objfiles.h".
2982 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2983 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2984
fb16b900
ML
29852002-07-17 Michal Ludvig <michal@suse.cz>
2986
2987 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2988 (update_context): Initialise cfa variable.
2989
0fe7bf7b
MS
29902002-07-17 Michael Snyder <msnyder@redhat.com>
2991
2992 * aix-thread.c: Shorten some long lines.
2993 Bring comments into line with code spec.
2994
488f131b
JB
29952002-07-18 Joel Brobecker <brobecker@gnat.com>
2996
2997 * infrun.c: Re-indent using gdb_indent.sh.
2998
46c415d2
JB
29992002-07-18 Joel Brobecker <brobecker@gnat.com>
3000
3001 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3002 Leave the indentation temporarily untouched, to minimize the diffs.
3003
cdecafbe
EZ
30042002-07-18 Elena Zannoni <ezannoni@redhat.com>
3005
3006 * stabsread.c: Make os9k sections of the code obsolete,
3007 for real this time.
3008 * stabsread.h: Make os9k sections of the code obsolete.
3009
7b6aa020
ML
30102002-07-18 Michal Ludvig <mludvig@suse.cz>
3011
09ec9b38
ML
3012 * linux-low.c (regsets_store_inferior_registers): Add free()
3013 at the end of a loop to prevent memory leak.
3014 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3015 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3016 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3017 line a comment.
4894ac5d 3018 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3019
233282cd
JB
30202002-07-17 Jim Blandy <jimb@redhat.com>
3021
3022 * macrocmd.c (info_macro_command): Remove newline from error
3023 message.
3024
7b6aa020 30252002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3026
3027 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3028 (sh_gdbarch_init): Use it for sh-dsp.
3029
f7ef9339
KB
30302002-07-16 Kevin Buettner <kevinb@redhat.com>
3031
3032 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3033 64-bit DWARF2 format.
3034
8dd72958
JB
30352002-07-16 Joel Brobecker <brobecker@gnat.com>
3036
3037 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3038 <sys/proc.h> when not available.
3039
a99a9e1b
AC
30402002-07-16 Andrew Cagney <ac131313@redhat.com>
3041
3042 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3043 * stabsread.c: Make os9k sections of the code obsolete.
3044 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3045 * config/i386/i386os9k.mt: Make file obsolete.
3046 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3047 (COMMON_OBS): Remove os9kread.o
3048 (SFILES): Remove os9kread.c.
3049 (os9kread.o, remote-os9k.o): Make target obsolete.
3050 * remote-os9k.c: Make file obsolete.
3051 * os9kread.c: Make file obsolete.
3052 * Makefile.in
3053
7a3085c1
AC
30542002-07-16 Andrew Cagney <ac131313@redhat.com>
3055
3056 * NEWS: Mention that the FR30 has been made obsolete.
3057 * fr30-tdep.c: Make file obsolete.
3058 * config/fr30/tm-fr30.h: Ditto.
3059 * config/fr30/fr30.mt: Ditto.
3060 * configure.tgt: Make fr30-*-elf obsolete.
3061 * MAINTAINERS: Make fr30-elf obsolete.
3062
28a93f5a
PM
30632002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3064
3065 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3066 found is not inside a section.
3067
be006b8b
KB
30682002-07-15 Kevin Buettner <kevinb@redhat.com>
3069
3070 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3071 strerror().
3072 (pdc_realloc): Use xrealloc() instead of realloc().
3073
14fa3751
KB
30742002-07-15 Kevin Buettner <kevinb@redhat.com>
3075
3076 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3077 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3078 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3079 macros.
3080
42cc437f
KB
30812002-07-15 Kevin Buettner <kevinb@redhat.com>
3082
3083 * aix-thread.c (ptrace_check): Eliminate goto.
3084 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3085 problem.
3086
8e2c28d4
KB
30872002-07-15 Kevin Buettner <kevinb@redhat.com>
3088
3089 * aix-thread.c (gdbcmd.h): Include.
3090 (DEBUG, DBG, DBG2, dbg): Eliminate.
3091 (debug_aix_thread): New static global.
3092 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3093 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3094 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3095 invocations to DBG and DBG2 macros to test against
3096 ``debug_aix_thread'' and call fprintf_unfiltered().
3097 (_initialize_aix_thread): Add new command "set debug aix-thread".
3098
30413464
AC
30992002-07-15 Andrew Cagney <ac131313@redhat.com>
3100
3101 From Gerhard Tonn <TON@de.ibm.com>:
3102 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3103 instead of supply_register.
3104
7c43edc1
AC
31052002-07-15 Andrew Cagney <ac131313@redhat.com>
3106
3107 * dwarf2cfi.c: Include "gdb_assert.h".
3108 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3109 non-NULL.
3110 (update_context): Do not use __func__. Add missing ``break''.
3111 (update_context): Do not use __func__.
3112
9364a0ef
EZ
31132002-07-15 Elena Zannoni <ezannoni@redhat.com>
3114
3115 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3116 and its setting. Set gdbarch instruction printing functions
3117 directly. For non-rs6000 case use new function
3118 gdb_print_insn_powerpc.
3119 (gdb_print_insn_powerpc): New function.
3120
3fbeef0b
AC
31212002-07-13 Andrew Cagney <ac131313@redhat.com>
3122
92eb23c5 3123 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3124 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3125 * configure.tgt: Mark d30v-*-* as obsolete.
3126 * d30v-tdep.c: Mark file as obsolete.
3127 * config/d30v/d30v.mt: Ditto.
3128 * config/d30v/tm-d30v.h: Ditto.
3129
aacb1f0a
AS
31302002-07-13 Aidan Skinner <aidan@velvet.net>
3131
3132 * ada-tasks.c (add_task_entry): replace calls to
3133 malloc() with xmalloc
3134 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3135
3136 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3137 ada_finish_decode_line_1, all_sals_for_line
3138 ada_breakpoint_rewrite): replace calls to free() with xfree()
3139
c11d79f2
KB
31402002-07-12 Kevin Buettner <kevinb@redhat.com>
3141
3142 From Nicholas Duffek (with minor changes by Martin Hunt,
3143 Louis Hamilton, and Kevin Buettner):
3144 * aix-thread.c: New file.
3145
8e19ed76
PS
31462002-07-12 Petr Sorfa <petrs@caldera.com>
3147
3148 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3149 complaint for invalid attribute class or form.
3150 (read_func_scope): DW_AT_frame_base
3151 better handling of DW_AT_block*.
3152 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3153 better handling of DW_AT_block*.
3154 (read_common_block): DW_AT_location
3155 better handling of DW_AT_block*.
3156 (read_partial_die): DW_AT_location better handling
3157 of DW_AT_block*.
3158 (new_symbol): DW_AT_external better handling of
3159 DW_AT_block*. Proper initialization of variable
3160 "addr".
3161 (attr_form_is_block): New function that returns true
3162 if the attribute's form is of DW_FORM_block*.
3163
295401f7
DJ
31642002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3165
3166 * valops.c (find_method_list): Remove comment about
3167 removed STATIC_MEMFUNCP argument.
3168 (value_find_oload_method_list): Likewise.
3169
e42dc924
KB
31702002-07-12 Kevin Buettner <kevinb@redhat.com>
3171
3172 From Nicholas Duffek:
3173 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3174 target_new_objfile_hook.
3175
6904b546
KB
31762002-07-12 Kevin Buettner <kevinb@redhat.com>
3177
3178 From Nicholas Duffek:
3179 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3180 csect.
3181
53fe9346
AC
31822002-07-12 Andrew Cagney <cagney@redhat.com>
3183
3184 * MAINTAINERS: Mention --enable-sim-build-warnings.
3185 (m68hc11-elf): Disable sim build warnings.
3186 (m32r-elf): Mark as broken obsolete candidate.
3187 (x86_64-linux-gnu): Mark as buildable with -Werror.
3188 (arm-elf): Change -w to ``,'' which enables warnings but not
3189 -Werror.
3190
af5f3db6
AC
31912002-07-12 Andrew Cagney <ac131313@redhat.com>
3192
3193 * bcache.h: Update copyright.
3194 (struct bstring, struct bcache): Move definition to "bcache.c".
3195 Replaced by opaque declaration.
3196 (bcache_xfree): Replace free_bcache.
3197 (bcache_xmalloc, bcache_memory_used): Declare.
3198
3199 * bcache.c: Update copyright.
3200 (struct bstring, struct bcache): Moved to here from "bcache.h".
3201 Update comments.
3202 (bcache_xmalloc, bcache_memory_used): New functions.
3203 (bcache_xfree): Replace function free_bcache.
3204
3205 * Makefile.in (objfiles.o): Add $(bcache_h).
3206 (objfiles_h): Remove $(bcache_h).
3207 (symfile.o): Add $(bcache_h).
3208
3209 * symmisc.c: Update copyright.
3210 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3211 (print_objfile_statistics): Use bcache_memory_used.
3212
3213 * symfile.c: Include "bcache.h".
3214 (reread_symbols): Use bcache_xfree.
3215 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3216 (add_psymbol_to_list): Pass psymbol_cache by value.
3217 (add_psymbol_with_dem_name_to_list): Ditto.
3218
3219 * objfiles.h: Update copyright.
3220 (struct bcache): Declare opaque. Do not include "bcache.h".
3221 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3222 bcache'' pointers.
3223 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3224
3225 * objfiles.c: Include "bcache.h". Update copyright.
3226 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3227 macro_cache.
3228 (free_objfile): Use bcache_xfree.
3229
444199e7
GS
32302002-07-11 Grace Sainsbury <graces@redhat.com>
3231
3232 * monitor.c (monitor_fetch_register): Make name a constant.
3233 (monitor_store_register): Same.
3234
261397f8
DJ
32352002-07-11 Daniel Jacobowitz <drow@mvista.com>
3236
3237 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3238 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3239 (finish_block) For non-function blocks, hash the symbol table. For
3240 function blocks, mark the symbol table as unhashed.
3241 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3242 (msymbol_hash_iw): Likewise.
3243 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3244 value.
3245 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3246 (lookup_minimal_symbol): Likewise for both.
3247 * symtab.h (struct block): Add `hashtable' flag. Comment the
3248 hashtable.
3249 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3250 (ALL_BLOCK_SYMBOLS): Update.
3251 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3252 (struct symbol): Add `hash_next' pointer.
3253 * symtab.c (lookup_block_symbol): Search using the hash table when
3254 possible.
3255 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3256 (search_symbols, find_addr_symbol): Likewise.
3257
3258 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3259 (read_dst_symtab): Likewise.
3260 * jv-lang.c (get_java_class_symtab): Likewise.
3261 * mdebugread.c: Include "gdb_assert.h".
3262 (shrink_block): Assert that the block being modified is not hashed.
3263 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3264 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3265 symbols.
3266 (dump_symtab): Recognize hashed blocks.
3267 * printcmd.c (print_frame_args): Assert that function blocks do not
3268 have hashed symbol tables.
3269 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3270 (fill_in_ada_prototype, debug_print_block): Likewise.
3271 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3272
6f0eaa01
CV
32732002-07-11 Corinna Vinschen <vinschen@redhat.com>
3274
3275 * stack.c (print_frame): Use result of frame_address_in_block()
3276 instead of fi->pc when evaluating symbols.
3277 (backtrace_command_1): Ditto.
3278
a208b0cb
AC
32792002-07-11 Andrew Cagney <cagney@redhat.com>
3280
3281 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3282 Make static.
3283
3284 * arm-tdep.c (arm_register_name): Make return type constant.
3285
a6b6b089
AC
32862002-07-10 Andrew Cagney <ac131313@redhat.com>
3287
5ae5f592
AC
3288 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3289 prototype.
3290 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3291 * s390-tdep.c (s390_fp_regnum): Ditto.
3292 (s390_read_fp): Ditto.
3293 (s390_pop_frame): Ditto.
3294 (_initialize_s390_tdep): Ditto.
3295 * remote.c (get_remote_state): Ditto.
3296 * procfs.c (mappingflags): Ditto.
3297 * memattr.c (_initialize_mem): Ditto.
3298 * mcore-tdep.c (mcore_pop_frame): Ditto.
3299 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3300 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3301 * language.c (set_case_str): Ditto.
3302 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3303 * frv-tdep.c (new_variant): Ditto.
3304 (frv_stopped_data_address): Ditto.
3305 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3306 (context_alloc): Ditto.
3307 (frame_state_alloc): Ditto.
3308 (unwind_tmp_obstack_init): Ditto.
3309 (unwind_tmp_obstack_free): Ditto.
3310 (cfi_read_fp): Ditto.
3311 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3312 (cris_pop_frame): Ditto.
3313 * c-lang.c (scanning_macro_expansion): Ditto.
3314 (finished_macro_expansion): Ditto.
3315 (c_preprocess_and_parse): Ditto.
3316 * gdbarch.sh: Ditto.
3317 * gdbarch.h, gdbarch.c: Regenerate.
3318 * config/mn10200/tm-mn10200.h: Adjust indentation.
3319 * target.c: Adjust indentation.
3320 * symtab.h: Adjust indentation.
3321 * stabsread.h: Adjust indentation.
3322 * remote-es.c: Adjust indentation.
3323 * os9kread.c: Adjust indentation.
3324
33252002-07-10 Andrew Cagney <ac131313@redhat.com>
3326
a6b6b089
AC
3327 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3328 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3329
a1789893
GS
33302002-07-10 Grace Sainsbury <graces@redhat.com>
3331
3332 * NEWS: Mention m68k, mcore multi-arching.
3333 * MAINTAINERS: Change status of m68k, mcore to reflect
3334 multi-arching.
3335
02f0d45d
DJ
33362002-07-10 Daniel Jacobowitz <drow@mvista.com>
3337
3338 * valops.c (find_overload_match): Free oload_syms.
3339
f15f768e
JB
33402002-07-09 Joel Brobecker <brobecker@gnat.com>
3341
3342 Define HAVE_SYS_PROC_H if sys/proc.h exists
3343 * configure.in: Add check for sys/proc.h
3344 * config.in: Regenerate.
3345 * configure: Regenerate.
3346
902a7139
GS
33472002-07-09 Grace Sainsbury <graces@redhat.com>
3348
3349 * config/m68k/tm-m68k.h: Remove macros wrapped in
3350 #if !GDB_MULTI_ARCH.
3351
a534e424
AC
33522002-07-08 Andrew Cagney <ac131313@redhat.com>
3353
3354 * config.in, configure: Regenerate.
3355
9b94f7bf
MK
33562002-07-08 Mark Kettenis <kettenis@gnu.org>
3357
3358 * dwarf2cfi.c: Include "gcore.h".
3359 (execute_stack_op): Fix implementation of the
3360 DW_OP_deref and DW_OP_deref_size operators by letting do their
3361 lookup in the target.
3362
1d34db41
MK
33632002-07-07 Mark Kettenis <kettenis@gnu.org>
3364
3365 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3366 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3367 tdep->sc_sp_offset.
3368
79d5b63a
DJ
33692002-07-05 Daniel Jacobowitz <drow@mvista.com>
3370
3371 Fix PR gdb/595, gdb/602
3372 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3373 Don't call value_cast, just read the vtable pointer; update comments
3374 to match.
3375
3bb912e8
GS
33762002-07-05 Grace Sainsbury <graces@redhat.com>
3377
3378 * config/mcore/tm-mcore.h: Remove file.
3379 * config/mcore/mcore.mt: Remove definition of TM_FILE
3380 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3381
ca39387d
MK
33822002-07-05 Mark Kettenis <kettenis@gnu.org>
3383
3384 * i386bsd-tdep.c: Include "gdb_string.h".
3385
efdc1108
GS
33862002-07-04 Grace Sainsbury <graces@redhat.com>
3387
3388 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3389 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3390 mcore-tdep.
3391 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3392 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3393 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3394 (RETVAL_REGNUM): Move macros from tm-mcore.h
3395 (mcore_reg_struct_has_addr): New function.
3396 (mcore_gdbarch_init): Added initializations for the macros removed
3397 from tm-mcore.h.
3398
bb21884d
MK
33992002-07-04 Mark Kettenis <kettenis@gnu.org>
3400
3401 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3402 traditonal string branding within the ELF header.
3403
228c6d41
DJ
34042002-07-04 Daniel Jacobowitz <drow@mvista.com>
3405
3406 * symtab.c (remove_params): New function.
3407 (make_symbol_overload_list): Use it instead of cplus_demangle.
3408 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3409
2404952e
MK
34102002-07-04 Mark Kettenis <kettenis@gnu.org>
3411
e5e4acad
MK
3412 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3413
baadce09
MK
3414 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3415 New variables.
3416 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3417 and tdep->sigtramp_end.
3418 * i386obsd-nat.c: New file.
3419 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3420
2404952e
MK
3421 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3422 Don't call get_current_frame().
3423
9b4f1ba7
PM
34242002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3425
3426 * i386-nat.c (child_post_startup_inferior): New function
3427 calling i386_cleanup_dregs if
3428 I386_USE_GENERIC_WATCHPOINTS is defined.
3429 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3430 conditional to acknowledge that i386-nat.c has its
3431 own child_post_startup_inferior function.
3432
c0d1d883
MK
34332002-07-04 Mark Kettenis <kettenis@gnu.org>
3434
00f8375e
MK
3435 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3436 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3437 instead of MAX_REGISTER_RAW_SIZE.
3438 (i386_extract_return_value, i386_extract_struct_value_address):
3439 Convert to use regcache.
3440 (i386_gdbarch_init): Set max_register_raw_size and
3441 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3442 Set extract_return_value and extract_struct_value_address instead
3443 of their deprecated variants.
3444
c0d1d883
MK
3445 Convert i386 target to generic dummy frames.
3446 * i386-tdep.c: Include "symfile.h".
3447 (i386_frameless_signal_p): Consider a function to be frameless if
3448 the pc points at the first instruction of the function.
3449 (i386_frame_chain): Handle (generic) call dummies.
3450 (i386_frame_saved_pc): Likewise.
3451 (i386_frame_init_saved_regs): Remove code dealing with call
3452 dummies on the stack.
3453 (i386_push_dummy_frame): Removed.
3454 (i386_call_dummy_words): Removed.
3455 (i386_fix_call_dummy): Removed.
3456 (i386_push_return_address): New function.
3457 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3458 parameter, and don't call get_current_frame.
3459 (i386_pop_frame): New function.
3460 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3461 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3462 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3463 call_dummy_length to 0, set call_dummy_words to NULL, set
3464 sizeof_call_dummy_words to 0, set fix_call_dummy to
3465 generic_fix_call_dummy, set pc_in_call_dummy to
3466 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3467 generic_push_dummy_frame, set push_return_address to
3468 i386_push_return_address and set frame_chain_valid to
3469 generic_file_frame_chain_valid.
3470
049ee0e4
AC
34712002-07-03 Andrew Cagney <ac131313@redhat.com>
3472
3473 * gdbarch.sh (struct regcache): Add opaque declaration.
3474 (EXTRACT_RETURN_VALUE): New architecture method.
3475 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3476 * gdbarch.h, gdbarch.c: Regenerate.
3477 * arch-utils.c (legacy_extract_return_value): New function.
3478 * arch-utils.h (legacy_extract_return_value): Declare.
3479 * values.c (value_being_returned): Re-enable code handling
3480 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3481 deprecated_grub_regcache_for_registers call to block handling
3482 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3483 (EXTRACT_RETURN_VALUE): Do not define.
3484
4e0d9804
GS
34852002-07-03 Grace Sainsbury <graces@redhat.com>
3486
3487 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3488 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3489 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3490 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3491 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3492 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3493 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3494 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3495 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3496 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3497 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3498 argument so the function fits the prototype in the architecture
3499 vector.
3500 (mcore_pop_frame): Remove argument so the function fits the
3501 prototype. Use get_current_frame instead of the argument.
3502 (mcore_push_arguments): Change type of struct_return so the
3503 function can be used in the architecture vector.
3504 (mcore_store_struct_return): Add.
3505 (mcore_frame_init_saved_regs): Add.
3506 (mcore_gdbarch_init): Add function calls to replace the macros
3507 removed from tm-mcore.h
3508
36160dc4
AC
35092002-07-03 Andrew Cagney <ac131313@redhat.com>
3510
3511 * infcmd.c (print_return_value): Remove compatibility code calling
3512 deprecated_grub_regcache_for_registers.
3513
3514 * values.c: Include "regcache.h".
3515 (value_being_returned): Update. Use
3516 deprecated_grub_regcache_for_registers to extract the register
3517 buffer address.
3518 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3519 ``struct regcache''.
3520 * Makefile.in (values.o): Add dependency on $(regcache_h).
3521
3522 * inferior.h (run_stack_dummy): Change type of second parameter to
3523 a ``struct regcache''.
3524 * valops.c (hand_function_call): Change type of retbuf to ``struct
3525 regcache''. Allocate using regcache_xmalloc, clean using
3526 make_cleanup_regcache_xfree.
3527 * infcmd.c (run_stack_dummy): Update. Use
3528 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3529
3530 * regcache.c (do_regcache_xfree): New function.
3531 (make_cleanup_regcache_xfree): New function.
3532 * regcache.h (make_cleanup_regcache_xfree): Declare.
3533
e64d9b3d
MH
35342002-07-03 Martin M. Hunt <hunt@redhat.com>
3535
4dd79c29
MH
3536 * event-top.c (command_line_handler): Don't read past
3537 beginning of buffer.
e64d9b3d 3538
4dd79c29
MH
35392002-07-03 Martin M. Hunt <hunt@redhat.com>
3540
e64d9b3d
MH
3541 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3542 struct frame_id.
3543 (varobj_create): Store frame_id for root.
3544 (varobj_gen_name): Use xasprintf.
3545 (varobj_update): Save and restore frame using get_frame_id() and
3546 frame_find_by_id().
3547 (create_child): Use xasprintf.
3548 (new_root_variable): Initialize frame_id.
3549 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3550 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3551 to prevent memory leak.
3552
26e6c56a
AC
35532002-07-03 Andrew Cagney <ac131313@redhat.com>
3554
3555 * valops.c (hand_function_call): Move declaration of retbuf to
3556 start of function, allocate using malloc, add a cleanup but before
3557 the inf_status cleanup, cleanup the buffer. Rename local variable
3558 old_chain to inf_status_cleanup.
3559
f436dd25
MH
35602002-07-03 Martin M. Hunt <hunt@redhat.com>
3561
3562 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3563
3564 * cli/cli-decode.c (cmd_func_p): New function.
3565 (cmd_func): New function.
3566
3567 * command.h: Add cmd_func() and cmd_func_p().
3568
4cfe2084
GS
35692002-07-03 Grace Sainsbury <graces@redhat.com>
3570
3571 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3572 (REGISTER_SIZE): Remove.
3573 (MAX_REGISTER_RAW_SIZE): Remove.
3574 (REGISTER_VIRTUAL_TYPE): Remove.
3575 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3576 (REGISTER_NAME): Remove.
3577 (USE_GENERIC_DUMMY_FRAMES): Remove.
3578 (CALL_DUMMY): Remove.
3579 (CALL_DUMMY_START_OFFSET): Remove.
3580 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3581 (CALL_DUMMY_LOCATION): Remove.
3582 (FIX_CALL_DUMMY): Remove.
3583 (CALL_DUMMY_ADDRESS): Remove.
3584 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3585 (SAVE_DUMMY_FRAME_TOS): Remove.
3586 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3587 (mcore_register_virtual_type): New function.
3588 (mcore_register_byte): New function.
3589 (mcore_register_size): New function.
3590 (mcore_register_name): New function.
3591 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3592 macros removed from tm-mcore.h.
3593 (mcore_dump_tdep): Add.
3594 (_initialize_mcore_tdep): Add gdbarch_register call.
3595
4fd667e9
MK
35962002-07-03 Mark Kettenis <kettenis@gnu.org>
3597
3598 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3599 frameless_look_for_prologue, such that we actually call this
3600 function.
3601
42f99ac2
JB
36022002-07-02 Joel Brobecker <brobecker@gnat.com>
3603
3604 * frame.h (frame_address_in_block): New function.
3605
3606 * blockframe.c (frame_address_in_block): New function extracted
3607 from get_frame_block().
3608 (get_frame_block): Use frame_address_in_block().
3609 (block_innermost_frame): Use frame_address_in_block() to match
3610 the frame pc address against the block boundaries rather than
3611 the frame pc directly. This prevents a failure when a frame pc
3612 is actually a return-address pointing immediately after the end
3613 of the given block.
3614
103a1597 36152002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3616
3617 * MAINTAINERS: Add self under write after approval.
3618
36192002-07-02 Grace Sainsbury <graces@redhat.com>
3620
103a1597
GS
3621 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3622 used in architecture vector. The default is
3623 m68k_local_breakpoint_from_pc.
3624 (m68k_local_breakpoint_from_pc): Add.
3625 (enum): Add register numbers from tm-m68k.h.
3626 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3627 vector.
3628 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3629 GDB_MULTI_ARCH_PARTIAL.
3630 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3631 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3632 m68k-tdep.c.
3633 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3634 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3635 to enum in m68k-tdep.c
3636
7a5a0534
JB
36372002-07-02 Joel Brobecker <brobecker@gnat.com>
3638
3639 * solib-osf.c (open_map): Compute the list of shared libraries
3640 loaded by the inferior, rather than the list of libraries loaded
3641 by GDB itself. Otherwise, GDB ends up reading the symbols from
3642 the wrong shared libraries...
3643
6f558d74
MK
36442002-07-02 Mark Kettenis <kettenis@gnu.org>
3645
b7d15bf7
MK
3646 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3647 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3648 macros.
3649 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3650 Remove functions.
3651 (FRAMELESS_SIGNAL): Remove function.
3652 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3653 i386_linux_saved_pc_after_call): Removed.
3654 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3655 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3656 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3657
6bff26de
MK
3658 * i386-tdep.c (i386_frameless_signal_p): New function.
3659 (i386_frame_chain): Deal with frameless signals.
3660 (i386_sigtramp_saved_sp): New function.
3661 (i386_frame_saved_pc): Deal with frameless signals.
3662 (i386_saved_pc_after_call): Make sure the correct value is
3663 returned just after entry into a sigtramp.
3664 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3665 i386fbsd4_sc_sp_offset): New variables.
3666 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3667 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3668 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3669 similiar to what we already did for sc_pc_offset.
3670 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3671 tdep->sc_sp_offset.
3672
6f558d74
MK
3673 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3674
145564b7
ML
36752002-07-02 Michal Ludvig <mludvig@suse.cz>
3676
3677 * config/i386/tm-x86-64linux.h: New.
3678 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3679 definitions.
3680 * config/i386/nm-x86-64.h: Rename to ...
3681 * config/i386/nm-x86-64linux.h: ... this one.
3682 * config/i386/x86-64linux.mh: Reflect the above change.
3683
3a1e71e3
MK
36842002-07-01 Mark Kettenis <kettenis@gnu.org>
3685
21d0e8a4
MK
3686 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3687 with sigcontext_addr. Add sc_sp_offset.
3688 (i386bsd_sigtramp_saved_pc): Remove prototype.
3689 (i386bsd_sicontext_addr): Add prototype.
3690 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3691 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3692 (i386_svr4_sigtramp_saved_pc): Removed.
3693 (i386_svr4_sigcontext_addr): New function.
3694 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3695 Initialize tdep->sigcontext_addr instead. Initialize
3696 tdep->sc_pc_offset and tdep->sc_sp_offset.
3697 (i386_gdbarch_init): Likewise.
3698 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3699 any more.
3700 (i386bsd_sigtramp_saved_pc): Remove function.
3701 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3702 Initialize tdep->sigcontext_addr instead. Initialize
3703 tdep->sc_pc_offset.
3704 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3705 of tdep->sigtramp_saved_pc.
3706 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3707 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3708 instead.
3709
3a1e71e3
MK
3710 * i386-tdep.c (i386_frameless_function_invocation,
3711 i386_frame_num_args, i386_frame_init_saved_regs,
3712 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3713 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3714 i386_extract_return_value, i386_store_return_value,
3715 i386_extract_struct_value_address, i386_register_virtual_type,
3716 i386_register_convertible, i386_register_convert_to_virtual,
3717 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3718 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3719 static.
3720
52e9098c
MK
37212002-07-01 Mark Kettenis <kettenis@gnu.org>
3722
77b13a25
MK
3723 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3724
52e9098c
MK
3725 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3726 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3727 this macro. Include "value.h".
3728
1b372fff
AS
37292002-06-30 Aidan Skinner <aidan@velvet.net>
3730
3731 * ada-exp.tab.c: remove as it's a generated file
3732 * ada-lex.c: remove as it's a generated file
3733
9c5045b5
MK
37342002-06-30 Mark Kettenis <kettenis@gnu.org>
3735
4a93c5bb
MK
3736 * config/i386/tm-i386.h (struct frame_info, struct
3737 frame_saved_regs, struct value, struct type): Remove forward
3738 declarations.
3739
322d4fe0
MK
3740 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3741 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3742 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3743 (FILL_FPXREGSET): Define.
3744
fdd8263d
MK
3745 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3746
482e577b
MK
3747 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3748 i[3456]86-*-netbsd* case.
3749 * config/i386/tm-obsd.h: Removed.
3750 * config/i386/obsd.mt: Removed.
3751 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3752 core-aout.o.
3753 (MH_CFLAGS): Add -DYYDEBUG=0.
3754
6916549a
MK
3755 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3756 i386nbsd_sc_pc_offset on OpenBSD too.
3757
9c5045b5
MK
3758 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3759 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3760 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3761 define.
3762 * i386bsd-tdep.c: Include "arch-utils.h".
3763 (i386bsd_aout_in_solib_call_trampoline): New function.
3764 (i386bsd_init_abi): Set in_solib_call_trampoline to
3765 i386bsd_aout_in_solib_call_trampoline.
3766 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3767 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3768
aa84d1bb
AC
37692002-06-28 Andrew Cagney <ac131313@redhat.com>
3770
3771 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3772 (struct obstack, struct bcache): Add opaque declarations.
3773 * Makefile.in (macrotab_h): Update
3774
b4d83933
AC
37752002-06-28 Andrew Cagney <ac131313@redhat.com>
3776
3777 * blockframe.c (generic_find_dummy_frame): Change return type to
3778 ``struct regcache''.
3779 (struct dummy_frame): Replace field ``registers'' with regcache, a
3780 struct regcache object.
3781 (generic_find_dummy_frame): Update.
3782 (generic_push_dummy_frame): Update. Use regcache_xfree,
3783 regcache_xmalloc and regcache_cpy.
3784 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3785 regcache_xfree.
3786 (deprecated_generic_find_dummy_frame): Update.
3787 (generic_read_register_dummy): Update. Use
3788 regcache_read_as_address.
3789 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3790 (generic_get_saved_register): Update. Use regcache_read.
3791
08c0b5bc
AC
37922002-06-28 Andrew Cagney <ac131313@redhat.com>
3793
3794 * Makefile.in (objfiles_h): Add $(bcache_h).
3795 * objfiles.h: Include "bcache.h".
3796
3797 * Makefile.in (symtab_h): Remove $(bcache_h).
3798 * symtab.h: Do not include "bcache.h".
3799
1f89801a
AC
38002002-06-28 Andrew Cagney <ac131313@redhat.com>
3801
3802 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3803 generic_func_frame_chain_valid.
3804
b9644b58
DB
38052002-06-28 David O'Brien <obrien@FreeBSD.org>
3806
3807 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3808 * config/i386/tm-fbsd.h: Likewise.
3809
dd486634
AC
38102002-06-28 Andrew Cagney <ac131313@redhat.com>
3811
3812 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3813 generic_unwind_get_saved_register.
3814
0b434a00
AC
38152002-06-27 Andrew Cagney <ac131313@redhat.com>
3816
3817 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3818 * regcache.c (supply_register): Add missing argument to
3819 register_buffer call.
3820
f30e5a77
AC
38212002-06-27 Andrew Cagney <ac131313@redhat.com>
3822
3823 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3824 Solaris /bin/grep does not not like it. From Peter Schauer.
3825
9f064c95
TT
38262002-06-26 Tom Tromey <tromey@redhat.com>
3827
3828 * command.h (add_setshow_cmd): Declare.
3829 (add_setshow_cmd_full): Declare.
3830 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3831 returns void. Use add_setshow_cmd_full.
3832 (add_setshow_cmd_full): New function.
3833 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3834 (add_setshow_boolean_cmd): Likewise.
3835
099c7589
JT
38362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3837
3838 * config/vax/tm-vax.h: Protect from multiple inclusion.
3839 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3840 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3841 * config/vax/tm-vaxbsd.h: ...here. New file.
3842 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3843
1d049c5e
JT
38442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3845
3846 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3847 (BELIEVE_PCC_PROMOTION): Remove.
3848 (AP_REGNUM): Move to...
3849 * config/vax/nm-vax.h: ...here.
3850 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3851 (vax_breakpoint_from_pc): New function.
3852 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3853 and gdbarch_believe_pcc_promotion.
3854
4791e091
JT
38552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3856
3857 * Makefile.in (vax_tdep_h): Define.
3858 (vax-tdep.o): Use $(vax_tdep_h).
3859 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3860 (vax_dump_tdep): New function.
3861 (_initialize_vax_tdep): Register vax_dump_tdep.
3862 * vax-tdep.h: Include osabi.h.
3863 (struct gdbarch_tdep): New.
3864
da130f98
AC
38652002-06-26 Andrew Cagney <cagney@redhat.com>
3866
3867 * frame.h (deprecated_generic_find_dummy_frame): Rename
3868 generic_find_dummy_frame.
3869 * blockframe.c (generic_find_dummy_frame): Make static.
3870 (deprecated_generic_find_dummy_frame): New function.
3871 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3872 generic_find_dummy_frame with deprecated_find_dummy_frame.
3873 (sh64_nofp_frame_init_saved_regs): Ditto.
3874 (sh_fp_frame_init_saved_regs): Ditto.
3875 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3876 (s390_frame_chain): Ditto.
3877 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3878
6300c360
GS
38792002-06-26 Grace Sainsbury <graces@redhat.com>
3880
3881 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3882 gdbarch vector are at the top.
3883 (NUM_REGS): Remove.
3884 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3885 (FRAME_ARGS_ADDRESS): Remove.
3886 (FRAME_LOCALS_ADDRESS): Remove.
3887 (FRAME_NUM_ARGS): Remove.
3888 (FRAME_ARGS_SKIP): Remove.
3889 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3890 (m68k_gdbarch_init): Add gdbarch initializations for macros
3891 undefined in tm-m68k.h
3892
1c617db8
GS
38932002-06-26 Grace Sainsbury <graces@redhat.com>
3894
3895 * monitor.h: Add the function regname to monitor_ops
3896 structure. This way NUM_REGS does not have to be a constant.
3897 * monitor.c (monitor_fetch_register): Added support for regname
3898 function. The function is called if the array regnames is NULL.
3899 (monitor_store_register): Same.
da130f98
AC
3900 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3901 regnames array.
1c617db8
GS
3902 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3903 cpu32bug_cmds.regname to point to new function.
3904 * abug-rom.c (abug_regname): Same as above.
3905 (init_abug_cmds): Same.
3906 * dbug-rom.c (dbug_regname): Same as above.
3907 (init_dbug_cmds): Same.
3908 * remote-est.c (est_regname): Same.
3909 (init_est_cmds): Same.
3910 * rom68k-rom.c (rom68k_regname): Same.
3911 (init_rom68k_cmds): Same.
3912
ea9365bb
TT
39132002-06-25 Tom Tromey <tromey@redhat.com>
3914
3915 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3916
72cec141
AC
39172002-06-25 Andrew Cagney <cagney@redhat.com>
3918
3919 * infrun.c (stop_registers): Change variable's type to ``struct
3920 regcache'''.
3921 (xmalloc_inferior_status): Delete function.
3922 (free_inferior_status): Delete function.
3923 (normal_stop): Use regcache_cpy.
3924 (struct inferior_status): Change type of fields ``stop_registers''
3925 and ``registers'' to ``struct regcache''.
3926 (write_inferior_status_register): Use regcache_write.
3927 (save_inferior_status): Instead of calling
3928 xmalloc_inferior_status, allocate the inf_status buffer directly.
3929 Use regcache_dup_no_passthrough and regcache_dup to save the
3930 buffers.
3931 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3932 Replace the stop_registers regcache instead of overriding it. Use
3933 regcache_xfree. Instead of calling free_inferior_status, xfree
3934 the buffer directly.
3935 (discard_inferior_status): Use regcache_xfree. Instead of calling
3936 free_inferior_status, xfree the buffer directly.
3937 (build_infrun): Use regcache_xmalloc.
3938 (_initialize_infrun): Delete redundant call to build_infrun.
3939
3940 * Makefile.in (infcmd.o): Add $(regcache_h).
3941
3942 * infcmd.c: Include "regcache.h".
3943 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3944 obtain the address of `stop_registers' register buffer.
3945 (print_return_value): Ditto.
3946
3947 * inferior.h (struct regcache): Add opaque declaration.
3948 (stop_registers): Change variable's declared type to ``struct
3949 regcache''.
3950
defc6f8c
TT
39512002-06-24 Tom Tromey <tromey@redhat.com>
3952
c0e624e7
TT
3953 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3954 * target.c (initialize_targets): Fixed typo in
3955 trust-readonly-sections `show' documentation.
3956
defc6f8c
TT
3957 * main.c: Marked all strings with _().
3958
2b236d82
DH
39592002-06-24 Don Howard <dhoward@redhat.com>
3960
3961 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3962 that means max CORE_ADDR+1.
3963 (lookup_mem_region): Ditto.
3964 (mem_info_command): Ditto.
3965
942dc0e9
GS
39662002-06-24 Grace Sainsbury <graces@redhat.com>
3967
3968 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3969 (REGISTER_BYTES_OK): Remove.
3970 (REGISTER_BYTES): Remove.
3971 (STORE_STRUCT_RETURN): Remove.
3972 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3973 (STORE_RETURN_VALUE): Remove.
3974 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3975 (FRAME_CHAIN): Remove.
3976 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3977 (FRAME_SAVED_PC): Remove.
3978 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3979 (m68k_store_struct_return): Add.
3980 (m68k_deprecated_extract_return_value): Add.
3981 (m68k_deprecated_extract_struct_value_address): Add.
3982 (m68k_store_return_value): Add.
3983 (m68k_frame_chain): Add.
3984 (m68k_frameless_function_invocation): Add.
3985 (m68k_frame_saved_pc): Add.
3986 (m68k_gdbarch_init): added set_gdbarch calls for new
3987 functions and deleted macros.
3988
03c30d4d
TT
39892002-06-23 Tom Tromey <tromey@redhat.com>
3990
3991 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3992 (ALLDEPFILES): Likewise.
3993 (udiheaders): Removed.
3994 (udip2soc.o): Likewise.
3995 (udi2go32.o): Likewise.
3996 (udr.o): Likewise.
3997 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3998
37e71372
AC
39992002-06-22 Andrew Cagney <ac131313@redhat.com>
4000
06a6ac57
AC
4001 * infrun.c (_initialize_infrun): Delete unnecessary call to
4002 build_infrun.
4003
37e71372
AC
4004 * regcache.h: Update comments describing the regcache_cpy family
4005 of functions.
4006 (regcache_save, regcache_restore): Delete declaration.
4007 (regcache_save_no_passthrough): Delete declaration.
4008 (regcache_restore_no_passthrough): Delete declaration.
4009 * regcache.c (regcache_save): Delete function.
4010 (regcache_save_no_passthrough): Delete function.
4011 (regcache_restore): Delete function.
4012 (regcache_restore_no_passthrough): Delete function.
4013
78f6d055
AC
40142002-06-21 Andrew Cagney <ac131313@redhat.com>
4015
4016 * config/m68k/tm-m68k.h: Fix typo.
4017 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4018 (m68k_frame_init_saved_regs): Declare.
4019
78b119cb
JB
40202002-06-21 Jim Blandy <jimb@redhat.com>
4021
4022 Remove some vestiges of Harris 88k support.
4023 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4024 register numbering quirk.
4025 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4026 odd symbols occurring in Harris 88k ELF targets.
4027
0fbb3da7
TT
40282002-06-21 Tom Tromey <tromey@redhat.com>
4029
4030 * gdb_locale.h: New file.
4031 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4032 (defs_h): Added gdb_locale.h.
4033 * configure, config.in: Rebuilt.
4034 * configure.in (PACKAGE): Define.
4035 * defs.h: Include gdb_locale.h.
4036 * main.c (captured_main): Call setlocale, bindtextdomain,
4037 textdomain.
4038
456f8b9d
DB
40392002-06-21 Dave Brolley <brolley@redhat.com>
4040
4041 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4042 * config/frv/frv.mt: New file.
4043 * config/frv/tm-frv.h: New file.
4044 * configure.tgt: Support frv-*-*.
4045 * Makefile.in (frv-tdep.o): New target.
4046 * frv-tdep.c: New file.
4047 * NEWS: Mention frv.
4048
cdd463f9
DB
40492002-06-21 Dave Brolley <brolley@redhat.com>
4050
4051 * MAINTAINERS: Add self to "Write After Approval" list.
4052
5d3ed2e3
GS
40532002-06-21 Grace Sainsbury <graces@redhat.com>
4054
4055 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4056 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4057 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4058 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4059 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4060
4061 * m68k-tdep.c: Include arch-utils.h
4062 (m68k_register_raw_size): Add.
4063 (m68k_register_virtual_size): Add.
4064 (m68k_register_virtual_type): Add.
4065 (m68k_register_name): Add.
4066 (m68k_stack_align): Add.
4067 (m68k_register_byte): Add.
4068 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4069 tm-m68k.h.
4070
7f8e7424
GS
40712002-06-21 Grace Sainsbury <graces@redhat.com>
4072
a2c6a6d5 4073 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4074 m68k_find_saved_regs.
4075 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4076 references to it with frame->saved_regs.
7f8e7424
GS
4077 (m68k_gdbarch_init): Added function calls to initialize the
4078 gdbarch structure.
a2c6a6d5
GS
4079 (m68k_fix_call_dummy): Add.
4080 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4081 (CALL_DUMMY): Remove.
4082 (CALL_DUMMY_LENGTH): Remove.
4083 (CALL_DUMMY_START_OFFSET): Remove.
4084 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4085 (FIX_CALL_DUMMY): Remove.
4086 (PUSH_DUMMY_FRAME): Remove.
4087 (POP_FRAME): Remove.
7f8e7424 4088
f461f5cf
PM
40892002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4090
4091 * parse.c (parse_fprintf): New function used to avoid calls to
4092 fprintf in bison parser generated debug code.
4093 * parser-defs.h: Declaration of new parse_fprintf function.
4094 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4095 Set YYDEBUG to 1 by default.
4096 Set YYFPRINTF as parse_fprintf.
4097
7f0c12ed
ML
40982002-06-21 Michal Ludvig <mludvig@suse.cz>
4099
4100 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4101 encoding anymore.
4102 (pointer_encoding, enum ptr_encoding): New.
4103 (execute_cfa_program): Take care about pointer encoding.
4104 (dwarf2_build_frame_info): Only call parse_frame_info for
4105 .debug_frame and .eh_frame.
4106 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4107 fixed augmentation handling, added relative addressing,
4108 ignore duplicate FDEs. Added comments.
19d833a2 4109 * dwarf2cfi.c: Reindented.
7f0c12ed 4110
87c4a039
EZ
41112002-06-20 Elena Zannoni <ezannoni@redhat.com>
4112
4113 * event-top.c (command_handler): Don't use space_at_cmd_start
4114 unless there is sbrk() on the host. Assign time and space data
4115 to union fields of the appropriate length.
4116
1cf877ad
ML
41172002-06-20 Michal Ludvig <mludvig@suse.cz>
4118
4119 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4120 x86_64_register_name. Return type changed to 'const char *'.
4121 (x86_64_register_name2nr): Rename to x86_64_register_number.
4122 (x86_64_gdbarch_init): Update to reflect the change.
4123 * x86-64-tdep.h: Ditto.
4124 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4125 (supply_fpregset): Ditto.
4126
3fadccb3
AC
41272002-06-19 Andrew Cagney <cagney@redhat.com>
4128
4129 * regcache.h: Update copyright.
4130 (struct regcache, struct gdbarch): Add opaque declarations.
4131 (current_regcache): Declare global variable.
4132 (regcache_read, regcache_write): Add gdbarch parameter.
4133 (regcache_save, regcache_save_no_passthrough)
4134 (regcache_restore, regcache_restore_no_passthrough)
4135 (regcache_dup, regcache_dup_no_passthrough)
4136 (regcache_cpy, regcache_cpy_no_passthrough)
4137 (deprecated_grub_regcache_for_registers)
4138 (deprecated_grub_regcache_for_register_valid)
4139 (regcache_valid_p): Add function declarations.
4140
4141 * regcache.c: Update copyright.
4142 (regcache_descr_handle): New global variable.
4143 (struct regcache_descr): Define.
4144 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4145 (regcache_descr, xfree_regcache_descr): New functions.
4146 (struct regcache): Define.
4147 (regcache_xmalloc, regcache_xfree): New functions.
4148 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4149 (regcache_dup, regcache_dup_no_passthrough): New functions.
4150 (regcache_valid_p, regcache_read_as_address): New functions.
4151 (deprecated_grub_regcache_for_registers): New function.
4152 (deprecated_grub_regcache_for_register_valid): New function.
4153 (current_regcache): New global variable.
4154 (register_buffer): Add regcache parameter. Update calls.
4155 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4156 (read_register_gen, write_register_gen): Update register_buffer
4157 call. Test for legacy_p instead of gdbarch_register_read_p or
4158 gdbarch_register_write_p.
4159 (regcache_collect): Update register_buffer call.
4160 (build_regcache): Rewrite. Use deprecated grub functions.
4161 (regcache_save, regcache_save_no_passthrough): New functions.
4162 (regcache_restore, regcache_restore_no_passthrough): New
4163 functions.
4164 (_initialize_regcache): Create the regcache_data_handle. Swap
4165 current_regcache global variable.
4166
4167 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4168 parameter to regcache_read and regcache_write calls.
4169 (sh4_register_read): Ditto.
4170 (sh64_pseudo_register_read): Ditto.
4171 (sh64_register_read): Ditto.
4172 (sh_pseudo_register_write): Ditto.
4173 (sh4_register_write): Ditto.
4174 (sh64_pseudo_register_write): Ditto.
4175 (sh64_register_write): Ditto.
4176
4177 * defs.h (XCALLOC): Define.
4178
152d9db6
GS
41792002-06-19 Grace Sainsbury <graces@redhat.com>
4180
4181 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4182 * m68k-tdep.c (m68k_gdbarch_init): Added.
4183 (m68k_dump_tdep): Added.
4184
170911c7
DJ
41852002-06-19 Daniel Jacobowitz <drow@mvista.com>
4186
4187 * ada-lang.c (fill_in_ada_prototype): Update comment.
4188
2e4ebe70
DJ
41892002-06-19 Daniel Jacobowitz <drow@mvista.com>
4190
4191 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4192 MIPS_ABI_LAST.
4193 (mips_abi_string, mips_abi_strings): New.
4194 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4195 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4196 tdep->mips_abi_string. Honor mips_abi_string. Default to
4197 O32 if no ABI is found.
4198 (mips_dump_tdep): Use mips_abi_strings.
4199 (mips_abi_update): New function.
4200 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4201 ``set mips abi'' and ``show mips abi''. Check the size of
4202 mips_abi_strings.
4203
16775908
AC
42042002-06-19 Andrew Cagney <cagney@redhat.com>
4205
4206 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4207 constant.
4208
5051bfa4 42092002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4210
5051bfa4
JB
4211 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4212 current frame using only the first stack size adjustment. All
4213 subsequent size adjustments are not considered to be part of
4214 the "static" part of the current frame.
4215 Compute the address of the saved registers relative to the
4216 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4217 in use in this frame.
4218
56468235
DH
42192002-06-18 Don Howard <dhoward@redhat.com>
4220
4221 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4222 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4223 suggesting this solution.
4224
0b624158
AC
42252002-06-18 Andrew Cagney <ac131313@redhat.com>
4226
4227 * config/romp/xm-rtbsd.h: Delete file.
4228 * config/romp/rtbsd.mh: Delete file.
4229
221ea385
KS
42302002-06-18 Keith Seitz <keiths@redhat.com>
4231
4232 * breakpoint.c (condition_command): Post breakpoint_modify
4233 when a condition is added to an existing breakpoint.
4234 (commands_command): Likewise for commands.
4235 (set_ignore_count): Likewise for ignore counts.
4236 If no tty, do not simply return, still need to send event
4237 notification.
4238 (ignore_command): Only print a newline if the command came
4239 from a tty.
4240 Don't call breakpoints_changed, since this is now properly
4241 handled by set_ignore_count.
4242
5402eed1
AC
42432002-06-18 Andrew Cagney <cagney@redhat.com>
4244
4245 * MAINTAINERS: Note that cris-elf target can be compiled with
4246 -Werror.
4247 * cris-tdep.c (cris_register_name): Make return type constant.
4248 (cris_breakpoint_from_pc): Ditto.
4249
cc22880b
ML
42502002-06-18 Michal Ludvig <mludvig@suse.cz>
4251
4252 * frame.h (struct frame_info): Change type of context to
4253 'struct context'.
4254
fa88f677
AC
42552002-06-17 Andrew Cagney <cagney@redhat.com>
4256
4257 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4258 pointer.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260 * config/mips/tm-mips.h (mips_register_name): Update.
4261 * i386-tdep.h (i386_register_name): Update.
4262 * mips-tdep.c (mips_register_name): Update
4263 * alpha-tdep.c (alpha_register_name): Update.
4264 * arch-utils.c (legacy_register_name): Update.
4265 * arch-utils.h (legacy_register_name): Update.
4266 * avr-tdep.c (avr_register_name): Update.
4267 * ia64-tdep.c (ia64_register_name): Update.
4268 * i386-tdep.c (i386_register_name): Update.
4269 * sparc-tdep.c (sparc32_register_name): Update.
4270 (sparc64_register_name): Update.
4271 (sparclite_register_name): Update.
4272 (sparclet_register_name): Update.
4273 * sh-tdep.c (sh_generic_register_name): Update.
4274 (sh_sh_register_name): Update.
4275 (sh_sh3_register_name): Update.
4276 (sh_sh3e_register_name): Update.
4277 (sh_sh_dsp_register_name): Update.
4278 (sh_sh3_dsp_register_name): Update.
4279 (sh_sh4_register_name): Update.
4280 (sh_sh64_register_name): Update.
4281 * s390-tdep.c (s390_register_name): Update.
4282 * rs6000-tdep.c (rs6000_register_name): Update.
4283 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4284 (ns32k_register_name_32382): Update.
4285 * d10v-tdep.c (d10v_ts2_register_name): Update.
4286 (d10v_ts3_register_name): Update.
4287 * xstormy16-tdep.c (xstormy16_register_name): Update.
4288 * vax-tdep.c (vax_register_name): Update.
4289 * v850-tdep.c (v850_register_name): Update.
4290 * m68hc11-tdep.c (m68hc11_register_name): Update.
4291 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4292 (am33_register_name): Update.
4293
ea1e7ef6
GS
42942002-06-17 Grace Sainsbury <graces@redhat.com>
4295
4296 * m68k-tdep.c: Reindented.
4297
9b02dd1b
AC
42982002-06-17 Andrew Cagney <ac131313@redhat.com>
4299
4300 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4301 list of predefined types.
4302
8758dec1
MK
43032002-06-16 Mark Kettenis <kettenis@gnu.org>
4304
b6197528
MK
4305 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4306 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4307 REGISTER_CONVERT_TO_RAW): Remove defines.
4308 (i386_register_virtual_type, i386_register_convertible,
4309 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4310 Remove prototypes.
4311 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4312 macros mentioned above.
4313
82b47e62
MK
4314 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4315 (i386lynx_saved_pc_after_call): Remove prototype.
4316 * i386ly-tdep.c: Include "i386-tdep.h".
4317 (i386lynx_saved_pc_after_call): Make static. Use
4318 read_memory_nobpt instead of read_memory. Use
4319 read_memory_unsigned_integer instead of read_memory_integer.
4320 (i386lynx_init_abi): New function.
4321 (i386lynx_coff_osabi_sniffer): New function.
4322 (_initialize_i386bsd_tdep): New function.
4323
8758dec1
MK
4324 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4325 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4326 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4327 (i386_fix_call_dummy): Remove prototype.
4328 * i386-tdep.c (i386_call_dummy_words): New variable.
4329 (i386_gdbarch_init): Adjust for removal of the
4330 macros mentioned above.
4331
e9e68a56
AC
43322002-06-15 Andrew Cagney <ac131313@redhat.com>
4333
4334 * command.h (add_setshow_auto_boolean_cmd): Replace
4335 add_set_auto_boolean_cmd.
4336 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4337 add_set_auto_boolean_cmd.
4338 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4339 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4340 mask-address'' command.
4341 (show_mask_address): Add cmd parameter.
4342 * remote.c (add_packet_config_cmd): Update. Change type of
4343 set_func and show_func to cmd_sfunc_ftype.
4344 (_initialize_remote): Update `set remote Z-packet'
4345 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4346 (show_remote_protocol_e_packet_cmd): Ditto.
4347 (show_remote_protocol_E_packet_cmd): Ditto.
4348 (show_remote_protocol_P_packet_cmd): Ditto.
4349 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4350 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4351 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4352 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4353 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4354 (show_remote_protocol_Z_packet_cmd): Ditto.
4355 (show_remote_protocol_binary_download_cmd): Ditto.
4356 (show_remote_cmd): Pass NULL to all of above.
4357
fc08ec52
MK
43582002-06-15 Mark Kettenis <kettenis@gnu.org>
4359
4360 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4361 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4362 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4363 POP_FRAME): Remove defines.
4364 (i386_push_arguments, i386_store_struct_return,
4365 i386_extract_return_value, i386_store_return_value,
4366 i386_extract_struct_value_address, i386_push_dummy_frame,
4367 i386_pop_frame): Renove prototypes.
4368 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4369 macros mentioned above.
4370
e707bbc2
AC
43712002-06-15 Andrew Cagney <ac131313@redhat.com>
4372
4373 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4374 add_set_boolean_cmd.
4375 (add_setshow_cmd): New function.
4376 * command.h (add_setshow_boolean_cmd): Replace
4377 add_set_boolean_cmd.
4378 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4379 and ``set rdiromatzero''.
4380 * maint.c (_initialize_maint_cmds): Update commented out code.
4381 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4382 * target.c (initialize_targets): Update `set
4383 trust-readonly-sections'.
4384 * remote.c (_initialize_remote): Update `set remotebreak'.
4385
42fdc8df
MK
43862002-06-15 Mark Kettenis <kettenis@gnu.org>
4387
93924b6b
MK
4388 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4389 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4390 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4391 fit into multi-arch framework.
4392 (i386_breakpoint_from_pc): New function.
4393 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4394 above.
4395
42fdc8df
MK
4396 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4397 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4398 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4399 (i386_frameless_function_invocation, i386_frame_num_args,
4400 i386_frame_init_saved_regs): Remove prototypes.
4401 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4402 macros mentioned above.
4403
9773a94b
AC
44042002-06-15 Andrew Cagney <ac131313@redhat.com>
4405
4406 * cli/cli-decode.c (set_cmd_cfunc): Update.
4407 (set_cmd_sfunc): Update.
4408 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4409 (set_cmd_sfunc, set_cmd_cfunc): Update.
4410 * cli/cli-decode.h: Update.
4411
6e157172
MK
44122002-06-15 Mark Kettenis <kettenis@gnu.org>
4413
4414 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4415 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4416
7f19b9a2
AC
44172002-06-15 Andrew Cagney <ac131313@redhat.com>
4418
4419 * defs.h (auto_boolean): Declare enum.
4420 * command.h (cmd_auto_boolean): Delete enum.
4421 * mips-tdep.c (mask_address_var): Update.
4422 (mips_mask_address_p): Update.
4423 (show_mask_address): Update.
4424 * remote.c (struct packet_config): Update.
4425 (update_packet_config): Update.
4426 (show_packet_config_cmd): Update.
4427 (packet_ok): Update.
4428 (add_packet_config_cmd): Update.
4429 (_initialize_remote):
4430 * command.h: Update.
4431 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4432 (do_setshow_command): Update.
4433 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4434 * cli/cli-decode.h: Update.
4435
1cf88de5
MK
44362002-06-15 Mark Kettenis <kettenis@gnu.org>
4437
22ba8cf2
MK
4438 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4439 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4440 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4441 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4442 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4443 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4444
762c5349
MK
4445 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4446 list of DJGPP COFF targets.
4447
091198bb
MK
4448 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4449 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4450 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4451 (FP0_REGNUM): Remove define.
4452 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4453 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4454 (i386_register_virtual_size): Remove protoype.
4455 * i386-tdep.c (i386_register_virtual_size): Removed.
4456 (i386_extract_return_value, i386_store_return_value): Use
4457 FP0_REGNUM instead of NUM_FREGS to determine whether the
4458 floating-point registers are available.
4459 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4460 Adjust for removal of macros mentioned above.
4461
44622002-06-15 Mark Kettenis <kettenis@gnu.org>
4463
fcc9bf01
MK
4464 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4465 comments.
4466 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4467 Remove prototypes.
4468 (supply_gregset, fill_gregset): Remove use of register keyword and
4469 remove declaration for regmap. Use I386_NUM_GREGS instead of
4470 NUM_REGS and NUM_FREGS.
4471 (FPREGSET_FSAVE_OFFSET): Remove.
4472 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4473 NUM_FREGS to determine whether the floating-point registers are
4474 available.
4475
65e78234
MK
4476 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4477 gnu_store_registers): Replace usage of NUM_GREGS with
4478 I386_NUM_GREGS.
4479
98df6387
MK
4480 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4481 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4482 usage of NUM_GREGS with I386_NUM_GREGS.
4483
099a9414
MK
4484 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4485
57976e88
MK
4486 * i386bsd-nat.c: Include "i386-tdep.h".
4487 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4488 I386_NUM_GREGS.
4489
b335f4a6
MK
4490 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4491 and associated comment. They no longer make any sense, since we
4492 don't use this file anymore on Linux.
4493
1cf88de5
MK
4494 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4495 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4496 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4497 elements in these arrays.
4498 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4499 MAX_NUM_REGS.
4500
daa66587
MK
45012002-06-15 Mark Kettenis <kettenis@gnu.org>
4502
4503 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4504 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4505
26e9b323
AC
45062002-06-14 Andrew Cagney <cagney@redhat.com>
4507
4508 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4509 EXTRACT_RETURN_VALUE.
4510 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4511 EXTRACT_STRUCT_VALUE_ADDRESS.
4512 * gdbarch.h, gdbarch.c: Regenerate.
4513
4514 * values.c (value_being_returned): Handle
4515 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4516 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4517
4518 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4519 * arm-tdep.c (arm_gdbarch_init): Update.
4520 * avr-tdep.c (avr_gdbarch_init): Update.
4521 * cris-tdep.c (cris_gdbarch_init): Update.
4522 * d10v-tdep.c (d10v_gdbarch_init): Update.
4523 * ia64-tdep.c (ia64_gdbarch_init): Update.
4524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4526 * s390-tdep.c (s390_gdbarch_init): Update.
4527 * sh-tdep.c (sh_gdbarch_init): Update.
4528 * s390-tdep.c (s390_gdbarch_init): Update.
4529 * sparc-tdep.c (sparc_gdbarch_init): Update.
4530 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4531 * v850-tdep.c (v850_gdbarch_init): Update.
4532 * vax-tdep.c (vax_gdbarch_init): Update.
4533 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4535
4536 * config/arc/tm-arc.h: Update.
4537 * config/d30v/tm-d30v.h: Update.
4538 * config/fr30/tm-fr30.h: Update.
4539 * config/h8300/tm-h8300.h: Update.
4540 * config/h8500/tm-h8500.h: Update.
4541 * config/i386/tm-i386.h: Update.
4542 * config/i386/tm-ptx.h: Update.
4543 * config/i386/tm-symmetry.h: Update.
4544 * config/i960/tm-i960.h: Update.
4545 * config/m32r/tm-m32r.h: Update.
4546 * config/m68k/tm-delta68.h: Update.
4547 * config/m68k/tm-linux.h: Update.
4548 * config/m68k/tm-m68k.h: Update.
4549 * config/m88k/tm-m88k.h: Update.
4550 * config/mcore/tm-mcore.h: Update.
4551 * config/mips/tm-mips.h: Update.
4552 * config/mn10200/tm-mn10200.h: Update.
4553 * config/pa/tm-hppa.h: Update.
4554 * config/pa/tm-hppa64.h: Update.
4555 * config/sparc/tm-sp64.h: Update.
4556 * config/sparc/tm-sparc.h: Update.
4557 * config/sparc/tm-sparclet.h: Update.
4558 * config/z8k/tm-z8k.h: Update.
4559
5179e78f
AC
45602002-06-14 Andrew Cagney <cagney@redhat.com>
4561
4562 * Makefile.in (i386_linux_tdep_h): Define.
4563 (i386_tdep_h, i387_tdep_h): Define.
4564 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4565 $(i386_tdep_h) and $(i387_tdep_h).
4566 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4567
8201327c
MK
45682002-06-14 Mark Kettenis <kettenis@gnu.org>
4569
edf393ac
MK
4570 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4571 Already covered by the default.
4572
896fb97d
MK
4573 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4574 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4575 (i386_gdbarch_init): Initialize long_double_format and long_double
4576 bit.
4577
8201327c
MK
4578 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4579 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4580 Move these to ...
4581 * config/i386/i386sol2.mh: ... here.
4582 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4583 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4584 (SIGCONTEXT_PC_OFFSET): Remove define.
4585 (IN_SIGTRAMP): Remove define.
4586 * i386-sol2-tdep.c: New file.
4587
4588 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4589 * config/i386/tm-i386nw.h: Removed.
4590
4591 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4592 USE_STRUCT_CONVENTION): Remove defines.
4593 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4594 (get_longjmp_target): Remove prototype.
4595 (IN_SIGTRAMP): Remove define.
4596 (i386bsd_in_sigtramp): Remove prototype.
4597 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4598 function. Update comment accordingly
4599 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4600 (FRAME_SAVED_PC): Remove define.
4601 (i386bsd_frame_saved_pc): Remove prototype.
4602 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4603 GET_LONGJMP_TARGET): Remove defines.
4604 (get_longjmp_target): Remove prototype.
4605 (IN_SIGTRAMP): Remove define.
4606 (i386bsd_in_sigtramp): Remove prototype.
4607 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4608 function. Update comment accordingly
4609 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4610 (FRAME_SAVED_PC): Remove define.
4611 (i386bsd_frame_saved_pc): Remove prototype.
4612 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4613 Remove prototype.
4614 (USE_STRUCT_CONVENTION): Remove prototype.
4615 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4616 declaration.
4617 (_initialize_i386bsd_nat): Revise logic to determine some
4618 constants at compile time when compiling a native GDB. Warn if
4619 things don't match up with what we expect.
4620 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4621 Remove variables.
4622 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4623 to use date stored in `struct gdbarch_tdep'.
4624 (i386bsd_sigcontext_offset): Remove varaible.
4625 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4626 stored in `struct gdbarch_tdep'.
4627 (i386bsd_frame_saved_pc): Make static.
4628 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4629 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4630 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4631 i386fbsd4_sc_pc_offset): New variables.
4632 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4633 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4634 functions.
4635 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4636 functions.
4637 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4638 Modify the value of i386fbsd_sigtramp_start and
4639 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4640 i386fbsd_sigtramp_end.
4641 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4642 function.
4643
4644 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4645 define to i386-linux-tdep.h.
4646 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4647 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4648 defines.
4649 (i386_linux_register_name, i386_linux_register_byte,
4650 i386_linux_register_raw_size): Remove prototypes.
4651 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4652 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4653 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4654 TARGET_WRITE_PC): Remove defines.
4655 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4656 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4657 i386_linux_write_pc): Remove prototypes.
4658 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4659 (get_longjmp_target): Remove prototype.
4660 * i386-linux-tdep.h: New file.
4661 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4662 * i386-linux-tdep.c: Include "i386-tdep.h" and
4663 "i386-linux-tdep.h".
4664 (i386_linux_register_name, i386_linux_register_byte,
4665 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4666 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4667 Make static.
4668 (i386_linux_init_abi): New function.
4669 (_initialize_i386_linux_tdep): New function.
4670
4671 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4672 (i386_saved_pc_after_call): Remove prototype.
4673 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4674 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4675 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4676 (i386_register_name, i386_stab_reg_to_regnum,
4677 i386_dwarf_reg_to_regnum): Remove prototypes.
4678 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4679 SIZEOF_SSE_REGS): Remove defines.
4680 (REGISTER_BYTES): Remove define.
4681 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4682 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4683 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4684 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4685 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4686 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4687 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4688 (get_longjmp_target): Remove prototype.
4689 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4690 (sigtramp_saved_pc): Remove define.
4691 (i386v4_sigtramp_saved_pc): Remove prototype.
4692 * config/i386/tm-go32.h (FRAME_CHAIN,
4693 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4694 (i386go32_frame_saved_pc): Remove prototype.
4695 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4696 (get_longjmp_target): Remove prototype.
4697 * i386-tdep.h: Include "osabi.h".
4698 (enum i386_abi): Removed.
4699 (enum struct_return): New enum.
4700 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4701 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4702 sc_pc_offset members.
4703 (i386_gdbarch_register_os_abi): Remove prototype.
4704 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4705 I386_SSE_NUM_REGS): New defines.
4706 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4707 I386_SSE_SIZEOF_REGS): New defines.
4708 (i386_register_name, i386_register_byte, i386_register_raw_size):
4709 New prototypes.
4710 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4711 (i386bsd_sigtramp_saved_pc): New prototype.
4712 * i386-tdep.c: Don't include "elf-bfd.h".
4713 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4714 i386_frame_chain, i386_saved_pc_after_call): Make static.
4715 (i386_frame_saved_pc): Rewrite to call architecture dependent
4716 function to deal with signal handlers. Make static.
4717 (i386go32_frame_saved_pc): Removed.
4718 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4719 Removed.
4720 (i386_get_longjmp_target): New function.
4721 (default_struct_convention, pcc_struct_convention,
4722 reg_struct_convention, valid_conventions, struct_convention): New
4723 variables.
4724 (i386_use_struct_convention): New function.
4725 (i386v4_sigtramp_saved_pc): Renamed to
4726 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4727 (i386_pc_in_sigtramp): New function.
4728 (i386_abi_names): Removed.
4729 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4730 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4731 Removed.
4732 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4733 i386_gdbarch_register_os_abi): Removed.
4734 (struct i386_abi_handler): Removed.
4735 (i386_abi_handler_list): Removed.
4736 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4737 functions.
4738 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4739 i386_nw_init_abi): New functions.
4740 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4741 Use set_gdbarch_xxx() calls instead of relying on macros for a
4742 number of calls.
4743 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4744 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4745 Register the various architecture variants defined in this file.
4746
ad2f7632
DJ
47472002-06-14 Daniel Jacobowitz <drow@mvista.com>
4748
4749 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4750 (struct main_type): Remove arg_types member. Update comments for
4751 struct field.
4752 (TYPE_ARG_TYPES): Remove.
4753 (TYPE_FN_FIELD_ARGS): Update.
4754 (smash_to_method_type): Update prototype.
4755
4756 * c-typeprint.c (cp_type_print_method_args): Take method type
4757 instead of argument list. Use new argument layout. Simplify.
4758 (c_type_print_args): Use new argument layout. Simplify.
4759 (c_type_print_base): Update call to cp_type_print_method_args.
4760 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4761 argument; use die->type instead. Update call to
4762 smash_to_method_type.
4763 (read_structure_scope): Update call to dwarf2_add_member_fn.
4764 * gdbtypes.c (allocate_stub_method): Update comment.
4765 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4766 Use new argument layout.
4767 (check_stub_method): Use new argument layout. Don't count
4768 void as an argument.
4769 (print_arg_types): Update comments. Use new argument layout.
4770 (recursive_dump_type): Don't print arg_types member.
4771 * hpread.c (hpread_read_struct_type): Use new argument layout.
4772 (fixup_class_method_type): Likewise.
4773 (hpread_type_lookup): Likewise.
4774 * stabsread.c (read_type): Update calls to read_args and
4775 smash_to_method_type.
4776 (read_args): Use new argument layout. Simplify.
4777 * valops.c (typecmp): Use new argument layout. Update parameters
4778 and comments. Simplify.
4779 (hand_function_call): Use new argument layout.
4780 (search_struct_method): Update call to typecmp.
4781 (find_overload_match): Use new argument layout.
4782
6da02953
DJ
47832002-06-13 Daniel Jacobowitz <drow@mvista.com>
4784
4785 * NEWS: Mention multithreaded debug support for gdbserver.
4786
519b2366
DJ
47872002-06-13 Daniel Jacobowitz <drow@mvista.com>
4788
4789 * MAINTAINERS: Mention NEWS.
4790
6c0d6680
DJ
47912002-06-13 Daniel Jacobowitz <drow@mvista.com>
4792
4793 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4794 (struct mips_objfile_private, compare_pdr_entries): New.
4795 (non_heuristic_proc_desc): Read the ".pdr" section if it
4796 is present.
4797
6529d2dd
AC
47982002-06-12 Andrew Cagney <ac131313@redhat.com>
4799
4800 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4801 (arm_debug): New static variable.
4802 (_initialize_arm_tdep): Add ``set debug arm'' command.
4803
26216b98
AC
48042002-06-12 Andrew Cagney <ac131313@redhat.com>
4805
4806 * Makefile.in (sim_arm_h): Define.
4807 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4808 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4809 (arm_register_sim_regno): New function, map an internal REGNUM
4810 onto a simulator register number.
4811 (arm_gdbarch_init): Set register_sim_regno.
4812
814b3ba0
AH
48132002-06-09 Aldy Hernandez <aldyh@redhat.com>
4814
4815 * MAINTAINERS: Add self.
4816
475b0867
JB
48172002-06-11 Jim Blandy <jimb@redhat.com>
4818
919d772c
JB
4819 * source.c (source_info): Mention whether the symtab has
4820 information about preprocessor macros.
4821
475b0867
JB
4822 Call the command `info macro', not `show macro'.
4823 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4824 Fix error message.
4825 (_initialize_macrocmd): Register `info_macro_command' in
4826 `infolist', not `showlist'.
4827
9e364162
DJ
48282002-06-11 Daniel Jacobowitz <drow@mvista.com>
4829
4830 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4831 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4832 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4833 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4834 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4835 unconditionally.
4836 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4837 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4838 (_initialize_mips_tdep): Remove dead code.
4839 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4840 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4841 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4842 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4843 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4844 MIPS_LAST_FP_ARG_REGNUM): Remove.
4845
23aa4c72
ML
48462002-06-11 Michal Ludvig <mludvig@suse.cz>
4847
4848 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4849 (unwind_tmp_obstack_free, parse_frame_info)
4850 (update_context, cfi_read_fp, cfi_write_fp)
4851 (cfi_frame_chain, cfi_init_extra_frame_info)
4852 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4853 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4854
70eb15a4
CV
48552002-06-11 Corinna Vinschen <vinschen@redhat.com>
4856
4857 * v850-tdep.c (v850_type_is_scalar): New function.
4858 (v850_use_struct_convention): Match current gcc implementation
4859 as close as possible.
4860 (v850_push_arguments): Fix stack_offset handling. Don't write
4861 struct_addr into register. This is done by v850_store_struct_return.
4862 (v850_extract_return_value): Care for structs.
4863 (v850_store_return_value): Ditto.
4864 (v850_store_struct_return): Actually write address.
4865
482a4d06
ML
48662002-06-11 Michal Ludvig <mludvig@suse.cz>
4867
4868 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4869 without debug information too.
4870
d855c300
AC
48712002-06-10 Andrew Cagney <ac131313@redhat.com>
4872
4873 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4874 Make multi-arch pure.
4875 * gdbarch.h, gdbarch.c: Re-generate.
4876 * arm-tdep.c (arm_print_float_info): Update.
4877 * arch-utils.h (default_print_float_info): Update.
4878 * arch-utils.c (default_print_float_info): Update.
4879 * infcmd.c (float_info): Update call.
4880
dd12a101
AC
48812002-06-10 Andrew Cagney <ac131313@redhat.com>
4882
4883 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4884 the front of the initialize list.
4885
101dcfbe
AC
48862002-06-10 Andrew Cagney <ac131313@redhat.com>
4887
4888 * infrun.c (struct inferior_status): Replace fields
4889 selected_frame_address and selected_level with field
4890 selected_frame_id.
4891 (save_inferior_status): Update. Use get_frame_id.
4892 (struct restore_selected_frame_args): Delete.
4893 (restore_selected_frame): Update. Use frame_find_by_id.
4894 (restore_inferior_status): Update.
4895
4896 * breakpoint.h (struct breakpoint): Change type of
4897 watchpoint_frame to frame_id.
4898 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4899 call to get_current_frame.
4900 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4901 get_current_frame.
4902 (watchpoint_check): Use frame_find_by_id.
4903
4904 * frame.h (record_selected_frame): Delete declaration.
4905 * stack.c (record_selected_frame): Delete function.
4906
4907 * frame.h (struct frame_id): Define.
4908 (get_frame_id): Declare.
4909 (frame_find_by_id): Declare.
4910 * frame.c (frame_find_by_id): New function.
4911 (get_frame_id): New function.
4912
304270b6
AV
49132002-06-10 Andrey Volkov <avolkov@transas.com>
4914
4915 * ser-e7kpc.c: Fix duplicated define and call of
4916 _initialize_ser_e7000pc
4917
2f2cf184
DJ
49182002-06-09 Daniel Jacobowitz <drow@mvista.com>
4919
4920 * signals/signals.c (target_signal_from_host): Fix #ifdef
4921 SIGRTMIN case.
4922 (do_target_signal_to_host): Likewise.
4923
caaa3122
DJ
49242002-06-09 Daniel Jacobowitz <drow@mvista.com>
4925
4926 * mips-tdep.c (mips_find_abi_section): New function.
4927 (mips_gdbarch_init): Call it.
4928
6ac5df3a
MK
49292002-06-09 Mark Kettenis <kettenis@gnu.org>
4930
4931 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4932 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4933 after Andrew's 2002-06-08 gdbarch change.
4934
82ea117a
MK
49352002-06-09 Mark Kettenis <kettenis@gnu.org>
4936
4937 * i386-linux-nat.c (suppy_gregset): Don't supply
4938 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4939 register cache.
4940 (fill_gregset): Don't fetch it under the same circumstances.
4941
3c25f8c7
AC
49422002-06-09 Andrew Cagney <cagney@redhat.com>
4943
4944 * Makefile.in (callback_h): Define.
4945 (remote_sim_h): Update path to remote-sim.h.
4946 (remote-rdp.o): Add $(callback_h).
4947 (remote-sim.o): Use $(callback_h).
4948 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4949 * remote-rdp.c: Include "gdb/callback.h".
4950
1029b7fa
MK
49512002-06-09 Mark Kettenis <kettenis@gnu.org>
4952
4953 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4954 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4955
616675d3
AC
49562002-06-08 Andrew Cagney <ac131313@redhat.com>
4957
a3efda28
AC
4958 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4959 * rdi-share/serpardr.c: Ditto.
4960 * rdi-share/unixcomm.c: Ditto.
4961 * rdi-share/serdrv.c: Ditto.
4962 * rdi-share/hostchan.h: Ditto.
4963 * rdi-share/hostchan.c: Ditto.
4964 * rdi-share/host.h: Ditto.
4965 * rdi-share/devsw.c: Ditto.
4966
c5f10366
AC
4967 * objfiles.h: Change type of obj_private to void pointer.
4968 * pa64solib.c: Update copyright. Don't include "assert.h", use
4969 strcmp instead of STREQ, use LONGEST, do not use PTR
4970 * somsolib.c: Ditto.
4971
616675d3
AC
4972 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4973 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4974 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4975
e4b415d9
AC
49762002-06-08 Andrew Cagney <ac131313@redhat.com>
4977
4978 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4979 (default_get_saved_register): Delete function.
4980 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4981 generic_unwind_get_saved_register.
4982 * gdbarch.h, gdbarch.c: Re-generate.
4983
ca0d0b52
AC
49842002-06-08 Andrew Cagney <ac131313@redhat.com>
4985
4986 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4987 generic_func_frame_chain_valid.
4988 * gdbarch.h, gdbarch.c: Re-generate.
4989 * blockframe.c (generic_func_frame_chain_valid): Only check
4990 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4991 passing FP to PC_IN_CALL_DUMMY.
4992 Fix PR gdb/360.
4993
76860b5f
AC
49942002-06-08 Andrew Cagney <ac131313@redhat.com>
4995
4996 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4997 (register_gdbarch_data): Initialize init_p.
4998 (gdbarch_data): Initialize data pointer using the init function.
4999 (init_gdbarch_data): Delete function.
5000 (gdbarch_update_p): Update.
5001 (initialize_non_multiarch): Update.
5002 (struct gdbarch): Add field initialized_p.
5003 * gdbarch.h, gdbarch.c: Re-generate.
5004
8dda9770
ML
50052002-06-07 Michal Ludvig <mludvig@suse.cz>
5006
5007 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5008 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5009 better do the things actually here.
5010 * x86-64-tdep.c (x86_64_register_name2nr): New.
5011 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5012 (x86_64_gdbarch_init): Respect the above change.
5013 * x86-64-tdep.h (x86_64_register_name2nr)
5014 (x86_64_register_nr2name): Add prototypes.
5015 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5016
3d79a47c
MS
50172002-06-06 Michael Snyder <msnyder@redhat.com>
5018
7bd91a28
MS
5019 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5020 Delete extra braces and re-indent.
5021 (d10v_store_return_value): Char return values
3d79a47c
MS
5022 must be shifted over by one byte in R0.
5023 (d10v_extract_return_value): Delete extra braces, re-indent.
5024
095a4c96
EZ
50252002-06-06 Elena Zannoni <ezannoni@redhat.com>
5026
5027 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5028 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5029 (d10v_integer_to_address): Rewrite.
5030 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5031 the d10v specific functions which take care of converting to the
5032 correct space.
5033
e8a77ca4
EZ
50342002-06-06 Elena Zannoni <ezannoni@redhat.com>
5035
5036 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5037 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5038
4f2e4a4f
AC
50392002-06-02 Andrew Cagney <ac131313@redhat.com>
5040
5041 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5042 includes.
5043 * config/tm-linux.h: Ditto.
5044 * config/alpha/tm-alphalinux.h: Ditto.
5045 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5046 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5047 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5048 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5049 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5050 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5051 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5052 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5053 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5054 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5055 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5056 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5057 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5058 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5059 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5060 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5061 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5062 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5063 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5064 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5065 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5066 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5067 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5068 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5069 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5070 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5071 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5072 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5073 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5074 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5075 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5076 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5077 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5078 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5079 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5080 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5081 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5082
ae2ab2ce
AS
50832002-05-04 Aidan Skinner <aidan@velvet.net>
5084
5085 * ada-exp.tab.c: New file
5086 * ada-exp.y: New file
5087 * ada-lang.c: New file
5088 * ada-lang.h: New file
5089 * ada-lex.c: New file
5090 * ada-lex.l: New file
5091 * ada-tasks.c: New file
5092 * ada-typeprint.c: New file
5093 * ada-valprint.c: New file
5094
0ddd0135
JT
50952002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5096
5097 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5098 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5099
750fbacc
JT
51002002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5101
5102 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5103 insetead of ppc-linux-tdep.o.
5104 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5105 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5106
df94e18a
AC
51072002-06-02 Andrew Cagney <ac131313@redhat.com>
5108
5109 2002-05-07 Christian Groessler <chris@groessler.org>
5110 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5111 bit register contents for little endian hosts.
5112
1a38ab75
AC
51132002-06-01 Andrew Cagney <ac131313@redhat.com>
5114
5115 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5116 any maintainer.
5117
8b1632ac
AC
51182002-06-01 Andrew Cagney <ac131313@redhat.com>
5119
5120 * gdbarch.h: Regenerate.
5121
627054c8
AC
51222002-06-01 Andrew Cagney <ac131313@redhat.com>
5123
5124 * MAINTAINERS: Add everyone to write-after-approval list.
5125
4f460812
AC
51262002-06-01 Andrew Cagney <ac131313@redhat.com>
5127
5128 * stack.c (frame_info): Use frame_register_unwind instead of
5129 saved_regs. Mention when the SP is on the stack or in a register.
5130
5131 * frame.h (frame_register_unwind_ftype): Define. Document.
5132 (struct frame_info): Add field register_unwind and
5133 register_unwind_cache.
5134 (frame_register_unwind): Declare.
5135 (generic_unwind_get_saved_register): Declare.
5136
5137 * frame.c (frame_register_unwind): New function.
5138 (generic_unwind_get_saved_register): New function.
5139
5140 * blockframe.c (generic_call_dummy_register_unwind): New function.
5141 (frame_saved_regs_register_unwind): New function.
5142 (set_unwind_by_pc): New function.
5143 (create_new_frame): New function.
5144 (get_prev_frame): New function.
5145
de888f76
AC
51462002-05-30 Andrew Cagney <ac131313@redhat.com>
5147
5148 * a29k-share/: Delete directory.
5149 * remote-vx29k.c: Delete file.
5150
2f2c3626
JT
51512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5152
5153 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5154 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5155
9ce5c36a
JT
51562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5157
5158 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5159 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5160 (sparc64nbsd-nat.o)
5161 (sparcnbsd-nat.o)
5162 (sparcnbsd-tdep.o): New dependency lists.
5163 * NEWS: Note new UltraSPARC NetBSD native configuration.
5164 * configure.host (sparc64-*-netbsd*): New host.
5165 * configure.tgt (sparc-*-netbsdelf*)
5166 (sparc-*-netbsd*): Set gdb_target to nbsd.
5167 (sparc64-*-netbsd*): New target.
5168 * sparc64nbsd-nat.c: New file.
5169 * sparcnbsd-nat.c: New file.
5170 * sparcnbsd-tdep.c: New file.
5171 * sparcnbsd-tdep.h: New file.
5172 * config/sparc/nbsd.mt: New file.
5173 * config/sparc/nbsd64.mh: New file.
5174 * config/sparc/nbsd64.mt: New file.
5175 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5176 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5177 (HOST_IPC): Remove.
5178 * config/sparc/nbsdaout.mt: Remove.
5179 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5180 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5181 (HOST_IPC): Remove.
5182 * config/sparc/nbsdelf.mt: Remove.
5183 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5184 sparc-nat.c compatiblity defines.
5185 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5186 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5187 * config/sparc/tm-nbsd64.h: New file.
5188 * config/sparc/tm-nbsdaout.h: Remove.
5189 * config/sparc/xm-nbsd.h: Remove.
5190
ef3cf062
JT
51912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5192
5193 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5194 * sparc-tdep.c: Include osabi.h.
5195 (gdbarch_tdep): Add osabi member.
5196 (_initialize_sparc_tdep): Use gdbarch_register.
5197 (sparc_gdbarch_init): Use generic OS ABI framework.
5198 (sparc_dump_tdep): New function.
5199
ee8ff470
KB
52002002-05-30 Kevin Buettner <kevinb@redhat.com>
5201
5202 * corefile.c (do_captured_read_memory_integer): Return non-zero
5203 result.
5204 (safe_read_memory_integer): Copy result of memory read when
5205 status is non-zero. Also, add comments.
5206
7b112f9c
JT
52072002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5208
5209 * Makefile.in (ppc_tdep_h): Define.
5210 (ppc-linux-nat.o)
5211 (ppc-linux-tdep.o)
5212 (rs6000-tdep.o): Use $(ppc_tdep_h).
5213 (ppc-sysv-tdep.o)
5214 (ppcnbsd-nat.o)
5215 (ppcnbsd-tdep.o): New dependency lists.
5216 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5217 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5218 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5219 (ppc_sysv_abi_broken_use_struct_convention)
5220 (ppc_sysv_abi_use_struct_convention)
5221 (ppc_sysv_abi_push_arguments): Move to...
5222 * ppc-sysv-tdep.c: ...here.
5223 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5224 * rs6000-tdep.c (process_note_abi_tag_sections)
5225 (get_elfosabi): Remove.
5226 (rs6000_gdbarch_init): Use generic OS ABI framework.
5227 (rs6000_dump_tdep): New function.
5228 (_initialize_rs6000_tdep): Use gdbarch_register.
5229 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5230 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5231 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5232 of ppc-linux-tdep.o.
5233 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5234 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5235 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5236 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5237 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5238 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5239
480dd42a
JB
52402002-05-29 Jim Blandy <jimb@redhat.com>
5241
5242 * macroscope.c (default_macro_scope): Put `void' in empty argument
5243 list.
5244
4182591f
AC
52452002-05-29 Andrew Cagney <ac131313@redhat.com>
5246
5247 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5248 * arch-utils.c: Include "sim-regno.h".
5249 * gdbarch.sh: Don't include "sim-regno.h".
5250 * gdbarch.h, gdbarch.c: Regenerate.
5251 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5252 here.
5253 * arch-utils.h (legacy_register_sim_regno): To here.
5254 * remote-sim.c (legacy_register_sim_regno): Move function from
5255 here.
5256 * arch-utils.c (legacy_register_sim_regno): To here.
5257
8238d0bf
AC
52582002-05-28 Andrew Cagney <ac131313@redhat.com>
5259
5260 * sim-regno.h: New file.
5261 * Makefile.in (sim_regno_h): Define.
5262 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5263 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5264 (legacy_register_sim_regno): New function.
5265 (one2one_register_sim_regno): New function.
5266 (gdbsim_fetch_register): Rewrite.
5267 (gdbsim_store_register): Only store a register when
5268 REGISTER_SIM_REGNO is valid.
5269 * d10v-tdep.c: Include "sim-regno.h".
5270 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5271 (d10v_ts3_register_sim_regno): Ditto.
5272 * gdbarch.sh: Include "sim-regno.h".
5273 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5274 * gdbarch.h, gdbarch.c: Regenerate.
5275 * arch-utils.h (default_register_sim_regno): Delete declaration.
5276 * arch-utils.c (default_register_sim_regno): Delete function.
5277
485721b1
JT
52782002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5279
5280 * ppcnbsd-nat.c: Rewrite.
5281 * ppcnbsd-tdep.c: New file.
5282 * ppcnbsd-tdep.h: New file.
5283 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5284 solib.o, and solib-svr4.o.
5285 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5286 nbsd-tdep.o, and corelow.o.
5287
697f244d
AC
52882002-05-28 Andrew Cagney <ac131313@redhat.com>
5289
5290 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5291 `tr' and `sed'. Mention that `broken' targets are not expected to
5292 build.
5293
f08caad1 52942002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5295
5296 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5297 Let PC point right after the prologue before looking up symbols.
5298
3139facc
MH
52992002-05-27 Martin M. Hunt <hunt@redhat.com>
5300
5301 * i386-tdep.c (i386_register_virtual_type): Return
5302 builtin_type_vec128i for SSE registers.
5303
5304 * gdbtypes.h (builtin_type_vec128i): Declare.
5305
5306 * gdbtypes.c (build_builtin_type_vec128i): New function.
5307 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5308 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5309 (build_gdbtypes): Initialize new builtin vector types.
5310 (_initialize_gdbtypes): Register new vector types with gdbarch.
5311
6e3ba3b8
JT
53122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5313
5314 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5315 since it has been multi-arch'd.
5316 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5317 Move Alpha and VAX multi-arch news entries to same section
5318 as other multi-arch news.
5319
93d5585d
JT
53202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5321
5322 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5323 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5324 static. Rename some register numbers to put them in ns32k-tdep
5325 private namespace.
5326 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5327 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5328 functions.
5329 (_initialize_ns32k_tdep): Use gdbarch_register.
5330 * ns32k-tdep.h: New file.
5331 * ns32knbsd-tdep.c: New file.
5332 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5333 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5334 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5335 REGISTER_BYTES, REGISTER_BYTE): Remove.
5336 * config/ns32k/tm-ns32k.h: New file.
5337 * config/ns32k/tm-umax.h: Remove.
5338
efb2c70e
JT
53392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5340
5341 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5342 ns32k_store_struct_return, ns32k_extract_return_value,
5343 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5344 functions.
5345 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5346 ns32k_saved_pc_after_call.
5347 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5348 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5349 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5350 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5351 ns32k_extract_struct_value_address.
5352
7bcc927b
JT
53532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5354
5355 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5356 ns32k_fix_call_dummy): New.
5357 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5358 ns32k_call_dummy_words.
5359 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5360 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5361 CALL_DUMMY_NARGS): Remove.
5362 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5363
78f9d765
JT
53642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5365
5366 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5367 ns32k_frame_saved_pc, ns32k_frame_args_address,
5368 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5369 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5370 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5371 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5372 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5373 (BREAKPOINT): Remove..
5374 (FRAME_CHAIN): Define as ns32k_frame_chain.
5375 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5376 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5377 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5378 (FRAME_FIND_SAVED_REGS): Remove.
5379 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5380 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5381 (POP_FRAME): Define as ns32k_pop_frame.
5382
f2c762e0
JT
53832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5384
5385 * ns32k-tdep.c (ns32k_register_byte_32082,
5386 ns32k_register_byte_32382, ns32k_register_raw_size,
5387 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5388 functions.
5389 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5390 ns32k_register_byte_32382.
5391 * config/ns32k/tm-umax.h: Update copyright years.
5392 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5393 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5394 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5395 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5396 (ns32k_get_enter_addr): Fix prototype.
5397
af137673
JT
53982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5399
5400 * ns32k-tdep.c: Update copyright years.
5401 (ns32k_register_name_32082): New function.
5402 (ns32k_register_name_32382): Ditto.
5403 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5404 (REGISTER_NAME): Define as ns32k_register_name_32382.
5405 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5406 (REGISTER_NAME): Define as ns32k_register_name_32082.
5407
a8bc7b56
JB
54082002-05-24 Jim Blandy <jimb@redhat.com>
5409
5410 * dwarf2read.c (free_line_header): Use xfree, not free.
5411
83a45910
JT
54122002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5413
5414 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5415 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5416
0db71247
AC
54172002-05-23 Andrew Cagney <ac131313@redhat.com>
5418
5419 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5420
b9e5e4dd
AC
54212002-05-23 Andrew Cagney <ac131313@redhat.com>
5422
5423 From Ross Alexander at NEC Europe:
5424 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5425
de530e84
MS
54262002-05-23 Michael Snyder <msnyder@redhat.com>
5427
5428 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5429 for input, rather than parse_and_eval_address.
5430
b91b96f4
AC
54312002-05-23 Andrew Cagney <ac131313@redhat.com>
5432
5433 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5434 * Makefile.in (sim_d10v_h): Update definition.
5435
8b279e7a
AC
54362002-05-24 Andrew Cagney <cagney@redhat.com>
5437
5438 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5439 change `2002-05-22 Michael Snyder' below.
5440 (d10v_push_arguments): Ditto.
5441 (d10v_extract_return_value): Ditto.
5442
0a3d0425
JB
54432002-05-23 Jim Blandy <jimb@redhat.com>
5444
5445 * macrotab.c (check_for_redefinition): Don't complain if the new
5446 definition is the same as the previous one. Take more arguments
5447 to allow the comparison.
5448 (macro_define_object, macro_define_function): Pass more arguments
5449 to check_for_redefinition.
5450
78eac43e
MS
54512002-05-22 Michael Snyder <msnyder@redhat.com>
5452
5453 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5454 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5455 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5456 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5457 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5458 Add a temp variable to save a call (and a memory read).
5459 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5460 if possible (so that PC_IN_CALL_DUMMY will work).
5461
9bc1edb8
CV
54622002-05-22 Corinna Vinschen <vinschen@redhat.com>
5463
5464 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5465
005ef3d2
ML
54662002-05-22 Michal Ludvig <mludvig@suse.cz>
5467
5468 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5469 fde->cie_ptr.
5470 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5471 (dwarf2_build_frame_info): Add offset to fde->initial_location
5472 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5473 (execute_stack_op): Change type of 'result' from ULONGEST to
5474 CORE_ADDR.
005ef3d2 5475
fcf4f891
JT
54762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5477
5478 * config/alpha/tm-nbsd.h: Include solib.h.
5479
cfef91e4
JT
54802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5481
5482 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5483 assumptions about the host's byte order.
5484
9964235a
JT
54852002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5486
5487 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5488 to dependency list.
5489 * alphanbsd-tdep.c: Include solib-svr4.h.
5490 * shnbsd-tdep.c: Ditto.
5491
9eeef8ef
JT
54922002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5493
5494 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5495 nbsd-tdep.h to dependency list.
5496 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5497 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5498 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5499 nbsdaout.mh and nbsdelf.mh consistently.
5500 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5501 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5502 nbsdaout.mt and nbsdelf.mh consistently.
5503 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5504 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5505 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5506 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5507 a.out shared library stuff from here...
5508 * config/nm-nbsdaout.h: ...to here.
5509 * config/tm-nbsd.h: Remove.
5510 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5511 * config/arm/nbsd.mh: Remove.
5512 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5513 nbsd-tdep.o.
5514 * config/arm/nbsdaout.mh: New file.
5515 * config/arm/nbsdelf.mh: New file.
5516 * config/arm/nm-nbsdaout.h: New file.
5517 * config/i386/nbsd.mh: Remove.
5518 * config/i386/nbsd.mt: Remove.
5519 * config/i386/nbsdaout.mh: New file.
5520 * config/i386/nbsdaout.mt: New file.
5521 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5522 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5523 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5524 i386_register_u_addr): Remove.
5525 * config/i386/nm-nbsdaout.h: New file.
5526 * config/i386/nm-nbsdelf.h: Remove.
5527 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5528 (USE_STRUCT_CONVENTION): Remove.
5529 * config/i386/tm-nbsdaout.h: New file.
5530 * config/i386/tm-nbsdelf.h: Remove.
5531 * config/m68k/nbsd.mh: Remove.
5532 * config/m68k/nbsd.mt: Remove.
5533 * config/m68k/nbsdaout.mh: New file.
5534 * config/m68k/nbsdaout.mt: New file.
5535 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5536 * config/m68k/nm-nbsdaout.h: New file.
5537 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5538 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5539 * config/ns32k/nbsd.mh: Remove.
5540 * config/ns32k/nbsd.mt: Remove.
5541 * config/ns32k/nbsdaout.mh: New file.
5542 * config/ns32k/nbsdaout.mt: New file.
5543 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5544 * config/ns32k/nm-nbsdaout.h: New file.
5545 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5546 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5547 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5548 (SVR4_SHARED_LIBS): Remove.
5549 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5550 * config/sparc/nbsd.mh: Remove.
5551 * config/sparc/nbsd.mt: Remove.
5552 * config/sparc/nbsdaout.mh: New file.
5553 * config/sparc/nbsdaout.mt: New file.
5554 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5555 * config/sparc/nbsdelf.mt: New file.
5556 * config/sparc/nm-nbsdaout.h: New file.
5557 * config/sparc/nm-nbsdelf.h: Remove.
5558 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5559 * config/sparc/tm-nbsdaout.h: New file.
5560
257ce470
JT
55612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5562
5563 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5564 mipsnbsd-tdep.c
5565 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5566
76a6d5fe
JT
55672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5568
5569 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5570 shnbsd-nat.c.
5571 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5572
45888261
JT
55732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5574
5575 * NEWS: Note new MIPS NetBSD native configuration.
5576 * configure.host (mips*-*-netbsd*): New host.
5577 * configure.tgt (mips*-*-netbsd*): New target.
5578 * mipsnbsd-nat.c: New file.
5579 * mipsnbsd-tdep.c: New file.
5580 * mipsnbsd-tdep.h: New file.
5581 * config/mips/nbsd.mh: New file.
5582 * config/mips/nbsd.mt: New file.
5583 * config/mips/nm-nbsd.h: New file.
5584 * config/mips/tm-nbsd.h: New file.
5585
70f80edf
JT
55862002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5587
5588 * Makefile.in (SFILES): Add osabi.c.
5589 (COMMON_OBS): Add osabi.o.
5590 (osabi.o): New dependency list.
5591 * osabi.c: New file.
5592 * osabi.h: New file.
5593 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5594
5595 * Makefile.in (alpha_tdep_h): Define and use instead of
5596 alpha-tdep.h.
5597 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5598 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5599 Remove.
5600 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5601 * alpha-tdep.h: Include osabi.h.
5602 (alpha_abi): Remove.
5603 (gdbarch_tdep): Use generic OS ABI framework.
5604 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5605 gdbarch_register_osabi.
5606 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5607 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5608 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5609
5610 * Makefile.in (sh_tdep_h): Add osabi.h.
5611 * sh-tdep.h (sh_osabi): Remove.
5612 (gdbarch_tdep): Use generic OS ABI framework.
5613 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5614 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5615 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5616 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5617
5618 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5619 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5620 gdbarch_register_osabi.
5621 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5622 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5623 (get_elfosabi): Rename to...
5624 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5625 ABI framework support routines.
5626 (arm_gdbarch_init): Use generic OS ABI framework.
5627 (arm_dump_tdep): Likewise.
5628 (_initialize_arm_tdep): Likewise.
5629 * arm-tdep.h: Include osabi.h.
5630 (arm_abi): Remove.
5631 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5632 osabi member.
5633 (arm_gdbarch_register_os_abi): Remove prototype.
5634 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5635 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5636
5637 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5638 * mips-tdep.c: Include osabi.h.
5639 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5640 OS ABI framework.
5641
d194345b
KH
56422002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5643
5644 * h8300-tdep.c: Fix formatting.
5645
70c6b0d1
EZ
56462002-05-20 Elena Zannoni <ezannoni@redhat.com>
5647
5648 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5649 printing vector registers.
5650
165b8e33
AC
56512002-05-19 Andrew Cagney <ac131313@redhat.com>
5652
5653 From Fernando Nasser:
5654 * remote.c (remote_async_open_1): Re-throw the exception when the
5655 connection fails.
5656 (remote_cisco_open): Ditto.
5657 (remote_open_1): Ditto.
5658
36918e70
AC
56592002-05-19 Andrew Cagney <ac131313@redhat.com>
5660
5661 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5662 (remote_start_remote): Add uiout parameter. Pass through to
5663 remote_start_remote_dummy.
5664 (remote_open_1): Use catch_exception instead of catch_errors.
5665 (remote_async_open_1): Ditto.
5666 (remote_cisco_open): Ditto.
5667
ae44c0c4
AC
56682002-05-19 Andrew Cagney <ac131313@redhat.com>
5669
5670 * remote.c (remote_start_remote): Replace PTR with void pointer.
5671 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5672 static.
5673
8efe637d
AC
56742002-05-18 Andrew Cagney <ac131313@redhat.com>
5675
5676 * gdb_indent.sh: Allow the script to be run in the sim directory.
5677
2f1b5984
MK
56782002-05-18 Mark Kettenis <kettenis@gnu.org>
5679
f0f625e2
MK
5680 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5681 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5682
2f1b5984
MK
5683 * corelow.c (core_open): Only call set_gdbarch_from_file if
5684 exec_bfd is NULL.
5685
fc974602
AV
56862002-05-17 Andrey Volkov <avolkov@transas.com>
5687
5688 * h8300-tdep.c: Add support of EXR register
5689 * config/h8300/tm-h8300.h: Ditto.
5690
906709f4
AV
56912002-05-17 Andrey Volkov <avolkov@transas.com>
5692
5693 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5694
6e591d68
AV
56952002-05-17 Andrey Volkov <avolkov@transas.com>
5696
5697 * h8300-tdep.c: Change literal regnums to REGNO.
5698
84f0252a
JB
56992002-05-17 Jim Blandy <jimb@redhat.com>
5700
e0e9281e
JB
5701 * NEWS: Note addition of macro support.
5702
84f0252a
JB
5703 Expand preprocessor macros in C expressions.
5704 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5705 (scan_macro_expansion, scanning_macro_expansion,
5706 finished_macro_expansion): New function declarations.
5707 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5708 variable declarations.
5709 * parser-defs.h (expression_context_pc): New declaration.
5710 * parse.c (expression_context_pc): New variable.
5711 (parse_exp_1): Set expression_context_pc, as well as
5712 expression_context_block.
5713 * c-exp.y (yylex): If we're not already reading the result of a
5714 macro expansion, try to macro-expand the next token. When we're
5715 done scanning a macro expansion, switch back to the mainline text.
5716 Commas and `if's in a macro's expansion don't terminate the input.
5717 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5718 (macro_original_text, macro_expanded_text,
5719 expression_macro_lookup_func, expression_macro_lookup_baton): New
5720 variables.
5721 (scan_macro_expansion, scanning_macro_expansion,
5722 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5723 c_preprocess_and_parse): New functions.
5724 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5725 c_preprocess_and_parse, instead of c_parse.
5726 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5727 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5728
1c509ca8
JR
5729Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5730
5731 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5732 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5733 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5734
2250ee0c
CV
57352002-05-17 Corinna Vinschen <vinschen@redhat.com>
5736
5737 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5738
ab3b8126
JT
57392002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5740
5741 * Makefile.in (sh_tdep_h): Define and use.
5742 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5743 register enum): Move to...
5744 * * sh-tdep.h: ...here.
5745 * sh-tdep.c: Include sh-tdep.h.
5746 * sh3-rom.c: Likewise.
5747 * shnbsd-tdep.c: Likewise.
5748
ed9d4749
MS
57492002-05-16 Michael Snyder <msnyder@redhat.com>
5750
5751 * arm-tdep.c: Spelling fix in comment.
5752
2e276125
JB
57532002-05-16 Jim Blandy <jimb@redhat.com>
5754
6821892e
JB
5755 Add commands for manually expanding macros and showing their
5756 definitions.
5757 * macrocmd.c, macroscope.c, macroscope.h: New files.
5758 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5759 (macroscope_h): New variable.
5760 (HFILES_NO_SRCDIR): Add macroscope.h.
5761 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5762 (macroscope.o, macrocmd.o): New rules.
5763
2e276125
JB
5764 Teach the Dwarf 2 reader to read macro information.
5765 * dwarf2read.c: #include "macrotab.h".
5766 (dwarf_macinfo_buffer): New variable.
5767 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5768 dwarf_macinfo_size.
5769 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5770 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5771 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5772 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5773 dwarf2_macro_spaces_in_definition): New complaints.
5774 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5775 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5776 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5777 the partial symbol table.
5778 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5779 from what's recorded in the partial symbol table.
5780 (read_file_scope): If the compilation unit has a
5781 `DW_AT_macro_info' attribute, read its macro information.
5782 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5783
2f53fe6c
DJ
57842002-05-16 Daniel Jacobowitz <drow@mvista.com>
5785
5786 Fix PR gdb/546
5787 * ser-tcp.c: Don't include <netinet/udp.h>.
5788
2be99286
SC
57892002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5790
5791 * MAINTAINERS: Update my email address.
5792
c9af212b 57932002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5794
5795 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5796 include file of the same name.
5797
bf5f1a52
CV
57982002-05-16 Corinna Vinschen <vinschen@redhat.com>
5799
5800 * configure.tgt: Mark v850 as multi-arched.
5801 * config/v850/tm-v850.h: Remove file.
5802 * config/v850/v850.mt: Eliminate TM_FILE.
5803
435e042a
CV
58042002-05-16 Corinna Vinschen <vinschen@redhat.com>
5805
5806 * v850-tdep.c: Full multi-arch.
5807 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5808 Define GDB_MULTI_ARCH to 2.
5809
9819c6c8
PM
58102002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5811
5812 * p-exp.y (current_type): New static variable.
5813 Carries the type of the expression at the position that is parsed.
5814 (push_current_type, pop_current_type): Two new functions. Used
5815 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5816 (search_field): New static variable. Set to one after parsing a point
5817 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5818 (FIELDNAME): New token. After a point only a token belonging to
5819 current_type type definition is allowed.
5820 (all over token rules): reset and change current_type according
5821 to rules.
5822 (exp '[' rule): insert implicit array index field if
5823 exp is a pascal string type.
5824
3a06899a
CV
58252002-05-16 Corinna Vinschen <vinschen@redhat.com>
5826
5827 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5828 frame info. Use frame_info's saved_regs instead of matching member
5829 in extra_frame_info throughout.
5830 (v850_frame_init_saved_regs): New function.
5831 (v850_init_extra_frame_info): Move most functionality into
5832 v850_frame_init_saved_regs().
5833 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5834 (v850_frame_find_saved_regs): Remove declaration.
5835 (FRAME_FIND_SAVED_REGS): Remove definition.
5836 (v850_frame_init_saved_regs): Add declaration.
5837 (FRAME_INIT_SAVED_REGS): Add definition.
5838
6ed14b0e
CV
58392002-05-16 Corinna Vinschen <vinschen@redhat.com>
5840
5841 * v850-tdep.c: Begin multi-arch'ing v850.
5842 (v850_target_architecture_hook): Remove function.
5843 (v850_gdbarch_init): New function. Add code previously in
5844 v850_target_architecture_hook().
5845 (_initialize_v850_tdep): Don't set target_architecture_hook.
5846 Call register_gdbarch_init() instead.
5847
42725910
DJ
58482002-05-16 Daniel Jacobowitz <drow@mvista.com>
5849
5850 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5851 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5852 (fixup_class_method_type): Likewise.
5853
99d9066e
JB
58542002-05-15 Jim Blandy <jimb@redhat.com>
5855
5856 Add macro structures to GDB's symbol tables. Nobody puts anything
5857 in them yet.
5858 * symtab.h (struct symtab): New member: `macro_table'.
5859 * buildsym.h (pending_macros): New global variable.
5860 * buildsym.c: #include "macrotab.h".
5861 (buildsym_init): Initialize `pending_macros'.
5862 (end_symtab): If we found macro information while reading a CU's
5863 debugging info, do build a symtab structure for it. Make the
5864 symtab point to the macro information, and clear the
5865 `pending_macros' pointer which held it while we were reading the
5866 debug info.
5867 (really_free_pendings): Free any pending macro table.
5868 * objfiles.h (struct objfile): New member: `macro_cache'.
5869 * objfiles.c (allocate_objfile): Set allocate and free functions
5870 for the macro cache's objstack.
5871 (free_objfile): Empty the macro cache's obstack.
5872 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5873 set new allocate and free functions for it.
5874 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5875 free functions for the macro cache's objstack. (Why is this
5876 function building its own objfile?)
5877 * symmisc.c (print_objfile_statistics): Print statistics on the
5878 macro bcache.
5879 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5880
c899585b
RE
58812002-05-15 Richard Earnshaw <rearnsha@arm.com>
5882
5883 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5884 (REGISTER_U_ADDR): Delete definition.
5885 (arm_register_u_addr): Delete declaration.
5886
a6cdd8c5
RE
58872002-05-15 Richard Earnshaw <rearnsha@arm.com>
5888
5889 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5890 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5891
c97dcfc7
AC
58922002-05-14 Andrew Cagney <ac131313@redhat.com>
5893
5894 * regcache.c (register_valid): Revise comments refering to "Not
5895 available" and "unavailable".
5896 * frame.c (frame_register_read): Ditto.
5897 * findvar.c (value_of_register): Ditto.
5898
93021b7d
AC
58992002-05-15 Andrew Cagney <cagney@redhat.com>
5900
5901 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5902 (remote-sim.o): Update dependencies.
5903 (d10v-tdep.o): Specify dependencies.
5904 (sim_d10v_h): Define.
5905
a86bc61c
JB
59062002-05-14 Jim Blandy <jimb@redhat.com>
5907
5908 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5909 * macrotab.c (macro_lookup_inclusion, find_definition,
5910 new_macro_table): Same.
5911
5912 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5913 not `! strcmp ()'. This is a dubious improvement.
5914 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5915
5916 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5917 although it's not necessary, to avoid a warning.
5918
2fdde8f8
DJ
59192002-05-14 Daniel Jacobowitz <drow@mvista.com>
5920
5921 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5922 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5923 TYPE_INSTANCE_FLAGS.
5924 (struct main_type): New.
5925 (struct type): Move most members to struct main_type. Change
5926 cv_type and as_type to new type_chain member. Add instance_flags.
5927 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5928 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5929 (finish_cv_type): Remove prototype.
5930 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5931 Set TYPE_CHAIN.
5932 (alloc_type_instance): New function.
5933 (smash_type): New function.
5934 (make_pointer_type, make_reference_type, make_function_type)
5935 (smash_to_member_type, smash_to_method_type): Call smash_type.
5936 (make_qualified_type): New function.
5937 (make_type_with_address_space): Call make_qualified_type.
5938 (make_cv_type): Likewise.
5939 (finish_cv_type): Remove unnecessary function.
5940 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5941 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5942 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5943 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5944 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5945 * hpread.c (hpread_read_struct_type): Likewise.
5946 * stabsread.c (read_struct_type): Likewise.
5947
843fedf4
EZ
59482002-05-14 Elena Zannoni <ezannoni@redhat.com>
5949
5950 * configure.tgt: Add a catch all sh* target, for cases like
5951 sh[2,3,4]-elf and sh-hms.
5952
05a6c72c
KS
59532002-05-14 Keith Seitz <keiths@redhat.com>
5954
5955 * event-loop.c (create_file_handler): Don't do anything but
5956 update data when we are given a fd which we are already
5957 monitoring.
5958
5d085aaf
ML
59592002-05-14 Michal Ludvig <mludvig@suse.cz>
5960
5961 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5962 (update_context): Use __func__ in warnings.
5963
9db8d71f
DJ
59642002-05-14 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5967 and tcp_close to net_open and net_close.
5968 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5969 using UDP if requested. Don't try to disable Nagle on UDP
5970 sockets.
5971 * remote.c (remote_serial_open): New function. Warn about UDP.
5972 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5973
5dbc6baa
EZ
59742002-05-13 Elena Zannoni <ezannoni@redhat.com>
5975
5976 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5977
cc3023f7
EZ
59782002-05-13 Elena Zannoni <ezannoni@redhat.com>
5979
5980 * configure.tgt: Remove sh-hms target.
5981 * MAINTAINERS: Don't list sh-hms as a separate target.
5982
ec2bcbe7
JB
59832002-05-13 Jim Blandy <jimb@redhat.com>
5984
5985 Add first preprocessor macro-expansion files.
5986 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5987 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5988 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5989 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5990 (COMMON_OBS): Add macrotab.o, macroexp.o.
5991 (macroexp.o, macrotab.o): New rules.
5992
6d531722
AC
59932002-05-13 Andrew Cagney <ac131313@redhat.com>
5994
5995 * config/m88k/tm-m88k.h: Update copyright.
5996 (m88k_target_write_pc): Declare
5997 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5998 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5999 (SHIFT_INST_REGS): Update definition.
6000 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6001 using old definition of TARGET_WRITE_PC.
6002 * regcache.c (generic_target_write_pc): Delete code handling
6003 NNPC_REGNUM.
6004 * gdbarch.sh (NNPC_REGNUM): Delete.
6005 * gdbarch.h, gdbarch.c: Regenerate.
6006
3e3f2739
RE
60072002-05-13 Richard Earnshaw <rearnsha@arm.com>
6008
6009 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6010 builtin reg number.
6011
0004e5a2
DJ
60122002-05-13 Daniel Jacobowitz <drow@mvista.com>
6013
6014 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6015 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6016 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6017 access macros.
6018 * c-typeprint.c (cp_type_print_method_args): Likewise.
6019 (c_type_print_args): Likewise.
6020 * d10v-tdep.c (d10v_push_arguments): Likewise.
6021 (d10v_extract_return_value): Likewise.
6022 * expprint.c (print_subexp): Likewise.
6023 * gdbtypes.c (lookup_primitive_typename): Likewise.
6024 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6025 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6026 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6027 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6028 (TYPE_VECTOR): Likewise.
6029 * hpread.c (hpread_read_struct_type)
6030 (fix_static_member_physnames, fixup_class_method_type)
6031 (hpread_type_lookup): Likewise.
6032 * mdebugread.c (parse_symbol, parse_type): Likewise.
6033 * p-lang.c (is_pascal_string_type): Likewise.
6034 * valops.c (hand_function_call): Likewise.
6035 * x86-64-tdep.c (classify_argument): Likewise.
6036
6037 * hpread.c (hpread_read_function_type)
6038 (hpread_read_doc_function_type): Call replace_type.
6039 * dstread.c (create_new_type): Delete.
6040 (decode_dst_structure, process_dst_function): Call alloc_type.
6041 Use type access macros.
6042
dff95cc7
MK
60432002-05-12 Mark Kettenis <kettenis@gnu.org>
6044
6045 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6046 the're not supported by the current architecture.
6047 (i387_fill_fxsave): Likewise.
6048
bbcd32ad
FF
60492002-05-12 Fred Fish <fnf@redhat.com>
6050
6051 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6052 sect_index_xxx members to index the first slot in section_offsets
6053 if all of the section_offsets are zero.
6054
89cf4787
MK
60552002-05-12 Mark Kettenis <kettenis@gnu.org>
6056
6057 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6058 checked in with last change.
6059
1f77ffc5
MK
60602002-05-12 Mark Kettenis <kettenis@gnu.org>
6061
6062 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6063 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6064 config.sub.
6065
89b8b4a9
DJ
60662002-05-12 Daniel Jacobowitz <drow@mvista.com>
6067
6068 * Makefile.in: Update dependencies.
6069
14a5e767
AC
60702002-05-11 Andrew Cagney <ac131313@redhat.com>
6071
6072 * language.c (local_hex_string_custom): Simplify. Do not depend
6073 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6074
6075 * memattr.c (mem_info_command): Replace calls to
6076 longest_local_hex_string and longest_local_hex_string_custom.
6077 * buildsym.c (make_blockvector): Ditto.
6078 * solib.c (info_sharedlibrary_command): Ditto.
6079 * tracepoint.c (tracepoints_info): Ditto.
6080 * symtab.c (print_msymbol_info): Ditto.
6081
6082 * language.c (local_hex_string): Delete.
6083 (local_hex_string_custom): Delete.
6084 (longest_local_hex_string): Rename to local_hex_string.
6085 (longest_local_hex_string_custom): Rename to
6086 local_hex_string_custom.
6087 * language.h (local_hex_string): Change parameter type to LONGEST.
6088 (local_hex_string_custom): Ditto.
6089 (longest_local_hex_string): Delete declaration.
6090 (longest_local_hex_string_custom): Ditto.
6091
6092 * solib.c: Update copyright.
6093 * memattr.c: Update copyright.
6094
13d01224
AC
60952002-05-11 Andrew Cagney <ac131313@redhat.com>
6096
6097 * arch-utils.h (legacy_register_to_value): Declare.
6098 (legacy_value_to_register): Declare.
6099 (legacy_convert_register_p): Declare.
6100 * arch-utils.c (legacy_register_to_value): New function.
6101 (legacy_value_to_register): New function.
6102 (legacy_convert_register_p): New function.
6103
6104 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6105 (VALUE_TO_REGISTER): Define.
6106 (CONVERT_REGISTER_P): Define.
6107 * gdbarch.h, gdbarch.c: Regenerate.
6108
6109 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6110 VALUE_TO_REGISTER.
6111 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6112 CONVERT_REGISTER_P.
6113
4a1970e4
DJ
61142005-05-11 Daniel Jacobowitz <drow@mvista.com>
6115 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6116
6117 * Makefile.in: Update dependencies for valops.c.
6118 * valops.c: Include "gdb_assert.h".
6119 (typecmp): Skip THIS parameter to methods.
6120 (find_method_list): Remove static_memfuncp argument,
6121 update callers. Check for stub methods.
6122 (find_value_oload_method_list): Don't set *static_memfuncp.
6123 (find_overload_match): Don't check for stub methods. Assert
6124 that methods are not stubbed. Handle static methods.
6125 (value_find_oload_method_list): Remove static_memfuncp argument.
6126 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6127 to the argument list for static stub methods.
6128 * value.h (value_find_oload_method_list): Update prototype.
6129
b2e75d78
AC
61302002-05-11 Andrew Cagney <ac131313@redhat.com>
6131
6132 * arch-utils.h (generic_register_size): Declare.
6133 (generic_register_raw_size, generic_register_virtual_size): Delete
6134 declarations.
6135 * arch-utils.c (generic_register_raw_size): Delete.
6136 (generic_register_size): New function.
6137 (generic_register_virtual_size): Delete.
6138
6139 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6140 default generic_register_size.
6141 * gdbarch.h, gdbarch.c: Re-generate.
6142
6143 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6144 register_virtual_size.
6145 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6147
451fbdda
AC
61482002-05-11 Andrew Cagney <ac131313@redhat.com>
6149
6150 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6151 * gdbarch.h, gdbarch.c: Regenerate.
6152 * gnu-v3-abi.c: Update copyright.
6153 (vtable_address_point_offset): Update.
6154 (gnuv3_rtti_type): Update.
6155 (gnuv3_baseclass_offset): Update.
6156 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6157 (init_fetch_link_map_offsets): Update.
6158 * remote.c (get_remote_state): Update.
6159
6d2f5cea
DJ
61602002-05-11 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * TODO: Remove value_headof/value_from_vtable_info comment.
6163 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6164 * values.c (value_headof, value_from_vtable_info): Delete.
6165 * value.h (value_from_vtable_info): Delete prototype.
6166
d2324da4
AC
61672002-05-11 Andrew Cagney <ac131313@redhat.com>
6168
6169 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6170 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6171 $(gdb_regex_h).
6172 (gdb_assert_h): Define.
6173 (gdb_wait_h): Define.
6174 (gdb_regex_h): Define.
6175
5c717440
DJ
61762002-05-11 Daniel Jacobowitz <drow@mvista.com>
6177
6178 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6179 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6180
6c7861b3
JT
61812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6182
6183 * nbsd-tdep.c: Fix comment.
6184
ea5bc2a6
JT
61852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6186
6187 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6188 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6189 (nbsd-tdep.o): New dependency list.
6190 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6191 nbsd-tdep.h.
6192 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6193 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6194 * nbsd-tdep.c: New file.
6195 * nbsd-tdep.h: New file.
6196 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6197 nbsd-tdep.h.
6198 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6199 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6200 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6201 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6202
b28da865
JT
62032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6206 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6207 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6208 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6209 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6210 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6211
4b8ff1fa
JT
62122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6213
6214 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6215 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6216 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6217 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6218 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6219 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6220 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6221
dfe6eb1f
JT
62222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6223
6224 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6225 fetch_elfcore_registers to...
6226 * i386nbsd-tdep.c: ...here.
6227 (i386nbsd_use_struct_convention): Rename to...
6228 (i386nbsd_aout_use_struct_convention): ...this.
6229 (i386nbsd_supply_reg): New function.
6230 (i386nbsd_fill_reg): New function.
6231 (fetch_core_registers): Use i386nbsd_supply_reg.
6232 (fetch_elfcore_registers): Likewise.
6233 (_initialize_i386nbsd_tdep): New function.
6234 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6235 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6236 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6237 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6238 (i386nbsd_aout_use_struct_convention): ...this.
6239
20cb8cda
JT
62402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6241
6242 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6243 (store_inferior_registers): Use shnbsd_fill_reg.
6244 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6245 sh_nbsd_supply_register): Collapse into...
6246 (shnbsd_supply_reg): ...this.
6247 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6248 (shnbsd_fill_reg): ...this.
6249 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6250 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6251 (fetch_core_registers): Use shnbsd_supply_reg.
6252 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6253 (sh_nbsd_core_fns): Rename to...
6254 (shnbsd_core_fns): ...this.
6255 (sh_nbsd_elfcore_fns): Rename to...
6256 (shnbsd_elfcore_fns): ...this.
6257 (sh_nbsd_init_abi): Rename to...
6258 (shnbsd_init_abi): ...this.
6259 (_initialize_sh_nbsd_tdep): Rename to...
6260 (_initialize_shnbsd_tdep): ...this.
6261 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6262 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6263 sh_nbsd_fill_register): Remove prototypes.
6264 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6265
e750d25e
JT
62662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6269 (i387-nat.o): Delete dependency list.
6270 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6271 (x86-64-linux-nat.o): Likewise.
6272 * i387-nat.c: Delete file, moving contents to...
6273 * i387-tdep.c: ...here.
6274 * i387-nat.h: Rename...
6275 * i387-tdep.h: ...to this.
6276 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6277 * i386-linux-nat.c: Likewise.
6278 * i386bsd-nat.c: Likewise.
6279 * i386gnu-nat.c: Likewise.
6280 * i386nbsd-nat.c: Likewise.
6281 * i386v4-nat.c: Likewise.
6282 * x86-64-linux-nat.c: Likewise.
6283 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6284 * config/i386/go32.mh (NATDEPFILES): Likewise.
6285 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6286 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6287 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6288 * config/i386/linux.mh (NATDEPFILES): Likewise.
6289 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6290 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6291 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6292 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6293
1aee598a
JT
62942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6295
6296 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6297 (alphanbsd-nat.o): Remove dependency list.
6298 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6299 * alphanbsd-nat.c: Delete. Contents moved to...
6300 * alphanbsd-tdep.c: ...here.
6301 (_initialize_alphanbsd_tdep): Register core functions.
6302 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6303
12bcb0fe
JT
63042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6305
6306 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6307 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6308 (alphanbsd-nat.o): Likewise.
6309 (alphabsd-tdep.o): New dependency list.
6310 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6311 (fill_gregset): Use alphabsd_fill_reg.
6312 (supply_fpregset): Use alphabsd_supply_fpreg.
6313 (fill_fpregset): Use alphabsd_fill_fpreg.
6314 (fetch_inferior_registers): Use struct reg and struct fpreg
6315 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6316 and alphabsd_supply_fpreg.
6317 (store_inferior_registers): Use struct reg and struct fpreg
6318 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6319 and alphabsd_fill_fpreg.
6320 * alphabsd-tdep.c: New file.
6321 * alphabsd-tdep.h: New file.
6322 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6323 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6324 alphabsd_supply_fpreg.
6325 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6326 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6327
361d1df0
EC
63282002-05-11 Eric Christopher <echristo@redhat.com>
6329
6330 * mips-tdep.c (mips_double_register_type): Fix thinko.
6331 (mips_single_register_type): Ditto.
6332 * MAINTAINERS: Add self.
6333
92dd7cee
MK
63342002-05-11 Mark Kettenis <kettenis@gnu.org>
6335
6336 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6337 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6338 right thing on architectures with different endianness and/or
6339 integer sizes.
6340
e27da16d
JT
63412002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6342
6343 From Christian Limpach <chris@Pin.LU>
6344 * configure.in: Change sed expression which comments out
6345 NATDEPFILES to also comment out continuation lines.
6346 * configure: Regenerate.
6347
ddde02bd
EZ
63482002-05-10 Elena Zannoni <ezannoni@redhat.com>
6349
6350 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6351 big patch.
6352
1c922164
EZ
63532002-05-10 Elena Zannoni <ezannoni@redhat.com>
6354
6355 * sh-tdep.c: Include correct file.
6356
283150cd
EZ
63572002-05-10 Elena Zannoni <ezannoni@redhat.com>
6358
6359 New support for sh64-elf (sh5) target.
6360
6361 * configure.tgt: For sh64-elf target, default to sh-elf.
6362
6363 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6364 (struct gdbarch_tdep): Add new fields for new registers and ABI
6365 info.
361d1df0 6366
283150cd
EZ
6367 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6368 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6369 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6370 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6371 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6372 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6373 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6374 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6375 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6376 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6377 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6378 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6379 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6380 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6381 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6382 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6383 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6384 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6385 sign_extend, sh64_nofp_frame_init_saved_regs,
6386 sh64_init_extra_frame_info, sh64_get_saved_register,
6387 sh64_extract_struct_value_address, sh64_pop_frame,
6388 sh64_push_arguments, sh64_extract_return_value,
6389 sh64_store_return_value, sh64_show_media_regs,
6390 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6391 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6392 sh_sh64_register_virtual_type,
6393 sh_sh64_register_convert_to_virtual,
6394 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6395 sh64_register_read, sh64_pseudo_register_write,
6396 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6397 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6398 sh64_do_pseudo_register, sh_compact_do_registers_info,
6399 sh64_do_registers_info, sh_gdbarch_init): New functions.
6400
3117ed25
EZ
64012002-05-10 Elena Zannoni <ezannoni@redhat.com>
6402
6403 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6404
2654e6d4
DJ
64052002-05-10 Daniel Jacobowitz <drow@mvista.com>
6406
6407 * linespec.c (decode_line_1): Check for a double quote after
6408 a filename correctly.
6409
9ab3e532
JB
64102002-05-10 Jim Blandy <jimb@redhat.com>
6411
6412 Properly track the size of the current objfile's .debug_line section.
6413 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6414 (DWARF_LINE_SIZE): New macro.
6415 (dwarf2_build_psymtabs_hard): Record the line section's size in
6416 the partial symbol table.
6417 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6418 symbol table.
6419
126fa72d
PS
64202002-05-10 Petr Sorfa <petrs@caldera.com>
6421
6422 * ia64-tdep.c: Handle breakpoints on L instruction type
6423 in MLX instruction bundle by moving the breakpoint to
6424 the third slot (X instruction type) as L holds only data.
6425
1f077a3e
KB
64262002-05-10 Kevin Buettner <kevinb@redhat.com>
6427
6428 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6429 (process_one_symbol): Complain about discarding local symbols
6430 due to a misplaced N_LBRAC entry.
6431
8120c9d5 64322002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6433
6434 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6435 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6436 decrease the depth we are at, in the case of templates.
361d1df0 6437
67b2c998
DJ
64382002-05-09 Daniel Jacobowitz <drow@mvista.com>
6439
6440 * mips-tdep.c (mips_float_register_type): New function.
6441 (mips_double_register_type): New function.
6442 (mips_print_register): Use them.
6443 (do_fp_register_row): Likewise.
6444
fd326606
DJ
64452002-05-09 Daniel Jacobowitz <drow@mvista.com>
6446
6609d9af 6447 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6448 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6449 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6450
bef35864
MS
64512002-05-09 Michael Snyder <msnyder@redhat.com>
6452
6453 * remote-rdp.c (remote_rdp_can_run): Remove.
6454
c55a3f73
TT
64552002-05-09 Tom Tromey <tromey@redhat.com>
6456
6457 * jv-valprint.c (java_val_print): Handle `char' as a special case
6458 of TYPE_CODE_INT.
6459
b8d5e71d
MS
64602002-05-09 Michael Snyder <msnyder@redhat.com>
6461
6462 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6463 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6464 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6465 str r(0123),[sp,#nn].
361d1df0 6466 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6467 order-independent by placing it in a loop.
6468
e2cd42dd
MS
64692002-05-06 Michael Snyder <msnyder@redhat.com>
6470
6471 * stabsread.c (read_type): Add recognition for new attribute:
6472 "@V;" means that an array type is actually a vector.
6473 This is analogous to the vector flag that's been added to dwarf2.
6474
3ce1502b
MK
64752002-05-09 Mark Kettenis <kettenis@gnu.org>
6476
6477 * i386-tdep.h (i386_abi): New enum.
6478 (struct gdbarch_tdep): Replace os_ident member with abi.
6479 (i386_gdbarch_register_os_abi): New prototype.
6480 * i386-tdep.c (i386_abi_names): New array.
6481 (process_note_abi_tag_sections): Removed.
6482 (process_note_sections): New function.
6483 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6484 (struct i386_abi_handler): New struct.
6485 (i386_abi_handler_list): New variable.
6486 (i386_gdbarch_register_os_abi): New function.
6487 (i386_gdbarch_init): Adapt for the changes given above.
6488
084c156a
DJ
64892002-05-08 Daniel Jacobowitz <drow@mvista.com>
6490
6491 * gregset.h: Say "GNU/Linux".
6492
6599f021
EZ
64932002-05-08 Elena Zannoni <ezannoni@redhat.com>
6494
6495 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6496 (build_gdbtypes): Build builtin_type_v2_float.
6497 (_initialize_gdbtypes): Register new builtin type.
6498
40af4b0c
AC
64992002-05-08 Andrew Cagney <ac131313@redhat.com>
6500
6501 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6502 (clear_gdbarch_swap): New function.
6503 (initialize_non_multiarch): Call.
6504 (gdbarch_update_p): Before calling init(), swap out and clear the
6505 existing architecture.
6506 * gdbarch.c: Regenerate.
6507
4fe84f46
JT
65082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6509
6510 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6511 alphanbsd-tdep.c.
6512
4015edd1
JT
65132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6514
6515 * sh-nbsd-nat.c: Rename to...
6516 * shnbsd-nat.c: ...this.
6517 * sh-nbsd-tdep.c: Rename to...
6518 * shnbsd-tdep.c: ...this.
6519 * sh-nbsd-tdep.h: Rename to...
6520 * shnbsd-tdep.h: ...this.
6521 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6522 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6523
0e2bd219
RE
65242002-05-08 Richard Earnshaw <rearnsha@arm.com>
6525
6526 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6527 concatenation for command help messages.
6528
13a38d45
JT
65292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6530
6531 * NEWS: Note new sh*-*-netbsdelf* configuration.
6532 * configure.host: Set gdb_host_cpu to sh for all sh*.
6533 (sh*-*-netbsdelf*): New host.
6534 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6535 (sh*-*-netbsdelf*): New target.
6536 * sh-nbsd-nat.c: New file.
6537 * sh-nbsd-tdep.c: New file.
6538 * sh-nbsd-tdep.h: New file.
6539 * config/sh/nbsd.mh: New file.
6540 * config/sh/nbsd.mt: New file.
6541 * config/sh/nm-nbsd.h: New file.
6542 * config/sh/tm-nbsd.h: New file.
6543
d658f924
JT
65442002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6545
6546 * sh-tdep.c (sh_osabi_names): Declare.
6547 (process_note_abi_tag_sections): New function.
6548 (get_elfosabi): Ditto.
6549 (sh_gdbarch_register_os_abi): Ditto.
6550 (sh_dump_tdep): Ditto.
6551 _initialize_sh_tdep): Use gdbarch_register to register
6552 sh_gdbarch_init and sh_dump_tdep.
6553 * config/sh/tm-sh.h (sh_osabi): Declare.
6554 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6555
848cfffb
AC
65562002-05-07 Andrew Cagney <ac131313@redhat.com>
6557
6558 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6559 (thumb_scan_prologue): Ditto.
6560 (arm_find_callers_reg): Ditto.
6561 (arm_frame_chain): Ditto.
6562 (arm_init_extra_frame_info): Ditto.
6563 (arm_frame_saved_pc): Ditto.
6564 (arm_pop_frame): Ditto.
6565 (arm_push_return_address): New function.
6566 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6567 call_dummy_location, call_dummy_breakpoint_offset_p,
6568 call_dummy_breakpoint_offset, call_dummy_p,
6569 call_dummy_stack_adjust_p, call_dummy_words,
6570 sizeof_call_dummy_words, call_dummy_start_offset,
6571 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6572 call_dummy_address, push_return_address and push_dummy_frame for
6573 generic dummy frames.
6574
e7d717c0
JT
65752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6576
6577 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6578 size computation for alloca.
6579 (sh_fp_frame_init_saved_regs): Likewise.
6580
7bbcf283
RE
65812002-05-07 Richard Earnshaw <rearnsha@arm.com>
6582
6583 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6584 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6585 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6586 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6587 * remote-rdp.c (remote_rdp_fetch_register): Use
6588 ARM_MAX_REGISTER_RAW_SIZE.
6589 (remote_rdp_store_register): Likewise.
6590
4657573b
ML
65912002-05-07 Michal Ludvig <mludvig@suse.cz>
6592
361d1df0 6593 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6594 added default labels to switch {} statements.
6595 * x86-64-tdep.c: Ditto.
6596 * x86-64-linux-nat.c: Ditto.
6597
010f3b2f
JT
65982002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * solib.h: Protect against multiple inclusion.
6601
debd256d
JB
66022002-05-06 Jim Blandy <jimb@redhat.com>
6603
9ab3e532
JB
6604 Add first preprocessor macro-expansion files.
6605 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6606 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6607 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6608 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6609 (COMMON_OBS): Add macrotab.o, macroexp.o.
6610 (macroexp.o, macrotab.o): New rules.
6611
debd256d
JB
6612 Separate the job of reading the line number info statement program
6613 header (...expialidocious) out into its own function.
6614 * dwarf2read.c (struct line_head, struct filenames, struct
6615 directories): Replace with...
6616 (struct line_header): New structure, containing the full
6617 contents of the statement program header, including the
6618 include directory and file name tables.
6619 (read_file_scope): If we have line number info, instead of just
6620 calling dwarf_decode_lines to do all the work, call
6621 dwarf_decode_line_header first to get a `struct line_header'
6622 containing the data in the statement program header, and then
6623 pass that to dwarf_decode_lines, which will pick up where that
6624 left off. Be sure to clean up the `struct line_header' object.
6625 (dwarf_decode_line_header, free_line_header, add_include_dir,
6626 add_file_name): New functions.
6627 (dwarf_decode_lines): Move all the code to read the statement
6628 program header into dwarf_decode_line_header. Take the line
6629 header it built as the first argument, instead of the offset to
6630 the compilation unit's line number info. Use the new `struct
6631 line_header' type instead of the old structures. No need to do
6632 cleanups here now, since we don't allocate anything.
6633 (dwarf2_statement_list_fits_in_line_number_section,
6634 dwarf2_line_header_too_long): New complaints.
6635
ac3aafc7
EZ
66362002-05-06 Elena Zannoni <ezannoni@redhat.com>
6637
6638 * gdbtypes.c (init_vector_type): New function.
6639 (build_builtin_type_vec128): Simplify the representation of SIMD
6640 registers.
6641 (build_gdbtypes): Initialize new builtin vector types.
6642 (_initialize_gdbtypes): Register new vector types with gdbarch.
6643 (builtin_type_v4_float, builtin_type_v4_int32,
6644 builtin_type_v8_int16, builtin_type_v16_int8,
6645 builtin_type_v2_int32, builtin_type_v4_int16,
6646 builtin_type_v8_int8): New (renamed) SIMD types.
6647
13e49980
MK
66482002-05-06 Mark Kettenis <kettenis@gnu.org>
6649
6650 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6651 (i387_fill_fxsave): Likewise.
6652
997b20b8
AO
66532002-05-05 Alexandre Oliva <aoliva@redhat.com>
6654
6655 * alpha-tdep.c (alpha_extract_return_value): Don't use
6656 non-constant array size in prototype.
6657
535c96ce
AC
66582002-05-04 Andrew Cagney <ac131313@redhat.com>
6659
6660 From Brian Taylor <briant at model dot com>:
6661 * ui-out.c (ui_out_field_core_addr): Use the function
6662 longest_local_hex_string_custom'to format addresses > 32 bits
6663 wide.
6664
6665 * ui-out.c (ui_out_field_core_addr): Update comment.
6666
bedfa57b
AC
66672002-05-04 Andrew Cagney <ac131313@redhat.com>
6668
6669 * stack.c (select_and_print_frame): Make static. Delete the
6670 parameter `level'.
6671 (func_command): Update call.
6672 (select_frame_command): Delete code computing the frame level.
6673 * frame.h (select_and_print_frame): Delete declaration.
6674
f621c63e
AC
66752002-05-04 Andrew Cagney <ac131313@redhat.com>
6676
6677 * sparc-tdep.c (sparc_get_saved_register): Comment why
6678 get_prev_frame call is safe.
6679
0f7d239c
AC
66802002-05-04 Andrew Cagney <ac131313@redhat.com>
6681
6682 * frame.h (select_frame): Delete level parameter.
6683 * stack.c (select_frame): Update. Use frame_relative_level to
6684 obtain the frame's level.
6685 (select_and_print_frame): Update call.
6686 (select_frame_command): Ditto.
6687 (up_silently_base): Ditto.
6688 (down_silently_base): Ditto.
6689 * ocd.c (ocd_start_remote): Ditto.
6690 * remote-rdp.c (remote_rdp_open): Ditto.
6691 * remote-mips.c (mips_initialize): Ditto.
6692 (common_open): Ditto.
6693 * remote-e7000.c (e7000_start_remote): Ditto.
6694 * m3-nat.c (select_thread): Ditto.
6695 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6696 (child_get_current_exception_event): Ditto.
6697 * varobj.c (varobj_create): Ditto.
6698 (varobj_update): Ditto.
6699 (c_value_of_root): Ditto.
6700 * tracepoint.c (finish_tfind_command): Ditto.
6701 * corelow.c (core_open): Ditto.
6702 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6703 * thread.c (info_threads_command): Ditto.
6704 (switch_to_thread): Ditto.
6705 * infrun.c (normal_stop): Ditto.
6706 (restore_selected_frame): Ditto.
6707 (restore_inferior_status): Ditto.
6708 * breakpoint.c (insert_breakpoints): Ditto.
6709 (watchpoint_check): Ditto.
6710 (bpstat_stop_status): Ditto.
6711 (do_enable_breakpoint): Ditto.
6712 * blockframe.c (flush_cached_frames): Ditto.
6713 (reinit_frame_cache): Ditto.
6714
71d6c7b1
AC
67152002-05-04 Andrew Cagney <ac131313@redhat.com>
6716
6717 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6718 maintainer.
6719
cda6c68a
JB
67202002-05-04 Jim Blandy <jimb@redhat.com>
6721
6722 * gdbtypes.c (replace_type): Doc fix.
6723
5c1c87f0
AC
67242002-05-04 Andrew Cagney <ac131313@redhat.com>
6725
6726 * valprint.c (strcat_longest): Delete commented out function.
6727 Update copyright.
6728
cd9bfe15
AC
67292002-05-04 Andrew Cagney <ac131313@redhat.com>
6730
6731 * MAINTAINERS: Mark a29k as deleted.
6732 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6733 Move new configurations to the top.
6734 * configure.tgt: Remove a29k.
6735 * config/a29k/tm-vx29k.h: Delete.
6736 * config/a29k/vx29k.mt: Delete.
6737 * config/a29k/tm-a29k.h: Delete.
6738 * config/a29k/a29k-udi.mt: Delete.
6739 * config/a29k/a29k.mt: Delete.
6740 * a29k-tdep.c: Delete.
6741 * remote-udi.c: Delete.
6742 * remote-mm.c: Delete.
6743 * remote-eb.c: Delete.
6744 * remote-adapt.c: Delete.
6745 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6746 * config/s390/s390x.mt: Ditto.
6747 * config/s390/s390.mt: Ditto.
6748 * config/sparc/sparclynx.mh: Ditto.
6749 * config/sparc/linux.mh: Ditto.
6750 * config/pa/hppaosf.mh: Ditto.
6751 * config/pa/hppabsd.mh: Ditto.
6752 * config/ns32k/nbsd.mt: Ditto.
6753 * config/mips/vr5000.mt: Ditto.
6754 * config/m68k/sun3os4.mh: Ditto.
6755 * config/m68k/nbsd.mt: Ditto.
6756 * config/m68k/m68klynx.mh: Ditto.
6757 * config/m32r/m32r.mt: Ditto.
6758 * config/i386/x86-64linux.mt: Ditto.
6759 * config/i386/nbsdelf.mt: Ditto.
6760 * config/i386/nbsd.mt: Ditto.
6761 * config/i386/i386lynx.mh: Ditto.
6762
bf0c5130
AC
67632002-05-04 Andrew Cagney <ac131313@redhat.com>
6764
6765 * target.c (debug_print_register): New function. Handle oversize
6766 registers.
6767 (debug_to_fetch_registers): Call.
6768 (debug_to_store_registers): Call.
6769
2ae1c2d2
JB
67702002-05-03 Jim Blandy <jimb@redhat.com>
6771
13a393b0
JB
6772 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6773 (read_type): Doc fix.
6774 * gdbtypes.c (replace_type): Doc fix.
6775
2ae1c2d2
JB
6776 * stabsread.c (multiply_defined_struct): New complaint.
6777 (read_struct_type): If the type we were passed isn't empty, or
6778 incomplete, don't read the new struct type into it; complain,
6779 and return the original type unchanged. Take a new `type_code'
6780 argument, which is the type code for the new type.
6781 (read_type): Rather than storing the type's type code here, pass
6782 it as an argument to read_struct_type, and let that take care of
6783 storing it. That way, we don't overwrite the original type code,
6784 so read_struct_type can use it to decide whether we're overwriting
6785 something we shouldn't.
6786 (complain_about_struct_wipeout): New function.
6787
8de9bdc4
AC
67882002-05-03 Andrew Cagney <ac131313@redhat.com>
6789
6790 * gdbarch.sh: Assert that gdbarch is non-NULL.
6791 * gdbarch.c: Regenerate.
6792
f773fdbb
JM
67932002-05-03 Jason Merrill <jason@redhat.com>
6794
6795 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6796 and return NULL.
6797
0e04a514
ML
67982002-05-03 Michal Ludvig <mludvig@suse.cz>
6799
6800 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6801 (x86_64_dwarf2gdb_regno_map_length),
6802 (x86_64_dwarf2_reg_to_regnum): Added.
6803 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6804 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6805 (_initialize_x86_64_tdep): Synced with the change above.
6806 (x86_64_skip_prologue): Reformulated message.
6807
065432a8
PM
68082002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6809
6810 * f-exp.y: Also use new prev_lexptr variable
6811 to improve error reporting. Based on Michael Snyder
6812 2002-04-24 dated patch to c-exp.y.
6813 * jv-exp.y: Likewise.
6814 * m2-exp.y: Likewise.
6815
a3162708
EZ
68162002-05-02 Elena Zannoni <ezannoni@redhat.com>
6817
6818 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6819 we are dealing with vectors.
6820
03620c38
PM
68212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6822
6823 * config/m68k/tm-nbsd.h: Obvious fix,
6824 correct machine name.
6825
6604db2e
PM
68262002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6827
6828 * p-typeprint.c (pascal_type_print_base): Add support
6829 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6830
0906b739
PM
68312002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6832
6833 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6834 for fondamental pascal 'char' type.
6835
e2625b33
PM
68362002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6837
6838 * p-lang.h (is_pascal_string_type): Declaration changed,
6839 new sixth argument of type char ** added.
361d1df0 6840 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6841 changed. Args length_pos, length_size, string_pos, char_size
6842 can now be NULL. New argument arrayname set to the field
6843 name of the char array. Return value set to char array
6844 field index plus one.
361d1df0 6845 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6846 is_pascal_string_type function.
6847
cf17c188
AC
68482002-05-02 Andrew Cagney <cagney@redhat.com>
6849
6850 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6851 <cagney@redhat.com> change.
6852 * gdbarch.c: Regenerate.
6853
52bca491
AC
68542002-05-02 Andrew Cagney <cagney@redhat.com>
6855
6856 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6857 before probing for a new one. Detect errorenous gdbarch_init
6858 functions.
6859 * gdbarch.c: Regenerate.
6860
d5e72505
AC
68612002-05-01 Andrew Cagney <cagney@redhat.com>
6862
6863 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6864 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6865 * config/v850/tm-v850.h: Ditto. Update copyright.
6866
af566d9f
AC
68672002-04-30 Andrew Cagney <ac131313@redhat.com>
6868
6869 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6870 current_gdbarch.
6871
880d85fa
MS
68722002-04-30 Michael Snyder <msnyder@redhat.com>
6873
94c30b78
MS
6874 * arm-tdep.c: Whitespace clean-ups.
6875 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6876 should have been removed as part of 4/24 change.
6877
6f5987a6
KB
68782002-04-30 Kevin Buettner <kevinb@redhat.com>
6879
6880 * rs6000-tdep.c: Added comment describing how fpscr register
6881 numbers were chosen.
6882
1a113c93
MS
68832002-04-30 Michael Snyder <msnyder@redhat.com>
6884
6885 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6886
9a6f53fe
EZ
68872002-04-29 Elena Zannoni <ezannoni@redhat.com>
6888
6889 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6890 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6891 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6892
11ed25ac
KB
68932002-04-29 Kevin Buettner <kevinb@redhat.com>
6894
6895 From Louis Hamilton <hamilton@redhat.com>:
6896 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6897 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6898 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6899 not bfd-private xcoff data, to determine wordsize.
6900 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6901
ae232405
AC
69022002-04-29 Andrew Cagney <ac131313@redhat.com>
6903
6904 GDB 5.2 released from 5.2 branch.
6905
91fd20f7
ML
69062002-04-29 Michal Ludvig <mludvig@suse.cz>
6907
6908 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6909 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6910 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6911
2dc5091b
EZ
69122002-04-29 Elena Zannoni <ezannoni@redhat.com>
6913
6914 * rs6000-tdep.c (rs6000_extract_return_value,
6915 rs6000_store_return_value): Handle returning vectors.
6916 (rs6000_gdbarch_init): Use
6917 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6918 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6919 New function.
6920 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6921 vectors.
6922 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6923 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6924
2b9848d8
PM
69252002-04-24 Pierre Muller <ics.u-strasbg.fr>
6926
6927 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6928 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6929 with fprintf_unfiltered (gdb_stderr,...).
6930
f8d17dc5
PM
69312002-04-24 Pierre Muller <ics.u-strasbg.fr>
6932
6933 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6934 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6935 Replace fprintf (stderr,...
6936 with fprintf_unfiltered (gdb_stderr,....
6937 * remote-es.c: Likewise.
6938 * remote-os9k.c: Likewise.
6939 * remote-st.c: Likewise.
6940
2f2f1ad1
AS
69412002-04-28 Andreas Schwab <schwab@suse.de>
6942
6943 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6944 linux-proc.o and gcore.o.
6945
b6779aa2
AC
69462002-04-26 Michal Ludvig <mludvig@suse.cz>
6947
6948 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6949 code without frame pointers.
6950
7e57f5f4
AC
69512002-04-26 Andrew Cagney <ac131313@redhat.com>
6952
6953 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6954 ON_STACK is needed.
6955
2ceb85d0
BE
69562002-04-26 Ben Elliston <bje@redhat.com>
6957
6958 * target.c (do_xfer_memory): Correct reference to the new option
6959 "trust-readonly-sections".
6960
f5f8a009
EZ
69612002-04-26 Elena Zannoni <ezannoni@redhat.com>
6962
6963 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6964 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6965 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6966 vectors.
6967 (read_array_type): Record the fact that this array type is really a
6968 vector (i.e. are passed in by value).
6969
5868c862
JT
69702002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6971
6972 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6973 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6974 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6975 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6976 * alpha-linux-tdep.c: Include frame.h.
6977 (alpha_linux_sigcontext_addr): New function.
6978 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6979 alpha_linux_sigcontext_addr.
6980 * alpha-osf1-tdep.c: Include gdbcore.h.
6981 (alpha_osf1_sigcontext_addr): New function.
6982 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6983 alpha_osf1_sigcontext_addr.
6984 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6985 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6986
bfb01f37
AC
69872002-04-26 Andrew Cagney <ac131313@redhat.com>
6988
361d1df0 6989 * stack.c (selected_frame_level):
bfb01f37
AC
6990 (select_frame): Do not set selected_frame_level.
6991 * frame.h (selected_frame_level): Delete declaration.
6992
15813d3f
AC
69932002-04-26 Andrew Cagney <ac131313@redhat.com>
6994
6995 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6996 convert_from_func_ptr-addr when AIX / PowerOpen.
6997
6096c27a
AC
69982002-04-25 Andrew Cagney <ac131313@redhat.com>
6999
7000 * valops.c (hand_function_call): Call
7001 generic_save_call_dummy_addr.
7002 * frame.h (generic_save_call_dummy_addr): Declare.
7003 * blockframe.c (struct dummy_frame): Add fields call_lo and
7004 call_hi.
7005 (generic_find_dummy_frame): Check for PC in range call_lo to
7006 call_hi instead of entry_point_address.
7007 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7008 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7009 (generic_save_call_dummy_addr): New function.
7010
f510d44e
DM
70112002-04-24 David S. Miller <davem@redhat.com>
7012
7013 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7014 sparc_skip_prologue.
7015 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7016 information to find prologue when possible.
7017 (sparc_prologue_frameless_p): Call examine_prologue directly.
7018 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7019 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7020 second argument.
7021 (SKIP_PROLOGUE): Likewise.
7022
15d72a92
JT
70232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7024
7025 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7026 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7027 indicate that the condition it was testing is always true.
7028 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7029 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7030 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7031
accc6d1f
JT
70322002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7033
7034 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7035 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7036 tdep->jb_pc and tdep->jb_elt_size.
7037 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7038 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7039 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7040 * alpha-nat.c (get_longjmp_target): Remove.
7041 (JB_ELEMENT_SIZE): Ditto.
7042 (JB_PC): Ditto.
7043 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7044 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7045 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7046 to alpha_get_longjmp_target.
7047 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7048 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7049 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7050
1bfdc549
AC
70512002-04-25 Andrew Cagney <ac131313@redhat.com>
7052
7053 * README: Update to GDB 5.2.
7054
1bd316f0
AC
70552002-04-25 Andrew Cagney <ac131313@redhat.com>
7056
7057 * gdbarch.sh (LC_ALL): Set to `c'.
7058
2e5ff58c
TR
70592002-04-25 Theodore A. Roth <troth@verinet.com>
7060
7061 * avr-tdep.c: Ran through gdb_indent.sh.
7062
e33ce519
TR
70632002-04-25 Theodore A. Roth <troth@verinet.com>
7064
7065 * MAINTAINERS: Add myself as AVR maintainer.
7066 * NEWS: Note new target avr.
7067
8818c391
TR
70682002-04-25 Theodore A. Roth <troth@verinet.com>
7069
7070 * Makefile.in: Add support for AVR target.
7071 * configure.tgt: Add support for AVR target.
7072 * avr-tdep.c: New file
7073 * config/avr/avr.mt: New file.
7074
79509c2d
TR
70752002-04-25 Theodore A. Roth <troth@verinet.com>
7076
7077 * MAINTAINERS: Add myself to write-after-approval.
7078
dac8068e
PM
70792002-04-24 Pierre Muller <ics.u-strasbg.fr>
7080
7081 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7082 with fprintf_unfiltered (gdb_stderr,....
7083
25bf3106
PM
70842002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7085
7086 Fix PR gdb/508.
7087 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7088
24467a86
PM
70892002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7090
7091 * p-exp.y: Also use new prev_lexptr variable
7092 to improve error reporting. Based on Michael Snyder
7093 2002-04-24 dated patch to c-exp.y.
7094
95b80706
JT
70952002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7096
7097 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7098 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7099 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7100 to 0.
7101 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7102 and struct value.
7103 (FUNCTION_START_OFFSET): Remove.
7104 (BREAKPOINT): Ditto.
7105
e90cc612
JT
71062002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7107
7108 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7109 * NEWS: Ditto.
7110
6c72f9f9
JT
71112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7112
7113 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7114 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7115 alpha_linux_pc_in_sigtramp.
7116 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7117 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7118 alpha_osf1_pc_in_sigtramp.
7119 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7120 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7121 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7122 alphafbsd_pc_in_sigtramp.
7123 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7124 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7125 alphanbsd_pc_in_sigtramp.
7126 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7127 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7128
5e4f3379
JT
71292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7130
7131 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7132
da8ca43d
JT
71332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7134
7135 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7136 alphanbsd-tdep.c.
7137 (alphanbsd-nat.o): New dependency list.
7138 (alphanbsd-tdep.o): Ditto.
7139 * NEWS: Note new native NetBSD/alpha configuration.
7140 * alphanbsd-nat.c: New file.
7141 * alphanbsd-tdep.c: Ditto.
7142 * configure.host (alpha*-*-netbsd*): New host.
7143 * configure.tgt (alpha*-*-netbsd*): New target.
7144 * config/alpha/nbsd.mh: New file.
7145 * config/alpha/nbsd.mt: Ditto.
7146 * config/alpha/nm-nbsd.h: Ditto.
7147 * config/alpha/tm-nbsd.h: Ditto.
7148
36a6271d
JT
71492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7150
7151 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7152 (alpha-osf1-tdep.o): New dependency list.
7153 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7154 and skip_sigtramp_frame members.
7155 * alpha-linux-tdep.c: Include gdbcore.h.
7156 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7157 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7158 * alpha-osf1-tdep.c: New file.
7159 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7160 alpha-osf1-dep.c.
7161 (alpha_frame_past_sigtramp_frame): New function.
7162 (alpha_dynamic_sigtramp_offset): Ditto.
7163 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7164 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7165 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7166 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7167 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7168 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7169 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7170 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7171 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7172 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7173 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7174 to find_solib_trampoline_target.
7175 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7176 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7177 (SKIP_TRAMPOLINE_CODE): Remove.
7178 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7179 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7180 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7181 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7182 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7183 (PROC_SIGTRAMP_MAGIC): Ditto.
7184 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7185 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7186 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7187 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7188 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7189
2f4bc57b
JT
71902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7191
7192 * NEWS: Note that Alpha targets are now multi-arch.
7193
665132f9
MS
71942002-04-24 Michael Snyder <msnyder@redhat.com>
7195
7196 * parser-defs.h (prev_lexptr): New external variable.
7197 * parse.c (parse_exp_1): Set prev_lexptr to null before
7198 calling the language-specific parser.
7199 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7200 (yyerror): Use prev_lexptr in error reporting.
7201
32872fa7
DJ
72022002-04-24 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7205 * gregset.h: If FILL_FPXREGSET is defined, provide
7206 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7207 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7208 is defined, call fill_fpxregset.
7209
57e76fac
MS
72102002-04-24 Roland McGrath <roland@frob.com>
7211
7212 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7213 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7214 (supply_gregset, supply_fpregset): New functions.
7215
7216 * gnu-nat.c (gnu_find_memory_regions): New function.
7217 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7218 (gnu_xfer_memory): Add a cast.
7219
f43845b3
MS
72202002-04-24 Michael Snyder <msnyder@redhat.com>
7221
361d1df0 7222 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7223 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7224 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7225 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7226 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7227 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7228
a0abec03
AC
7229Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7230
7231 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7232 NUM_PSEUDO_REGS can be used.
7233
d7bd68ca
AC
72342002-04-24 Andrew Cagney <ac131313@redhat.com>
7235
7236 * arch-utils.h: Update copyright.
7237
7238 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7239 * gdbarch.h, gdbarch.c: Re-generate.
7240
7241 * inferior.h (IN_SIGTRAMP): Delete definition.
7242 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7243 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7244
7245 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7246 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7247 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7248 (find_proc_framesize): Ditto.
7249 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7250 (alpha_init_extra_frame_info): Ditto.
7251 * infrun.c (handle_inferior_event): Ditto.
7252 (handle_inferior_event): Ditto.
7253 (check_sigtramp2): Ditto.
7254 * blockframe.c (create_new_frame): Ditto.
7255 (get_prev_frame): Ditto.
7256 * ppc-linux-tdep.c: Update comments.
7257 * i386-linux-tdep.c: Update comments.
7258 * breakpoint.c (bpstat_what): Update comment.
7259
4867e41e
DM
72602002-04-24 David S. Miller <davem@redhat.com>
7261
21d83aa5
DM
7262 * i960-tdep.c (register_in_window_p): New function.
7263 (i960_find_saved_register): Use it instead of
7264 REGISTER_IN_WINDOW_P.
7265 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7266
4867e41e
DM
7267 * symtab.h (find_stab_function_addr): Kill extern.
7268 * minsyms.c (find_stab_function_addr): Remove from here...
7269 * dbxread.c: ... to here, and mark it static.
7270
69cdf6a2
DM
72712002-04-20 David S. Miller <davem@redhat.com>
7272
7273 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7274 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7275
5a595886
DM
72762002-04-21 David S. Miller <davem@redhat.com>
7277
7278 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7279 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7280 (vx_write_register): Likewise.
7281
1da1a192
JB
72822002-04-23 J. Brobecker <brobecker@gnat.com>
7283
7284 * source.c (is_regular_file): New function.
7285 (openp): Check wether file to open is a regular file
7286 to avoid opening directories.
7287
baa6f10b
JT
72882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7289
7290 * findvar.c (extract_signed_integer): Cast printf argument
7291 to suppress format warning.
7292 (extract_unsigned_integer): Likewise.
7293 * infcmd.c (registers_info): Likewise.
7294 * top.c (get_prompt_1): Likewise.
7295 * valops.c (value_assign): Likewise.
7296 * valprint.c (print_decimal): Likewise.
7297
b2c4da81
L
72982002-04-22 H.J. Lu (hjl@gnu.org)
7299
7300 * c-exp.y (typebase): Support
361d1df0 7301
b2c4da81
L
7302 [long|long long|short] [signed|unsigned] [int|]
7303
7304 and
7305
7306 signed [long|long long|short] int
7307
f267bd6a
JT
73082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7309
7310 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7311 and vax-tdep.h.
7312 * vax-tdep.h: New file.
7313 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7314 Make several routines static.
7315 (vax_get_saved_register): New function.
7316 (vax_gdbarch_init): New function.
7317 (_initialize_vax_tdep): Register vax_gdbarch_init.
7318 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7319 Remove macros now under the control of gdbarch.
7320
da3c6d4a
MS
73212002-04-22 Michael Snyder <msnyder@redhat.com>
7322
11d3b27d
MS
7323 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7324 Some whitespace and coding standards tweaks.
da3c6d4a 7325
a33f7558
JT
73262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7327
7328 * vax-tdep.c: Include regcache.h.
7329 (vax_call_dummy_words): New.
7330 (sizeof_vax_call_dummy_words): New.
7331 (vax_fix_call_dummy): New function.
7332 (vax_saved_pc_after_call): Ditto.
7333 * config/vax/tm-vax.h: Don't include regcache.h.
7334 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7335 (CALL_DUMMY): Remove.
7336 (CALL_DUMMY_WORDS): Define.
7337 (SIZEOF_CALL_DUMMY_WORDS): Define.
7338 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7339
47a73475
MS
73402002-04-18 Michael Snyder <msnyder@redhat.com>
7341
7342 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7343
52efde73
JT
73442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * vax-tdep.c (vax_frame_chain): New function.
7347 (vax_push_dummy_frame): Ditto.
7348 (vax_pop_frame): Ditto.
7349 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7350 (FRAMELESS_FUNCTION_INVOCATION): Use
7351 generic_frameless_function_invocation_not.
7352 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7353 (POP_FRAME): Use vax_pop_frame.
7354
ea74468c
JT
73552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7356
7357 * vax-tdep.c (vax_store_struct_return): New function.
7358 (vax_extract_return_value): Ditto.
7359 (vax_store_return_value): Ditto.
7360 (vax_extract_struct_value_address): Ditto.
7361 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7362 vax_store_struct_return.
7363 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7364 (STORE_RETURN_VALUE): Use vax_store_return_value.
7365 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7366
5516aa92
JT
73672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * vax-tdep.c (vax_frame_saved_pc): New function.
7370 (vax_frame_args_address_correct): Ditto.
7371 (vax_frame_args_address): Ditto.
7372 (vax_frame_locals_address): Ditto.
7373 (vax_frame_num_args): Move code to be in proximity to
7374 other frame-related functions.
7375 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7376 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7377 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7378 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7379 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7380
36af0b35
L
73812002-04-22 H.J. Lu (hjl@gnu.org)
7382
7383 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7384 includedir.
7385
ab62c900
JT
73862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7387
7388 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7389 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7390 (FRAME_INIT_SAVED_REGS): New macro.
7391
7232b100
JT
73922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7393
7394 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7395
b70d2aee
JT
73962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7399 where needed.
7400 (fetch_osf_core_registers): Likewise.
7401 (supply_gregset): Likewise.
7402
a0e8a2d1 74032002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7404
a0e8a2d1
JB
7405 * symfile.h (get_section_index): Define.
7406 * symfile.c (get_section_index): New function.
7407 * mdebugread.c (SC_IS_SBSS): New macro.
7408 (SC_IS_BSS): Return true for the scBss storage class only, as
7409 the scSBss storage class refers to the .sbss section.
7410 (parse_partial_symbols): Discard the symbols which associated
7411 section does not exist.
7412 Make sure to use the .sbss section index for symbols which
7413 storage class is scBss, rather than using the .bss section index.
7414
51eb8b08
JT
74152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7416
7417 * vax-tdep.c: Update copyright years.
7418 (vax_register_name): New function.
7419 (vax_register_byte): Ditto.
7420 (vax_register_raw_size): Ditto.
7421 (vax_register_virtual_size): Ditto.
7422 (vax_register_virtual_type): Ditto.
7423 * config/vax/tm-vax.h: Update copyright years.
7424 (REGISTER_NAMES): Remove.
7425 (REGISTER_NAME): Define.
7426 (REGISTER_BYTE): Use vax_register_byte.
7427 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7428 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7429 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7430
6cc1c0a8
AC
74312002-04-21 Andrew Cagney <ac131313@redhat.com>
7432
7433 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7434 declaration
7435 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7436
9319a2fe
DM
74372002-04-21 David S. Miller <davem@redhat.com>
7438
7439 * arch-utils.c (generic_prologue_frameless_p): Kill
7440 SKIP_PROLOGUE_FRAMELESS_P code.
7441 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7442 references.
7443 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7444 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7445 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7446 references.
7447 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7448 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7449 (sparc_gdbarch_init): Pass it to
7450 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7451
e9ed6d01
JT
74522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7453
7454 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7455 (alphabsd-nat.o): New dependency list.
7456
36012033
JT
74572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7458
7459 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7460 alphafbsd-tdep.c.
7461 (alpha-linux-tdep.o): New dependency list.
7462 (alphafbsd-tdep.o): Likewise.
7463
3379287a
JT
74642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7467 to here...
7468 * alpha-tdep.c: ...from here.
7469 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7470
4bcbd6cb
JT
74712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7472
7473 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7474 prototype from here...
7475 * alpha-tdep.h: ...to here.
7476
b31da25e
AC
74772002-04-21 Andrew Cagney <ac131313@redhat.com>
7478
7479 * frame.h (selected_frame_level): Document as deprecated.
7480 (frame_relative_level): Declare.
7481 * stack.c (frame_relative_level): New function.
7482 (selected_frame_level): Document as deprecated.
7483 (select_frame): Do not set the selected_frame_level.
7484
7485 * stack.c (frame_info, record_selected_frame): Update.
7486 (frame_command, current_frame_command): Update.
7487 (up_silently_base, up_command, down_silently_base): Update.
7488 (down_command): Update.
7489 * inflow.c (kill_command): Update.
7490 * tracepoint.c (finish_tfind_command): Update.
7491 * corelow.c (core_open): Update.
7492 * thread.c (info_threads_command): Update.
7493 (do_captured_thread_select): Update.
7494 * infcmd.c (finish_command): Update.
7495 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7496
9c1d6fe5
JT
74972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7498
7499 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7500
ab89facf
AC
75012002-04-21 Andrew Cagney <ac131313@redhat.com>
7502
7503 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7504 type const.
7505
82a4efa1
JT
75062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * alphafbsd-tdep.c: Update copyright years. Include
7509 alpha-tdep.h.
7510 (alphafbsd_use_struct_convention): Make static.
7511 (alphafbsd_init_abi): New function.
7512 (_initialize_alphafbsd_tdep): New function.
7513 * config/alpha/tm-fbsd.h: Update copyright years.
7514 (USE_STRUCT_CONVENTION): Remove.
7515
44dffaac
JT
75162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7517
7518 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7519 an Alpha ABI variant.
7520 (alpha_abi_handler_list): Declare.
7521 (alpha_gdbarch_register_os_abi): New function.
7522 (alpha_gdbarch_init): Give registered ABI variant handlers a
7523 chance to tweak the gdbarch once we have set up defaults.
7524 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7525
65585be4
JT
75262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7529 to standard_coerce_float_to_double.
7530 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7531
d9b023cc
JT
75322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7535 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7536 from gdbarch_tdep rather than a constant.
7537 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7538 the default text address for all Alpha Unix ABIs.
7539 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7540 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7541
dc129d82
JT
75422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * alpha-tdep.h: New file. Includes several Alpha target constants
7545 taken from...
7546 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7547 let gdbarch deal with.
7548 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7549 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7550 to dependency list.
7551 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7552 Alpha target register names.
7553 * alphabsd-nat.c: Likewise.
7554 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7555 Alpha target register names. Make serveral routines static.
7556 (alpha_get_saved_register): New function.
7557 (alpha_abi_names): New.
7558 (process_note_abi_tag_sections): New function.
7559 (get_elfosabi): New function.
7560 (alpha_gdbarch_init): New function.
7561 (alpha_dump_tdep): New function.
7562 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7563
d49d1e0a
AC
75642002-04-21 Andrew Cagney <ac131313@redhat.com>
7565
7566 * frame.c (find_saved_register): Delete #ifdef
7567 HAVE_REGISTER_WINDOWS code.
7568 * config/sparc/tm-sparc.h: Update comments.
7569 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7570
92e8c9ed
AC
75712002-04-21 Andrew Cagney <ac131313@redhat.com>
7572
7573 * i960-tdep.c (i960_find_saved_register): New function.
7574 (i960_get_saved_register): New function.
7575 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7576 (i960_get_saved_register): Declare.
7577 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7578
e1925118
DM
75792002-04-20 David S. Miller <davem@redhat.com>
7580
7581 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7582
29673b29
AC
75832002-04-20 Andrew Cagney <ac131313@redhat.com>
7584
7585 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7586 instead of NUM_PSEUDO_REGS.
7587
6c86dcd5
DM
75882002-04-20 David S. Miller <davem@redhat.com>
7589
7590 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7591 GDB_MULTI_ARCH_PARTIAL
7592 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7593 define, let tm-sp64.h do it.
7594
aa40ec90
JT
75952002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * frame.c (find_saved_register): Avoid a NULL pointer
7598 dereference and actually walk the frame list.
7599
0f79675b
AC
76002002-04-20 Andrew Cagney <ac131313@redhat.com>
7601
7602 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7603 sorted in most most-recent-used order. Document.
7604 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7605
f91305dd 76062002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7607
7608 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7609 instead of ->prev.
7610 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7611 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7612 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7613 instead of ->prev.
7614
73d322b1
EZ
76152002-04-19 Elena Zannoni <ezannoni@redhat.com>
7616
7617 Fix PR gdb/471.
7618 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7619 (build_builtin_type_vec128): Ditto.
7620 (append_composite_type_field): Fix calculation of type length in
7621 union case.
7622
ccd9a834
EZ
76232002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7624
7625 * config/djgpp/README: Update.
7626
7627 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7628 compiler warnings.
7629
a57f9e49
JT
76302002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7631
7632 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7633 (alpha_setup_arbitrary_frame): ...to this.
7634 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7635 for alpha_setup_arbitrary_frame.
7636
f4f9705a
AC
76372002-04-18 Andrew Cagney <cagney@redhat.com>
7638
7639 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7640 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7641
f4f9705a
AC
7642 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7643 * target.h (memory_breakpoint_from_pc): Update declaration.
7644 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7645
7646 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7647 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7648 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7649 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7650 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7651 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7652 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7653 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7654 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7655 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7656 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7657 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7658
7659 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7660 const pointer.
7661 * monitor.c (monitor_insert_breakpoint): Ditto.
7662 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7663
7664 * config/mcore/tm-mcore.h: Update copyright.
7665 * mem-break.c: Ditto.
7666 * xstormy16-tdep.c: Ditto.
7667
29f319b8
PM
76682002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7669
7670 * p-exp.y: Add precedence rule for '^' token.
7671 This removes the shift/reduce conflicts.
7672 Remove the comment concerning these shift/reduce conflicts.
7673
ebeac11a
EZ
76742002-04-18 Elena Zannoni <ezannoni@redhat.com>
7675
7676 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7677 (registers_powerpc_nofp): New register set for processors
7678 without floating point unit.
7679
27c31547
DM
76802002-04-18 David S. Miller <davem@redhat.com>
7681
7682 * MAINTAINERS: Add myself to write-after-approval.
7683
47a73475
MS
76842002-04-17 Michael Snyder <msnyder@redhat.com>
7685
7686 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7687
953836b2
AC
76882002-04-17 Andrew Cagney <ac131313@redhat.com>
7689
7690 * rs6000-tdep.c (frame_initial_stack_address): Use
7691 frame_register_read to read the alloca_reg.
7692
8b0d4340
AC
76932002-04-17 Andrew Cagney <ac131313@redhat.com>
7694
7695 * frame.c (find_saved_register): Find saved registers in the next
7696 not prev frame.
7697 Fix PR gdb/365.
7698
d8864532
AC
76992002-04-17 Andrew Cagney <ac131313@redhat.com>
7700
7701 * gdbarch.sh (LANG): Set to ``c''.
7702
36cc83a3 77032002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7704
36cc83a3 7705 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7706
2f4150cc 77072002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7708
7709 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7710 Update copyright.
7711
628703c6 7712 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7713 Also fix PR gdb/391.
361d1df0 7714
56157b4a
AC
77152002-04-14 Andrew Cagney <ac131313@redhat.com>
7716
7717 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7718 * aclocal.m4, configure: Re-generate.
7719 Fix PR gdb/391.
361d1df0 7720
6d1e3329
EZ
77212002-04-14 Elena Zannoni <ezannoni@redhat.com>
7722
7723 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7724 instead of tm_print_insn.
7725
cb06fa07
EZ
77262002-04-14 Elena Zannoni <ezannoni@redhat.com>
7727
7728 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7729
f208ba17
AC
77302002-04-14 Andrew Cagney <ac131313@redhat.com>
7731
7732 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7733 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7734 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7735
20f01a46
DH
77362002-04-12 Don Howard <dhoward@redhat.com>
7737
7738 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7739 max_user_call_depth.
7740 (init_cmd_lists): Initialize the new value;
7741 * cli/cli-script.c (execute_user_command): Limit the call depth of
7742 user defined commands. This avoids a core-dump when user commands
7743 are infinitly recursive.
7744
a88376a3
KB
77452002-04-12 Kevin Buettner <kevinb@redhat.com>
7746
7747 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7748 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7749 from tdep struct instead of DEFAULT_LR_SAVE.
7750 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7751 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7752 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7753
f2172603
MS
77542002-04-12 Michael Snyder <msnyder@redhat.com>
7755
694f61fb 7756 * Remote.c: Spelling fix.
20fe79c8
MS
7757 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7758 If no symbol found for "sbrk", try "_sbrk".
7759 (make_output_phdrs): Use bfd_section_name.
7760 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7761 * eval.c: Indentation fix-ups.
169a7369
MS
7762 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7763 in case it gets applied to an address that is already
7764 in the instruction space.
de74f71f
MS
7765 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7766 * symfile.c: Fix indentation, long lines.
f2172603
MS
7767 * source.c: White space fix-up.
7768
cda5a58a
AC
77692002-04-12 Andrew Cagney <cagney@redhat.com>
7770
7771 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7772 * frame.c (frame_register_read): New function. Return non-zero on
7773 success.
7774 (read_relative_register_raw_bytes_for_frame): Delete.
7775 (read_relative_register_raw_bytes): Delete.
7776 * frame.h (frame_register_read): Declare.
7777 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7778 * sh-tdep.c: Ditto.
7779 * infcmd.c (do_registers_info): Ditto.
7780 * hppa-tdep.c: Ditto.
7781 * rs6000-tdep.c: Ditto.
7782 * h8500-tdep.c: Ditto.
7783 * mips-tdep.c: Ditto.
7784 * h8300-tdep.c: Ditto.
7785 * z8k-tdep.c: Ditto.
7786
2ea5f656
KB
77872002-04-12 Kevin Buettner <kevinb@redhat.com>
7788
7789 From Jimi X <jimix@watson.ibm.com>:
7790 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7791 64-bit SysV ABI.
7792
27b15785
KB
77932002-04-12 Kevin Buettner <kevinb@redhat.com>
7794
7795 From Jimi X <jimix@watson.ibm.com>:
7796 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7797 bfd info.
7798
5d57ee30
KB
77992002-04-12 Kevin Buettner <kevinb@redhat.com>
7800
7801 From Jimi X <jimix@watson.ibm.com>:
7802 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7803 register sets for these processor variants.
7804
bc1e36ca
DJ
78052002-04-11 Daniel Jacobowitz <drow@mvista.com>
7806
bc1e36ca
DJ
7807 * regformats/reg-ppc.dat: Support FPSCR.
7808
e3f36dbd
KB
78092002-04-11 Kevin Buettner <kevinb@redhat.com>
7810
7811 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7812 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7813 Add fpscr as an invalid/unfetchable register.
7814 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7815 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7816 (fill_fpregset): Add support for register fpscr.
7817 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7818 (fill_gregset): Account for the fact that register ``mq'' might
7819 not exist.
7820 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7821 (registers_power): Add fpscr to register set at slot 71.
7822 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7823 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7824
943c9c25
MS
78252002-04-11 Michael Snyder <msnyder@redhat.com>
7826
7827 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7828 * configure: Regenerate.
7829 * config.in: Regenerate.
7830 * acconfig.h: Add define for _SYSCALL32.
7831 * core-sol2.c: Remove #define _SYSCALL32.
7832 * solib-legacy.c: Remove #define _SYSCALL32.
7833
d8c0a2e7
AC
78342002-04-10 Andrew Cagney <ac131313@redhat.com>
7835
7836 * stack.c (select_frame): Cleanup internal error message, do not
7837 use %p.
7838
7cc19214
AC
78392002-04-10 Andrew Cagney <ac131313@redhat.com>
7840
7841 * stack.c (select_frame): Check that selected_frame and the
7842 specified level are as expected.
7843 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7844 Update copyright.
7845 * frame.h (struct frame_info): Add field `level'. Update
7846 copyright.
7847 Work-in-progress PR gdb/464.
7848
67a2b77e
AC
78492002-04-10 Andrew Cagney <ac131313@redhat.com>
7850
7851 * maint.c (maint_print_section_info): Rename print_section_info.
7852 (print_bfd_section_info, print_objfile_section_info): Update.
7853 * inferior.h (struct gdbarch): Add opaque declaration.
7854 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7855 * gdbarch.h: Regenerate.
7856
8cfda98c
ML
78572002-04-10 Michal Ludvig <mludvig@suse.cz>
7858
7859 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7860 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7861 (kernel_u_size): Added.
7862 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7863 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7864
ca439ad2 78652002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7866
ca439ad2
JI
7867 * valarith.c (find_size_for_pointer_math): New function, either returns
7868 the size for a pointer's target, returns 1 for void *, or errors for
7869 incomplete types.
7870 (value_add, value_sub): use find_size_for_pointer_math.
7871
2f2893d9
DJ
78722002-04-09 Daniel Jacobowitz <drow@mvista.com>
7873
7874 * linux-low.c (linux_look_up_symbols): New hook.
7875 (linux_target_ops): Add linux_look_up_symbols.
7876 * remote-utils.c (decode_address): New function.
7877 (look_up_one_symbol): New function.
7878 * server.c (handle_query): Call target look_up_symbols hook.
7879 * server.h (look_up_one_symbol): Add prototype.
7880 * target.h (struct target_ops): Add look_up_symbols hook.
7881
96cb11df
AC
78822002-04-09 Andrew Cagney <ac131313@redhat.com>
7883
7884 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7885 override FP_REGNUM with frame->fp. Update copyright.
7886 * parse.c (num_std_regs, std_regs): Delete.
7887 (target_map_name_to_register): Do not search std_regs. Update
7888 function description.
7889 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7890 declarations. Update copyright.
7891 Fix PR gdb/251.
361d1df0 7892
97658e92
DJ
78932002-04-09 Daniel Jacobowitz <drow@mvista.com>
7894
7895 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7896 after the last symbol in a block.
7897
6044e3eb
PM
78982002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7899
7900 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7901 is non zero as a found symbol.
7902
0406ec40
AC
79032002-04-08 Andrew Cagney <ac131313@redhat.com>
7904
7905 * findvar.c: Include "builtin-regs.h".
7906 (value_of_register): Call value_of_builtin_reg when applicable.
7907 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7908 (target_map_name_to_register): Call
7909 builtin_reg_map_name_to_regnum.
7910 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7911 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7912 (builtin_regs_h): Define.
7913 (builtin-regs.o): New target.
7914 (findvar.o): Add $(builtin_regs_h).
7915 * builtin-regs.c, builtin-regs.h: New files.
7916 * std-regs.c: New file.
7917 Partial fix for PR gdb/251.
7918
56a6dfb9
KB
79192002-04-08 Kevin Buettner <kevinb@redhat.com>
7920
7921 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7922 it's no longer required.
7923
3a808432
AC
79242002-04-08 Andrew Cagney <ac131313@redhat.com>
7925
7926 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7927
7c40d541
KB
79282002-04-08 Kevin Buettner <kevinb@redhat.com>
7929
7930 From Jimi X <jimix@watson.ibm.com>:
7931 * rs6000-tdep.c (rs6000_software_single_step): Use
7932 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7933 and size. Use target_insert_breakpoint() and
7934 target_remove_breakpoint() to insert and remove breakpoints
7935 instead of explicit memory reads and writes.
7936
cc9836a8
KB
79372002-04-08 Kevin Buettner <kevinb@redhat.com>
7938
7939 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7940 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7941 ELF_OBJECT_FORMAT ifdef.
7942
7495d1dc
KB
79432002-04-08 Kevin Buettner <kevinb@redhat.com>
7944
7945 From Jimi X <jimix@watson.ibm.com>:
7946 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7947
4288e836
KB
79482002-04-08 Kevin Buettner <kevinb@redhat.com>
7949
7950 From Jimi X <jimix@watson.ibm.com>:
7951 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7952 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7953
a4e4e501
MK
79542002-04-07 Mark Kettenis <kettenis@gnu.org>
7955
7956 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7957 s/asprintf/xasprintf/.
7958 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7959
006defba
AC
79602002-04-07 Andrew Cagney <ac131313@redhat.com>
7961
7962 I believe Jeff Law denies responsability for this one:
7963 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7964 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7965 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7966 Work-around for PR gdb/366.
7967
7aa83cac
EZ
79682002-04-07 Elena Zannoni <ezannoni@redhat.com>
7969
7970 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7971 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7972 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7973
cf1fcca1
EZ
79742002-04-07 Elena Zannoni <ezannoni@redhat.com>
7975
7976 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7977 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7978 information.
7979
3f289e6f
AC
79802002-04-07 Andrew Cagney <ac131313@redhat.com>
7981
7982 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7983 maintainer.
7984
129188f6
AC
79852002-04-07 Andrew Cagney <ac131313@redhat.com>
7986
7987 * README (Reporting Bugs in GDB): Document the bug web page as the
7988 prefered way of submitting bugs.
7989 Fix PR gdb/402.
7990
1200cd6e
AC
79912002-04-06 Andrew Cagney <ac131313@redhat.com>
7992
7993 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7994 -1. Update comment.
7995 * gdbarch.h, gdbarch.c: Re-generate.
7996
2853c33c
AS
79972002-04-07 Andreas Schwab <schwab@suse.de>
7998
7999 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8000 buffer to regcache_collect.
8001
c2169756
AC
80022002-04-06 Andrew Cagney <ac131313@redhat.com>
8003
8004 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8005 * gdbarch.c, gdbarch.h: Re-generate.
8006
25f1b008
AC
80072002-04-06 Andrew Cagney <ac131313@redhat.com>
8008
8009 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8010 declaration. Fix -Werror.
8011
59263426
DJ
80122002-04-05 Daniel Jacobowitz <drow@mvista.com>
8013
8014 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8015 * gdbarch.c: Regenerate.
8016
f5db4da3
MS
80172002-04-05 Michael Snyder <msnyder@redhat.com>
8018
80f8a6eb
MS
8019 * breakpoint.c (clear_command): Rewrite middle section to
8020 combine two loops with identical control conditions.
8021 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8022 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8023
ad3dcc5c
L
80242002-04-05 H.J. Lu (hjl@gnu.org)
8025
8026 * solib-svr4.c (bkpt_names): Add "__start".
8027
f32e7a74
AC
80282002-04-04 Andrew Cagney <ac131313@redhat.com>
8029
8030 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8031 as test for 64 bit target.
8032
8227c0ff
AC
80332002-04-05 Andrew Cagney <ac131313@redhat.com>
8034
8035 * h8500-tdep.c (h8500_write_fp): Delete function.
8036 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8037 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8038 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8040 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8041 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8042 (s390_write_fp):
8043 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8044 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8045 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8046 (d10v_write_fp): Delete function.
8047 * inferior.h (write_fp, generic_target_write_fp): Delete
8048 declarations.
8049 * regcache.c (generic_target_write_fp): Delete function.
8050 (write_fp): Delete function.
8051 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8052 * gdbarch.h, gdbarch.c: Regenerate.
8053 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8054 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8055 (sparc64_write_fp): Delete declaration.
8056 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8057 (h8500_write_fp): Delete declaration.
8058
2757dd86
AC
80592002-04-04 Andrew Cagney <ac131313@redhat.com>
8060
8061 * sparc-tdep.c (sparc64_write_fp): Delete.
8062 (sparc_push_dummy_frame): Replace write_fp call with code to store
8063 the FP directly.
8064 (sparc_gdbarch_init): Do not initialize write_fp.
8065
c69255e1
KB
80662002-04-05 Kevin Buettner <kevinb@redhat.com>
8067
8068 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8069 clause.
8070
ae767bfb
JB
80712002-03-29 Jim Blandy <jimb@redhat.com>
8072
8073 * stack.c (get_selected_block): Add new argument `addr_in_block',
8074 used to return the exact code address we used to select the block,
8075 not just the block.
8076 * blockframe.c (get_frame_block, get_current_block): Same.
8077 * frame.h (get_frame_block, get_current_block,
8078 get_selected_block): Update declarations.
8079 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8080 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8081
84d2ac95
MS
80822002-04-05 Michael Snyder <msnyder@redhat.com>
8083
8084 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8085 warning message.
8086
596aa3bf
JB
80872002-04-05 J. Brobecker <brobecker@gnat.com>
8088
8089 * utils.c (xfullpath): New function.
8090 * defs.h (xfullpath): Add declaration.
8091 * source.c (openp): Use xfullpath in place of gdb_realpath to
8092 avoid resolving the basename part of filenames when the
8093 associated file is a symbolic link. This fixes a potential
8094 inconsistency between the filenames known to GDB and the
8095 filenames it prints in the annotations.
8096 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8097 to be able to match a filename with either the real filename, or
8098 the name of any symbolic link to this file.
8099 (lookup_partial_symtab): Ditto.
8100
c02f5703
MS
81012002-04-04 Michael Snyder <msnyder@redhat.com>
8102
8103 * breakpoint.c: Add support for hardware breakpoints in overlays.
8104 (overlay_events_enabled): New state variable.
8105 (insert_breakpoints): Use overlay_events_enabled to decide
8106 whether to attempt to set a breakpoint at the overlay load addr.
8107 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8108 (remove_breakpoint): Use overlay_events_enabled to decide
8109 whether breakpoints need to be removed from overlay load addr.
8110 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8111 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8112 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8113 disable_overlay_breakpoints): Update overlay_events_enabled.
8114
5fb290d7
DJ
81152002-04-04 Daniel Jacobowitz <drow@mvista.com>
8116
8117 * dwarf2read.c (struct function_range): New.
8118 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8119 (check_cu_functions): New.
8120 (read_file_scope): Initialize global function lists.
8121 Call dwarf_decode_line after processing children.
8122 (read_func_scope): Add to global function list.
8123 (dwarf_decode_lines): Call check_cu_functions everywhere
8124 record_line is called. Call record_line with a linenumber
8125 of 0 to mark sequence ends.
8126
7b3fabf0
ML
81272002-04-04 Michal Ludvig <mludvig@suse.cz>
8128
361d1df0 8129 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8130 change sync with glibc.
8131
bce58c09
JB
81322002-04-03 Jim Blandy <jimb@redhat.com>
8133
8134 * configure.in: Call AC_C_INLINE.
8135 * configure: Regenerated.
361d1df0 8136
2fccf04a
DJ
81372002-04-01 Daniel Jacobowitz <drow@mvista.com>
8138
8139 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8140 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8141
2d1bfe2e
MK
81422002-03-31 Mark Kettenis <kettenis@gnu.org>
8143
a5941fbf
MK
8144 * NEWS: Mention gcore support on FreeBSD/i386.
8145
a90cd31d
MK
8146 * fbsd-proc.c: New file.
8147 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8148 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8149
2d1bfe2e
MK
8150 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8151 while statement.
8152
9eb6e5a1
JB
81532002-03-29 Jim Blandy <jimb@redhat.com>
8154
8155 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8156 unescaped newlines in string literals, but newer ones don't. So
8157 escape them.
8158
f02df580
MS
81592002-03-26 Michael Snyder <msnyder@redhat.com>
8160 Andrew Cagney <cagney@redhat.com>
8161
361d1df0 8162 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8163 restore file to memory.
8164 * cli/cli-dump.h: New file.
8165 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8166 * NEWS: Mention new commands.
f02df580 8167
109f874e
MS
81682002-03-28 Michael Snyder <msnyder@redhat.com>
8169
8170 * symfile.c (symbol_file_add): Move test for null symbols to later.
8171
520f6ade
AC
81722002-03-27 Andrew Cagney <ac131313@redhat.com>
8173
8174 From veksler at il.ibm.com:
8175 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8176 the xstrduped original path.
8177 Fix PR gdb/417.
8178
d4654627
MS
81792002-03-27 Michael Snyder <msnyder@redhat.com>
8180
8181 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8182 * infcmd.c (_initialize_infcmd): Ditto.
8183 * language.c (_initialize_language): Ditto.
8184 * symfile.c (_initialize_symfile): Ditto.
8185 * top.c (_init_main): Ditto.
8186 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8187
6be8bc0c
EZ
81882002-03-27 Elena Zannoni <ezannoni@redhat.com>
8189
8190 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8191 vector registers handling.
8192 (skip_prologue): Handle new AltiVec instructions. Fill in new
8193 fields of frame data.
8194 (frame_get_saved_regs): Fill in information for AltiVec registers.
8195
12af6855
JB
81962002-03-27 Jim Blandy <jimb@redhat.com>
8197
8198 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8199 a function; leave this macro here to invoke that function.
8200 (symbol_init_mangled_name): Declaration for that function.
8201 * symtab.c (symbol_init_mangled_name): New function.
8202
dc672865
AC
82032002-03-27 Andrew Cagney <ac131313@redhat.com>
8204
8205 * valarith.c: Replace strerror with safe_strerror.
8206 * tracepoint.c: Ditto.
8207 * lin-lwp.c: Ditto.
8208 * go32-nat.c: Ditto.
8209 * inflow.c: Ditto.
8210 * gnu-nat.c: Ditto.
8211
d96429cd
AS
82122002-03-27 Andreas Schwab <schwab@suse.de>
8213
8214 * event-top.c (command_line_handler): Remove useless if.
8215
7e336ba1
AJ
82162002-03-27 Andreas Jaeger <aj@suse.de>
8217
8218 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8219 comment.
8220
de220d0f
ML
82212002-03-27 Michal Ludvig <mludvig@suse.cz>
8222
8223 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8224 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8225 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8226 (x86_64_linux_dr_get_status, supply_gregset),
8227 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8228 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8229 (x86_64_register_info_table): Add.
8230 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8231 (x86_64_register_raw_size, x86_64_register_virtual_type),
8232 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8233 general x86_64_register_info_table.
8234 (i386_gdbarch_init): gdbarch_register_bytes is now set
8235 dynamicaly during initialization.
8236 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8237 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8238
0e98d0a7
DJ
82392002-03-27 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * gdbserver/server.c (main): Call target_signal_to_host_p
8242 and target_signal_to_host on signals received from the remote.
8243 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8244 target_signal_from_host on signals sent to the remote.
8245 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8246 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8247
3130066b
DJ
82482002-03-27 Daniel Jacobowitz <drow@mvista.com>
8249
8250 * signals/signals.c: Include "server.h" in gdbserver build.
8251 (target_signal_from_name): Don't use STREQ.
8252 (_initialize_signals): Likewise. Don't include function in
8253 gdbserver build.
8254
9aedf4f4
DJ
82552002-03-27 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * signals.c: Moved to...
8258 * signals/signals.c: Here.
7e336ba1 8259 * Makefile (signals.o): Update.
9aedf4f4 8260
3fa41cdb
JL
82612002-03-26 Jeff Law (law@redhat.com)
8262
8263 * somread.c (som_symtab_read): Remove some commented out code and
8264 updated related comments. Do not set the minimal symbol table to
8265 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8266 in a dynamic executable.
8267 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8268 where we are unable to find the minimal symbol for the given
8269 PC value.
8270
ee677e8d
MS
82712002-03-25 Jeff Law (law@redhat.com)
8272
8273 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8274
e76e1718
ML
82752002-03-25 Michal Ludvig <mludvig@suse.cz>
8276
8277 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8278
18a642a1
AC
82792002-03-23 Andrew Cagney <ac131313@redhat.com>
8280
8281 * command.h: Update copyright.
8282 (struct cmd_list_element): Replace definition with opaque
8283 declaration.
8284 (enum cmd_types): Document that it will eventually be moved to
8285 cli/cli-decode.h
8286 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8287 (MALLOCED_REPLACEMENT): Delete macro.
8288 * Makefile.in (cli_decode_h): Add $(command_h).
8289 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8290 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8291 * completer.c: Include "cli/cli-decode.h".
8292 * maint.c: Include "cli/cli-decode.h".
8293 * cli/cli-decode.h: Include "command.h".
8294 (enum command_class): Delete.
8295 (enum cmd_types): Comment out.
8296 (enum cmd_auto_boolean): Delete.
8297 (enum var_types): Delete.
8298
b2875cc0
AC
82992002-03-23 Andrew Cagney <ac131313@redhat.com>
8300
8301 * cli/cli-decode.c: Include "gdb_assert.h".
8302 (add_set_or_show_cmd): New static function.
8303 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8304 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8305 all fields, such as func, from the set command.
8306
3b45974e
AC
83072002-03-23 Andrew Cagney <ac131313@redhat.com>
8308
8309 * MAINTAINERS (sh-elf): Change warning flag to -w.
8310
823ca731
AC
83112002-03-23 Andrew Cagney <cagney@redhat.com>
8312
8313 * defs.h (error): Add printf format attribute.
8314 * thread-db.c (thread_from_lwp): Fix error format string.
8315 * stack.c (parse_frame_specification): Ditto.
8316 * cli/cli-decode.c (undef_cmd_error): Ditto.
8317 * scm-lang.c (scm_lookup_name): Ditto.
8318 * tracepoint.c (trace_error): Ditto.
8319 * remote-utils.c (usage): Ditto.
8320 * remote.c (compare_sections_command): Ditto.
8321 Fix PR gdb/328.
8322
0e101458
AC
83232002-03-22 Andrew Cagney <ac131313@redhat.com>
8324
8325 * gdbtypes.c (append_composite_type_field): New function.
8326 (init_composite_type): New function.
8327 * gdbtypes.h (append_composite_type_field): Declare.
8328 (init_composite_type): Ditto.
8329
8e0662df
EZ
83302002-03-22 Elena Zannoni <ezannoni@redhat.com>
8331
8332 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8333 function.
8e0662df
EZ
8334 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8335 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8336 structure returning convention for SYSV ABI case, but not
8337 for GNU/Linux, FreeBSD, or NetBSD.
8338
3121eff0
DJ
83392002-03-22 Daniel Jacobowitz <drow@mvista.com>
8340
8341 * symtab.h (lookup_block_symbol): Add mangled_name argument
8342 to prototype.
8343
8344 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8345 with new mangled_name argument.
8346 * linespec.c (decode_line_1): Likewise.
8347 * valops (value_of_this): Likewise.
8348 * symtab.c (lookup_transparent_type): Likewise.
8349 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8350 (lookup_symbol): If we are given a mangled name, pass it down
8351 to lookup_symbol_aux.
8352 (lookup_block_symbol): If we are given a mangled name to check
8353 against, only return symbols which match it.
8354
349b409f
CF
83552002-03-22 Christopher Faylor <cgf@redhat.com>
8356
8357 * win32-nat.c (child_create_inferior): Check for proper shell to use
8358 here, in case the user changes it on the fly.
8359 (_initialize_inftarg): Remove shell path considerations.
8360
2a873819
EZ
83612002-03-21 Elena Zannoni <ezannoni@redhat.com>
8362
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8364 for gdbarch_max_register_raw_size and max_register_virtual_size.
8365 Adjust copyright year.
8366
a1b9830c
DJ
83672002-03-21 Daniel Jacobowitz <drow@mvista.com>
8368
8369 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8370 in a function to cover the entire beginning of the function
8371 as well if it does not already.
8372
8b5790f2
TR
83732002-03-21 Tom Rix <trix@redhat.com>
8374
8375 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8376 (rs6000_ptrace64): Renamed from ptrace64.
8377
bdbe5747
MH
83782002-03-20 Martin M. Hunt <hunt@redhat.com>
8379
8380 * gdbserver/remote-utils.c (remote_open): Don't call
8381 getprotobyname, we're all using TCP here so just use
8382 IPPROTO_TCP.
7e336ba1 8383 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8384
83852002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8386
bdbe5747
MH
8387 * regcache.c (_initialize_regcache): No need to call
8388 build_regcache() at this time; it gets called whenever
8389 the gdbarch changes.
8390
7781cd62
DB
83912002-03-20 David O'Brien <obrien@FreeBSD.org>
8392
8393 * sparc-nat.c: Include sys/param.h where possible.
8394
f65ca430
DJ
83952002-03-20 Daniel Jacobowitz <drow@mvista.com>
8396
8397 Fix PR gdb/422.
8398 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8399 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8400 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8401 complex types.
8402 * stabsread.c (rs6000_builtin_type): Likewise.
8403 (read_sun_floating_type): Likewise.
8404
0c867556
PS
84052002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8406
8407 * stabsread.c (read_member_functions): Remove skip code for duplicate
8408 constructor/destructor methods. Use standard parsing for these
8409 methods and just do not chain them to the list of methods after
8410 parsing.
8411
12b9c64f
AO
84122002-03-19 Alexandre Oliva <aoliva@redhat.com>
8413
8414 * coffread.c: Remove redundant static declarations. Replace
8415 occurrences of `PTR' with `void *'.
8416 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8417 * top.h (quit_cover): Likewise.
8418 * defs.h (catch_errors): Likewise.
8419
349c5d5f
AC
84202002-03-18 Andrew Cagney <ac131313@redhat.com>
8421
8422 * defs.h (XMALLOC): Define.
8423 * gdb-events.sh (XMALLOC): Delete macro.
8424 * gdb-events.c, gdb-events.h: Regenerate.
8425 * gdbarch.sh (XMALLOC): Delete macro.
8426 * gdbarch.c: Regenerate.
8427 * serial.c (XMALLOC): Delete macro.
8428 * ui-file.c (XMALLOC): Ditto.
8429 * ser-unix.h (XMALLOC): Ditto.
8430 * sh-tdep.c (XMALLOC): Ditto.
8431 * ui-out.c (XMALLOC): Ditto.
8432 * utils.c (XMALLOC): Ditto.
8433 * i386-tdep.c (XMALLOC): Ditto.
8434 * gdb-events.c (XMALLOC): Ditto.
8435 * d10v-tdep.c (XMALLOC): Ditto.
8436 * cli-out.c (XMALLOC): Ditto.
8437
8438 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8439 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8440 * ui-file.c, ui-out.c: Ditto.
8441
7d0766f3
AC
84422002-03-18 Andrew Cagney <ac131313@redhat.com>
8443
8444 * command.h (struct cmd_list_element): Add field context.
8445 (set_cmd_context, get_cmd_context): Declare.
8446 * cli/cli-decode.h: Ditto.
8447 * cli/cli-decode.c (get_cmd_context): New function.
8448 (set_cmd_context): New function.
8449 (add_cmd): Initialize context.
8450 Part of fixing PR gdb/145 and PR gdb/146.
8451
5913bcb0
AC
84522002-03-17 Andrew Cagney <ac131313@redhat.com>
8453
1868c04e
AC
8454 * cli/cli-decode.c (cmd_type): New function.
8455 * command.h (cmd_type): Declare.
8456 * infrun.c (set_schedlock_func): Call function cmd_type.
8457 * kod.c (kod_set_os): Call cmd_type.
8458 * cris-tdep.c (cris_version_update): Use function cmd_type.
8459 (cris_mode_update, cris_abi_update): Ditto.
8460
5913bcb0
AC
8461 * command.h: (execute_cmd_post_hook): Declare.
8462 (execute_cmd_pre_hook): Declare.
8463 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8464 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8465 functions. Execute pre/post hook while ensuring that afterwords
8466 hook_in is cleared.
8467 * top.c (execute_command): Use execute_cmd_post_hook, and
8468 execute_cmd_pre_hook to execute pre/post commands.
8469 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8470 hook_stop_stub.
8471 (hook_stop_stub): Call execute_cmd_pre_hook.
8472
b51450c9
AC
84732002-03-17 Andrew Cagney <ac131313@redhat.com>
8474
8475 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8476 set'' and this leads to a core dump. Move xstrdup of
8477 operating_system to after check that it is not NULL.
8478
f66c9f11
AC
84792002-03-17 Andrew Cagney <ac131313@redhat.com>
8480
8e694ecf
AC
8481 * kod.c (kod_set_os): Remove unnecessary check that
8482 ``command->type'' is set_cmd.
8483
f66c9f11
AC
8484 * valprint.c (set_input_radix): Use input_radix.
8485 (set_output_radix): Use output_radix.
8486 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8487 isn't reverted.
8488
9d01611c
AC
84892002-03-16 Andrew Cagney <ac131313@redhat.com>
8490
8491 * value.h (struct value): Delete field ``substring_addr''. Change
8492 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8493 force_core_addr_align and force_pointer_aligh.
8494
8495 * value.h (struct value): Fix typo in above change.
9d01611c 8496
4156bb53
PS
84972002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8498
8499 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8500 to fix internal_error from ``maintenance print architecture''.
8501
0e5e3ea6
PS
85022002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8503
8504 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8505 for gcc versions after gcc-2.8.1.
8506
9b013045
PS
85072002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8508
8509 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8510 for method resolution. Restore adjustment of ``this'' pointer after
8511 calling value_struct_elt, which was accidentally removed during the
8512 HP merge.
8513
376c9600
AC
85142002-03-15 Andrew Cagney <ac131313@redhat.com>
8515
8516 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8517 value_of_register.
8518 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8519 get_saved_register.
8520 * value.h (value_of_register): Update.
8521
a4db0f07
RH
85222002-03-14 Richard Henderson <rth@redhat.com>
8523
8524 * configure.in: Detect declaration for canonicalize_file_name.
8525 * utils.c (canonicalize_file_name): Declare, if needed.
8526 (gdb_realpath): Prefer realpath if available and usable.
8527 * config.in, configure: Rebuild.
8528
96383835
RH
85292002-03-14 Richard Henderson <rth@redhat.com>
8530
8531 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8532 a constant array bound.
8533
8534 * MAINTAINERS: Add myself to write-after-approval.
8535
75245b24
MS
85362002-03-14 Michael Snyder <msnyder@redhat.com>
8537
8538 * symfile.c (syms_from_objfile): Return immediately if no syms.
8539 (symbol_file_add): Return immediately if no syms.
8540 (find_sym_fns): Return immediately if no syms.
8541
e641a1ca
ML
85422002-03-13 Michal Ludvig <mludvig@suse.cz>
8543
8544 * gdbserver/remote-util.c (remote_open): Print remote-side's
8545 IP address when remote debugging over the network.
7e336ba1 8546
df08bfec
DB
85472002-03-12 David O'Brien <obrien@FreeBSD.org>
8548
8549 * config/sparc/fbsd.mh: Fix copyright.
8550 * config/sparc/fbsd.mt: Likewise.
8551
9a57864f
RE
85522002-03-11 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * MAINTAINERS: Fix typo in name of gdb warnings option.
8555 (x86-64): Fix formating so that this can be parsed by awk.
8556
dd7bf85e
DJ
85572002-03-10 Daniel Jacobowitz <drow@mvista.com>
8558
8559 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8560 * defs.h: Include "gdb/signals.h".
8561 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8562
33a0a2ac
ML
85632002-03-10 Michal Ludvig <mludvig@suse.cz>
8564
8565 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8566 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8567 from x86-64-tdep.h
8568
dd824b04
DJ
85692002-03-10 Daniel Jacobowitz <drow@mvista.com>
8570 Don Howard <dhoward@redhat.com>
8571
8572 * mips-tdep.c (ST0_FR): Define.
8573 (mips2_fp_compat): New function, temporarily disabled.
8574 (mips_read_fp_register_single): New function.
8575 (mips_read_fp_register_double): New function.
8576 (mips_print_register): Use them.
8577 (do_fp_register_row): Likewise.
8578
6a41ff59
AC
85792002-03-09 Andrew Cagney <ac131313@redhat.com>
8580
8581 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8582 approval''.
8583
4ea09c10
PS
85842002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8585
8586 * stabsread.c (read_member_functions): Fix is_stub test for
8587 static member functions, improve comment.
8588
6ccc741d
RE
85892002-03-07 Richard Earnshaw <rearnsha@arm.com>
8590
8591 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8592 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8593 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8594 commands that set boolean values.
8595 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8596 (arm_rdi_resume): Always initialize PC.
8597 (arm_rdi_open): Don't use rslt as a boolean.
8598 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8599 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8600 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8601 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8602
438013df
AO
86032002-03-06 Alexandre Oliva <aoliva@redhat.com>
8604
8605 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8606 * configure: Rebuilt.
8607
70ed8774
SC
86082002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8609
8610 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8611 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8612
5ba2abeb
AC
86132002-03-06 Andrew Cagney <ac131313@redhat.com>
8614
8615 * cli/cli-decode.c (set_cmd_completer): New function.
8616 * command.h (set_cmd_completer): Declare.
8617 * cli/cli-decode.h (set_cmd_completer): Ditto.
8618
8619 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8620 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8621 * win32-nat.c (_initialize_inftarg): Ditto.
8622 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8623 * proc-api.c (_initialize_proc_api): Ditto.
8624 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8625 * source.c (_initialize_source): Ditto.
8626 * exec.c (_initialize_exec): Ditto.
8627 * solib.c (_initialize_solib): Ditto.
8628 * top.c (init_main): Ditto.
8629 * tracepoint.c (_initialize_tracepoint): Ditto.
8630 * symfile.c (_initialize_symfile): Ditto.
8631 * printcmd.c (_initialize_printcmd): Ditto.
8632 * infcmd.c (_initialize_infcmd): Ditto.
8633 * corefile.c (_initialize_core): Ditto.
8634
f779ca99
AC
86352002-03-05 Andrew Cagney <ac131313@redhat.com>
8636
8637 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8638
01a3934b
AC
86392002-03-05 Andrew Cagney <ac131313@redhat.com>
8640
8641 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8642
37057839
AC
86432002-03-05 Andrew Cagney <ac131313@redhat.com>
8644
8645 * NEWS: Update headings, 5.2 has branched.
8646
c6ecbae5
DJ
86472002-03-04 Daniel Jacobowitz <drow@mvista.com>
8648
8649 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8650 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8651 (register_addr, REGISTER_RAW_SIZE): Likewise.
8652 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8653 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8654
e9f30c21
ML
86552002-03-03 Michal Ludvig <mludvig@suse.cz>
8656
8657 * MAINTAINERS (x86-64): Add myself.
8658 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8659 changed value_ptr -> struct value *
8660
54394ac3
DB
86612002-03-01 David O'Brien <obrien@FreeBSD.org>
8662
8663 * configure.host (sparc64-*-freebsd): Add.
8664 * configure.tgt: Likewise.
8665 * config/sparc/fbsd.mh: New file.
8666 * config/sparc/fbsd.mt: Likewise.
8667 * config/sparc/nm-fbsd.h: Likewise.
8668 * config/sparc/tm-fbsd.h: Likewise.
8669
bfe95955
DJ
86702002-03-01 Daniel Jacobowitz <drow@mvista.com>
8671
8672 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8673 regformats/reg-s390x.dat.
8674
f33c6cbf
AC
86752002-03-01 Andrew Cagney <ac131313@redhat.com>
8676
8677 * utils.c: Add FIXME explaining true/false problem.
8678
5ecaa7dd
AC
86792002-02-28 Andrew Cagney <ac131313@redhat.com>
8680
8681 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8682
2a251cc2
MC
86832002-02-28 Michael Chastain <mec@shout.net>
8684
8685 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8686
6a8031a3 86872002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8688
8689 * gdbserver/linux-s390-low.c: New file.
8690 * regformats/reg-s390.dat: New file.
8691 * regformats/reg-s390x.dat: New file.
8692 * gdbserver/configure.srv: Add S/390.
8693 * gdbserver/Makefile.in: Add S/390.
8694 * configure.tgt: Enable gdbserver for S/390.
8695
ac469903
EZ
86962002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8697
8698 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8699 first line of the doc string for "info dos", except at the end of
8700 the sentence, since the short help stops at the first period.
8701
985cb1a3
JM
87022002-02-28 Jason Merrill <jason@redhat.com>
8703
8704 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8705
c570663e
FF
87062002-02-27 Fred Fish <fnf@redhat.com>
8707
8708 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8709 comment (dumy -> dummy).
8710
43630227
PS
87112002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8712
8713 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8714
b84911e8
RB
87152002-02-27 Rodney Brown <rbrown64@csc.com.au>
8716
8717 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8718
58caa3dc
DJ
87192002-02-27 Daniel Jacobowitz <drow@mvista.com>
8720
8721 * gdbserver/acconfig.h: New file.
8722 * gdbserver/i387-fp.c: New file.
8723 * gdbserver/i387-fp.h: New file.
8724 * gdbserver/linux-x86-64.c: New file.
8725 * regformats/reg-x86-64.dat: New file.
8726 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8727 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8728 * gdbserver/configure.in: Add support for regsets.
8729 * gdbserver/config.in: Regenerate.
8730 * gdbserver/configure: Regenerate.
8731 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8732 * gdbserver/linux-low.h: New file.
8733 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8734 for regsets.
8735 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8736 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8737 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8738 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8739 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8740 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8741 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8742 "i387-fp.h". Add PTRACE_GETREGS and friends.
8743 * gdbserver/regcache.c (supply_register): New function.
8744 (supply_register_by_name): New function.
8745 (collect_register): New function.
8746 (collect_register_by_name): New function.
8747
93652174
DJ
87482002-02-27 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8751 (config.status): Add configure.srv dependency.
8752 (server_h): Add config.h dependency.
8753
a02e4a61
DJ
87542002-02-27 Daniel Jacobowitz <drow@mvista.com>
8755
8756 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8757 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8758 * gdbserver/configure.srv: Change i386-*-linux* to use
8759 reg-i386-linux.o.
8760
ce0eebec
AC
87612002-02-26 Andrew Cagney <ac131313@redhat.com>
8762
8763 * x86-64-tdep.c: Re-indent. Update copyright date.
8764
82dbc5f7
AC
87652002-02-26 Andrew Cagney <ac131313@redhat.com>
8766
8767 From Michal Ludvig <mludvig@suse.cz>:
8768 * x86-64-tdep.c (value.h): Delete.
8769 (gdb_assert.h): Include.
8770 (x86_64_register_convert_to_virtual,
8771 x86_64_register_convert_to_raw ): Add check which lets only
8772 floating-point values to be converted.
8773 (value_push): Delete.
8774 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8775 (i386_gdbarch_init): Number of register_bytes fixed.
8776
e4621584
AC
87772002-02-26 Andrew Cagney <ac131313@redhat.com>
8778
8779 * MAINTAINERS: Add x86-64 target.
8780
81a9a963
AC
87812002-02-26 Andrew Cagney <ac131313@redhat.com>
8782
8783 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8784 * osfsolib.c (solib_map_sections): Ditto.
8785 * irix5-nat.c (solib_map_sections): Ditto.
8786 * corelow.c (gdb_check_format): Ditto.
8787 * symfile.c (symfile_bfd_open): Ditto.
8788 * solib.c (solib_map_sections): Ditto.
8789 Fix PR gdb/354.
7e336ba1 8790
0f017ab9
AC
87912002-02-26 Andrew Cagney <ac131313@redhat.com>
8792
8793 * remote.c (_initialize_remote): By default, disable ``e'' and
8794 ``E'' step out-of-range packets.
8795
75738c29
AS
87962002-02-26 Andreas Schwab <schwab@suse.de>
8797
8798 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8799 m68k_linux_frame_saved_pc.
8800 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8801 in_sigtramp.
8802 (SIGCONTEXT_PC_OFFSET): Remove.
8803 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8804 m68k_linux_sigtramp_saved_pc): New functions.
8805 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8806 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8807 (UCONTEXT_PC_OFFSET): Define.
8808 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8809 non-RT and RT signal trampolines.
8810
7e8ed687
RE
88112002-02-26 Richard Earnshaw <rearnsha@arm.com>
8812
8813 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8814 (TARGET_NBPG, STACK_END_ADDR): Delete
8815 (VARIABLES_INSIDE_BLOCK): Delete.
8816
6972bc8b
AC
88172002-02-25 Andrew Cagney <ac131313@redhat.com>
8818
8819 * utils.c (perror_with_name): Make string parameter constant.
8820 (print_sys_errmsg): Ditto.
8821 (query): Ditto.
8822 * defs.h (perror_with_name): Update.
8823 (print_sys_errmsg): Update.
8824 (query): Update.
8825
aa32f823
DJ
88262002-02-25 Daniel Jacobowitz <drow@mvista.com>
8827
8828 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8829 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8830
19caaa45
PS
88312002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8832
8833 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8834 if it already matches the current architecture from the exec file.
8835 Include arch-utils.h for gdbarch_info_init prototype.
8836 * Makefile.in (rs6000-nat.o): Update dependencies.
8837
d951901f
EZ
88382002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8839
8840 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8841 list of exported variables.
8842
7ea81414
DJ
88432002-02-24 Daniel Jacobowitz <drow@mvista.com>
8844
8845 * gdbserver/configure.srv: New file.
8846 * gdbserver/configure.in: Use configure.srv instead
8847 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8848 from it.
8849 * gdbserver/configure: Regenerated.
8850 * gdbserver/terminal.h: New file.
8851 * gdbserver/Makefile.in: Update for configure changes. Remove
8852 more unneeded include paths.
8853
080fe24b
AC
88542002-02-24 Andrew Cagney <ac131313@redhat.com>
8855
8856 From wiz at danbala:
8857 * config/sparc/tm-sp64.h: Fix grammar and typos.
8858 Fix PR gdb/287.
8859
8605d56e
AC
88602002-02-24 Andrew Cagney <ac131313@redhat.com>
8861
8862 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8863 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8864 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8865 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8866 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8867 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8868 * s390-tdep.c: Ditto.
92362027
AC
8869 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8870 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8871 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8872 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8873 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8874 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8875 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8876 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8877 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8878 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8879 Fix PR gdb/378.
7e336ba1 8880
8ed32cc0
AC
88812002-02-23 Andrew Cagney <ac131313@redhat.com>
8882
a3007b6f
AC
8883 * lin-thread.c: Delete file.
8884 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8885 to gdb_proc_service.h.
8886 * configure: Re-generate.
8887
50a9e2f1
AC
8888 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8889 * serial.c (serial_open): Delete check for "ocd".
8890 Fix PR gdb/349.
8891
8b6e7932
AC
8892 * Makefile.in (linux-thread.o): Delete target.
8893 * linux-thread.c: Delete file.
8894
d155c46b
AC
8895 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8896 renamed SH files to be consistent.
8897
8ed32cc0
AC
8898 * symtab.c (sort_search_symbols): Use xfree.
8899
0e18d038
RE
89002002-02-23 Richard Earnshaw <rearnsha@arm.com>
8901
8902 * arm-linux-tdep.c (arm_linux_init_abi): Register
8903 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8904 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8905 definition with undef, since we don't want the sysvr4 definition.
8906 (SKIP_TRAMPOLINE_CODE): Likewise.
8907
27aac7ff
AC
89082002-02-23 Andrew Cagney <ac131313@redhat.com>
8909
8910 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8911
8912 * configure.in: (AC_CHECK_FUNCS) Added test for
8913 canonicalize_file_name Regenerated.
8914 * config.in, configure: Regenerated.
8915 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8916 defined use canonicalize_file_name.
7e336ba1 8917
65a6e0ee
MC
89182002-02-23 Michael Chastain <mec@shout.net>
8919
8920 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8921
47b95330
AC
89222002-02-23 Andrew Cagney <ac131313@redhat.com>
8923
8924 * README: Remove references to cygnus.com.
8925 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8926 dot com'' form. Remove references to cygnus.com and sourceware.
8927
696f451b
AC
89282002-02-23 Andrew Cagney <ac131313@redhat.com>
8929
8930 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8931 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8932 1003.1-2001 no longer allows "head -1".
8933 * gdb/Makefile.in (version.c): Likewise.
8934 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8935 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8936 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8937
bbaca940
AC
89382002-02-23 Andrew Cagney <ac131313@redhat.com>
8939
8940 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8941 * command.h (cmd_cfunc_eq): Declare.
8942 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8943
8944 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8945 ``struct cmd_list_element *''.
8946 * cli/cli-cmds.c (is_complete_command): Update. Use
8947 cmd_cfunc_eq.
8948 * top.c (execute_command): Pass the command to
8949 is_complete_command.
8950 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8951
b8b8b047
AC
89522002-02-23 Andrew Cagney <ac131313@redhat.com>
8953
8954 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8955 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8956 architecture defines.
8957 * s390-tdep.c (s390_gdbarch_init): Likewise.
8958
19d3fc80
RE
89592002-02-23 Richard Earnshaw <rearnsha@arm.com>
8960
8961 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8962 (arm_linux_push_arguments): Likewise.
8963 (arm_linux_init_abi): Register them. Also register linux-specific
8964 call_dummy_words.
8965 (find_minsym_and_objfile): Use strcmp, not STREQ.
8966 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8967 (arm_linux_call_dummy_words): Delete declaration.
8968 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8969 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8970 declarations.
8971 (LOWEST_PC): Delete.
8972
3ab13650
PS
89732002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8974
8975 * maint.c (print_section_info): Do not prepend `0x' to filepos
8976 output, it will be handled by local_hex_string_custom.
8977
19d3fc80 89782002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8979
8980 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8981 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8982 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8983
d85a5daf
JB
89842002-02-22 Jim Blandy <jimb@redhat.com>
8985
8986 Indicate that the bcache functions don't change the strings
8987 they're passed.
8988 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8989 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8990
eeb25b8a
PM
89912002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8992
8993 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8994
6badb179
CF
89952002-02-21 Christopher Faylor <cgf@redhat.com>
8996
8997 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8998 find the complete path to a loaded DLL.
8999
e8717518
FF
90002002-02-21 Fred Fish <fnf@redhat.com>
9001
9002 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9003 that marks the end of the range of a function, enter a line number
9004 entry that has a line number of zero and a PC offset that matches
9005 the end of the function. This starts a range of PC's for which no
9006 line number information is known.
9007 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9008 PC's for which no line number info is found (line number is zero)
9009 then we didn't find any valid line information.
9010 * symtab.h: Document use of zero line number entry.
9011
9abe5450
EZ
90122002-02-21 Elena Zannoni <ezannoni@redhat.com>
9013
9014 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9015 (have_ptrace_getvrregs): Define for run time checks.
9016 (gdb_vrregset_t): New type for Altivec register handling.
9017 (fetch_register, store_register): Fetch/store altivec register
9018 when needed.
9019 (fetch_altivec_register, store_altivec_register): New functions.
9020 (supply_vrregset, fill_vrregset): New functions.
9021 (fetch_altivec_registers, store_altivec_registers): New functions.
9022 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9023 registers as well.
9024
aaa38bb5
AJ
90252002-02-21 Jiri Smid <smid@suse.cz>
9026
9027 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9028
b34db576
RE
90292002-02-21 Richard Earnshaw <rearnsha@arm.com>
9030
9031 * Makefile.in (armnbsd-nat.o): Update dependencies.
9032 * armnbsd-nat.c (supply_gregset): New function. Common code to
9033 supply the integer register set.
9034 (supply_fparegset): New function. Similar for FPA registers.
9035 (fetch_regs, fetch_fp_regs): Use them.
9036 (fetch_core_registers): Likewise.
9037 (fetch_elfcore_registers): New function.
9038 (arm_netbsd_elfcore_fns): New core-file type specification.
9039 (_initialize_arm_netbsd_nat): Register it.
9040
3e56fc4b
RE
90412002-02-21 Richard Earnshaw <rearnsha@arm.com>
9042
9043 * armnbsd-nat.c: Include gdbcore.h.
9044 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9045 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9046 'void' to declaration, to shut up ARI.
9047 (fetch_core_registers): Make static. Rewrite using supply_register.
9048 (arm_netbsd_core_fns): New core-file type specification.
9049 (_initialize_arm_netbsd_nat): New function.
9050
097f6b0b
CF
90512002-02-21 Christopher Faylor <cgf@redhat.com>
9052
9053 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9054 value.
9055
c914e0cc
CF
90562002-02-20 Christopher Faylor <cgf@redhat.com>
9057
9058 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9059 fails.
9060
385fa495
DJ
90612002-02-20 Daniel Jacobowitz <drow@mvista.com>
9062
9063 * jv-exp.y (parse_number): Change type of implicit longs
9064 to builtin_type_uint64.
9065
e5f1222d
DJ
90662002-02-20 Daniel Jacobowitz <drow@mvista.com>
9067
9068 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9069 to be an integer instead of a `union wait'.
9070
75c9abc6
DJ
90712002-02-20 Daniel Jacobowitz <drow@mvista.com>
9072
9073 * mips-linux-nat.c: Call the operating system GNU/Linux.
9074 * mips-linux-tdep.c: Likewise.
9075 * mips-tdep.c: Likewise.
9076
551792a5
DJ
90772002-02-20 Daniel Jacobowitz <drow@mvista.com>
9078
9079 Fix PR gdb/265.
9080 * jv-exp.y (parse_number): Handle 64-bit integers.
9081
ee6e2b82
DJ
90822002-02-20 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9085 AC_STDC_HEADERS to AC_HEADER_STDC.
9086 * gdbserver/configure: Regenerated.
9087
a48442a0
RE
90882002-02-20 Richard Earnshaw <rearnsha@arm.com>
9089
9090 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9091 is defined.
9092 * sparc-tdep.c (get_longjmp_target): Likewise.
9093
fe419ffc
RE
90942002-02-20 Richard Earnshaw <rearnsha@arm.com>
9095
9096 * News: Add news about ARM and Multi-arch. Mention the new target
9097 arm*-*-netbsd*.
9098
5832ed7e
JB
90992002-02-19 Jim Blandy <jimb@redhat.com>
9100
9101 * stabsread.c (error_type_complaint): Improve error message.
9102
84563040
DJ
91032002-02-19 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * gdbserver/README: Update documentation.
9106 * gdbserver/configure.in: Update configury to match documentation.
9107 * gdbserver/Makefile.in: Likewise.
9108 * gdbserver/configure: Regenerated.
9109 * gdbserver/aclocal.m4: New file, generated by aclocal.
9110 * gdbserver/config.in: New file, generated by autoheader.
9111
375fd65b
RE
91122002-02-19 Richard Earnshaw <rearnsha@arm.com>
9113
9114 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9115 armnbsd-nat.c.
9116
08216dd7
RE
91172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9118
9119 * arm-tdep.h (enum arm_float_model): New enum.
9120 (struct gdbarch_tdep): Add fp_model.
9121 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9122 up floating-point conversions until we know the floating-point model
9123 in use by the inferior. Don't complain about being unable to
9124 determine the ABI of the inferior when we don't have one.
9125 (arm_extract_return_value): Support different floating-point models.
9126 (arm_store_return_value): Likewise.
aaa38bb5 9127 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9128 ARM_FLOAT_SOFT.
9129 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9130
65d6d66a
PS
91312002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9132
9133 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9134 of ``current_gdbarch''.
9135
47221191
RE
91362002-02-19 Richard Earnshaw <rearnsha@arm.com>
9137
9138 * armnbsd-nat.c : ANSIfy all function declarations.
9139 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9140 (fetch_inferior_registers): Re-implement in terms of above.
9141 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9142 (store_inferior_registers): Re-implement in terms of above.
9143
fdf39c9a
RE
91442002-02-19 Richard Earnshaw <rearnsha@arm.com>
9145
aaa38bb5 9146 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9147 kernel.
9148 * arm-linux-tdep.c: Likewise.
9149 * config/arm/tm-linux.h: Likewise.
9150
93247f88
RE
91512002-02-19 Richard Earnshaw <rearnsha@arm.com>
9152
9153 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9154 * config/arm/nbsd.mt (TM_FILE): Delete.
9155 * config/arm/tm-nbsd.h: Delete.
9156
d7b486e7
RE
91572002-02-19 Richard Earnshaw <rearnsha@arm.com>
9158
9159 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9160 Initialize CALL_DUMMY_LENGTH.
9161
41d39a95
RE
91622002-02-19 Richard Earnshaw <rearnsha@arm.com>
9163
9164 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9165 function.
9166 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9167 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9168 defines one thing and that is incorrect for this port.
9169 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9170
e1195560
PM
91712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9172
9173 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9174
c1748f97
PM
91752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9176
9177 * win32-nat.c (display_selector): New function. Displays information
9178 about the information returned by GetThreadSelectorEntry API function.
9179 (display_selectors): New function. Displays the infomation of
9180 the selector given as argument, or of CS, DS ans FS selectors
9181 if no argument is given.
9182 ( _initialize_inftarg): Add "w32" as info prefix command.
9183 Add "info w32 selector" as command calling display_selectors.
9184
e41e6bbf
PM
91852002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9186
9187 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9188 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9189 if not defined.
9190
0d3a9f48
RE
91912002-02-18 Richard Earnshaw <rearnsha@arm.com>
9192
9193 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9194
3fb4b924
RE
91952002-02-18 Richard Earnshaw <rearnsha@arm.com>
9196
9197 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9198 (arm_fix_call_dummy): Call it.
9199 (arm_call_dummy_breakpoint_offset): Delete.
9200 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9201 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9202
7f55af32
AC
92032002-02-18 Andrew Cagney <ac131313@redhat.com>
9204
9205 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9206 Default to func_frame_chain_valid.
9207 * gdbarch.h, gdbarch.c: Re-generate.
9208 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9209
05f13b9c
EZ
92102002-02-18 Elena Zannoni <ezannoni@redhat.com>
9211
9212 * ppc-linux-nat.c: Update copyright.
9213 (fetch_register, store_register): Add tid parameter, don't compute
9214 tid here.
9215 (fetch_ppc_registers, store_ppc_registers): Add tid
9216 parameter. Pass it along to callees.
9217 (fetch_inferior_registers, store_inferior_registers): Compute tid
9218 here, and pass it to calleed functions.
9219 (fill_gregset, supply_fpregset): Clean up formatting.
9220
d7afb4c9
RE
92212002-02-18 Richard Earnshaw <rearnsha@arm.com>
9222
9223 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9224 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9225
9df628e0
RE
92262002-02-18 Richard Earnshaw <rearnsha@arm.com>
9227
9228 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9229 * gdbarch.c gdbarch.h: Regenerate.
9230 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9231 function.
9232 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9233 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9234 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9235
9236 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9237 * arm-tdep.c (arm_get_longjmp_target): New function.
9238 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9239 this to a positive value register arm_get_longjmp_target as the
9240 longjmp handler.
9241 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9242 (arm_linux_init_abi): Set up longjmp description in tdep.
9243 * armnbsd-nat.c (get_longjmp_target): Delete.
9244 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9245 description in tdep.
9246 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9247 (get_longjmp_target): Delete declaration.
9248 (GET_LONGJMP_TARGET): Delete.
9249 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9250 (GET_LONGJMP_TARGET): Delete.
9251
57bc8964
KB
92522002-02-17 Kevin Buettner <kevinb@redhat.com>
9253
9254 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9255 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9256 of ``current_gdbarch''.
9257
83d31a92
TT
92582002-02-17 Tom Tromey <tromey@redhat.com>
9259
9260 * cli/cli-cmds.c (compare_strings): New function.
9261 (complete_command): Only print each unique item once.
9262 * completer.h (complete_line): Declare.
9263 * completer.c (complete_line): New function.
9264 (line_completion_function): Use it.
9265
17ef5d92
AC
92662002-02-16 Andrew Cagney <ac131313@redhat.com>
9267
9268 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9269 * gdbarch.h, gdbarch.c: Re-generate.
9270
491b8946
DJ
92712002-02-16 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9274
92752002-02-16 Daniel Jacobowitz <drow@mvista.com>
9276
9277 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9278 * valops.c (value_arg_coerce): Don't take the address of a reference
9279 to convert an argument to a reference.
9280
dfe7f3ac
CF
92812002-02-15 Christopher Faylor <cgf@redhat.com>
9282
9283 * win32-nat.c (get_image_name): New function.
9284 (handle_load_dll): Use get_image_name function.
9285 (get_child_debug_event): Avoid registering debug events until possibly
9286 execed process is started.
9287 (child_create_inferior): Allow invocation via shell so that command
9288 line redirection, etc. works ok.
9289 (_initialize_inftarg): Add new command: "set shell" to control whether
9290 a shell is used to start a process.
9291
1d33e73a
DJ
92922002-02-15 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9295 instead of find_register_by_number.
9296 (cannot_store_register): Likewise.
9297
48cd0caa
PM
92982002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9299
aaa38bb5 9300 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9301 fprintf_unfiltered (gdb_stderr, ...).
9302
8656e7d8
DJ
93032002-02-15 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * gdbserver/gdbserver.1: Document --attach.
9306
66e810cd
RE
93072002-02-15 Richard Earnshaw <rearnsha@arm.com>
9308
9309 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9310 descriptions.
9311 * arm-tdep.c (arm_default_arm_le_breakpoint)
9312 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9313 (arm_default_thumb_be_breakpoint): New. Initialize them from
9314 traditional breakpoint defines.
9315 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9316 (arm_gdbarch_init): Initialize new breakpoint variables.
9317 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9318 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9319 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9320 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9321 code out to ...
9322 (arm_netbsd_init_abi_common): ... here; new function.
9323 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9324 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9325 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9326 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9327
97e03143
RE
93282002-02-15 Richard Earnshaw <rearnsha@arm.com>
9329
9330 * arm-tdep.h (enum arm_abi): New enum.
9331 (struct gdbarch_tdep): New structure.
9332 (LOWEST_PC): Provide a default.
9333 (arm_gdbarch_register_os_abi): Declare new function.
9334 * arm-tdep.c (arm_abi_names): New array.
9335 (process_note_abi_tag_sections): New function.
9336 (get_elfosabi): New function.
9337 (arm_gdbarch_register_os_abi): New function.
9338 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9339 support for that ABI has been built in, then call the appropriate
9340 configuration routine. Use gdbarch_num_regs() to get the number
9341 of registers.
9342 (arm_dump_tdep): New function.
9343 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9344 place-holder functions.
9345 (_initialize_arm_tdep): Register them.
9346 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9347
9348 * armnbsd-tdep.c: New file.
9349 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9350 * config/arm/nbsd.mt (TDEPFILES): Add it.
9351 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9352
9353 * armnbsd-nat.c: Include regcache.h.
9354 * Makefile.in (armnbsd-nat.o): Update dependency list.
9355
9356 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9357
ad68be46
DJ
93582002-02-14 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * gdbserver/Makefile.in: Fix typos in target rules.
9361
003d6d1d
DJ
93622002-02-14 Daniel Jacobowitz <drow@mvista.com>
9363
aaa38bb5 9364 Fix part of PR gdb/267.
003d6d1d
DJ
9365 * linespec.c (find_methods): Handle constructors specially for now.
9366
6b230f1b
CV
93672002-02-14 Corinna Vinschen <vinschen@redhat.com>
9368
9369 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9370 handling.
9371 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9372 standard_coerce_float_to_double().
9373
1ea98d12
CF
93742002-02-14 Christopher Faylor <cgf@redhat.com>
9375
9376 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9377 GDBINIT_FILENAME.
9378
dd47e6fd
EZ
93792002-02-14 Elena Zannoni <ezannoni@redhat.com>
9380
9381 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9382 find_variant_by_name, because it confuses the multiarch
9383 framework. Return NULL if there isn't an architecture with the
9384 user supplied name, instead of forcing a different one without
9385 recording the change with the multiarch machinery.
9386 (find_variant_by_name): Delete.
9387
d7e39b9e
PS
93882002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9389
9390 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9391 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9392
76e42a4f
MH
93932002-02-13 Martin M. Hunt <hunt@redhat.com>
9394
aaa38bb5 9395 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9396 print_frame_info_listing_hook, set current_source_symtab.
9397
0a30fbc4
DJ
93982002-02-14 Daniel Jacobowitz <drow@mvista.com>
9399
9400 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9401 and remove unused $(INCLUDE_DIR).
9402 Add regcache.c to OBS.
9403 Add generated register protocol files to clean target.
9404 Update dependencies for new objects, obsolete old target code.
9405
9406 * gdbserver/linux-low.c: Remove all platform-specific code to
9407 new files. Remove various dead code. Update to use regcache
9408 functionality.
9409 * gdbserver/remote-utils.c (fromhex): Add return statement
9410 to quiet warning.
9411 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9412 constant.
9413 (input_interrupt): Add integer parameter to match prototype
9414 of a signal handler.
9415 (outreg): Use register_data ().
9416 (prepare_resume_reply): Use gdbserver_expedite_regs.
9417 * gdbserver/server.c (main): Dynamically allocate own_buf because
9418 PBUFSIZ is no longer constant. Use registers_to_string () and
9419 registers_from_string ().
9420 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9421 for error (), fatal (), and warning (). Update definition of
9422 PBUFSIZ to use regcache functionality. Add include guard.
9423 * gdbserver/utils.c (fatal): Add missing ``const''.
9424 (warning): New function.
9425
9426 * regformats/regdat.sh: Include "regcache.h" in generated files.
9427 Provide init_registers () function.
9428 * regformats/regdef.h: Add prototype for set_register_cache ().
9429 Add include guard.
9430
9431 * gdbserver/linux-arm-low.c: New file.
9432 * gdbserver/linux-i386-low.c: New file.
9433 * gdbserver/linux-ia64-low.c: New file.
9434 * gdbserver/linux-m68k-low.c: New file.
9435 * gdbserver/linux-mips-low.c: New file.
9436 * gdbserver/linux-ppc-low.c: New file.
9437 * gdbserver/linux-sh-low.c: New file.
9438
9439 * gdbserver/regcache.c: New file.
9440 * gdbserver/regcache.h: New file.
9441
9442 * gdbserver/low-linux.c: Removed obsolete file.
9443
4cc841d0
DJ
94442002-02-14 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9447 * config/i386/linux.mt: Likewise.
9448 * config/ia64/linux.mt: Likewise.
9449 * config/m68k/linux.mh: Likewise.
9450 * config/powerpc/linux.mh: Likewise.
9451 * config/mips/linux.mt: Likewise.
9452
9453 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9454
9455 * config/i386/i386lynx.mh: Mark gdbserver variables
9456 as (currently) obsolete for this target.
9457 * config/i386/nbsd.mt: Likewise.
9458 * config/i386/nbsdelf.mt: Likewise.
9459 * config/m32r/m32r.mt: Likewise.
9460 * config/m68k/m68klynx.mh: Likewise.
9461 * config/m68k/nbsd.mt: Likewise.
9462 * config/m68k/sun3os4.mh: Likewise.
9463 * config/mips/vr5000.mt: Likewise.
9464 * config/ns32k/nbsd.mt: Likewise.
9465 * config/pa/hppabsd.mh: Likewise.
9466 * config/pa/hppaosf.mh: Likewise.
9467 * config/powerpc/nbsd.mt: Likewise.
9468 * config/rs6000/rs6000lynx.mh: Likewise.
9469 * config/s390/s390.mt: Likewise.
9470 * config/s390/s390x.mt: Likewise.
9471 * config/sparc/sparclynx.mh: Likewise.
9472 * config/sparc/sun4os4.mh: Likewise.
9473 * config/i386/x86-64linux.mt: Likewise.
9474 * config/sparc/linux.mh: Likewise.
9475
a85f51e7
DJ
94762002-02-14 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * configure.tgt: Configure gdbserver only for known working
9479 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9480 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9481 SUBDIRS if it is configured. Update comment for ${nativefile}.
9482 * configure: Regenerated.
9483
65554fef
MS
94842002-02-13 Michael Snyder <msnyder@redhat.com>
9485
670a52db
MS
9486 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9487
6dbdc4a3
MS
9488 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9489 (default_gcore_mach): Just return 0, work around a problem in bfd.
9490 (default_gcore_target): OK to return NULL if exec_bfd is null.
9491 (make_mem_sec): Use a cast, avoid a warning.
9492
9493 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9494 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9495 sizeof (host pointer) != sizeof (target pointer)).
9496 (procfs_make_note_section): Avoid overflow in psargs string.
9497
aaa38bb5 9498 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9499 implementation return an error.
9500
95012002-02-13 Rodney Brown <rbrown64@csc.com.au>
9502
9503 * procfs.c (procfs_make_note_section): Provide a default definition
9504 (for alpha-dec-osf4.0f). Fix typos.
9505
1e4d76e7
EZ
95062002-02-13 Elena Zannoni <ezannoni@redhat.com>
9507
9508 * linux-proc.c: Add include of regcache.h.
9509 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9510
b6d1a1d5
AC
95112002-02-13 Andrew Cagney <ac131313@redhat.com>
9512
9513 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9514 * memattr.c (create_mem_region): Disallow useless empty region.
9515 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9516 non-overlapping.
b6d1a1d5 9517
6c6ea35e
MC
95182002-02-13 Michael Chastain <mec@shout.net>
9519
9520 * defs.h: Kill CONST_PTR.
9521 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9522 * c-lang.c (c_builtin_types): Likewise.
9523 * ch-lang.c (ch_builtin_types): Likewise.
9524 * f-lang.c (f_builtin_types): Likewise.
9525 * language.c (unknown_builtin_types): Likewise.
9526 * m2-lang.c (m2_builtin_types): Likewise.
9527 * p-lang.c (pascal_builtin_types): Likewise.
9528 * scm-lang.c (c_builtin_types): Likewise.
9529
3e0b0f48
KS
95302002-02-13 Keith Seitz <keiths@redhat.com>
9531
9532 * arm-tdep.h (arm_get_next_pc): Add declaration.
9533
67255d04
RE
95342002-02-13 Richard Earnshaw <rearnsha@arm.com>
9535
9536 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9537 with other related struct-returning functions.
9538 (arm_extract_struct_value_address): New function.
9539 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9540 initialize float_format, double_format and long_double_format as
9541 appropriate to the endianness of the target.
9542 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9543 (arm_use_struct_convention): Delete declaration.
9544 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9545
079777f6
KS
95462002-02-13 Keith Seitz <keiths@redhat.com>
9547
9548 * defs.h (core_addr_to_string_nz): New function.
9549
34588f23
MK
95502002-02-13 Mark Kettenis <kettenis@gnu.org>
9551
9552 Apply missing bits of 2002-01-15 patch.
9553 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9554 (fill_fpregset): Use i387_fill_fsave.
9555
49b563f9
KS
95562002-02-12 Keith Seitz <keiths@redhat.com>
9557
49b563f9
KS
9558 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9559 (core_addr_to_string_nz): New function.
9560
aeb98c60
RE
95612002-02-11 Richard Earnshaw <rearnsha@arm.com>
9562
9563 * arm-linux-nat.c: Really include arm-tdep.h.
9564 * config/arm/tm-linux.h (struct type, struct value): Declare.
9565
65554fef
MS
95662002-02-11 Michael Snyder <msnyder@redhat.com>
9567
9568 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9569 (gcore section): Ifdef for Solaris and Unixware only.
9570 (procfs_do_thread_registers): Unixware needs one lwpstatus
9571 per thread (not one prstatus or pstatus).
9572 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9573 not over all gdb threads. For unixware, call elfcore_write_pstatus
9574 once before iterating over threads.
9575
34e8f22d
RE
95762002-02-11 Richard Earnshaw <rearnsha@arm.com>
9577
9578 * arm-tdep.h: New file.
9579 * arm-tdep.c: Include arm-tdep.h.
9580 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9581 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9582 (arm_print_float_info, arm_register_type, convert_to_extended)
9583 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9584 (arm_extract_return_value, arm_register_name): Make static.
9585 (arm_software_single_step): Similarly. Fix types in declaration.
9586 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9587 (arm_store_return_value, arm_store_struct_return): New functions.
9588 (arm_gdbarch_init): Register the above functions. Also register
9589 call_dummy_start_offset, sizeof_call_dummy_words,
9590 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9591 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9592 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9593 prologue_cache.saved_regs here, rather than ...
9594 (_initialize_arm_tdep): ... here.
9595 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9596 declarations.
9597 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9598 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9599 (arm_print_float_info, arm_register_type, convert_to_extended)
9600 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9601 (arm_extract_return_value, arm_register_name): Delete declarations.
9602 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9603 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9604 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9605 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9606 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9607 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9608 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9609 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9610 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9611 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9612 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9613 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9614 interface.
9615 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9616 * remote-rdi.c remote-rdp.c: Likewise.
9617 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9618 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9619 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9620 definition.
9621
9622 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9623 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9624 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9625 from non-ARM_ prefixed definitions.
9626 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9627 all uses of above.
9628 * remote-rdi.c remote-rdp.c: Likewise.
9629 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9630
148754e5
RE
96312002-02-11 Richard Earnshaw <rearnsha@arm.com>
9632
9633 * arm-tdep.c (arm_frameless_function_invocation)
9634 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9635 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9636 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9637 (arm_pop_frame, arm_get_next_pc): Make static.
9638 (arm_gdbarch_init): Register above in gdbarch structure.
9639 (arm_read_fp): Renamed from arm_target_read_fp.
9640 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9641 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9642 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9643 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9644 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9645 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9646 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9647 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9648 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9649 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9650 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9651
434d2d4f
DJ
96522002-02-10 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * symtab.c (compare_search_syms): New function.
9655 (sort_search_symbols): New function.
9656 (search_symbols): Sort symbols after searching rather than
9657 before.
9658
55241689
AC
96592002-02-10 Andrew Cagney <ac131313@redhat.com>
9660
9661 * NEWS: Linux -> GNU/Linux.
9662
028c194b
AC
96632002-02-10 Andrew Cagney <ac131313@redhat.com>
9664
9665 * gdbarch.sh: For for level one methods, disallow a definition
9666 when partially multi-arched. Add comments explaining rationale.
9667 * gdbarch.h: Re-generate.
9668
6acf50cd
AC
96692002-02-10 Andrew Cagney <ac131313@redhat.com>
9670
9671 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9672 multi-arch partial.
aaa38bb5 9673
50248794
AC
96742002-02-10 Andrew Cagney <ac131313@redhat.com>
9675
9676 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9677 field. Use diff -u.
9678 * gdbarch.c: Re-generate.
9679
c30e0066
AC
96802002-02-10 Andrew Cagney <ac131313@redhat.com>
9681
9b56c5f3 9682 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9683 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9684 partial.
9685
6e6d6484
AC
96862002-02-10 Andrew Cagney <ac131313@redhat.com>
9687
9688 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9689 multi-arch partial.
9690 (PUSH_ARGUMENTS): Switch to using predefault.
9691 * gdbarch.c: Regenerate.
9692
c203844d
AC
96932002-02-10 Andrew Cagney <ac131313@redhat.com>
9694
9695 * valops.c (PUSH_ARGUMENTS): Delete definition.
9696 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9697 partial. Default to default_push_arguments.
9698 * gdbarch.h, gdbarch.c: Regenerate.
9699
b5a2688f
AC
97002002-02-09 Andrew Cagney <ac131313@redhat.com>
9701
9702 * defs.h (throw_exception): Rename return_to_top_level. Update
9703 comments.
9704 * utils.c (error_stream, internal_verror, quit): Ditto.
9705 * top.c (throw_exception, catcher): Ditto.
9706 * sparclet-rom.c (sparclet_load): Ditto.
9707 * remote.c (interrupt_query, minitelnet): Ditto.
9708 * remote-sds.c (interrupt_query): Ditto.
9709 * remote-mips.c (mips_error, mips_kill): Ditto.
9710 * ocd.c (interrupt_query): Ditto.
9711 * monitor.c (monitor_interrupt_query): Ditto.
9712 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9713 * target.h: Update comment.
aaa38bb5 9714
b5a2688f 9715 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9716
2fa5c1e0
AC
97172002-02-09 Andrew Cagney <ac131313@redhat.com>
9718
9719 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9720 default_double_format.
9721 * gdbarch.h, gdbarch.c: Re-generate.
9722 * findvar.c (floatformat_unknown): Delete variable definition.
9723 * doublest.h (floatformat_unknown): Delete variable declaration.
9724
da966255
JB
97252002-02-09 Jim Blandy <jimb@redhat.com>
9726
9727 * stabsread.c (read_type): Add code to parse Sun's syntax for
9728 prototyped function types.
9729
123a4891
AC
97302002-02-09 Andrew Cagney <ac131313@redhat.com>
9731
9732 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9733 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9734
fb39c8f3
PS
97352002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9736
9737 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9738 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9739 now _initialize_xcoffsolib gets called again and overrides the
9740 commands from solib.c in a native configuration.
9741
0b87a11d
MK
97422002-02-09 Mark Kettenis <kettenis@gnu.org>
9743
9744 * doublest.c (store_typed_floating): Don't try to return a value.
9745 Fixes PR gdb/290.
9746
bdc2fc72
JB
97472002-02-08 Jim Blandy <jimb@redhat.com>
9748
9749 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9750 is prototyped and has no arguments, print its argument list as
9751 `(void)'.
9752
da69bbcf
CD
97532002-02-08 Chris Demetriou <cgd@broadcom.com>
9754
9755 * MAINTAINERS (write-after-approval): Add myself.
9756 (paper-trail): I've escaped!
aaa38bb5 9757
b69571f5
CF
97582002-02-08 Christopher Faylor <cgf@redhat.com>
9759
9760 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9761 changes.
9762 (_initialize_check_for_gdb_ini): Ditto.
9763
f6871398
MH
97642002-02-08 Martin M. Hunt <hunt@redhat.com>
9765
9766 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9767 xaprintf -> xasprintf.
9768
4e52d31c
PM
97692002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9770
9771 * win32-nat.c: Remove use of printf and sprintf functions.
9772
39bbf761
RE
97732002-02-08 Richard Earnshaw <rearnsha@arm.com>
9774
9775 * arm-tdep.c (arm_frame_chain_valid): Make static.
9776 (arm_push_arguments): Likewise.
9777 (arm_gdbarch_init): New function.
9778 (_initialize_arm_tdep): Call it.
9779 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9780 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9781 (FRAME_CHAIN_VALID): Delete.
9782 (arm_frame_chain_valid): Delete declaration.
9783 (PUSH_ARGUMENTS): Delete.
9784 (arm_push_arguments): Delete declaration.
9785 (CALL_DUMMY_P): Delete.
9786
9c9532c9
CV
97872002-02-08 Andrew Cagney <ac131313@redhat.com>
9788 Corinna Vinschen <vinschen@redhat.com>
9789
9790 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9791 on builtin float types.
9792
4e8f7a8b
DJ
97932002-02-08 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * utils.c: Include <curses.h> before "bfd.h".
9796 * tui/tui-hooks.c: Likewise.
9797 * tui/tui.c: Likewise.
9798 * tui/tuiCommand.c: Likewise.
9799 * tui/tuiData.c: Likewise.
9800 * tui/tuiDataWin.c: Likewise.
9801 * tui/tuiDisassem.c: Likewise.
9802 * tui/tuiGeneralWin.c: Likewise.
9803 * tui/tuiIO.c: Likewise.
9804 * tui/tuiLayout.c: Likewise.
9805 * tui/tuiRegs.c: Likewise.
9806 * tui/tuiSource.c: Likewise.
9807 * tui/tuiSourceWin.c: Likewise.
9808 * tui/tuiStack.c: Likewise.
9809 * tui/tuiWin.c: Likewise.
9810
cd4bffcf
EZ
98112002-02-07 Elena Zannoni <ezannoni@redhat.com>
9812
9813 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9814 to include space for pseudoregs as well. Update loops accordingly.
9815 (sh_fp_frame_init_saved_regs): Ditto.
9816 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9817
26806ce2
AC
98182002-02-07 Andrew Cagney <ac131313@redhat.com>
9819
9820 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9821 Add Richard Earnshaw to Arm maintainers.
9822
97fdab62
AC
98232002-02-07 Andrew Cagney <ac131313@redhat.com>
9824
a6b98203
AC
9825 * defs.h (warning_begin): Delete declaration.
9826
97fdab62
AC
9827 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9828 Delete macro.
9829
78b29b40
MS
98302002-02-07 Michael Snyder <msnyder@redhat.com>
9831
aaa38bb5 9832 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9833 Logic bug, remove misplaced else.
9834
d8849953
KD
98352002-02-07 Klee Dienes <klee@apple.com>
9836
9837 * fork-inferior.c (fork_inferior): Add '!' to the list of
9838 characters that need to be quoted when building a string for the
9839 shell. Quote '!' specifically with a backslash, since CSH chokes
9840 when trying to evaluate "str!str".
aaa38bb5 9841
095778a0
NC
98422002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9843
9844 * rdi-share/host.h: Only provide a typedef for bool if it is not
9845 defined.
9846
1900040c
MS
98472002-02-04 Michael Snyder <msnyder@redhat.com>
9848
9849 * breakpoint.h (enum bptype): Add new overlay event bp type.
9850 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9851
1900040c
MS
9852 * breakpoint.c (create_internal_breakpoint): New function.
9853 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9854 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9855 (create_thread_event_breakpoint): Ditto.
9856 (create_solib_event_breakpoint): Ditto.
9857 (create_overlay_event_breakpoint): New function.
9858 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9859 (update_breakpoints_after_exec): Delete and re-initialize
9860 overlay event breakpoints after an exec. Add FIXME comment
9861 about longjmp breakpoint.
9862 (print_it_typical): Ignore overlay event breakpoints.
9863 (print_one_breakpoint): Ditto.
9864 (mention): Ditto.
9865 (bpstat_what): Do not stop for overlay event breakpoints.
9866 (delete_breakpoint): Don't delete overlay event breakpoints.
9867 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9868 (breakpoint_re_set): Re-create overlay event breakpoint.
9869
9870 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9871 (overlay_manual_command): Disable overlay breakpoints.
9872 (overlay_off_command): Disable overlay breakpoints.
9873
082fc60d
RE
98742002-02-06 Richard Earnshaw <rearnsha@arm.com>
9875
9876 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9877 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9878 to here from config/tm-arm.h.
9879 (coff_sym_is_thumb): Make static.
9880 (arm_elf_make_msymbol_special): New function.
9881 (arm_coff_make_msymbol_special): New function.
9882 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9883 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9884 (coff_sym_is_thumb): Delete declaration.
9885 (arm_elf_make_msymbol_special): Declare.
9886 (arm_coff_make_msymbol_special): Declare.
9887 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9888 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9889
039c5766
RE
98902002-02-06 Richard Earnshaw <rearnsha@arm.com>
9891
9892 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9893
98942002-02-06 Richard Earnshaw <rearnsha@arm.com>
9895
9896 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9897 * gdbarch.c gdbarch.h: Regenerate.
9898 * arch-utils.c (default_print_float_info): New function.
9899 * arch-utils.h (default_print_float_info): Prototype it.
9900 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9901 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9902 (PRINT_FLOAT_INFO): Document it.
9903
9904 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9905 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9906 (PRINT_FLOAT_INFO): Define.
9907
58fa08f0
PM
99082002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9909
aaa38bb5 9910 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9911 Add typecast to sprintf argument to suppress a warning.
9912
7393af7c
PM
99132002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9914
58fa08f0 9915 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9916 to allow easier handling of pass state.
9917 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9918 that gives exception name and address.
9919 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9920 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9921 exceptions added.
aaa38bb5
AJ
9922 (child_continue): Correctly report continue_status.
9923 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9924 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9925 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9926 the exception should be passed to debuggee or not.
9927
6af4589c
MS
99282002-02-05 Michael Snyder <msnyder@redhat.com>
9929
9930 * regcache.c (fetch_register): Call target_fetch_register
9931 only if we don't call FETCH_PSEUDO_REGISTER.
9932 (store_register): Call target_store_register only if we
9933 don't call STORE_PSEUDO_REGISTER.
9934
a2cf933a
EZ
99352002-02-05 Elena Zannoni <ezannoni@redhat.com>
9936
9937 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9938 ELF_MAKE_MSYMBOL_SPECIAL.
9939 * gdbarch.c, gdbarch.h: Regenerate.
9940 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9941 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9942 * elfread.c (elf_symtab_read): Compile use of
9943 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9944 multiarched.
9945 * coffread.c (coff_symtab_read): Ditto, for
9946 COFF_MAKE_MSYMBOL_SPECIAL.
9947
6bb7be43
JB
99482002-02-05 Jim Blandy <jimb@redhat.com>
9949
9950 * solib-svr4.c (svr4_truncate_ptr): New function.
9951 (svr4_relocate_section_addresses): Do the address arithmetic with
9952 the appropriate truncation for target addresses, even when
9953 CORE_ADDR is larger than a target address.
9954
e18651ec
DJ
99552002-02-05 Daniel Jacobowitz <drow@mvista.com>
9956
9957 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9958 to (int *).
9959
6b2725be
DJ
99602002-02-05 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9963 code.
9964
fca9e603
DJ
99652002-02-05 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9968
6c537a52
DJ
99692002-02-05 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * gdbserver/linux-low.c: Remove unused include files.
9972
d844cde6
DJ
99732002-02-05 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9976 (read_inferior_memory): Use it.
9977 (write_inferior_memory): Likewise.
9978
d07c63e7
DJ
99792002-02-05 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9982 grubbing through sys_errlist.
9983
da6d8c04
DJ
99842002-02-05 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9987
5b421780
PM
99882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9989 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9990
9f60d481
AC
99912002-02-04 Andrew Cagney <ac131313@redhat.com>
9992
9993 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9994 (do_sfunc, set_cmd_sfunc): New functions.
9995
9996 * command.h (struct cmd_list_element): Add field func.
9997 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9998 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9999 * cli/cli-decode.h: Ditto.
10000
10001 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10002 (help_all, help_cmd_list): Ditto.
10003 (find_cmd, complete_on_cmdlist): Ditto.
10004 * top.c (execute_command): Ditto.
10005
10006 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10007 function.sfunc.
10008
10009 * infcmd.c (notice_args_read): Fix function signature.
10010
10011 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10012 * cli/cli-decode.c (add_set_cmd): Ditto.
10013 * utils.c (initialize_utils): Ditto.
10014 * maint.c (_initialize_maint_cmds): Ditto.
10015 * infrun.c (_initialize_infrun): Ditto.
10016 * demangle.c (_initialize_demangler): Ditto.
10017 * remote.c (add_packet_config_cmd): Ditto.
10018 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10019 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10020 * proc-api.c (_initialize_proc_api): Ditto.
10021 * kod.c (_initialize_kod): Ditto.
10022 * valprint.c (_initialize_valprint): Ditto.
10023 * top.c (init_main): Ditto.
10024 * infcmd.c (_initialize_infcmd): Ditto.
10025 * corefile.c (_initialize_core): Ditto.
10026 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10027 * arch-utils.c (initialize_current_architecture): Ditto.
10028 (_initialize_gdbarch_utils): Ditto.
10029 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10030
10031 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10032 * wince.c (_initialize_inftarg): Ditto.
10033 * symfile.c (_initialize_symfile): Ditto.
10034 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10035 * language.c (_initialize_language): Ditto.
10036 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10037
f9ba0717
MS
100382002-02-04 Michael Snyder <msnyder@redhat.com>
10039
10040 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10041
0c74b2a7
DJ
100422002-02-04 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10045 Add rules for building the register data files.
10046
c638789f
DJ
100472002-02-04 Daniel Jacobowitz <drow@mvista.com>
10048
10049 * regformats/regdat.sh: Add braces to the definition of
10050 expedite_regs_${arch}.
10051
db253027
DJ
100522002-02-04 Daniel Jacobowitz <drow@mvista.com>
10053
10054 * regformats/regdef.h (struct reg): Add comment describing the
10055 requirements for offset and size fields.
10056
206be19c
AS
100572002-02-04 Andreas Schwab <schwab@suse.de>
10058
10059 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10060 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10061
181c1381
RE
100622002-02-04 Richard Earnshaw <rearnsha@arm.com>
10063
10064 * gdbarch.sh (copyright): Update years in generated header.
10065 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10066 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10067 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10068 * dbxread.c: Likewise.
10069 * dwarfread.c: Likewise.
10070 * elfread.c: Likewise.
10071 * somread.c: Likewise.
10072
10073 * arm-tdep.c (arm_smash_text_address): New function.
10074 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10075
fa4ba8da
PM
100762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10077
10078 Add support for hardware watchpoints on win32 native.
aaa38bb5 10079 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10080 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10081 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10082 of debug registers.
10083 (debug_registers_changed): New variable. Reflects when debug registers
10084 are changed and need to be written to inferior.
aaa38bb5 10085 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10086 was set, used when new threads are created.
10087 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10088 i386-nat code.
10089 (thread_rec): Set dr array if id is the thread of current_event .
10090 (child_continue, child_resume): Change the debug registers for all
10091 threads if debug_registers_changed.
10092 (child_add_thread): Change the debug registers if debug_registers_used.
10093 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10094 Link nm.h to new nm-cygwin.h file.
10095 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10096 of hardware registers.
10097
a73c86fb
AC
100982002-02-03 Andrew Cagney <ac131313@redhat.com>
10099
10100 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10101 Restore behavour broken by 2002-01-20 Andrew Cagney
10102 <ac131313@redhat.com> IEEE_FLOAT removal.
10103
acf5ed49
DJ
101042002-02-03 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * c-valprint.c (c_val_print): Pass a proper valaddr to
10107 cp_print_class_method.
10108 * valops.c (search_struct_method): If there is only one method
10109 and args is NULL, return that method.
10110
493d28d5
DJ
101112002-02-03 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10114 accessing tag_name directly.
10115
7495dfdb
DJ
101162002-02-03 Daniel Jacobowitz <drow@mvista.com>
10117
10118 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10119 of accessing tag_name directly.
10120
dd6bda65
DJ
101212002-02-03 Daniel Jacobowitz <drow@mvista.com>
10122
10123 PR gdb/280
10124 * gdbtypes.c (replace_type): New function.
10125 * gdbtypes.h (replace_type): Add prototype.
10126 * stabsread.c (read_type): Use replace_type.
10127
88fe217c
RE
101282002-02-03 Richard Earnshaw <rearnsha@arm.com>
10129
10130 * Makefile.in (memattr.o): Add missing dependencies rule.
10131
e5d66720
PS
101322002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10133
10134 * breakpoint.c (break_at_finish_command): Really export.
10135 (break_at_finish_at_depth_command): Ditto.
10136 (tbreak_at_finish_command): Ditto.
10137 * hppa-tdep.c: Include completer.h.
10138 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10139 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10140
fffee0be
AC
101412002-02-01 Andrew Cagney <ac131313@redhat.com>
10142
10143 * utils.c (do_write): New function.
10144 (error_stream): Rewrite combining the code from error_begin and
10145 verror.
10146 (verror): Rewrite using error_stream.
10147 (error_begin): Delete function.
10148
255e7dbf
AC
101492002-02-01 Andrew Cagney <ac131313@redhat.com>
10150
10151 * utils.c (error_begin): Make static.
10152 * defs.h (error_begin): Delete declaration.
10153
10154 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10155 (decode_line_1): Use cplusplus_error instead of error_begin,
10156 cplusplus_hint and return_to_top_level.
10157 * coffread.c (coff_symfile_read): Use error instead of error_begin
10158 and return_to_top_level.
10159 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10160
ddfe3c15
AC
101612002-02-01 Andrew Cagney <ac131313@redhat.com>
10162
10163 * language.h (type_error, range_error): Make string parameter
10164 constant.
10165 * language.c (warning_pre_print): Delete extern declaration.
10166 * dwarfread.c (warning_pre_print): Ditto.
10167 * language.c (type_error, range_error): Rewrite to use verror and
10168 vwarning instead of warning_begin.
10169
03ac34d5
MS
101702002-02-01 Michael Snyder <msnyder@redhat.com>
10171
261c4ca2
MS
10172 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10173 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10174
e00d1dc8
AC
101752002-02-01 Andrew Cagney <ac131313@redhat.com>
10176
10177 * command.h (NO_FUNCTION): Delete macro.
10178 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10179 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10180 * tracepoint.c (_initialize_tracepoint): Ditto.
10181 * cli/cli-decode.c (add_set_cmd): Ditto.
10182 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10183
76b79d6e
DJ
101842002-02-01 Daniel Jacobowitz <drow@mvista.com>
10185
10186 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10187 Update ``this'' pointer when calling virtual functions.
10188
799f9e91
MS
101892002-02-01 Michael Snyder <msnyder@redhat.com>
10190
c7bd442c 10191 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10192 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10193
3cf384d4
DJ
101942002-02-01 Daniel Jacobowitz <drow@mvista.com>
10195
10196 * regformats/reg-arm.dat: New file.
10197 * regformats/reg-i386.dat: New file.
10198 * regformats/reg-ia64.dat: New file.
10199 * regformats/reg-m68k.dat: New file.
10200 * regformats/reg-mips.dat: New file.
10201 * regformats/reg-ppc.dat: New file.
10202 * regformats/reg-sh.dat: New file.
10203 * regformats/regdef.h: New file.
10204 * regformats/regdat.sh: New file.
10205
0defa245
RE
102062002-02-01 Richard Earnshaw <reanrsha@arm.com>
10207
10208 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10209 (arm_frame_args_address, arm_frame_locals_address): New functions.
10210 (arm_frame_num_args): New function.
10211 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10212 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10213 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10214
405f26e6
MS
102152002-01-31 Michael Snyder <msnyder@redhat.com>
10216
502fd408
MS
10217 * breakpoint.c (break_at_finish_command): Export.
10218 (break_at_finish_at_depth_command): Export.
10219 (tbreak_at_finish_command): Export.
10220 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10221 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10222 "tbreak" commands, which are HPPA specific.
10223
7d35e135
MS
10224 * printcmd.c (disassemble_command): Remove an ancient
10225 artifact of an old merge.
10226
aaa38bb5 10227 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10228 Define enum constant values for overlay mode.
10229 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10230 (overlay_is_mapped, overlay_auto_command,
10231 overlay_manual_command): Ditto.
d874f1e2 10232
aaa38bb5
AJ
10233 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10234 breakpoint_here_p, breakpoint_inserted_here_p,
10235 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10236 describe_other_breakpoints, check_duplicates, clear_command):
10237 Coding standard fixes.
10238
8add0441 10239 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10240 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10241 code: check bfd SEC_READONLY flag for section.
10242
e351066e
AC
102432002-01-31 Andrew Cagney <ac131313@redhat.com>
10244
7d35e135 10245 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10246
8a48e967
DJ
102472002-01-30 Daniel Jacobowitz <drow@mvista.com>
10248
10249 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10250 data symbols, since we search based on textlow and texthigh.
10251 (find_pc_sect_symtab): Likewise.
10252
f5a96129
AC
102532002-01-30 Andrew Cagney <ac131313@redhat.com>
10254
10255 * defs.h (vwarning): Declare.
f5a96129
AC
10256 * utils.c (vwarning): New function.
10257 (warning): Call vwarning.
10258 (warning_begin): Delete function.
10259
10260 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10261 the warning message.
10262 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10263 warning_begin.
10264
cefd4ef5
MS
102652002-01-30 Michael Snyder <msnyder@redhat.com>
10266
1a703748
MS
10267 * NEWS: Mention "set trust-readonly-sections" command.
10268 Mention generate-core-file command.
cefd4ef5 10269
3a11626d
MS
102702002-01-15 Michael Snyder <msnyder@redhat.com>
10271
10272 * target.c: New command, "set trust-readonly-sections on".
10273 (do_xfer_memory): Honor the suggestion to trust readonly sections
10274 by reading them from the object file instead of from the target.
10275 (initialize_targets): Register command "set trust-readonly-sections".
10276
d1c7e53b
AC
102772002-01-29 Andrew Cagney <ac131313@redhat.com>
10278
10279 * parse.c (target_map_name_to_register): Simplify, search regs and
10280 pseudo-regs using a single loop.
10281
e2c9a72c
AC
102822002-01-30 Andrew Cagney <ac131313@redhat.com>
10283
10284 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10285
69824b4e
MK
102862002-01-15 Rodney Brown <rbrown64@csc.com.au>
10287
10288 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10289 * config/i386/i386v42mp.mh: Add i387-nat.o .
10290 * i386v4-nat.c: Include i387-nat.h.
10291 (supply_fpregset): Use i387_supply_fsave.
10292 (fill_fpregset): Use i387_fill_fsave.
10293
6eb69eab
RE
102942002-01-30 Richard Earnshaw <rearnsha@arm.com>
10295
10296 * arm-tdep.c (arm_call_dummy_words): Define.
10297 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10298 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10299 (CALL_DUMMY_WORDS): Define.
10300 (arm_call_dummy_words): Declare.
10301 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10302 (arm_linux_call_dummy_words): Declare.
10303
9852326a
AS
103042002-01-30 Andreas Schwab <schwab@suse.de>
10305
10306 * m68klinux-nat.c: Fix last change to use regcache_collect
10307 instead of referencing registers[] directly.
10308
977a3030
AC
103092002-01-29 Andrew Cagney <ac131313@redhat.com>
10310
10311 * parse.c (target_map_name_to_register): Delete code wrapped in
10312 #ifdef REGISTER_NAME_ALIAS_HOOK.
10313
2076c72b
MS
103142002-01-28 Michael Snyder <msnyder@redhat.com>
10315
10316 * regcache.c (legacy_read_register_gen): Need to be able to
10317 read pseudo-register as well as real register.
10318 (legacy_write_register_gen): Ditto.
10319
8fcc723b
AC
103202002-01-28 Andrew Cagney <ac131313@redhat.com>
10321
10322 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10323 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10324 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10325 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10326 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10327 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10328 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10329 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10330 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10331 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10332 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10333 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10334 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10335 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10336 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10337 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10338 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10339 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10340 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10341 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10342
afe64c1a
AC
103432002-01-28 Andrew Cagney <ac131313@redhat.com>
10344
10345 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10346 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10347 (initialize_current_architecture): Update target_byte_order using
10348 information from BFD.
aaa38bb5 10349 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10350 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10351
75bc7ddf
AC
103522002-01-28 Andrew Cagney <ac131313@redhat.com>
10353
10354 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10355 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10356
10357 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10358 #ifdef INVALID_FLOAT.
10359 * infcmd.c (do_registers_info): Ditto.
10360 * values.c (unpack_double): Ditto. Add comment.
10361
10362 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10363 already commented out.
10364
0280a90a
AS
103652002-01-26 Andreas Schwab <schwab@suse.de>
10366
10367 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10368 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10369 registers and add support for PTRACE_GETREGS.
10370
7072a954
AC
103712002-01-24 Andrew Cagney <ac131313@redhat.com>
10372
10373 GDB 5.1.1 released from 5.1 branch.
10374 * NEWS: Add 5.1.1 news.
10375 * README: Sync with 5.1 branch.
10376
86f902e0
FF
103772002-01-23 Fred Fish <fnf@redhat.com>
10378
10379 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10380 stabstring on initial malloc. Reallocing will copy it for us,
10381 if necessary.
10382
8af51c36
EZ
103832002-01-23 Elena Zannoni <ezannoni@redhat.com>
10384
aaa38bb5 10385 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10386 (HFILES_NO_SRCDIR): Remove hpread.h.
10387 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10388 (hpread.o): Update dependencies.
10389 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10390
10391 * hp-psymtab-read.c: Remove file.
10392 * hp-symtab-read.c: Remove file.
10393 * hpread.h: Remove file.
10394
10395 * hpread.c: Merge all contents of hp-psymtab-read.c,
10396 hp-symtab-read.c and hpread.h into this file, as it was prior to
10397 January 1999.
10398
10399 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10400 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10401 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10402 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10403
dc5cfeb6
EZ
104042002-01-23 Elena Zannoni <ezannoni@redhat.com>
10405
10406 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10407 fill_gregset): Call gdbarch_tdep() just once, assign result to
10408 variable and use that, instead of calling the function several
10409 times.
10410
ea87b71b
AO
104112002-01-24 Alexandre Oliva <aoliva@redhat.com>
10412
10413 * configure.host: Accept sparcv9 as alias for sparc64.
10414 * configure.tgt: Likewise.
10415
13fc0c2f
KB
104162002-01-22 Kevin Buettner <kevinb@redhat.com>
10417
10418 * solib-aix5.c (build_so_list_from_mapfile)
10419 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10420 arguments is not reversed.
10421 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10422 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10423
7bd872fe
EZ
104242002-01-22 Elena Zannoni <ezannoni@redhat.com>
10425
10426 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10427 modified version of obsolete sh_fetch_pseudo_register.
10428 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10429 (sh4_register_read): New function.
10430 (sh_pseudo_register_write): New function. Renamed and modified
10431 version of obsolete sh_store_pseudo_register.
10432 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10433 (sh4_register_write): New function.
10434 (sh_gdbarch_init): Remove setting of gdbarch function
10435 fetch_pseudo_register and store_pseudo_register. Remove setting of
10436 register_convert_to_raw, register_convert_to_virtual,
10437 register_convertible.
10438 (sh_sh4_register_convertible): Delete. No longer needed. All is
10439 taken care by architecture specific functions
10440 register_read/register_write.
10441 (sh_sh4_register_convert_to_virtual): Make static.
10442 (sh_sh4_register_convert_to_raw): Ditto.
10443
069e84fd
AC
104442002-01-22 Andrew Cagney <ac131313@redhat.com>
10445
10446 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10447 (floatformat_is_nan, floatformat_mantissa): Ditto.
10448
10449 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10450 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10451 builtin_type_ieee_double_little,
10452 builtin_type_ieee_double_littlebyte_bigword,
10453 builtin_type_m68881_ext, builtin_type_i960_ext,
10454 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10455 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10456 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10457 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10458
211a4f69
CV
104592002-01-22 Corinna Vinschen <vinschen@redhat.com>
10460
10461 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10462 parameter. Set frameless flag if it exists and depended of
10463 whether the scanned function is frameless or not.
10464 (xstormy16_skip_prologue): If function is frameless, return
10465 result of xstormy16_scan_prologue().
10466 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10467 call.
10468
f81353e4
EZ
104692002-01-21 Elena Zannoni <ezannoni@redhat.com>
10470
10471 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10472 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10473 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10474 sh_sh4_register_byte, sh_sh4_register_raw_size,
10475 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10476 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10477 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10478 sh_store_pseudo_register, sh_do_pseudo_register): Call
10479 gdbarch_tdep() just once, assign result to variable and use that,
10480 instead of calling the function several times.
10481
63c73a17
MK
104822002-01-20 Mark Kettenis <kettenis@gnu.org>
10483
10484 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10485 macros instead of LAST_FPU_CTRL_REGNUM.
10486 (store_register): Likewise.
10487
39ad761d
JB
104882002-01-21 Jim Blandy <jimb@redhat.com>
10489
10490 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10491 is up-to-date before running the program, not just when a program
10492 exits.
10493
3d74b771
FF
104942002-01-21 Fred Fish <fnf@redhat.com>
10495
10496 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10497 when we have found all instructions we are looking for.
10498
966fbf70
RE
104992002-01-21 Richard Earnshaw <rearnsha@arm.com>
10500
10501 * arm-tdep.c (arm_register_name): New function.
10502 (arm_registers_names): Make static.
10503 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10504 (arm_register_name): Declare.
10505 (REGISTER_NAME): Use it.
10506
c3b4394c
RE
105072002-01-21 Richard Earnshaw <rearnsha@arm.com>
10508 Kevin Buettner <kevinb@redhat.com>
10509
10510 Convert arm targets to new FRAME interface.
10511 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10512 (arm_frame_find_save_regs): Delete.
10513 (arm_frame_init_saved_regs): New.
10514 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10515 Allocate extra_info as required. Convert all uses of fsr.regs
10516 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10517 to use extra_info.
10518 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10519 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10520 (check_prologue_cache, save_prologue_cache): Likewise.
10521 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10522 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10523 (FRAME_FIND_SAVED_REGS): Delete.
10524 (arm_frame_find_saved_regs): Delete prototype.
10525 (arm_frame_init_saved_regs): New prototype.
10526 (FRAME_INIT_SAVED_REGS): Define.
10527
61d99182
AC
105282002-01-20 Andrew Cagney <ac131313@redhat.com>
10529
10530 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10531
6aaea291
AC
105322002-01-20 Andrew Cagney <ac131313@redhat.com>
10533
10534 From Jeff Law <law@redhat.com>:
10535 * infttrace.c: Include <sys/pstat.h>.
10536 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10537 exec file if the ttrace equivalent fails.
10538
15f698d2
AC
105392002-01-20 Andrew Cagney <ac131313@redhat.com>
10540
10541 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10542 (closeLogFile): Ditto.
10543
f86ddd7c
MC
105442002-01-20 Michael Chastain <mec@shout.net>
10545
10546 * top.c (print_gdb_version): Bump copyright year to 2002.
10547
904507ce
AC
105482002-01-20 Andrew Cagney <ac131313@redhat.com>
10549
10550 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10551 Zannoni and Eli Zaretskii.
10552
d7f0b9ce
DJ
105532002-01-20 Daniel Jacobowitz <drow@mvista.com>
10554
10555 * buildsym.c: Update copyright years.
10556 * c-typeprint.c: Likewise.
10557 * dwarf2read.c: Likewise.
10558 * f-typeprint.c: Likewise.
10559 * gdbtypes.c: Likewise.
10560 * gdbtypes.h: Likewise.
10561 * hp-symtab-read.c: Likewise.
10562 * hpread.c: Likewise.
10563 * mdebugread.c: Likewise.
10564 * p-typeprint.c: Likewise.
10565
3fd3d7d2
AC
105662002-01-20 Andrew Cagney <ac131313@redhat.com>
10567
10568 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10569 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10570 byte-order selectable.
10571 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10572 * arch-utils.c: Ditto.
10573 (set_endian): Ditto.
10574 (set_endian_from_file): Ditto.
10575 * gdbserver/low-sim.c (create_inferior): Ditto.
10576 * gdbarch.sh: Ditto.
10577 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10578 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10579 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10580 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10581 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10582 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10583 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10584 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10585 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10586 macro definition.
10587 * config/mips/tm-wince.h: Remove #undef of macro
10588 TARGET_BYTE_ORDER_SELECTABLE.
10589 * config/sh/tm-wince.h: Ditto.
10590
b02dede2
DJ
105912002-01-20 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10594 member function fields. Add accessor macro
10595 TYPE_FN_FIELD_ARTIFICIAL.
10596 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10597 * c-typeprint.c (c_type_print_base): Skip artificial member
10598 functions.
10599
c3643761
DJ
106002002-01-20 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * f-typeprint.c: Delete unused function f_type_print_args.
10603 * p-typeprint.c: Delete unused function pascal_type_print_args.
10604
8176bb6d
DJ
106052002-01-20 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10608 comment. Add ``artificial'' to ``union field_location''.
10609
10610 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10611
10612 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10613 * mdebugread.c (parse_symbol): Likewise.
10614 * stabsread.c (define_symbol): Likewise.
10615 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10616 initializing TYPE_FIELD_BITPOS to n (obsolete).
10617 (hpread_doc_function_type): Likewise.
10618 * hpread.c (hpread_function_type): Likewise.
10619
7fd60527
AC
106202002-01-20 Andrew Cagney <ac131313@redhat.com>
10621
10622 * configure.in (host_makefile_frag): Only require a host makefile
10623 fragment when a native build.
10624 * configure: Re-generate.
10625
c2f05ac9
AC
106262002-01-20 Andrew Cagney <ac131313@redhat.com>
10627
10628 * doublest.h (floatformat_from_type): Declare.
10629 * doublest.c (floatformat_from_type): New function.
10630 (convert_typed_floating): Use.
10631
10632 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10633 call to function floatformat_from_type.
10634
10635 * gdbarch.sh (IEEE_FLOAT): Delete.
10636 * gdbarch.h, gdbarch.c: Re-generate.
10637 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10638 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10639 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10640 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10641 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10642 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10643 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10644 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10645 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10646 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10647 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10648 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10649
10650 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10651 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10652 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10653 * sh-tdep.c (sh_gdbarch_init): Ditto.
10654 * mips-tdep.c (mips_gdbarch_init): Ditto.
10655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10656 * cris-tdep.c (cris_gdbarch_init): Ditto.
10657
abf22e64
AJ
106582002-01-20 Jiri Smid <smid@suse.cz>
10659
10660 * configure.host, configure.tgt: Support x86-64.
10661 * NEWS: Note new target x86-64.
10662
b7c4cbf8
AJ
10663 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10664 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10665 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10666 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10667 x86-64-linux-nat.o): Fix dependencies.
10668
82600034
AC
106692002-01-19 Andrew Cagney <ac131313@redhat.com>
10670
10671 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10672 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10673 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10674 * config/sparc/xm-sun4os4.h: Delete file.
10675 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10676
bbe5c628
AC
106772002-01-19 Andrew Cagney <ac131313@redhat.com>
10678
10679 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10680 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10681 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10682 * config/i386/i386lynx.mh (XM_FILE): Delete.
10683 * config/rs6000/xm-rs6000ly.h: Delete file.
10684 * config/sparc/xm-sparclynx.h: Delete file.
10685 * config/m68k/xm-m68klynx.h: Delete file.
10686 * config/i386/xm-i386lynx.h: Delete file.
10687 * config/xm-lynx.h: Delete file.
10688 * config/djgpp/fnchange.lst: Update.
10689
f8453e34
JT
106902002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10691
10692 * alpha-tdep.c (alpha_register_byte): New function.
10693 (alpha_register_raw_size): Ditto.
10694 (alpha_register_virtual_size): Ditto.
10695 (alpha_skip_prologue_internal): Renamed from
10696 alpha_skip_prologue.
10697 (alpha_skip_prologue): New version that calls
10698 alpha_skip_prologue_internal.
10699 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10700 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10701 second argument from alpha_skip_prologue.
10702 (REGISTER_BYTE): Use alpha_register_byte.
10703 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10704 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10705 (FRAMELESS_FUNCTION_INVOCATION): Use
10706 generic_frameless_function_invocation_not.
10707 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10708 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10709
52d9e613
AC
107102002-01-19 Andrew Cagney <ac131313@redhat.com>
10711
10712 * config/mips/xm-news-mips.h: Delete file.
10713 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10714
10715 * config/m88k/xm-m88k.h: Delete file.
10716 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10717 * config/m88k/xm-delta88v4.h: Ditto.
10718 * config/m88k/xm-delta88.h: Ditto.
10719
10720 * config/alpha/xm-fbsd.h: Delete file.
10721 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10722
10723 * config/sparc/xm-sparc.h: Delete file.
10724 * Makefile.in (xm-sun4os4.h): Delete dependency.
10725 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10726 * config/sparc/xm-sun4os4.h: Ditto.
10727 * config/sparc/xm-linux.h: Ditto.
10728
10729 * config/i386/xm-windows.h: Delete file.
10730
2d1b2124
AC
107312002-01-19 Andrew Cagney <ac131313@redhat.com>
10732
10733 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10734 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10735
ee1f65f0
JT
107362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10737
10738 * alpha-tdep.c (alpha_call_dummy_words): New.
10739 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10740 (CALL_DUMMY_P): Define.
10741 (CALL_DUMMY_WORDS): Define.
10742 (SIZEOF_CALL_DUMMY_WORDS): Define.
10743
98081e55
PB
107442002-01-19 Per Bothner <per@bothner.com>
10745
10746 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10747 isn't NULL, which can happen with some gcj-3.x-produced code.
10748
0d056799
JT
107492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10750
10751 * alpha-tdep.c (alpha_register_virtual_type): New function.
10752 (alpha_init_frame_pc_first): Ditto.
10753 (alpha_fix_call_dummy): Ditto.
10754 (alpha_store_struct_return): Ditto.
10755 (alpha_extract_struct_value_address): Ditto.
10756 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10757 alpha_register_virtual_type.
10758 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10759 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10760 alpha_extract_struct_value_address.
10761 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10762 (INIT_FRAME_PC): Use init_frame_pc_noop.
10763 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10764
4604bcad
MK
107652002-01-19 Mark Kettenis <kettenis@gnu.org>
10766
10767 * i386gnu-nat.c: Include "i386-tdep.h".
10768 (fetch_fpregs): Simplify code dealing with uninitialized floating
10769 point states such that it doesn't require FP7_REGNUM.
10770
140f9984
JT
107712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10772
abf22e64
AJ
10773 * alpha-tdep.c (frame_extra_info): New.
10774 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10775 frame->extra_info.
10776 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10777 (alpha_frame_saved_pc): Use frame->extra_info.
10778 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10779 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10780 (init_extra_frame_info): Rename to...
10781 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10782 (alpha_print_extra_frame_info): New function.
140f9984
JT
10783 (alpha_frame_locals_address): Ditto.
10784 (alpha_frame_args_address): Ditto.
abf22e64 10785 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10786 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10787 alpha_frame_args_address.
abf22e64 10788 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10789 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10790 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10791 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10792 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10793 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10794
d734c450
JT
107952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10796
10797 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10798 (alpha_cannot_fetch_register): Ditto.
10799 (alpha_cannot_store_register): Ditto.
10800 (alpha_register_convertible): Ditto.
10801 (alpha_use_struct_convention): Ditto.
10802 * config/alpha/tm-alpha.h: Update copyright years.
10803 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10804 (INNER_THAN): Use core_addr_lessthan.
10805 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10806 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10807 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10808 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10809 (FRAME_CHAIN): Remove unnecessary cast.
10810
b4ceaee6
AC
108112002-01-18 Andrew Cagney <ac131313@redhat.com>
10812
10813 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10814 obsolete.
10815
0a65a603
AC
108162002-01-18 Andrew Cagney <ac131313@redhat.com>
10817
10818 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10819 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10820 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10821 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10822 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10823 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10824 * x86-64-linux-nat.c: Ditto.
10825
636a6dfc
JT
108262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10827
abf22e64 10828 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10829 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10830 (REGISTER_NAME): Define.
10831
acceddb6
JT
108322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10833
10834 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10835
ec32e4be
JT
108362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10837
10838 * alpha-tdep.c: Update copyright years.
10839 (alpha_next_pc): New function.
10840 (alpha_software_single_step): Ditto.
10841 * config/alpha/tm-alpha.h: Add prototype for
10842 alpha_software_single_step.
10843
e771a871
JT
108442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10845
10846 * alphabsd-nat.c: Update copyright years.
10847 (fill_gregset): Use regcache_collect.
10848 (fill_fpregset): Likewise.
10849 (fetch_inferior_registers): Only fetch integer registers
10850 if requested to do so.
10851 (store_inferior_registers): Only store integer registers
10852 if requested to do so.
10853
7708fa01
AC
108542002-01-17 Andrew Cagney <ac131313@redhat.com>
10855
10856 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10857 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10858 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10859 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10860 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10861 * config/arm/linux.mh (XDEPFILES): Delete.
10862 * config/arm/nbsd.mh (XDEPFILES): Delete.
10863 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10864 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10865 * config/i386/i386m3.mh (XDEPFILES): Delete.
10866 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10867 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10868 * config/i386/fbsd.mh (XDEPFILES): Delete.
10869 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10870 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10871 * config/i386/i386v4.mh (XDEPFILES): Delete.
10872 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10873 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10874 * config/i386/i386aix.mh (XDEPFILES): Delete.
10875 * config/i386/go32.mh (XDEPFILES): Delete.
10876 * config/i386/cygwin.mh (XDEPFILES): Delete.
10877 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10878 * config/i386/i386mach.mh (XDEPFILES): Delete.
10879 * config/i386/i386v32.mh (XDEPFILES): Delete.
10880 * config/i386/linux.mh (XDEPFILES): Delete.
10881 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10882 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10883 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10884 * config/i386/i386sco.mh (XDEPFILES): Delete.
10885 * config/i386/i386v.mh (XDEPFILES): Delete.
10886 * config/i386/nbsd.mh (XDEPFILES): Delete.
10887 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10888 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10889 * config/i386/symmetry.mh (XDEPFILES): Delete.
10890 * config/i386/obsd.mh (XDEPFILES): Delete.
10891 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10892 * config/ia64/linux.mh (XDEPFILES): Delete.
10893 * config/ia64/aix.mh (XDEPFILES): Delete.
10894 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10895 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10896 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10897 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10898 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10899 * config/m68k/linux.mh (XDEPFILES): Delete.
10900 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10901 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10902 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10903 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10904 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10905 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10906 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10907 * config/m88k/delta88.mh (XDEPFILES): Delete.
10908 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10909 * config/m88k/m88k.mh (XDEPFILES): Delete.
10910 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10911 * config/mips/linux.mh (XDEPFILES): Delete.
10912 * config/mips/irix6.mh (XDEPFILES): Delete.
10913 * config/mips/irix5.mh (XDEPFILES): Delete.
10914 * config/mips/irix4.mh (XDEPFILES): Delete.
10915 * config/mips/irix3.mh (XDEPFILES): Delete.
10916 * config/mips/decstation.mh (XDEPFILES): Delete.
10917 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10918 (NATDEPFILES): Move core-aout.o to here.
10919 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10920 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10921 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10922 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10923 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10924 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10925 * config/pa/hpux11.mh (XDEPFILES): Delete.
10926 * config/powerpc/aix.mh (XDEPFILES): Delete.
10927 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10928 * config/powerpc/linux.mh (XDEPFILES): Delete.
10929 * config/romp/rtbsd.mh: Rename XDEPFILES.
10930 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10931 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10932 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10933 * config/s390/s390.mh (XDEPFILES): Delete.
10934 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10935 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10936 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10937 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10938 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10939 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10940 * config/sparc/linux.mh (XDEPFILES): Delete.
10941 * config/vax/vaxult.mh (XDEPFILES): Delete.
10942 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10943 * Makefile.in (DEPFILES): Remove XDEPFILES.
10944
375fc983
AC
109452002-01-17 Andrew Cagney <ac131313@redhat.com>
10946
10947 * utils.c (internal_verror): Fix comments, default is yes not no.
10948 Update queries to match. Default to quit and dump core.
10949
8926118c
AC
109502002-01-17 Andrew Cagney <ac131313@redhat.com>
10951
10952 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10953 copyright.
10954 * defs.h, event-top.c, gdbcmd.h: Ditto.
10955 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10956 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10957 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10958 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10959 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10960 * mi/mi-main.c:Ditto.
10961
10962 * stack.c, symfile.c: Update copyright.
10963
45b7b345
DJ
109642002-01-17 Daniel Jacobowitz <drow@mvista.com>
10965
db728ff7
DJ
10966 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10967 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10968 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10969 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10970
db728ff7
DJ
109712002-01-17 Daniel Jacobowitz <drow@mvista.com>
10972
10973 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10974 * gdbserver/low-lynx.c (myattach): Likewise.
10975 * gdbserver/low-nbsd.c (myattach): Likewise.
10976 * gdbserver/low-sim.c (myattach): Likewise.
10977 * gdbserver/low-sparc.c (myattach): Likewise.
10978 * gdbserver/low-sun3.c (myattach): Likewise.
10979
10980 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10981
db728ff7 10982 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10983 (main): Handle "--attach".
10984
8de3c354
AC
109852002-01-16 Andrew Cagney <ac131313@redhat.com>
10986
10987 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10988 maintainer.
10989
b0129042
DJ
109902002-01-15 Daniel Jacobowitz <drow@mvista.com>
10991
10992 * c-typeprint.c (is_type_conversion_operator): Add additional
10993 check for non-conversion operators.
10994
ba8679fb 109952002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10996
10997 * linux-proc.c: Add "info proc" command, a la procfs.c.
10998 (read_mapping): New function, abstract and re-use code.
10999 (linux_find_memory_regions): Use new func read_mapping.
11000 (linux_info_proc_cmd): New function, implement "info proc".
11001 (_initialize_linux_proc): Add new command "info proc".
11002
e4f9b4d5
MS
110032002-01-15 Michael Snyder <msnyder@redhat.com>
11004
11005 * symfile.c (generic_load): Use bfd_map_over_sections method
11006 instead of manipulating bfd structure members directly.
11007 (add_section_size_callback): New function, bfd sections callback
11008 used by generic_load.
11009 (load_sections_callback): New function, bfd sections callback
11010 used by generic_load.
11011
08cf96df
EZ
110122002-01-15 Elena Zannoni <ezannoni@redhat.com>
11013
abf22e64 11014 [Based on work by Jim Blandy]
08cf96df
EZ
11015 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11016 (builtin_type_vec128): Export.
11017 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11018 types.
11019 (builtin_type_vec128): New builtin type for 128 bit vector
11020 registers.
11021 (build_gdbtypes): Initialize builtin_type_v16qi and
11022 builtin_type_v8hi. Create the vec128 register builtin type
11023 structure.
11024 (build_builtin_type_vec128): New function.
abf22e64 11025 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11026 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11027 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11028 AltiVec register to new builtin type.
11029
d7242108
DJ
110302001-01-15 Daniel Jacobowitz <drow@mvista.com>
11031
11032 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11033 to make_cv_type.
11034
4ee3352d
AC
110352002-01-14 Andrew Cagney <ac131313@redhat.com>
11036
11037 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11038 CLEAN_UP_REGISTER_VALUE.
11039 * regcache.c (supply_register): Update only call.
11040
f015b2e7
AC
110412002-01-14 Andrew Cagney <ac131313@redhat.com>
11042
11043 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11044 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11045 a29k-*-vxworks* targets as obsolete.
11046
356ae49d
MS
110472002-01-14 Michael Snyder <msnyder@redhat.com>
11048
11049 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11050 until we can resolve portability issues.
11051 * gregset.h: Remove references to fpxregs.
11052 * gcore.c (gcore_command): Initialize note_sec to NULL.
11053
ade8f45e
AC
110542002-01-13 Andrew Cagney <ac131313@redhat.com>
11055
11056 * signals.c (target_signal_to_name): Rewrite. Only use
11057 signals[].name when in bounds and non-NULL.
abf22e64 11058
89c49e7a
AC
110592002-01-13 Andrew Cagney <ac131313@redhat.com>
11060
11061 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11062 * signals.c (target_signal_to_name): Verify that SIG is within the
11063 bounds of the signals array.
11064
4daa9f9f
AC
110652002-01-13 Andrew Cagney <ac131313@redhat.com>
11066
11067 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11068
ba4bbdcb
KS
110692002-01-13 Keith Seitz <keiths@redhat.com>
11070
11071 * stack.c (print_frame_info_base): Print the frame's pc
11072 only if when print_frame_info_listing_hook is not defined.
11073
575bbeb6
KS
110742002-01-13 Keith Seitz <keiths@redhat.com>
11075
11076 * varobj.c (varobj_set_value): Make sure that there were no
11077 errors evaluating the object before attempting to set its
11078 value.
11079 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11080 so this offset adjustment is no longer necessary.
11081 (create_child): Don't set the error flag if the child is
11082 a CPLUS_FAKE_CHILD.
11083 (value_of_child): If value_fetch_lazy fails, return NULL
11084 so that callers will be notified that an error occurred.
11085 (c_value_of_variable): Delay check of variable's validity
11086 until later. We actually want all structs and unions to have
11087 the value "{...}".
11088 Do not return "???" for variables which could not be evaluated.
11089 This error condition must be returned to the caller so that it
11090 can get the error condition from gdb.
11091 (cplus_name_of_child): Adjust index for vptr before figuring
11092 out the name of the child.
11093 (cplus_value_of_child): If a child's (real) parent is not valid,
11094 don't even bother trying to give a value for it. Just return
11095 an error. Change all instances in this function.
11096 (cplus_type_of_child): If our parent is one of the "fake"
11097 parents, we need to get at the type of the real parent, and
11098 derive the child's true type using this information.
11099
b76898ab
AC
111002002-01-13 Andrew Cagney <ac131313@redhat.com>
11101
11102 From 2002-01-09 John Marshall <johnm@falch.net>:
11103 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11104 sources.redhat.com, and tweak some related URLs which had
11105 suffered from linkrot.
11106
b6649e88
AC
111072002-01-13 Andrew Cagney <ac131313@redhat.com>
11108
11109 From Jeff law:
11110 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11111 structures passed in registers.
11112
82cc5033
EZ
111132002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11114
11115 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11116 white space which prevented compilation. Reported by DSK
11117 <dsk@student.unsw.edu.au>.
11118
ba5f2f8a
MS
111192002-01-11 Michael Snyder <msnyder@redhat.com>
11120
fbd35540
MS
11121 * symfile.c (build_section_addr_info_from_section_tab):
11122 Use bfd access method instead of manipulating bfd directly.
11123 (syms_from_objfile): Ditto.
11124 (simple_overlay_update_1): Ditto.
11125 (simple_overlay_update): Ditto.
11126 (generic_load): Ditto.
11127 (overlay_unmapped_address): FIXME comment, bfd access methods.
11128 (sections_overlap): FIXME comment, bfd access methods.
11129 (pc_in_mapped_range): FIXME comment, bfd access methods.
11130 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11131 (section_is_mapped): FIXME comment, bfd access methods.
11132 (section_is_overlay): FIXME comment, bfd access methods.
11133
ba5f2f8a
MS
11134 * symfile.c (generic_load): Whitespace and long line cleanups.
11135 Remove duplicate variable, change several local variables to
11136 more appropriate data types.
11137 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11138
17df2af6
AC
111392002-01-12 Andrew Cagney <ac131313@redhat.com>
11140
11141 From Peter Schauer:
11142 * language.c (longest_local_hex_string_custom): Use phex_nz to
11143 convert NUM to a hex string.
11144
ec920329
EZ
111452002-01-12 Elena Zannoni <ezannoni@redhat.com>
11146
11147 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11148 the function.
538a76d6 11149 Update Copyright year.
ec920329 11150
3abd2e01
AC
111512002-01-12 Andrew Cagney <ac131313@redhat.com>
11152
11153 * language.c (longest_raw_hex_string): Delete unused function.
11154
b21b22e0
PS
111552002-01-11 Petr Sorfa <petrs@caldera.com>
11156
11157 * MAINTAINERS (write-after-approval): Add myself.
11158 * dwarf2read.c (read_tag_string_type): Handling of
11159 DW_AT_byte_size.
11160 (read_tag_string_type): FORTRAN fix to prevent propagation of
11161 first string size.
11162 (set_cu_language): Handling of DW_LANG_Fortran95
11163
747fe712
RE
111642002-01-11 Richard Earnshaw <rearnsha@arm.com>
11165
11166 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11167 GETPID(inferior_ptid).
11168 (store_inferior_registers): Likewise.
11169
f1bea926
JM
111702002-01-10 Jason Merrill <jason@redhat.com>
11171
11172 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11173 Fix DW_OP_minus.
11174
ae940673
AC
111752002-01-10 Andrew Cagney <ac131313@redhat.com>
11176
11177 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11178 and bfd/elf32-sh-nbsd.c.
11179
00546b04
MS
111802002-01-10 Michael Snyder <msnyder@redhat.com>
11181
352ed7b4
MS
11182 * NEWS: Mention --pid and corefile/proc-id behavior change.
11183
c18be923
MS
11184 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11185 * gcore.c: Include cli/cli-decode.h instead of command.h.
11186
00546b04
MS
11187 * main.c (captured_main): Add new command line option "--pid".
11188 If the second command line argument (following the symbol-file)
11189 begins with a digit, try to attach to it before trying to open
11190 it as a corefile.
11191 (print_gdb_help): Document the "--pid" argument.
11192
db60ec62
EZ
111932002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11194
11195 * completer.c (command_completer): New function.
11196
11197 * completer.h <command_completer>: Add prototype.
11198
11199 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11200 completer for the "help" command.
11201
39c22d1a
JM
112022002-01-09 Jason Merrill <jason@redhat.com>
11203
11204 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11205
c564377f
MS
112062002-01-09 Michael Snyder <msnyder@redhat.com>
11207
975aec09
MS
11208 * i386-linux-nat.c (fill_fpxregset): Make global.
11209 (store_fpxregset): Ditto.
11210
db4a10fa
MS
11211 * gregset.h (gdb_fpxregset_t): Define.
11212 (supply_fpxregset): Prototype.
11213 (fill_fpxregset): Prototype.
11214
c564377f
MS
11215 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11216
c3d45d70
RE
112172002-01-09 Richard Earnshaw <rearnsha@arm.com>
11218
11219 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11220 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11221 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11222
fcc87af1
AC
112232002-01-09 Andrew Cagney <ac131313@redhat.com>
11224
11225 * MAINTAINERS: Update target maintainer rules so that any
11226 Maintainer can approve a tested patch for a maintenance-only
11227 target.
11228
dd96c05b
RE
112292002-01-09 Richard Earnshaw <rearnsha@arm.com>
11230
d4297db9 11231 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11232
d4297db9 11233 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11234 IN_SIGTRAMP.
11235
145fdc6e
MS
112362002-01-08 Michael Snyder <msnyder@redhat.com>
11237
11238 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11239 real name of the executable, rather than the /proc name.
11240
be4d1333
MS
112412002-01-03 Michael Snyder <msnyder@redhat.com>
11242
11243 Implement a "generate-core-file" command in gdb, save target state.
11244 * gcore.c: New file. Implement new command 'generate-core-file'.
11245 Save a corefile image of the current state of the inferior.
11246 * linux-proc.c: Add linux-specific code for saving corefiles.
11247 * target.h (struct target_ops): Add new target vectors for saving
11248 corefiles; to_find_memory_regions and to_make_corefile_notes.
11249 (target_find_memory_regions): New macro.
11250 (target_make_corefile_notes): New macro.
11251 * target.c (update_current_target): Inherit new target methods.
11252 (dummy_find_memory_regions): New place-holder method.
11253 (dummy_make_corefile_notes): New place-holder method.
11254 (init_dummy_target): Initialize new dummy target vectors.
11255 * exec.c (exec_set_find_memory_regions): New function.
11256 Allow the exec_ops vector for memory regions to be taken over.
11257 (exec_make_note_section): New function, target vector method.
11258 * defs.h (exec_set_find_memory_regions): Export prototype.
11259 * procfs.c (proc_find_memory_regions): New function, corefile method.
11260 (procfs_make_note_section): New function, corefile method.
11261 (init_procfs_ops): Set new target vector pointers.
11262 (find_memory_regions_callback): New function.
11263 (procfs_do_thread_registers): New function.
11264 (procfs_corefile_thread_callback): New function.
11265 * sol-thread.c (sol_find_memory_regions): New function.
11266 (sol_make_note_section): New function.
11267 (init_sol_thread_ops): Initialize new target vectors.
11268 * inftarg.c (inftarg_set_find_memory_regions): New function.
11269 Allow to_find_memory_regions vector to be taken over.
11270 (inftarg_set_make_corefile_notes): New function.
11271 Allow to_make_corefile_notes vector to be taken over.
11272 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11273 interface layer if not target_has_execution (may be a corefile).
11274 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11275 * config/sparc/sun4sol2.mh: Ditto.
11276 * config/alpha/alpha-linux.mh: Ditto.
11277 * config/arm/linux.mh: Ditto.
11278 * config/i386/x86-64linux.mh: Ditto.
11279 * config/ia64/linux.mh: Ditto.
11280 * config/m68k/linux.mh: Ditto.
11281 * config/mips/linux.mh: Ditto.
11282 * config/powerpc/linux.mh: Ditto.
11283 * config/sparc/linux.mh: Ditto.
11284
c6b92abd
MS
112852002-01-07 Michael Snyder <msnyder@redhat.com>
11286
11287 * arm-linux-nat.c: Remove references to regcache.c internal data
11288 (registers[] and register_valid[]).
11289
4b09dc8c
MS
112902002-01-07 Michael Snyder <msnyder@redhat.com>
11291
abf22e64
AJ
11292 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11293 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11294 symbol file and shlibs.
11295 * Makefile.in: Add rule for linux-proc.o.
11296 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11297 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11298 * config/arm/linux.mh: Ditto.
11299 * config/i386/linux.mh: Ditto.
11300 * config/i386/x86-64linux.mh: Ditto.
11301 * config/ia64/linux.mh: Ditto.
11302 * config/m68k/linux.mh: Ditto.
11303 * config/mips/linux.mh: Ditto.
11304 * config/powerpc/linux.mh: Ditto.
11305 * config/sparc/linux.mh: Ditto.
11306
c25b74ac
PM
113072002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11308
11309 * win32-nat.c: Add i386-tdep.h dependency.
11310
94cd915f
MS
113112002-01-07 Michael Snyder <msnyder@redhat.com>
11312
c7cccb76
MS
11313 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11314 instead of bfd_get_arch_size. Don't bail out just because
11315 there's no exec_bfd.
abf22e64 11316
34c0bd93
MS
11317 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11318 * p-valprint.c (pascal_object_print_value): Ditto.
11319 * somread.c (som_symtab_read): Ditto.
11320 * symfile.c (simple_free_overlay_region_table): Ditto.
11321 * valops.c (value_assign): Ditto.
11322
21c1c920
MS
11323 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11324 use tilde_expand and strerror for opening save-tracepoints file.
11325
5bbd998e
MS
11326 * thread-db.c (thread_db_new_objfile): Indendation fix.
11327
94cd915f
MS
11328 * infptrace.c (GDB_MAX_ALLOCA): New define.
11329 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11330 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11331 can be overridden with whatever value is appropriate to the host).
11332 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11333 alloca to allocate potentially large buffer.
11334 * rs6000-nat.c (child_xfer_memory): Ditto.
11335 * symm-nat.c (child_xfer_memory): Ditto.
11336 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11337
494e8a93
JSC
113382002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11339
11340 From Nick Clifton <nickc@redhat.com>
11341 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11342
d0e1d48e
MS
113432002-01-07 Michael Snyder <msnyder@redhat.com>
11344
abf22e64 11345 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11346 Don't use exec_bfd if it's NULL.
11347
290b2c7a
MK
113482002-01-06 Mark Kettenis <kettenis@gnu.org>
11349
abf22e64 11350 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11351
aef21287
AC
113522002-01-06 Andrew Cagney <ac131313@redhat.com>
11353
11354 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11355 * gnu-nat.c: Ditto.
11356
30efa627
AC
113572002-01-06 Andrew Cagney <ac131313@redhat.com>
11358
11359 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11360 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11361 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11362 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11363 z8k-coff have not been multi-arched. Update z8k-coff build
11364 status.
11365
9b4ff276
AC
113662002-01-06 Andrew Cagney <ac131313@redhat.com>
11367
11368 * MAINTAINERS: Mark a29k target as obsolete.
11369 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11370 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11371 comments.
11372 * NEWS: Note that a29k targets are obsolete.
11373 * a29k-tdep.c: Mark as obsolete.
11374 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11375 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11376 a29k-*-vxworks* targets as obsolete.
11377 * remote-adapt.c: Obsolete.
11378 * remote-eb.c: Obsolete.
11379 * remote-mm.c: Obsolete.
11380 * remote-udi.c: Obsolete.
11381 * config/a29k/a29k-udi.mt: Obsolete.
11382 * config/a29k/a29k.mt: Obsolete.
11383 * config/a29k/tm-a29k.h: Obsolete.
11384 * config/a29k/tm-vx29k.h: Obsolete.
11385 * config/a29k/vx29k.mt: Obsolete.
11386
a9011d31
AC
113872002-01-05 Andrew Cagney <ac131313@redhat.com>
11388
11389 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11390 with BFD_ENDIAN_BIG.
11391
9299404e
AC
113922002-01-05 Andrew Cagney <ac131313@redhat.com>
11393
11394 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11395 * configure, config.in: Re-generate.
11396 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11397 * defs.h: Do not include <endian.h>.
11398
7e89e357
JT
113992002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11400
11401 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11402 * config.in: Regenerate.
11403 * configure.in: Update copyright years.
11404 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11405 * configure: Regenerate.
11406 * i386bsd-nat.c: Update copyright years.
11407 (fill_gregset): Use regcache_collect.
11408 (fetch_inferior_registers): Only fetch integer registers
11409 if requested to do so. Add support for XMM registers
11410 using PT_GETXMMREGS.
11411 (store_inferior_registers): Only store integer registers
11412 if requested to do so. Add support for XMM registers
11413 using PT_SETXMMREGS.
11414 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11415 (store_inferior_registers): Remove.
11416 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11417 (fetch_elfcore_registers): New function.
11418 (i386nbsd_elfcore_fns): New.
11419 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11420 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11421 i386bsd-nat.o.
11422 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11423 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11424 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11425 * config/i386/tm-nbsd.h: Update copyright years.
11426 (HAVE_SSE_REGS): Define.
11427 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11428 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11429 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11430 (SIGCONTEXT_PC_OFFSET): Remove.
11431 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11432
a752853e
AC
114332002-01-05 Andrew Cagney <ac131313@redhat.com>
11434
11435 * configure.tgt: Remove powerpc-*-macos* target.
11436 * config/m68k/xm-mpw.h: Delete file.
11437 * config/xm-mpw.h: Delete file.
11438 * ser-mac.c: Delete file.
11439 * mpw-make.sed: Delete file.
11440 * mpw-config.in: Delete file.
11441 * mac-xdep.c: Delete file.
11442 * mac-gdb.r: Delete file.
11443 * mac-defs.h: Delete file.
11444 * mac-nat.c: Delete file.
11445 * config/powerpc/macos.mh: Delete file.
11446 * config/powerpc/macos.mt: Delete file.
11447 * config/powerpc/nm-macos.h: Delete file.
11448 * config/powerpc/tm-macos.h: Delete file.
11449 * source.c (openp, open_source_file): Remove obsolete code.
11450 * top.c (gdb_readline): Ditto.
11451 * utils.c (query): Ditto.
11452 * event-top.c (display_gdb_prompt): Ditto.
11453 * Makefile.in (ser-mac.o): Delete obsolete target.
11454 * NEWS: Update.
11455
d7449b42
AC
114562002-01-04 Andrew Cagney <ac131313@redhat.com>
11457
11458 * defs.h (BIG_ENDIAN): Delete macro definition.
11459 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11460 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11461 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11462 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11463 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11464 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11465 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11466 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11467 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11468 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11469 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11470 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11471 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11472 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11473 * gdbarch.c: Re-generate.
11474
356374e8
DJ
114752002-01-04 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11478 for core files.
11479
a2b8f8f8
JT
114802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11481
11482 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11483
12466af9
AC
114842002-01-04 Andrew Cagney <ac131313@redhat.com>
11485
11486 * value.h (value_ptr): Delete typedef.
11487
3549ab40
JT
114882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11489
11490 * i386nbsd-nat.c: Update copyright years.
11491 Include i386-tdep.h.
11492
fedbd091
EZ
114932002-01-04 Elena Zannoni <ezannoni@redhat.com>
11494
11495 * stabsread.c: Update copyright years.
11496
11497 From Debashis Mahata <debashis.mahata@wipro.com>:
11498 (read_struct_fields): Deal with Sun C compiler erroneous stab
11499 output for structs and unions.
fec8b34f 11500 Fix PR gdb/269.
fedbd091 11501
eb43544b
DJ
115022002-01-04 Daniel Jacobowitz <drow@mvista.com>
11503
11504 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11505 prototype.
11506
1514d34e
DJ
115072002-01-04 Daniel Jacobowitz <drow@mvista.com>
11508
11509 * cp-abi.c: Fix whitespace.
11510 (baseclass_offset): New wrapper function.
11511 * cp-abi.h (baseclass_offset): Add prototype.
11512 (struct cp_abi_ops): Add baseclass_offset pointer.
11513
11514 * valops.c (vb_match): Move to...
11515 * gnu-v2-abi.c (vb_match): here.
11516 * valops.c (baseclass_offset): Move to...
11517 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11518
11519 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11520
11521 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11522 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11523 * hpacc-abi.c (init_hpacc_ops): Likewise.
11524
7f8c9282
DJ
115252002-01-04 Daniel Jacobowitz <drow@mvista.com>
11526
11527 * valops.c (find_overload_match): Accept obj as a
11528 reference parameter. Update it before returning.
11529 * value.h (find_overload_match): Update prototype.
11530 * eval.c (evaluate_subexp_standard): Pass object to
11531 find_overload_match by reference.
11532
f23631e4
AC
115332002-01-03 Andrew Cagney <ac131313@redhat.com>
11534
11535 * valarith.c: Replace value_ptr with struct value pointer. Remove
11536 register attribute from value declarations.
11537 * valops.c: Ditto.
11538 * value.h: Ditto.
11539 * scm-lang.c (scm_lookup_name): Ditto.
11540
79e10fab 115412002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11542
79e10fab
AC
11543 Abstract the functionality of iterating over mapped memory
11544 regions into a general purpose iterator function.
abf22e64 11545 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11546 iterator for memory sections.
11547 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11548 (solib_mappings_callback): New function, callback for above.
11549 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11550 (info_mappings_callback): New function, callback for above.
11551
11552 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11553
c5ad026a
MK
115542002-01-01 Mark Kettenis <kettenis@gnu.org>
11555
d2a7c97a
MK
11556 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11557 * i386-tdep.c: Include "elf-bfd.h".
11558 (process_note_abi_tag_sections): New function.
11559 (i386_gdbarch_init): Add code to recognize various OS/ABI
11560 combinations.
11561
c5ad026a
MK
11562 * maint.c (_initialize_maint_cmds): Add missing \ in
11563 string-literal.
11564
a1a5b71e 11565For older changes see ChangeLog-2001
c906108c
SS
11566\f
11567Local Variables:
11568mode: change-log
11569left-margin: 8
11570fill-column: 74
11571version-control: never
11572End:
This page took 0.831791 seconds and 4 git commands to generate.