Fix bug in support for trap instruction.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e8cfbbd9
JW
12002-09-27 Jim Wilson <wilson@redhat.com>
2
3 * MAINTAINERS: Add myself to the Write After Approval list.
4
4e0df2df
MH
52002-09-26Martin M. Hunt <hunt@redhat.com>
6
7 * mips-tdep.c (find_proc_desc): Initialize startaddr.
8
9
9f3b7f07
AC
102002-09-26 Andrew Cagney <ac131313@redhat.com>
11
12 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
13 frame.
14
11269d7e
AC
152002-09-26 Andrew Cagney <ac131313@redhat.com>
16
17 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
18 (rs6000_struct_return_address): Delete variable.
19 (rs6000_store_struct_return): Update.
20 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
21 deprecated_extract_struct_value_address.
22 (rs6000_frame_align): New function.
23 (rs6000_gdbarch_init): Set frame_align.
24
f15ab4a7
AC
252002-09-26 Andrew Cagney <ac131313@redhat.com>
26
27 From Grace Sainsbury <graces@redhat.com>:
28 * Makefile.in (gdbtk-main.o): New target.
29 (gdb.o): New target.
30 (main_h): Define.
31 (main.o): Update dependencies.
32 (gdb$(EXEEXT)): Add gdb.o.
33 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
34 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
35 (SUBDIR_GDBTK_CLEAN): Set.
36 (install-gdbtk): Install the insight binary.
37 (uninstall-gdbtk): New target.
38 (all-gdbtk, clean-gdbtk): New rule.
39 * top.c (use_windows): Default to zero.
40 * main.c: Include "main.h".
41 (main): Delete.
42 (struct captured_main_args): Delete.
43 (gdb_main): New function.
44 * main.h: New file.
45 * gdb.c: New File.
46
e36180d7
AC
472002-09-25 Andrew Cagney <cagney@redhat.com>
48
49 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
50 (frame_map_regnum_to_name): New function.
51 (frame_map_name_to_regnum): New function.
52 * frame.h (frame_map_name_to_regnum): Declare.
53 (frame_map_regnum_to_name): Declare.
54 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
55 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
56 * parse.c: Do not include "builtin-regs.h".
57 (target_map_name_to_register): Delete function.
58 (write_dollar_variable): Use frame_map_name_to_regnum.
59 * parser-defs.h (target_map_name_to_register): Delete declaration.
60 * expprint.c: Include "frame.h".
61 (print_subexp): Use frame_map_regnum_to_name.
62 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
63 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
64
8b69000d
AC
652002-09-25 Andrew Cagney <ac131313@redhat.com>
66
67 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
68 wasn't saved, and the next innermost frame is a dummy, return the
69 dummy frame's link register.
70
046ca86a
JB
712002-09-24 Jim Blandy <jimb@redhat.com>
72
73 Fix from Paul Breed:
74 * main.c (captured_main): Add a `break' after the case for 'b'.
75
94b66fa7
KS
762002-09-24 Keith Seitz <keiths@redhat.com>
77
78 * varobj.c (c_type_of_child): Use get_target_type instead
79 of TYPE_TARGET_TYPE.
80
c214a6fd
FN
812002-09-22 Fernando Nasser <fnasser@redhat.com>
82
53cb0458
FN
83 * source.c (get_current_or_default_source_symtab_and_line): Remove
84 function.
85 (set_default_source_symtab_and_line): New function. Attempts to
86 determine a source file to list lines from if one is not currently
87 defined.
88 (get_current_source_symtab_and_line): Initialize sal.pc and
89 sal.end fields.
90 (set_current_source_symtab_and_line): Mark argument as const.
91 * source.h: Update declarations and comments.
92 * linespec.c (decode_line_1): Replace call to removed routine above.
93 * stack.c (print_frame_info_base): Ditto.
94 * cli/cli-cmds.c (edit_command): Ditto.
95 (list_command): Ditto.
96
972002-09-22 Fernando Nasser <fnasser@redhat.com>
98
99 * source.c (get_current__or_default_source_symtab_and_line): Initialize
100 sal.pc and sal.end fields.
c214a6fd
FN
101 (get_current_or_default_source_symtab_and_line): Ditto.
102 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
103 so we do not cause a new source symtab to be searched for (reverting an
104 unintentional change from the 2002-09-20 patch).
105 * scm-lang.c (scm_unpac): Ditto.
106
cc3b68a5
AC
1072002-09-21 Andrew Cagney <cagney@redhat.com>
108
109 * complaints.c (symfile_explanations): Remove new-line from
110 ``isolated_message''.
111 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
112 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
113
5835abe7
NC
1142002-09-20 Nick Clifton <nickc@redhat.com>
115
116 * NEWS: Announce that V850EA ISA is no longer supported.
117 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
118
a15ef5f5
DC
1192002-09-20 David Carlton <carlton@math.stanford.edu>
120
06ba1b39
DC
121 * Makefile.in (c-lang.o): Correct dependencies.
122 (utils.o): Gather dependencies.
123 (charset.o): Move.
a15ef5f5
DC
124 * c-lang.c: #include "gdb_string.h"
125
87885426
FN
1262002-09-20 Fernando Nasser <fnasser@redhat.com>
127
128 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
129 * cli/cli-cmds.c (list_command): New function. Implements the new
130 cli edit command.
131 (_init_cli_cmds): Add new command definition.
132 * gdb.1: Document edit command.
133 * doc/gdb.texinfo: Document edit command.
134
1352002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
136
137 * source.c: Make global variables current_source_symtab and
138 current_source_line static.
139 (list_command): Moved to cli/cli-cmds.c.
140 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
141 (get_first_line_listed): New accessor function.
142 (get_lines_to_list): New accessor function.
143 (get_current_source_symtab_and_line): New function. Retrieves the
144 position in the source code that we consider current.
145 (get_current_or_default_source_symtab_and_line): New function.
146 Like the above but attempts to determine a default position if one
147 is not currently defined.
148 (set_current_source_symtab_and_line): New function. Sets the source
149 code position considered current and returns the previously set one.
150 (clear_current_source_symtab_and_line): Reset stored information about
151 a current source line.
152 (_initialize_source): Remove registration for the "list" command and
153 its alias.
154 * source.h: Add declarations for the new functions above.
155 * symtab.h: Remove declarations for the global variables mentioned
156 above.
157 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
158 obtain current source line.
159 * linespec.c (decode_line_1): Ditto.
160 * macroscope.c (default_macro_scope): Ditto.
161 * scm-lang.c (scm_unpac): Ditto.
162 * stack.c (print_frame_info_base): Ditto.
163 * symfile.c (clear_symtab_users): Ditto.
164 * symtab.c (decode_line_spec): Ditto.
165 * cli/cli-cmds.c (list_command): Moved here from source.c.
166 (ambiguous_line_spec): Moved here from source.c.
167 (_init_cli_cmds): Add definition for "list" and its alias.
168 * Makefile.in: Update dependencies.
169
ddd216ea
CV
1702002-09-20 Corinna Vinschen <vinschen@redhat.com>
171
172 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
173 with what gcc thinks is correct.
174
6d305052
CV
1752002-09-20 Corinna Vinschen <vinschen@redhat.com>
176
177 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
178 multiple register push instruction.
179
234b45d4
KB
1802002-09-19 Jim Blandy <jimb@redhat.com>
181
182 Add support for distinct host and target character sets.
183 * charset.c, charset.h: New files.
184 * c-exp.y: #include "charset.h".
185 (yylex): Convert character and string literals to the target
186 character set, before returning them as the semantic value of the
187 token.
188 * c-lang.c: #include "charset.h".
189 (c_emit_char): Use charset-specific methods to recognize
190 characters with backslash escape forms, to decide which characters
191 to print literally and which to print using numeric escape
192 sequences, and to convert target characters to host characters
193 before printing.
194 * utils.c: #include "charset.h".
195 (no_control_char_error): New function.
196 (parse_escape): Use charset-specific methods to recognize
197 backslash escapes, parse `control character' notation, and convert
198 characters from the host character set to the target character set.
199 * configure.in: Set the default host character set.
200 Check where to find iconv, and what its argument types might be.
201 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
202 * Makefile.in (SFILES): List charset.c.
203 (COMMON_OBS): List charset.o.
204 (charset.o): New rule.
205 (charset_h): New header dependency variable.
206 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
207 (LIBICONV): New variable, set by configure.
208 (CLIBS): Include $(LIBICONV) here.
209 * aclocal.m4, config.in, configure: Regenerated.
210
525d6a61
JB
2112002-09-19 Joel Brobecker <brobecker@gnat.com>
212
213 * ada-exp.y: Add missing semicolons to end rules. Fixes a
214 bison 1.35 warning.
215
3ed93867
RE
2162002-09-19 Richard Earnshaw <rearnsha@arm.com>
217
218 * gdb_mbuild.sh: New file.
219
437666f8
AC
2202002-09-19 Andrew Cagney <ac131313@redhat.com>
221
222 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
223
389e51db
AC
2242002-09-18 Andrew Cagney <ac131313@redhat.com>
225
226 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
227 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
228 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
229 valops.c, value.h: Revert previous change.
230
3b4efeaa
MS
2312002-09-18 Michael Snyder <msnyder@redhat.com>
232
233 Preliminary support for Objective-C:
234 * defs.h (language_objc): New enum value.
235 (puts_filtered_tabular): Declaration only, exported from utils.c.
236 (skip_quoted): Delete, declared in completer.h.
237 * c-exp.y: Include completer.h.
238 * p-exp.y: Ditto.
239 * jv-exp.y: Ditto.
240 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
241 New operator enum values.
242 * language.h (CAST_IS_CONVERSION): Test for language_objc.
243 * language.c (binop_result_type): Handle language_objc case.
244 (integral_type, character_type, string_type, boolean_type,
245 structured_type, binop_type_check): Ditto.
246 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
247 (struct objc_specific): Add to general_symbol_info.
248 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
249 (SYMBOL_DEMANGLED_NAME): Handle objc case.
250 * parser-defs.h (struct objc_class_str): New struct type.
251 (start_msglist, end_msglist, add_msglist): Declaration only,
252 exported from objc-lang.c.
253 * value.h (value_of_local, value_nsstring,
254 call_function_by_hand_expecting_type): Exported from valops.c.
255 * valops.c (find_function_addr): Export.
256 (call_function_by_hand_expecting_type): New function.
257 (value_of_local): New function.
258 * symfile.c (init_filename_language_table): Add ".m" extension
259 for Objective-C.
260 * utils.c (puts_filtered_tabular): New function.
261 (fprintf_symbol_filtered): Add objc demangling support (disabled).
262 (set/show demangle): Extend help-string to refer to ObjC.
263 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
264 * stabsread.c (symbol_reference_defined): Objective-C symbols
265 may contain colons: make allowances when scanning stabs strings
266 for colons.
267 (objc_find_colon): New function.
268 * printcmd.c (address_info): If language == objc then print
269 "self" instead of "this".
270 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
271 OP_NSSTRING, and OP_SELF.
272 (prefixify_subexp): Ditto.
273 * source.c (print_source_lines): Mention objc in comment.
274 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
275 method names.
276
b9caf505
AC
2772002-09-18 Andrew Cagney <ac131313@redhat.com>
278
279 * complaints.h: Update copyright.
280 (struct complaints): Declare.
281 (struct complaint): Make `message' constant.
282 (internal_complaint): Declare.
283 (complaint): Declare.
284 (complaint_root): Delete declaration.
285 (symfile_complaints): Delete declaration.
286 (struct complaints): Add opaque declaration.
287 (clear_complaints): Add a complaints parameter.
288 * complaints.c: Update copyright.
289 (enum complaint_series): Define.
290 (complaint_root): Delete.
291 (struct complaints): Define.
292 (complaint_sentinel, symfile_complaint_book): New variables.
293 (symfile_explanations, symfile_complaints): New variables.
294 New variables.
295 (get_complaints): New function.
296 (vcomplaint): New function.
297 (complaint): New function.
298 (internal_complaint): New function.
299 (complain): Call vcomplain with symfile_complaint.
300 (clear_complaints): Rewrite.
301 (_initialize_complaints): Use add_setshow_command.
302 * Makefile.in (complaints.o): Update dependencies.
303 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
304 to call to clear_complaints.
305 (new_symfile_objfile, reread_symbols): Ditto.
306 (oldsyms_complaint): Delete.
307 (empty_symtab_complaint, unknown_option_complaint): Delete.
308 (free_named_symtabs): Use complaint instead of complain.
309
d2e6263c
MS
3102002-09-18 Michael Snyder <msnyder@redhat.com>
311
5fb2031a
AC
312 Contributed by Apple Computer, Inc. Merged with current sources
313 by Adam Fedor <fedor@doc.com> [cagney].
314
d2e6263c
MS
315 * objc-lang.c: First clean-up round: comments, indentation.
316 * objc-lang.h: Ditto.
317 * objc-lang.y: Ditto.
318
dec43320
AC
3192002-09-18 Andrew Cagney <ac131313@redhat.com>
320
321 * maint.c (maintenance_internal_error): Print the parameter as the
322 error message.
323 (maintenance_internal_warning): New function.
324 (_initialize_maint_cmds): Add command `maint internal-warning'.
325
326 * defs.h (internal_warning, internal_vwarning): Declare.
327 * utils.c (struct internal_problem): Define.
328 (internal_vproblem): New function.
329 (internal_warning): New function.
330 (internal_vwarning): New function.
331 (internal_warning_problem, internal_error_problem): New variables.
332 (internal_verror): Just call internal_vproblem.
333
b81654f1
MS
3342002-09-18 Michael Snyder <msnyder@redhat.com>
335
336 * objc-lang.c: New file, support for Objective-C.
337 Preliminary check-in, not yet integrated into gdb.
338 * objc-lang.h: New file.
339 * objc-exp.y: New file.
340
0542c381
AC
3412002-09-18 Andrew Cagney <ac131313@redhat.com>
342
7bda5e4a
AC
343 * infrun.c (signal_stop_update): Convert definition to ISO C.
344 (signal_print_update): Ditto.
345 (signal_pass_update): Ditto.
346 * inflow.c (terminal_save_ours): Ditto.
347
5247b418
AC
348 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
349 comments.
350
fc60962c
AC
351 * config/djgpp/fnchange.lst: Handle name clashes between
352 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
353 bfd/coff-tic80.c.
354
0542c381
AC
355 * i386-linux-tdep.h: Fix tipo.
356
5b924b9b
AF
3572002-09-18 Adam Fedor <fedor@gnu.org>
358
359 * MAINTAINERS: Add myself to the Write After Approval list.
360
5afc051b
JB
3612002-09-18 Jim Blandy <jimb@redhat.com>
362
363 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
364 texthigh and textlow to reader-specific structs caused
365 objfile_relocate to miss them. This is fixable, but the work that
366 the change was supposed to prepare GDB for never got done anyway.
367
eb944380
DC
3682002-09-18 David Carlton <carlton@math.stanford.edu>
369
370 * MAINTAINERS: Alphabetize Write After Approval list.
371
948e66d9
DJ
3722002-09-18 Daniel Jacobowitz <drow@mvista.com>
373
374 Fix PR gdb/709
375 * values.c (value_static_field): Call read_var_value.
376
dc604539
AC
3772002-09-18 Andrew Cagney <ac131313@redhat.com>
378
379 * valops.c (hand_function_call): Align the initial stack pointer
380 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
381 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
382 return value.
383 * mips-tdep.c (mips_frame_align): New function.
384 (mips_gdbarch_init): Set frame_align.
385 * gdbarch.sh (FRAME_ALIGN): New method.
386 * gdbarch.h, gdbarch.c: Re-generate.
387
cb7e422f
ML
3882002-09-18 Michal Ludvig <mludvig@suse.cz>
389
390 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
391 registers.
392
a094c6fb
AC
3932002-09-17 Andrew Cagney <ac131313@redhat.com>
394
395 * NEWS: Mention that MIPS $fp behavior changed.
396 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
397 reference to FP_REGNUM.
398 (mipsnbsd_cannot_store_register): Ditto.
399 * mips-linux-nat.c: Update copyright.
400 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
401 (mips_linux_cannot_store_register): Ditto.
402 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
403 * config/mips/tm-mips.h: Update copyright.
404 (FP_REGNUM): Delete macro.
405 (MIPS_REGISTER_NAMES): Replace "fp" with "".
406 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
407 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
408 (mips_r3041_reg_names, mips_r3051_reg_names)
409 (mips_r3081_reg_names): Replace "fp" with "".
410 Fix PR gdb/480.
411
45cf40d1
TR
4122002-09-17 Theodore A. Roth <troth@verinet.com>
413
414 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
415 generic_read_register_dummy() (PR gdb/703).
416 (avr_push_return_address): #if 0 out unused vars.
417 (avr_gdbarch_init): Enable use of avr_push_return_address().
418
c7e701b5
MS
4192002-09-17 Michael Snyder <msnyder@redhat.com>
420
d76ba2a5 421 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
422 RTE will take care of it.
423
20bcf01c
AC
4242002-09-17 Andrew Cagney <ac131313@redhat.com>
425
426 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
427 invalid, return SP_REGNUM.
428
009a9971 4292002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
430
431 * mips-tdep.c (mips_pop_frame): Read saved values of floating
432 point registers without sign extension.
433
135c175f
AC
4342002-09-17 Andrew Cagney <cagney@redhat.com>
435
436 * blockframe.c (deprecated_read_register_dummy): Rename
437 generic_read_register_dummy.
438 * frame.c (frame_unwind_signed_register): New function.
439 (frame_unwind_unsigned_register): New function.
440 * frame.h (frame_unwind_signed_register): Declare.
441 (frame_unwind_unsigned_register): Declare.
442 (deprecated_read_register_dummy): Rename
443 generic_read_register_dummy.
444
445 * h8300-tdep.c (h8300_frame_chain): Update.
446 (h8300_frame_saved_pc): Update.
447 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
448 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
449 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
450 (s390_frame_chain): Update.
451 * v850-tdep.c (v850_find_callers_reg): Update.
452 (v850_frame_saved_pc): Update.
453 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
454 (m32r_find_callers_reg): Update.
455 (m32r_frame_saved_pc): Update.
456 * sh-tdep.c (sh_find_callers_reg): Update.
457 (sh64_get_saved_pr): Update.
458 (sh_init_extra_frame_info): Update.
459 (sh_init_extra_frame_info): Update.
460 (sh64_init_extra_frame_info): Update.
461 (sh64_init_extra_frame_info): Update.
462 * mcore-tdep.c (mcore_find_callers_reg): Update.
463 (mcore_frame_saved_pc): Update.
464 (mcore_init_extra_frame_info): Update.
465 * i386-tdep.c (i386_frame_saved_pc): Update.
466 * ia64-tdep.c (ia64_frame_saved_pc): Update.
467 (ia64_init_extra_frame_info): Update.
468 (ia64_init_extra_frame_info): Update.
469 * d10v-tdep.c (d10v_frame_saved_pc): Update.
470 * cris-tdep.c (cris_init_extra_frame_info): Update.
471 * avr-tdep.c (avr_frame_chain): Update.
472 (avr_init_extra_frame_info): Update.
473 (avr_frame_saved_pc): Update.
474 * arm-tdep.c (arm_find_callers_reg): Update.
475 (arm_init_extra_frame_info): Update.
476 (arm_frame_saved_pc): Update.
477
a741e514
TT
4782002-09-17 Tom Tromey <tromey@redhat.com>
479
480 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
481 is "'".
482
d1a8e808
CV
4832002-09-17 Corinna Vinschen <vinschen@redhat.com>
484
485 * MAINTAINERS: Remove "non multi-arched" text from h8300.
486 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
487 NEXT_PROLOGUE_INSN.
488 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
489 NEXT_PROLOGUE_INSN.
490
d9025a18
JB
4912002-09-16 Joel Brobecker <brobecker@gnat.com>
492
493 * osfsolib.c: Remove file, replaced by solib-osf.c.
494 * Makefile.in: Remove compilation rules for osfsolib.c.
495
1b2ef1b6
DC
4962002-09-16 David Carlton <carlton@math.stanford.edu>
497
498 * cp-valprint.c (cp_print_class_method): Correct args to
499 check_stub_method_group.
500
928e48af
CV
5012002-09-16 Corinna Vinschen <vinschen@redhat.com>
502
503 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
504 `set architecture'. Unify naming convention of functions.
505 (h8300_skip_prologue): Improve prologue analysis.
506 (h8300_push_arguments): Rewritten to more closely match GCC's
507 bizarre argument-passing behavior, along with the comment describing
508 said behavior.
509 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
510 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
511 sim, remote-e7000.c, remote-hms.c and remote.c
512
5e3397bb
MK
5132002-09-15 Mark Kettenis <kettenis@gnu.org>
514
515 * i386-tdep.c (gdb_print_insn_i386): Removed.
516 (i386_print_insn): New function.
517 (i386_gdbarch_init): Set print_insn to i386_print_insns.
518 (_initialize_i386_tdep): Don't initialize tm_print_insn and
519 tm_print_insn_info.
520
f710f4fc
MK
5212002-09-14 Mark Kettenis <kettenis@gnu.org>
522
523 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
524 zero.
525
db54fef4
CV
5262002-09-14 Corinna Vinschen <vinschen@redhat.com>
527
528 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
529 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
530 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
531
2becadee
CF
5322002-09-13 Christopher Faylor <cgf@redhat.com>
533
534 * win32-nat.c (child_create_inferior): Honor 'tty' command.
535
de17c821
DJ
5362002-09-13 Daniel Jacobowitz <drow@mvista.com>
537
538 * gdbtypes.c (check_stub_method): Make static.
539 (check_stub_method_group): New function.
540 * gdbtypes.h: Update prototypes.
541 * cp-support.c: New file.
542 * cp-support.h: New file.
543
544 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
545 (update_method_name_from_physname): New function.
546 (read_member_functions): Correct method names for operators
547 and v3 constructors/destructors. Separate v2 constructors and
548 destructors.
549 * Makefile.in (stabsread.o): Update dependencies.
550 (SFILES): Add cp-support.c.
551 (COMMON_OBS): Add cp-support.o.
552 (cp_support_h, cp-support.o): Add.
553
554 * cp-valprint.c (cp_print_class_method): Call
555 check_stub_method_group instead of check_stub_method. Remove
556 extraneous QUITs.
557 * p-valprint.c (pascal_object_print_class_method): Likewise.
558 * valops.c (search_struct_method): Likewise.
559 (find_method_list, value_struct_elt_for_reference): Likewise.
560
e76cff22
AC
5612002-09-13 Andrew Cagney <cagney@redhat.com>
562
563 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
564 * gdbarch.h, gdbarch.c: Regenerate.
565
905abb3f
AC
5662002-09-13 Andrew Cagney <ac131313@redhat.com>
567
568 * frame.c (find_saved_register): Delete function.
569 * frame.h (find_saved_register): Delete declaration.
570 Fix PR gdb/631.
571
64159455
AC
572Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
573
574 * mips-tdep.c (read_next_frame_reg): Re-hack using
575 frame_register_unwind.
576
795e1e11
AC
577Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
578
579 * mips-tdep.c (mips_get_saved_register): Re-hack using
580 frame_register_unwind.
581
5720643c
JB
5822002-09-12 Joel Brobecker <brobecker@gnat.com>
583
584 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
585 vector. Will be useful for Interix.
586 * gdbarch.h, gdbarch.c: Regenerate.
587
588 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
589 name of the malloc function by NAME_OF_MALLOC.
590
3bada2a2
JB
5912002-09-12 Joel Brobecker <brobecker@gnat.com>
592
593 * value.h (find_function_in_inferior): Add const keyword to
594 one of the parameters. Allows us to invoke this function with
595 a const char *.
596 * valops.c (find_function_in_inferior): Likewise.
597
3db26b01
JB
5982002-09-12 Joel Brobecker <brobecker@gnat.com>
599
600 * exec.c (xfer_memory): Fix compilation warning with old versions
601 of GCC.
602 * tracepoint.c (trace_find_tracepoint_command): Likewise.
603
17c5ed2c
DC
6042002-09-12 David Carlton <carlton@math.stanford.edu>
605
606 * symtab.h: Run through gdb_indent.h.
607 Add 2002 to Copyright year list.
608
ecd1107e
AM
6092002-09-12 Alan Modra <amodra@bigpond.net.au>
610
611 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
612 mach constants.
613 * MAINTAINERS: Add myself to write after approval list.
614
e64f66d1
JB
6152002-09-11 J. Brobecker <brobecker@gnat.com>
616
617 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
618
f9395794
JB
6192002-09-11 J. Brobecker <brobecker@gnat.com>
620
621 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
622 Interix.
623
1a303dec
MS
6242002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
625
626 * procfs.c (do_detach): Clear current signal, not just fault.
627 Corrects problem with breakpoint trap signal leaking to detached
628 process on Tru64.
629
c0219d42
MS
6302002-09-10 Michael Snyder <msnyder@redhat.com>
631
632 * buildsym.c (finish_block): Protect against null pointer.
633
9d84ac84
AC
6342002-09-10 Andrew Cagney <cagney@redhat.com>
635
636 * infcmd.c (default_print_registers_info): Send all output to
637 ``file'' instead of ``gdb_stdout''.
638
77d8f2b4
MS
6392002-09-10 Michael Snyder <msnyder@redhat.com>
640
641 * mips-tdep.c (mips_extract_struct_value_address): Make val a
642 LONGEST, and use signed register read (addresses are sign-
643 extended for mips).
644
99656a61
SC
6452002-09-10 Stephane Carrez <stcarrez@nerim.fr>
646
647 * event-loop.c (gdb_do_one_event): Make public.
648 * event-loop.h (gdb_do_one_event): Declare.
649
da12f4d8
JL
6502002-09-10 Jeff Law <law@redhat.com>
651
652 * infttrace.c (child_resume): Simplify and rework to avoid
653 TT_PROC_CONTINUE.
654
d0aee0c4
FF
6552002-09-09 Fred Fish <fnf@intrinsity.com>
656
657 * printcmd.c (print_scalar_formatted): "len" is the number of
658 target bytes, NOT the number of target bits.
659
7cb3ec5e
EZ
6602002-09-09 Elena Zannoni <ezannoni@redhat.com>
661
662 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
663 * top.c (init_main): Set rl_terminal_name.
664
4dc81987
AS
6652002-09-08 Aidan Skinner <aidan@velvet.net>
666
667 * ada-lang.c (ada_array_bound, ada_type_match,
668 _initialize_ada_language): Fix K&R definitions.
669 * ada-tasks.c (get_current_task): Fix K&R definitions.
670 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
671
842330b4
CF
6722002-09-07 Christopher Faylor <cgf@redhat.com>
673
674 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
675 Add XP.
676
43156d82
MK
6772002-09-06 Mark Kettenis <kettenis@gnu.org>
678
66da5fd8
MK
679 * i386-tdep.c (i386_register_virtual_type,
680 i386_register_convertible, i386_register_convert_to_virtual,
681 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
682 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
683 (i386_gdbarch_init): Fix comment. Add comments on calls that set
684 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
685 Don't set push_arguments twice.
686
4b218c18
MK
687 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
688 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
689 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
690 sigtramp_end to NULL.
691 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
692 defines.
693 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
694
4cc314d5
MK
695 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
696 whitespace.
697
43156d82
MK
698 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
699 * gdbarch.h, gdbarch.c: Re-generate.
700 * blockframe.c (find_pc_sect_partial_function): Convert to use
701 SIGTRAMP_START_P predicate.
702
6672060b
MS
7032002-09-05 Michael Snyder <msnyder@redhat.com>
704
a90c3637
MS
705 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
706 generic_dummy_frame method and old method. Also distinguish
707 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 708 (arm_extract_return_value): Use new regcache method.
a90c3637 709
6672060b
MS
710 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
711 adjustment that doesn't conform to the ABI.
712 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
713 saved regcache, not from current regcache.
714
299ffc64
AC
7152002-09-05 Andrew Cagney <ac131313@redhat.com>
716
717 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
718 * README: Update.
719
a3a2ee65
JT
7202002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
721
722 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
723 if arm_apcs_32 is false.
724
2bc7eea9
AC
7252002-09-04 Andrew Cagney <ac131313@redhat.com>
726
727 GDB 5.3 branch created.
728
8a55a7c5
TR
7292002-09-03 Theodore A. Roth <troth@verinet.com>
730
731 * gdb/avr-tdep.c (avr_gdbarch_init): Use
732 generic_unwind_get_saved_register.
733
e26fb1d7
DC
7342002-09-03 David Carlton <carlton@math.stanford.edu>
735
736 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
737 argument (PR gdb/653). Update call to smash_to_method_type.
738 (read_structure_scope): Update call to dwarf2_add_member_fn.
739
30d52491
ML
7402002-09-03 Michal Ludvig <mludvig@suse.cz>
741
742 * x86-64-linux-tdep.c: Include gdb_string.h
743 * x86-64-linux-nat.c: Ditto.
744
06891d83
JT
7452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
746
747 * ada-exp.y (yyname, yyrule): Remap global variables that appear
748 when YYDEBUG is set to 1.
749 * c-exp.y: Likewise.
750 * f-exp.y: Likewise.
751 * jv-exp.y: Likewise.
752 * m2-exp.y: Likewise.
753 * p-exp.y: Likewise.
754
7d400e77
JT
7552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
756
757 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
758 dependency list.
759 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
760 solib_svr4_fetch_link_map_offsets to
761 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
762 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
763 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
764 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
765 solib-svr4.o, and solib-legacy.o.
766 * config/i386/tm-nbsd.h: Include solib.h.
767
704a27c4
JT
7682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
769
770 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
771 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
772 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
773 comment noting that this needs its own target configuration.
774 * config/i386/nbsd.mt: New file.
775 * config/i386/nbsdaout.mt: Remove.
776 * config/i386/nbsdelf.mt: Ditto.
777 * config/i386/tm-nbsdaout.h: Ditto.
778
d66198e1
JT
7792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
780
781 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
782 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
783 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
784 tdep->sigtramp_end.
785 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
786 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
787 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
788
3cac699e
JT
7892002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
790
791 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
792 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
793 * i386-tdep.h (i386bsd_init_abi): New prototype.
794 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
795 function declaration.
796 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
797 for NetBSD-a.out or NetBSD-ELF.
798 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
799 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
800 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
801 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
802 and nbsd-tdep.h.
803 (i386nbsd_pc_in_sigtramp): New function.
804 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
805 i386nbsd_pc_in_sigtramp.
806 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
807 and i386nbsdelf_init_abi OS ABI handlers.
808 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
809 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
810
7010ca0a
MK
8112002-09-02 Mark Kettenis <kettenis@gnu.org>
812
813 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
814 registers if the target really has them.
815
6dd93b72
JT
8162002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
817
818 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
819 than nbsd-tdep.h.
820
2ca8ae21
JT
8212002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
822
823 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
824 list.
825 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
826 (alphanbsd_skip_sigtramp_frame): New functions.
827 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
828 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
829 to alphanbsd_sigcontext_addr.
830
3d9b49b0
JT
8312002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
832
833 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
834 list.
835 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
836 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
837 nbsd_pc_in_sigtramp.
838 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
839 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
840 * nbsd-tdep.c: Include gdb_string.h.
841 (nbsd_pc_in_sigtramp): New function.
842 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
843 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
844 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
845 ppcnbsd_pc_in_sigtramp.
846 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
847 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
848 shnbsd_pc_in_sigtramp.
849 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
850 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
851 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
852
c860120c
PM
8532002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
854
855 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
856 watchpoints to NULL.
857 (insert_breakpoints): set val field of watchpoints if NULL.
858
859
c7612d53
JB
8602002-08-29 Jim Blandy <jimb@redhat.com>
861
862 * symtab.c (lookup_symbol_aux): In the cases where we find a
863 minimal symbol of an appropriate name and use its address to
864 select a symtab to read and search, use `name' (as passed to us)
865 as the demangled name when searching the symtab's global and
866 static blocks, not the minsym's name.
867
66609862
KS
8682002-08-29 Keith Seitz <keiths@redhat.com>
869
870 * stack.c (print_frame_info_base): Always set current_source_symtab
871 and current_source_line.
872
151fefe2
JB
8732002-08-29 Donn Terry <donnte@microsoft.com>
874
875 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
876
bfb3754e
KS
8772002-08-28 Keith Seitz <keiths@redhat.com>
878
879 * stack.c (select_frame): Add FIXME concerning selected-frame
880 events.
881 (select_frame_command): Send selected-frame-level-changed
882 event notification, but only if the level actually changed.
883 (up_silently_base): Add selected-frame-level-changed event
884 notification.
885 (down_silently_base): Likewise.
886
e822a2a0
AC
8872002-08-28 Andrew Cagney <ac131313@redhat.com>
888
889 * Makefile.in: Update dependencies for all gdb/*.c files.
890
309367d4
TT
8912002-08-27 Tom Tromey <tromey@redhat.com>
892
893 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
894 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
895 Update dependencies.
896 * i387-tdep.c: Include gdb_string.h.
897 * osabi.c: Likewise.
898 * i386-linux-nat.c: Likewise.
899 * lin-lwp.c: Likewise.
900 * ax-gdb.c: Likewise.
901 * signals/signals.c: Likewise.
902 * jv-valprint.c: Likewise.
903 * p-lang.c: Likewise.
904 * c-valprint.c: Likewise.
905 * cp-abi.c: Likewise.
906
e1507482
EZ
9072002-08-27 Elena Zannoni <ezannoni@redhat.com>
908
909 * cli/cli-script.h (copy_command_lines): Export.
910 * breakpoint.c: Include cli/cli-script.h.
911 * Makefile.in (breakpoint.o): Update dependencies.
912
c6510018
MS
9132002-08-26 Michael Snyder <msnyder@redhat.com>
914
915 * breakpoint.c (insert_breakpoints): Protect all references
916 to 'process_warning'. Shorten long lines.
917
c2b8ed2c
MS
9182002-08-26 Joel Brobecker <brobecker@gnat.com>
919
920 * cli/cli-script.c (copy_command_lines): New function.
921 * defs.h (copy_command_lines): Export.
922 * testsuite/gdb.base/commands.exp: New tests for commands
923 attached to a temporary breakpoint, and for commands that
924 delete the breakpoint they are attached to.
925
9262002-08-26 Michael Snyder <msnyder@redhat.com>
927
928 * breakpoint.c (bpstat_stop_status): Instead of copying the
929 pointer to the breakpoint commands struct, make a new copy
930 of the struct and point to that.
931 (bpstat_clear): Free the commands struct.
932 (bpstat_clear_actions): Free the commands struct.
933 (bpstat_do_actions): Free the command actions. Also execute
934 the local cleanups, instead of deleting them.
935 (delete_breakpoint): Leave the commands field of the bpstat
936 chain alone -- it will be freed later.
937
64b84175
KB
9382002-08-26 Kevin Buettner <kevinb@redhat.com>
939
940 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
941 deleted in 2002-08-20 commit. This function is still used by
942 ppc-linux-nat.c.
943
55970da6
KS
9442002-08-26 Keith Seitz <keiths@redhat.com>
945
946 * gdb-events.sh: Add selected-frame-level-changed event.
947 * gdb-events.c: Regenerated.
948 * gdb-events.h: Regenerated.
949
a790ad35
SC
9502002-08-26 Stephane Carrez <stcarrez@nerim.fr>
951
952 Fix PR gdb/393:
953 * inflow.c (terminal_save_ours): New function to save terminal
954 settings.
955 * inferior.h (terminal_save_ours): Declare.
956 * target.c (debug_to_terminal_save_ours): New function.
957 (cleanup_target): Defaults to_terminal_save_ours.
958 (update_current_target): Inherit to_terminal_save_ours.
959 (setup_target_debug): Set to_terminal_save_ours.
960 * target.h (target_terminal_save_ours): New to save terminal settings.
961 (target_ops): New member to_terminal_save_ours.
962 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
963 * hpux-thread.c (init_hpux_thread_ops): Likewise.
964 * inftarg.c (init_child_ops): Likewise.
965 * m3-nat.c (init_m3_ops): Likewise.
966 * procfs.c (init_procfs_ops): Likewise.
967 * wince.c (init_child_ops): Likewise.
968 * win32-nat.c (init_child_ops): Likewise.
969 * sol-thread.c (init_sol_thread_ops): Likewise.
970
c00dcbe9
MK
9712002-08-26 Mark Kettenis <kettenis@gnu.org>
972
3d7f4f49
MK
973 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
974 use regcache_* functions.
975 (i386_gdbarch_init): Set store_return_value instead of
976 deprecated_store_return_value.
977
c00dcbe9
MK
978 * regcache.c (regcache_raw_write_signed,
979 regcache_raw_write_unsigned): New functions.
980 * regcache.h (regcache_raw_write_signed,
981 regcache_raw_write_unsigned): New prototypes.
982
0e0d15ca
AC
9832002-08-25 Andrew Cagney <ac131313@redhat.com>
984
985 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
986 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
987 source file dependencies. Cleanup corresponding generator rules.
988
d3b22ed5
AC
9892002-08-25 Andrew Cagney <ac131313@redhat.com>
990
991 * regcache.h (register_offset_hack): Declare.
992 (regcache_cooked_read_using_offset_hack): Declare.
993 (regcache_cooked_write_using_offset_hack): Declare.
994
995 * regcache.c (register_offset_hack): New function.
996 (regcache_cooked_read_using_offset_hack): New function.
997 (regcache_cooked_write_using_offset_hack): New function.
998 (regcache_dump): Check that the registers, according to their
999 offset, are packed hard against each other.
1000 (cooked_xfer_using_offset_hack): New function.
1001
bb425013
AC
10022002-08-25 Andrew Cagney <ac131313@redhat.com>
1003
1004 * regcache.c (struct regcache_descr): Add field register_type.
1005 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1006 in as a parameter
1007 (init_regcache_descr): Initialize register_type. Pass the descr
1008 to init_legacy_regcache_descr. Use register_type instead of
1009 REGISTER_VIRTUAL_TYPE.
1010 (register_type): New function.
1011 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1012 * regcache.h (register_type): Declare.
1013
d0403e00
AC
10142002-08-25 Andrew Cagney <ac131313@redhat.com>
1015
1016 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1017 instead of deprecated_store_return_value. Fix fallout from
1018 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1019
0ed04cce
AC
10202002-08-25 Andrew Cagney <ac131313@redhat.com>
1021
1022 * regcache.c (max_register_size): New function.
1023 (init_legacy_regcache_descr): Ensure that max_register_size is
1024 large enough for REGISTER_VIRTUAL_SIZE.
1025 * regcache.h (max_register_size): Declare.
1026
46d79c04
AC
10272002-08-24 Andrew Cagney <ac131313@redhat.com>
1028
1029 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1030 store_return_value.
1031 (e500_extract_return_value): Change type of valbuf pointer to
1032 void.
1033
853c7bd0
MK
10342002-08-24 Mark Kettenis <kettenis@gnu.org>
1035
cd87e769
MK
1036 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1037 workaround.
1038
853c7bd0
MK
1039 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1040 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1041 long long) to prevent compiler warning on 64-bit systems.
1042
ebba8386
AC
10432002-08-23 Andrew Cagney <cagney@redhat.com>
1044
1045 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1046 (DEPRECATED_STORE_RETURN_VALUE): New method.
1047 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1048 * gdbarch.h, gdbarch.c: Re-generate.
1049
1050 * values.c (set_return_value): Pass current_regcache to
1051 STORE_RETURN_VALUE.
1052 * arch-utils.h (legacy_store_return_value): Declare.
1053 * arch-utils.c (legacy_store_return_value): New function.
1054 (legacy_extract_return_value): Update parameters.
1055
1056 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1057 STORE_RETURN_VALUE.
1058 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1059 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1060 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1061 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1062 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1063 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1064 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1065 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1066 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1067 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1068
1069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1070 * i386-tdep.c (i386_extract_return_value): Update.
1071 * arch-utils.c (legacy_extract_return_value): Update.
1072 * frv-tdep.c (frv_gdbarch_init): Update.
1073 * cris-tdep.c (cris_gdbarch_init): Update.
1074 * d10v-tdep.c (d10v_gdbarch_init): Update.
1075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1076 * m68k-tdep.c (m68k_gdbarch_init): Update.
1077 * mcore-tdep.c (mcore_gdbarch_init): Update.
1078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1079 * s390-tdep.c (s390_gdbarch_init): Update.
1080 * sparc-tdep.c (sparc_gdbarch_init): Update.
1081 * sh-tdep.c (sh_gdbarch_init): Update.
1082 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1083 * v850-tdep.c (v850_gdbarch_init): Update.
1084 * avr-tdep.c (avr_gdbarch_init): Update.
1085 * ia64-tdep.c (ia64_gdbarch_init): Update.
1086 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1087 * vax-tdep.c (vax_gdbarch_init): Update.
1088 * alpha-tdep.c (alpha_gdbarch_init): Update.
1089 * arm-tdep.c (arm_gdbarch_init): Update.
1090 * mips-tdep.c (mips_gdbarch_init): Update.
1091 * i386-tdep.c (i386_gdbarch_init): Update.
1092
5bd8c6d0
AC
10932002-08-23 Andrew Cagney <ac131313@redhat.com>
1094
1095 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1096 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1097
e73e1724
MK
10982002-08-24 Mark Kettenis <kettenis@gnu.org>
1099
1100 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1101 problems.
1102
3e6564e1
JB
11032002-08-23 Joel Brobecker <brobecker@gnat.com>
1104
1105 * infrun.c (handle_inferior_event): Move a comment outside of a
1106 function call, in order to avoid indent reformatting this part
1107 of the code in an unreadable way.
1108
81d0cc19
GS
11092002-08-23 Grace Sainsbury <graces@redhat.com>
1110
1111 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1112 when breakpoints fail. Move general breakpoint error messages to
1113 insert_breakpoints.
1114 * breakpoint.c (insert_breakpoints): Change warnings when
1115 breakpoints are nto inserted to specify the type. Remove call to
1116 memory_error when hardware breakpoints can't be inserted. Remove
1117 multiple calls to warning so all messages are sent to the user at
1118 once.
1119 (delete_breakpoints): Make insert error messsages more explicit.
1120
17574093
DJ
11212002-08-23 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1124 gdbserver/ChangeLog.
1125
8acc2935
MK
11262002-08-23 Mark Kettenis <kettenis@gnu.org>
1127
dfe01d39
MK
1128 * i386-tdep.c: Include "objfiles.h".
1129 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1130 skip_trampoline_code.
1131 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1132 (CPLUS_MARKER): Define to '.'.
1133
8acc2935
MK
1134 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1135 member.
1136 (linux_corefile_thread_callback): Increase args->num_notes.
1137 (linux_make_note_section): Initialize thread_args.num_notes, and
1138 use it to determine whether notes for any threads were created.
1139
151fefe2 11402002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1141
1142 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1143 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1144 and PCUNKILL.
1145 (write_with_trace): Conditionalize out the switch branch handling
1146 PCSHOLD if the corresponding macro is not defined. Likewise for
1147 PRSABORT and PRSTOP.
1148 This change will be needed by the Interix port.
1149
e1507482
EZ
11502002-08-22 Elena Zannoni <ezannoni@redhat.com>
1151
1152 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1153 write_register wherever possible instead of manipulating the
1154 register bytes directly.
1155 Assign VALUE_CONTENTS to a variable and use that.
1156 The GPR numbers are now dependent on the architecture.
1157
96ff0de4
EZ
11582002-08-22 Elena Zannoni <ezannoni@redhat.com>
1159
1160 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1161 ev_offset fields.
1162 (skip_prologue): Add support for BookE/e500 instructions.
1163 (e500_extract_return_value): New function.
1164 (frame_get_saved_regs): Add support for saving ev registers and
1165 pseudo gpr's.
1166 (e500_store_return_value): New function.
1167 (rs6000_gdbarch_init): Move up default intializations of
1168 deprecated_extract_return_value and store_return_value. Overwrite
1169 init of store_return_value with e500 specific version.
1170 Set extract_return_value for e500.
1171
fbefca5b
EZ
11722002-08-22 Elena Zannoni <ezannoni@redhat.com>
1173
1174 * blockframe.c (generic_call_dummy_register_unwind): Use
1175 regcache_cooked_read to catch cases in which the variable is
1176 stored in a pseudo register.
1177
4d210288
AC
11782002-08-22 Andrew Cagney <cagney@redhat.com>
1179
1180 * NEWS: Mention that the i960 has been made obsolete.
1181 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1182 i960-tdep.c
1183 (remote-nrom.o): Obsolete target.
1184 (remote-nindy.o, i960-tdep.o): Ditto.
1185 * remote-nrom.c: Make file obsolete.
1186 * remote-nindy.c, remote-vx960.c: Ditto.
1187 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1188 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1189 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1190 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1191 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1192 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1193 i960-*-vxworks* obsolete.
1194 * MAINTAINERS: Note that the i960 is obsolete.
1195
6c0c456d
CV
11962002-08-21 Corinna Vinschen <vinschen@redhat.com
1197
1198 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1199 detach to allow reinitialization.
1200
9f9d12b3
AC
12012002-08-22 Andrew Cagney <ac131313@redhat.com>
1202
1203 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1204 attempt).
1205
ebeb39fe
JB
12062002-08-22 Jim Blandy <jimb@redhat.com>
1207
1208 * coffread.c (coff_symfile_read): Don't try to read the line
1209 number table from disk if the image file doesn't have a symbol
1210 table; we'll never actually look at the info anyway, and Windows
1211 ships DLL's with bogus file offsets for the line number data.
1212
5bf1c677
EZ
12132002-08-21 Elena Zannoni <ezannoni@redhat.com>
1214
1215 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1216 an e500 executable.
1217
71b8ef93
MS
12182002-08-21 Michael Snyder <msnyder@redhat.com>
1219
1220 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1221 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1222 (DEFAULT_MIPS_TYPE): Delete unused macro.
1223 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1224 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1225
d174216d
JB
12262002-08-21 Jim Blandy <jimb@redhat.com>
1227
1228 * valops.c (value_cast): Simplify and correct logic for doing a
1229 static cast from a pointer to a base class to a pointer to a
1230 derived class.
1231
0ab7a791
AC
12322002-08-21 Andrew Cagney <ac131313@redhat.com>
1233
1234 * infcmd.c (default_print_registers_info): Replace
1235 do_registers_info.
1236 (registers_info): Use gdbarch_print_registers_info instead of
1237 DO_REGISTERS_INFO.
1238 * inferior.h (default_print_registers_info): Replace
1239 do_registers_info.
1240 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1241 (DO_REGISTERS_INFO): Change to a predicate function.
1242 * gdbarch.h, gdbarch.c: Regenerate.
1243
e23792cc
KS
12442002-08-21 Keith Seitz <keiths@redhat.com>
1245
1246 * gdb-events.sh: Add target-changed event.
1247 * gdb-events.c: Regenerated.
1248 * gdb-events.c: Regenerated.
1249 * valops.c (value_assign): Add target-changed event notification
1250 to inlval_register, lval_memory, and lval_reg_frame_relative.
1251
9fb14e79
JB
12522002-08-21 Joel Brobecker <brobecker@gnat.com>
1253
1254 * NEWS: Add an entry regarding the improvement of the next/step
1255 operation on Alpha Tru64 multi-processor machines.
1256
6d39a69f
AC
12572002-08-21 Andrew Cagney <ac131313@redhat.com>
1258
72acd513
AC
1259 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1260 directores.
342af04b 1261 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1262 * Makefile.in (install-gdbtk): Move to install section.
1263 (rdi-share/libangsd.a): Move to end of file.
1264
fa5f27c7
AC
12652002-08-19 Andrew Cagney <ac131313@redhat.com>
1266
1267 * frame.c (frame_register_unwind): When a register, set addrp to
1268 the register's byte.
1269
5a89d8aa
MS
12702002-08-20 Michael Snyder <msnyder@redhat.com>
1271
1272 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1273 used locally, so move them from the target machine header to here.
1274 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1275 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1276 Make static.
1277 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1278
822e978b
AC
12792002-08-20 Andrew Cagney <cagney@redhat.com>
1280
1281 * NEWS: Mention that the Apollo line was made obsolete.
1282 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1283 m68*-hp-hpux* obsolete.
1284 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1285 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1286 * buildsym.c (make_blockvector): Make static.
1287 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1288 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1289 (ALLDEPFILES): Remove dstread.c.
1290 (dstread.o): Obsolete make rule.
1291 * dstread.c: Makefile obsolete.
1292 * dst.h: Ditto.
1293 * config/m68k/hp300hpux.mt: Ditto.
1294 * config/m68k/hp300hpux.mh: Ditto.
1295 * config/m68k/hp300bsd.mt: Ditto.
1296 * config/m68k/hp300bsd.mh: Ditto.
1297 * config/m68k/apollo68b.mt: Ditto.
1298 * config/m68k/apollo68v.mh: Ditto.
1299 * config/m68k/apollo68b.mh: Ditto.
1300
e41b17f0
MS
13012002-08-20 Michael Snyder <msnyder@redhat.com>
1302
1303 * mips-tdep.c (mips_in_return_stub): Make static.
1304 (mips_gdbarch_init): Set in_solib_return_trampoline.
1305 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1306
d50355b6
MS
13072002-08-20 Michael Snyder <msnyder@redhat.com>
1308
1309 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1310 * gdbarch.c, gdbarch.h: Regenerate.
1311 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1312 Add.
1313 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1314
757a7cc6
MS
13152002-08-20 Michael Snyder <msnyder@redhat.com>
1316
1317 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1318 (mips_gdbarch_init): Set skip_trampoline_code,
1319 in_solib_call_trampoline.
1320 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1321 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1322
c8001721
EZ
13232002-08-20 Elena Zannoni <ezannoni@redhat.com>
1324
1325 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1326
1327 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1328 vector type for ev registers.
1329 (e500_pseudo_register_read): New function.
1330 (e500_pseudo_register_write): New function.
1331 (e500_dwarf2_reg_to_regnum): New function.
1332 (PPC_UISA_NOFP_SPRS): New macro.
1333 (PPC_EV_REGS): New macro.
1334 (PPC_GPRS_PSEUDO_REGS): New macro.
1335 (registers_e500): New register set for e500.
1336 (variants): Add e500 variant.
1337 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1338 before setting architectural dependent variations. Initialize ev
1339 registers numbers. Add case for e500 architecture. Set the
1340 number of pseudo registers.
1341
64366f1c
EZ
13422002-08-20 Elena Zannoni <ezannoni@redhat.com>
1343
1344 * rs6000-tdep.c: Clean up comments.
1345
7e78f0ca
AC
13462002-08-20 Andrew Cagney <cagney@redhat.com>
1347
1348 * h8300-tdep.c: Re-indent file.
1349
697f7479
JB
13502002-08-20 Jim Blandy <jimb@redhat.com>
1351
1352 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1353 default for this.
697f7479 1354
e86ae29f
KS
13552002-08-20 Keith Seitz <keiths@redhat.com>
1356
1357 * breakpoints.c (watch_command_1): Use internal breakpoint
1358 when setting a watchpoint_scope breakpoint.
1359
216b504f
EZ
13602002-08-20 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1363 (build_builtin_type_vec64i): Ditto.
1364 (build_builtin_type_vec128): Ditto.
1365 (build_builtin_type_vec128i): Ditto.
1366
f7ab6ec6
MS
13672002-08-19 Michael Snyder <msnyder@redhat.com>
1368
1369 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1370 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1371 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1372 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1373 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1374 CALL_DUMMY_ADDRESS): Delete.
1375 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1376 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1377 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1378 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1379 push_return_address.
1380 (mips_register_raw_size, mips_eabi_use_struct_convention,
1381 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1382 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1383 mips_init_extra_frame_info, mips_eabi_push_arguments,
1384 mips_n32n64_push_arguments, mips_push_return_address,
1385 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1386 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1387
b5d1566e
MS
13882002-08-19 Michael Snyder <msnyder@redhat.com>
1389
1390 * mips-tdep.c (mips_frame_num_args): New function.
1391 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1392 frame_saved_pc, frame_args_address, frame_locals_address,
1393 frame_num_args, and frame_args_skip.
1394 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1395 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1396 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1397 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1398
2f1488ce
MS
13992002-08-20 Michael Snyder <msnyder@redhat.com>
1400
1401 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1402 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1403 * mips-tdep.c (mips_store_struct_return): New function.
1404 (mips_extract_struct_value_address): New function.
1405 (mips_gdbarch_init): Set store_struct_return and
1406 extract_struct_value_address.
1407
41ff2da1
DC
14082002-08-20 David Carlton <carlton@math.stanford.edu>
1409
1410 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1411 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1412 (read_file_scope): Check that line_header is nonzero before
1413 decoding macro information.
1414
e5451d58
MK
14152002-08-20 Mark Kettenis <kettenis@gnu.org>
1416
1417 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1418 flag the general-purpose registers as floating-point on targets
1419 that don't support the floating-point registers.
1420
4a6daafa
EZ
14212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1422
1423 * rs6000-tdep.c (altivec_register_p): Delete.
1424 (rs6000_do_altivec_registers): Delete.
1425 (rs6000_altivec_registers_info): Delete.
1426 (rs6000_do_registers_info): Delete.
1427 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1428 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1429
ab4327e0
EZ
14302002-08-20 Elena Zannoni <ezannoni@redhat.com>
1431
1432 * infcmd.c (do_registers_info): Print vector registers in hex
1433 format only.
1434 (print_vector_info): Check that printing registers
1435 makes sense.
1436 (print_float_info): Ditto.
1437
cb1d2653
AC
14382002-08-20 Andrew Cagney <ac131313@redhat.com>
1439
1440 * mips-tdep.c (mips_gdbarch_init): Update.
1441 (mips_o32_extract_return_value): Rewrite.
1442 (mips_o32_store_return_value): Rewrite.
1443 (mips_o32_xfer_return_value): New function.
1444 (mips_xfer_register): Tweak debug print message. Allow for
1445 buf_offset when dumping the value transfered.
1446
dfc3d9b2
AC
14472002-08-20 Andrew Cagney <ac131313@redhat.com>
1448
1449 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1450 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1451 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1452 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1453 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1454
7807aa61
MS
14552002-08-14 Michael Snyder <msnyder@redhat.com>
1456
1457 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1458
489461e2
EZ
14592002-08-19 Elena Zannoni <ezannoni@redhat.com>
1460
1461 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1462 register.
1463 (P): New macro to define a register as a pseudo register.
1464 (R, R4, R8, R16, FR32, R64, R0): Updated.
1465 (struct variant): Add new fields for number of pseudo registers
1466 and number of total registers.
1467 (tot_num_registers): New macro replacing....
1468 (num_registers): ...deleted macro.
1469 (num_registers): New function.
1470 (num_pseudo_registers): New function.
1471 (variants): Update all variants to intialize new fields correctly.
1472 Postpone initialization of number of pseudo regs and real regs.
1473 (init_variants): New function.
1474 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1475 registers offsets.
1476
fcaffe4c
DC
14772002-08-19 David Carlton <carlton@math.stanford.edu>
1478
2c2738a0
DC
1479 * valops.c (search_struct_field): Change error message to treat
1480 return value of 0 from value_static_field as meaning that field is
1481 optimized out.
1482 (value_struct_elt_for_reference): Ditto.
1483 * values.c (value_static_field): Treat an unresolved location the
1484 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1485 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1486 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1487 * MAINTAINERS: Add self to Write After Approval list.
1488
88658117
AC
14892002-08-19 Andrew Cagney <ac131313@redhat.com>
1490
1491 * mips-tdep.c (mips_xfer_register): New function.
1492 (mips_n32n64_extract_return_value): Rewrite.
1493 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1494 instead of deprecated_extract_return_value.
1495
21283beb
EZ
14962002-08-19 Elena Zannoni <ezannoni@redhat.com>
1497
1498 * rs6000-tdep.c (TDEP): Delete macro.
1499 (branch_dest): Replace use of TDEP macro with its body.
1500 (rs6000_pop_frame): Ditto.
1501 (rs6000_push_arguments): Ditto.
1502 (rs6000_skip_trampoline_code): Ditto.
1503 (rs6000_frame_saved_pc): Ditto.
1504 (rs6000_frame_chain): Ditto.
1505 (rs6000_register_name): Ditto.
1506 (rs6000_register_byte): Ditto.
1507 (rs6000_register_raw_size): Ditto.
1508 (rs6000_register_virtual_type): Ditto.
1509 (rs6000_register_convertible): Ditto.
1510 (rs6000_convert_from_func_ptr_addr): Ditto.
1511
bf072999
DJ
15122002-08-19 Daniel Jacobowitz <drow@mvista.com>
1513
1514 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1515 conditionally.
1516 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1517 MIPS_LINUX_JB_ELEMENT_SIZE.
1518 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1519 for MAX_REGISTER_RAW_SIZE arrays.
1520 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1521 MIPS_LINUX_JB_ELEMENT_SIZE.
1522
9b949a49
PM
15232002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1524
1525 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1526
6d3e79c6
AS
15272002-08-19 Aidan Skinner <aidan@velvet.net>
1528
1529 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1530 ada-valprint.c ada-tasks.c.
1531 (YYFILES): Add ada-exp.y.
1532 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1533 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1534 (ada-exp.tab.o): New target.
1535
06c0b04e
AC
15362002-08-18 Andrew Cagney <ac131313@redhat.com>
1537
1538 * regcache.c (regcache_xfer_part): New function.
1539 (regcache_raw_read_part): New function.
1540 (regcache_raw_write_part): New function.
1541 (regcache_cooked_read_part): New function.
1542 (regcache_cooked_write_part): New function.
1543 * regcache.h (regcache_raw_read_part): Declare.
1544 (regcache_raw_write_part): Declare.
1545 (regcache_cooked_read_part): Declare.
1546 (regcache_cooked_write_part): Declare.
1547
92d1e331
DJ
15482002-08-18 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * remote.c (remote_open_1): Add async_p.
1551 (remote_async_open_1): Delete.
1552 (open_remote_target): Delete.
1553 (remote_open, extended_remote_open): Update calls to remote_open_1.
1554 (remote_async_open, extended_remote_async_open): Call
1555 remote_open_1 instead of remote_async_open_1.
1556
247055de
MK
15572002-08-19 Mark Kettenis <kettenis@gnu.org>
1558
1559 * blockframe.c: Fix a few coding standard violations.
1560
641eda39
MK
15612002-08-19 Mark Kettenis <kettenis@gnu.org>
1562
0b717710
MK
1563 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1564 here from ...
1565 * config/i386/tm-i386sco5.h: ... here. File removed.
1566 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1567
26d28e12 1568 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1569 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1570 (TM_FILE): Set to tm-i386.h.
1571 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1572 * config/i386/tm-i386v.h: Remove file.
1573 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1574 instead of "i386/tm-i386v.h".
1575 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1576 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1577 "i386/tm-i386v.h".
1578 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1579 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1580 "i386/tm-i386.h".
1581
d4e0bab4
MK
15822002-08-18 Mark Kettenis <kettenis@gnu.org>
1583
1584 * config/i386/nm-i386v.h: Add protection against
1585 multiple-inclusion.
1586 (i386_register_u_addr): Remove prototype.
1587 (register_u_addr): New prototype.
1588 (REGISTER_U_ADDR): Redefine accordingly.
1589 * i386v-nat.c: Improve several comments.
1590 (i386_register_u_addr): Change signature and rename to
1591 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1592 ubase variable.
1593
46cac009
AC
15942002-08-18 Andrew Cagney <ac131313@redhat.com>
1595
1596 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1597 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1598 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1599 deprecated_extract_return_value.
1600 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1601 rename mips_o32o64_push_arguments.
1602 (mips_gdbarch_init): Update.
1603 (mips_extract_return_value): Delete.
1604 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1605 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1606 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1607 (mips_n32n64_extract_return_value): Clone
1608 mips_extract_return_value.
1609 (mips_store_return_value): Delete.
1610 (mips_o32_store_return_value): Clone mips_store_return_value.
1611 (mips_o64_store_return_value): Clone mips_store_return_value.
1612 (mips_eabi_store_return_value): Clone mips_store_return_value.
1613 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1614
d2e4a39e
AS
16152002-08-18 Aidan Skinner <aidan@velvet.net>
1616
0c30c098
AS
1617 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1618 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1619
16202002-08-18 Aidan Skinner <aidan@velvet.net>
1621
1622 * ada-lang.c: Run through gdb_indent.sh.
1623 * ada-lang.h: Run through gdb_indent.sh.
1624 * ada-tasks.c: Run through gdb_indent.sh.
1625 * ada-typeprint.c: Run through gdb_indent.sh.
1626 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1627
01fc4e33
AC
16282002-08-18 Andrew Cagney <ac131313@redhat.com>
1629
1630 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1631 ABI.
1632
d8ee244c
MK
16332002-08-18 Mark Kettenis <kettenis@gnu.org>
1634
c38d8261
MK
1635 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1636
222db64c
MK
1637 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1638 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1639
c2848c82
MK
1640 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1641 write_register_gen instead of write_register_bytes.
1642
d8ee244c
MK
1643 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1644 i[3456]-*-osf1mk* configurations have been made obsolete.
1645 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1646 i[3456]86-*-osf1mk* hosts obsolete.
1647 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1648 targets obsolete.
1649 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1650 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1651 config/i386/i386m3.mt, config/i386/nm-m3.h,
1652 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1653 config/i386/i386mk.mh, config/i386/i386mk.mt,
1654 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1655 obsolete.
1656 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1657 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1658 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1659
61d8d407
AC
16602002-08-18 Andrew Cagney <ac131313@redhat.com>
1661
1662 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1663 (hppa_value_returned_from_stack): Declare.
1664 (hppa_extract_return_value): Declare.
1665 * config/pa/hppa.mt: New file.
1666 * configure.tgt: Recognize hppa*-*-*.
1667 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1668
0c52bd59
MK
16692002-08-18 Mark Kettenis <kettenis@gnu.org>
1670
1671 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1672 comment.
1673
b5686e99
MK
16742002-08-17 Mark Kettenis <kettenis@gnu.org>
1675
1676 * top.c (gdb_rl_operate_and_get_next): Make sure
1677 operate-and-get-next functions correctly even when the history
1678 list is completely filled.
1679
c1bab85b
AC
16802002-08-18 Andrew Cagney <ac131313@redhat.com>
1681
1682 * MAINTAINERS (Target Instruction Set Architectures): Rename
1683 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1684 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1685 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1686 already listed under Host/Native.
1687
1688 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1689 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1690 mips*-*-*.
1691
32089c7c
AC
16922002-08-17 Andrew Cagney <ac131313@redhat.com>
1693
1694 * config/ia64/ia64.mt: New file.
1695 * config/alpha/alpha.mt: New file.
1696 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1697 ia64-linux-gnu. Mention that ia64-elf is broken.
1698 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1699
b4671f85
MK
17002002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1701
1702 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1703 generic_func_frame_valid instead of func_frame_valid.
1704
c8edd8b4
JB
17052002-08-16 Joel Brobecker <brobecker@gnat.com>
1706
1707 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1708 procfs appears to be broken when debugging on multi-processor
1709 machines. So enable software single stepping in order to avoid
1710 using the procfs interface to do next/step operations, using
1711 internal breakpoints instead.
1712
1713 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1714 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1715 make this pc address equal to the value it would have if the
1716 system stepping capability was used. Also set a new flag used
1717 to ensure that we don't readjust the PC one more time later.
1718
1719 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1720 address by DECR_PC_AFTER_BREAK when software single step is
1721 in use for this architecture, as this has already been taken
1722 care of in handle_inferior_event().
1723
238617f6
JB
17242002-08-16 Joel Brobecker <brobecker@gnat.com>
1725
1726 * infrun.c (handle_inferior_event): Minor reformatting, to make
1727 a rather long condition expression easier to read.
1728
541a7aac
AC
17292002-08-16 Andrew Cagney <ac131313@redhat.com>
1730
1731 * Makefile.in (gdbtk.o): Move to end of file.
1732 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1733 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1734 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1735 (gdbtk-wrapper.o, gdbres.o): Ditto.
1736
f92d4a7b
AC
17372002-08-16 Andrew Cagney <ac131313@redhat.com>
1738
1739 * Makefile.in (copying.o): Separate out compile rule.
1740 (hpux-thread.o, procfs.o, signals.o): Ditto.
1741 (v850ice.o, z8k-tdep.o): Ditto.
1742 (tui-file.o): Move to TUI section.
1743 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1744 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1745
1cce71eb
JB
17462002-08-16 Joel Brobecker <brobecker@gnat.com>
1747
1748 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1749 skip_trampoline_code, for better namespace-proofing.
1750
1751 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1752
0851f23d
JB
17532002-08-16 Joel Brobecker <brobecker@gnat.com>
1754
1755 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1756
f8d40ec8
JB
17572002-08-16 Joel Brobecker <brobecker@gnat.com>
1758
1759 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1760 signal, check whether we hit a breakpoint before checking for a
1761 single step breakpoint. Otherwise, GDB fails to notice that a
1762 breakpoint has been hit when stepping onto a breakpoint.
1763
63d022e0
KS
17642002-08-16 Keith Seitz <keiths@redhat.com>
1765
1766 * gdb-events.sh (clear_gdb_event_hooks): New function.
1767 * gdb-events.c: Regenerate.
1768 * gdb-events.h: Regenerate.
1769
6e31adb3
AC
17702002-08-16 Andrew Cagney <ac131313@redhat.com>
1771
1772 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1773 not_a_sw_breakpoint.
1774 * breakpoint.h (bpstat_stop_status): Add parameter names.
1775
c8189ed1
GS
17762002-08-16 Grace Sainsbury <graces@redhat.com>
1777
1778 * remote.c (remote_insert_hw_breakpoint)
1779 (remote_remove_hw_breakpoint): Fix calculation of length field
1780 for Z-packet.
1781
d05285fa
MS
17822002-08-15 Michael Snyder <msnyder@redhat.com>
1783
466d7106
MS
1784 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1785 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1786 (supply_fpregset): Ditto.
1787
d05285fa
MS
1788 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1789 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1790 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1791 (TARGET_READ_SP): Delete.
bf1f5b4c 1792 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1793 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1794 Delete.
1795 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1796 from macros to functions.
bf1f5b4c 1797
d05285fa
MS
1798 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1799 (mips_register_convertible, mips_register_convert_to_virtual,
1800 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1801 (mips_read_sp): New function.
1802 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1803 (mips_do_registers_info): Make static.
1804 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1805 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1806 (mips_register_convert_from_type, mips_register_convert_to_type):
1807 New functions.
1808 (mips_gdbarch_init): Set up function_start_offset,
1809 register_virtual_size, pc_in_sigtramp.
d05285fa 1810
e76f1f2e
AC
18112002-08-15 Andrew Cagney <ac131313@redhat.com>
1812
1813 * infcmd.c (vector_info): New function.
1814 (_initialize_infcmd): Add command "info vector".
1815 (print_vector_info): New function.
1816
1817 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1818 * gdbarch.h, gdbarch.c: Regenerate.
1819
4782dc19
AC
18202002-08-15 Andrew Cagney <ac131313@redhat.com>
1821
1822 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1823 ``print_all''. Only print vector registers when ``print_all''.
1824
23e3a7ac
AC
18252002-08-15 Andrew Cagney <ac131313@redhat.com>
1826
8e186fd6
AC
1827 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1828 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1829
23e3a7ac
AC
1830 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1831 Add `args' parameter.
1832 * gdbarch.h, gdbarch.c: Regenerate.
1833
1834 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1835
1836 * infcmd.c (float_info): Call print_float_info.
1837 (print_float_info): New function. By default, print the
1838 floating-point registers.
1839
1840 * arch-utils.h (default_print_float_info): Delete declaration.
1841 * arch-utils.c (default_print_float_info): Delete function.
1842
e0ca2bb9
MK
18432002-08-16 Mark Kettenis <kettenis@gnu.org>
1844
3f733acc
MK
1845 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1846 out define.
1847
7d8d2918
MK
1848 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1849 FRAME.
1850
1c7cc583
MK
1851 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1852 * configure.host: Make i[3456]86-*-aix host obsolete.
1853 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1854 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1855 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1856 config/i386/xm-i386aix.h: Make files obsolete.
1857 * i386aix-nat.c: Make file obsolete.
1858 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1859 (i386aix-nat.o): Make target obsolete.
1860
e0ca2bb9
MK
1861 * config/i386/nm-gnu.h: Removed.
1862 * config/i386/nm-i386gnu.h: New file.
1863 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1864 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1865 Moved here from ...
1866 * config/i386/tm-i386gnu.h: ... here. Removed.
1867 * config/i386/xm-i386gnu.h: Removed.
1868 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1869 (NAT_FILE): Set to nm-i386gnu.h.
1870 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1871 * i386-tdep.c: New file.
1872 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1873 (i386gnu-tdep.o): Specify dependencies.
1874
16057ec7 18752002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1876
6b99ee2e
MK
1877 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1878 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1879 Adjust a few comments to reflect reality a bit closer.
1880 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1881 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1882 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1883 target_insert_watchpoint, target_remove_watchpoint):
1884 Move defines to ...
1885 * config/i386/nm-i386sco5.h: ... here.
1886 (kernel_u_size): Add prototype. Improve a few comments and add
1887 protection against multiple inclusion.
1888
d9a6f65c
MK
1889 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1890 out define.
1891
047eff6a
MK
1892 * uw-thread.c (SP_ARG0): Define if not already defined.
1893 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1894
dcdb1290
MK
1895 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1896
5d2d0b2a
MK
1897 * config/i386/tm-i386.h: Don't include "regcache.h".
1898
61113f8b
MK
1899 * i387-tdep.h (i387_print_float_info): New prototype.
1900 * i387-tdep.c (print_i387_value, print_i387_ext,
1901 print_i387_status_word, print_i387_control_word): Add `struct
1902 ui_file *' argument and use it for output.
1903 (i387_print_float_info): Renamed from i387_float_info. Add
1904 `struct gdbarch *' and `struct ui_file *' arguments and use the
1905 latter for output.
1906 * i386-tdep.c: Include "i387-tdep.h".
1907 (i386_gdbarch_init): Set print_float_info.
1908 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1909 (FLOAT_INFO): Remove define.
1910
46e0f506
MS
19112002-08-13 Michael Snyder <msnyder@redhat.com>
1912
1913 * mips-tdep.c (mips_push_arguments): Rename to
1914 mips_eabi_push_arguments, and tune for EABI.
1915 (MIPS_REGS_HAVE_HOME_P): Delete.
1916 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1917 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1918 Delete references to mips_regs_have_home_p.
1919
409268de
KS
19202002-08-14 Keith Seitz <keiths@redhat.com>
1921
1922 * Makefile.in (install-gdbtk): Create insight plugin directory.
1923 Install plugins.tcl file.
1924
ffc6a242
KS
19252002-08-14 Keith Seitz <keiths@redhat.com>
1926
1927 * configure.in: Move SUBDIRS to near top of the file so that
1928 --enable options may add things to it.
1929 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1930 * configure: Regenerate.
1931
ebafbe83
MS
19322002-08-13 Michael Snyder <msnyder@redhat.com>
1933
1934 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1935 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1936 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1937
32f6f25d
AC
19382002-08-13 Andrew Cagney <ac131313@redhat.com>
1939
1940 * vax-tdep.c (vax_get_saved_register): Delete function.
1941 (vax_gdbarch_init): Update.
1942 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1943 (ns32k_gdbarch_init): Update.
1944 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1945 (alpha_gdbarch_init): Update.
1946
53826de9
AC
19472002-08-13 Andrew Cagney <cagney@redhat.com>
1948
1949 * regcache.c (init_regcache_descr): Overallocate the
1950 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1951 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1952 nr_raw_registers.
1953 (set_register_cached): Add range checking assertions. Use
1954 current_regcache.
1955
16057ec7 19562002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1957
1958 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1959 numbers for MMX registers.
1960
7b4c2dce
AC
19612002-08-13 Andrew Cagney <cagney@redhat.com>
1962
1963 * i386-tdep.c (i386_gdbarch_init): Use
1964 generic_unwind_get_saved_register.
1965
1e03ad20
KB
19662002-08-13 Kevin Buettner <kevinb@redhat.com>
1967
1968 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1969 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1970 target vector.
1971 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1972 Delete. Add comment regarding this now-deleted target method.
1973
548bcbec
SC
19742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1975
1976 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1977 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1978 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1979 real PC and the page number (if it's within the memory bank window).
1980 (m68hc11_pseudo_register_write): Likewise when saving.
1981 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1982 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1983 (m68hc11_register_raw_size): And use 32-bit for it.
1984 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1985 16K memory bank is used by the prog; also use the virtual pc.
1986
7df11f59
SC
19872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1988
1989 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1990 (m68hc11_gdbarch_init): Install it in gdbarch.
1991 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1992 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1993 (MSYMBOL_SIZE): New for documentation.
1994 (insn_return_kind): Enum to specify how a function returns.
1995 (frame_extra_info): Cleanup and record the return mode.
1996 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1997 register in address computation.
1998 (m68hc11_get_return_insn): New to obtain the return instruction used
1999 by the function.
2000 (m68hc11_frame_init_saved_regs): Take into account the return
2001 instruction used by the function for far and interrupt functions.
2002 (m68hc11_init_extra_frame_info): Take into account page register.
2003 (m68hc11_frame_args_address): Adjust according to the return mode.
2004 (show_regs): Print page register only when it's used.
2005
5706502a
SC
20062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2007
2008 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2009 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2010 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2011 registers.
2012 (m68hc11_register_raw_size): Likewise.
2013
28fc6740
AC
20142002-08-13 Andrew Cagney <cagney@redhat.com>
2015
2016 * i386-tdep.c (i386_register_name): Handle mmx registers.
2017 (mmx_regnum_p): New function.
2018 (i386_mmx_names): New array.
2019 (mmx_num_regs): New variable.
2020 (i386_pseudo_register_read): New function.
2021 (i386_pseudo_register_write): New function.
2022 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2023
2024 * regcache.c (regcache_raw_read_unsigned): New function.
2025 (regcache_raw_read_signed): New function.
2026 * regcache.h (regcache_raw_read_unsigned): Declare.
2027 (regcache_raw_read_signed): Declare.
2028
a378f419
AC
20292002-08-13 Andrew Cagney <cagney@redhat.com>
2030
2031 * regcache.c (regcache_raw_read_as_address): Delete function.
2032 (regcache_cooked_read_signed): New function.
2033 (regcache_cooked_read_unsigned): New function.
2034 * regcache.h (regcache_cooked_read_signed): Declare.
2035 (regcache_cooked_read_unsigned): Declare.
2036 (regcache_raw_read_as_address): Delete declaration.
2037
2038 * blockframe.c (generic_read_register_dummy): Use
2039 regcache_cooked_read_unsigned.
2040 * i386-tdep.c (i386_extract_struct_value_address): Use
2041 regcache_cooked_read_unsigned.
2042
81967506
SC
20432002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2044
2045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2046 double sizes according to ELF ABI flags.
2047 (gdbarch_tdep): Record elf_flags.
2048
ffe1f3ee
SC
20492002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2050
2051 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2052 (m6812_prolog): They can appear in 68HC12 function prologue.
2053 (m68hc11_frame_chain): Cleanup.
2054
98216c5d
AC
20552002-08-12 Andrew Cagney <cagney@redhat.com>
2056
2057 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2058 declarations.
2059 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2060 (i386_linux_register_raw_size): Delete function.
2061 (i386_linux_init_abi): Update.
2062 * i386-tdep.c (i386_register_raw_size): Delete function.
2063 (i386_register_byte): Delete function.
2064 (i386_gdbarch_init): Update.
2065 (i386_register_size): Delete array.
2066 (i386_register_offset): Delete array.
2067
2068 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2069 (REGISTER_RAW_SIZE): Delete macro.
2070 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2071 (REGISTER_BYTE): Delete macro.
2072
3b19021e
AS
20732002-08-11 Aidan Skinner <aidan@velvet.net>
2074
2075 * ada-lang.c (ada_lookup_partial_symbol)
2076 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2077 prototype names so that grep ^func works properly.
2078
2079 * ada-lang.c (ada_array_element_type)
2080 (ada_lookup_partial_symbol): Fix typos in parameter list.
2081
2082 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2083 Fix prototype names so that grep ^func works properly.
2084
b063e7a2
AC
20852002-08-10 Andrew Cagney <cagney@redhat.com>
2086 Elena Zannoni <ezannoni@redhat.com>
2087 Martin M. Hunt <hunt@redhat.com>
2088
2089 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2090 (build_builtin_type_vec128i): Set the vector bit.
2091 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2092 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2093 (build_builtin_type_vec64): New function.
2094 (build_builtin_type_vec64i): New function.
2095 (build_gdbtypes): Initialize builtin_type_vec64 and
2096 builtin_type_vec64i.
2097
a7e3c2ad
AC
20982002-08-09 Andrew Cagney <cagney@redhat.com>
2099
2100 * regcache.c (regcache_dump): Compare the register offset
2101 with REGISTER_BYTE.
2102 * arch-utils.c (generic_register_byte): New function.
2103 * arch-utils.h (generic_register_byte): Declare.
2104 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2105 * gdbarch.h, gdbarch.c: Regenerate.
2106
af030b9a
AC
21072002-08-09 Andrew Cagney <cagney@redhat.com>
2108
2109 * regcache.c: Include "gdbcmd.h"
2110 (_initialize_regcache): Add commands "maintenance print
2111 registers", "maintenance print raw-registers" and "maintenance
2112 print cooked-registers".
2113 (enum regcache_dump_what): Define.
2114 (dump_endian_bytes): New function.
2115 (regcache_dump): New function.
2116 (regcache_print): New function.
2117 (maintenance_print_registers): New function.
2118 (maintenance_print_raw_registers): New function.
2119 (maintenance_print_cooked_registers): New function.
2120 * Makefile.in (regcache.o): Update dependencies.
2121
cb3d25d1
MS
21222002-08-09 Michael Snyder <msnyder@redhat.com>
2123
2124 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2125 (mips_push_arguments): Correct some comments. Use paddr_nz
2126 for printing addresses in debug output. Replace static
2127 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2128 (mips_n32n64_push_arguments): New function, cloned from
2129 mips_push_arguments and tuned for the n32/n64 ABI.
2130 (mips_push_register): Buffer needs dynamic allocation.
2131 (mips_print_register): Ditto.
2132 (do_gp_register_row): Ditto.
2133 (mips_store_return_value): Ditto.
2134 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2135
2163ab9d
DH
21362002-08-09 Don Howard <dhoward@redhat.com>
2137
2138 * memattr.c (mem_info_command): Print special case of upper bound
2139 as max CORE_ADDR + 1.
2140
b78bcb18
MS
21412002-08-08 Michael Snyder <msnyder@redhat.com>
2142
2143 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2144 returns structs by ref if they're too big to fit in two registers.
2145
ffabd70d
KB
21462002-08-09 Kevin Buettner <kevinb@redhat.com>
2147
2148 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2149 saved regs value.
2150 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2151 mips_find_saved_regs().
2152 (mips_pop_frame): Likewise.
2153
fbcdb4a3
KB
21542002-08-09 Kevin Buettner <kevinb@redhat.com>
2155
2156 * blockframe.c (frame_saved_regs_register_unwind): Revise
2157 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2158 frames are in use.
2159
3c3bea1c
GS
21602002-08-09 Grace Sainsbury <graces@redhat.com>
2161
2162 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2163 T-packets; the 'a' is not taken as a register number.
2164 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2165 (remote_stopped_data_address): New functions; add to target
2166 vector.
2167 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2168 prototypes to match other implementations of this
2169 function. replace integer argument with pointer -- the length
2170 field in the Z-packet is the length of what is pointed to or 1 if
2171 pointer is null. Add to target vector.
2172 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2173 target vector.
2174
2175 From Mark Salter:
2176 * remote.c (remote_wait): Add support to extract optional
2177 watchpoint information from T-packet. Ignore unrecognized
2178 optional info in T-packet.
2179 (remote_async_wait): Ditto.
2180
5d1d95de
CV
21812002-08-09 Corinna Vinschen <vinschen@redhat.com>
2182
2183 * cli/cli-dump.c: Change fopen modes to use binary open modes
2184 as defined in include/fopen-bin.h throughout.
2185
c86b5b38
MS
21862002-08-08 Michael Snyder <msnyder@redhat.com>
2187
2188 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2189
b30590dc
KB
21902002-08-08 Kevin Buettner <kevinb@redhat.com>
2191
2192 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2193 assertion failure by returning early after a warning.
2194
498868ed
KB
21952002-08-08 Kevin Buettner <kevinb@redhat.com>
2196
2197 * mips-tdep.c (mips_find_saved_regs): Make static.
2198 (mips_frame_init_saved_regs): New function.
2199 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2200 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2201 (mips_find_saved_regs): Delete declaration.
2202
b2dd6311
GS
22032002-08-08 Grace Sainsbury <graces@redhat.com>
2204
3c3bea1c
GS
2205 * remote.c (remote_wait, remote_async_wait): Change
2206 thread_num from int to ULONGEST.
2207 (unpack_varlen_hex): Change result parameter from
2208 int * to ULONGEST *.
b2dd6311 2209
ea47855f
AC
22102002-08-08 Andrew Cagney <ac131313@redhat.com>
2211
2212 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2213 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2214 powerpc*-*-*.
2215 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2216
69db8bae
AC
22172002-08-08 Andrew Cagney <cagney@redhat.com>
2218
2219 * gcore.c (override_derive_stack_segment): Delete variable.
2220 (preempt_derive_stack_segment): Delete function.
2221 (derive_stack_segment): Delete function.
2222 (default_derive_stack_segment): Renamed to derive_stack_segment.
2223 (override_derive_heap_segment): Delete variable.
2224 (preempt_derive_heap_segment): Delete function.
2225 (derive_heap_segment): Delete function.
2226 (default_derive_heap_segment): Rename to derive_heap_segment.
2227
cb811fe7
MS
22282002-08-06 Michael Snyder <msnyder@redhat.com>
2229
2230 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2231 * mips-tdep.c (mips_EABI_use_struct_convention,
2232 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2233 New functions. (mips_use_struct_convention): Delete.
2234 (mips_gdbarch_init): set use_gdbarch_convention.
2235
8b389c40
MS
22362002-08-06 Michael Snyder <msnyder@redhat.com>
2237
2238 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2239 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2240 mips_o32_reg_struct_has_addr): New functions.
2241 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2242
5c27f28a
AC
22432002-08-07 Andrew Cagney <ac131313@redhat.com>
2244
2245 * regcache.c (pseudo_register): Delete function.
2246 (fetch_register): Delete function.
2247 (store_register): Delete function.
2248 (regcache_raw_read, legacy_read_register_gen): Use
2249 target_fetch_registers instead of fetch_register.
2250 (legacy_write_register_gen, regcache_raw_write): Use
2251 target_store_register instead of store_register.
2252 (write_register_bytes): Ditto.
2253
2254 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2255 (STORE_PSEUDO_REGISTER): Delete.
2256 * gdbarch.h, gdbarch.c: Regenerate.
2257
5b331675
CV
22582002-08-06 Corinna Vinschen <vinschen@redhat.com>
2259
2260 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2261 write dump file binary.
2262
6acdf5c7
MS
22632002-08-05 Michael Snyder <msnyder@redhat.com>
2264
2265 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2266 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2267 (mips_gdbarch_init): Set N32 target to be mips64.
2268
b2f01c35
KB
22692002-08-06 Kevin Buettner <kevinb@redhat.com>
2270
2271 * frame.c (find_saved_register): Break out of loop once saved
2272 register address is found. Don't mention sparc in loop comment
2273 anymore.
2274
63db5580
KB
22752002-08-06 Kevin Buettner <kevinb@redhat.com>
2276
2277 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2278 mips_default_saved_regsize to 8.
2279
5e34e75e
AC
22802002-08-06 Andrew Cagney <ac131313@redhat.com>
2281
2282 * gcore.c: Do not include <sys/procfs.h>.
2283 * Makefile.in (gcore.o): Update dependencies.
2284
eb4c54a2
AC
22852002-08-06 Andrew Cagney <cagney@redhat.com>
2286
2287 * configure.tgt: Make arc-*-* obsolete.
2288 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2289 * MAINTAINERS: Make arc-elf obsolete.
2290 * arc-tdep.c: Make file obsolete.
2291 * config/arc/arc.mt: Ditto.
2292 * config/arc/tm-arc.h: Ditto.
2293
ced15480
TR
22942002-08-05 Theodore A. Roth <troth@verinet.com>
2295
c1bab85b 2296 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2297
b4743822
AC
22982002-08-05 Andrew Cagney <ac131313@redhat.com>
2299
2300 * mcore-tdep.c (mcore_gdbarch_init): Use
2301 generic_unwind_get_saved_register instead of
2302 generic_get_saved_register.
2303 * v850-tdep.c (v850_gdbarch_init): Ditto.
2304 * frv-tdep.c (frv_gdbarch_init): Ditto.
2305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2306 * s390-tdep.c (s390_gdbarch_init): Ditto.
2307 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2308 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2309 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2310
3956d554
JB
23112002-08-05 Joel Brobecker <brobecker@gnat.com>
2312
2313 * objfiles.h: Add missing #include "symfile.h"
2314
2315 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2316
8249c0d6
AC
23172002-08-04 Andrew Cagney <ac131313@redhat.com>
2318
2319 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2320 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2321 of FIELD_BITSIZE.
2322
b9d14705
DJ
23232002-08-04 Daniel Jacobowitz <drow@mvista.com>
2324
2325 * NEWS: Cleanup and nitpick.
2326
dd73b9bb
AC
23272002-08-03 Andrew Cagney <ac131313@redhat.com>
2328
2329 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2330
043a27f8
AC
23312002-08-03 Andrew Cagney <ac131313@redhat.com>
2332
2333 * Makefile.in (gdbtk-bp.o): Update dependencies.
2334 (gdbtk-register.o): Ditto.
2335 (gdbtk-varobj.o): Ditto.
2336
46ce284d
AC
23372002-08-03 Andrew Cagney <cagney@redhat.com>
2338
2339 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2340 m68hc11_fetch_pseudo_register.
2341 (m68hc11_pseudo_register_write): Replace
2342 m68hc11_store_pseudo_register.
2343 (m68hc11_gdbarch_init): Update.
2344
b66d6d2e
AC
2345Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2346
2347 * gdbarch.sh: Include "gdb_string.h".
2348 * gdbarch.c: Regenerate.
2349
2350 * regcache.c: Include "gdb_string.h".
2351 * ax-general.c: Ditto.
2352 * varobj.c: Ditto.
2353 * std-regs.c: Ditto.
2354 * fbsd-proc.c: Ditto.
2355 * thread.c: Ditto.
2356
2357 * Makefile.in (regcache.o): Update dependencies.
2358 (thread.o, gdbarch.o): Ditto.
2359 (ax-general.o, gdbarch.o): Ditto.
2360 (varobj.o, std-regs.o): Ditto.
2361 (fbsd-proc.o): Specify dependencies.
2362
29e1842b
AC
23632002-08-02 Andrew Cagney <cagney@redhat.com>
2364
2365 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2366 regnum.
2367 (regcache_cooked_write): Ditto.
2368
68365089
AC
23692002-08-02 Andrew Cagney <ac131313@redhat.com>
2370
2371 * regcache.c (regcache_cooked_read): New function.
2372 (regcache_cooked_write): New function.
2373 (read_register_gen): Rewrite using regcache_cooked_read.
2374 (write_register_gen): Rewrite using regcache_cooked_write.
2375
2376 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2377 Declare.
2378
d8124050
AC
23792002-08-02 Andrew Cagney <cagney@redhat.com>
2380
2381 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2382 Replace the architecture methods register_read and register_write.
2383 * gdbarch.h, gdbarch.c: Regenerate.
2384 * regcache.c (init_regcache_descr): Update.
2385 (read_register_gen): Update.
2386 (write_register_gen): Update.
2387 (supply_register): Update comment.
2388
2389 * sh-tdep.c (sh_gdbarch_init): Update.
2390 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2391 `regcache' and `gdbarch' parameters. Make `buffer' a void
2392 pointer. Update code.
2393 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2394 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2395 void pointer. Update code.
2396 (sh64_register_write): Delete.
2397 (sh4_register_read): Delete.
2398 (sh64_register_read): Delete.
2399 (sh4_register_write): Delete.
2400 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2401 void pointer, `to' parameter a void pointer.
2402 (sh_sh64_register_convert_to_raw): Ditto.
2403
a6425924
KB
24042002-08-01 Kevin Buettner <kevinb@redhat.com>
2405
2406 * mips-tdep.c (mips_register_virtual_type): Use architecture
2407 invariant return values.
2408
ff5922b5
AC
24092002-08-01 Andrew Cagney <cagney@redhat.com>
2410
2411 * linux-proc.c: Include "gdb_string.h".
2412 * Makefile.in (linux-proc.o): Update dependency list.
2413
32a6503c
KB
24142002-08-01 Kevin Buettner <kevinb@redhat.com>
2415
2416 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2417 comment.
2418
ccaa32c7
GS
24192002-08-01 Grace Sainsbury <graces@redhat.com>
2420
2421 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2422 to_insert_watchpoint, to_remove_watchpoint,
2423 to_stopped_by_watchpoint, to_stopped_data_address,
2424 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2425 target vecctor. Define their corresponding macros so they call
2426 them.
2427
2428 * target.c: Add default and debug versions of for
2429 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2430 to_insert_watchpoint, to_remove_watchpoint,
2431 to_stopped_by_watchpoint, to_stopped_data_address,
2432 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2433
78fde5f8
KB
24342002-08-01 Kevin Buettner <kevinb@redhat.com>
2435
2436 * mips-tdep.c (mips_register_virtual_type): New function.
2437 (mips_gdbarch_init): Register mips_register_virtual_type()
2438 with gdbarch machinery.
2439 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2440 this file instead of tm-bigmips.h.
2441 (MIPS_REGSIZE): Delete this macro.
2442 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2443 multiarch version in mips-tdep.c will be found.
2444
db034ac5
AC
24452002-08-01 Andrew Cagney <cagney@redhat.com>
2446
2447 * NEWS: Menion that CHILL has been made obsolete.
2448
2449 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2450 * stabsread.c (read_range_type): Ditto.
2451 * gdbtypes.h: Ditto.
2452 * language.c (binop_type_check): Ditto.
2453 (binop_result_type): Ditto.
2454 (integral_type): Ditto.
2455 (character_type): Ditto.
2456 (string_type): Ditto.
2457 (boolean_type): Ditto.
2458 (structured_type): Ditto.
2459 (lang_bool_type): Ditto.
2460 (binop_type_check): Ditto.
2461 * language.h (_LANG_chill): Ditto.
2462 * dwarfread.c (set_cu_language): Ditto.
2463 * dwarfread.c (CHILL_PRODUCER): Ditto.
2464 * dwarfread.c (handle_producer): Ditto.
2465 * expression.h (enum exp_opcode): Ditto.
2466 * eval.c: Ditto for comments.
2467 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2468 * expprint.c (print_subexp): Ditto.
2469 (print_subexp): Ditto.
2470 * valops.c (value_cast): Ditto.
2471 (search_struct_field): Ditto.
2472 * value.h (COERCE_VARYING_ARRAY): Ditto.
2473 * symfile.c (init_filename_language_table): Ditto.
2474 (add_psymbol_with_dem_name_to_list): Ditto.
2475 * valarith.c (value_binop): Ditto.
2476 (value_neg): Ditto.
2477 * valops.c (value_slice): Ditto.
2478 * symtab.h (union language_specific): Ditto.
2479 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2480 (SYMBOL_DEMANGLED_NAME): Ditto.
2481 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2482 * defs.h (enum language): Ditto.
2483 * symtab.c (got_symtab): Ditto.
2484 * utils.c (fprintf_symbol_filtered): Ditto.
2485
2486 * ch-typeprint.c: Make file obsolete.
2487 * ch-valprint.c: Make file obsolete.
2488 * ch-lang.h: Make file obsolete.
2489 * ch-exp.c: Make file obsolete.
2490 * ch-lang.c: Make file obsolete.
2491
2492 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2493 CHILL_LIB.
2494 (TARGET_FLAGS_TO_PASS): Ditto.
2495 (CHILLFLAGS): Obsolete.
2496 (CHILL): Obsolete.
2497 (CHILL_FOR_TARGET): Obsolete.
2498 (CHILL_LIB): Obsolete.
2499 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2500 ch-valprint.c.
2501 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2502 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2503 ch-lang.o.
2504 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2505 targets.
2506
8aaf0b47
JB
25072002-07-31 Joel Brobecker <brobecker@gnat.com>
2508
2509 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2510 This does not change anything at the moment, but will be helpful
2511 later when full Ada support is integrated.
2512
f3a7b3a5
KB
25132002-07-31 Kevin Buettner <kevinb@redhat.com>
2514
2515 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2516 help message.
2517
fb850278
KB
25182002-07-31 Kevin Buettner <kevinb@redhat.com>
2519
2520 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2521 and save it in a local variable. Use variable in later test.
2522
e3bddbfa
KB
25232002-07-31 Kevin Buettner <kevinb@redhat.com>
2524
2525 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2526 test. (Thanks to Daniel Jacobowitz.)
2527
28d169de
KB
25282002-07-31 Kevin Buettner <kevinb@redhat.com>
2529
2530 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2531 (mips_abi_strings): Add "n64".
2532 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2533
7fe7e44e
KB
25342002-07-31 Kevin Buettner <kevinb@redhat.com>
2535
2536 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2537 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2538
c6caf090
KB
25392002-07-31 Kevin Buettner <kevinb@redhat.com>
2540
2541 * utils.c (host_pointer_to_address, address_to_host_pointer):
2542 Use gdb_assert() instead of explicit call to internal_error().
2543
c41669e0
KB
25442002-07-30 Kevin Buettner <kevinb@redhat.com>
2545
2546 * Makefile.in (rs6000-nat.o): Update dependencies.
2547
2548 From Nicholas Duffek:
2549 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2550 (aix-thread.o): New rule.
2551 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2552 * config/powerpc/aix432.mh: New file.
2553
2fda4977
DJ
25542002-07-30 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2557 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2558 (fetch_core_registers, ppc_linux_supply_gregset)
2559 (ppc_linux_supply_fpregset): New functions.
2560 (ppc_linux_regset_core_fns): New.
2561 (_initialize_ppc_linux_tdep): Call add_core_fns.
2562 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2563 and ppc_linux_supply_gregset.
2564 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2565 (supply_fpregset): Call ppc_linux_supply_fpregset.
2566 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2567 corelow.o.
2568 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2569
729051e6
DJ
25702002-07-30 Daniel Jacobowitz <drow@mvista.com>
2571
2572 * symtab.c (lookup_symbol): Demangle before lowercasing.
2573
5f8a3188
AC
25742002-07-30 Andrew Cagney <ac131313@redhat.com>
2575
2576 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2577 declaration.
2578 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2579 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2580 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2581 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2582 "gdb_string.h".
2583 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2584 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2585 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2586 (avr-tdep.o, mon960-rom.o): Ditto.
2587 (aout_stabs_gnu_h): Define.
2588 (symtab_h): Remove $(gdb_obstack_h).
2589
67f07146
JB
25902002-07-30 Jim Blandy <jimb@redhat.com>
2591
2592 Patch from David Carlton <carlton@math.stanford.edu>:
2593 * gdbinit.in: Move the `dir' commands that add GDB's own source
2594 directory to the search path to the end, so that the `gdb' source
2595 directory will be searched first.
2596
04ea0df1
AC
25972002-07-29 Andrew Cagney <ac131313@redhat.com>
2598
2599 * gdb_obstack.h: New file.
2600 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2601 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2602 * objfiles.h: Include "gdb_obstack.h".
2603 * Makefile.in (gdb_obstack_h): Define.
2604 (symtab_h): Add $(gdb_obstack_h).
2605 (objfiles_h): Add $(gdb_obstack_h).
2606
2607 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2608 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2609 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2610 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2611 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2612 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2613 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2614 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2615
2616 * Makefile.in (bcache.o): Update dependencies.
2617 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2618 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2619 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2620 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2621 (stabsread.o, symfile.o, symmisc.o): Ditto.
2622 (symtab.o, typeprint.o, macroexp.o): Ditto.
2623 (macrotab.o, mdebugread.o): Ditto.
2624 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2625 (coff_ecoff_h, aout_aout64_h): Define.
2626 (aout_stabs_gnu_h, libaout_h): Define.
2627
d138e37a
AC
26282002-07-29 Andrew Cagney <cagney@redhat.com>
2629
2630 * regcache.c (struct regcache_descr): Rename nr_registers to
2631 nr_cooked_registers. Revise comments describing the structure
2632 member fields.
2633 (init_regcache_descr): Update.
2634 (init_legacy_regcache_descr): Update.
2635 (read_register_gen, write_register_gen): When a cooked register in
2636 the raw register range, directly access the value from the raw
2637 register cache.
2638
460e6ec3
AC
26392002-07-29 Andrew Cagney <ac131313@redhat.com>
2640
2641 * z8k-tdep.c: Do not include "obstack.h".
2642 * h8300-tdep.c, h8500-tdep.c: Ditto.
2643 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2644 * valprint.c, v850-tdep.c: Ditto.
2645 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2646 * mn10200-tdep.c: Ditto.
2647
2648 * Makefile.in (z8k-tdep.o): Update dependencies.
2649 (m68hc11-tdep.o, valprint.o): Ditto.
2650 (v850-tdep.o, d10v-tdep.o): Ditto.
2651 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2652 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2653 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2654 (sh_opc_h, gdb_sim_sh_h): Define.
2655 (elf_sh_h, elf_bfd_h): Define.
2656 (opcode_m68hc11_h): Define.
2657 (OPCODES_SRC, OPCODES_DIR): define.
2658 (OPCODES): Use $(OPCODES_DIR).
2659 (gdb_sim_d10v_h): Rename sim_d10v_h.
2660 (gdb_sim_arm_h): Rename sim_arm_h.
2661
790c9cf0
KB
26622002-07-26 Kevin Buettner <kevinb@redhat.com>
2663
2664 * utils.c (host_pointer_to_address, address_to_host_pointer):
2665 Change internal_error() message to indicate function responsible
2666 for the error.
2667
9647fa49
KB
26682002-07-26 Kevin Buettner <kevinb@redhat.com>
2669
2670 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2671 calls to local_hex_string_custom().
2672
dabbe2c0
KB
26732002-07-26 Kevin Buettner <kevinb@redhat.com>
2674
2675 * irix5-nat.c: Move IRIX shared library support from here...
2676 * solib-irix.c: ...to here. Revised substantially to work with
2677 generic solib framework.
2678
b96d0a4e
KB
2679 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2680 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2681 * mips-irix-tdep.c: New file.
2682
313fb2f6
KB
2683 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2684 (mips-irix-tdep.o, solib-irix.o): New rules.
2685 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2686 solib-irix.o.
2687 * config/mips/irix6.mt (TDEPFILES): Likewise.
2688 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2689
ab2eaf26
KB
26902002-07-26 Kevin Buettner <kevinb@redhat.com>
2691
177e4768 2692 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2693 disabled (via ``#if 0'') includes.
2694
7244546a
KB
26952002-07-26 Kevin Buettner <kevinb@redhat.com>
2696
2697 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2698 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2699 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2700 Add support for the fpscr register.
2701 * rs6000-nat.c (regmap, fetch_inferior_registers)
2702 (store_inferior_registers, fetch_core_registers): Likewise.
2703
dd7be90a
KB
27042002-07-26 Kevin Buettner <kevinb@redhat.com>
2705
2706 * rs6000-nat.c (language.h): Include.
2707 (special_regs): Delete this array.
2708 (regmap): New function.
2709 (fetch_register, store_register): Use regmap() to map gdb
2710 register numbers to ptrace register numbers. Also, use
2711 outputs from regmap() to make decisions regarding type of
2712 ptrace() call to make. In particular, don't compare against
2713 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2714 (fetch_inferior_registers, store_inferior_registers): Where
2715 possible, obtain register numbers from tdep struct. Don't
2716 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2717 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2718 (LAST_UISA_SP_REGNUM): Delete.
2719
11bf77db
KB
27202002-07-25 Kevin Buettner <kevinb@redhat.com>
2721
2722 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2723 (fetch_registers, store_register, fetch_core_registers): Don't
2724 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2725 regcache_collect() as appropriate.
2726 (find_toc_address): Format hex address with local_hex_string().
2727
06afebeb
AC
27282002-07-25 Andrew Cagney <ac131313@redhat.com>
2729
2730 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2731 bfd/elf32-frv.c.
2732
8c554d79
TT
27332002-07-24 Tom Tromey <tromey@redhat.com>
2734
2735 * jv-exp.y: Marked all strings with _().
2736 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2737 internal_error.
2738 (MethodInvocation, CastExpression, parse_number, yyerror,
2739 java_type_from_name, push_expression_name, yylex): Typo fixes.
2740
e4c242d9
DJ
27412002-07-24 Daniel Jacobowitz <drow@mvista.com>
2742
2743 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2744 (tee_file_flush, tee_file_write, tee_file_fputs)
2745 (tee_file_isatty): New.
2746 * ui-file.h (tee_file_new): Add prototype.
2747
ebf56fd3
AS
27482002-07-24 Aidan Skinner <aidan@velvet.net>
2749
2750 * ada-lang.c: Change k&r style function definitions to prototyped
2751 form.
2752 * ada-typeprint.c: Change k&r style function definitions to prototyped
2753 form.
2754 * ada-valprint.c: Change k&r style function definitions to prototyped
2755 form.
2756
7fb623f7
AC
27572002-07-24 Andrew Cagney <cagney@redhat.com>
2758
2759 * README: Remove reference to remote-bug.
2760 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2761 remote-bug.c.
2762 (m88k-nat.o): Delete rule.
2763 (m88k-tdep.o): Delete rule.
2764 (remote-bug.o): Delete rule.
2765 * MAINTAINERS: Mark as obsolete.
2766 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2767 * m88k-tdep.c: Make file obsolete.
2768 * config/m88k/m88k.mh: Ditto.
2769 * config/m88k/delta88v4.mh: Ditto.
2770 * config/m88k/delta88v4.mt: Ditto.
2771 * config/m88k/delta88.mt: Ditto.
2772 * config/m88k/delta88.mh: Ditto.
2773 * remote-bug.c: Ditto.
2774 * config/m88k/tm-delta88.h: Ditto.
2775 * config/m88k/nm-delta88v4.h: Ditto.
2776 * config/m88k/xm-delta88.h: Ditto.
2777 * config/m88k/xm-dgux.h: Ditto.
2778 * config/m88k/tm-m88k.h: Ditto.
2779 * config/m88k/nm-m88k.h: Ditto.
2780 * config/m88k/tm-delta88v4.h: Ditto.
2781 * m88k-nat.c: Ditto.
2782 * cxux-nat.c: Ditto.
2783 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2784 and m88*-*-* obsolete.
2785 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2786 m88*-*-* obsolete.
2787
37611a2b
AC
27882002-07-24 Andrew Cagney <cagney@redhat.com>
2789
2790 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2791 constant. Same for local pointer variables.
2792 (extract_signed_integer): Ditto.
2793 * defs.h (extract_unsigned_integer): Update.
2794 (extract_signed_integer): Update.
2795
1aaa5f99
AC
27962002-07-24 Andrew Cagney <cagney@redhat.com>
2797
2798 * regcache.c (regcache_raw_write): Change buf parameter to a
2799 constant void pointer.
2800 (regcache_raw_read): Change buf parameter to a void pointer.
2801 (legacy_write_register_gen): Change myaddr parameter a constant
2802 void pointer.
2803 (supply_register): Change val parameter to a const void pointer.
2804 * regcache.h (regcache_raw_write): Update declaration.
2805 (regcache_raw_read): Update declaration.
2806 (supply_register): Update declaration.
2807
b4f5539f
TT
28082002-07-24 Tom Tromey <tromey@redhat.com>
2809
2810 * defs.h (gdb_readline_wrapper): Declare.
2811 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2812 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2813 * top.c (gdb_readline_wrapper): New function.
2814 (command_line_input): Use it.
2815
0818c12a
AC
28162002-07-24 Andrew Cagney <cagney@redhat.com>
2817
2818 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2819 regcache_read and regcache_write.
2820 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2821 * regcache.c: Update.
2822 * sh-tdep.c (sh64_push_arguments): Update comment.
2823 (sh_pseudo_register_read): Update.
2824 (sh_pseudo_register_write): Update.
2825 (sh4_register_read): Update.
2826 (sh4_register_write): Update.
2827 (sh64_pseudo_register_read): Update.
2828 (sh64_pseudo_register_write): Update.
2829 (sh64_register_read): Update.
2830 (sh64_register_write): Update.
2831 * i386-tdep.c (i386_extract_return_value): Update.
2832 (i386_extract_struct_value_address): Update.
2833 (i386_extract_return_value): Update.
2834 * blockframe.c (generic_read_register_dummy): Update.
2835 (generic_call_dummy_register_unwind): Update
2836 * infrun.c (write_inferior_status_register): Update.
2837
f7321c06
JB
28382002-07-23 Jim Blandy <jimb@redhat.com>
2839
2840 * parser-defs.h (expression_context_pc): Make this extern.
2841 (Thanks to Michael Snyder.)
2842
2037aebb
AC
28432002-07-23 Andrew Cagney <ac131313@redhat.com>
2844
2845 GDB 5.2.1 released from 5.2 branch.
2846 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2847 * README: Update to mention 5.2.1.
2848
66504d44
MS
28492002-07-23 Mark Salter <msalter@redhat.com>
2850
2851 * remote.c (remote_read_bytes): Fix check for error.
2852
27bae383
KB
28532002-07-22 Kevin Buettner <kevinb@redhat.com>
2854
2855 * aix-thread.c (language.h): Include.
2856 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2857 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2858 Print newlines at end of debug messages.
2859 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2860 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2861
28622002-07-22 Kevin Buettner <kevinb@redhat.com>
2863
2864 * aix-thread.c (ppc-tdep.h): Include.
2865 (special_register_p): New function.
2866 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2867 (store_regs_user_thread): Use register number information from
2868 gdbarch_tdep struct instead of hardcoded offsets relative to
2869 FIRST_UISA_SP_REGNUM.
2870 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2871 special_register_p() instead of using FPLAST_REGNUM and
2872 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2873 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2874 will be MQ's register number.
2875
28762002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2877
2878 * aix-thread.c (ops): Rename to aix_thread_ops.
2879 (base_ops): Rename to base_target.
2880 (ops_attach): Rename to aix_thread_attach.
2881 (ops_detach): Rename to aix_thread_detach.
2882 (ops_resume): Rename to aix_thread_detach.
2883 (ops_wait): Rename to aix_thread_wait.
2884 (ops_kill): Rename to aix_thread_kill.
2885 (init_ops): Rename to init_aix_thread_ops.
2886 (ops_fetch_register): Rename to aix_thread_fetch_register.
2887 (ops_store_register): Rename to aix_thread_store_register.
2888 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2889 (ops_thread_alive): Rename to aix_thread_thread_alive.
2890 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2891 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2892 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2893 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2894 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2895 (store_regs_lib): Rename to store_regs_user_thread.
2896 (store_regs_kern): Rename to store_regs_kernel_thread.
2897
27bae383 28982002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2899
2900 * aix-thread.c (ops_prepare_to_store): Eliminate.
2901 (init_ops): Don't initialize ops.prepare_to_store.
2902 (store_regs_kern): Pre-fetch register buffers from child,
2903 because some registers may not be in the cache. Copy
2904 regs from register cache only if they are cached.
2905 (store_regs_lib): Copy regs from register cache only
2906 if they are cached.
2907 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2908 fill_gprs64): Ditto.
2909
61c5da0b
KB
29102002-07-22 Kevin Buettner <kevinb@redhat.com>
2911
2912 * aix-thread.c (gdb_assert.h): Include.
2913 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2914 register sizes (from register cache) match size of buffer holding
2915 register data.
2916 (fill_sprs32): Change parameter types to match those in the ptrace()
2917 buffer.
2918 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2919 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2920
29212002-07-22 Michael Snyder <msnyder@redhat.com>
2922
2923 * aix-thread.c (supply_sprs64): Cosmetic change.
2924 (supply_sprs32): Cosmetic change.
2925 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2926 (fill_sprs64): Use regcache_collect instead of read_register.
2927 (store_regs_lib): Use regcache_collect instead of
2928 read_register. Use fill_sprs32 instead of fill_sprs64,
2929 if debugging a 32-bit architecture.
2930 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2931 out of the register cache, instead of passing a pointer into
2932 the register cache directly to ptrace. Use regcache_collect
2933 insteaad of read_register.
2934 (ops_prepare_to_store): Use target_read_registers instead
2935 of read_register_bytes.
2936
36479eb1
AS
29372002-07-20 Aidan Skinner <aidan@velvet.net>
2938
2939 * MAINTAINERS: Add self under write after approval.
2940
80ae6ee2
AS
29412002-07-20 Aidan Skinner <aidan@velvet.net>
2942
2943 * ada-tasks.c: Change k&r style function definitions to prototyped
2944 form.
2945
8a8ab2b9
AC
29462002-07-19 Andrew Cagney <ac131313@redhat.com>
2947
2948 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2949 * x86-64-tdep.c: Include "objfiles.h".
2950 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2951 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2952
fb16b900
ML
29532002-07-17 Michal Ludvig <michal@suse.cz>
2954
2955 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2956 (update_context): Initialise cfa variable.
2957
0fe7bf7b
MS
29582002-07-17 Michael Snyder <msnyder@redhat.com>
2959
2960 * aix-thread.c: Shorten some long lines.
2961 Bring comments into line with code spec.
2962
488f131b
JB
29632002-07-18 Joel Brobecker <brobecker@gnat.com>
2964
2965 * infrun.c: Re-indent using gdb_indent.sh.
2966
46c415d2
JB
29672002-07-18 Joel Brobecker <brobecker@gnat.com>
2968
2969 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2970 Leave the indentation temporarily untouched, to minimize the diffs.
2971
cdecafbe
EZ
29722002-07-18 Elena Zannoni <ezannoni@redhat.com>
2973
2974 * stabsread.c: Make os9k sections of the code obsolete,
2975 for real this time.
2976 * stabsread.h: Make os9k sections of the code obsolete.
2977
7b6aa020
ML
29782002-07-18 Michal Ludvig <mludvig@suse.cz>
2979
09ec9b38
ML
2980 * linux-low.c (regsets_store_inferior_registers): Add free()
2981 at the end of a loop to prevent memory leak.
2982 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2983 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2984 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2985 line a comment.
4894ac5d 2986 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2987
233282cd
JB
29882002-07-17 Jim Blandy <jimb@redhat.com>
2989
2990 * macrocmd.c (info_macro_command): Remove newline from error
2991 message.
2992
7b6aa020 29932002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2994
2995 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2996 (sh_gdbarch_init): Use it for sh-dsp.
2997
f7ef9339
KB
29982002-07-16 Kevin Buettner <kevinb@redhat.com>
2999
3000 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3001 64-bit DWARF2 format.
3002
8dd72958
JB
30032002-07-16 Joel Brobecker <brobecker@gnat.com>
3004
3005 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3006 <sys/proc.h> when not available.
3007
a99a9e1b
AC
30082002-07-16 Andrew Cagney <ac131313@redhat.com>
3009
3010 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3011 * stabsread.c: Make os9k sections of the code obsolete.
3012 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3013 * config/i386/i386os9k.mt: Make file obsolete.
3014 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3015 (COMMON_OBS): Remove os9kread.o
3016 (SFILES): Remove os9kread.c.
3017 (os9kread.o, remote-os9k.o): Make target obsolete.
3018 * remote-os9k.c: Make file obsolete.
3019 * os9kread.c: Make file obsolete.
3020 * Makefile.in
3021
7a3085c1
AC
30222002-07-16 Andrew Cagney <ac131313@redhat.com>
3023
3024 * NEWS: Mention that the FR30 has been made obsolete.
3025 * fr30-tdep.c: Make file obsolete.
3026 * config/fr30/tm-fr30.h: Ditto.
3027 * config/fr30/fr30.mt: Ditto.
3028 * configure.tgt: Make fr30-*-elf obsolete.
3029 * MAINTAINERS: Make fr30-elf obsolete.
3030
28a93f5a
PM
30312002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3032
3033 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3034 found is not inside a section.
3035
be006b8b
KB
30362002-07-15 Kevin Buettner <kevinb@redhat.com>
3037
3038 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3039 strerror().
3040 (pdc_realloc): Use xrealloc() instead of realloc().
3041
14fa3751
KB
30422002-07-15 Kevin Buettner <kevinb@redhat.com>
3043
3044 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3045 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3046 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3047 macros.
3048
42cc437f
KB
30492002-07-15 Kevin Buettner <kevinb@redhat.com>
3050
3051 * aix-thread.c (ptrace_check): Eliminate goto.
3052 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3053 problem.
3054
8e2c28d4
KB
30552002-07-15 Kevin Buettner <kevinb@redhat.com>
3056
3057 * aix-thread.c (gdbcmd.h): Include.
3058 (DEBUG, DBG, DBG2, dbg): Eliminate.
3059 (debug_aix_thread): New static global.
3060 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3061 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3062 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3063 invocations to DBG and DBG2 macros to test against
3064 ``debug_aix_thread'' and call fprintf_unfiltered().
3065 (_initialize_aix_thread): Add new command "set debug aix-thread".
3066
30413464
AC
30672002-07-15 Andrew Cagney <ac131313@redhat.com>
3068
3069 From Gerhard Tonn <TON@de.ibm.com>:
3070 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3071 instead of supply_register.
3072
7c43edc1
AC
30732002-07-15 Andrew Cagney <ac131313@redhat.com>
3074
3075 * dwarf2cfi.c: Include "gdb_assert.h".
3076 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3077 non-NULL.
3078 (update_context): Do not use __func__. Add missing ``break''.
3079 (update_context): Do not use __func__.
3080
9364a0ef
EZ
30812002-07-15 Elena Zannoni <ezannoni@redhat.com>
3082
3083 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3084 and its setting. Set gdbarch instruction printing functions
3085 directly. For non-rs6000 case use new function
3086 gdb_print_insn_powerpc.
3087 (gdb_print_insn_powerpc): New function.
3088
3fbeef0b
AC
30892002-07-13 Andrew Cagney <ac131313@redhat.com>
3090
92eb23c5 3091 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3092 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3093 * configure.tgt: Mark d30v-*-* as obsolete.
3094 * d30v-tdep.c: Mark file as obsolete.
3095 * config/d30v/d30v.mt: Ditto.
3096 * config/d30v/tm-d30v.h: Ditto.
3097
aacb1f0a
AS
30982002-07-13 Aidan Skinner <aidan@velvet.net>
3099
3100 * ada-tasks.c (add_task_entry): replace calls to
3101 malloc() with xmalloc
3102 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3103
3104 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3105 ada_finish_decode_line_1, all_sals_for_line
3106 ada_breakpoint_rewrite): replace calls to free() with xfree()
3107
c11d79f2
KB
31082002-07-12 Kevin Buettner <kevinb@redhat.com>
3109
3110 From Nicholas Duffek (with minor changes by Martin Hunt,
3111 Louis Hamilton, and Kevin Buettner):
3112 * aix-thread.c: New file.
3113
8e19ed76
PS
31142002-07-12 Petr Sorfa <petrs@caldera.com>
3115
3116 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3117 complaint for invalid attribute class or form.
3118 (read_func_scope): DW_AT_frame_base
3119 better handling of DW_AT_block*.
3120 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3121 better handling of DW_AT_block*.
3122 (read_common_block): DW_AT_location
3123 better handling of DW_AT_block*.
3124 (read_partial_die): DW_AT_location better handling
3125 of DW_AT_block*.
3126 (new_symbol): DW_AT_external better handling of
3127 DW_AT_block*. Proper initialization of variable
3128 "addr".
3129 (attr_form_is_block): New function that returns true
3130 if the attribute's form is of DW_FORM_block*.
3131
295401f7
DJ
31322002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3133
3134 * valops.c (find_method_list): Remove comment about
3135 removed STATIC_MEMFUNCP argument.
3136 (value_find_oload_method_list): Likewise.
3137
e42dc924
KB
31382002-07-12 Kevin Buettner <kevinb@redhat.com>
3139
3140 From Nicholas Duffek:
3141 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3142 target_new_objfile_hook.
3143
6904b546
KB
31442002-07-12 Kevin Buettner <kevinb@redhat.com>
3145
3146 From Nicholas Duffek:
3147 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3148 csect.
3149
53fe9346
AC
31502002-07-12 Andrew Cagney <cagney@redhat.com>
3151
3152 * MAINTAINERS: Mention --enable-sim-build-warnings.
3153 (m68hc11-elf): Disable sim build warnings.
3154 (m32r-elf): Mark as broken obsolete candidate.
3155 (x86_64-linux-gnu): Mark as buildable with -Werror.
3156 (arm-elf): Change -w to ``,'' which enables warnings but not
3157 -Werror.
3158
af5f3db6
AC
31592002-07-12 Andrew Cagney <ac131313@redhat.com>
3160
3161 * bcache.h: Update copyright.
3162 (struct bstring, struct bcache): Move definition to "bcache.c".
3163 Replaced by opaque declaration.
3164 (bcache_xfree): Replace free_bcache.
3165 (bcache_xmalloc, bcache_memory_used): Declare.
3166
3167 * bcache.c: Update copyright.
3168 (struct bstring, struct bcache): Moved to here from "bcache.h".
3169 Update comments.
3170 (bcache_xmalloc, bcache_memory_used): New functions.
3171 (bcache_xfree): Replace function free_bcache.
3172
3173 * Makefile.in (objfiles.o): Add $(bcache_h).
3174 (objfiles_h): Remove $(bcache_h).
3175 (symfile.o): Add $(bcache_h).
3176
3177 * symmisc.c: Update copyright.
3178 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3179 (print_objfile_statistics): Use bcache_memory_used.
3180
3181 * symfile.c: Include "bcache.h".
3182 (reread_symbols): Use bcache_xfree.
3183 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3184 (add_psymbol_to_list): Pass psymbol_cache by value.
3185 (add_psymbol_with_dem_name_to_list): Ditto.
3186
3187 * objfiles.h: Update copyright.
3188 (struct bcache): Declare opaque. Do not include "bcache.h".
3189 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3190 bcache'' pointers.
3191 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3192
3193 * objfiles.c: Include "bcache.h". Update copyright.
3194 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3195 macro_cache.
3196 (free_objfile): Use bcache_xfree.
3197
444199e7
GS
31982002-07-11 Grace Sainsbury <graces@redhat.com>
3199
3200 * monitor.c (monitor_fetch_register): Make name a constant.
3201 (monitor_store_register): Same.
3202
261397f8
DJ
32032002-07-11 Daniel Jacobowitz <drow@mvista.com>
3204
3205 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3206 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3207 (finish_block) For non-function blocks, hash the symbol table. For
3208 function blocks, mark the symbol table as unhashed.
3209 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3210 (msymbol_hash_iw): Likewise.
3211 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3212 value.
3213 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3214 (lookup_minimal_symbol): Likewise for both.
3215 * symtab.h (struct block): Add `hashtable' flag. Comment the
3216 hashtable.
3217 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3218 (ALL_BLOCK_SYMBOLS): Update.
3219 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3220 (struct symbol): Add `hash_next' pointer.
3221 * symtab.c (lookup_block_symbol): Search using the hash table when
3222 possible.
3223 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3224 (search_symbols, find_addr_symbol): Likewise.
3225
3226 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3227 (read_dst_symtab): Likewise.
3228 * jv-lang.c (get_java_class_symtab): Likewise.
3229 * mdebugread.c: Include "gdb_assert.h".
3230 (shrink_block): Assert that the block being modified is not hashed.
3231 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3232 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3233 symbols.
3234 (dump_symtab): Recognize hashed blocks.
3235 * printcmd.c (print_frame_args): Assert that function blocks do not
3236 have hashed symbol tables.
3237 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3238 (fill_in_ada_prototype, debug_print_block): Likewise.
3239 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3240
6f0eaa01
CV
32412002-07-11 Corinna Vinschen <vinschen@redhat.com>
3242
3243 * stack.c (print_frame): Use result of frame_address_in_block()
3244 instead of fi->pc when evaluating symbols.
3245 (backtrace_command_1): Ditto.
3246
a208b0cb
AC
32472002-07-11 Andrew Cagney <cagney@redhat.com>
3248
3249 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3250 Make static.
3251
3252 * arm-tdep.c (arm_register_name): Make return type constant.
3253
a6b6b089
AC
32542002-07-10 Andrew Cagney <ac131313@redhat.com>
3255
5ae5f592
AC
3256 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3257 prototype.
3258 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3259 * s390-tdep.c (s390_fp_regnum): Ditto.
3260 (s390_read_fp): Ditto.
3261 (s390_pop_frame): Ditto.
3262 (_initialize_s390_tdep): Ditto.
3263 * remote.c (get_remote_state): Ditto.
3264 * procfs.c (mappingflags): Ditto.
3265 * memattr.c (_initialize_mem): Ditto.
3266 * mcore-tdep.c (mcore_pop_frame): Ditto.
3267 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3268 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3269 * language.c (set_case_str): Ditto.
3270 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3271 * frv-tdep.c (new_variant): Ditto.
3272 (frv_stopped_data_address): Ditto.
3273 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3274 (context_alloc): Ditto.
3275 (frame_state_alloc): Ditto.
3276 (unwind_tmp_obstack_init): Ditto.
3277 (unwind_tmp_obstack_free): Ditto.
3278 (cfi_read_fp): Ditto.
3279 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3280 (cris_pop_frame): Ditto.
3281 * c-lang.c (scanning_macro_expansion): Ditto.
3282 (finished_macro_expansion): Ditto.
3283 (c_preprocess_and_parse): Ditto.
3284 * gdbarch.sh: Ditto.
3285 * gdbarch.h, gdbarch.c: Regenerate.
3286 * config/mn10200/tm-mn10200.h: Adjust indentation.
3287 * target.c: Adjust indentation.
3288 * symtab.h: Adjust indentation.
3289 * stabsread.h: Adjust indentation.
3290 * remote-es.c: Adjust indentation.
3291 * os9kread.c: Adjust indentation.
3292
32932002-07-10 Andrew Cagney <ac131313@redhat.com>
3294
a6b6b089
AC
3295 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3296 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3297
a1789893
GS
32982002-07-10 Grace Sainsbury <graces@redhat.com>
3299
3300 * NEWS: Mention m68k, mcore multi-arching.
3301 * MAINTAINERS: Change status of m68k, mcore to reflect
3302 multi-arching.
3303
02f0d45d
DJ
33042002-07-10 Daniel Jacobowitz <drow@mvista.com>
3305
3306 * valops.c (find_overload_match): Free oload_syms.
3307
f15f768e
JB
33082002-07-09 Joel Brobecker <brobecker@gnat.com>
3309
3310 Define HAVE_SYS_PROC_H if sys/proc.h exists
3311 * configure.in: Add check for sys/proc.h
3312 * config.in: Regenerate.
3313 * configure: Regenerate.
3314
902a7139
GS
33152002-07-09 Grace Sainsbury <graces@redhat.com>
3316
3317 * config/m68k/tm-m68k.h: Remove macros wrapped in
3318 #if !GDB_MULTI_ARCH.
3319
a534e424
AC
33202002-07-08 Andrew Cagney <ac131313@redhat.com>
3321
3322 * config.in, configure: Regenerate.
3323
9b94f7bf
MK
33242002-07-08 Mark Kettenis <kettenis@gnu.org>
3325
3326 * dwarf2cfi.c: Include "gcore.h".
3327 (execute_stack_op): Fix implementation of the
3328 DW_OP_deref and DW_OP_deref_size operators by letting do their
3329 lookup in the target.
3330
1d34db41
MK
33312002-07-07 Mark Kettenis <kettenis@gnu.org>
3332
3333 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3334 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3335 tdep->sc_sp_offset.
3336
79d5b63a
DJ
33372002-07-05 Daniel Jacobowitz <drow@mvista.com>
3338
3339 Fix PR gdb/595, gdb/602
3340 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3341 Don't call value_cast, just read the vtable pointer; update comments
3342 to match.
3343
3bb912e8
GS
33442002-07-05 Grace Sainsbury <graces@redhat.com>
3345
3346 * config/mcore/tm-mcore.h: Remove file.
3347 * config/mcore/mcore.mt: Remove definition of TM_FILE
3348 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3349
ca39387d
MK
33502002-07-05 Mark Kettenis <kettenis@gnu.org>
3351
3352 * i386bsd-tdep.c: Include "gdb_string.h".
3353
efdc1108
GS
33542002-07-04 Grace Sainsbury <graces@redhat.com>
3355
3356 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3357 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3358 mcore-tdep.
3359 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3360 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3361 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3362 (RETVAL_REGNUM): Move macros from tm-mcore.h
3363 (mcore_reg_struct_has_addr): New function.
3364 (mcore_gdbarch_init): Added initializations for the macros removed
3365 from tm-mcore.h.
3366
bb21884d
MK
33672002-07-04 Mark Kettenis <kettenis@gnu.org>
3368
3369 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3370 traditonal string branding within the ELF header.
3371
228c6d41
DJ
33722002-07-04 Daniel Jacobowitz <drow@mvista.com>
3373
3374 * symtab.c (remove_params): New function.
3375 (make_symbol_overload_list): Use it instead of cplus_demangle.
3376 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3377
2404952e
MK
33782002-07-04 Mark Kettenis <kettenis@gnu.org>
3379
e5e4acad
MK
3380 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3381
baadce09
MK
3382 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3383 New variables.
3384 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3385 and tdep->sigtramp_end.
3386 * i386obsd-nat.c: New file.
3387 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3388
2404952e
MK
3389 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3390 Don't call get_current_frame().
3391
9b4f1ba7
PM
33922002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3393
3394 * i386-nat.c (child_post_startup_inferior): New function
3395 calling i386_cleanup_dregs if
3396 I386_USE_GENERIC_WATCHPOINTS is defined.
3397 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3398 conditional to acknowledge that i386-nat.c has its
3399 own child_post_startup_inferior function.
3400
c0d1d883
MK
34012002-07-04 Mark Kettenis <kettenis@gnu.org>
3402
00f8375e
MK
3403 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3404 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3405 instead of MAX_REGISTER_RAW_SIZE.
3406 (i386_extract_return_value, i386_extract_struct_value_address):
3407 Convert to use regcache.
3408 (i386_gdbarch_init): Set max_register_raw_size and
3409 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3410 Set extract_return_value and extract_struct_value_address instead
3411 of their deprecated variants.
3412
c0d1d883
MK
3413 Convert i386 target to generic dummy frames.
3414 * i386-tdep.c: Include "symfile.h".
3415 (i386_frameless_signal_p): Consider a function to be frameless if
3416 the pc points at the first instruction of the function.
3417 (i386_frame_chain): Handle (generic) call dummies.
3418 (i386_frame_saved_pc): Likewise.
3419 (i386_frame_init_saved_regs): Remove code dealing with call
3420 dummies on the stack.
3421 (i386_push_dummy_frame): Removed.
3422 (i386_call_dummy_words): Removed.
3423 (i386_fix_call_dummy): Removed.
3424 (i386_push_return_address): New function.
3425 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3426 parameter, and don't call get_current_frame.
3427 (i386_pop_frame): New function.
3428 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3429 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3430 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3431 call_dummy_length to 0, set call_dummy_words to NULL, set
3432 sizeof_call_dummy_words to 0, set fix_call_dummy to
3433 generic_fix_call_dummy, set pc_in_call_dummy to
3434 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3435 generic_push_dummy_frame, set push_return_address to
3436 i386_push_return_address and set frame_chain_valid to
3437 generic_file_frame_chain_valid.
3438
049ee0e4
AC
34392002-07-03 Andrew Cagney <ac131313@redhat.com>
3440
3441 * gdbarch.sh (struct regcache): Add opaque declaration.
3442 (EXTRACT_RETURN_VALUE): New architecture method.
3443 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3444 * gdbarch.h, gdbarch.c: Regenerate.
3445 * arch-utils.c (legacy_extract_return_value): New function.
3446 * arch-utils.h (legacy_extract_return_value): Declare.
3447 * values.c (value_being_returned): Re-enable code handling
3448 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3449 deprecated_grub_regcache_for_registers call to block handling
3450 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3451 (EXTRACT_RETURN_VALUE): Do not define.
3452
4e0d9804
GS
34532002-07-03 Grace Sainsbury <graces@redhat.com>
3454
3455 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3456 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3457 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3458 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3459 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3460 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3461 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3462 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3463 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3464 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3465 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3466 argument so the function fits the prototype in the architecture
3467 vector.
3468 (mcore_pop_frame): Remove argument so the function fits the
3469 prototype. Use get_current_frame instead of the argument.
3470 (mcore_push_arguments): Change type of struct_return so the
3471 function can be used in the architecture vector.
3472 (mcore_store_struct_return): Add.
3473 (mcore_frame_init_saved_regs): Add.
3474 (mcore_gdbarch_init): Add function calls to replace the macros
3475 removed from tm-mcore.h
3476
36160dc4
AC
34772002-07-03 Andrew Cagney <ac131313@redhat.com>
3478
3479 * infcmd.c (print_return_value): Remove compatibility code calling
3480 deprecated_grub_regcache_for_registers.
3481
3482 * values.c: Include "regcache.h".
3483 (value_being_returned): Update. Use
3484 deprecated_grub_regcache_for_registers to extract the register
3485 buffer address.
3486 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3487 ``struct regcache''.
3488 * Makefile.in (values.o): Add dependency on $(regcache_h).
3489
3490 * inferior.h (run_stack_dummy): Change type of second parameter to
3491 a ``struct regcache''.
3492 * valops.c (hand_function_call): Change type of retbuf to ``struct
3493 regcache''. Allocate using regcache_xmalloc, clean using
3494 make_cleanup_regcache_xfree.
3495 * infcmd.c (run_stack_dummy): Update. Use
3496 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3497
3498 * regcache.c (do_regcache_xfree): New function.
3499 (make_cleanup_regcache_xfree): New function.
3500 * regcache.h (make_cleanup_regcache_xfree): Declare.
3501
e64d9b3d
MH
35022002-07-03 Martin M. Hunt <hunt@redhat.com>
3503
4dd79c29
MH
3504 * event-top.c (command_line_handler): Don't read past
3505 beginning of buffer.
e64d9b3d 3506
4dd79c29
MH
35072002-07-03 Martin M. Hunt <hunt@redhat.com>
3508
e64d9b3d
MH
3509 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3510 struct frame_id.
3511 (varobj_create): Store frame_id for root.
3512 (varobj_gen_name): Use xasprintf.
3513 (varobj_update): Save and restore frame using get_frame_id() and
3514 frame_find_by_id().
3515 (create_child): Use xasprintf.
3516 (new_root_variable): Initialize frame_id.
3517 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3518 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3519 to prevent memory leak.
3520
26e6c56a
AC
35212002-07-03 Andrew Cagney <ac131313@redhat.com>
3522
3523 * valops.c (hand_function_call): Move declaration of retbuf to
3524 start of function, allocate using malloc, add a cleanup but before
3525 the inf_status cleanup, cleanup the buffer. Rename local variable
3526 old_chain to inf_status_cleanup.
3527
f436dd25
MH
35282002-07-03 Martin M. Hunt <hunt@redhat.com>
3529
3530 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3531
3532 * cli/cli-decode.c (cmd_func_p): New function.
3533 (cmd_func): New function.
3534
3535 * command.h: Add cmd_func() and cmd_func_p().
3536
4cfe2084
GS
35372002-07-03 Grace Sainsbury <graces@redhat.com>
3538
3539 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3540 (REGISTER_SIZE): Remove.
3541 (MAX_REGISTER_RAW_SIZE): Remove.
3542 (REGISTER_VIRTUAL_TYPE): Remove.
3543 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3544 (REGISTER_NAME): Remove.
3545 (USE_GENERIC_DUMMY_FRAMES): Remove.
3546 (CALL_DUMMY): Remove.
3547 (CALL_DUMMY_START_OFFSET): Remove.
3548 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3549 (CALL_DUMMY_LOCATION): Remove.
3550 (FIX_CALL_DUMMY): Remove.
3551 (CALL_DUMMY_ADDRESS): Remove.
3552 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3553 (SAVE_DUMMY_FRAME_TOS): Remove.
3554 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3555 (mcore_register_virtual_type): New function.
3556 (mcore_register_byte): New function.
3557 (mcore_register_size): New function.
3558 (mcore_register_name): New function.
3559 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3560 macros removed from tm-mcore.h.
3561 (mcore_dump_tdep): Add.
3562 (_initialize_mcore_tdep): Add gdbarch_register call.
3563
4fd667e9
MK
35642002-07-03 Mark Kettenis <kettenis@gnu.org>
3565
3566 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3567 frameless_look_for_prologue, such that we actually call this
3568 function.
3569
42f99ac2
JB
35702002-07-02 Joel Brobecker <brobecker@gnat.com>
3571
3572 * frame.h (frame_address_in_block): New function.
3573
3574 * blockframe.c (frame_address_in_block): New function extracted
3575 from get_frame_block().
3576 (get_frame_block): Use frame_address_in_block().
3577 (block_innermost_frame): Use frame_address_in_block() to match
3578 the frame pc address against the block boundaries rather than
3579 the frame pc directly. This prevents a failure when a frame pc
3580 is actually a return-address pointing immediately after the end
3581 of the given block.
3582
103a1597 35832002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3584
3585 * MAINTAINERS: Add self under write after approval.
3586
35872002-07-02 Grace Sainsbury <graces@redhat.com>
3588
103a1597
GS
3589 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3590 used in architecture vector. The default is
3591 m68k_local_breakpoint_from_pc.
3592 (m68k_local_breakpoint_from_pc): Add.
3593 (enum): Add register numbers from tm-m68k.h.
3594 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3595 vector.
3596 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3597 GDB_MULTI_ARCH_PARTIAL.
3598 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3599 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3600 m68k-tdep.c.
3601 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3602 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3603 to enum in m68k-tdep.c
3604
7a5a0534
JB
36052002-07-02 Joel Brobecker <brobecker@gnat.com>
3606
3607 * solib-osf.c (open_map): Compute the list of shared libraries
3608 loaded by the inferior, rather than the list of libraries loaded
3609 by GDB itself. Otherwise, GDB ends up reading the symbols from
3610 the wrong shared libraries...
3611
6f558d74
MK
36122002-07-02 Mark Kettenis <kettenis@gnu.org>
3613
b7d15bf7
MK
3614 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3615 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3616 macros.
3617 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3618 Remove functions.
3619 (FRAMELESS_SIGNAL): Remove function.
3620 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3621 i386_linux_saved_pc_after_call): Removed.
3622 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3623 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3624 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3625
6bff26de
MK
3626 * i386-tdep.c (i386_frameless_signal_p): New function.
3627 (i386_frame_chain): Deal with frameless signals.
3628 (i386_sigtramp_saved_sp): New function.
3629 (i386_frame_saved_pc): Deal with frameless signals.
3630 (i386_saved_pc_after_call): Make sure the correct value is
3631 returned just after entry into a sigtramp.
3632 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3633 i386fbsd4_sc_sp_offset): New variables.
3634 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3635 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3636 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3637 similiar to what we already did for sc_pc_offset.
3638 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3639 tdep->sc_sp_offset.
3640
6f558d74
MK
3641 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3642
145564b7
ML
36432002-07-02 Michal Ludvig <mludvig@suse.cz>
3644
3645 * config/i386/tm-x86-64linux.h: New.
3646 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3647 definitions.
3648 * config/i386/nm-x86-64.h: Rename to ...
3649 * config/i386/nm-x86-64linux.h: ... this one.
3650 * config/i386/x86-64linux.mh: Reflect the above change.
3651
3a1e71e3
MK
36522002-07-01 Mark Kettenis <kettenis@gnu.org>
3653
21d0e8a4
MK
3654 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3655 with sigcontext_addr. Add sc_sp_offset.
3656 (i386bsd_sigtramp_saved_pc): Remove prototype.
3657 (i386bsd_sicontext_addr): Add prototype.
3658 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3659 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3660 (i386_svr4_sigtramp_saved_pc): Removed.
3661 (i386_svr4_sigcontext_addr): New function.
3662 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3663 Initialize tdep->sigcontext_addr instead. Initialize
3664 tdep->sc_pc_offset and tdep->sc_sp_offset.
3665 (i386_gdbarch_init): Likewise.
3666 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3667 any more.
3668 (i386bsd_sigtramp_saved_pc): Remove function.
3669 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3670 Initialize tdep->sigcontext_addr instead. Initialize
3671 tdep->sc_pc_offset.
3672 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3673 of tdep->sigtramp_saved_pc.
3674 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3675 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3676 instead.
3677
3a1e71e3
MK
3678 * i386-tdep.c (i386_frameless_function_invocation,
3679 i386_frame_num_args, i386_frame_init_saved_regs,
3680 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3681 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3682 i386_extract_return_value, i386_store_return_value,
3683 i386_extract_struct_value_address, i386_register_virtual_type,
3684 i386_register_convertible, i386_register_convert_to_virtual,
3685 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3686 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3687 static.
3688
52e9098c
MK
36892002-07-01 Mark Kettenis <kettenis@gnu.org>
3690
77b13a25
MK
3691 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3692
52e9098c
MK
3693 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3694 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3695 this macro. Include "value.h".
3696
1b372fff
AS
36972002-06-30 Aidan Skinner <aidan@velvet.net>
3698
3699 * ada-exp.tab.c: remove as it's a generated file
3700 * ada-lex.c: remove as it's a generated file
3701
9c5045b5
MK
37022002-06-30 Mark Kettenis <kettenis@gnu.org>
3703
4a93c5bb
MK
3704 * config/i386/tm-i386.h (struct frame_info, struct
3705 frame_saved_regs, struct value, struct type): Remove forward
3706 declarations.
3707
322d4fe0
MK
3708 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3709 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3710 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3711 (FILL_FPXREGSET): Define.
3712
fdd8263d
MK
3713 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3714
482e577b
MK
3715 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3716 i[3456]86-*-netbsd* case.
3717 * config/i386/tm-obsd.h: Removed.
3718 * config/i386/obsd.mt: Removed.
3719 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3720 core-aout.o.
3721 (MH_CFLAGS): Add -DYYDEBUG=0.
3722
6916549a
MK
3723 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3724 i386nbsd_sc_pc_offset on OpenBSD too.
3725
9c5045b5
MK
3726 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3727 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3728 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3729 define.
3730 * i386bsd-tdep.c: Include "arch-utils.h".
3731 (i386bsd_aout_in_solib_call_trampoline): New function.
3732 (i386bsd_init_abi): Set in_solib_call_trampoline to
3733 i386bsd_aout_in_solib_call_trampoline.
3734 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3735 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3736
aa84d1bb
AC
37372002-06-28 Andrew Cagney <ac131313@redhat.com>
3738
3739 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3740 (struct obstack, struct bcache): Add opaque declarations.
3741 * Makefile.in (macrotab_h): Update
3742
b4d83933
AC
37432002-06-28 Andrew Cagney <ac131313@redhat.com>
3744
3745 * blockframe.c (generic_find_dummy_frame): Change return type to
3746 ``struct regcache''.
3747 (struct dummy_frame): Replace field ``registers'' with regcache, a
3748 struct regcache object.
3749 (generic_find_dummy_frame): Update.
3750 (generic_push_dummy_frame): Update. Use regcache_xfree,
3751 regcache_xmalloc and regcache_cpy.
3752 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3753 regcache_xfree.
3754 (deprecated_generic_find_dummy_frame): Update.
3755 (generic_read_register_dummy): Update. Use
3756 regcache_read_as_address.
3757 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3758 (generic_get_saved_register): Update. Use regcache_read.
3759
08c0b5bc
AC
37602002-06-28 Andrew Cagney <ac131313@redhat.com>
3761
3762 * Makefile.in (objfiles_h): Add $(bcache_h).
3763 * objfiles.h: Include "bcache.h".
3764
3765 * Makefile.in (symtab_h): Remove $(bcache_h).
3766 * symtab.h: Do not include "bcache.h".
3767
1f89801a
AC
37682002-06-28 Andrew Cagney <ac131313@redhat.com>
3769
3770 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3771 generic_func_frame_chain_valid.
3772
b9644b58
DB
37732002-06-28 David O'Brien <obrien@FreeBSD.org>
3774
3775 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3776 * config/i386/tm-fbsd.h: Likewise.
3777
dd486634
AC
37782002-06-28 Andrew Cagney <ac131313@redhat.com>
3779
3780 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3781 generic_unwind_get_saved_register.
3782
0b434a00
AC
37832002-06-27 Andrew Cagney <ac131313@redhat.com>
3784
3785 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3786 * regcache.c (supply_register): Add missing argument to
3787 register_buffer call.
3788
f30e5a77
AC
37892002-06-27 Andrew Cagney <ac131313@redhat.com>
3790
3791 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3792 Solaris /bin/grep does not not like it. From Peter Schauer.
3793
9f064c95
TT
37942002-06-26 Tom Tromey <tromey@redhat.com>
3795
3796 * command.h (add_setshow_cmd): Declare.
3797 (add_setshow_cmd_full): Declare.
3798 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3799 returns void. Use add_setshow_cmd_full.
3800 (add_setshow_cmd_full): New function.
3801 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3802 (add_setshow_boolean_cmd): Likewise.
3803
099c7589
JT
38042002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3805
3806 * config/vax/tm-vax.h: Protect from multiple inclusion.
3807 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3808 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3809 * config/vax/tm-vaxbsd.h: ...here. New file.
3810 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3811
1d049c5e
JT
38122002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3813
3814 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3815 (BELIEVE_PCC_PROMOTION): Remove.
3816 (AP_REGNUM): Move to...
3817 * config/vax/nm-vax.h: ...here.
3818 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3819 (vax_breakpoint_from_pc): New function.
3820 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3821 and gdbarch_believe_pcc_promotion.
3822
4791e091
JT
38232002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3824
3825 * Makefile.in (vax_tdep_h): Define.
3826 (vax-tdep.o): Use $(vax_tdep_h).
3827 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3828 (vax_dump_tdep): New function.
3829 (_initialize_vax_tdep): Register vax_dump_tdep.
3830 * vax-tdep.h: Include osabi.h.
3831 (struct gdbarch_tdep): New.
3832
da130f98
AC
38332002-06-26 Andrew Cagney <cagney@redhat.com>
3834
3835 * frame.h (deprecated_generic_find_dummy_frame): Rename
3836 generic_find_dummy_frame.
3837 * blockframe.c (generic_find_dummy_frame): Make static.
3838 (deprecated_generic_find_dummy_frame): New function.
3839 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3840 generic_find_dummy_frame with deprecated_find_dummy_frame.
3841 (sh64_nofp_frame_init_saved_regs): Ditto.
3842 (sh_fp_frame_init_saved_regs): Ditto.
3843 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3844 (s390_frame_chain): Ditto.
3845 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3846
6300c360
GS
38472002-06-26 Grace Sainsbury <graces@redhat.com>
3848
3849 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3850 gdbarch vector are at the top.
3851 (NUM_REGS): Remove.
3852 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3853 (FRAME_ARGS_ADDRESS): Remove.
3854 (FRAME_LOCALS_ADDRESS): Remove.
3855 (FRAME_NUM_ARGS): Remove.
3856 (FRAME_ARGS_SKIP): Remove.
3857 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3858 (m68k_gdbarch_init): Add gdbarch initializations for macros
3859 undefined in tm-m68k.h
3860
1c617db8
GS
38612002-06-26 Grace Sainsbury <graces@redhat.com>
3862
3863 * monitor.h: Add the function regname to monitor_ops
3864 structure. This way NUM_REGS does not have to be a constant.
3865 * monitor.c (monitor_fetch_register): Added support for regname
3866 function. The function is called if the array regnames is NULL.
3867 (monitor_store_register): Same.
da130f98
AC
3868 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3869 regnames array.
1c617db8
GS
3870 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3871 cpu32bug_cmds.regname to point to new function.
3872 * abug-rom.c (abug_regname): Same as above.
3873 (init_abug_cmds): Same.
3874 * dbug-rom.c (dbug_regname): Same as above.
3875 (init_dbug_cmds): Same.
3876 * remote-est.c (est_regname): Same.
3877 (init_est_cmds): Same.
3878 * rom68k-rom.c (rom68k_regname): Same.
3879 (init_rom68k_cmds): Same.
3880
ea9365bb
TT
38812002-06-25 Tom Tromey <tromey@redhat.com>
3882
3883 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3884
72cec141
AC
38852002-06-25 Andrew Cagney <cagney@redhat.com>
3886
3887 * infrun.c (stop_registers): Change variable's type to ``struct
3888 regcache'''.
3889 (xmalloc_inferior_status): Delete function.
3890 (free_inferior_status): Delete function.
3891 (normal_stop): Use regcache_cpy.
3892 (struct inferior_status): Change type of fields ``stop_registers''
3893 and ``registers'' to ``struct regcache''.
3894 (write_inferior_status_register): Use regcache_write.
3895 (save_inferior_status): Instead of calling
3896 xmalloc_inferior_status, allocate the inf_status buffer directly.
3897 Use regcache_dup_no_passthrough and regcache_dup to save the
3898 buffers.
3899 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3900 Replace the stop_registers regcache instead of overriding it. Use
3901 regcache_xfree. Instead of calling free_inferior_status, xfree
3902 the buffer directly.
3903 (discard_inferior_status): Use regcache_xfree. Instead of calling
3904 free_inferior_status, xfree the buffer directly.
3905 (build_infrun): Use regcache_xmalloc.
3906 (_initialize_infrun): Delete redundant call to build_infrun.
3907
3908 * Makefile.in (infcmd.o): Add $(regcache_h).
3909
3910 * infcmd.c: Include "regcache.h".
3911 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3912 obtain the address of `stop_registers' register buffer.
3913 (print_return_value): Ditto.
3914
3915 * inferior.h (struct regcache): Add opaque declaration.
3916 (stop_registers): Change variable's declared type to ``struct
3917 regcache''.
3918
defc6f8c
TT
39192002-06-24 Tom Tromey <tromey@redhat.com>
3920
c0e624e7
TT
3921 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3922 * target.c (initialize_targets): Fixed typo in
3923 trust-readonly-sections `show' documentation.
3924
defc6f8c
TT
3925 * main.c: Marked all strings with _().
3926
2b236d82
DH
39272002-06-24 Don Howard <dhoward@redhat.com>
3928
3929 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3930 that means max CORE_ADDR+1.
3931 (lookup_mem_region): Ditto.
3932 (mem_info_command): Ditto.
3933
942dc0e9
GS
39342002-06-24 Grace Sainsbury <graces@redhat.com>
3935
3936 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3937 (REGISTER_BYTES_OK): Remove.
3938 (REGISTER_BYTES): Remove.
3939 (STORE_STRUCT_RETURN): Remove.
3940 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3941 (STORE_RETURN_VALUE): Remove.
3942 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3943 (FRAME_CHAIN): Remove.
3944 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3945 (FRAME_SAVED_PC): Remove.
3946 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3947 (m68k_store_struct_return): Add.
3948 (m68k_deprecated_extract_return_value): Add.
3949 (m68k_deprecated_extract_struct_value_address): Add.
3950 (m68k_store_return_value): Add.
3951 (m68k_frame_chain): Add.
3952 (m68k_frameless_function_invocation): Add.
3953 (m68k_frame_saved_pc): Add.
3954 (m68k_gdbarch_init): added set_gdbarch calls for new
3955 functions and deleted macros.
3956
03c30d4d
TT
39572002-06-23 Tom Tromey <tromey@redhat.com>
3958
3959 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3960 (ALLDEPFILES): Likewise.
3961 (udiheaders): Removed.
3962 (udip2soc.o): Likewise.
3963 (udi2go32.o): Likewise.
3964 (udr.o): Likewise.
3965 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3966
37e71372
AC
39672002-06-22 Andrew Cagney <ac131313@redhat.com>
3968
06a6ac57
AC
3969 * infrun.c (_initialize_infrun): Delete unnecessary call to
3970 build_infrun.
3971
37e71372
AC
3972 * regcache.h: Update comments describing the regcache_cpy family
3973 of functions.
3974 (regcache_save, regcache_restore): Delete declaration.
3975 (regcache_save_no_passthrough): Delete declaration.
3976 (regcache_restore_no_passthrough): Delete declaration.
3977 * regcache.c (regcache_save): Delete function.
3978 (regcache_save_no_passthrough): Delete function.
3979 (regcache_restore): Delete function.
3980 (regcache_restore_no_passthrough): Delete function.
3981
78f6d055
AC
39822002-06-21 Andrew Cagney <ac131313@redhat.com>
3983
3984 * config/m68k/tm-m68k.h: Fix typo.
3985 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3986 (m68k_frame_init_saved_regs): Declare.
3987
78b119cb
JB
39882002-06-21 Jim Blandy <jimb@redhat.com>
3989
3990 Remove some vestiges of Harris 88k support.
3991 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3992 register numbering quirk.
3993 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3994 odd symbols occurring in Harris 88k ELF targets.
3995
0fbb3da7
TT
39962002-06-21 Tom Tromey <tromey@redhat.com>
3997
3998 * gdb_locale.h: New file.
3999 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4000 (defs_h): Added gdb_locale.h.
4001 * configure, config.in: Rebuilt.
4002 * configure.in (PACKAGE): Define.
4003 * defs.h: Include gdb_locale.h.
4004 * main.c (captured_main): Call setlocale, bindtextdomain,
4005 textdomain.
4006
456f8b9d
DB
40072002-06-21 Dave Brolley <brolley@redhat.com>
4008
4009 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4010 * config/frv/frv.mt: New file.
4011 * config/frv/tm-frv.h: New file.
4012 * configure.tgt: Support frv-*-*.
4013 * Makefile.in (frv-tdep.o): New target.
4014 * frv-tdep.c: New file.
4015 * NEWS: Mention frv.
4016
cdd463f9
DB
40172002-06-21 Dave Brolley <brolley@redhat.com>
4018
4019 * MAINTAINERS: Add self to "Write After Approval" list.
4020
5d3ed2e3
GS
40212002-06-21 Grace Sainsbury <graces@redhat.com>
4022
4023 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4024 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4025 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4026 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4027 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4028
4029 * m68k-tdep.c: Include arch-utils.h
4030 (m68k_register_raw_size): Add.
4031 (m68k_register_virtual_size): Add.
4032 (m68k_register_virtual_type): Add.
4033 (m68k_register_name): Add.
4034 (m68k_stack_align): Add.
4035 (m68k_register_byte): Add.
4036 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4037 tm-m68k.h.
4038
7f8e7424
GS
40392002-06-21 Grace Sainsbury <graces@redhat.com>
4040
a2c6a6d5 4041 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4042 m68k_find_saved_regs.
4043 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4044 references to it with frame->saved_regs.
7f8e7424
GS
4045 (m68k_gdbarch_init): Added function calls to initialize the
4046 gdbarch structure.
a2c6a6d5
GS
4047 (m68k_fix_call_dummy): Add.
4048 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4049 (CALL_DUMMY): Remove.
4050 (CALL_DUMMY_LENGTH): Remove.
4051 (CALL_DUMMY_START_OFFSET): Remove.
4052 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4053 (FIX_CALL_DUMMY): Remove.
4054 (PUSH_DUMMY_FRAME): Remove.
4055 (POP_FRAME): Remove.
7f8e7424 4056
f461f5cf
PM
40572002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4058
4059 * parse.c (parse_fprintf): New function used to avoid calls to
4060 fprintf in bison parser generated debug code.
4061 * parser-defs.h: Declaration of new parse_fprintf function.
4062 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4063 Set YYDEBUG to 1 by default.
4064 Set YYFPRINTF as parse_fprintf.
4065
7f0c12ed
ML
40662002-06-21 Michal Ludvig <mludvig@suse.cz>
4067
4068 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4069 encoding anymore.
4070 (pointer_encoding, enum ptr_encoding): New.
4071 (execute_cfa_program): Take care about pointer encoding.
4072 (dwarf2_build_frame_info): Only call parse_frame_info for
4073 .debug_frame and .eh_frame.
4074 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4075 fixed augmentation handling, added relative addressing,
4076 ignore duplicate FDEs. Added comments.
19d833a2 4077 * dwarf2cfi.c: Reindented.
7f0c12ed 4078
87c4a039
EZ
40792002-06-20 Elena Zannoni <ezannoni@redhat.com>
4080
4081 * event-top.c (command_handler): Don't use space_at_cmd_start
4082 unless there is sbrk() on the host. Assign time and space data
4083 to union fields of the appropriate length.
4084
1cf877ad
ML
40852002-06-20 Michal Ludvig <mludvig@suse.cz>
4086
4087 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4088 x86_64_register_name. Return type changed to 'const char *'.
4089 (x86_64_register_name2nr): Rename to x86_64_register_number.
4090 (x86_64_gdbarch_init): Update to reflect the change.
4091 * x86-64-tdep.h: Ditto.
4092 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4093 (supply_fpregset): Ditto.
4094
3fadccb3
AC
40952002-06-19 Andrew Cagney <cagney@redhat.com>
4096
4097 * regcache.h: Update copyright.
4098 (struct regcache, struct gdbarch): Add opaque declarations.
4099 (current_regcache): Declare global variable.
4100 (regcache_read, regcache_write): Add gdbarch parameter.
4101 (regcache_save, regcache_save_no_passthrough)
4102 (regcache_restore, regcache_restore_no_passthrough)
4103 (regcache_dup, regcache_dup_no_passthrough)
4104 (regcache_cpy, regcache_cpy_no_passthrough)
4105 (deprecated_grub_regcache_for_registers)
4106 (deprecated_grub_regcache_for_register_valid)
4107 (regcache_valid_p): Add function declarations.
4108
4109 * regcache.c: Update copyright.
4110 (regcache_descr_handle): New global variable.
4111 (struct regcache_descr): Define.
4112 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4113 (regcache_descr, xfree_regcache_descr): New functions.
4114 (struct regcache): Define.
4115 (regcache_xmalloc, regcache_xfree): New functions.
4116 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4117 (regcache_dup, regcache_dup_no_passthrough): New functions.
4118 (regcache_valid_p, regcache_read_as_address): New functions.
4119 (deprecated_grub_regcache_for_registers): New function.
4120 (deprecated_grub_regcache_for_register_valid): New function.
4121 (current_regcache): New global variable.
4122 (register_buffer): Add regcache parameter. Update calls.
4123 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4124 (read_register_gen, write_register_gen): Update register_buffer
4125 call. Test for legacy_p instead of gdbarch_register_read_p or
4126 gdbarch_register_write_p.
4127 (regcache_collect): Update register_buffer call.
4128 (build_regcache): Rewrite. Use deprecated grub functions.
4129 (regcache_save, regcache_save_no_passthrough): New functions.
4130 (regcache_restore, regcache_restore_no_passthrough): New
4131 functions.
4132 (_initialize_regcache): Create the regcache_data_handle. Swap
4133 current_regcache global variable.
4134
4135 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4136 parameter to regcache_read and regcache_write calls.
4137 (sh4_register_read): Ditto.
4138 (sh64_pseudo_register_read): Ditto.
4139 (sh64_register_read): Ditto.
4140 (sh_pseudo_register_write): Ditto.
4141 (sh4_register_write): Ditto.
4142 (sh64_pseudo_register_write): Ditto.
4143 (sh64_register_write): Ditto.
4144
4145 * defs.h (XCALLOC): Define.
4146
152d9db6
GS
41472002-06-19 Grace Sainsbury <graces@redhat.com>
4148
4149 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4150 * m68k-tdep.c (m68k_gdbarch_init): Added.
4151 (m68k_dump_tdep): Added.
4152
170911c7
DJ
41532002-06-19 Daniel Jacobowitz <drow@mvista.com>
4154
4155 * ada-lang.c (fill_in_ada_prototype): Update comment.
4156
2e4ebe70
DJ
41572002-06-19 Daniel Jacobowitz <drow@mvista.com>
4158
4159 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4160 MIPS_ABI_LAST.
4161 (mips_abi_string, mips_abi_strings): New.
4162 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4163 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4164 tdep->mips_abi_string. Honor mips_abi_string. Default to
4165 O32 if no ABI is found.
4166 (mips_dump_tdep): Use mips_abi_strings.
4167 (mips_abi_update): New function.
4168 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4169 ``set mips abi'' and ``show mips abi''. Check the size of
4170 mips_abi_strings.
4171
16775908
AC
41722002-06-19 Andrew Cagney <cagney@redhat.com>
4173
4174 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4175 constant.
4176
5051bfa4 41772002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4178
5051bfa4
JB
4179 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4180 current frame using only the first stack size adjustment. All
4181 subsequent size adjustments are not considered to be part of
4182 the "static" part of the current frame.
4183 Compute the address of the saved registers relative to the
4184 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4185 in use in this frame.
4186
56468235
DH
41872002-06-18 Don Howard <dhoward@redhat.com>
4188
4189 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4190 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4191 suggesting this solution.
4192
0b624158
AC
41932002-06-18 Andrew Cagney <ac131313@redhat.com>
4194
4195 * config/romp/xm-rtbsd.h: Delete file.
4196 * config/romp/rtbsd.mh: Delete file.
4197
221ea385
KS
41982002-06-18 Keith Seitz <keiths@redhat.com>
4199
4200 * breakpoint.c (condition_command): Post breakpoint_modify
4201 when a condition is added to an existing breakpoint.
4202 (commands_command): Likewise for commands.
4203 (set_ignore_count): Likewise for ignore counts.
4204 If no tty, do not simply return, still need to send event
4205 notification.
4206 (ignore_command): Only print a newline if the command came
4207 from a tty.
4208 Don't call breakpoints_changed, since this is now properly
4209 handled by set_ignore_count.
4210
5402eed1
AC
42112002-06-18 Andrew Cagney <cagney@redhat.com>
4212
4213 * MAINTAINERS: Note that cris-elf target can be compiled with
4214 -Werror.
4215 * cris-tdep.c (cris_register_name): Make return type constant.
4216 (cris_breakpoint_from_pc): Ditto.
4217
cc22880b
ML
42182002-06-18 Michal Ludvig <mludvig@suse.cz>
4219
4220 * frame.h (struct frame_info): Change type of context to
4221 'struct context'.
4222
fa88f677
AC
42232002-06-17 Andrew Cagney <cagney@redhat.com>
4224
4225 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4226 pointer.
4227 * gdbarch.h, gdbarch.c: Regenerate.
4228 * config/mips/tm-mips.h (mips_register_name): Update.
4229 * i386-tdep.h (i386_register_name): Update.
4230 * mips-tdep.c (mips_register_name): Update
4231 * alpha-tdep.c (alpha_register_name): Update.
4232 * arch-utils.c (legacy_register_name): Update.
4233 * arch-utils.h (legacy_register_name): Update.
4234 * avr-tdep.c (avr_register_name): Update.
4235 * ia64-tdep.c (ia64_register_name): Update.
4236 * i386-tdep.c (i386_register_name): Update.
4237 * sparc-tdep.c (sparc32_register_name): Update.
4238 (sparc64_register_name): Update.
4239 (sparclite_register_name): Update.
4240 (sparclet_register_name): Update.
4241 * sh-tdep.c (sh_generic_register_name): Update.
4242 (sh_sh_register_name): Update.
4243 (sh_sh3_register_name): Update.
4244 (sh_sh3e_register_name): Update.
4245 (sh_sh_dsp_register_name): Update.
4246 (sh_sh3_dsp_register_name): Update.
4247 (sh_sh4_register_name): Update.
4248 (sh_sh64_register_name): Update.
4249 * s390-tdep.c (s390_register_name): Update.
4250 * rs6000-tdep.c (rs6000_register_name): Update.
4251 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4252 (ns32k_register_name_32382): Update.
4253 * d10v-tdep.c (d10v_ts2_register_name): Update.
4254 (d10v_ts3_register_name): Update.
4255 * xstormy16-tdep.c (xstormy16_register_name): Update.
4256 * vax-tdep.c (vax_register_name): Update.
4257 * v850-tdep.c (v850_register_name): Update.
4258 * m68hc11-tdep.c (m68hc11_register_name): Update.
4259 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4260 (am33_register_name): Update.
4261
ea1e7ef6
GS
42622002-06-17 Grace Sainsbury <graces@redhat.com>
4263
4264 * m68k-tdep.c: Reindented.
4265
9b02dd1b
AC
42662002-06-17 Andrew Cagney <ac131313@redhat.com>
4267
4268 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4269 list of predefined types.
4270
8758dec1
MK
42712002-06-16 Mark Kettenis <kettenis@gnu.org>
4272
b6197528
MK
4273 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4274 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4275 REGISTER_CONVERT_TO_RAW): Remove defines.
4276 (i386_register_virtual_type, i386_register_convertible,
4277 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4278 Remove prototypes.
4279 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4280 macros mentioned above.
4281
82b47e62
MK
4282 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4283 (i386lynx_saved_pc_after_call): Remove prototype.
4284 * i386ly-tdep.c: Include "i386-tdep.h".
4285 (i386lynx_saved_pc_after_call): Make static. Use
4286 read_memory_nobpt instead of read_memory. Use
4287 read_memory_unsigned_integer instead of read_memory_integer.
4288 (i386lynx_init_abi): New function.
4289 (i386lynx_coff_osabi_sniffer): New function.
4290 (_initialize_i386bsd_tdep): New function.
4291
8758dec1
MK
4292 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4293 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4294 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4295 (i386_fix_call_dummy): Remove prototype.
4296 * i386-tdep.c (i386_call_dummy_words): New variable.
4297 (i386_gdbarch_init): Adjust for removal of the
4298 macros mentioned above.
4299
e9e68a56
AC
43002002-06-15 Andrew Cagney <ac131313@redhat.com>
4301
4302 * command.h (add_setshow_auto_boolean_cmd): Replace
4303 add_set_auto_boolean_cmd.
4304 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4305 add_set_auto_boolean_cmd.
4306 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4307 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4308 mask-address'' command.
4309 (show_mask_address): Add cmd parameter.
4310 * remote.c (add_packet_config_cmd): Update. Change type of
4311 set_func and show_func to cmd_sfunc_ftype.
4312 (_initialize_remote): Update `set remote Z-packet'
4313 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4314 (show_remote_protocol_e_packet_cmd): Ditto.
4315 (show_remote_protocol_E_packet_cmd): Ditto.
4316 (show_remote_protocol_P_packet_cmd): Ditto.
4317 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4318 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4319 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4320 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4321 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4322 (show_remote_protocol_Z_packet_cmd): Ditto.
4323 (show_remote_protocol_binary_download_cmd): Ditto.
4324 (show_remote_cmd): Pass NULL to all of above.
4325
fc08ec52
MK
43262002-06-15 Mark Kettenis <kettenis@gnu.org>
4327
4328 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4329 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4330 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4331 POP_FRAME): Remove defines.
4332 (i386_push_arguments, i386_store_struct_return,
4333 i386_extract_return_value, i386_store_return_value,
4334 i386_extract_struct_value_address, i386_push_dummy_frame,
4335 i386_pop_frame): Renove prototypes.
4336 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4337 macros mentioned above.
4338
e707bbc2
AC
43392002-06-15 Andrew Cagney <ac131313@redhat.com>
4340
4341 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4342 add_set_boolean_cmd.
4343 (add_setshow_cmd): New function.
4344 * command.h (add_setshow_boolean_cmd): Replace
4345 add_set_boolean_cmd.
4346 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4347 and ``set rdiromatzero''.
4348 * maint.c (_initialize_maint_cmds): Update commented out code.
4349 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4350 * target.c (initialize_targets): Update `set
4351 trust-readonly-sections'.
4352 * remote.c (_initialize_remote): Update `set remotebreak'.
4353
42fdc8df
MK
43542002-06-15 Mark Kettenis <kettenis@gnu.org>
4355
93924b6b
MK
4356 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4357 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4358 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4359 fit into multi-arch framework.
4360 (i386_breakpoint_from_pc): New function.
4361 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4362 above.
4363
42fdc8df
MK
4364 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4365 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4366 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4367 (i386_frameless_function_invocation, i386_frame_num_args,
4368 i386_frame_init_saved_regs): Remove prototypes.
4369 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4370 macros mentioned above.
4371
9773a94b
AC
43722002-06-15 Andrew Cagney <ac131313@redhat.com>
4373
4374 * cli/cli-decode.c (set_cmd_cfunc): Update.
4375 (set_cmd_sfunc): Update.
4376 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4377 (set_cmd_sfunc, set_cmd_cfunc): Update.
4378 * cli/cli-decode.h: Update.
4379
6e157172
MK
43802002-06-15 Mark Kettenis <kettenis@gnu.org>
4381
4382 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4383 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4384
7f19b9a2
AC
43852002-06-15 Andrew Cagney <ac131313@redhat.com>
4386
4387 * defs.h (auto_boolean): Declare enum.
4388 * command.h (cmd_auto_boolean): Delete enum.
4389 * mips-tdep.c (mask_address_var): Update.
4390 (mips_mask_address_p): Update.
4391 (show_mask_address): Update.
4392 * remote.c (struct packet_config): Update.
4393 (update_packet_config): Update.
4394 (show_packet_config_cmd): Update.
4395 (packet_ok): Update.
4396 (add_packet_config_cmd): Update.
4397 (_initialize_remote):
4398 * command.h: Update.
4399 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4400 (do_setshow_command): Update.
4401 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4402 * cli/cli-decode.h: Update.
4403
1cf88de5
MK
44042002-06-15 Mark Kettenis <kettenis@gnu.org>
4405
22ba8cf2
MK
4406 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4407 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4408 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4409 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4410 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4411 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4412
762c5349
MK
4413 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4414 list of DJGPP COFF targets.
4415
091198bb
MK
4416 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4417 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4418 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4419 (FP0_REGNUM): Remove define.
4420 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4421 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4422 (i386_register_virtual_size): Remove protoype.
4423 * i386-tdep.c (i386_register_virtual_size): Removed.
4424 (i386_extract_return_value, i386_store_return_value): Use
4425 FP0_REGNUM instead of NUM_FREGS to determine whether the
4426 floating-point registers are available.
4427 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4428 Adjust for removal of macros mentioned above.
4429
44302002-06-15 Mark Kettenis <kettenis@gnu.org>
4431
fcc9bf01
MK
4432 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4433 comments.
4434 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4435 Remove prototypes.
4436 (supply_gregset, fill_gregset): Remove use of register keyword and
4437 remove declaration for regmap. Use I386_NUM_GREGS instead of
4438 NUM_REGS and NUM_FREGS.
4439 (FPREGSET_FSAVE_OFFSET): Remove.
4440 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4441 NUM_FREGS to determine whether the floating-point registers are
4442 available.
4443
65e78234
MK
4444 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4445 gnu_store_registers): Replace usage of NUM_GREGS with
4446 I386_NUM_GREGS.
4447
98df6387
MK
4448 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4449 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4450 usage of NUM_GREGS with I386_NUM_GREGS.
4451
099a9414
MK
4452 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4453
57976e88
MK
4454 * i386bsd-nat.c: Include "i386-tdep.h".
4455 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4456 I386_NUM_GREGS.
4457
b335f4a6
MK
4458 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4459 and associated comment. They no longer make any sense, since we
4460 don't use this file anymore on Linux.
4461
1cf88de5
MK
4462 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4463 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4464 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4465 elements in these arrays.
4466 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4467 MAX_NUM_REGS.
4468
daa66587
MK
44692002-06-15 Mark Kettenis <kettenis@gnu.org>
4470
4471 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4472 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4473
26e9b323
AC
44742002-06-14 Andrew Cagney <cagney@redhat.com>
4475
4476 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4477 EXTRACT_RETURN_VALUE.
4478 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4479 EXTRACT_STRUCT_VALUE_ADDRESS.
4480 * gdbarch.h, gdbarch.c: Regenerate.
4481
4482 * values.c (value_being_returned): Handle
4483 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4484 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4485
4486 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4487 * arm-tdep.c (arm_gdbarch_init): Update.
4488 * avr-tdep.c (avr_gdbarch_init): Update.
4489 * cris-tdep.c (cris_gdbarch_init): Update.
4490 * d10v-tdep.c (d10v_gdbarch_init): Update.
4491 * ia64-tdep.c (ia64_gdbarch_init): Update.
4492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4494 * s390-tdep.c (s390_gdbarch_init): Update.
4495 * sh-tdep.c (sh_gdbarch_init): Update.
4496 * s390-tdep.c (s390_gdbarch_init): Update.
4497 * sparc-tdep.c (sparc_gdbarch_init): Update.
4498 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4499 * v850-tdep.c (v850_gdbarch_init): Update.
4500 * vax-tdep.c (vax_gdbarch_init): Update.
4501 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4503
4504 * config/arc/tm-arc.h: Update.
4505 * config/d30v/tm-d30v.h: Update.
4506 * config/fr30/tm-fr30.h: Update.
4507 * config/h8300/tm-h8300.h: Update.
4508 * config/h8500/tm-h8500.h: Update.
4509 * config/i386/tm-i386.h: Update.
4510 * config/i386/tm-ptx.h: Update.
4511 * config/i386/tm-symmetry.h: Update.
4512 * config/i960/tm-i960.h: Update.
4513 * config/m32r/tm-m32r.h: Update.
4514 * config/m68k/tm-delta68.h: Update.
4515 * config/m68k/tm-linux.h: Update.
4516 * config/m68k/tm-m68k.h: Update.
4517 * config/m88k/tm-m88k.h: Update.
4518 * config/mcore/tm-mcore.h: Update.
4519 * config/mips/tm-mips.h: Update.
4520 * config/mn10200/tm-mn10200.h: Update.
4521 * config/pa/tm-hppa.h: Update.
4522 * config/pa/tm-hppa64.h: Update.
4523 * config/sparc/tm-sp64.h: Update.
4524 * config/sparc/tm-sparc.h: Update.
4525 * config/sparc/tm-sparclet.h: Update.
4526 * config/z8k/tm-z8k.h: Update.
4527
5179e78f
AC
45282002-06-14 Andrew Cagney <cagney@redhat.com>
4529
4530 * Makefile.in (i386_linux_tdep_h): Define.
4531 (i386_tdep_h, i387_tdep_h): Define.
4532 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4533 $(i386_tdep_h) and $(i387_tdep_h).
4534 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4535
8201327c
MK
45362002-06-14 Mark Kettenis <kettenis@gnu.org>
4537
edf393ac
MK
4538 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4539 Already covered by the default.
4540
896fb97d
MK
4541 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4542 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4543 (i386_gdbarch_init): Initialize long_double_format and long_double
4544 bit.
4545
8201327c
MK
4546 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4547 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4548 Move these to ...
4549 * config/i386/i386sol2.mh: ... here.
4550 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4551 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4552 (SIGCONTEXT_PC_OFFSET): Remove define.
4553 (IN_SIGTRAMP): Remove define.
4554 * i386-sol2-tdep.c: New file.
4555
4556 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4557 * config/i386/tm-i386nw.h: Removed.
4558
4559 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4560 USE_STRUCT_CONVENTION): Remove defines.
4561 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4562 (get_longjmp_target): Remove prototype.
4563 (IN_SIGTRAMP): Remove define.
4564 (i386bsd_in_sigtramp): Remove prototype.
4565 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4566 function. Update comment accordingly
4567 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4568 (FRAME_SAVED_PC): Remove define.
4569 (i386bsd_frame_saved_pc): Remove prototype.
4570 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4571 GET_LONGJMP_TARGET): Remove defines.
4572 (get_longjmp_target): Remove prototype.
4573 (IN_SIGTRAMP): Remove define.
4574 (i386bsd_in_sigtramp): Remove prototype.
4575 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4576 function. Update comment accordingly
4577 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4578 (FRAME_SAVED_PC): Remove define.
4579 (i386bsd_frame_saved_pc): Remove prototype.
4580 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4581 Remove prototype.
4582 (USE_STRUCT_CONVENTION): Remove prototype.
4583 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4584 declaration.
4585 (_initialize_i386bsd_nat): Revise logic to determine some
4586 constants at compile time when compiling a native GDB. Warn if
4587 things don't match up with what we expect.
4588 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4589 Remove variables.
4590 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4591 to use date stored in `struct gdbarch_tdep'.
4592 (i386bsd_sigcontext_offset): Remove varaible.
4593 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4594 stored in `struct gdbarch_tdep'.
4595 (i386bsd_frame_saved_pc): Make static.
4596 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4597 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4598 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4599 i386fbsd4_sc_pc_offset): New variables.
4600 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4601 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4602 functions.
4603 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4604 functions.
4605 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4606 Modify the value of i386fbsd_sigtramp_start and
4607 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4608 i386fbsd_sigtramp_end.
4609 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4610 function.
4611
4612 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4613 define to i386-linux-tdep.h.
4614 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4615 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4616 defines.
4617 (i386_linux_register_name, i386_linux_register_byte,
4618 i386_linux_register_raw_size): Remove prototypes.
4619 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4620 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4621 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4622 TARGET_WRITE_PC): Remove defines.
4623 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4624 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4625 i386_linux_write_pc): Remove prototypes.
4626 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4627 (get_longjmp_target): Remove prototype.
4628 * i386-linux-tdep.h: New file.
4629 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4630 * i386-linux-tdep.c: Include "i386-tdep.h" and
4631 "i386-linux-tdep.h".
4632 (i386_linux_register_name, i386_linux_register_byte,
4633 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4634 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4635 Make static.
4636 (i386_linux_init_abi): New function.
4637 (_initialize_i386_linux_tdep): New function.
4638
4639 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4640 (i386_saved_pc_after_call): Remove prototype.
4641 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4642 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4643 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4644 (i386_register_name, i386_stab_reg_to_regnum,
4645 i386_dwarf_reg_to_regnum): Remove prototypes.
4646 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4647 SIZEOF_SSE_REGS): Remove defines.
4648 (REGISTER_BYTES): Remove define.
4649 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4650 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4651 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4652 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4653 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4654 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4655 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4656 (get_longjmp_target): Remove prototype.
4657 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4658 (sigtramp_saved_pc): Remove define.
4659 (i386v4_sigtramp_saved_pc): Remove prototype.
4660 * config/i386/tm-go32.h (FRAME_CHAIN,
4661 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4662 (i386go32_frame_saved_pc): Remove prototype.
4663 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4664 (get_longjmp_target): Remove prototype.
4665 * i386-tdep.h: Include "osabi.h".
4666 (enum i386_abi): Removed.
4667 (enum struct_return): New enum.
4668 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4669 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4670 sc_pc_offset members.
4671 (i386_gdbarch_register_os_abi): Remove prototype.
4672 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4673 I386_SSE_NUM_REGS): New defines.
4674 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4675 I386_SSE_SIZEOF_REGS): New defines.
4676 (i386_register_name, i386_register_byte, i386_register_raw_size):
4677 New prototypes.
4678 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4679 (i386bsd_sigtramp_saved_pc): New prototype.
4680 * i386-tdep.c: Don't include "elf-bfd.h".
4681 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4682 i386_frame_chain, i386_saved_pc_after_call): Make static.
4683 (i386_frame_saved_pc): Rewrite to call architecture dependent
4684 function to deal with signal handlers. Make static.
4685 (i386go32_frame_saved_pc): Removed.
4686 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4687 Removed.
4688 (i386_get_longjmp_target): New function.
4689 (default_struct_convention, pcc_struct_convention,
4690 reg_struct_convention, valid_conventions, struct_convention): New
4691 variables.
4692 (i386_use_struct_convention): New function.
4693 (i386v4_sigtramp_saved_pc): Renamed to
4694 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4695 (i386_pc_in_sigtramp): New function.
4696 (i386_abi_names): Removed.
4697 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4698 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4699 Removed.
4700 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4701 i386_gdbarch_register_os_abi): Removed.
4702 (struct i386_abi_handler): Removed.
4703 (i386_abi_handler_list): Removed.
4704 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4705 functions.
4706 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4707 i386_nw_init_abi): New functions.
4708 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4709 Use set_gdbarch_xxx() calls instead of relying on macros for a
4710 number of calls.
4711 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4712 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4713 Register the various architecture variants defined in this file.
4714
ad2f7632
DJ
47152002-06-14 Daniel Jacobowitz <drow@mvista.com>
4716
4717 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4718 (struct main_type): Remove arg_types member. Update comments for
4719 struct field.
4720 (TYPE_ARG_TYPES): Remove.
4721 (TYPE_FN_FIELD_ARGS): Update.
4722 (smash_to_method_type): Update prototype.
4723
4724 * c-typeprint.c (cp_type_print_method_args): Take method type
4725 instead of argument list. Use new argument layout. Simplify.
4726 (c_type_print_args): Use new argument layout. Simplify.
4727 (c_type_print_base): Update call to cp_type_print_method_args.
4728 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4729 argument; use die->type instead. Update call to
4730 smash_to_method_type.
4731 (read_structure_scope): Update call to dwarf2_add_member_fn.
4732 * gdbtypes.c (allocate_stub_method): Update comment.
4733 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4734 Use new argument layout.
4735 (check_stub_method): Use new argument layout. Don't count
4736 void as an argument.
4737 (print_arg_types): Update comments. Use new argument layout.
4738 (recursive_dump_type): Don't print arg_types member.
4739 * hpread.c (hpread_read_struct_type): Use new argument layout.
4740 (fixup_class_method_type): Likewise.
4741 (hpread_type_lookup): Likewise.
4742 * stabsread.c (read_type): Update calls to read_args and
4743 smash_to_method_type.
4744 (read_args): Use new argument layout. Simplify.
4745 * valops.c (typecmp): Use new argument layout. Update parameters
4746 and comments. Simplify.
4747 (hand_function_call): Use new argument layout.
4748 (search_struct_method): Update call to typecmp.
4749 (find_overload_match): Use new argument layout.
4750
6da02953
DJ
47512002-06-13 Daniel Jacobowitz <drow@mvista.com>
4752
4753 * NEWS: Mention multithreaded debug support for gdbserver.
4754
519b2366
DJ
47552002-06-13 Daniel Jacobowitz <drow@mvista.com>
4756
4757 * MAINTAINERS: Mention NEWS.
4758
6c0d6680
DJ
47592002-06-13 Daniel Jacobowitz <drow@mvista.com>
4760
4761 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4762 (struct mips_objfile_private, compare_pdr_entries): New.
4763 (non_heuristic_proc_desc): Read the ".pdr" section if it
4764 is present.
4765
6529d2dd
AC
47662002-06-12 Andrew Cagney <ac131313@redhat.com>
4767
4768 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4769 (arm_debug): New static variable.
4770 (_initialize_arm_tdep): Add ``set debug arm'' command.
4771
26216b98
AC
47722002-06-12 Andrew Cagney <ac131313@redhat.com>
4773
4774 * Makefile.in (sim_arm_h): Define.
4775 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4776 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4777 (arm_register_sim_regno): New function, map an internal REGNUM
4778 onto a simulator register number.
4779 (arm_gdbarch_init): Set register_sim_regno.
4780
814b3ba0
AH
47812002-06-09 Aldy Hernandez <aldyh@redhat.com>
4782
4783 * MAINTAINERS: Add self.
4784
475b0867
JB
47852002-06-11 Jim Blandy <jimb@redhat.com>
4786
919d772c
JB
4787 * source.c (source_info): Mention whether the symtab has
4788 information about preprocessor macros.
4789
475b0867
JB
4790 Call the command `info macro', not `show macro'.
4791 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4792 Fix error message.
4793 (_initialize_macrocmd): Register `info_macro_command' in
4794 `infolist', not `showlist'.
4795
9e364162
DJ
47962002-06-11 Daniel Jacobowitz <drow@mvista.com>
4797
4798 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4799 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4800 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4801 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4802 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4803 unconditionally.
4804 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4805 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4806 (_initialize_mips_tdep): Remove dead code.
4807 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4808 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4809 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4810 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4811 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4812 MIPS_LAST_FP_ARG_REGNUM): Remove.
4813
23aa4c72
ML
48142002-06-11 Michal Ludvig <mludvig@suse.cz>
4815
4816 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4817 (unwind_tmp_obstack_free, parse_frame_info)
4818 (update_context, cfi_read_fp, cfi_write_fp)
4819 (cfi_frame_chain, cfi_init_extra_frame_info)
4820 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4821 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4822
70eb15a4
CV
48232002-06-11 Corinna Vinschen <vinschen@redhat.com>
4824
4825 * v850-tdep.c (v850_type_is_scalar): New function.
4826 (v850_use_struct_convention): Match current gcc implementation
4827 as close as possible.
4828 (v850_push_arguments): Fix stack_offset handling. Don't write
4829 struct_addr into register. This is done by v850_store_struct_return.
4830 (v850_extract_return_value): Care for structs.
4831 (v850_store_return_value): Ditto.
4832 (v850_store_struct_return): Actually write address.
4833
482a4d06
ML
48342002-06-11 Michal Ludvig <mludvig@suse.cz>
4835
4836 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4837 without debug information too.
4838
d855c300
AC
48392002-06-10 Andrew Cagney <ac131313@redhat.com>
4840
4841 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4842 Make multi-arch pure.
4843 * gdbarch.h, gdbarch.c: Re-generate.
4844 * arm-tdep.c (arm_print_float_info): Update.
4845 * arch-utils.h (default_print_float_info): Update.
4846 * arch-utils.c (default_print_float_info): Update.
4847 * infcmd.c (float_info): Update call.
4848
dd12a101
AC
48492002-06-10 Andrew Cagney <ac131313@redhat.com>
4850
4851 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4852 the front of the initialize list.
4853
101dcfbe
AC
48542002-06-10 Andrew Cagney <ac131313@redhat.com>
4855
4856 * infrun.c (struct inferior_status): Replace fields
4857 selected_frame_address and selected_level with field
4858 selected_frame_id.
4859 (save_inferior_status): Update. Use get_frame_id.
4860 (struct restore_selected_frame_args): Delete.
4861 (restore_selected_frame): Update. Use frame_find_by_id.
4862 (restore_inferior_status): Update.
4863
4864 * breakpoint.h (struct breakpoint): Change type of
4865 watchpoint_frame to frame_id.
4866 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4867 call to get_current_frame.
4868 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4869 get_current_frame.
4870 (watchpoint_check): Use frame_find_by_id.
4871
4872 * frame.h (record_selected_frame): Delete declaration.
4873 * stack.c (record_selected_frame): Delete function.
4874
4875 * frame.h (struct frame_id): Define.
4876 (get_frame_id): Declare.
4877 (frame_find_by_id): Declare.
4878 * frame.c (frame_find_by_id): New function.
4879 (get_frame_id): New function.
4880
304270b6
AV
48812002-06-10 Andrey Volkov <avolkov@transas.com>
4882
4883 * ser-e7kpc.c: Fix duplicated define and call of
4884 _initialize_ser_e7000pc
4885
2f2cf184
DJ
48862002-06-09 Daniel Jacobowitz <drow@mvista.com>
4887
4888 * signals/signals.c (target_signal_from_host): Fix #ifdef
4889 SIGRTMIN case.
4890 (do_target_signal_to_host): Likewise.
4891
caaa3122
DJ
48922002-06-09 Daniel Jacobowitz <drow@mvista.com>
4893
4894 * mips-tdep.c (mips_find_abi_section): New function.
4895 (mips_gdbarch_init): Call it.
4896
6ac5df3a
MK
48972002-06-09 Mark Kettenis <kettenis@gnu.org>
4898
4899 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4900 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4901 after Andrew's 2002-06-08 gdbarch change.
4902
82ea117a
MK
49032002-06-09 Mark Kettenis <kettenis@gnu.org>
4904
4905 * i386-linux-nat.c (suppy_gregset): Don't supply
4906 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4907 register cache.
4908 (fill_gregset): Don't fetch it under the same circumstances.
4909
3c25f8c7
AC
49102002-06-09 Andrew Cagney <cagney@redhat.com>
4911
4912 * Makefile.in (callback_h): Define.
4913 (remote_sim_h): Update path to remote-sim.h.
4914 (remote-rdp.o): Add $(callback_h).
4915 (remote-sim.o): Use $(callback_h).
4916 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4917 * remote-rdp.c: Include "gdb/callback.h".
4918
1029b7fa
MK
49192002-06-09 Mark Kettenis <kettenis@gnu.org>
4920
4921 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4922 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4923
616675d3
AC
49242002-06-08 Andrew Cagney <ac131313@redhat.com>
4925
a3efda28
AC
4926 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4927 * rdi-share/serpardr.c: Ditto.
4928 * rdi-share/unixcomm.c: Ditto.
4929 * rdi-share/serdrv.c: Ditto.
4930 * rdi-share/hostchan.h: Ditto.
4931 * rdi-share/hostchan.c: Ditto.
4932 * rdi-share/host.h: Ditto.
4933 * rdi-share/devsw.c: Ditto.
4934
c5f10366
AC
4935 * objfiles.h: Change type of obj_private to void pointer.
4936 * pa64solib.c: Update copyright. Don't include "assert.h", use
4937 strcmp instead of STREQ, use LONGEST, do not use PTR
4938 * somsolib.c: Ditto.
4939
616675d3
AC
4940 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4941 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4942 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4943
e4b415d9
AC
49442002-06-08 Andrew Cagney <ac131313@redhat.com>
4945
4946 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4947 (default_get_saved_register): Delete function.
4948 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4949 generic_unwind_get_saved_register.
4950 * gdbarch.h, gdbarch.c: Re-generate.
4951
ca0d0b52
AC
49522002-06-08 Andrew Cagney <ac131313@redhat.com>
4953
4954 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4955 generic_func_frame_chain_valid.
4956 * gdbarch.h, gdbarch.c: Re-generate.
4957 * blockframe.c (generic_func_frame_chain_valid): Only check
4958 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4959 passing FP to PC_IN_CALL_DUMMY.
4960 Fix PR gdb/360.
4961
76860b5f
AC
49622002-06-08 Andrew Cagney <ac131313@redhat.com>
4963
4964 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4965 (register_gdbarch_data): Initialize init_p.
4966 (gdbarch_data): Initialize data pointer using the init function.
4967 (init_gdbarch_data): Delete function.
4968 (gdbarch_update_p): Update.
4969 (initialize_non_multiarch): Update.
4970 (struct gdbarch): Add field initialized_p.
4971 * gdbarch.h, gdbarch.c: Re-generate.
4972
8dda9770
ML
49732002-06-07 Michal Ludvig <mludvig@suse.cz>
4974
4975 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4976 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4977 better do the things actually here.
4978 * x86-64-tdep.c (x86_64_register_name2nr): New.
4979 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4980 (x86_64_gdbarch_init): Respect the above change.
4981 * x86-64-tdep.h (x86_64_register_name2nr)
4982 (x86_64_register_nr2name): Add prototypes.
4983 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4984
3d79a47c
MS
49852002-06-06 Michael Snyder <msnyder@redhat.com>
4986
7bd91a28
MS
4987 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4988 Delete extra braces and re-indent.
4989 (d10v_store_return_value): Char return values
3d79a47c
MS
4990 must be shifted over by one byte in R0.
4991 (d10v_extract_return_value): Delete extra braces, re-indent.
4992
095a4c96
EZ
49932002-06-06 Elena Zannoni <ezannoni@redhat.com>
4994
4995 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4996 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4997 (d10v_integer_to_address): Rewrite.
4998 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4999 the d10v specific functions which take care of converting to the
5000 correct space.
5001
e8a77ca4
EZ
50022002-06-06 Elena Zannoni <ezannoni@redhat.com>
5003
5004 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5005 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5006
4f2e4a4f
AC
50072002-06-02 Andrew Cagney <ac131313@redhat.com>
5008
5009 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5010 includes.
5011 * config/tm-linux.h: Ditto.
5012 * config/alpha/tm-alphalinux.h: Ditto.
5013 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5014 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5015 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5016 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5017 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5018 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5019 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5020 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5021 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5022 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5023 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5024 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5025 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5026 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5027 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5028 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5029 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5030 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5031 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5032 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5033 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5034 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5035 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5036 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5037 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5038 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5039 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5040 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5041 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5042 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5043 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5044 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5045 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5046 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5047 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5048 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5049 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5050
ae2ab2ce
AS
50512002-05-04 Aidan Skinner <aidan@velvet.net>
5052
5053 * ada-exp.tab.c: New file
5054 * ada-exp.y: New file
5055 * ada-lang.c: New file
5056 * ada-lang.h: New file
5057 * ada-lex.c: New file
5058 * ada-lex.l: New file
5059 * ada-tasks.c: New file
5060 * ada-typeprint.c: New file
5061 * ada-valprint.c: New file
5062
0ddd0135
JT
50632002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5064
5065 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5066 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5067
750fbacc
JT
50682002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5071 insetead of ppc-linux-tdep.o.
5072 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5073 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5074
df94e18a
AC
50752002-06-02 Andrew Cagney <ac131313@redhat.com>
5076
5077 2002-05-07 Christian Groessler <chris@groessler.org>
5078 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5079 bit register contents for little endian hosts.
5080
1a38ab75
AC
50812002-06-01 Andrew Cagney <ac131313@redhat.com>
5082
5083 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5084 any maintainer.
5085
8b1632ac
AC
50862002-06-01 Andrew Cagney <ac131313@redhat.com>
5087
5088 * gdbarch.h: Regenerate.
5089
627054c8
AC
50902002-06-01 Andrew Cagney <ac131313@redhat.com>
5091
5092 * MAINTAINERS: Add everyone to write-after-approval list.
5093
4f460812
AC
50942002-06-01 Andrew Cagney <ac131313@redhat.com>
5095
5096 * stack.c (frame_info): Use frame_register_unwind instead of
5097 saved_regs. Mention when the SP is on the stack or in a register.
5098
5099 * frame.h (frame_register_unwind_ftype): Define. Document.
5100 (struct frame_info): Add field register_unwind and
5101 register_unwind_cache.
5102 (frame_register_unwind): Declare.
5103 (generic_unwind_get_saved_register): Declare.
5104
5105 * frame.c (frame_register_unwind): New function.
5106 (generic_unwind_get_saved_register): New function.
5107
5108 * blockframe.c (generic_call_dummy_register_unwind): New function.
5109 (frame_saved_regs_register_unwind): New function.
5110 (set_unwind_by_pc): New function.
5111 (create_new_frame): New function.
5112 (get_prev_frame): New function.
5113
de888f76
AC
51142002-05-30 Andrew Cagney <ac131313@redhat.com>
5115
5116 * a29k-share/: Delete directory.
5117 * remote-vx29k.c: Delete file.
5118
2f2c3626
JT
51192002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5120
5121 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5122 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5123
9ce5c36a
JT
51242002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5125
5126 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5127 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5128 (sparc64nbsd-nat.o)
5129 (sparcnbsd-nat.o)
5130 (sparcnbsd-tdep.o): New dependency lists.
5131 * NEWS: Note new UltraSPARC NetBSD native configuration.
5132 * configure.host (sparc64-*-netbsd*): New host.
5133 * configure.tgt (sparc-*-netbsdelf*)
5134 (sparc-*-netbsd*): Set gdb_target to nbsd.
5135 (sparc64-*-netbsd*): New target.
5136 * sparc64nbsd-nat.c: New file.
5137 * sparcnbsd-nat.c: New file.
5138 * sparcnbsd-tdep.c: New file.
5139 * sparcnbsd-tdep.h: New file.
5140 * config/sparc/nbsd.mt: New file.
5141 * config/sparc/nbsd64.mh: New file.
5142 * config/sparc/nbsd64.mt: New file.
5143 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5144 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5145 (HOST_IPC): Remove.
5146 * config/sparc/nbsdaout.mt: Remove.
5147 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5148 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5149 (HOST_IPC): Remove.
5150 * config/sparc/nbsdelf.mt: Remove.
5151 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5152 sparc-nat.c compatiblity defines.
5153 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5154 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5155 * config/sparc/tm-nbsd64.h: New file.
5156 * config/sparc/tm-nbsdaout.h: Remove.
5157 * config/sparc/xm-nbsd.h: Remove.
5158
ef3cf062
JT
51592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5162 * sparc-tdep.c: Include osabi.h.
5163 (gdbarch_tdep): Add osabi member.
5164 (_initialize_sparc_tdep): Use gdbarch_register.
5165 (sparc_gdbarch_init): Use generic OS ABI framework.
5166 (sparc_dump_tdep): New function.
5167
ee8ff470
KB
51682002-05-30 Kevin Buettner <kevinb@redhat.com>
5169
5170 * corefile.c (do_captured_read_memory_integer): Return non-zero
5171 result.
5172 (safe_read_memory_integer): Copy result of memory read when
5173 status is non-zero. Also, add comments.
5174
7b112f9c
JT
51752002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5176
5177 * Makefile.in (ppc_tdep_h): Define.
5178 (ppc-linux-nat.o)
5179 (ppc-linux-tdep.o)
5180 (rs6000-tdep.o): Use $(ppc_tdep_h).
5181 (ppc-sysv-tdep.o)
5182 (ppcnbsd-nat.o)
5183 (ppcnbsd-tdep.o): New dependency lists.
5184 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5185 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5186 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5187 (ppc_sysv_abi_broken_use_struct_convention)
5188 (ppc_sysv_abi_use_struct_convention)
5189 (ppc_sysv_abi_push_arguments): Move to...
5190 * ppc-sysv-tdep.c: ...here.
5191 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5192 * rs6000-tdep.c (process_note_abi_tag_sections)
5193 (get_elfosabi): Remove.
5194 (rs6000_gdbarch_init): Use generic OS ABI framework.
5195 (rs6000_dump_tdep): New function.
5196 (_initialize_rs6000_tdep): Use gdbarch_register.
5197 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5198 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5199 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5200 of ppc-linux-tdep.o.
5201 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5202 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5203 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5204 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5205 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5206 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5207
480dd42a
JB
52082002-05-29 Jim Blandy <jimb@redhat.com>
5209
5210 * macroscope.c (default_macro_scope): Put `void' in empty argument
5211 list.
5212
4182591f
AC
52132002-05-29 Andrew Cagney <ac131313@redhat.com>
5214
5215 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5216 * arch-utils.c: Include "sim-regno.h".
5217 * gdbarch.sh: Don't include "sim-regno.h".
5218 * gdbarch.h, gdbarch.c: Regenerate.
5219 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5220 here.
5221 * arch-utils.h (legacy_register_sim_regno): To here.
5222 * remote-sim.c (legacy_register_sim_regno): Move function from
5223 here.
5224 * arch-utils.c (legacy_register_sim_regno): To here.
5225
8238d0bf
AC
52262002-05-28 Andrew Cagney <ac131313@redhat.com>
5227
5228 * sim-regno.h: New file.
5229 * Makefile.in (sim_regno_h): Define.
5230 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5231 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5232 (legacy_register_sim_regno): New function.
5233 (one2one_register_sim_regno): New function.
5234 (gdbsim_fetch_register): Rewrite.
5235 (gdbsim_store_register): Only store a register when
5236 REGISTER_SIM_REGNO is valid.
5237 * d10v-tdep.c: Include "sim-regno.h".
5238 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5239 (d10v_ts3_register_sim_regno): Ditto.
5240 * gdbarch.sh: Include "sim-regno.h".
5241 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5242 * gdbarch.h, gdbarch.c: Regenerate.
5243 * arch-utils.h (default_register_sim_regno): Delete declaration.
5244 * arch-utils.c (default_register_sim_regno): Delete function.
5245
485721b1
JT
52462002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5247
5248 * ppcnbsd-nat.c: Rewrite.
5249 * ppcnbsd-tdep.c: New file.
5250 * ppcnbsd-tdep.h: New file.
5251 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5252 solib.o, and solib-svr4.o.
5253 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5254 nbsd-tdep.o, and corelow.o.
5255
697f244d
AC
52562002-05-28 Andrew Cagney <ac131313@redhat.com>
5257
5258 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5259 `tr' and `sed'. Mention that `broken' targets are not expected to
5260 build.
5261
f08caad1 52622002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5263
5264 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5265 Let PC point right after the prologue before looking up symbols.
5266
3139facc
MH
52672002-05-27 Martin M. Hunt <hunt@redhat.com>
5268
5269 * i386-tdep.c (i386_register_virtual_type): Return
5270 builtin_type_vec128i for SSE registers.
5271
5272 * gdbtypes.h (builtin_type_vec128i): Declare.
5273
5274 * gdbtypes.c (build_builtin_type_vec128i): New function.
5275 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5276 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5277 (build_gdbtypes): Initialize new builtin vector types.
5278 (_initialize_gdbtypes): Register new vector types with gdbarch.
5279
6e3ba3b8
JT
52802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5281
5282 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5283 since it has been multi-arch'd.
5284 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5285 Move Alpha and VAX multi-arch news entries to same section
5286 as other multi-arch news.
5287
93d5585d
JT
52882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5289
5290 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5291 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5292 static. Rename some register numbers to put them in ns32k-tdep
5293 private namespace.
5294 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5295 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5296 functions.
5297 (_initialize_ns32k_tdep): Use gdbarch_register.
5298 * ns32k-tdep.h: New file.
5299 * ns32knbsd-tdep.c: New file.
5300 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5301 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5302 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5303 REGISTER_BYTES, REGISTER_BYTE): Remove.
5304 * config/ns32k/tm-ns32k.h: New file.
5305 * config/ns32k/tm-umax.h: Remove.
5306
efb2c70e
JT
53072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5308
5309 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5310 ns32k_store_struct_return, ns32k_extract_return_value,
5311 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5312 functions.
5313 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5314 ns32k_saved_pc_after_call.
5315 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5316 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5317 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5318 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5319 ns32k_extract_struct_value_address.
5320
7bcc927b
JT
53212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5322
5323 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5324 ns32k_fix_call_dummy): New.
5325 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5326 ns32k_call_dummy_words.
5327 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5328 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5329 CALL_DUMMY_NARGS): Remove.
5330 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5331
78f9d765
JT
53322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5333
5334 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5335 ns32k_frame_saved_pc, ns32k_frame_args_address,
5336 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5337 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5338 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5339 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5340 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5341 (BREAKPOINT): Remove..
5342 (FRAME_CHAIN): Define as ns32k_frame_chain.
5343 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5344 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5345 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5346 (FRAME_FIND_SAVED_REGS): Remove.
5347 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5348 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5349 (POP_FRAME): Define as ns32k_pop_frame.
5350
f2c762e0
JT
53512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5352
5353 * ns32k-tdep.c (ns32k_register_byte_32082,
5354 ns32k_register_byte_32382, ns32k_register_raw_size,
5355 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5356 functions.
5357 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5358 ns32k_register_byte_32382.
5359 * config/ns32k/tm-umax.h: Update copyright years.
5360 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5361 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5362 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5363 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5364 (ns32k_get_enter_addr): Fix prototype.
5365
af137673
JT
53662002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5367
5368 * ns32k-tdep.c: Update copyright years.
5369 (ns32k_register_name_32082): New function.
5370 (ns32k_register_name_32382): Ditto.
5371 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5372 (REGISTER_NAME): Define as ns32k_register_name_32382.
5373 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5374 (REGISTER_NAME): Define as ns32k_register_name_32082.
5375
a8bc7b56
JB
53762002-05-24 Jim Blandy <jimb@redhat.com>
5377
5378 * dwarf2read.c (free_line_header): Use xfree, not free.
5379
83a45910
JT
53802002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5381
5382 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5383 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5384
0db71247
AC
53852002-05-23 Andrew Cagney <ac131313@redhat.com>
5386
5387 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5388
b9e5e4dd
AC
53892002-05-23 Andrew Cagney <ac131313@redhat.com>
5390
5391 From Ross Alexander at NEC Europe:
5392 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5393
de530e84
MS
53942002-05-23 Michael Snyder <msnyder@redhat.com>
5395
5396 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5397 for input, rather than parse_and_eval_address.
5398
b91b96f4
AC
53992002-05-23 Andrew Cagney <ac131313@redhat.com>
5400
5401 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5402 * Makefile.in (sim_d10v_h): Update definition.
5403
8b279e7a
AC
54042002-05-24 Andrew Cagney <cagney@redhat.com>
5405
5406 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5407 change `2002-05-22 Michael Snyder' below.
5408 (d10v_push_arguments): Ditto.
5409 (d10v_extract_return_value): Ditto.
5410
0a3d0425
JB
54112002-05-23 Jim Blandy <jimb@redhat.com>
5412
5413 * macrotab.c (check_for_redefinition): Don't complain if the new
5414 definition is the same as the previous one. Take more arguments
5415 to allow the comparison.
5416 (macro_define_object, macro_define_function): Pass more arguments
5417 to check_for_redefinition.
5418
78eac43e
MS
54192002-05-22 Michael Snyder <msnyder@redhat.com>
5420
5421 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5422 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5423 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5424 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5425 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5426 Add a temp variable to save a call (and a memory read).
5427 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5428 if possible (so that PC_IN_CALL_DUMMY will work).
5429
9bc1edb8
CV
54302002-05-22 Corinna Vinschen <vinschen@redhat.com>
5431
5432 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5433
005ef3d2
ML
54342002-05-22 Michal Ludvig <mludvig@suse.cz>
5435
5436 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5437 fde->cie_ptr.
5438 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5439 (dwarf2_build_frame_info): Add offset to fde->initial_location
5440 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5441 (execute_stack_op): Change type of 'result' from ULONGEST to
5442 CORE_ADDR.
005ef3d2 5443
fcf4f891
JT
54442002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5445
5446 * config/alpha/tm-nbsd.h: Include solib.h.
5447
cfef91e4
JT
54482002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5449
5450 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5451 assumptions about the host's byte order.
5452
9964235a
JT
54532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5454
5455 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5456 to dependency list.
5457 * alphanbsd-tdep.c: Include solib-svr4.h.
5458 * shnbsd-tdep.c: Ditto.
5459
9eeef8ef
JT
54602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5461
5462 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5463 nbsd-tdep.h to dependency list.
5464 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5465 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5466 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5467 nbsdaout.mh and nbsdelf.mh consistently.
5468 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5469 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5470 nbsdaout.mt and nbsdelf.mh consistently.
5471 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5472 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5473 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5474 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5475 a.out shared library stuff from here...
5476 * config/nm-nbsdaout.h: ...to here.
5477 * config/tm-nbsd.h: Remove.
5478 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5479 * config/arm/nbsd.mh: Remove.
5480 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5481 nbsd-tdep.o.
5482 * config/arm/nbsdaout.mh: New file.
5483 * config/arm/nbsdelf.mh: New file.
5484 * config/arm/nm-nbsdaout.h: New file.
5485 * config/i386/nbsd.mh: Remove.
5486 * config/i386/nbsd.mt: Remove.
5487 * config/i386/nbsdaout.mh: New file.
5488 * config/i386/nbsdaout.mt: New file.
5489 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5490 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5491 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5492 i386_register_u_addr): Remove.
5493 * config/i386/nm-nbsdaout.h: New file.
5494 * config/i386/nm-nbsdelf.h: Remove.
5495 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5496 (USE_STRUCT_CONVENTION): Remove.
5497 * config/i386/tm-nbsdaout.h: New file.
5498 * config/i386/tm-nbsdelf.h: Remove.
5499 * config/m68k/nbsd.mh: Remove.
5500 * config/m68k/nbsd.mt: Remove.
5501 * config/m68k/nbsdaout.mh: New file.
5502 * config/m68k/nbsdaout.mt: New file.
5503 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5504 * config/m68k/nm-nbsdaout.h: New file.
5505 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5506 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5507 * config/ns32k/nbsd.mh: Remove.
5508 * config/ns32k/nbsd.mt: Remove.
5509 * config/ns32k/nbsdaout.mh: New file.
5510 * config/ns32k/nbsdaout.mt: New file.
5511 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5512 * config/ns32k/nm-nbsdaout.h: New file.
5513 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5514 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5515 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5516 (SVR4_SHARED_LIBS): Remove.
5517 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5518 * config/sparc/nbsd.mh: Remove.
5519 * config/sparc/nbsd.mt: Remove.
5520 * config/sparc/nbsdaout.mh: New file.
5521 * config/sparc/nbsdaout.mt: New file.
5522 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5523 * config/sparc/nbsdelf.mt: New file.
5524 * config/sparc/nm-nbsdaout.h: New file.
5525 * config/sparc/nm-nbsdelf.h: Remove.
5526 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5527 * config/sparc/tm-nbsdaout.h: New file.
5528
257ce470
JT
55292002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5530
5531 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5532 mipsnbsd-tdep.c
5533 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5534
76a6d5fe
JT
55352002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5536
5537 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5538 shnbsd-nat.c.
5539 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5540
45888261
JT
55412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5542
5543 * NEWS: Note new MIPS NetBSD native configuration.
5544 * configure.host (mips*-*-netbsd*): New host.
5545 * configure.tgt (mips*-*-netbsd*): New target.
5546 * mipsnbsd-nat.c: New file.
5547 * mipsnbsd-tdep.c: New file.
5548 * mipsnbsd-tdep.h: New file.
5549 * config/mips/nbsd.mh: New file.
5550 * config/mips/nbsd.mt: New file.
5551 * config/mips/nm-nbsd.h: New file.
5552 * config/mips/tm-nbsd.h: New file.
5553
70f80edf
JT
55542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5555
5556 * Makefile.in (SFILES): Add osabi.c.
5557 (COMMON_OBS): Add osabi.o.
5558 (osabi.o): New dependency list.
5559 * osabi.c: New file.
5560 * osabi.h: New file.
5561 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5562
5563 * Makefile.in (alpha_tdep_h): Define and use instead of
5564 alpha-tdep.h.
5565 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5566 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5567 Remove.
5568 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5569 * alpha-tdep.h: Include osabi.h.
5570 (alpha_abi): Remove.
5571 (gdbarch_tdep): Use generic OS ABI framework.
5572 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5573 gdbarch_register_osabi.
5574 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5575 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5576 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5577
5578 * Makefile.in (sh_tdep_h): Add osabi.h.
5579 * sh-tdep.h (sh_osabi): Remove.
5580 (gdbarch_tdep): Use generic OS ABI framework.
5581 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5582 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5583 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5584 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5585
5586 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5587 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5588 gdbarch_register_osabi.
5589 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5590 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5591 (get_elfosabi): Rename to...
5592 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5593 ABI framework support routines.
5594 (arm_gdbarch_init): Use generic OS ABI framework.
5595 (arm_dump_tdep): Likewise.
5596 (_initialize_arm_tdep): Likewise.
5597 * arm-tdep.h: Include osabi.h.
5598 (arm_abi): Remove.
5599 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5600 osabi member.
5601 (arm_gdbarch_register_os_abi): Remove prototype.
5602 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5603 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5604
5605 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5606 * mips-tdep.c: Include osabi.h.
5607 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5608 OS ABI framework.
5609
d194345b
KH
56102002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5611
5612 * h8300-tdep.c: Fix formatting.
5613
70c6b0d1
EZ
56142002-05-20 Elena Zannoni <ezannoni@redhat.com>
5615
5616 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5617 printing vector registers.
5618
165b8e33
AC
56192002-05-19 Andrew Cagney <ac131313@redhat.com>
5620
5621 From Fernando Nasser:
5622 * remote.c (remote_async_open_1): Re-throw the exception when the
5623 connection fails.
5624 (remote_cisco_open): Ditto.
5625 (remote_open_1): Ditto.
5626
36918e70
AC
56272002-05-19 Andrew Cagney <ac131313@redhat.com>
5628
5629 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5630 (remote_start_remote): Add uiout parameter. Pass through to
5631 remote_start_remote_dummy.
5632 (remote_open_1): Use catch_exception instead of catch_errors.
5633 (remote_async_open_1): Ditto.
5634 (remote_cisco_open): Ditto.
5635
ae44c0c4
AC
56362002-05-19 Andrew Cagney <ac131313@redhat.com>
5637
5638 * remote.c (remote_start_remote): Replace PTR with void pointer.
5639 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5640 static.
5641
8efe637d
AC
56422002-05-18 Andrew Cagney <ac131313@redhat.com>
5643
5644 * gdb_indent.sh: Allow the script to be run in the sim directory.
5645
2f1b5984
MK
56462002-05-18 Mark Kettenis <kettenis@gnu.org>
5647
f0f625e2
MK
5648 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5649 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5650
2f1b5984
MK
5651 * corelow.c (core_open): Only call set_gdbarch_from_file if
5652 exec_bfd is NULL.
5653
fc974602
AV
56542002-05-17 Andrey Volkov <avolkov@transas.com>
5655
5656 * h8300-tdep.c: Add support of EXR register
5657 * config/h8300/tm-h8300.h: Ditto.
5658
906709f4
AV
56592002-05-17 Andrey Volkov <avolkov@transas.com>
5660
5661 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5662
6e591d68
AV
56632002-05-17 Andrey Volkov <avolkov@transas.com>
5664
5665 * h8300-tdep.c: Change literal regnums to REGNO.
5666
84f0252a
JB
56672002-05-17 Jim Blandy <jimb@redhat.com>
5668
e0e9281e
JB
5669 * NEWS: Note addition of macro support.
5670
84f0252a
JB
5671 Expand preprocessor macros in C expressions.
5672 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5673 (scan_macro_expansion, scanning_macro_expansion,
5674 finished_macro_expansion): New function declarations.
5675 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5676 variable declarations.
5677 * parser-defs.h (expression_context_pc): New declaration.
5678 * parse.c (expression_context_pc): New variable.
5679 (parse_exp_1): Set expression_context_pc, as well as
5680 expression_context_block.
5681 * c-exp.y (yylex): If we're not already reading the result of a
5682 macro expansion, try to macro-expand the next token. When we're
5683 done scanning a macro expansion, switch back to the mainline text.
5684 Commas and `if's in a macro's expansion don't terminate the input.
5685 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5686 (macro_original_text, macro_expanded_text,
5687 expression_macro_lookup_func, expression_macro_lookup_baton): New
5688 variables.
5689 (scan_macro_expansion, scanning_macro_expansion,
5690 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5691 c_preprocess_and_parse): New functions.
5692 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5693 c_preprocess_and_parse, instead of c_parse.
5694 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5695 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5696
1c509ca8
JR
5697Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5698
5699 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5700 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5701 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5702
2250ee0c
CV
57032002-05-17 Corinna Vinschen <vinschen@redhat.com>
5704
5705 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5706
ab3b8126
JT
57072002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5708
5709 * Makefile.in (sh_tdep_h): Define and use.
5710 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5711 register enum): Move to...
5712 * * sh-tdep.h: ...here.
5713 * sh-tdep.c: Include sh-tdep.h.
5714 * sh3-rom.c: Likewise.
5715 * shnbsd-tdep.c: Likewise.
5716
ed9d4749
MS
57172002-05-16 Michael Snyder <msnyder@redhat.com>
5718
5719 * arm-tdep.c: Spelling fix in comment.
5720
2e276125
JB
57212002-05-16 Jim Blandy <jimb@redhat.com>
5722
6821892e
JB
5723 Add commands for manually expanding macros and showing their
5724 definitions.
5725 * macrocmd.c, macroscope.c, macroscope.h: New files.
5726 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5727 (macroscope_h): New variable.
5728 (HFILES_NO_SRCDIR): Add macroscope.h.
5729 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5730 (macroscope.o, macrocmd.o): New rules.
5731
2e276125
JB
5732 Teach the Dwarf 2 reader to read macro information.
5733 * dwarf2read.c: #include "macrotab.h".
5734 (dwarf_macinfo_buffer): New variable.
5735 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5736 dwarf_macinfo_size.
5737 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5738 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5739 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5740 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5741 dwarf2_macro_spaces_in_definition): New complaints.
5742 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5743 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5744 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5745 the partial symbol table.
5746 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5747 from what's recorded in the partial symbol table.
5748 (read_file_scope): If the compilation unit has a
5749 `DW_AT_macro_info' attribute, read its macro information.
5750 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5751
2f53fe6c
DJ
57522002-05-16 Daniel Jacobowitz <drow@mvista.com>
5753
5754 Fix PR gdb/546
5755 * ser-tcp.c: Don't include <netinet/udp.h>.
5756
2be99286
SC
57572002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5758
5759 * MAINTAINERS: Update my email address.
5760
c9af212b 57612002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5762
5763 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5764 include file of the same name.
5765
bf5f1a52
CV
57662002-05-16 Corinna Vinschen <vinschen@redhat.com>
5767
5768 * configure.tgt: Mark v850 as multi-arched.
5769 * config/v850/tm-v850.h: Remove file.
5770 * config/v850/v850.mt: Eliminate TM_FILE.
5771
435e042a
CV
57722002-05-16 Corinna Vinschen <vinschen@redhat.com>
5773
5774 * v850-tdep.c: Full multi-arch.
5775 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5776 Define GDB_MULTI_ARCH to 2.
5777
9819c6c8
PM
57782002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5779
5780 * p-exp.y (current_type): New static variable.
5781 Carries the type of the expression at the position that is parsed.
5782 (push_current_type, pop_current_type): Two new functions. Used
5783 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5784 (search_field): New static variable. Set to one after parsing a point
5785 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5786 (FIELDNAME): New token. After a point only a token belonging to
5787 current_type type definition is allowed.
5788 (all over token rules): reset and change current_type according
5789 to rules.
5790 (exp '[' rule): insert implicit array index field if
5791 exp is a pascal string type.
5792
3a06899a
CV
57932002-05-16 Corinna Vinschen <vinschen@redhat.com>
5794
5795 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5796 frame info. Use frame_info's saved_regs instead of matching member
5797 in extra_frame_info throughout.
5798 (v850_frame_init_saved_regs): New function.
5799 (v850_init_extra_frame_info): Move most functionality into
5800 v850_frame_init_saved_regs().
5801 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5802 (v850_frame_find_saved_regs): Remove declaration.
5803 (FRAME_FIND_SAVED_REGS): Remove definition.
5804 (v850_frame_init_saved_regs): Add declaration.
5805 (FRAME_INIT_SAVED_REGS): Add definition.
5806
6ed14b0e
CV
58072002-05-16 Corinna Vinschen <vinschen@redhat.com>
5808
5809 * v850-tdep.c: Begin multi-arch'ing v850.
5810 (v850_target_architecture_hook): Remove function.
5811 (v850_gdbarch_init): New function. Add code previously in
5812 v850_target_architecture_hook().
5813 (_initialize_v850_tdep): Don't set target_architecture_hook.
5814 Call register_gdbarch_init() instead.
5815
42725910
DJ
58162002-05-16 Daniel Jacobowitz <drow@mvista.com>
5817
5818 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5819 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5820 (fixup_class_method_type): Likewise.
5821
99d9066e
JB
58222002-05-15 Jim Blandy <jimb@redhat.com>
5823
5824 Add macro structures to GDB's symbol tables. Nobody puts anything
5825 in them yet.
5826 * symtab.h (struct symtab): New member: `macro_table'.
5827 * buildsym.h (pending_macros): New global variable.
5828 * buildsym.c: #include "macrotab.h".
5829 (buildsym_init): Initialize `pending_macros'.
5830 (end_symtab): If we found macro information while reading a CU's
5831 debugging info, do build a symtab structure for it. Make the
5832 symtab point to the macro information, and clear the
5833 `pending_macros' pointer which held it while we were reading the
5834 debug info.
5835 (really_free_pendings): Free any pending macro table.
5836 * objfiles.h (struct objfile): New member: `macro_cache'.
5837 * objfiles.c (allocate_objfile): Set allocate and free functions
5838 for the macro cache's objstack.
5839 (free_objfile): Empty the macro cache's obstack.
5840 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5841 set new allocate and free functions for it.
5842 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5843 free functions for the macro cache's objstack. (Why is this
5844 function building its own objfile?)
5845 * symmisc.c (print_objfile_statistics): Print statistics on the
5846 macro bcache.
5847 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5848
c899585b
RE
58492002-05-15 Richard Earnshaw <rearnsha@arm.com>
5850
5851 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5852 (REGISTER_U_ADDR): Delete definition.
5853 (arm_register_u_addr): Delete declaration.
5854
a6cdd8c5
RE
58552002-05-15 Richard Earnshaw <rearnsha@arm.com>
5856
5857 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5858 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5859
c97dcfc7
AC
58602002-05-14 Andrew Cagney <ac131313@redhat.com>
5861
5862 * regcache.c (register_valid): Revise comments refering to "Not
5863 available" and "unavailable".
5864 * frame.c (frame_register_read): Ditto.
5865 * findvar.c (value_of_register): Ditto.
5866
93021b7d
AC
58672002-05-15 Andrew Cagney <cagney@redhat.com>
5868
5869 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5870 (remote-sim.o): Update dependencies.
5871 (d10v-tdep.o): Specify dependencies.
5872 (sim_d10v_h): Define.
5873
a86bc61c
JB
58742002-05-14 Jim Blandy <jimb@redhat.com>
5875
5876 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5877 * macrotab.c (macro_lookup_inclusion, find_definition,
5878 new_macro_table): Same.
5879
5880 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5881 not `! strcmp ()'. This is a dubious improvement.
5882 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5883
5884 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5885 although it's not necessary, to avoid a warning.
5886
2fdde8f8
DJ
58872002-05-14 Daniel Jacobowitz <drow@mvista.com>
5888
5889 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5890 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5891 TYPE_INSTANCE_FLAGS.
5892 (struct main_type): New.
5893 (struct type): Move most members to struct main_type. Change
5894 cv_type and as_type to new type_chain member. Add instance_flags.
5895 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5896 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5897 (finish_cv_type): Remove prototype.
5898 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5899 Set TYPE_CHAIN.
5900 (alloc_type_instance): New function.
5901 (smash_type): New function.
5902 (make_pointer_type, make_reference_type, make_function_type)
5903 (smash_to_member_type, smash_to_method_type): Call smash_type.
5904 (make_qualified_type): New function.
5905 (make_type_with_address_space): Call make_qualified_type.
5906 (make_cv_type): Likewise.
5907 (finish_cv_type): Remove unnecessary function.
5908 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5909 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5910 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5911 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5912 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5913 * hpread.c (hpread_read_struct_type): Likewise.
5914 * stabsread.c (read_struct_type): Likewise.
5915
843fedf4
EZ
59162002-05-14 Elena Zannoni <ezannoni@redhat.com>
5917
5918 * configure.tgt: Add a catch all sh* target, for cases like
5919 sh[2,3,4]-elf and sh-hms.
5920
05a6c72c
KS
59212002-05-14 Keith Seitz <keiths@redhat.com>
5922
5923 * event-loop.c (create_file_handler): Don't do anything but
5924 update data when we are given a fd which we are already
5925 monitoring.
5926
5d085aaf
ML
59272002-05-14 Michal Ludvig <mludvig@suse.cz>
5928
5929 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5930 (update_context): Use __func__ in warnings.
5931
9db8d71f
DJ
59322002-05-14 Daniel Jacobowitz <drow@mvista.com>
5933
5934 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5935 and tcp_close to net_open and net_close.
5936 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5937 using UDP if requested. Don't try to disable Nagle on UDP
5938 sockets.
5939 * remote.c (remote_serial_open): New function. Warn about UDP.
5940 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5941
5dbc6baa
EZ
59422002-05-13 Elena Zannoni <ezannoni@redhat.com>
5943
5944 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5945
cc3023f7
EZ
59462002-05-13 Elena Zannoni <ezannoni@redhat.com>
5947
5948 * configure.tgt: Remove sh-hms target.
5949 * MAINTAINERS: Don't list sh-hms as a separate target.
5950
ec2bcbe7
JB
59512002-05-13 Jim Blandy <jimb@redhat.com>
5952
5953 Add first preprocessor macro-expansion files.
5954 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5955 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5956 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5957 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5958 (COMMON_OBS): Add macrotab.o, macroexp.o.
5959 (macroexp.o, macrotab.o): New rules.
5960
6d531722
AC
59612002-05-13 Andrew Cagney <ac131313@redhat.com>
5962
5963 * config/m88k/tm-m88k.h: Update copyright.
5964 (m88k_target_write_pc): Declare
5965 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5966 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5967 (SHIFT_INST_REGS): Update definition.
5968 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5969 using old definition of TARGET_WRITE_PC.
5970 * regcache.c (generic_target_write_pc): Delete code handling
5971 NNPC_REGNUM.
5972 * gdbarch.sh (NNPC_REGNUM): Delete.
5973 * gdbarch.h, gdbarch.c: Regenerate.
5974
3e3f2739
RE
59752002-05-13 Richard Earnshaw <rearnsha@arm.com>
5976
5977 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5978 builtin reg number.
5979
0004e5a2
DJ
59802002-05-13 Daniel Jacobowitz <drow@mvista.com>
5981
5982 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5983 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5984 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5985 access macros.
5986 * c-typeprint.c (cp_type_print_method_args): Likewise.
5987 (c_type_print_args): Likewise.
5988 * d10v-tdep.c (d10v_push_arguments): Likewise.
5989 (d10v_extract_return_value): Likewise.
5990 * expprint.c (print_subexp): Likewise.
5991 * gdbtypes.c (lookup_primitive_typename): Likewise.
5992 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5993 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5994 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5995 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5996 (TYPE_VECTOR): Likewise.
5997 * hpread.c (hpread_read_struct_type)
5998 (fix_static_member_physnames, fixup_class_method_type)
5999 (hpread_type_lookup): Likewise.
6000 * mdebugread.c (parse_symbol, parse_type): Likewise.
6001 * p-lang.c (is_pascal_string_type): Likewise.
6002 * valops.c (hand_function_call): Likewise.
6003 * x86-64-tdep.c (classify_argument): Likewise.
6004
6005 * hpread.c (hpread_read_function_type)
6006 (hpread_read_doc_function_type): Call replace_type.
6007 * dstread.c (create_new_type): Delete.
6008 (decode_dst_structure, process_dst_function): Call alloc_type.
6009 Use type access macros.
6010
dff95cc7
MK
60112002-05-12 Mark Kettenis <kettenis@gnu.org>
6012
6013 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6014 the're not supported by the current architecture.
6015 (i387_fill_fxsave): Likewise.
6016
bbcd32ad
FF
60172002-05-12 Fred Fish <fnf@redhat.com>
6018
6019 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6020 sect_index_xxx members to index the first slot in section_offsets
6021 if all of the section_offsets are zero.
6022
89cf4787
MK
60232002-05-12 Mark Kettenis <kettenis@gnu.org>
6024
6025 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6026 checked in with last change.
6027
1f77ffc5
MK
60282002-05-12 Mark Kettenis <kettenis@gnu.org>
6029
6030 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6031 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6032 config.sub.
6033
89b8b4a9
DJ
60342002-05-12 Daniel Jacobowitz <drow@mvista.com>
6035
6036 * Makefile.in: Update dependencies.
6037
14a5e767
AC
60382002-05-11 Andrew Cagney <ac131313@redhat.com>
6039
6040 * language.c (local_hex_string_custom): Simplify. Do not depend
6041 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6042
6043 * memattr.c (mem_info_command): Replace calls to
6044 longest_local_hex_string and longest_local_hex_string_custom.
6045 * buildsym.c (make_blockvector): Ditto.
6046 * solib.c (info_sharedlibrary_command): Ditto.
6047 * tracepoint.c (tracepoints_info): Ditto.
6048 * symtab.c (print_msymbol_info): Ditto.
6049
6050 * language.c (local_hex_string): Delete.
6051 (local_hex_string_custom): Delete.
6052 (longest_local_hex_string): Rename to local_hex_string.
6053 (longest_local_hex_string_custom): Rename to
6054 local_hex_string_custom.
6055 * language.h (local_hex_string): Change parameter type to LONGEST.
6056 (local_hex_string_custom): Ditto.
6057 (longest_local_hex_string): Delete declaration.
6058 (longest_local_hex_string_custom): Ditto.
6059
6060 * solib.c: Update copyright.
6061 * memattr.c: Update copyright.
6062
13d01224
AC
60632002-05-11 Andrew Cagney <ac131313@redhat.com>
6064
6065 * arch-utils.h (legacy_register_to_value): Declare.
6066 (legacy_value_to_register): Declare.
6067 (legacy_convert_register_p): Declare.
6068 * arch-utils.c (legacy_register_to_value): New function.
6069 (legacy_value_to_register): New function.
6070 (legacy_convert_register_p): New function.
6071
6072 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6073 (VALUE_TO_REGISTER): Define.
6074 (CONVERT_REGISTER_P): Define.
6075 * gdbarch.h, gdbarch.c: Regenerate.
6076
6077 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6078 VALUE_TO_REGISTER.
6079 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6080 CONVERT_REGISTER_P.
6081
4a1970e4
DJ
60822005-05-11 Daniel Jacobowitz <drow@mvista.com>
6083 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6084
6085 * Makefile.in: Update dependencies for valops.c.
6086 * valops.c: Include "gdb_assert.h".
6087 (typecmp): Skip THIS parameter to methods.
6088 (find_method_list): Remove static_memfuncp argument,
6089 update callers. Check for stub methods.
6090 (find_value_oload_method_list): Don't set *static_memfuncp.
6091 (find_overload_match): Don't check for stub methods. Assert
6092 that methods are not stubbed. Handle static methods.
6093 (value_find_oload_method_list): Remove static_memfuncp argument.
6094 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6095 to the argument list for static stub methods.
6096 * value.h (value_find_oload_method_list): Update prototype.
6097
b2e75d78
AC
60982002-05-11 Andrew Cagney <ac131313@redhat.com>
6099
6100 * arch-utils.h (generic_register_size): Declare.
6101 (generic_register_raw_size, generic_register_virtual_size): Delete
6102 declarations.
6103 * arch-utils.c (generic_register_raw_size): Delete.
6104 (generic_register_size): New function.
6105 (generic_register_virtual_size): Delete.
6106
6107 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6108 default generic_register_size.
6109 * gdbarch.h, gdbarch.c: Re-generate.
6110
6111 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6112 register_virtual_size.
6113 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6114 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6115
451fbdda
AC
61162002-05-11 Andrew Cagney <ac131313@redhat.com>
6117
6118 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6119 * gdbarch.h, gdbarch.c: Regenerate.
6120 * gnu-v3-abi.c: Update copyright.
6121 (vtable_address_point_offset): Update.
6122 (gnuv3_rtti_type): Update.
6123 (gnuv3_baseclass_offset): Update.
6124 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6125 (init_fetch_link_map_offsets): Update.
6126 * remote.c (get_remote_state): Update.
6127
6d2f5cea
DJ
61282002-05-11 Daniel Jacobowitz <drow@mvista.com>
6129
6130 * TODO: Remove value_headof/value_from_vtable_info comment.
6131 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6132 * values.c (value_headof, value_from_vtable_info): Delete.
6133 * value.h (value_from_vtable_info): Delete prototype.
6134
d2324da4
AC
61352002-05-11 Andrew Cagney <ac131313@redhat.com>
6136
6137 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6138 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6139 $(gdb_regex_h).
6140 (gdb_assert_h): Define.
6141 (gdb_wait_h): Define.
6142 (gdb_regex_h): Define.
6143
5c717440
DJ
61442002-05-11 Daniel Jacobowitz <drow@mvista.com>
6145
6146 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6147 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6148
6c7861b3
JT
61492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6150
6151 * nbsd-tdep.c: Fix comment.
6152
ea5bc2a6
JT
61532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6154
6155 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6156 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6157 (nbsd-tdep.o): New dependency list.
6158 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6159 nbsd-tdep.h.
6160 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6161 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6162 * nbsd-tdep.c: New file.
6163 * nbsd-tdep.h: New file.
6164 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6165 nbsd-tdep.h.
6166 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6167 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6168 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6169 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6170
b28da865
JT
61712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6172
6173 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6174 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6175 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6176 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6177 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6178 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6179
4b8ff1fa
JT
61802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6181
6182 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6183 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6184 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6185 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6186 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6187 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6188 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6189
dfe6eb1f
JT
61902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6191
6192 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6193 fetch_elfcore_registers to...
6194 * i386nbsd-tdep.c: ...here.
6195 (i386nbsd_use_struct_convention): Rename to...
6196 (i386nbsd_aout_use_struct_convention): ...this.
6197 (i386nbsd_supply_reg): New function.
6198 (i386nbsd_fill_reg): New function.
6199 (fetch_core_registers): Use i386nbsd_supply_reg.
6200 (fetch_elfcore_registers): Likewise.
6201 (_initialize_i386nbsd_tdep): New function.
6202 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6204 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6205 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6206 (i386nbsd_aout_use_struct_convention): ...this.
6207
20cb8cda
JT
62082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6209
6210 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6211 (store_inferior_registers): Use shnbsd_fill_reg.
6212 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6213 sh_nbsd_supply_register): Collapse into...
6214 (shnbsd_supply_reg): ...this.
6215 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6216 (shnbsd_fill_reg): ...this.
6217 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6218 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6219 (fetch_core_registers): Use shnbsd_supply_reg.
6220 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6221 (sh_nbsd_core_fns): Rename to...
6222 (shnbsd_core_fns): ...this.
6223 (sh_nbsd_elfcore_fns): Rename to...
6224 (shnbsd_elfcore_fns): ...this.
6225 (sh_nbsd_init_abi): Rename to...
6226 (shnbsd_init_abi): ...this.
6227 (_initialize_sh_nbsd_tdep): Rename to...
6228 (_initialize_shnbsd_tdep): ...this.
6229 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6230 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6231 sh_nbsd_fill_register): Remove prototypes.
6232 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6233
e750d25e
JT
62342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6235
6236 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6237 (i387-nat.o): Delete dependency list.
6238 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6239 (x86-64-linux-nat.o): Likewise.
6240 * i387-nat.c: Delete file, moving contents to...
6241 * i387-tdep.c: ...here.
6242 * i387-nat.h: Rename...
6243 * i387-tdep.h: ...to this.
6244 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6245 * i386-linux-nat.c: Likewise.
6246 * i386bsd-nat.c: Likewise.
6247 * i386gnu-nat.c: Likewise.
6248 * i386nbsd-nat.c: Likewise.
6249 * i386v4-nat.c: Likewise.
6250 * x86-64-linux-nat.c: Likewise.
6251 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6252 * config/i386/go32.mh (NATDEPFILES): Likewise.
6253 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6254 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6255 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6256 * config/i386/linux.mh (NATDEPFILES): Likewise.
6257 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6258 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6259 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6260 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6261
1aee598a
JT
62622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6263
6264 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6265 (alphanbsd-nat.o): Remove dependency list.
6266 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6267 * alphanbsd-nat.c: Delete. Contents moved to...
6268 * alphanbsd-tdep.c: ...here.
6269 (_initialize_alphanbsd_tdep): Register core functions.
6270 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6271
12bcb0fe
JT
62722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6273
6274 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6275 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6276 (alphanbsd-nat.o): Likewise.
6277 (alphabsd-tdep.o): New dependency list.
6278 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6279 (fill_gregset): Use alphabsd_fill_reg.
6280 (supply_fpregset): Use alphabsd_supply_fpreg.
6281 (fill_fpregset): Use alphabsd_fill_fpreg.
6282 (fetch_inferior_registers): Use struct reg and struct fpreg
6283 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6284 and alphabsd_supply_fpreg.
6285 (store_inferior_registers): Use struct reg and struct fpreg
6286 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6287 and alphabsd_fill_fpreg.
6288 * alphabsd-tdep.c: New file.
6289 * alphabsd-tdep.h: New file.
6290 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6291 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6292 alphabsd_supply_fpreg.
6293 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6294 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6295
361d1df0
EC
62962002-05-11 Eric Christopher <echristo@redhat.com>
6297
6298 * mips-tdep.c (mips_double_register_type): Fix thinko.
6299 (mips_single_register_type): Ditto.
6300 * MAINTAINERS: Add self.
6301
92dd7cee
MK
63022002-05-11 Mark Kettenis <kettenis@gnu.org>
6303
6304 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6305 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6306 right thing on architectures with different endianness and/or
6307 integer sizes.
6308
e27da16d
JT
63092002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6310
6311 From Christian Limpach <chris@Pin.LU>
6312 * configure.in: Change sed expression which comments out
6313 NATDEPFILES to also comment out continuation lines.
6314 * configure: Regenerate.
6315
ddde02bd
EZ
63162002-05-10 Elena Zannoni <ezannoni@redhat.com>
6317
6318 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6319 big patch.
6320
1c922164
EZ
63212002-05-10 Elena Zannoni <ezannoni@redhat.com>
6322
6323 * sh-tdep.c: Include correct file.
6324
283150cd
EZ
63252002-05-10 Elena Zannoni <ezannoni@redhat.com>
6326
6327 New support for sh64-elf (sh5) target.
6328
6329 * configure.tgt: For sh64-elf target, default to sh-elf.
6330
6331 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6332 (struct gdbarch_tdep): Add new fields for new registers and ABI
6333 info.
361d1df0 6334
283150cd
EZ
6335 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6336 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6337 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6338 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6339 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6340 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6341 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6342 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6343 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6344 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6345 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6346 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6347 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6348 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6349 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6350 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6351 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6352 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6353 sign_extend, sh64_nofp_frame_init_saved_regs,
6354 sh64_init_extra_frame_info, sh64_get_saved_register,
6355 sh64_extract_struct_value_address, sh64_pop_frame,
6356 sh64_push_arguments, sh64_extract_return_value,
6357 sh64_store_return_value, sh64_show_media_regs,
6358 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6359 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6360 sh_sh64_register_virtual_type,
6361 sh_sh64_register_convert_to_virtual,
6362 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6363 sh64_register_read, sh64_pseudo_register_write,
6364 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6365 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6366 sh64_do_pseudo_register, sh_compact_do_registers_info,
6367 sh64_do_registers_info, sh_gdbarch_init): New functions.
6368
3117ed25
EZ
63692002-05-10 Elena Zannoni <ezannoni@redhat.com>
6370
6371 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6372
2654e6d4
DJ
63732002-05-10 Daniel Jacobowitz <drow@mvista.com>
6374
6375 * linespec.c (decode_line_1): Check for a double quote after
6376 a filename correctly.
6377
9ab3e532
JB
63782002-05-10 Jim Blandy <jimb@redhat.com>
6379
6380 Properly track the size of the current objfile's .debug_line section.
6381 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6382 (DWARF_LINE_SIZE): New macro.
6383 (dwarf2_build_psymtabs_hard): Record the line section's size in
6384 the partial symbol table.
6385 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6386 symbol table.
6387
126fa72d
PS
63882002-05-10 Petr Sorfa <petrs@caldera.com>
6389
6390 * ia64-tdep.c: Handle breakpoints on L instruction type
6391 in MLX instruction bundle by moving the breakpoint to
6392 the third slot (X instruction type) as L holds only data.
6393
1f077a3e
KB
63942002-05-10 Kevin Buettner <kevinb@redhat.com>
6395
6396 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6397 (process_one_symbol): Complain about discarding local symbols
6398 due to a misplaced N_LBRAC entry.
6399
8120c9d5 64002002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6401
6402 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6403 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6404 decrease the depth we are at, in the case of templates.
361d1df0 6405
67b2c998
DJ
64062002-05-09 Daniel Jacobowitz <drow@mvista.com>
6407
6408 * mips-tdep.c (mips_float_register_type): New function.
6409 (mips_double_register_type): New function.
6410 (mips_print_register): Use them.
6411 (do_fp_register_row): Likewise.
6412
fd326606
DJ
64132002-05-09 Daniel Jacobowitz <drow@mvista.com>
6414
6609d9af 6415 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6416 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6417 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6418
bef35864
MS
64192002-05-09 Michael Snyder <msnyder@redhat.com>
6420
6421 * remote-rdp.c (remote_rdp_can_run): Remove.
6422
c55a3f73
TT
64232002-05-09 Tom Tromey <tromey@redhat.com>
6424
6425 * jv-valprint.c (java_val_print): Handle `char' as a special case
6426 of TYPE_CODE_INT.
6427
b8d5e71d
MS
64282002-05-09 Michael Snyder <msnyder@redhat.com>
6429
6430 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6431 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6432 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6433 str r(0123),[sp,#nn].
361d1df0 6434 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6435 order-independent by placing it in a loop.
6436
e2cd42dd
MS
64372002-05-06 Michael Snyder <msnyder@redhat.com>
6438
6439 * stabsread.c (read_type): Add recognition for new attribute:
6440 "@V;" means that an array type is actually a vector.
6441 This is analogous to the vector flag that's been added to dwarf2.
6442
3ce1502b
MK
64432002-05-09 Mark Kettenis <kettenis@gnu.org>
6444
6445 * i386-tdep.h (i386_abi): New enum.
6446 (struct gdbarch_tdep): Replace os_ident member with abi.
6447 (i386_gdbarch_register_os_abi): New prototype.
6448 * i386-tdep.c (i386_abi_names): New array.
6449 (process_note_abi_tag_sections): Removed.
6450 (process_note_sections): New function.
6451 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6452 (struct i386_abi_handler): New struct.
6453 (i386_abi_handler_list): New variable.
6454 (i386_gdbarch_register_os_abi): New function.
6455 (i386_gdbarch_init): Adapt for the changes given above.
6456
084c156a
DJ
64572002-05-08 Daniel Jacobowitz <drow@mvista.com>
6458
6459 * gregset.h: Say "GNU/Linux".
6460
6599f021
EZ
64612002-05-08 Elena Zannoni <ezannoni@redhat.com>
6462
6463 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6464 (build_gdbtypes): Build builtin_type_v2_float.
6465 (_initialize_gdbtypes): Register new builtin type.
6466
40af4b0c
AC
64672002-05-08 Andrew Cagney <ac131313@redhat.com>
6468
6469 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6470 (clear_gdbarch_swap): New function.
6471 (initialize_non_multiarch): Call.
6472 (gdbarch_update_p): Before calling init(), swap out and clear the
6473 existing architecture.
6474 * gdbarch.c: Regenerate.
6475
4fe84f46
JT
64762002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6477
6478 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6479 alphanbsd-tdep.c.
6480
4015edd1
JT
64812002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6482
6483 * sh-nbsd-nat.c: Rename to...
6484 * shnbsd-nat.c: ...this.
6485 * sh-nbsd-tdep.c: Rename to...
6486 * shnbsd-tdep.c: ...this.
6487 * sh-nbsd-tdep.h: Rename to...
6488 * shnbsd-tdep.h: ...this.
6489 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6490 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6491
0e2bd219
RE
64922002-05-08 Richard Earnshaw <rearnsha@arm.com>
6493
6494 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6495 concatenation for command help messages.
6496
13a38d45
JT
64972002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6498
6499 * NEWS: Note new sh*-*-netbsdelf* configuration.
6500 * configure.host: Set gdb_host_cpu to sh for all sh*.
6501 (sh*-*-netbsdelf*): New host.
6502 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6503 (sh*-*-netbsdelf*): New target.
6504 * sh-nbsd-nat.c: New file.
6505 * sh-nbsd-tdep.c: New file.
6506 * sh-nbsd-tdep.h: New file.
6507 * config/sh/nbsd.mh: New file.
6508 * config/sh/nbsd.mt: New file.
6509 * config/sh/nm-nbsd.h: New file.
6510 * config/sh/tm-nbsd.h: New file.
6511
d658f924
JT
65122002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6513
6514 * sh-tdep.c (sh_osabi_names): Declare.
6515 (process_note_abi_tag_sections): New function.
6516 (get_elfosabi): Ditto.
6517 (sh_gdbarch_register_os_abi): Ditto.
6518 (sh_dump_tdep): Ditto.
6519 _initialize_sh_tdep): Use gdbarch_register to register
6520 sh_gdbarch_init and sh_dump_tdep.
6521 * config/sh/tm-sh.h (sh_osabi): Declare.
6522 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6523
848cfffb
AC
65242002-05-07 Andrew Cagney <ac131313@redhat.com>
6525
6526 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6527 (thumb_scan_prologue): Ditto.
6528 (arm_find_callers_reg): Ditto.
6529 (arm_frame_chain): Ditto.
6530 (arm_init_extra_frame_info): Ditto.
6531 (arm_frame_saved_pc): Ditto.
6532 (arm_pop_frame): Ditto.
6533 (arm_push_return_address): New function.
6534 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6535 call_dummy_location, call_dummy_breakpoint_offset_p,
6536 call_dummy_breakpoint_offset, call_dummy_p,
6537 call_dummy_stack_adjust_p, call_dummy_words,
6538 sizeof_call_dummy_words, call_dummy_start_offset,
6539 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6540 call_dummy_address, push_return_address and push_dummy_frame for
6541 generic dummy frames.
6542
e7d717c0
JT
65432002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6544
6545 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6546 size computation for alloca.
6547 (sh_fp_frame_init_saved_regs): Likewise.
6548
7bbcf283
RE
65492002-05-07 Richard Earnshaw <rearnsha@arm.com>
6550
6551 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6552 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6553 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6554 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6555 * remote-rdp.c (remote_rdp_fetch_register): Use
6556 ARM_MAX_REGISTER_RAW_SIZE.
6557 (remote_rdp_store_register): Likewise.
6558
4657573b
ML
65592002-05-07 Michal Ludvig <mludvig@suse.cz>
6560
361d1df0 6561 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6562 added default labels to switch {} statements.
6563 * x86-64-tdep.c: Ditto.
6564 * x86-64-linux-nat.c: Ditto.
6565
010f3b2f
JT
65662002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6567
6568 * solib.h: Protect against multiple inclusion.
6569
debd256d
JB
65702002-05-06 Jim Blandy <jimb@redhat.com>
6571
9ab3e532
JB
6572 Add first preprocessor macro-expansion files.
6573 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6574 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6575 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6576 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6577 (COMMON_OBS): Add macrotab.o, macroexp.o.
6578 (macroexp.o, macrotab.o): New rules.
6579
debd256d
JB
6580 Separate the job of reading the line number info statement program
6581 header (...expialidocious) out into its own function.
6582 * dwarf2read.c (struct line_head, struct filenames, struct
6583 directories): Replace with...
6584 (struct line_header): New structure, containing the full
6585 contents of the statement program header, including the
6586 include directory and file name tables.
6587 (read_file_scope): If we have line number info, instead of just
6588 calling dwarf_decode_lines to do all the work, call
6589 dwarf_decode_line_header first to get a `struct line_header'
6590 containing the data in the statement program header, and then
6591 pass that to dwarf_decode_lines, which will pick up where that
6592 left off. Be sure to clean up the `struct line_header' object.
6593 (dwarf_decode_line_header, free_line_header, add_include_dir,
6594 add_file_name): New functions.
6595 (dwarf_decode_lines): Move all the code to read the statement
6596 program header into dwarf_decode_line_header. Take the line
6597 header it built as the first argument, instead of the offset to
6598 the compilation unit's line number info. Use the new `struct
6599 line_header' type instead of the old structures. No need to do
6600 cleanups here now, since we don't allocate anything.
6601 (dwarf2_statement_list_fits_in_line_number_section,
6602 dwarf2_line_header_too_long): New complaints.
6603
ac3aafc7
EZ
66042002-05-06 Elena Zannoni <ezannoni@redhat.com>
6605
6606 * gdbtypes.c (init_vector_type): New function.
6607 (build_builtin_type_vec128): Simplify the representation of SIMD
6608 registers.
6609 (build_gdbtypes): Initialize new builtin vector types.
6610 (_initialize_gdbtypes): Register new vector types with gdbarch.
6611 (builtin_type_v4_float, builtin_type_v4_int32,
6612 builtin_type_v8_int16, builtin_type_v16_int8,
6613 builtin_type_v2_int32, builtin_type_v4_int16,
6614 builtin_type_v8_int8): New (renamed) SIMD types.
6615
13e49980
MK
66162002-05-06 Mark Kettenis <kettenis@gnu.org>
6617
6618 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6619 (i387_fill_fxsave): Likewise.
6620
997b20b8
AO
66212002-05-05 Alexandre Oliva <aoliva@redhat.com>
6622
6623 * alpha-tdep.c (alpha_extract_return_value): Don't use
6624 non-constant array size in prototype.
6625
535c96ce
AC
66262002-05-04 Andrew Cagney <ac131313@redhat.com>
6627
6628 From Brian Taylor <briant at model dot com>:
6629 * ui-out.c (ui_out_field_core_addr): Use the function
6630 longest_local_hex_string_custom'to format addresses > 32 bits
6631 wide.
6632
6633 * ui-out.c (ui_out_field_core_addr): Update comment.
6634
bedfa57b
AC
66352002-05-04 Andrew Cagney <ac131313@redhat.com>
6636
6637 * stack.c (select_and_print_frame): Make static. Delete the
6638 parameter `level'.
6639 (func_command): Update call.
6640 (select_frame_command): Delete code computing the frame level.
6641 * frame.h (select_and_print_frame): Delete declaration.
6642
f621c63e
AC
66432002-05-04 Andrew Cagney <ac131313@redhat.com>
6644
6645 * sparc-tdep.c (sparc_get_saved_register): Comment why
6646 get_prev_frame call is safe.
6647
0f7d239c
AC
66482002-05-04 Andrew Cagney <ac131313@redhat.com>
6649
6650 * frame.h (select_frame): Delete level parameter.
6651 * stack.c (select_frame): Update. Use frame_relative_level to
6652 obtain the frame's level.
6653 (select_and_print_frame): Update call.
6654 (select_frame_command): Ditto.
6655 (up_silently_base): Ditto.
6656 (down_silently_base): Ditto.
6657 * ocd.c (ocd_start_remote): Ditto.
6658 * remote-rdp.c (remote_rdp_open): Ditto.
6659 * remote-mips.c (mips_initialize): Ditto.
6660 (common_open): Ditto.
6661 * remote-e7000.c (e7000_start_remote): Ditto.
6662 * m3-nat.c (select_thread): Ditto.
6663 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6664 (child_get_current_exception_event): Ditto.
6665 * varobj.c (varobj_create): Ditto.
6666 (varobj_update): Ditto.
6667 (c_value_of_root): Ditto.
6668 * tracepoint.c (finish_tfind_command): Ditto.
6669 * corelow.c (core_open): Ditto.
6670 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6671 * thread.c (info_threads_command): Ditto.
6672 (switch_to_thread): Ditto.
6673 * infrun.c (normal_stop): Ditto.
6674 (restore_selected_frame): Ditto.
6675 (restore_inferior_status): Ditto.
6676 * breakpoint.c (insert_breakpoints): Ditto.
6677 (watchpoint_check): Ditto.
6678 (bpstat_stop_status): Ditto.
6679 (do_enable_breakpoint): Ditto.
6680 * blockframe.c (flush_cached_frames): Ditto.
6681 (reinit_frame_cache): Ditto.
6682
71d6c7b1
AC
66832002-05-04 Andrew Cagney <ac131313@redhat.com>
6684
6685 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6686 maintainer.
6687
cda6c68a
JB
66882002-05-04 Jim Blandy <jimb@redhat.com>
6689
6690 * gdbtypes.c (replace_type): Doc fix.
6691
5c1c87f0
AC
66922002-05-04 Andrew Cagney <ac131313@redhat.com>
6693
6694 * valprint.c (strcat_longest): Delete commented out function.
6695 Update copyright.
6696
cd9bfe15
AC
66972002-05-04 Andrew Cagney <ac131313@redhat.com>
6698
6699 * MAINTAINERS: Mark a29k as deleted.
6700 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6701 Move new configurations to the top.
6702 * configure.tgt: Remove a29k.
6703 * config/a29k/tm-vx29k.h: Delete.
6704 * config/a29k/vx29k.mt: Delete.
6705 * config/a29k/tm-a29k.h: Delete.
6706 * config/a29k/a29k-udi.mt: Delete.
6707 * config/a29k/a29k.mt: Delete.
6708 * a29k-tdep.c: Delete.
6709 * remote-udi.c: Delete.
6710 * remote-mm.c: Delete.
6711 * remote-eb.c: Delete.
6712 * remote-adapt.c: Delete.
6713 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6714 * config/s390/s390x.mt: Ditto.
6715 * config/s390/s390.mt: Ditto.
6716 * config/sparc/sparclynx.mh: Ditto.
6717 * config/sparc/linux.mh: Ditto.
6718 * config/pa/hppaosf.mh: Ditto.
6719 * config/pa/hppabsd.mh: Ditto.
6720 * config/ns32k/nbsd.mt: Ditto.
6721 * config/mips/vr5000.mt: Ditto.
6722 * config/m68k/sun3os4.mh: Ditto.
6723 * config/m68k/nbsd.mt: Ditto.
6724 * config/m68k/m68klynx.mh: Ditto.
6725 * config/m32r/m32r.mt: Ditto.
6726 * config/i386/x86-64linux.mt: Ditto.
6727 * config/i386/nbsdelf.mt: Ditto.
6728 * config/i386/nbsd.mt: Ditto.
6729 * config/i386/i386lynx.mh: Ditto.
6730
bf0c5130
AC
67312002-05-04 Andrew Cagney <ac131313@redhat.com>
6732
6733 * target.c (debug_print_register): New function. Handle oversize
6734 registers.
6735 (debug_to_fetch_registers): Call.
6736 (debug_to_store_registers): Call.
6737
2ae1c2d2
JB
67382002-05-03 Jim Blandy <jimb@redhat.com>
6739
13a393b0
JB
6740 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6741 (read_type): Doc fix.
6742 * gdbtypes.c (replace_type): Doc fix.
6743
2ae1c2d2
JB
6744 * stabsread.c (multiply_defined_struct): New complaint.
6745 (read_struct_type): If the type we were passed isn't empty, or
6746 incomplete, don't read the new struct type into it; complain,
6747 and return the original type unchanged. Take a new `type_code'
6748 argument, which is the type code for the new type.
6749 (read_type): Rather than storing the type's type code here, pass
6750 it as an argument to read_struct_type, and let that take care of
6751 storing it. That way, we don't overwrite the original type code,
6752 so read_struct_type can use it to decide whether we're overwriting
6753 something we shouldn't.
6754 (complain_about_struct_wipeout): New function.
6755
8de9bdc4
AC
67562002-05-03 Andrew Cagney <ac131313@redhat.com>
6757
6758 * gdbarch.sh: Assert that gdbarch is non-NULL.
6759 * gdbarch.c: Regenerate.
6760
f773fdbb
JM
67612002-05-03 Jason Merrill <jason@redhat.com>
6762
6763 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6764 and return NULL.
6765
0e04a514
ML
67662002-05-03 Michal Ludvig <mludvig@suse.cz>
6767
6768 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6769 (x86_64_dwarf2gdb_regno_map_length),
6770 (x86_64_dwarf2_reg_to_regnum): Added.
6771 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6772 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6773 (_initialize_x86_64_tdep): Synced with the change above.
6774 (x86_64_skip_prologue): Reformulated message.
6775
065432a8
PM
67762002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6777
6778 * f-exp.y: Also use new prev_lexptr variable
6779 to improve error reporting. Based on Michael Snyder
6780 2002-04-24 dated patch to c-exp.y.
6781 * jv-exp.y: Likewise.
6782 * m2-exp.y: Likewise.
6783
a3162708
EZ
67842002-05-02 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6787 we are dealing with vectors.
6788
03620c38
PM
67892002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6790
6791 * config/m68k/tm-nbsd.h: Obvious fix,
6792 correct machine name.
6793
6604db2e
PM
67942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6795
6796 * p-typeprint.c (pascal_type_print_base): Add support
6797 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6798
0906b739
PM
67992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6800
6801 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6802 for fondamental pascal 'char' type.
6803
e2625b33
PM
68042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6805
6806 * p-lang.h (is_pascal_string_type): Declaration changed,
6807 new sixth argument of type char ** added.
361d1df0 6808 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6809 changed. Args length_pos, length_size, string_pos, char_size
6810 can now be NULL. New argument arrayname set to the field
6811 name of the char array. Return value set to char array
6812 field index plus one.
361d1df0 6813 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6814 is_pascal_string_type function.
6815
cf17c188
AC
68162002-05-02 Andrew Cagney <cagney@redhat.com>
6817
6818 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6819 <cagney@redhat.com> change.
6820 * gdbarch.c: Regenerate.
6821
52bca491
AC
68222002-05-02 Andrew Cagney <cagney@redhat.com>
6823
6824 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6825 before probing for a new one. Detect errorenous gdbarch_init
6826 functions.
6827 * gdbarch.c: Regenerate.
6828
d5e72505
AC
68292002-05-01 Andrew Cagney <cagney@redhat.com>
6830
6831 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6832 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6833 * config/v850/tm-v850.h: Ditto. Update copyright.
6834
af566d9f
AC
68352002-04-30 Andrew Cagney <ac131313@redhat.com>
6836
6837 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6838 current_gdbarch.
6839
880d85fa
MS
68402002-04-30 Michael Snyder <msnyder@redhat.com>
6841
94c30b78
MS
6842 * arm-tdep.c: Whitespace clean-ups.
6843 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6844 should have been removed as part of 4/24 change.
6845
6f5987a6
KB
68462002-04-30 Kevin Buettner <kevinb@redhat.com>
6847
6848 * rs6000-tdep.c: Added comment describing how fpscr register
6849 numbers were chosen.
6850
1a113c93
MS
68512002-04-30 Michael Snyder <msnyder@redhat.com>
6852
6853 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6854
9a6f53fe
EZ
68552002-04-29 Elena Zannoni <ezannoni@redhat.com>
6856
6857 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6858 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6859 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6860
11ed25ac
KB
68612002-04-29 Kevin Buettner <kevinb@redhat.com>
6862
6863 From Louis Hamilton <hamilton@redhat.com>:
6864 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6865 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6866 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6867 not bfd-private xcoff data, to determine wordsize.
6868 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6869
ae232405
AC
68702002-04-29 Andrew Cagney <ac131313@redhat.com>
6871
6872 GDB 5.2 released from 5.2 branch.
6873
91fd20f7
ML
68742002-04-29 Michal Ludvig <mludvig@suse.cz>
6875
6876 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6877 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6878 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6879
2dc5091b
EZ
68802002-04-29 Elena Zannoni <ezannoni@redhat.com>
6881
6882 * rs6000-tdep.c (rs6000_extract_return_value,
6883 rs6000_store_return_value): Handle returning vectors.
6884 (rs6000_gdbarch_init): Use
6885 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6886 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6887 New function.
6888 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6889 vectors.
6890 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6891 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6892
2b9848d8
PM
68932002-04-24 Pierre Muller <ics.u-strasbg.fr>
6894
6895 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6896 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6897 with fprintf_unfiltered (gdb_stderr,...).
6898
f8d17dc5
PM
68992002-04-24 Pierre Muller <ics.u-strasbg.fr>
6900
6901 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6902 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6903 Replace fprintf (stderr,...
6904 with fprintf_unfiltered (gdb_stderr,....
6905 * remote-es.c: Likewise.
6906 * remote-os9k.c: Likewise.
6907 * remote-st.c: Likewise.
6908
2f2f1ad1
AS
69092002-04-28 Andreas Schwab <schwab@suse.de>
6910
6911 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6912 linux-proc.o and gcore.o.
6913
b6779aa2
AC
69142002-04-26 Michal Ludvig <mludvig@suse.cz>
6915
6916 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6917 code without frame pointers.
6918
7e57f5f4
AC
69192002-04-26 Andrew Cagney <ac131313@redhat.com>
6920
6921 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6922 ON_STACK is needed.
6923
2ceb85d0
BE
69242002-04-26 Ben Elliston <bje@redhat.com>
6925
6926 * target.c (do_xfer_memory): Correct reference to the new option
6927 "trust-readonly-sections".
6928
f5f8a009
EZ
69292002-04-26 Elena Zannoni <ezannoni@redhat.com>
6930
6931 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6932 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6933 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6934 vectors.
6935 (read_array_type): Record the fact that this array type is really a
6936 vector (i.e. are passed in by value).
6937
5868c862
JT
69382002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6941 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6942 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6943 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6944 * alpha-linux-tdep.c: Include frame.h.
6945 (alpha_linux_sigcontext_addr): New function.
6946 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6947 alpha_linux_sigcontext_addr.
6948 * alpha-osf1-tdep.c: Include gdbcore.h.
6949 (alpha_osf1_sigcontext_addr): New function.
6950 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6951 alpha_osf1_sigcontext_addr.
6952 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6953 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6954
bfb01f37
AC
69552002-04-26 Andrew Cagney <ac131313@redhat.com>
6956
361d1df0 6957 * stack.c (selected_frame_level):
bfb01f37
AC
6958 (select_frame): Do not set selected_frame_level.
6959 * frame.h (selected_frame_level): Delete declaration.
6960
15813d3f
AC
69612002-04-26 Andrew Cagney <ac131313@redhat.com>
6962
6963 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6964 convert_from_func_ptr-addr when AIX / PowerOpen.
6965
6096c27a
AC
69662002-04-25 Andrew Cagney <ac131313@redhat.com>
6967
6968 * valops.c (hand_function_call): Call
6969 generic_save_call_dummy_addr.
6970 * frame.h (generic_save_call_dummy_addr): Declare.
6971 * blockframe.c (struct dummy_frame): Add fields call_lo and
6972 call_hi.
6973 (generic_find_dummy_frame): Check for PC in range call_lo to
6974 call_hi instead of entry_point_address.
6975 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6976 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6977 (generic_save_call_dummy_addr): New function.
6978
f510d44e
DM
69792002-04-24 David S. Miller <davem@redhat.com>
6980
6981 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6982 sparc_skip_prologue.
6983 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6984 information to find prologue when possible.
6985 (sparc_prologue_frameless_p): Call examine_prologue directly.
6986 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6987 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6988 second argument.
6989 (SKIP_PROLOGUE): Likewise.
6990
15d72a92
JT
69912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6992
6993 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6994 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6995 indicate that the condition it was testing is always true.
6996 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6997 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6998 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6999
accc6d1f
JT
70002002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7001
7002 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7003 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7004 tdep->jb_pc and tdep->jb_elt_size.
7005 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7006 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7007 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7008 * alpha-nat.c (get_longjmp_target): Remove.
7009 (JB_ELEMENT_SIZE): Ditto.
7010 (JB_PC): Ditto.
7011 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7012 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7013 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7014 to alpha_get_longjmp_target.
7015 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7016 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7017 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7018
1bfdc549
AC
70192002-04-25 Andrew Cagney <ac131313@redhat.com>
7020
7021 * README: Update to GDB 5.2.
7022
1bd316f0
AC
70232002-04-25 Andrew Cagney <ac131313@redhat.com>
7024
7025 * gdbarch.sh (LC_ALL): Set to `c'.
7026
2e5ff58c
TR
70272002-04-25 Theodore A. Roth <troth@verinet.com>
7028
7029 * avr-tdep.c: Ran through gdb_indent.sh.
7030
e33ce519
TR
70312002-04-25 Theodore A. Roth <troth@verinet.com>
7032
7033 * MAINTAINERS: Add myself as AVR maintainer.
7034 * NEWS: Note new target avr.
7035
8818c391
TR
70362002-04-25 Theodore A. Roth <troth@verinet.com>
7037
7038 * Makefile.in: Add support for AVR target.
7039 * configure.tgt: Add support for AVR target.
7040 * avr-tdep.c: New file
7041 * config/avr/avr.mt: New file.
7042
79509c2d
TR
70432002-04-25 Theodore A. Roth <troth@verinet.com>
7044
7045 * MAINTAINERS: Add myself to write-after-approval.
7046
dac8068e
PM
70472002-04-24 Pierre Muller <ics.u-strasbg.fr>
7048
7049 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7050 with fprintf_unfiltered (gdb_stderr,....
7051
25bf3106
PM
70522002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 Fix PR gdb/508.
7055 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7056
24467a86
PM
70572002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7058
7059 * p-exp.y: Also use new prev_lexptr variable
7060 to improve error reporting. Based on Michael Snyder
7061 2002-04-24 dated patch to c-exp.y.
7062
95b80706
JT
70632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7064
7065 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7066 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7067 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7068 to 0.
7069 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7070 and struct value.
7071 (FUNCTION_START_OFFSET): Remove.
7072 (BREAKPOINT): Ditto.
7073
e90cc612
JT
70742002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7075
7076 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7077 * NEWS: Ditto.
7078
6c72f9f9
JT
70792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7082 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7083 alpha_linux_pc_in_sigtramp.
7084 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7085 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7086 alpha_osf1_pc_in_sigtramp.
7087 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7088 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7089 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7090 alphafbsd_pc_in_sigtramp.
7091 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7092 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7093 alphanbsd_pc_in_sigtramp.
7094 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7095 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7096
5e4f3379
JT
70972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7100
da8ca43d
JT
71012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7102
7103 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7104 alphanbsd-tdep.c.
7105 (alphanbsd-nat.o): New dependency list.
7106 (alphanbsd-tdep.o): Ditto.
7107 * NEWS: Note new native NetBSD/alpha configuration.
7108 * alphanbsd-nat.c: New file.
7109 * alphanbsd-tdep.c: Ditto.
7110 * configure.host (alpha*-*-netbsd*): New host.
7111 * configure.tgt (alpha*-*-netbsd*): New target.
7112 * config/alpha/nbsd.mh: New file.
7113 * config/alpha/nbsd.mt: Ditto.
7114 * config/alpha/nm-nbsd.h: Ditto.
7115 * config/alpha/tm-nbsd.h: Ditto.
7116
36a6271d
JT
71172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7118
7119 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7120 (alpha-osf1-tdep.o): New dependency list.
7121 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7122 and skip_sigtramp_frame members.
7123 * alpha-linux-tdep.c: Include gdbcore.h.
7124 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7125 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7126 * alpha-osf1-tdep.c: New file.
7127 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7128 alpha-osf1-dep.c.
7129 (alpha_frame_past_sigtramp_frame): New function.
7130 (alpha_dynamic_sigtramp_offset): Ditto.
7131 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7132 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7133 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7134 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7135 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7136 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7137 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7138 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7139 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7140 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7141 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7142 to find_solib_trampoline_target.
7143 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7144 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7145 (SKIP_TRAMPOLINE_CODE): Remove.
7146 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7147 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7148 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7149 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7150 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7151 (PROC_SIGTRAMP_MAGIC): Ditto.
7152 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7153 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7154 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7155 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7156 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7157
2f4bc57b
JT
71582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7159
7160 * NEWS: Note that Alpha targets are now multi-arch.
7161
665132f9
MS
71622002-04-24 Michael Snyder <msnyder@redhat.com>
7163
7164 * parser-defs.h (prev_lexptr): New external variable.
7165 * parse.c (parse_exp_1): Set prev_lexptr to null before
7166 calling the language-specific parser.
7167 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7168 (yyerror): Use prev_lexptr in error reporting.
7169
32872fa7
DJ
71702002-04-24 Daniel Jacobowitz <drow@mvista.com>
7171
7172 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7173 * gregset.h: If FILL_FPXREGSET is defined, provide
7174 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7175 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7176 is defined, call fill_fpxregset.
7177
57e76fac
MS
71782002-04-24 Roland McGrath <roland@frob.com>
7179
7180 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7181 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7182 (supply_gregset, supply_fpregset): New functions.
7183
7184 * gnu-nat.c (gnu_find_memory_regions): New function.
7185 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7186 (gnu_xfer_memory): Add a cast.
7187
f43845b3
MS
71882002-04-24 Michael Snyder <msnyder@redhat.com>
7189
361d1df0 7190 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7191 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7192 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7193 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7194 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7195 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7196
a0abec03
AC
7197Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7198
7199 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7200 NUM_PSEUDO_REGS can be used.
7201
d7bd68ca
AC
72022002-04-24 Andrew Cagney <ac131313@redhat.com>
7203
7204 * arch-utils.h: Update copyright.
7205
7206 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7207 * gdbarch.h, gdbarch.c: Re-generate.
7208
7209 * inferior.h (IN_SIGTRAMP): Delete definition.
7210 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7211 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7212
7213 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7214 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7215 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7216 (find_proc_framesize): Ditto.
7217 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7218 (alpha_init_extra_frame_info): Ditto.
7219 * infrun.c (handle_inferior_event): Ditto.
7220 (handle_inferior_event): Ditto.
7221 (check_sigtramp2): Ditto.
7222 * blockframe.c (create_new_frame): Ditto.
7223 (get_prev_frame): Ditto.
7224 * ppc-linux-tdep.c: Update comments.
7225 * i386-linux-tdep.c: Update comments.
7226 * breakpoint.c (bpstat_what): Update comment.
7227
4867e41e
DM
72282002-04-24 David S. Miller <davem@redhat.com>
7229
21d83aa5
DM
7230 * i960-tdep.c (register_in_window_p): New function.
7231 (i960_find_saved_register): Use it instead of
7232 REGISTER_IN_WINDOW_P.
7233 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7234
4867e41e
DM
7235 * symtab.h (find_stab_function_addr): Kill extern.
7236 * minsyms.c (find_stab_function_addr): Remove from here...
7237 * dbxread.c: ... to here, and mark it static.
7238
69cdf6a2
DM
72392002-04-20 David S. Miller <davem@redhat.com>
7240
7241 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7242 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7243
5a595886
DM
72442002-04-21 David S. Miller <davem@redhat.com>
7245
7246 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7247 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7248 (vx_write_register): Likewise.
7249
1da1a192
JB
72502002-04-23 J. Brobecker <brobecker@gnat.com>
7251
7252 * source.c (is_regular_file): New function.
7253 (openp): Check wether file to open is a regular file
7254 to avoid opening directories.
7255
baa6f10b
JT
72562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7257
7258 * findvar.c (extract_signed_integer): Cast printf argument
7259 to suppress format warning.
7260 (extract_unsigned_integer): Likewise.
7261 * infcmd.c (registers_info): Likewise.
7262 * top.c (get_prompt_1): Likewise.
7263 * valops.c (value_assign): Likewise.
7264 * valprint.c (print_decimal): Likewise.
7265
b2c4da81
L
72662002-04-22 H.J. Lu (hjl@gnu.org)
7267
7268 * c-exp.y (typebase): Support
361d1df0 7269
b2c4da81
L
7270 [long|long long|short] [signed|unsigned] [int|]
7271
7272 and
7273
7274 signed [long|long long|short] int
7275
f267bd6a
JT
72762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7279 and vax-tdep.h.
7280 * vax-tdep.h: New file.
7281 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7282 Make several routines static.
7283 (vax_get_saved_register): New function.
7284 (vax_gdbarch_init): New function.
7285 (_initialize_vax_tdep): Register vax_gdbarch_init.
7286 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7287 Remove macros now under the control of gdbarch.
7288
da3c6d4a
MS
72892002-04-22 Michael Snyder <msnyder@redhat.com>
7290
11d3b27d
MS
7291 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7292 Some whitespace and coding standards tweaks.
da3c6d4a 7293
a33f7558
JT
72942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7295
7296 * vax-tdep.c: Include regcache.h.
7297 (vax_call_dummy_words): New.
7298 (sizeof_vax_call_dummy_words): New.
7299 (vax_fix_call_dummy): New function.
7300 (vax_saved_pc_after_call): Ditto.
7301 * config/vax/tm-vax.h: Don't include regcache.h.
7302 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7303 (CALL_DUMMY): Remove.
7304 (CALL_DUMMY_WORDS): Define.
7305 (SIZEOF_CALL_DUMMY_WORDS): Define.
7306 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7307
47a73475
MS
73082002-04-18 Michael Snyder <msnyder@redhat.com>
7309
7310 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7311
52efde73
JT
73122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7313
7314 * vax-tdep.c (vax_frame_chain): New function.
7315 (vax_push_dummy_frame): Ditto.
7316 (vax_pop_frame): Ditto.
7317 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7318 (FRAMELESS_FUNCTION_INVOCATION): Use
7319 generic_frameless_function_invocation_not.
7320 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7321 (POP_FRAME): Use vax_pop_frame.
7322
ea74468c
JT
73232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * vax-tdep.c (vax_store_struct_return): New function.
7326 (vax_extract_return_value): Ditto.
7327 (vax_store_return_value): Ditto.
7328 (vax_extract_struct_value_address): Ditto.
7329 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7330 vax_store_struct_return.
7331 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7332 (STORE_RETURN_VALUE): Use vax_store_return_value.
7333 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7334
5516aa92
JT
73352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7336
7337 * vax-tdep.c (vax_frame_saved_pc): New function.
7338 (vax_frame_args_address_correct): Ditto.
7339 (vax_frame_args_address): Ditto.
7340 (vax_frame_locals_address): Ditto.
7341 (vax_frame_num_args): Move code to be in proximity to
7342 other frame-related functions.
7343 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7344 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7345 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7346 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7347 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7348
36af0b35
L
73492002-04-22 H.J. Lu (hjl@gnu.org)
7350
7351 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7352 includedir.
7353
ab62c900
JT
73542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7355
7356 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7357 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7358 (FRAME_INIT_SAVED_REGS): New macro.
7359
7232b100
JT
73602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7361
7362 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7363
b70d2aee
JT
73642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7365
7366 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7367 where needed.
7368 (fetch_osf_core_registers): Likewise.
7369 (supply_gregset): Likewise.
7370
a0e8a2d1 73712002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7372
a0e8a2d1
JB
7373 * symfile.h (get_section_index): Define.
7374 * symfile.c (get_section_index): New function.
7375 * mdebugread.c (SC_IS_SBSS): New macro.
7376 (SC_IS_BSS): Return true for the scBss storage class only, as
7377 the scSBss storage class refers to the .sbss section.
7378 (parse_partial_symbols): Discard the symbols which associated
7379 section does not exist.
7380 Make sure to use the .sbss section index for symbols which
7381 storage class is scBss, rather than using the .bss section index.
7382
51eb8b08
JT
73832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * vax-tdep.c: Update copyright years.
7386 (vax_register_name): New function.
7387 (vax_register_byte): Ditto.
7388 (vax_register_raw_size): Ditto.
7389 (vax_register_virtual_size): Ditto.
7390 (vax_register_virtual_type): Ditto.
7391 * config/vax/tm-vax.h: Update copyright years.
7392 (REGISTER_NAMES): Remove.
7393 (REGISTER_NAME): Define.
7394 (REGISTER_BYTE): Use vax_register_byte.
7395 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7396 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7397 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7398
6cc1c0a8
AC
73992002-04-21 Andrew Cagney <ac131313@redhat.com>
7400
7401 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7402 declaration
7403 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7404
9319a2fe
DM
74052002-04-21 David S. Miller <davem@redhat.com>
7406
7407 * arch-utils.c (generic_prologue_frameless_p): Kill
7408 SKIP_PROLOGUE_FRAMELESS_P code.
7409 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7410 references.
7411 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7412 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7413 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7414 references.
7415 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7416 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7417 (sparc_gdbarch_init): Pass it to
7418 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7419
e9ed6d01
JT
74202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7421
7422 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7423 (alphabsd-nat.o): New dependency list.
7424
36012033
JT
74252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7426
7427 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7428 alphafbsd-tdep.c.
7429 (alpha-linux-tdep.o): New dependency list.
7430 (alphafbsd-tdep.o): Likewise.
7431
3379287a
JT
74322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7435 to here...
7436 * alpha-tdep.c: ...from here.
7437 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7438
4bcbd6cb
JT
74392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7442 prototype from here...
7443 * alpha-tdep.h: ...to here.
7444
b31da25e
AC
74452002-04-21 Andrew Cagney <ac131313@redhat.com>
7446
7447 * frame.h (selected_frame_level): Document as deprecated.
7448 (frame_relative_level): Declare.
7449 * stack.c (frame_relative_level): New function.
7450 (selected_frame_level): Document as deprecated.
7451 (select_frame): Do not set the selected_frame_level.
7452
7453 * stack.c (frame_info, record_selected_frame): Update.
7454 (frame_command, current_frame_command): Update.
7455 (up_silently_base, up_command, down_silently_base): Update.
7456 (down_command): Update.
7457 * inflow.c (kill_command): Update.
7458 * tracepoint.c (finish_tfind_command): Update.
7459 * corelow.c (core_open): Update.
7460 * thread.c (info_threads_command): Update.
7461 (do_captured_thread_select): Update.
7462 * infcmd.c (finish_command): Update.
7463 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7464
9c1d6fe5
JT
74652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7466
7467 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7468
ab89facf
AC
74692002-04-21 Andrew Cagney <ac131313@redhat.com>
7470
7471 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7472 type const.
7473
82a4efa1
JT
74742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7475
7476 * alphafbsd-tdep.c: Update copyright years. Include
7477 alpha-tdep.h.
7478 (alphafbsd_use_struct_convention): Make static.
7479 (alphafbsd_init_abi): New function.
7480 (_initialize_alphafbsd_tdep): New function.
7481 * config/alpha/tm-fbsd.h: Update copyright years.
7482 (USE_STRUCT_CONVENTION): Remove.
7483
44dffaac
JT
74842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7485
7486 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7487 an Alpha ABI variant.
7488 (alpha_abi_handler_list): Declare.
7489 (alpha_gdbarch_register_os_abi): New function.
7490 (alpha_gdbarch_init): Give registered ABI variant handlers a
7491 chance to tweak the gdbarch once we have set up defaults.
7492 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7493
65585be4
JT
74942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7497 to standard_coerce_float_to_double.
7498 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7499
d9b023cc
JT
75002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7501
7502 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7503 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7504 from gdbarch_tdep rather than a constant.
7505 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7506 the default text address for all Alpha Unix ABIs.
7507 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7508 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7509
dc129d82
JT
75102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * alpha-tdep.h: New file. Includes several Alpha target constants
7513 taken from...
7514 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7515 let gdbarch deal with.
7516 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7517 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7518 to dependency list.
7519 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7520 Alpha target register names.
7521 * alphabsd-nat.c: Likewise.
7522 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7523 Alpha target register names. Make serveral routines static.
7524 (alpha_get_saved_register): New function.
7525 (alpha_abi_names): New.
7526 (process_note_abi_tag_sections): New function.
7527 (get_elfosabi): New function.
7528 (alpha_gdbarch_init): New function.
7529 (alpha_dump_tdep): New function.
7530 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7531
d49d1e0a
AC
75322002-04-21 Andrew Cagney <ac131313@redhat.com>
7533
7534 * frame.c (find_saved_register): Delete #ifdef
7535 HAVE_REGISTER_WINDOWS code.
7536 * config/sparc/tm-sparc.h: Update comments.
7537 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7538
92e8c9ed
AC
75392002-04-21 Andrew Cagney <ac131313@redhat.com>
7540
7541 * i960-tdep.c (i960_find_saved_register): New function.
7542 (i960_get_saved_register): New function.
7543 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7544 (i960_get_saved_register): Declare.
7545 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7546
e1925118
DM
75472002-04-20 David S. Miller <davem@redhat.com>
7548
7549 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7550
29673b29
AC
75512002-04-20 Andrew Cagney <ac131313@redhat.com>
7552
7553 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7554 instead of NUM_PSEUDO_REGS.
7555
6c86dcd5
DM
75562002-04-20 David S. Miller <davem@redhat.com>
7557
7558 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7559 GDB_MULTI_ARCH_PARTIAL
7560 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7561 define, let tm-sp64.h do it.
7562
aa40ec90
JT
75632002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * frame.c (find_saved_register): Avoid a NULL pointer
7566 dereference and actually walk the frame list.
7567
0f79675b
AC
75682002-04-20 Andrew Cagney <ac131313@redhat.com>
7569
7570 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7571 sorted in most most-recent-used order. Document.
7572 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7573
f91305dd 75742002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7575
7576 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7577 instead of ->prev.
7578 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7579 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7580 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7581 instead of ->prev.
7582
73d322b1
EZ
75832002-04-19 Elena Zannoni <ezannoni@redhat.com>
7584
7585 Fix PR gdb/471.
7586 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7587 (build_builtin_type_vec128): Ditto.
7588 (append_composite_type_field): Fix calculation of type length in
7589 union case.
7590
ccd9a834
EZ
75912002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7592
7593 * config/djgpp/README: Update.
7594
7595 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7596 compiler warnings.
7597
a57f9e49
JT
75982002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7599
7600 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7601 (alpha_setup_arbitrary_frame): ...to this.
7602 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7603 for alpha_setup_arbitrary_frame.
7604
f4f9705a
AC
76052002-04-18 Andrew Cagney <cagney@redhat.com>
7606
7607 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7608 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7609
f4f9705a
AC
7610 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7611 * target.h (memory_breakpoint_from_pc): Update declaration.
7612 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7613
7614 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7615 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7616 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7617 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7618 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7619 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7620 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7621 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7622 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7623 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7624 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7625 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7626
7627 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7628 const pointer.
7629 * monitor.c (monitor_insert_breakpoint): Ditto.
7630 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7631
7632 * config/mcore/tm-mcore.h: Update copyright.
7633 * mem-break.c: Ditto.
7634 * xstormy16-tdep.c: Ditto.
7635
29f319b8
PM
76362002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7637
7638 * p-exp.y: Add precedence rule for '^' token.
7639 This removes the shift/reduce conflicts.
7640 Remove the comment concerning these shift/reduce conflicts.
7641
ebeac11a
EZ
76422002-04-18 Elena Zannoni <ezannoni@redhat.com>
7643
7644 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7645 (registers_powerpc_nofp): New register set for processors
7646 without floating point unit.
7647
27c31547
DM
76482002-04-18 David S. Miller <davem@redhat.com>
7649
7650 * MAINTAINERS: Add myself to write-after-approval.
7651
47a73475
MS
76522002-04-17 Michael Snyder <msnyder@redhat.com>
7653
7654 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7655
953836b2
AC
76562002-04-17 Andrew Cagney <ac131313@redhat.com>
7657
7658 * rs6000-tdep.c (frame_initial_stack_address): Use
7659 frame_register_read to read the alloca_reg.
7660
8b0d4340
AC
76612002-04-17 Andrew Cagney <ac131313@redhat.com>
7662
7663 * frame.c (find_saved_register): Find saved registers in the next
7664 not prev frame.
7665 Fix PR gdb/365.
7666
d8864532
AC
76672002-04-17 Andrew Cagney <ac131313@redhat.com>
7668
7669 * gdbarch.sh (LANG): Set to ``c''.
7670
36cc83a3 76712002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7672
36cc83a3 7673 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7674
2f4150cc 76752002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7676
7677 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7678 Update copyright.
7679
628703c6 7680 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7681 Also fix PR gdb/391.
361d1df0 7682
56157b4a
AC
76832002-04-14 Andrew Cagney <ac131313@redhat.com>
7684
7685 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7686 * aclocal.m4, configure: Re-generate.
7687 Fix PR gdb/391.
361d1df0 7688
6d1e3329
EZ
76892002-04-14 Elena Zannoni <ezannoni@redhat.com>
7690
7691 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7692 instead of tm_print_insn.
7693
cb06fa07
EZ
76942002-04-14 Elena Zannoni <ezannoni@redhat.com>
7695
7696 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7697
f208ba17
AC
76982002-04-14 Andrew Cagney <ac131313@redhat.com>
7699
7700 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7701 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7702 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7703
20f01a46
DH
77042002-04-12 Don Howard <dhoward@redhat.com>
7705
7706 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7707 max_user_call_depth.
7708 (init_cmd_lists): Initialize the new value;
7709 * cli/cli-script.c (execute_user_command): Limit the call depth of
7710 user defined commands. This avoids a core-dump when user commands
7711 are infinitly recursive.
7712
a88376a3
KB
77132002-04-12 Kevin Buettner <kevinb@redhat.com>
7714
7715 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7716 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7717 from tdep struct instead of DEFAULT_LR_SAVE.
7718 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7719 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7720 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7721
f2172603
MS
77222002-04-12 Michael Snyder <msnyder@redhat.com>
7723
694f61fb 7724 * Remote.c: Spelling fix.
20fe79c8
MS
7725 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7726 If no symbol found for "sbrk", try "_sbrk".
7727 (make_output_phdrs): Use bfd_section_name.
7728 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7729 * eval.c: Indentation fix-ups.
169a7369
MS
7730 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7731 in case it gets applied to an address that is already
7732 in the instruction space.
de74f71f
MS
7733 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7734 * symfile.c: Fix indentation, long lines.
f2172603
MS
7735 * source.c: White space fix-up.
7736
cda5a58a
AC
77372002-04-12 Andrew Cagney <cagney@redhat.com>
7738
7739 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7740 * frame.c (frame_register_read): New function. Return non-zero on
7741 success.
7742 (read_relative_register_raw_bytes_for_frame): Delete.
7743 (read_relative_register_raw_bytes): Delete.
7744 * frame.h (frame_register_read): Declare.
7745 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7746 * sh-tdep.c: Ditto.
7747 * infcmd.c (do_registers_info): Ditto.
7748 * hppa-tdep.c: Ditto.
7749 * rs6000-tdep.c: Ditto.
7750 * h8500-tdep.c: Ditto.
7751 * mips-tdep.c: Ditto.
7752 * h8300-tdep.c: Ditto.
7753 * z8k-tdep.c: Ditto.
7754
2ea5f656
KB
77552002-04-12 Kevin Buettner <kevinb@redhat.com>
7756
7757 From Jimi X <jimix@watson.ibm.com>:
7758 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7759 64-bit SysV ABI.
7760
27b15785
KB
77612002-04-12 Kevin Buettner <kevinb@redhat.com>
7762
7763 From Jimi X <jimix@watson.ibm.com>:
7764 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7765 bfd info.
7766
5d57ee30
KB
77672002-04-12 Kevin Buettner <kevinb@redhat.com>
7768
7769 From Jimi X <jimix@watson.ibm.com>:
7770 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7771 register sets for these processor variants.
7772
bc1e36ca
DJ
77732002-04-11 Daniel Jacobowitz <drow@mvista.com>
7774
bc1e36ca
DJ
7775 * regformats/reg-ppc.dat: Support FPSCR.
7776
e3f36dbd
KB
77772002-04-11 Kevin Buettner <kevinb@redhat.com>
7778
7779 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7780 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7781 Add fpscr as an invalid/unfetchable register.
7782 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7783 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7784 (fill_fpregset): Add support for register fpscr.
7785 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7786 (fill_gregset): Account for the fact that register ``mq'' might
7787 not exist.
7788 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7789 (registers_power): Add fpscr to register set at slot 71.
7790 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7791 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7792
943c9c25
MS
77932002-04-11 Michael Snyder <msnyder@redhat.com>
7794
7795 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7796 * configure: Regenerate.
7797 * config.in: Regenerate.
7798 * acconfig.h: Add define for _SYSCALL32.
7799 * core-sol2.c: Remove #define _SYSCALL32.
7800 * solib-legacy.c: Remove #define _SYSCALL32.
7801
d8c0a2e7
AC
78022002-04-10 Andrew Cagney <ac131313@redhat.com>
7803
7804 * stack.c (select_frame): Cleanup internal error message, do not
7805 use %p.
7806
7cc19214
AC
78072002-04-10 Andrew Cagney <ac131313@redhat.com>
7808
7809 * stack.c (select_frame): Check that selected_frame and the
7810 specified level are as expected.
7811 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7812 Update copyright.
7813 * frame.h (struct frame_info): Add field `level'. Update
7814 copyright.
7815 Work-in-progress PR gdb/464.
7816
67a2b77e
AC
78172002-04-10 Andrew Cagney <ac131313@redhat.com>
7818
7819 * maint.c (maint_print_section_info): Rename print_section_info.
7820 (print_bfd_section_info, print_objfile_section_info): Update.
7821 * inferior.h (struct gdbarch): Add opaque declaration.
7822 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7823 * gdbarch.h: Regenerate.
7824
8cfda98c
ML
78252002-04-10 Michal Ludvig <mludvig@suse.cz>
7826
7827 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7828 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7829 (kernel_u_size): Added.
7830 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7831 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7832
ca439ad2 78332002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7834
ca439ad2
JI
7835 * valarith.c (find_size_for_pointer_math): New function, either returns
7836 the size for a pointer's target, returns 1 for void *, or errors for
7837 incomplete types.
7838 (value_add, value_sub): use find_size_for_pointer_math.
7839
2f2893d9
DJ
78402002-04-09 Daniel Jacobowitz <drow@mvista.com>
7841
7842 * linux-low.c (linux_look_up_symbols): New hook.
7843 (linux_target_ops): Add linux_look_up_symbols.
7844 * remote-utils.c (decode_address): New function.
7845 (look_up_one_symbol): New function.
7846 * server.c (handle_query): Call target look_up_symbols hook.
7847 * server.h (look_up_one_symbol): Add prototype.
7848 * target.h (struct target_ops): Add look_up_symbols hook.
7849
96cb11df
AC
78502002-04-09 Andrew Cagney <ac131313@redhat.com>
7851
7852 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7853 override FP_REGNUM with frame->fp. Update copyright.
7854 * parse.c (num_std_regs, std_regs): Delete.
7855 (target_map_name_to_register): Do not search std_regs. Update
7856 function description.
7857 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7858 declarations. Update copyright.
7859 Fix PR gdb/251.
361d1df0 7860
97658e92
DJ
78612002-04-09 Daniel Jacobowitz <drow@mvista.com>
7862
7863 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7864 after the last symbol in a block.
7865
6044e3eb
PM
78662002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7867
7868 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7869 is non zero as a found symbol.
7870
0406ec40
AC
78712002-04-08 Andrew Cagney <ac131313@redhat.com>
7872
7873 * findvar.c: Include "builtin-regs.h".
7874 (value_of_register): Call value_of_builtin_reg when applicable.
7875 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7876 (target_map_name_to_register): Call
7877 builtin_reg_map_name_to_regnum.
7878 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7879 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7880 (builtin_regs_h): Define.
7881 (builtin-regs.o): New target.
7882 (findvar.o): Add $(builtin_regs_h).
7883 * builtin-regs.c, builtin-regs.h: New files.
7884 * std-regs.c: New file.
7885 Partial fix for PR gdb/251.
7886
56a6dfb9
KB
78872002-04-08 Kevin Buettner <kevinb@redhat.com>
7888
7889 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7890 it's no longer required.
7891
3a808432
AC
78922002-04-08 Andrew Cagney <ac131313@redhat.com>
7893
7894 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7895
7c40d541
KB
78962002-04-08 Kevin Buettner <kevinb@redhat.com>
7897
7898 From Jimi X <jimix@watson.ibm.com>:
7899 * rs6000-tdep.c (rs6000_software_single_step): Use
7900 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7901 and size. Use target_insert_breakpoint() and
7902 target_remove_breakpoint() to insert and remove breakpoints
7903 instead of explicit memory reads and writes.
7904
cc9836a8
KB
79052002-04-08 Kevin Buettner <kevinb@redhat.com>
7906
7907 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7908 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7909 ELF_OBJECT_FORMAT ifdef.
7910
7495d1dc
KB
79112002-04-08 Kevin Buettner <kevinb@redhat.com>
7912
7913 From Jimi X <jimix@watson.ibm.com>:
7914 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7915
4288e836
KB
79162002-04-08 Kevin Buettner <kevinb@redhat.com>
7917
7918 From Jimi X <jimix@watson.ibm.com>:
7919 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7920 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7921
a4e4e501
MK
79222002-04-07 Mark Kettenis <kettenis@gnu.org>
7923
7924 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7925 s/asprintf/xasprintf/.
7926 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7927
006defba
AC
79282002-04-07 Andrew Cagney <ac131313@redhat.com>
7929
7930 I believe Jeff Law denies responsability for this one:
7931 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7932 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7933 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7934 Work-around for PR gdb/366.
7935
7aa83cac
EZ
79362002-04-07 Elena Zannoni <ezannoni@redhat.com>
7937
7938 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7939 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7940 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7941
cf1fcca1
EZ
79422002-04-07 Elena Zannoni <ezannoni@redhat.com>
7943
7944 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7945 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7946 information.
7947
3f289e6f
AC
79482002-04-07 Andrew Cagney <ac131313@redhat.com>
7949
7950 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7951 maintainer.
7952
129188f6
AC
79532002-04-07 Andrew Cagney <ac131313@redhat.com>
7954
7955 * README (Reporting Bugs in GDB): Document the bug web page as the
7956 prefered way of submitting bugs.
7957 Fix PR gdb/402.
7958
1200cd6e
AC
79592002-04-06 Andrew Cagney <ac131313@redhat.com>
7960
7961 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7962 -1. Update comment.
7963 * gdbarch.h, gdbarch.c: Re-generate.
7964
2853c33c
AS
79652002-04-07 Andreas Schwab <schwab@suse.de>
7966
7967 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7968 buffer to regcache_collect.
7969
c2169756
AC
79702002-04-06 Andrew Cagney <ac131313@redhat.com>
7971
7972 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7973 * gdbarch.c, gdbarch.h: Re-generate.
7974
25f1b008
AC
79752002-04-06 Andrew Cagney <ac131313@redhat.com>
7976
7977 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7978 declaration. Fix -Werror.
7979
59263426
DJ
79802002-04-05 Daniel Jacobowitz <drow@mvista.com>
7981
7982 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7983 * gdbarch.c: Regenerate.
7984
f5db4da3
MS
79852002-04-05 Michael Snyder <msnyder@redhat.com>
7986
80f8a6eb
MS
7987 * breakpoint.c (clear_command): Rewrite middle section to
7988 combine two loops with identical control conditions.
7989 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7990 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7991
ad3dcc5c
L
79922002-04-05 H.J. Lu (hjl@gnu.org)
7993
7994 * solib-svr4.c (bkpt_names): Add "__start".
7995
f32e7a74
AC
79962002-04-04 Andrew Cagney <ac131313@redhat.com>
7997
7998 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7999 as test for 64 bit target.
8000
8227c0ff
AC
80012002-04-05 Andrew Cagney <ac131313@redhat.com>
8002
8003 * h8500-tdep.c (h8500_write_fp): Delete function.
8004 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8005 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8006 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8008 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8009 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8010 (s390_write_fp):
8011 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8012 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8013 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8014 (d10v_write_fp): Delete function.
8015 * inferior.h (write_fp, generic_target_write_fp): Delete
8016 declarations.
8017 * regcache.c (generic_target_write_fp): Delete function.
8018 (write_fp): Delete function.
8019 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8020 * gdbarch.h, gdbarch.c: Regenerate.
8021 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8022 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8023 (sparc64_write_fp): Delete declaration.
8024 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8025 (h8500_write_fp): Delete declaration.
8026
2757dd86
AC
80272002-04-04 Andrew Cagney <ac131313@redhat.com>
8028
8029 * sparc-tdep.c (sparc64_write_fp): Delete.
8030 (sparc_push_dummy_frame): Replace write_fp call with code to store
8031 the FP directly.
8032 (sparc_gdbarch_init): Do not initialize write_fp.
8033
c69255e1
KB
80342002-04-05 Kevin Buettner <kevinb@redhat.com>
8035
8036 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8037 clause.
8038
ae767bfb
JB
80392002-03-29 Jim Blandy <jimb@redhat.com>
8040
8041 * stack.c (get_selected_block): Add new argument `addr_in_block',
8042 used to return the exact code address we used to select the block,
8043 not just the block.
8044 * blockframe.c (get_frame_block, get_current_block): Same.
8045 * frame.h (get_frame_block, get_current_block,
8046 get_selected_block): Update declarations.
8047 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8048 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8049
84d2ac95
MS
80502002-04-05 Michael Snyder <msnyder@redhat.com>
8051
8052 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8053 warning message.
8054
596aa3bf
JB
80552002-04-05 J. Brobecker <brobecker@gnat.com>
8056
8057 * utils.c (xfullpath): New function.
8058 * defs.h (xfullpath): Add declaration.
8059 * source.c (openp): Use xfullpath in place of gdb_realpath to
8060 avoid resolving the basename part of filenames when the
8061 associated file is a symbolic link. This fixes a potential
8062 inconsistency between the filenames known to GDB and the
8063 filenames it prints in the annotations.
8064 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8065 to be able to match a filename with either the real filename, or
8066 the name of any symbolic link to this file.
8067 (lookup_partial_symtab): Ditto.
8068
c02f5703
MS
80692002-04-04 Michael Snyder <msnyder@redhat.com>
8070
8071 * breakpoint.c: Add support for hardware breakpoints in overlays.
8072 (overlay_events_enabled): New state variable.
8073 (insert_breakpoints): Use overlay_events_enabled to decide
8074 whether to attempt to set a breakpoint at the overlay load addr.
8075 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8076 (remove_breakpoint): Use overlay_events_enabled to decide
8077 whether breakpoints need to be removed from overlay load addr.
8078 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8079 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8080 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8081 disable_overlay_breakpoints): Update overlay_events_enabled.
8082
5fb290d7
DJ
80832002-04-04 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * dwarf2read.c (struct function_range): New.
8086 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8087 (check_cu_functions): New.
8088 (read_file_scope): Initialize global function lists.
8089 Call dwarf_decode_line after processing children.
8090 (read_func_scope): Add to global function list.
8091 (dwarf_decode_lines): Call check_cu_functions everywhere
8092 record_line is called. Call record_line with a linenumber
8093 of 0 to mark sequence ends.
8094
7b3fabf0
ML
80952002-04-04 Michal Ludvig <mludvig@suse.cz>
8096
361d1df0 8097 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8098 change sync with glibc.
8099
bce58c09
JB
81002002-04-03 Jim Blandy <jimb@redhat.com>
8101
8102 * configure.in: Call AC_C_INLINE.
8103 * configure: Regenerated.
361d1df0 8104
2fccf04a
DJ
81052002-04-01 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8108 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8109
2d1bfe2e
MK
81102002-03-31 Mark Kettenis <kettenis@gnu.org>
8111
a5941fbf
MK
8112 * NEWS: Mention gcore support on FreeBSD/i386.
8113
a90cd31d
MK
8114 * fbsd-proc.c: New file.
8115 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8116 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8117
2d1bfe2e
MK
8118 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8119 while statement.
8120
9eb6e5a1
JB
81212002-03-29 Jim Blandy <jimb@redhat.com>
8122
8123 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8124 unescaped newlines in string literals, but newer ones don't. So
8125 escape them.
8126
f02df580
MS
81272002-03-26 Michael Snyder <msnyder@redhat.com>
8128 Andrew Cagney <cagney@redhat.com>
8129
361d1df0 8130 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8131 restore file to memory.
8132 * cli/cli-dump.h: New file.
8133 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8134 * NEWS: Mention new commands.
f02df580 8135
109f874e
MS
81362002-03-28 Michael Snyder <msnyder@redhat.com>
8137
8138 * symfile.c (symbol_file_add): Move test for null symbols to later.
8139
520f6ade
AC
81402002-03-27 Andrew Cagney <ac131313@redhat.com>
8141
8142 From veksler at il.ibm.com:
8143 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8144 the xstrduped original path.
8145 Fix PR gdb/417.
8146
d4654627
MS
81472002-03-27 Michael Snyder <msnyder@redhat.com>
8148
8149 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8150 * infcmd.c (_initialize_infcmd): Ditto.
8151 * language.c (_initialize_language): Ditto.
8152 * symfile.c (_initialize_symfile): Ditto.
8153 * top.c (_init_main): Ditto.
8154 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8155
6be8bc0c
EZ
81562002-03-27 Elena Zannoni <ezannoni@redhat.com>
8157
8158 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8159 vector registers handling.
8160 (skip_prologue): Handle new AltiVec instructions. Fill in new
8161 fields of frame data.
8162 (frame_get_saved_regs): Fill in information for AltiVec registers.
8163
12af6855
JB
81642002-03-27 Jim Blandy <jimb@redhat.com>
8165
8166 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8167 a function; leave this macro here to invoke that function.
8168 (symbol_init_mangled_name): Declaration for that function.
8169 * symtab.c (symbol_init_mangled_name): New function.
8170
dc672865
AC
81712002-03-27 Andrew Cagney <ac131313@redhat.com>
8172
8173 * valarith.c: Replace strerror with safe_strerror.
8174 * tracepoint.c: Ditto.
8175 * lin-lwp.c: Ditto.
8176 * go32-nat.c: Ditto.
8177 * inflow.c: Ditto.
8178 * gnu-nat.c: Ditto.
8179
d96429cd
AS
81802002-03-27 Andreas Schwab <schwab@suse.de>
8181
8182 * event-top.c (command_line_handler): Remove useless if.
8183
7e336ba1
AJ
81842002-03-27 Andreas Jaeger <aj@suse.de>
8185
8186 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8187 comment.
8188
de220d0f
ML
81892002-03-27 Michal Ludvig <mludvig@suse.cz>
8190
8191 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8192 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8193 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8194 (x86_64_linux_dr_get_status, supply_gregset),
8195 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8196 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8197 (x86_64_register_info_table): Add.
8198 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8199 (x86_64_register_raw_size, x86_64_register_virtual_type),
8200 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8201 general x86_64_register_info_table.
8202 (i386_gdbarch_init): gdbarch_register_bytes is now set
8203 dynamicaly during initialization.
8204 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8205 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8206
0e98d0a7
DJ
82072002-03-27 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * gdbserver/server.c (main): Call target_signal_to_host_p
8210 and target_signal_to_host on signals received from the remote.
8211 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8212 target_signal_from_host on signals sent to the remote.
8213 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8214 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8215
3130066b
DJ
82162002-03-27 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * signals/signals.c: Include "server.h" in gdbserver build.
8219 (target_signal_from_name): Don't use STREQ.
8220 (_initialize_signals): Likewise. Don't include function in
8221 gdbserver build.
8222
9aedf4f4
DJ
82232002-03-27 Daniel Jacobowitz <drow@mvista.com>
8224
8225 * signals.c: Moved to...
8226 * signals/signals.c: Here.
7e336ba1 8227 * Makefile (signals.o): Update.
9aedf4f4 8228
3fa41cdb
JL
82292002-03-26 Jeff Law (law@redhat.com)
8230
8231 * somread.c (som_symtab_read): Remove some commented out code and
8232 updated related comments. Do not set the minimal symbol table to
8233 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8234 in a dynamic executable.
8235 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8236 where we are unable to find the minimal symbol for the given
8237 PC value.
8238
ee677e8d
MS
82392002-03-25 Jeff Law (law@redhat.com)
8240
8241 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8242
e76e1718
ML
82432002-03-25 Michal Ludvig <mludvig@suse.cz>
8244
8245 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8246
18a642a1
AC
82472002-03-23 Andrew Cagney <ac131313@redhat.com>
8248
8249 * command.h: Update copyright.
8250 (struct cmd_list_element): Replace definition with opaque
8251 declaration.
8252 (enum cmd_types): Document that it will eventually be moved to
8253 cli/cli-decode.h
8254 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8255 (MALLOCED_REPLACEMENT): Delete macro.
8256 * Makefile.in (cli_decode_h): Add $(command_h).
8257 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8258 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8259 * completer.c: Include "cli/cli-decode.h".
8260 * maint.c: Include "cli/cli-decode.h".
8261 * cli/cli-decode.h: Include "command.h".
8262 (enum command_class): Delete.
8263 (enum cmd_types): Comment out.
8264 (enum cmd_auto_boolean): Delete.
8265 (enum var_types): Delete.
8266
b2875cc0
AC
82672002-03-23 Andrew Cagney <ac131313@redhat.com>
8268
8269 * cli/cli-decode.c: Include "gdb_assert.h".
8270 (add_set_or_show_cmd): New static function.
8271 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8272 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8273 all fields, such as func, from the set command.
8274
3b45974e
AC
82752002-03-23 Andrew Cagney <ac131313@redhat.com>
8276
8277 * MAINTAINERS (sh-elf): Change warning flag to -w.
8278
823ca731
AC
82792002-03-23 Andrew Cagney <cagney@redhat.com>
8280
8281 * defs.h (error): Add printf format attribute.
8282 * thread-db.c (thread_from_lwp): Fix error format string.
8283 * stack.c (parse_frame_specification): Ditto.
8284 * cli/cli-decode.c (undef_cmd_error): Ditto.
8285 * scm-lang.c (scm_lookup_name): Ditto.
8286 * tracepoint.c (trace_error): Ditto.
8287 * remote-utils.c (usage): Ditto.
8288 * remote.c (compare_sections_command): Ditto.
8289 Fix PR gdb/328.
8290
0e101458
AC
82912002-03-22 Andrew Cagney <ac131313@redhat.com>
8292
8293 * gdbtypes.c (append_composite_type_field): New function.
8294 (init_composite_type): New function.
8295 * gdbtypes.h (append_composite_type_field): Declare.
8296 (init_composite_type): Ditto.
8297
8e0662df
EZ
82982002-03-22 Elena Zannoni <ezannoni@redhat.com>
8299
8300 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8301 function.
8e0662df
EZ
8302 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8303 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8304 structure returning convention for SYSV ABI case, but not
8305 for GNU/Linux, FreeBSD, or NetBSD.
8306
3121eff0
DJ
83072002-03-22 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * symtab.h (lookup_block_symbol): Add mangled_name argument
8310 to prototype.
8311
8312 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8313 with new mangled_name argument.
8314 * linespec.c (decode_line_1): Likewise.
8315 * valops (value_of_this): Likewise.
8316 * symtab.c (lookup_transparent_type): Likewise.
8317 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8318 (lookup_symbol): If we are given a mangled name, pass it down
8319 to lookup_symbol_aux.
8320 (lookup_block_symbol): If we are given a mangled name to check
8321 against, only return symbols which match it.
8322
349b409f
CF
83232002-03-22 Christopher Faylor <cgf@redhat.com>
8324
8325 * win32-nat.c (child_create_inferior): Check for proper shell to use
8326 here, in case the user changes it on the fly.
8327 (_initialize_inftarg): Remove shell path considerations.
8328
2a873819
EZ
83292002-03-21 Elena Zannoni <ezannoni@redhat.com>
8330
8331 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8332 for gdbarch_max_register_raw_size and max_register_virtual_size.
8333 Adjust copyright year.
8334
a1b9830c
DJ
83352002-03-21 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8338 in a function to cover the entire beginning of the function
8339 as well if it does not already.
8340
8b5790f2
TR
83412002-03-21 Tom Rix <trix@redhat.com>
8342
8343 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8344 (rs6000_ptrace64): Renamed from ptrace64.
8345
bdbe5747
MH
83462002-03-20 Martin M. Hunt <hunt@redhat.com>
8347
8348 * gdbserver/remote-utils.c (remote_open): Don't call
8349 getprotobyname, we're all using TCP here so just use
8350 IPPROTO_TCP.
7e336ba1 8351 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8352
83532002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8354
bdbe5747
MH
8355 * regcache.c (_initialize_regcache): No need to call
8356 build_regcache() at this time; it gets called whenever
8357 the gdbarch changes.
8358
7781cd62
DB
83592002-03-20 David O'Brien <obrien@FreeBSD.org>
8360
8361 * sparc-nat.c: Include sys/param.h where possible.
8362
f65ca430
DJ
83632002-03-20 Daniel Jacobowitz <drow@mvista.com>
8364
8365 Fix PR gdb/422.
8366 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8367 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8368 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8369 complex types.
8370 * stabsread.c (rs6000_builtin_type): Likewise.
8371 (read_sun_floating_type): Likewise.
8372
0c867556
PS
83732002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8374
8375 * stabsread.c (read_member_functions): Remove skip code for duplicate
8376 constructor/destructor methods. Use standard parsing for these
8377 methods and just do not chain them to the list of methods after
8378 parsing.
8379
12b9c64f
AO
83802002-03-19 Alexandre Oliva <aoliva@redhat.com>
8381
8382 * coffread.c: Remove redundant static declarations. Replace
8383 occurrences of `PTR' with `void *'.
8384 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8385 * top.h (quit_cover): Likewise.
8386 * defs.h (catch_errors): Likewise.
8387
349c5d5f
AC
83882002-03-18 Andrew Cagney <ac131313@redhat.com>
8389
8390 * defs.h (XMALLOC): Define.
8391 * gdb-events.sh (XMALLOC): Delete macro.
8392 * gdb-events.c, gdb-events.h: Regenerate.
8393 * gdbarch.sh (XMALLOC): Delete macro.
8394 * gdbarch.c: Regenerate.
8395 * serial.c (XMALLOC): Delete macro.
8396 * ui-file.c (XMALLOC): Ditto.
8397 * ser-unix.h (XMALLOC): Ditto.
8398 * sh-tdep.c (XMALLOC): Ditto.
8399 * ui-out.c (XMALLOC): Ditto.
8400 * utils.c (XMALLOC): Ditto.
8401 * i386-tdep.c (XMALLOC): Ditto.
8402 * gdb-events.c (XMALLOC): Ditto.
8403 * d10v-tdep.c (XMALLOC): Ditto.
8404 * cli-out.c (XMALLOC): Ditto.
8405
8406 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8407 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8408 * ui-file.c, ui-out.c: Ditto.
8409
7d0766f3
AC
84102002-03-18 Andrew Cagney <ac131313@redhat.com>
8411
8412 * command.h (struct cmd_list_element): Add field context.
8413 (set_cmd_context, get_cmd_context): Declare.
8414 * cli/cli-decode.h: Ditto.
8415 * cli/cli-decode.c (get_cmd_context): New function.
8416 (set_cmd_context): New function.
8417 (add_cmd): Initialize context.
8418 Part of fixing PR gdb/145 and PR gdb/146.
8419
5913bcb0
AC
84202002-03-17 Andrew Cagney <ac131313@redhat.com>
8421
1868c04e
AC
8422 * cli/cli-decode.c (cmd_type): New function.
8423 * command.h (cmd_type): Declare.
8424 * infrun.c (set_schedlock_func): Call function cmd_type.
8425 * kod.c (kod_set_os): Call cmd_type.
8426 * cris-tdep.c (cris_version_update): Use function cmd_type.
8427 (cris_mode_update, cris_abi_update): Ditto.
8428
5913bcb0
AC
8429 * command.h: (execute_cmd_post_hook): Declare.
8430 (execute_cmd_pre_hook): Declare.
8431 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8432 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8433 functions. Execute pre/post hook while ensuring that afterwords
8434 hook_in is cleared.
8435 * top.c (execute_command): Use execute_cmd_post_hook, and
8436 execute_cmd_pre_hook to execute pre/post commands.
8437 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8438 hook_stop_stub.
8439 (hook_stop_stub): Call execute_cmd_pre_hook.
8440
b51450c9
AC
84412002-03-17 Andrew Cagney <ac131313@redhat.com>
8442
8443 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8444 set'' and this leads to a core dump. Move xstrdup of
8445 operating_system to after check that it is not NULL.
8446
f66c9f11
AC
84472002-03-17 Andrew Cagney <ac131313@redhat.com>
8448
8e694ecf
AC
8449 * kod.c (kod_set_os): Remove unnecessary check that
8450 ``command->type'' is set_cmd.
8451
f66c9f11
AC
8452 * valprint.c (set_input_radix): Use input_radix.
8453 (set_output_radix): Use output_radix.
8454 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8455 isn't reverted.
8456
9d01611c
AC
84572002-03-16 Andrew Cagney <ac131313@redhat.com>
8458
8459 * value.h (struct value): Delete field ``substring_addr''. Change
8460 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8461 force_core_addr_align and force_pointer_aligh.
8462
8463 * value.h (struct value): Fix typo in above change.
9d01611c 8464
4156bb53
PS
84652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8466
8467 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8468 to fix internal_error from ``maintenance print architecture''.
8469
0e5e3ea6
PS
84702002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8471
8472 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8473 for gcc versions after gcc-2.8.1.
8474
9b013045
PS
84752002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8476
8477 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8478 for method resolution. Restore adjustment of ``this'' pointer after
8479 calling value_struct_elt, which was accidentally removed during the
8480 HP merge.
8481
376c9600
AC
84822002-03-15 Andrew Cagney <ac131313@redhat.com>
8483
8484 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8485 value_of_register.
8486 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8487 get_saved_register.
8488 * value.h (value_of_register): Update.
8489
a4db0f07
RH
84902002-03-14 Richard Henderson <rth@redhat.com>
8491
8492 * configure.in: Detect declaration for canonicalize_file_name.
8493 * utils.c (canonicalize_file_name): Declare, if needed.
8494 (gdb_realpath): Prefer realpath if available and usable.
8495 * config.in, configure: Rebuild.
8496
96383835
RH
84972002-03-14 Richard Henderson <rth@redhat.com>
8498
8499 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8500 a constant array bound.
8501
8502 * MAINTAINERS: Add myself to write-after-approval.
8503
75245b24
MS
85042002-03-14 Michael Snyder <msnyder@redhat.com>
8505
8506 * symfile.c (syms_from_objfile): Return immediately if no syms.
8507 (symbol_file_add): Return immediately if no syms.
8508 (find_sym_fns): Return immediately if no syms.
8509
e641a1ca
ML
85102002-03-13 Michal Ludvig <mludvig@suse.cz>
8511
8512 * gdbserver/remote-util.c (remote_open): Print remote-side's
8513 IP address when remote debugging over the network.
7e336ba1 8514
df08bfec
DB
85152002-03-12 David O'Brien <obrien@FreeBSD.org>
8516
8517 * config/sparc/fbsd.mh: Fix copyright.
8518 * config/sparc/fbsd.mt: Likewise.
8519
9a57864f
RE
85202002-03-11 Richard Earnshaw <rearnsha@arm.com>
8521
8522 * MAINTAINERS: Fix typo in name of gdb warnings option.
8523 (x86-64): Fix formating so that this can be parsed by awk.
8524
dd7bf85e
DJ
85252002-03-10 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8528 * defs.h: Include "gdb/signals.h".
8529 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8530
33a0a2ac
ML
85312002-03-10 Michal Ludvig <mludvig@suse.cz>
8532
8533 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8534 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8535 from x86-64-tdep.h
8536
dd824b04
DJ
85372002-03-10 Daniel Jacobowitz <drow@mvista.com>
8538 Don Howard <dhoward@redhat.com>
8539
8540 * mips-tdep.c (ST0_FR): Define.
8541 (mips2_fp_compat): New function, temporarily disabled.
8542 (mips_read_fp_register_single): New function.
8543 (mips_read_fp_register_double): New function.
8544 (mips_print_register): Use them.
8545 (do_fp_register_row): Likewise.
8546
6a41ff59
AC
85472002-03-09 Andrew Cagney <ac131313@redhat.com>
8548
8549 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8550 approval''.
8551
4ea09c10
PS
85522002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8553
8554 * stabsread.c (read_member_functions): Fix is_stub test for
8555 static member functions, improve comment.
8556
6ccc741d
RE
85572002-03-07 Richard Earnshaw <rearnsha@arm.com>
8558
8559 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8560 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8561 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8562 commands that set boolean values.
8563 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8564 (arm_rdi_resume): Always initialize PC.
8565 (arm_rdi_open): Don't use rslt as a boolean.
8566 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8567 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8568 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8569 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8570
438013df
AO
85712002-03-06 Alexandre Oliva <aoliva@redhat.com>
8572
8573 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8574 * configure: Rebuilt.
8575
70ed8774
SC
85762002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8577
8578 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8579 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8580
5ba2abeb
AC
85812002-03-06 Andrew Cagney <ac131313@redhat.com>
8582
8583 * cli/cli-decode.c (set_cmd_completer): New function.
8584 * command.h (set_cmd_completer): Declare.
8585 * cli/cli-decode.h (set_cmd_completer): Ditto.
8586
8587 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8588 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8589 * win32-nat.c (_initialize_inftarg): Ditto.
8590 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8591 * proc-api.c (_initialize_proc_api): Ditto.
8592 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8593 * source.c (_initialize_source): Ditto.
8594 * exec.c (_initialize_exec): Ditto.
8595 * solib.c (_initialize_solib): Ditto.
8596 * top.c (init_main): Ditto.
8597 * tracepoint.c (_initialize_tracepoint): Ditto.
8598 * symfile.c (_initialize_symfile): Ditto.
8599 * printcmd.c (_initialize_printcmd): Ditto.
8600 * infcmd.c (_initialize_infcmd): Ditto.
8601 * corefile.c (_initialize_core): Ditto.
8602
f779ca99
AC
86032002-03-05 Andrew Cagney <ac131313@redhat.com>
8604
8605 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8606
01a3934b
AC
86072002-03-05 Andrew Cagney <ac131313@redhat.com>
8608
8609 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8610
37057839
AC
86112002-03-05 Andrew Cagney <ac131313@redhat.com>
8612
8613 * NEWS: Update headings, 5.2 has branched.
8614
c6ecbae5
DJ
86152002-03-04 Daniel Jacobowitz <drow@mvista.com>
8616
8617 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8618 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8619 (register_addr, REGISTER_RAW_SIZE): Likewise.
8620 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8621 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8622
e9f30c21
ML
86232002-03-03 Michal Ludvig <mludvig@suse.cz>
8624
8625 * MAINTAINERS (x86-64): Add myself.
8626 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8627 changed value_ptr -> struct value *
8628
54394ac3
DB
86292002-03-01 David O'Brien <obrien@FreeBSD.org>
8630
8631 * configure.host (sparc64-*-freebsd): Add.
8632 * configure.tgt: Likewise.
8633 * config/sparc/fbsd.mh: New file.
8634 * config/sparc/fbsd.mt: Likewise.
8635 * config/sparc/nm-fbsd.h: Likewise.
8636 * config/sparc/tm-fbsd.h: Likewise.
8637
bfe95955
DJ
86382002-03-01 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8641 regformats/reg-s390x.dat.
8642
f33c6cbf
AC
86432002-03-01 Andrew Cagney <ac131313@redhat.com>
8644
8645 * utils.c: Add FIXME explaining true/false problem.
8646
5ecaa7dd
AC
86472002-02-28 Andrew Cagney <ac131313@redhat.com>
8648
8649 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8650
2a251cc2
MC
86512002-02-28 Michael Chastain <mec@shout.net>
8652
8653 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8654
6a8031a3 86552002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8656
8657 * gdbserver/linux-s390-low.c: New file.
8658 * regformats/reg-s390.dat: New file.
8659 * regformats/reg-s390x.dat: New file.
8660 * gdbserver/configure.srv: Add S/390.
8661 * gdbserver/Makefile.in: Add S/390.
8662 * configure.tgt: Enable gdbserver for S/390.
8663
ac469903
EZ
86642002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8665
8666 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8667 first line of the doc string for "info dos", except at the end of
8668 the sentence, since the short help stops at the first period.
8669
985cb1a3
JM
86702002-02-28 Jason Merrill <jason@redhat.com>
8671
8672 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8673
c570663e
FF
86742002-02-27 Fred Fish <fnf@redhat.com>
8675
8676 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8677 comment (dumy -> dummy).
8678
43630227
PS
86792002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8680
8681 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8682
b84911e8
RB
86832002-02-27 Rodney Brown <rbrown64@csc.com.au>
8684
8685 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8686
58caa3dc
DJ
86872002-02-27 Daniel Jacobowitz <drow@mvista.com>
8688
8689 * gdbserver/acconfig.h: New file.
8690 * gdbserver/i387-fp.c: New file.
8691 * gdbserver/i387-fp.h: New file.
8692 * gdbserver/linux-x86-64.c: New file.
8693 * regformats/reg-x86-64.dat: New file.
8694 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8695 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8696 * gdbserver/configure.in: Add support for regsets.
8697 * gdbserver/config.in: Regenerate.
8698 * gdbserver/configure: Regenerate.
8699 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8700 * gdbserver/linux-low.h: New file.
8701 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8702 for regsets.
8703 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8704 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8705 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8706 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8707 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8708 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8709 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8710 "i387-fp.h". Add PTRACE_GETREGS and friends.
8711 * gdbserver/regcache.c (supply_register): New function.
8712 (supply_register_by_name): New function.
8713 (collect_register): New function.
8714 (collect_register_by_name): New function.
8715
93652174
DJ
87162002-02-27 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8719 (config.status): Add configure.srv dependency.
8720 (server_h): Add config.h dependency.
8721
a02e4a61
DJ
87222002-02-27 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8725 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8726 * gdbserver/configure.srv: Change i386-*-linux* to use
8727 reg-i386-linux.o.
8728
ce0eebec
AC
87292002-02-26 Andrew Cagney <ac131313@redhat.com>
8730
8731 * x86-64-tdep.c: Re-indent. Update copyright date.
8732
82dbc5f7
AC
87332002-02-26 Andrew Cagney <ac131313@redhat.com>
8734
8735 From Michal Ludvig <mludvig@suse.cz>:
8736 * x86-64-tdep.c (value.h): Delete.
8737 (gdb_assert.h): Include.
8738 (x86_64_register_convert_to_virtual,
8739 x86_64_register_convert_to_raw ): Add check which lets only
8740 floating-point values to be converted.
8741 (value_push): Delete.
8742 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8743 (i386_gdbarch_init): Number of register_bytes fixed.
8744
e4621584
AC
87452002-02-26 Andrew Cagney <ac131313@redhat.com>
8746
8747 * MAINTAINERS: Add x86-64 target.
8748
81a9a963
AC
87492002-02-26 Andrew Cagney <ac131313@redhat.com>
8750
8751 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8752 * osfsolib.c (solib_map_sections): Ditto.
8753 * irix5-nat.c (solib_map_sections): Ditto.
8754 * corelow.c (gdb_check_format): Ditto.
8755 * symfile.c (symfile_bfd_open): Ditto.
8756 * solib.c (solib_map_sections): Ditto.
8757 Fix PR gdb/354.
7e336ba1 8758
0f017ab9
AC
87592002-02-26 Andrew Cagney <ac131313@redhat.com>
8760
8761 * remote.c (_initialize_remote): By default, disable ``e'' and
8762 ``E'' step out-of-range packets.
8763
75738c29
AS
87642002-02-26 Andreas Schwab <schwab@suse.de>
8765
8766 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8767 m68k_linux_frame_saved_pc.
8768 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8769 in_sigtramp.
8770 (SIGCONTEXT_PC_OFFSET): Remove.
8771 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8772 m68k_linux_sigtramp_saved_pc): New functions.
8773 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8774 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8775 (UCONTEXT_PC_OFFSET): Define.
8776 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8777 non-RT and RT signal trampolines.
8778
7e8ed687
RE
87792002-02-26 Richard Earnshaw <rearnsha@arm.com>
8780
8781 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8782 (TARGET_NBPG, STACK_END_ADDR): Delete
8783 (VARIABLES_INSIDE_BLOCK): Delete.
8784
6972bc8b
AC
87852002-02-25 Andrew Cagney <ac131313@redhat.com>
8786
8787 * utils.c (perror_with_name): Make string parameter constant.
8788 (print_sys_errmsg): Ditto.
8789 (query): Ditto.
8790 * defs.h (perror_with_name): Update.
8791 (print_sys_errmsg): Update.
8792 (query): Update.
8793
aa32f823
DJ
87942002-02-25 Daniel Jacobowitz <drow@mvista.com>
8795
8796 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8797 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8798
19caaa45
PS
87992002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8800
8801 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8802 if it already matches the current architecture from the exec file.
8803 Include arch-utils.h for gdbarch_info_init prototype.
8804 * Makefile.in (rs6000-nat.o): Update dependencies.
8805
d951901f
EZ
88062002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8807
8808 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8809 list of exported variables.
8810
7ea81414
DJ
88112002-02-24 Daniel Jacobowitz <drow@mvista.com>
8812
8813 * gdbserver/configure.srv: New file.
8814 * gdbserver/configure.in: Use configure.srv instead
8815 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8816 from it.
8817 * gdbserver/configure: Regenerated.
8818 * gdbserver/terminal.h: New file.
8819 * gdbserver/Makefile.in: Update for configure changes. Remove
8820 more unneeded include paths.
8821
080fe24b
AC
88222002-02-24 Andrew Cagney <ac131313@redhat.com>
8823
8824 From wiz at danbala:
8825 * config/sparc/tm-sp64.h: Fix grammar and typos.
8826 Fix PR gdb/287.
8827
8605d56e
AC
88282002-02-24 Andrew Cagney <ac131313@redhat.com>
8829
8830 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8831 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8832 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8833 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8834 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8835 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8836 * s390-tdep.c: Ditto.
92362027
AC
8837 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8838 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8839 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8840 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8841 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8842 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8843 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8844 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8845 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8846 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8847 Fix PR gdb/378.
7e336ba1 8848
8ed32cc0
AC
88492002-02-23 Andrew Cagney <ac131313@redhat.com>
8850
a3007b6f
AC
8851 * lin-thread.c: Delete file.
8852 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8853 to gdb_proc_service.h.
8854 * configure: Re-generate.
8855
50a9e2f1
AC
8856 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8857 * serial.c (serial_open): Delete check for "ocd".
8858 Fix PR gdb/349.
8859
8b6e7932
AC
8860 * Makefile.in (linux-thread.o): Delete target.
8861 * linux-thread.c: Delete file.
8862
d155c46b
AC
8863 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8864 renamed SH files to be consistent.
8865
8ed32cc0
AC
8866 * symtab.c (sort_search_symbols): Use xfree.
8867
0e18d038
RE
88682002-02-23 Richard Earnshaw <rearnsha@arm.com>
8869
8870 * arm-linux-tdep.c (arm_linux_init_abi): Register
8871 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8872 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8873 definition with undef, since we don't want the sysvr4 definition.
8874 (SKIP_TRAMPOLINE_CODE): Likewise.
8875
27aac7ff
AC
88762002-02-23 Andrew Cagney <ac131313@redhat.com>
8877
8878 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8879
8880 * configure.in: (AC_CHECK_FUNCS) Added test for
8881 canonicalize_file_name Regenerated.
8882 * config.in, configure: Regenerated.
8883 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8884 defined use canonicalize_file_name.
7e336ba1 8885
65a6e0ee
MC
88862002-02-23 Michael Chastain <mec@shout.net>
8887
8888 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8889
47b95330
AC
88902002-02-23 Andrew Cagney <ac131313@redhat.com>
8891
8892 * README: Remove references to cygnus.com.
8893 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8894 dot com'' form. Remove references to cygnus.com and sourceware.
8895
696f451b
AC
88962002-02-23 Andrew Cagney <ac131313@redhat.com>
8897
8898 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8899 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8900 1003.1-2001 no longer allows "head -1".
8901 * gdb/Makefile.in (version.c): Likewise.
8902 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8903 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8904 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8905
bbaca940
AC
89062002-02-23 Andrew Cagney <ac131313@redhat.com>
8907
8908 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8909 * command.h (cmd_cfunc_eq): Declare.
8910 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8911
8912 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8913 ``struct cmd_list_element *''.
8914 * cli/cli-cmds.c (is_complete_command): Update. Use
8915 cmd_cfunc_eq.
8916 * top.c (execute_command): Pass the command to
8917 is_complete_command.
8918 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8919
b8b8b047
AC
89202002-02-23 Andrew Cagney <ac131313@redhat.com>
8921
8922 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8923 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8924 architecture defines.
8925 * s390-tdep.c (s390_gdbarch_init): Likewise.
8926
19d3fc80
RE
89272002-02-23 Richard Earnshaw <rearnsha@arm.com>
8928
8929 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8930 (arm_linux_push_arguments): Likewise.
8931 (arm_linux_init_abi): Register them. Also register linux-specific
8932 call_dummy_words.
8933 (find_minsym_and_objfile): Use strcmp, not STREQ.
8934 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8935 (arm_linux_call_dummy_words): Delete declaration.
8936 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8937 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8938 declarations.
8939 (LOWEST_PC): Delete.
8940
3ab13650
PS
89412002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8942
8943 * maint.c (print_section_info): Do not prepend `0x' to filepos
8944 output, it will be handled by local_hex_string_custom.
8945
19d3fc80 89462002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8947
8948 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8949 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8950 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8951
d85a5daf
JB
89522002-02-22 Jim Blandy <jimb@redhat.com>
8953
8954 Indicate that the bcache functions don't change the strings
8955 they're passed.
8956 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8957 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8958
eeb25b8a
PM
89592002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8960
8961 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8962
6badb179
CF
89632002-02-21 Christopher Faylor <cgf@redhat.com>
8964
8965 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8966 find the complete path to a loaded DLL.
8967
e8717518
FF
89682002-02-21 Fred Fish <fnf@redhat.com>
8969
8970 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8971 that marks the end of the range of a function, enter a line number
8972 entry that has a line number of zero and a PC offset that matches
8973 the end of the function. This starts a range of PC's for which no
8974 line number information is known.
8975 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8976 PC's for which no line number info is found (line number is zero)
8977 then we didn't find any valid line information.
8978 * symtab.h: Document use of zero line number entry.
8979
9abe5450
EZ
89802002-02-21 Elena Zannoni <ezannoni@redhat.com>
8981
8982 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8983 (have_ptrace_getvrregs): Define for run time checks.
8984 (gdb_vrregset_t): New type for Altivec register handling.
8985 (fetch_register, store_register): Fetch/store altivec register
8986 when needed.
8987 (fetch_altivec_register, store_altivec_register): New functions.
8988 (supply_vrregset, fill_vrregset): New functions.
8989 (fetch_altivec_registers, store_altivec_registers): New functions.
8990 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8991 registers as well.
8992
aaa38bb5
AJ
89932002-02-21 Jiri Smid <smid@suse.cz>
8994
8995 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8996
b34db576
RE
89972002-02-21 Richard Earnshaw <rearnsha@arm.com>
8998
8999 * Makefile.in (armnbsd-nat.o): Update dependencies.
9000 * armnbsd-nat.c (supply_gregset): New function. Common code to
9001 supply the integer register set.
9002 (supply_fparegset): New function. Similar for FPA registers.
9003 (fetch_regs, fetch_fp_regs): Use them.
9004 (fetch_core_registers): Likewise.
9005 (fetch_elfcore_registers): New function.
9006 (arm_netbsd_elfcore_fns): New core-file type specification.
9007 (_initialize_arm_netbsd_nat): Register it.
9008
3e56fc4b
RE
90092002-02-21 Richard Earnshaw <rearnsha@arm.com>
9010
9011 * armnbsd-nat.c: Include gdbcore.h.
9012 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9013 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9014 'void' to declaration, to shut up ARI.
9015 (fetch_core_registers): Make static. Rewrite using supply_register.
9016 (arm_netbsd_core_fns): New core-file type specification.
9017 (_initialize_arm_netbsd_nat): New function.
9018
097f6b0b
CF
90192002-02-21 Christopher Faylor <cgf@redhat.com>
9020
9021 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9022 value.
9023
c914e0cc
CF
90242002-02-20 Christopher Faylor <cgf@redhat.com>
9025
9026 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9027 fails.
9028
385fa495
DJ
90292002-02-20 Daniel Jacobowitz <drow@mvista.com>
9030
9031 * jv-exp.y (parse_number): Change type of implicit longs
9032 to builtin_type_uint64.
9033
e5f1222d
DJ
90342002-02-20 Daniel Jacobowitz <drow@mvista.com>
9035
9036 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9037 to be an integer instead of a `union wait'.
9038
75c9abc6
DJ
90392002-02-20 Daniel Jacobowitz <drow@mvista.com>
9040
9041 * mips-linux-nat.c: Call the operating system GNU/Linux.
9042 * mips-linux-tdep.c: Likewise.
9043 * mips-tdep.c: Likewise.
9044
551792a5
DJ
90452002-02-20 Daniel Jacobowitz <drow@mvista.com>
9046
9047 Fix PR gdb/265.
9048 * jv-exp.y (parse_number): Handle 64-bit integers.
9049
ee6e2b82
DJ
90502002-02-20 Daniel Jacobowitz <drow@mvista.com>
9051
9052 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9053 AC_STDC_HEADERS to AC_HEADER_STDC.
9054 * gdbserver/configure: Regenerated.
9055
a48442a0
RE
90562002-02-20 Richard Earnshaw <rearnsha@arm.com>
9057
9058 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9059 is defined.
9060 * sparc-tdep.c (get_longjmp_target): Likewise.
9061
fe419ffc
RE
90622002-02-20 Richard Earnshaw <rearnsha@arm.com>
9063
9064 * News: Add news about ARM and Multi-arch. Mention the new target
9065 arm*-*-netbsd*.
9066
5832ed7e
JB
90672002-02-19 Jim Blandy <jimb@redhat.com>
9068
9069 * stabsread.c (error_type_complaint): Improve error message.
9070
84563040
DJ
90712002-02-19 Daniel Jacobowitz <drow@mvista.com>
9072
9073 * gdbserver/README: Update documentation.
9074 * gdbserver/configure.in: Update configury to match documentation.
9075 * gdbserver/Makefile.in: Likewise.
9076 * gdbserver/configure: Regenerated.
9077 * gdbserver/aclocal.m4: New file, generated by aclocal.
9078 * gdbserver/config.in: New file, generated by autoheader.
9079
375fd65b
RE
90802002-02-19 Richard Earnshaw <rearnsha@arm.com>
9081
9082 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9083 armnbsd-nat.c.
9084
08216dd7
RE
90852002-02-19 Richard Earnshaw <rearnsha@arm.com>
9086
9087 * arm-tdep.h (enum arm_float_model): New enum.
9088 (struct gdbarch_tdep): Add fp_model.
9089 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9090 up floating-point conversions until we know the floating-point model
9091 in use by the inferior. Don't complain about being unable to
9092 determine the ABI of the inferior when we don't have one.
9093 (arm_extract_return_value): Support different floating-point models.
9094 (arm_store_return_value): Likewise.
aaa38bb5 9095 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9096 ARM_FLOAT_SOFT.
9097 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9098
65d6d66a
PS
90992002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9100
9101 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9102 of ``current_gdbarch''.
9103
47221191
RE
91042002-02-19 Richard Earnshaw <rearnsha@arm.com>
9105
9106 * armnbsd-nat.c : ANSIfy all function declarations.
9107 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9108 (fetch_inferior_registers): Re-implement in terms of above.
9109 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9110 (store_inferior_registers): Re-implement in terms of above.
9111
fdf39c9a
RE
91122002-02-19 Richard Earnshaw <rearnsha@arm.com>
9113
aaa38bb5 9114 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9115 kernel.
9116 * arm-linux-tdep.c: Likewise.
9117 * config/arm/tm-linux.h: Likewise.
9118
93247f88
RE
91192002-02-19 Richard Earnshaw <rearnsha@arm.com>
9120
9121 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9122 * config/arm/nbsd.mt (TM_FILE): Delete.
9123 * config/arm/tm-nbsd.h: Delete.
9124
d7b486e7
RE
91252002-02-19 Richard Earnshaw <rearnsha@arm.com>
9126
9127 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9128 Initialize CALL_DUMMY_LENGTH.
9129
41d39a95
RE
91302002-02-19 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9133 function.
9134 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9135 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9136 defines one thing and that is incorrect for this port.
9137 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9138
e1195560
PM
91392002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9140
9141 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9142
c1748f97
PM
91432002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9144
9145 * win32-nat.c (display_selector): New function. Displays information
9146 about the information returned by GetThreadSelectorEntry API function.
9147 (display_selectors): New function. Displays the infomation of
9148 the selector given as argument, or of CS, DS ans FS selectors
9149 if no argument is given.
9150 ( _initialize_inftarg): Add "w32" as info prefix command.
9151 Add "info w32 selector" as command calling display_selectors.
9152
e41e6bbf
PM
91532002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9154
9155 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9156 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9157 if not defined.
9158
0d3a9f48
RE
91592002-02-18 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9162
3fb4b924
RE
91632002-02-18 Richard Earnshaw <rearnsha@arm.com>
9164
9165 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9166 (arm_fix_call_dummy): Call it.
9167 (arm_call_dummy_breakpoint_offset): Delete.
9168 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9169 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9170
7f55af32
AC
91712002-02-18 Andrew Cagney <ac131313@redhat.com>
9172
9173 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9174 Default to func_frame_chain_valid.
9175 * gdbarch.h, gdbarch.c: Re-generate.
9176 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9177
05f13b9c
EZ
91782002-02-18 Elena Zannoni <ezannoni@redhat.com>
9179
9180 * ppc-linux-nat.c: Update copyright.
9181 (fetch_register, store_register): Add tid parameter, don't compute
9182 tid here.
9183 (fetch_ppc_registers, store_ppc_registers): Add tid
9184 parameter. Pass it along to callees.
9185 (fetch_inferior_registers, store_inferior_registers): Compute tid
9186 here, and pass it to calleed functions.
9187 (fill_gregset, supply_fpregset): Clean up formatting.
9188
d7afb4c9
RE
91892002-02-18 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9192 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9193
9df628e0
RE
91942002-02-18 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9197 * gdbarch.c gdbarch.h: Regenerate.
9198 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9199 function.
9200 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9201 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9202 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9203
9204 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9205 * arm-tdep.c (arm_get_longjmp_target): New function.
9206 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9207 this to a positive value register arm_get_longjmp_target as the
9208 longjmp handler.
9209 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9210 (arm_linux_init_abi): Set up longjmp description in tdep.
9211 * armnbsd-nat.c (get_longjmp_target): Delete.
9212 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9213 description in tdep.
9214 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9215 (get_longjmp_target): Delete declaration.
9216 (GET_LONGJMP_TARGET): Delete.
9217 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9218 (GET_LONGJMP_TARGET): Delete.
9219
57bc8964
KB
92202002-02-17 Kevin Buettner <kevinb@redhat.com>
9221
9222 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9223 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9224 of ``current_gdbarch''.
9225
83d31a92
TT
92262002-02-17 Tom Tromey <tromey@redhat.com>
9227
9228 * cli/cli-cmds.c (compare_strings): New function.
9229 (complete_command): Only print each unique item once.
9230 * completer.h (complete_line): Declare.
9231 * completer.c (complete_line): New function.
9232 (line_completion_function): Use it.
9233
17ef5d92
AC
92342002-02-16 Andrew Cagney <ac131313@redhat.com>
9235
9236 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9237 * gdbarch.h, gdbarch.c: Re-generate.
9238
491b8946
DJ
92392002-02-16 Daniel Jacobowitz <drow@mvista.com>
9240
9241 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9242
92432002-02-16 Daniel Jacobowitz <drow@mvista.com>
9244
9245 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9246 * valops.c (value_arg_coerce): Don't take the address of a reference
9247 to convert an argument to a reference.
9248
dfe7f3ac
CF
92492002-02-15 Christopher Faylor <cgf@redhat.com>
9250
9251 * win32-nat.c (get_image_name): New function.
9252 (handle_load_dll): Use get_image_name function.
9253 (get_child_debug_event): Avoid registering debug events until possibly
9254 execed process is started.
9255 (child_create_inferior): Allow invocation via shell so that command
9256 line redirection, etc. works ok.
9257 (_initialize_inftarg): Add new command: "set shell" to control whether
9258 a shell is used to start a process.
9259
1d33e73a
DJ
92602002-02-15 Daniel Jacobowitz <drow@mvista.com>
9261
9262 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9263 instead of find_register_by_number.
9264 (cannot_store_register): Likewise.
9265
48cd0caa
PM
92662002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9267
aaa38bb5 9268 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9269 fprintf_unfiltered (gdb_stderr, ...).
9270
8656e7d8
DJ
92712002-02-15 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * gdbserver/gdbserver.1: Document --attach.
9274
66e810cd
RE
92752002-02-15 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9278 descriptions.
9279 * arm-tdep.c (arm_default_arm_le_breakpoint)
9280 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9281 (arm_default_thumb_be_breakpoint): New. Initialize them from
9282 traditional breakpoint defines.
9283 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9284 (arm_gdbarch_init): Initialize new breakpoint variables.
9285 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9286 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9287 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9288 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9289 code out to ...
9290 (arm_netbsd_init_abi_common): ... here; new function.
9291 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9292 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9293 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9294 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9295
97e03143
RE
92962002-02-15 Richard Earnshaw <rearnsha@arm.com>
9297
9298 * arm-tdep.h (enum arm_abi): New enum.
9299 (struct gdbarch_tdep): New structure.
9300 (LOWEST_PC): Provide a default.
9301 (arm_gdbarch_register_os_abi): Declare new function.
9302 * arm-tdep.c (arm_abi_names): New array.
9303 (process_note_abi_tag_sections): New function.
9304 (get_elfosabi): New function.
9305 (arm_gdbarch_register_os_abi): New function.
9306 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9307 support for that ABI has been built in, then call the appropriate
9308 configuration routine. Use gdbarch_num_regs() to get the number
9309 of registers.
9310 (arm_dump_tdep): New function.
9311 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9312 place-holder functions.
9313 (_initialize_arm_tdep): Register them.
9314 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9315
9316 * armnbsd-tdep.c: New file.
9317 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9318 * config/arm/nbsd.mt (TDEPFILES): Add it.
9319 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9320
9321 * armnbsd-nat.c: Include regcache.h.
9322 * Makefile.in (armnbsd-nat.o): Update dependency list.
9323
9324 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9325
ad68be46
DJ
93262002-02-14 Daniel Jacobowitz <drow@mvista.com>
9327
9328 * gdbserver/Makefile.in: Fix typos in target rules.
9329
003d6d1d
DJ
93302002-02-14 Daniel Jacobowitz <drow@mvista.com>
9331
aaa38bb5 9332 Fix part of PR gdb/267.
003d6d1d
DJ
9333 * linespec.c (find_methods): Handle constructors specially for now.
9334
6b230f1b
CV
93352002-02-14 Corinna Vinschen <vinschen@redhat.com>
9336
9337 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9338 handling.
9339 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9340 standard_coerce_float_to_double().
9341
1ea98d12
CF
93422002-02-14 Christopher Faylor <cgf@redhat.com>
9343
9344 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9345 GDBINIT_FILENAME.
9346
dd47e6fd
EZ
93472002-02-14 Elena Zannoni <ezannoni@redhat.com>
9348
9349 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9350 find_variant_by_name, because it confuses the multiarch
9351 framework. Return NULL if there isn't an architecture with the
9352 user supplied name, instead of forcing a different one without
9353 recording the change with the multiarch machinery.
9354 (find_variant_by_name): Delete.
9355
d7e39b9e
PS
93562002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9357
9358 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9359 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9360
76e42a4f
MH
93612002-02-13 Martin M. Hunt <hunt@redhat.com>
9362
aaa38bb5 9363 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9364 print_frame_info_listing_hook, set current_source_symtab.
9365
0a30fbc4
DJ
93662002-02-14 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9369 and remove unused $(INCLUDE_DIR).
9370 Add regcache.c to OBS.
9371 Add generated register protocol files to clean target.
9372 Update dependencies for new objects, obsolete old target code.
9373
9374 * gdbserver/linux-low.c: Remove all platform-specific code to
9375 new files. Remove various dead code. Update to use regcache
9376 functionality.
9377 * gdbserver/remote-utils.c (fromhex): Add return statement
9378 to quiet warning.
9379 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9380 constant.
9381 (input_interrupt): Add integer parameter to match prototype
9382 of a signal handler.
9383 (outreg): Use register_data ().
9384 (prepare_resume_reply): Use gdbserver_expedite_regs.
9385 * gdbserver/server.c (main): Dynamically allocate own_buf because
9386 PBUFSIZ is no longer constant. Use registers_to_string () and
9387 registers_from_string ().
9388 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9389 for error (), fatal (), and warning (). Update definition of
9390 PBUFSIZ to use regcache functionality. Add include guard.
9391 * gdbserver/utils.c (fatal): Add missing ``const''.
9392 (warning): New function.
9393
9394 * regformats/regdat.sh: Include "regcache.h" in generated files.
9395 Provide init_registers () function.
9396 * regformats/regdef.h: Add prototype for set_register_cache ().
9397 Add include guard.
9398
9399 * gdbserver/linux-arm-low.c: New file.
9400 * gdbserver/linux-i386-low.c: New file.
9401 * gdbserver/linux-ia64-low.c: New file.
9402 * gdbserver/linux-m68k-low.c: New file.
9403 * gdbserver/linux-mips-low.c: New file.
9404 * gdbserver/linux-ppc-low.c: New file.
9405 * gdbserver/linux-sh-low.c: New file.
9406
9407 * gdbserver/regcache.c: New file.
9408 * gdbserver/regcache.h: New file.
9409
9410 * gdbserver/low-linux.c: Removed obsolete file.
9411
4cc841d0
DJ
94122002-02-14 Daniel Jacobowitz <drow@mvista.com>
9413
9414 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9415 * config/i386/linux.mt: Likewise.
9416 * config/ia64/linux.mt: Likewise.
9417 * config/m68k/linux.mh: Likewise.
9418 * config/powerpc/linux.mh: Likewise.
9419 * config/mips/linux.mt: Likewise.
9420
9421 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9422
9423 * config/i386/i386lynx.mh: Mark gdbserver variables
9424 as (currently) obsolete for this target.
9425 * config/i386/nbsd.mt: Likewise.
9426 * config/i386/nbsdelf.mt: Likewise.
9427 * config/m32r/m32r.mt: Likewise.
9428 * config/m68k/m68klynx.mh: Likewise.
9429 * config/m68k/nbsd.mt: Likewise.
9430 * config/m68k/sun3os4.mh: Likewise.
9431 * config/mips/vr5000.mt: Likewise.
9432 * config/ns32k/nbsd.mt: Likewise.
9433 * config/pa/hppabsd.mh: Likewise.
9434 * config/pa/hppaosf.mh: Likewise.
9435 * config/powerpc/nbsd.mt: Likewise.
9436 * config/rs6000/rs6000lynx.mh: Likewise.
9437 * config/s390/s390.mt: Likewise.
9438 * config/s390/s390x.mt: Likewise.
9439 * config/sparc/sparclynx.mh: Likewise.
9440 * config/sparc/sun4os4.mh: Likewise.
9441 * config/i386/x86-64linux.mt: Likewise.
9442 * config/sparc/linux.mh: Likewise.
9443
a85f51e7
DJ
94442002-02-14 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * configure.tgt: Configure gdbserver only for known working
9447 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9448 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9449 SUBDIRS if it is configured. Update comment for ${nativefile}.
9450 * configure: Regenerated.
9451
65554fef
MS
94522002-02-13 Michael Snyder <msnyder@redhat.com>
9453
670a52db
MS
9454 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9455
6dbdc4a3
MS
9456 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9457 (default_gcore_mach): Just return 0, work around a problem in bfd.
9458 (default_gcore_target): OK to return NULL if exec_bfd is null.
9459 (make_mem_sec): Use a cast, avoid a warning.
9460
9461 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9462 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9463 sizeof (host pointer) != sizeof (target pointer)).
9464 (procfs_make_note_section): Avoid overflow in psargs string.
9465
aaa38bb5 9466 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9467 implementation return an error.
9468
94692002-02-13 Rodney Brown <rbrown64@csc.com.au>
9470
9471 * procfs.c (procfs_make_note_section): Provide a default definition
9472 (for alpha-dec-osf4.0f). Fix typos.
9473
1e4d76e7
EZ
94742002-02-13 Elena Zannoni <ezannoni@redhat.com>
9475
9476 * linux-proc.c: Add include of regcache.h.
9477 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9478
b6d1a1d5
AC
94792002-02-13 Andrew Cagney <ac131313@redhat.com>
9480
9481 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9482 * memattr.c (create_mem_region): Disallow useless empty region.
9483 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9484 non-overlapping.
b6d1a1d5 9485
6c6ea35e
MC
94862002-02-13 Michael Chastain <mec@shout.net>
9487
9488 * defs.h: Kill CONST_PTR.
9489 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9490 * c-lang.c (c_builtin_types): Likewise.
9491 * ch-lang.c (ch_builtin_types): Likewise.
9492 * f-lang.c (f_builtin_types): Likewise.
9493 * language.c (unknown_builtin_types): Likewise.
9494 * m2-lang.c (m2_builtin_types): Likewise.
9495 * p-lang.c (pascal_builtin_types): Likewise.
9496 * scm-lang.c (c_builtin_types): Likewise.
9497
3e0b0f48
KS
94982002-02-13 Keith Seitz <keiths@redhat.com>
9499
9500 * arm-tdep.h (arm_get_next_pc): Add declaration.
9501
67255d04
RE
95022002-02-13 Richard Earnshaw <rearnsha@arm.com>
9503
9504 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9505 with other related struct-returning functions.
9506 (arm_extract_struct_value_address): New function.
9507 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9508 initialize float_format, double_format and long_double_format as
9509 appropriate to the endianness of the target.
9510 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9511 (arm_use_struct_convention): Delete declaration.
9512 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9513
079777f6
KS
95142002-02-13 Keith Seitz <keiths@redhat.com>
9515
9516 * defs.h (core_addr_to_string_nz): New function.
9517
34588f23
MK
95182002-02-13 Mark Kettenis <kettenis@gnu.org>
9519
9520 Apply missing bits of 2002-01-15 patch.
9521 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9522 (fill_fpregset): Use i387_fill_fsave.
9523
49b563f9
KS
95242002-02-12 Keith Seitz <keiths@redhat.com>
9525
49b563f9
KS
9526 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9527 (core_addr_to_string_nz): New function.
9528
aeb98c60
RE
95292002-02-11 Richard Earnshaw <rearnsha@arm.com>
9530
9531 * arm-linux-nat.c: Really include arm-tdep.h.
9532 * config/arm/tm-linux.h (struct type, struct value): Declare.
9533
65554fef
MS
95342002-02-11 Michael Snyder <msnyder@redhat.com>
9535
9536 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9537 (gcore section): Ifdef for Solaris and Unixware only.
9538 (procfs_do_thread_registers): Unixware needs one lwpstatus
9539 per thread (not one prstatus or pstatus).
9540 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9541 not over all gdb threads. For unixware, call elfcore_write_pstatus
9542 once before iterating over threads.
9543
34e8f22d
RE
95442002-02-11 Richard Earnshaw <rearnsha@arm.com>
9545
9546 * arm-tdep.h: New file.
9547 * arm-tdep.c: Include arm-tdep.h.
9548 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9549 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9550 (arm_print_float_info, arm_register_type, convert_to_extended)
9551 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9552 (arm_extract_return_value, arm_register_name): Make static.
9553 (arm_software_single_step): Similarly. Fix types in declaration.
9554 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9555 (arm_store_return_value, arm_store_struct_return): New functions.
9556 (arm_gdbarch_init): Register the above functions. Also register
9557 call_dummy_start_offset, sizeof_call_dummy_words,
9558 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9559 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9560 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9561 prologue_cache.saved_regs here, rather than ...
9562 (_initialize_arm_tdep): ... here.
9563 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9564 declarations.
9565 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9566 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9567 (arm_print_float_info, arm_register_type, convert_to_extended)
9568 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9569 (arm_extract_return_value, arm_register_name): Delete declarations.
9570 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9571 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9572 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9573 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9574 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9575 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9576 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9577 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9578 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9579 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9580 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9581 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9582 interface.
9583 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9584 * remote-rdi.c remote-rdp.c: Likewise.
9585 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9586 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9587 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9588 definition.
9589
9590 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9591 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9592 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9593 from non-ARM_ prefixed definitions.
9594 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9595 all uses of above.
9596 * remote-rdi.c remote-rdp.c: Likewise.
9597 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9598
148754e5
RE
95992002-02-11 Richard Earnshaw <rearnsha@arm.com>
9600
9601 * arm-tdep.c (arm_frameless_function_invocation)
9602 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9603 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9604 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9605 (arm_pop_frame, arm_get_next_pc): Make static.
9606 (arm_gdbarch_init): Register above in gdbarch structure.
9607 (arm_read_fp): Renamed from arm_target_read_fp.
9608 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9609 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9610 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9611 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9612 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9613 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9614 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9615 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9616 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9617 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9618 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9619
434d2d4f
DJ
96202002-02-10 Daniel Jacobowitz <drow@mvista.com>
9621
9622 * symtab.c (compare_search_syms): New function.
9623 (sort_search_symbols): New function.
9624 (search_symbols): Sort symbols after searching rather than
9625 before.
9626
55241689
AC
96272002-02-10 Andrew Cagney <ac131313@redhat.com>
9628
9629 * NEWS: Linux -> GNU/Linux.
9630
028c194b
AC
96312002-02-10 Andrew Cagney <ac131313@redhat.com>
9632
9633 * gdbarch.sh: For for level one methods, disallow a definition
9634 when partially multi-arched. Add comments explaining rationale.
9635 * gdbarch.h: Re-generate.
9636
6acf50cd
AC
96372002-02-10 Andrew Cagney <ac131313@redhat.com>
9638
9639 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9640 multi-arch partial.
aaa38bb5 9641
50248794
AC
96422002-02-10 Andrew Cagney <ac131313@redhat.com>
9643
9644 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9645 field. Use diff -u.
9646 * gdbarch.c: Re-generate.
9647
c30e0066
AC
96482002-02-10 Andrew Cagney <ac131313@redhat.com>
9649
9b56c5f3 9650 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9651 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9652 partial.
9653
6e6d6484
AC
96542002-02-10 Andrew Cagney <ac131313@redhat.com>
9655
9656 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9657 multi-arch partial.
9658 (PUSH_ARGUMENTS): Switch to using predefault.
9659 * gdbarch.c: Regenerate.
9660
c203844d
AC
96612002-02-10 Andrew Cagney <ac131313@redhat.com>
9662
9663 * valops.c (PUSH_ARGUMENTS): Delete definition.
9664 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9665 partial. Default to default_push_arguments.
9666 * gdbarch.h, gdbarch.c: Regenerate.
9667
b5a2688f
AC
96682002-02-09 Andrew Cagney <ac131313@redhat.com>
9669
9670 * defs.h (throw_exception): Rename return_to_top_level. Update
9671 comments.
9672 * utils.c (error_stream, internal_verror, quit): Ditto.
9673 * top.c (throw_exception, catcher): Ditto.
9674 * sparclet-rom.c (sparclet_load): Ditto.
9675 * remote.c (interrupt_query, minitelnet): Ditto.
9676 * remote-sds.c (interrupt_query): Ditto.
9677 * remote-mips.c (mips_error, mips_kill): Ditto.
9678 * ocd.c (interrupt_query): Ditto.
9679 * monitor.c (monitor_interrupt_query): Ditto.
9680 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9681 * target.h: Update comment.
aaa38bb5 9682
b5a2688f 9683 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9684
2fa5c1e0
AC
96852002-02-09 Andrew Cagney <ac131313@redhat.com>
9686
9687 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9688 default_double_format.
9689 * gdbarch.h, gdbarch.c: Re-generate.
9690 * findvar.c (floatformat_unknown): Delete variable definition.
9691 * doublest.h (floatformat_unknown): Delete variable declaration.
9692
da966255
JB
96932002-02-09 Jim Blandy <jimb@redhat.com>
9694
9695 * stabsread.c (read_type): Add code to parse Sun's syntax for
9696 prototyped function types.
9697
123a4891
AC
96982002-02-09 Andrew Cagney <ac131313@redhat.com>
9699
9700 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9701 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9702
fb39c8f3
PS
97032002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9704
9705 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9706 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9707 now _initialize_xcoffsolib gets called again and overrides the
9708 commands from solib.c in a native configuration.
9709
0b87a11d
MK
97102002-02-09 Mark Kettenis <kettenis@gnu.org>
9711
9712 * doublest.c (store_typed_floating): Don't try to return a value.
9713 Fixes PR gdb/290.
9714
bdc2fc72
JB
97152002-02-08 Jim Blandy <jimb@redhat.com>
9716
9717 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9718 is prototyped and has no arguments, print its argument list as
9719 `(void)'.
9720
da69bbcf
CD
97212002-02-08 Chris Demetriou <cgd@broadcom.com>
9722
9723 * MAINTAINERS (write-after-approval): Add myself.
9724 (paper-trail): I've escaped!
aaa38bb5 9725
b69571f5
CF
97262002-02-08 Christopher Faylor <cgf@redhat.com>
9727
9728 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9729 changes.
9730 (_initialize_check_for_gdb_ini): Ditto.
9731
f6871398
MH
97322002-02-08 Martin M. Hunt <hunt@redhat.com>
9733
9734 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9735 xaprintf -> xasprintf.
9736
4e52d31c
PM
97372002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9738
9739 * win32-nat.c: Remove use of printf and sprintf functions.
9740
39bbf761
RE
97412002-02-08 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * arm-tdep.c (arm_frame_chain_valid): Make static.
9744 (arm_push_arguments): Likewise.
9745 (arm_gdbarch_init): New function.
9746 (_initialize_arm_tdep): Call it.
9747 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9748 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9749 (FRAME_CHAIN_VALID): Delete.
9750 (arm_frame_chain_valid): Delete declaration.
9751 (PUSH_ARGUMENTS): Delete.
9752 (arm_push_arguments): Delete declaration.
9753 (CALL_DUMMY_P): Delete.
9754
9c9532c9
CV
97552002-02-08 Andrew Cagney <ac131313@redhat.com>
9756 Corinna Vinschen <vinschen@redhat.com>
9757
9758 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9759 on builtin float types.
9760
4e8f7a8b
DJ
97612002-02-08 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * utils.c: Include <curses.h> before "bfd.h".
9764 * tui/tui-hooks.c: Likewise.
9765 * tui/tui.c: Likewise.
9766 * tui/tuiCommand.c: Likewise.
9767 * tui/tuiData.c: Likewise.
9768 * tui/tuiDataWin.c: Likewise.
9769 * tui/tuiDisassem.c: Likewise.
9770 * tui/tuiGeneralWin.c: Likewise.
9771 * tui/tuiIO.c: Likewise.
9772 * tui/tuiLayout.c: Likewise.
9773 * tui/tuiRegs.c: Likewise.
9774 * tui/tuiSource.c: Likewise.
9775 * tui/tuiSourceWin.c: Likewise.
9776 * tui/tuiStack.c: Likewise.
9777 * tui/tuiWin.c: Likewise.
9778
cd4bffcf
EZ
97792002-02-07 Elena Zannoni <ezannoni@redhat.com>
9780
9781 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9782 to include space for pseudoregs as well. Update loops accordingly.
9783 (sh_fp_frame_init_saved_regs): Ditto.
9784 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9785
26806ce2
AC
97862002-02-07 Andrew Cagney <ac131313@redhat.com>
9787
9788 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9789 Add Richard Earnshaw to Arm maintainers.
9790
97fdab62
AC
97912002-02-07 Andrew Cagney <ac131313@redhat.com>
9792
a6b98203
AC
9793 * defs.h (warning_begin): Delete declaration.
9794
97fdab62
AC
9795 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9796 Delete macro.
9797
78b29b40
MS
97982002-02-07 Michael Snyder <msnyder@redhat.com>
9799
aaa38bb5 9800 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9801 Logic bug, remove misplaced else.
9802
d8849953
KD
98032002-02-07 Klee Dienes <klee@apple.com>
9804
9805 * fork-inferior.c (fork_inferior): Add '!' to the list of
9806 characters that need to be quoted when building a string for the
9807 shell. Quote '!' specifically with a backslash, since CSH chokes
9808 when trying to evaluate "str!str".
aaa38bb5 9809
095778a0
NC
98102002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9811
9812 * rdi-share/host.h: Only provide a typedef for bool if it is not
9813 defined.
9814
1900040c
MS
98152002-02-04 Michael Snyder <msnyder@redhat.com>
9816
9817 * breakpoint.h (enum bptype): Add new overlay event bp type.
9818 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9819
1900040c
MS
9820 * breakpoint.c (create_internal_breakpoint): New function.
9821 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9822 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9823 (create_thread_event_breakpoint): Ditto.
9824 (create_solib_event_breakpoint): Ditto.
9825 (create_overlay_event_breakpoint): New function.
9826 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9827 (update_breakpoints_after_exec): Delete and re-initialize
9828 overlay event breakpoints after an exec. Add FIXME comment
9829 about longjmp breakpoint.
9830 (print_it_typical): Ignore overlay event breakpoints.
9831 (print_one_breakpoint): Ditto.
9832 (mention): Ditto.
9833 (bpstat_what): Do not stop for overlay event breakpoints.
9834 (delete_breakpoint): Don't delete overlay event breakpoints.
9835 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9836 (breakpoint_re_set): Re-create overlay event breakpoint.
9837
9838 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9839 (overlay_manual_command): Disable overlay breakpoints.
9840 (overlay_off_command): Disable overlay breakpoints.
9841
082fc60d
RE
98422002-02-06 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9845 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9846 to here from config/tm-arm.h.
9847 (coff_sym_is_thumb): Make static.
9848 (arm_elf_make_msymbol_special): New function.
9849 (arm_coff_make_msymbol_special): New function.
9850 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9851 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9852 (coff_sym_is_thumb): Delete declaration.
9853 (arm_elf_make_msymbol_special): Declare.
9854 (arm_coff_make_msymbol_special): Declare.
9855 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9856 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9857
039c5766
RE
98582002-02-06 Richard Earnshaw <rearnsha@arm.com>
9859
9860 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9861
98622002-02-06 Richard Earnshaw <rearnsha@arm.com>
9863
9864 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9865 * gdbarch.c gdbarch.h: Regenerate.
9866 * arch-utils.c (default_print_float_info): New function.
9867 * arch-utils.h (default_print_float_info): Prototype it.
9868 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9869 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9870 (PRINT_FLOAT_INFO): Document it.
9871
9872 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9873 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9874 (PRINT_FLOAT_INFO): Define.
9875
58fa08f0
PM
98762002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9877
aaa38bb5 9878 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9879 Add typecast to sprintf argument to suppress a warning.
9880
7393af7c
PM
98812002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9882
58fa08f0 9883 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9884 to allow easier handling of pass state.
9885 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9886 that gives exception name and address.
9887 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9888 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9889 exceptions added.
aaa38bb5
AJ
9890 (child_continue): Correctly report continue_status.
9891 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9892 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9893 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9894 the exception should be passed to debuggee or not.
9895
6af4589c
MS
98962002-02-05 Michael Snyder <msnyder@redhat.com>
9897
9898 * regcache.c (fetch_register): Call target_fetch_register
9899 only if we don't call FETCH_PSEUDO_REGISTER.
9900 (store_register): Call target_store_register only if we
9901 don't call STORE_PSEUDO_REGISTER.
9902
a2cf933a
EZ
99032002-02-05 Elena Zannoni <ezannoni@redhat.com>
9904
9905 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9906 ELF_MAKE_MSYMBOL_SPECIAL.
9907 * gdbarch.c, gdbarch.h: Regenerate.
9908 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9909 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9910 * elfread.c (elf_symtab_read): Compile use of
9911 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9912 multiarched.
9913 * coffread.c (coff_symtab_read): Ditto, for
9914 COFF_MAKE_MSYMBOL_SPECIAL.
9915
6bb7be43
JB
99162002-02-05 Jim Blandy <jimb@redhat.com>
9917
9918 * solib-svr4.c (svr4_truncate_ptr): New function.
9919 (svr4_relocate_section_addresses): Do the address arithmetic with
9920 the appropriate truncation for target addresses, even when
9921 CORE_ADDR is larger than a target address.
9922
e18651ec
DJ
99232002-02-05 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9926 to (int *).
9927
6b2725be
DJ
99282002-02-05 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9931 code.
9932
fca9e603
DJ
99332002-02-05 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9936
6c537a52
DJ
99372002-02-05 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * gdbserver/linux-low.c: Remove unused include files.
9940
d844cde6
DJ
99412002-02-05 Daniel Jacobowitz <drow@mvista.com>
9942
9943 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9944 (read_inferior_memory): Use it.
9945 (write_inferior_memory): Likewise.
9946
d07c63e7
DJ
99472002-02-05 Daniel Jacobowitz <drow@mvista.com>
9948
9949 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9950 grubbing through sys_errlist.
9951
da6d8c04
DJ
99522002-02-05 Daniel Jacobowitz <drow@mvista.com>
9953
9954 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9955
5b421780
PM
99562002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9957 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9958
9f60d481
AC
99592002-02-04 Andrew Cagney <ac131313@redhat.com>
9960
9961 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9962 (do_sfunc, set_cmd_sfunc): New functions.
9963
9964 * command.h (struct cmd_list_element): Add field func.
9965 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9966 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9967 * cli/cli-decode.h: Ditto.
9968
9969 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9970 (help_all, help_cmd_list): Ditto.
9971 (find_cmd, complete_on_cmdlist): Ditto.
9972 * top.c (execute_command): Ditto.
9973
9974 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9975 function.sfunc.
9976
9977 * infcmd.c (notice_args_read): Fix function signature.
9978
9979 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9980 * cli/cli-decode.c (add_set_cmd): Ditto.
9981 * utils.c (initialize_utils): Ditto.
9982 * maint.c (_initialize_maint_cmds): Ditto.
9983 * infrun.c (_initialize_infrun): Ditto.
9984 * demangle.c (_initialize_demangler): Ditto.
9985 * remote.c (add_packet_config_cmd): Ditto.
9986 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9987 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9988 * proc-api.c (_initialize_proc_api): Ditto.
9989 * kod.c (_initialize_kod): Ditto.
9990 * valprint.c (_initialize_valprint): Ditto.
9991 * top.c (init_main): Ditto.
9992 * infcmd.c (_initialize_infcmd): Ditto.
9993 * corefile.c (_initialize_core): Ditto.
9994 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9995 * arch-utils.c (initialize_current_architecture): Ditto.
9996 (_initialize_gdbarch_utils): Ditto.
9997 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9998
9999 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10000 * wince.c (_initialize_inftarg): Ditto.
10001 * symfile.c (_initialize_symfile): Ditto.
10002 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10003 * language.c (_initialize_language): Ditto.
10004 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10005
f9ba0717
MS
100062002-02-04 Michael Snyder <msnyder@redhat.com>
10007
10008 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10009
0c74b2a7
DJ
100102002-02-04 Daniel Jacobowitz <drow@mvista.com>
10011
10012 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10013 Add rules for building the register data files.
10014
c638789f
DJ
100152002-02-04 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * regformats/regdat.sh: Add braces to the definition of
10018 expedite_regs_${arch}.
10019
db253027
DJ
100202002-02-04 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * regformats/regdef.h (struct reg): Add comment describing the
10023 requirements for offset and size fields.
10024
206be19c
AS
100252002-02-04 Andreas Schwab <schwab@suse.de>
10026
10027 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10028 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10029
181c1381
RE
100302002-02-04 Richard Earnshaw <rearnsha@arm.com>
10031
10032 * gdbarch.sh (copyright): Update years in generated header.
10033 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10034 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10035 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10036 * dbxread.c: Likewise.
10037 * dwarfread.c: Likewise.
10038 * elfread.c: Likewise.
10039 * somread.c: Likewise.
10040
10041 * arm-tdep.c (arm_smash_text_address): New function.
10042 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10043
fa4ba8da
PM
100442002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10045
10046 Add support for hardware watchpoints on win32 native.
aaa38bb5 10047 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10048 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10049 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10050 of debug registers.
10051 (debug_registers_changed): New variable. Reflects when debug registers
10052 are changed and need to be written to inferior.
aaa38bb5 10053 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10054 was set, used when new threads are created.
10055 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10056 i386-nat code.
10057 (thread_rec): Set dr array if id is the thread of current_event .
10058 (child_continue, child_resume): Change the debug registers for all
10059 threads if debug_registers_changed.
10060 (child_add_thread): Change the debug registers if debug_registers_used.
10061 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10062 Link nm.h to new nm-cygwin.h file.
10063 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10064 of hardware registers.
10065
a73c86fb
AC
100662002-02-03 Andrew Cagney <ac131313@redhat.com>
10067
10068 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10069 Restore behavour broken by 2002-01-20 Andrew Cagney
10070 <ac131313@redhat.com> IEEE_FLOAT removal.
10071
acf5ed49
DJ
100722002-02-03 Daniel Jacobowitz <drow@mvista.com>
10073
10074 * c-valprint.c (c_val_print): Pass a proper valaddr to
10075 cp_print_class_method.
10076 * valops.c (search_struct_method): If there is only one method
10077 and args is NULL, return that method.
10078
493d28d5
DJ
100792002-02-03 Daniel Jacobowitz <drow@mvista.com>
10080
10081 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10082 accessing tag_name directly.
10083
7495dfdb
DJ
100842002-02-03 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10087 of accessing tag_name directly.
10088
dd6bda65
DJ
100892002-02-03 Daniel Jacobowitz <drow@mvista.com>
10090
10091 PR gdb/280
10092 * gdbtypes.c (replace_type): New function.
10093 * gdbtypes.h (replace_type): Add prototype.
10094 * stabsread.c (read_type): Use replace_type.
10095
88fe217c
RE
100962002-02-03 Richard Earnshaw <rearnsha@arm.com>
10097
10098 * Makefile.in (memattr.o): Add missing dependencies rule.
10099
e5d66720
PS
101002002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10101
10102 * breakpoint.c (break_at_finish_command): Really export.
10103 (break_at_finish_at_depth_command): Ditto.
10104 (tbreak_at_finish_command): Ditto.
10105 * hppa-tdep.c: Include completer.h.
10106 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10107 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10108
fffee0be
AC
101092002-02-01 Andrew Cagney <ac131313@redhat.com>
10110
10111 * utils.c (do_write): New function.
10112 (error_stream): Rewrite combining the code from error_begin and
10113 verror.
10114 (verror): Rewrite using error_stream.
10115 (error_begin): Delete function.
10116
255e7dbf
AC
101172002-02-01 Andrew Cagney <ac131313@redhat.com>
10118
10119 * utils.c (error_begin): Make static.
10120 * defs.h (error_begin): Delete declaration.
10121
10122 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10123 (decode_line_1): Use cplusplus_error instead of error_begin,
10124 cplusplus_hint and return_to_top_level.
10125 * coffread.c (coff_symfile_read): Use error instead of error_begin
10126 and return_to_top_level.
10127 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10128
ddfe3c15
AC
101292002-02-01 Andrew Cagney <ac131313@redhat.com>
10130
10131 * language.h (type_error, range_error): Make string parameter
10132 constant.
10133 * language.c (warning_pre_print): Delete extern declaration.
10134 * dwarfread.c (warning_pre_print): Ditto.
10135 * language.c (type_error, range_error): Rewrite to use verror and
10136 vwarning instead of warning_begin.
10137
03ac34d5
MS
101382002-02-01 Michael Snyder <msnyder@redhat.com>
10139
261c4ca2
MS
10140 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10141 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10142
e00d1dc8
AC
101432002-02-01 Andrew Cagney <ac131313@redhat.com>
10144
10145 * command.h (NO_FUNCTION): Delete macro.
10146 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10147 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10148 * tracepoint.c (_initialize_tracepoint): Ditto.
10149 * cli/cli-decode.c (add_set_cmd): Ditto.
10150 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10151
76b79d6e
DJ
101522002-02-01 Daniel Jacobowitz <drow@mvista.com>
10153
10154 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10155 Update ``this'' pointer when calling virtual functions.
10156
799f9e91
MS
101572002-02-01 Michael Snyder <msnyder@redhat.com>
10158
c7bd442c 10159 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10160 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10161
3cf384d4
DJ
101622002-02-01 Daniel Jacobowitz <drow@mvista.com>
10163
10164 * regformats/reg-arm.dat: New file.
10165 * regformats/reg-i386.dat: New file.
10166 * regformats/reg-ia64.dat: New file.
10167 * regformats/reg-m68k.dat: New file.
10168 * regformats/reg-mips.dat: New file.
10169 * regformats/reg-ppc.dat: New file.
10170 * regformats/reg-sh.dat: New file.
10171 * regformats/regdef.h: New file.
10172 * regformats/regdat.sh: New file.
10173
0defa245
RE
101742002-02-01 Richard Earnshaw <reanrsha@arm.com>
10175
10176 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10177 (arm_frame_args_address, arm_frame_locals_address): New functions.
10178 (arm_frame_num_args): New function.
10179 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10180 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10181 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10182
405f26e6
MS
101832002-01-31 Michael Snyder <msnyder@redhat.com>
10184
502fd408
MS
10185 * breakpoint.c (break_at_finish_command): Export.
10186 (break_at_finish_at_depth_command): Export.
10187 (tbreak_at_finish_command): Export.
10188 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10189 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10190 "tbreak" commands, which are HPPA specific.
10191
7d35e135
MS
10192 * printcmd.c (disassemble_command): Remove an ancient
10193 artifact of an old merge.
10194
aaa38bb5 10195 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10196 Define enum constant values for overlay mode.
10197 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10198 (overlay_is_mapped, overlay_auto_command,
10199 overlay_manual_command): Ditto.
d874f1e2 10200
aaa38bb5
AJ
10201 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10202 breakpoint_here_p, breakpoint_inserted_here_p,
10203 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10204 describe_other_breakpoints, check_duplicates, clear_command):
10205 Coding standard fixes.
10206
8add0441 10207 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10208 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10209 code: check bfd SEC_READONLY flag for section.
10210
e351066e
AC
102112002-01-31 Andrew Cagney <ac131313@redhat.com>
10212
7d35e135 10213 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10214
8a48e967
DJ
102152002-01-30 Daniel Jacobowitz <drow@mvista.com>
10216
10217 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10218 data symbols, since we search based on textlow and texthigh.
10219 (find_pc_sect_symtab): Likewise.
10220
f5a96129
AC
102212002-01-30 Andrew Cagney <ac131313@redhat.com>
10222
10223 * defs.h (vwarning): Declare.
f5a96129
AC
10224 * utils.c (vwarning): New function.
10225 (warning): Call vwarning.
10226 (warning_begin): Delete function.
10227
10228 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10229 the warning message.
10230 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10231 warning_begin.
10232
cefd4ef5
MS
102332002-01-30 Michael Snyder <msnyder@redhat.com>
10234
1a703748
MS
10235 * NEWS: Mention "set trust-readonly-sections" command.
10236 Mention generate-core-file command.
cefd4ef5 10237
3a11626d
MS
102382002-01-15 Michael Snyder <msnyder@redhat.com>
10239
10240 * target.c: New command, "set trust-readonly-sections on".
10241 (do_xfer_memory): Honor the suggestion to trust readonly sections
10242 by reading them from the object file instead of from the target.
10243 (initialize_targets): Register command "set trust-readonly-sections".
10244
d1c7e53b
AC
102452002-01-29 Andrew Cagney <ac131313@redhat.com>
10246
10247 * parse.c (target_map_name_to_register): Simplify, search regs and
10248 pseudo-regs using a single loop.
10249
e2c9a72c
AC
102502002-01-30 Andrew Cagney <ac131313@redhat.com>
10251
10252 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10253
69824b4e
MK
102542002-01-15 Rodney Brown <rbrown64@csc.com.au>
10255
10256 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10257 * config/i386/i386v42mp.mh: Add i387-nat.o .
10258 * i386v4-nat.c: Include i387-nat.h.
10259 (supply_fpregset): Use i387_supply_fsave.
10260 (fill_fpregset): Use i387_fill_fsave.
10261
6eb69eab
RE
102622002-01-30 Richard Earnshaw <rearnsha@arm.com>
10263
10264 * arm-tdep.c (arm_call_dummy_words): Define.
10265 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10266 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10267 (CALL_DUMMY_WORDS): Define.
10268 (arm_call_dummy_words): Declare.
10269 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10270 (arm_linux_call_dummy_words): Declare.
10271
9852326a
AS
102722002-01-30 Andreas Schwab <schwab@suse.de>
10273
10274 * m68klinux-nat.c: Fix last change to use regcache_collect
10275 instead of referencing registers[] directly.
10276
977a3030
AC
102772002-01-29 Andrew Cagney <ac131313@redhat.com>
10278
10279 * parse.c (target_map_name_to_register): Delete code wrapped in
10280 #ifdef REGISTER_NAME_ALIAS_HOOK.
10281
2076c72b
MS
102822002-01-28 Michael Snyder <msnyder@redhat.com>
10283
10284 * regcache.c (legacy_read_register_gen): Need to be able to
10285 read pseudo-register as well as real register.
10286 (legacy_write_register_gen): Ditto.
10287
8fcc723b
AC
102882002-01-28 Andrew Cagney <ac131313@redhat.com>
10289
10290 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10291 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10292 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10293 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10294 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10295 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10296 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10297 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10298 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10299 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10300 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10301 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10302 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10303 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10304 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10305 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10306 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10307 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10308 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10309 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10310
afe64c1a
AC
103112002-01-28 Andrew Cagney <ac131313@redhat.com>
10312
10313 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10314 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10315 (initialize_current_architecture): Update target_byte_order using
10316 information from BFD.
aaa38bb5 10317 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10318 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10319
75bc7ddf
AC
103202002-01-28 Andrew Cagney <ac131313@redhat.com>
10321
10322 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10323 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10324
10325 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10326 #ifdef INVALID_FLOAT.
10327 * infcmd.c (do_registers_info): Ditto.
10328 * values.c (unpack_double): Ditto. Add comment.
10329
10330 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10331 already commented out.
10332
0280a90a
AS
103332002-01-26 Andreas Schwab <schwab@suse.de>
10334
10335 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10336 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10337 registers and add support for PTRACE_GETREGS.
10338
7072a954
AC
103392002-01-24 Andrew Cagney <ac131313@redhat.com>
10340
10341 GDB 5.1.1 released from 5.1 branch.
10342 * NEWS: Add 5.1.1 news.
10343 * README: Sync with 5.1 branch.
10344
86f902e0
FF
103452002-01-23 Fred Fish <fnf@redhat.com>
10346
10347 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10348 stabstring on initial malloc. Reallocing will copy it for us,
10349 if necessary.
10350
8af51c36
EZ
103512002-01-23 Elena Zannoni <ezannoni@redhat.com>
10352
aaa38bb5 10353 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10354 (HFILES_NO_SRCDIR): Remove hpread.h.
10355 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10356 (hpread.o): Update dependencies.
10357 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10358
10359 * hp-psymtab-read.c: Remove file.
10360 * hp-symtab-read.c: Remove file.
10361 * hpread.h: Remove file.
10362
10363 * hpread.c: Merge all contents of hp-psymtab-read.c,
10364 hp-symtab-read.c and hpread.h into this file, as it was prior to
10365 January 1999.
10366
10367 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10368 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10369 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10370 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10371
dc5cfeb6
EZ
103722002-01-23 Elena Zannoni <ezannoni@redhat.com>
10373
10374 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10375 fill_gregset): Call gdbarch_tdep() just once, assign result to
10376 variable and use that, instead of calling the function several
10377 times.
10378
ea87b71b
AO
103792002-01-24 Alexandre Oliva <aoliva@redhat.com>
10380
10381 * configure.host: Accept sparcv9 as alias for sparc64.
10382 * configure.tgt: Likewise.
10383
13fc0c2f
KB
103842002-01-22 Kevin Buettner <kevinb@redhat.com>
10385
10386 * solib-aix5.c (build_so_list_from_mapfile)
10387 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10388 arguments is not reversed.
10389 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10390 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10391
7bd872fe
EZ
103922002-01-22 Elena Zannoni <ezannoni@redhat.com>
10393
10394 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10395 modified version of obsolete sh_fetch_pseudo_register.
10396 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10397 (sh4_register_read): New function.
10398 (sh_pseudo_register_write): New function. Renamed and modified
10399 version of obsolete sh_store_pseudo_register.
10400 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10401 (sh4_register_write): New function.
10402 (sh_gdbarch_init): Remove setting of gdbarch function
10403 fetch_pseudo_register and store_pseudo_register. Remove setting of
10404 register_convert_to_raw, register_convert_to_virtual,
10405 register_convertible.
10406 (sh_sh4_register_convertible): Delete. No longer needed. All is
10407 taken care by architecture specific functions
10408 register_read/register_write.
10409 (sh_sh4_register_convert_to_virtual): Make static.
10410 (sh_sh4_register_convert_to_raw): Ditto.
10411
069e84fd
AC
104122002-01-22 Andrew Cagney <ac131313@redhat.com>
10413
10414 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10415 (floatformat_is_nan, floatformat_mantissa): Ditto.
10416
10417 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10418 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10419 builtin_type_ieee_double_little,
10420 builtin_type_ieee_double_littlebyte_bigword,
10421 builtin_type_m68881_ext, builtin_type_i960_ext,
10422 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10423 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10424 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10425 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10426
211a4f69
CV
104272002-01-22 Corinna Vinschen <vinschen@redhat.com>
10428
10429 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10430 parameter. Set frameless flag if it exists and depended of
10431 whether the scanned function is frameless or not.
10432 (xstormy16_skip_prologue): If function is frameless, return
10433 result of xstormy16_scan_prologue().
10434 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10435 call.
10436
f81353e4
EZ
104372002-01-21 Elena Zannoni <ezannoni@redhat.com>
10438
10439 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10440 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10441 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10442 sh_sh4_register_byte, sh_sh4_register_raw_size,
10443 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10444 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10445 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10446 sh_store_pseudo_register, sh_do_pseudo_register): Call
10447 gdbarch_tdep() just once, assign result to variable and use that,
10448 instead of calling the function several times.
10449
63c73a17
MK
104502002-01-20 Mark Kettenis <kettenis@gnu.org>
10451
10452 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10453 macros instead of LAST_FPU_CTRL_REGNUM.
10454 (store_register): Likewise.
10455
39ad761d
JB
104562002-01-21 Jim Blandy <jimb@redhat.com>
10457
10458 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10459 is up-to-date before running the program, not just when a program
10460 exits.
10461
3d74b771
FF
104622002-01-21 Fred Fish <fnf@redhat.com>
10463
10464 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10465 when we have found all instructions we are looking for.
10466
966fbf70
RE
104672002-01-21 Richard Earnshaw <rearnsha@arm.com>
10468
10469 * arm-tdep.c (arm_register_name): New function.
10470 (arm_registers_names): Make static.
10471 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10472 (arm_register_name): Declare.
10473 (REGISTER_NAME): Use it.
10474
c3b4394c
RE
104752002-01-21 Richard Earnshaw <rearnsha@arm.com>
10476 Kevin Buettner <kevinb@redhat.com>
10477
10478 Convert arm targets to new FRAME interface.
10479 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10480 (arm_frame_find_save_regs): Delete.
10481 (arm_frame_init_saved_regs): New.
10482 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10483 Allocate extra_info as required. Convert all uses of fsr.regs
10484 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10485 to use extra_info.
10486 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10487 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10488 (check_prologue_cache, save_prologue_cache): Likewise.
10489 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10490 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10491 (FRAME_FIND_SAVED_REGS): Delete.
10492 (arm_frame_find_saved_regs): Delete prototype.
10493 (arm_frame_init_saved_regs): New prototype.
10494 (FRAME_INIT_SAVED_REGS): Define.
10495
61d99182
AC
104962002-01-20 Andrew Cagney <ac131313@redhat.com>
10497
10498 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10499
6aaea291
AC
105002002-01-20 Andrew Cagney <ac131313@redhat.com>
10501
10502 From Jeff Law <law@redhat.com>:
10503 * infttrace.c: Include <sys/pstat.h>.
10504 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10505 exec file if the ttrace equivalent fails.
10506
15f698d2
AC
105072002-01-20 Andrew Cagney <ac131313@redhat.com>
10508
10509 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10510 (closeLogFile): Ditto.
10511
f86ddd7c
MC
105122002-01-20 Michael Chastain <mec@shout.net>
10513
10514 * top.c (print_gdb_version): Bump copyright year to 2002.
10515
904507ce
AC
105162002-01-20 Andrew Cagney <ac131313@redhat.com>
10517
10518 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10519 Zannoni and Eli Zaretskii.
10520
d7f0b9ce
DJ
105212002-01-20 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * buildsym.c: Update copyright years.
10524 * c-typeprint.c: Likewise.
10525 * dwarf2read.c: Likewise.
10526 * f-typeprint.c: Likewise.
10527 * gdbtypes.c: Likewise.
10528 * gdbtypes.h: Likewise.
10529 * hp-symtab-read.c: Likewise.
10530 * hpread.c: Likewise.
10531 * mdebugread.c: Likewise.
10532 * p-typeprint.c: Likewise.
10533
3fd3d7d2
AC
105342002-01-20 Andrew Cagney <ac131313@redhat.com>
10535
10536 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10537 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10538 byte-order selectable.
10539 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10540 * arch-utils.c: Ditto.
10541 (set_endian): Ditto.
10542 (set_endian_from_file): Ditto.
10543 * gdbserver/low-sim.c (create_inferior): Ditto.
10544 * gdbarch.sh: Ditto.
10545 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10546 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10547 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10548 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10549 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10550 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10551 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10552 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10553 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10554 macro definition.
10555 * config/mips/tm-wince.h: Remove #undef of macro
10556 TARGET_BYTE_ORDER_SELECTABLE.
10557 * config/sh/tm-wince.h: Ditto.
10558
b02dede2
DJ
105592002-01-20 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10562 member function fields. Add accessor macro
10563 TYPE_FN_FIELD_ARTIFICIAL.
10564 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10565 * c-typeprint.c (c_type_print_base): Skip artificial member
10566 functions.
10567
c3643761
DJ
105682002-01-20 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * f-typeprint.c: Delete unused function f_type_print_args.
10571 * p-typeprint.c: Delete unused function pascal_type_print_args.
10572
8176bb6d
DJ
105732002-01-20 Daniel Jacobowitz <drow@mvista.com>
10574
10575 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10576 comment. Add ``artificial'' to ``union field_location''.
10577
10578 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10579
10580 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10581 * mdebugread.c (parse_symbol): Likewise.
10582 * stabsread.c (define_symbol): Likewise.
10583 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10584 initializing TYPE_FIELD_BITPOS to n (obsolete).
10585 (hpread_doc_function_type): Likewise.
10586 * hpread.c (hpread_function_type): Likewise.
10587
7fd60527
AC
105882002-01-20 Andrew Cagney <ac131313@redhat.com>
10589
10590 * configure.in (host_makefile_frag): Only require a host makefile
10591 fragment when a native build.
10592 * configure: Re-generate.
10593
c2f05ac9
AC
105942002-01-20 Andrew Cagney <ac131313@redhat.com>
10595
10596 * doublest.h (floatformat_from_type): Declare.
10597 * doublest.c (floatformat_from_type): New function.
10598 (convert_typed_floating): Use.
10599
10600 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10601 call to function floatformat_from_type.
10602
10603 * gdbarch.sh (IEEE_FLOAT): Delete.
10604 * gdbarch.h, gdbarch.c: Re-generate.
10605 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10606 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10607 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10608 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10609 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10610 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10611 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10612 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10613 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10614 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10615 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10616 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10617
10618 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10619 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10620 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10621 * sh-tdep.c (sh_gdbarch_init): Ditto.
10622 * mips-tdep.c (mips_gdbarch_init): Ditto.
10623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10624 * cris-tdep.c (cris_gdbarch_init): Ditto.
10625
abf22e64
AJ
106262002-01-20 Jiri Smid <smid@suse.cz>
10627
10628 * configure.host, configure.tgt: Support x86-64.
10629 * NEWS: Note new target x86-64.
10630
b7c4cbf8
AJ
10631 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10632 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10633 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10634 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10635 x86-64-linux-nat.o): Fix dependencies.
10636
82600034
AC
106372002-01-19 Andrew Cagney <ac131313@redhat.com>
10638
10639 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10640 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10641 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10642 * config/sparc/xm-sun4os4.h: Delete file.
10643 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10644
bbe5c628
AC
106452002-01-19 Andrew Cagney <ac131313@redhat.com>
10646
10647 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10648 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10649 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10650 * config/i386/i386lynx.mh (XM_FILE): Delete.
10651 * config/rs6000/xm-rs6000ly.h: Delete file.
10652 * config/sparc/xm-sparclynx.h: Delete file.
10653 * config/m68k/xm-m68klynx.h: Delete file.
10654 * config/i386/xm-i386lynx.h: Delete file.
10655 * config/xm-lynx.h: Delete file.
10656 * config/djgpp/fnchange.lst: Update.
10657
f8453e34
JT
106582002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10659
10660 * alpha-tdep.c (alpha_register_byte): New function.
10661 (alpha_register_raw_size): Ditto.
10662 (alpha_register_virtual_size): Ditto.
10663 (alpha_skip_prologue_internal): Renamed from
10664 alpha_skip_prologue.
10665 (alpha_skip_prologue): New version that calls
10666 alpha_skip_prologue_internal.
10667 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10668 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10669 second argument from alpha_skip_prologue.
10670 (REGISTER_BYTE): Use alpha_register_byte.
10671 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10672 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10673 (FRAMELESS_FUNCTION_INVOCATION): Use
10674 generic_frameless_function_invocation_not.
10675 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10676 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10677
52d9e613
AC
106782002-01-19 Andrew Cagney <ac131313@redhat.com>
10679
10680 * config/mips/xm-news-mips.h: Delete file.
10681 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10682
10683 * config/m88k/xm-m88k.h: Delete file.
10684 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10685 * config/m88k/xm-delta88v4.h: Ditto.
10686 * config/m88k/xm-delta88.h: Ditto.
10687
10688 * config/alpha/xm-fbsd.h: Delete file.
10689 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10690
10691 * config/sparc/xm-sparc.h: Delete file.
10692 * Makefile.in (xm-sun4os4.h): Delete dependency.
10693 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10694 * config/sparc/xm-sun4os4.h: Ditto.
10695 * config/sparc/xm-linux.h: Ditto.
10696
10697 * config/i386/xm-windows.h: Delete file.
10698
2d1b2124
AC
106992002-01-19 Andrew Cagney <ac131313@redhat.com>
10700
10701 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10702 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10703
ee1f65f0
JT
107042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10705
10706 * alpha-tdep.c (alpha_call_dummy_words): New.
10707 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10708 (CALL_DUMMY_P): Define.
10709 (CALL_DUMMY_WORDS): Define.
10710 (SIZEOF_CALL_DUMMY_WORDS): Define.
10711
98081e55
PB
107122002-01-19 Per Bothner <per@bothner.com>
10713
10714 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10715 isn't NULL, which can happen with some gcj-3.x-produced code.
10716
0d056799
JT
107172002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10718
10719 * alpha-tdep.c (alpha_register_virtual_type): New function.
10720 (alpha_init_frame_pc_first): Ditto.
10721 (alpha_fix_call_dummy): Ditto.
10722 (alpha_store_struct_return): Ditto.
10723 (alpha_extract_struct_value_address): Ditto.
10724 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10725 alpha_register_virtual_type.
10726 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10727 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10728 alpha_extract_struct_value_address.
10729 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10730 (INIT_FRAME_PC): Use init_frame_pc_noop.
10731 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10732
4604bcad
MK
107332002-01-19 Mark Kettenis <kettenis@gnu.org>
10734
10735 * i386gnu-nat.c: Include "i386-tdep.h".
10736 (fetch_fpregs): Simplify code dealing with uninitialized floating
10737 point states such that it doesn't require FP7_REGNUM.
10738
140f9984
JT
107392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10740
abf22e64
AJ
10741 * alpha-tdep.c (frame_extra_info): New.
10742 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10743 frame->extra_info.
10744 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10745 (alpha_frame_saved_pc): Use frame->extra_info.
10746 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10747 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10748 (init_extra_frame_info): Rename to...
10749 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10750 (alpha_print_extra_frame_info): New function.
140f9984
JT
10751 (alpha_frame_locals_address): Ditto.
10752 (alpha_frame_args_address): Ditto.
abf22e64 10753 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10754 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10755 alpha_frame_args_address.
abf22e64 10756 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10757 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10758 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10759 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10760 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10761 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10762
d734c450
JT
107632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10764
10765 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10766 (alpha_cannot_fetch_register): Ditto.
10767 (alpha_cannot_store_register): Ditto.
10768 (alpha_register_convertible): Ditto.
10769 (alpha_use_struct_convention): Ditto.
10770 * config/alpha/tm-alpha.h: Update copyright years.
10771 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10772 (INNER_THAN): Use core_addr_lessthan.
10773 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10774 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10775 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10776 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10777 (FRAME_CHAIN): Remove unnecessary cast.
10778
b4ceaee6
AC
107792002-01-18 Andrew Cagney <ac131313@redhat.com>
10780
10781 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10782 obsolete.
10783
0a65a603
AC
107842002-01-18 Andrew Cagney <ac131313@redhat.com>
10785
10786 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10787 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10788 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10789 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10790 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10791 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10792 * x86-64-linux-nat.c: Ditto.
10793
636a6dfc
JT
107942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10795
abf22e64 10796 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10797 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10798 (REGISTER_NAME): Define.
10799
acceddb6
JT
108002002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10801
10802 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10803
ec32e4be
JT
108042002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10805
10806 * alpha-tdep.c: Update copyright years.
10807 (alpha_next_pc): New function.
10808 (alpha_software_single_step): Ditto.
10809 * config/alpha/tm-alpha.h: Add prototype for
10810 alpha_software_single_step.
10811
e771a871
JT
108122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10813
10814 * alphabsd-nat.c: Update copyright years.
10815 (fill_gregset): Use regcache_collect.
10816 (fill_fpregset): Likewise.
10817 (fetch_inferior_registers): Only fetch integer registers
10818 if requested to do so.
10819 (store_inferior_registers): Only store integer registers
10820 if requested to do so.
10821
7708fa01
AC
108222002-01-17 Andrew Cagney <ac131313@redhat.com>
10823
10824 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10825 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10826 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10827 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10828 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10829 * config/arm/linux.mh (XDEPFILES): Delete.
10830 * config/arm/nbsd.mh (XDEPFILES): Delete.
10831 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10832 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10833 * config/i386/i386m3.mh (XDEPFILES): Delete.
10834 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10835 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10836 * config/i386/fbsd.mh (XDEPFILES): Delete.
10837 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10838 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10839 * config/i386/i386v4.mh (XDEPFILES): Delete.
10840 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10841 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10842 * config/i386/i386aix.mh (XDEPFILES): Delete.
10843 * config/i386/go32.mh (XDEPFILES): Delete.
10844 * config/i386/cygwin.mh (XDEPFILES): Delete.
10845 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10846 * config/i386/i386mach.mh (XDEPFILES): Delete.
10847 * config/i386/i386v32.mh (XDEPFILES): Delete.
10848 * config/i386/linux.mh (XDEPFILES): Delete.
10849 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10850 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10851 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10852 * config/i386/i386sco.mh (XDEPFILES): Delete.
10853 * config/i386/i386v.mh (XDEPFILES): Delete.
10854 * config/i386/nbsd.mh (XDEPFILES): Delete.
10855 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10856 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10857 * config/i386/symmetry.mh (XDEPFILES): Delete.
10858 * config/i386/obsd.mh (XDEPFILES): Delete.
10859 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10860 * config/ia64/linux.mh (XDEPFILES): Delete.
10861 * config/ia64/aix.mh (XDEPFILES): Delete.
10862 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10863 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10864 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10865 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10866 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10867 * config/m68k/linux.mh (XDEPFILES): Delete.
10868 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10869 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10870 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10871 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10872 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10873 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10874 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10875 * config/m88k/delta88.mh (XDEPFILES): Delete.
10876 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10877 * config/m88k/m88k.mh (XDEPFILES): Delete.
10878 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10879 * config/mips/linux.mh (XDEPFILES): Delete.
10880 * config/mips/irix6.mh (XDEPFILES): Delete.
10881 * config/mips/irix5.mh (XDEPFILES): Delete.
10882 * config/mips/irix4.mh (XDEPFILES): Delete.
10883 * config/mips/irix3.mh (XDEPFILES): Delete.
10884 * config/mips/decstation.mh (XDEPFILES): Delete.
10885 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10886 (NATDEPFILES): Move core-aout.o to here.
10887 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10888 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10889 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10890 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10891 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10892 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10893 * config/pa/hpux11.mh (XDEPFILES): Delete.
10894 * config/powerpc/aix.mh (XDEPFILES): Delete.
10895 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10896 * config/powerpc/linux.mh (XDEPFILES): Delete.
10897 * config/romp/rtbsd.mh: Rename XDEPFILES.
10898 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10899 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10900 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10901 * config/s390/s390.mh (XDEPFILES): Delete.
10902 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10903 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10904 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10905 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10906 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10907 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10908 * config/sparc/linux.mh (XDEPFILES): Delete.
10909 * config/vax/vaxult.mh (XDEPFILES): Delete.
10910 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10911 * Makefile.in (DEPFILES): Remove XDEPFILES.
10912
375fc983
AC
109132002-01-17 Andrew Cagney <ac131313@redhat.com>
10914
10915 * utils.c (internal_verror): Fix comments, default is yes not no.
10916 Update queries to match. Default to quit and dump core.
10917
8926118c
AC
109182002-01-17 Andrew Cagney <ac131313@redhat.com>
10919
10920 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10921 copyright.
10922 * defs.h, event-top.c, gdbcmd.h: Ditto.
10923 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10924 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10925 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10926 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10927 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10928 * mi/mi-main.c:Ditto.
10929
10930 * stack.c, symfile.c: Update copyright.
10931
45b7b345
DJ
109322002-01-17 Daniel Jacobowitz <drow@mvista.com>
10933
db728ff7
DJ
10934 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10935 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10936 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10937 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10938
db728ff7
DJ
109392002-01-17 Daniel Jacobowitz <drow@mvista.com>
10940
10941 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10942 * gdbserver/low-lynx.c (myattach): Likewise.
10943 * gdbserver/low-nbsd.c (myattach): Likewise.
10944 * gdbserver/low-sim.c (myattach): Likewise.
10945 * gdbserver/low-sparc.c (myattach): Likewise.
10946 * gdbserver/low-sun3.c (myattach): Likewise.
10947
10948 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10949
db728ff7 10950 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10951 (main): Handle "--attach".
10952
8de3c354
AC
109532002-01-16 Andrew Cagney <ac131313@redhat.com>
10954
10955 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10956 maintainer.
10957
b0129042
DJ
109582002-01-15 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * c-typeprint.c (is_type_conversion_operator): Add additional
10961 check for non-conversion operators.
10962
ba8679fb 109632002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10964
10965 * linux-proc.c: Add "info proc" command, a la procfs.c.
10966 (read_mapping): New function, abstract and re-use code.
10967 (linux_find_memory_regions): Use new func read_mapping.
10968 (linux_info_proc_cmd): New function, implement "info proc".
10969 (_initialize_linux_proc): Add new command "info proc".
10970
e4f9b4d5
MS
109712002-01-15 Michael Snyder <msnyder@redhat.com>
10972
10973 * symfile.c (generic_load): Use bfd_map_over_sections method
10974 instead of manipulating bfd structure members directly.
10975 (add_section_size_callback): New function, bfd sections callback
10976 used by generic_load.
10977 (load_sections_callback): New function, bfd sections callback
10978 used by generic_load.
10979
08cf96df
EZ
109802002-01-15 Elena Zannoni <ezannoni@redhat.com>
10981
abf22e64 10982 [Based on work by Jim Blandy]
08cf96df
EZ
10983 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10984 (builtin_type_vec128): Export.
10985 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10986 types.
10987 (builtin_type_vec128): New builtin type for 128 bit vector
10988 registers.
10989 (build_gdbtypes): Initialize builtin_type_v16qi and
10990 builtin_type_v8hi. Create the vec128 register builtin type
10991 structure.
10992 (build_builtin_type_vec128): New function.
abf22e64 10993 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10994 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10995 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10996 AltiVec register to new builtin type.
10997
d7242108
DJ
109982001-01-15 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11001 to make_cv_type.
11002
4ee3352d
AC
110032002-01-14 Andrew Cagney <ac131313@redhat.com>
11004
11005 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11006 CLEAN_UP_REGISTER_VALUE.
11007 * regcache.c (supply_register): Update only call.
11008
f015b2e7
AC
110092002-01-14 Andrew Cagney <ac131313@redhat.com>
11010
11011 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11012 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11013 a29k-*-vxworks* targets as obsolete.
11014
356ae49d
MS
110152002-01-14 Michael Snyder <msnyder@redhat.com>
11016
11017 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11018 until we can resolve portability issues.
11019 * gregset.h: Remove references to fpxregs.
11020 * gcore.c (gcore_command): Initialize note_sec to NULL.
11021
ade8f45e
AC
110222002-01-13 Andrew Cagney <ac131313@redhat.com>
11023
11024 * signals.c (target_signal_to_name): Rewrite. Only use
11025 signals[].name when in bounds and non-NULL.
abf22e64 11026
89c49e7a
AC
110272002-01-13 Andrew Cagney <ac131313@redhat.com>
11028
11029 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11030 * signals.c (target_signal_to_name): Verify that SIG is within the
11031 bounds of the signals array.
11032
4daa9f9f
AC
110332002-01-13 Andrew Cagney <ac131313@redhat.com>
11034
11035 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11036
ba4bbdcb
KS
110372002-01-13 Keith Seitz <keiths@redhat.com>
11038
11039 * stack.c (print_frame_info_base): Print the frame's pc
11040 only if when print_frame_info_listing_hook is not defined.
11041
575bbeb6
KS
110422002-01-13 Keith Seitz <keiths@redhat.com>
11043
11044 * varobj.c (varobj_set_value): Make sure that there were no
11045 errors evaluating the object before attempting to set its
11046 value.
11047 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11048 so this offset adjustment is no longer necessary.
11049 (create_child): Don't set the error flag if the child is
11050 a CPLUS_FAKE_CHILD.
11051 (value_of_child): If value_fetch_lazy fails, return NULL
11052 so that callers will be notified that an error occurred.
11053 (c_value_of_variable): Delay check of variable's validity
11054 until later. We actually want all structs and unions to have
11055 the value "{...}".
11056 Do not return "???" for variables which could not be evaluated.
11057 This error condition must be returned to the caller so that it
11058 can get the error condition from gdb.
11059 (cplus_name_of_child): Adjust index for vptr before figuring
11060 out the name of the child.
11061 (cplus_value_of_child): If a child's (real) parent is not valid,
11062 don't even bother trying to give a value for it. Just return
11063 an error. Change all instances in this function.
11064 (cplus_type_of_child): If our parent is one of the "fake"
11065 parents, we need to get at the type of the real parent, and
11066 derive the child's true type using this information.
11067
b76898ab
AC
110682002-01-13 Andrew Cagney <ac131313@redhat.com>
11069
11070 From 2002-01-09 John Marshall <johnm@falch.net>:
11071 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11072 sources.redhat.com, and tweak some related URLs which had
11073 suffered from linkrot.
11074
b6649e88
AC
110752002-01-13 Andrew Cagney <ac131313@redhat.com>
11076
11077 From Jeff law:
11078 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11079 structures passed in registers.
11080
82cc5033
EZ
110812002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11082
11083 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11084 white space which prevented compilation. Reported by DSK
11085 <dsk@student.unsw.edu.au>.
11086
ba5f2f8a
MS
110872002-01-11 Michael Snyder <msnyder@redhat.com>
11088
fbd35540
MS
11089 * symfile.c (build_section_addr_info_from_section_tab):
11090 Use bfd access method instead of manipulating bfd directly.
11091 (syms_from_objfile): Ditto.
11092 (simple_overlay_update_1): Ditto.
11093 (simple_overlay_update): Ditto.
11094 (generic_load): Ditto.
11095 (overlay_unmapped_address): FIXME comment, bfd access methods.
11096 (sections_overlap): FIXME comment, bfd access methods.
11097 (pc_in_mapped_range): FIXME comment, bfd access methods.
11098 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11099 (section_is_mapped): FIXME comment, bfd access methods.
11100 (section_is_overlay): FIXME comment, bfd access methods.
11101
ba5f2f8a
MS
11102 * symfile.c (generic_load): Whitespace and long line cleanups.
11103 Remove duplicate variable, change several local variables to
11104 more appropriate data types.
11105 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11106
17df2af6
AC
111072002-01-12 Andrew Cagney <ac131313@redhat.com>
11108
11109 From Peter Schauer:
11110 * language.c (longest_local_hex_string_custom): Use phex_nz to
11111 convert NUM to a hex string.
11112
ec920329
EZ
111132002-01-12 Elena Zannoni <ezannoni@redhat.com>
11114
11115 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11116 the function.
538a76d6 11117 Update Copyright year.
ec920329 11118
3abd2e01
AC
111192002-01-12 Andrew Cagney <ac131313@redhat.com>
11120
11121 * language.c (longest_raw_hex_string): Delete unused function.
11122
b21b22e0
PS
111232002-01-11 Petr Sorfa <petrs@caldera.com>
11124
11125 * MAINTAINERS (write-after-approval): Add myself.
11126 * dwarf2read.c (read_tag_string_type): Handling of
11127 DW_AT_byte_size.
11128 (read_tag_string_type): FORTRAN fix to prevent propagation of
11129 first string size.
11130 (set_cu_language): Handling of DW_LANG_Fortran95
11131
747fe712
RE
111322002-01-11 Richard Earnshaw <rearnsha@arm.com>
11133
11134 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11135 GETPID(inferior_ptid).
11136 (store_inferior_registers): Likewise.
11137
f1bea926
JM
111382002-01-10 Jason Merrill <jason@redhat.com>
11139
11140 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11141 Fix DW_OP_minus.
11142
ae940673
AC
111432002-01-10 Andrew Cagney <ac131313@redhat.com>
11144
11145 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11146 and bfd/elf32-sh-nbsd.c.
11147
00546b04
MS
111482002-01-10 Michael Snyder <msnyder@redhat.com>
11149
352ed7b4
MS
11150 * NEWS: Mention --pid and corefile/proc-id behavior change.
11151
c18be923
MS
11152 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11153 * gcore.c: Include cli/cli-decode.h instead of command.h.
11154
00546b04
MS
11155 * main.c (captured_main): Add new command line option "--pid".
11156 If the second command line argument (following the symbol-file)
11157 begins with a digit, try to attach to it before trying to open
11158 it as a corefile.
11159 (print_gdb_help): Document the "--pid" argument.
11160
db60ec62
EZ
111612002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11162
11163 * completer.c (command_completer): New function.
11164
11165 * completer.h <command_completer>: Add prototype.
11166
11167 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11168 completer for the "help" command.
11169
39c22d1a
JM
111702002-01-09 Jason Merrill <jason@redhat.com>
11171
11172 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11173
c564377f
MS
111742002-01-09 Michael Snyder <msnyder@redhat.com>
11175
975aec09
MS
11176 * i386-linux-nat.c (fill_fpxregset): Make global.
11177 (store_fpxregset): Ditto.
11178
db4a10fa
MS
11179 * gregset.h (gdb_fpxregset_t): Define.
11180 (supply_fpxregset): Prototype.
11181 (fill_fpxregset): Prototype.
11182
c564377f
MS
11183 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11184
c3d45d70
RE
111852002-01-09 Richard Earnshaw <rearnsha@arm.com>
11186
11187 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11188 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11189 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11190
fcc87af1
AC
111912002-01-09 Andrew Cagney <ac131313@redhat.com>
11192
11193 * MAINTAINERS: Update target maintainer rules so that any
11194 Maintainer can approve a tested patch for a maintenance-only
11195 target.
11196
dd96c05b
RE
111972002-01-09 Richard Earnshaw <rearnsha@arm.com>
11198
d4297db9 11199 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11200
d4297db9 11201 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11202 IN_SIGTRAMP.
11203
145fdc6e
MS
112042002-01-08 Michael Snyder <msnyder@redhat.com>
11205
11206 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11207 real name of the executable, rather than the /proc name.
11208
be4d1333
MS
112092002-01-03 Michael Snyder <msnyder@redhat.com>
11210
11211 Implement a "generate-core-file" command in gdb, save target state.
11212 * gcore.c: New file. Implement new command 'generate-core-file'.
11213 Save a corefile image of the current state of the inferior.
11214 * linux-proc.c: Add linux-specific code for saving corefiles.
11215 * target.h (struct target_ops): Add new target vectors for saving
11216 corefiles; to_find_memory_regions and to_make_corefile_notes.
11217 (target_find_memory_regions): New macro.
11218 (target_make_corefile_notes): New macro.
11219 * target.c (update_current_target): Inherit new target methods.
11220 (dummy_find_memory_regions): New place-holder method.
11221 (dummy_make_corefile_notes): New place-holder method.
11222 (init_dummy_target): Initialize new dummy target vectors.
11223 * exec.c (exec_set_find_memory_regions): New function.
11224 Allow the exec_ops vector for memory regions to be taken over.
11225 (exec_make_note_section): New function, target vector method.
11226 * defs.h (exec_set_find_memory_regions): Export prototype.
11227 * procfs.c (proc_find_memory_regions): New function, corefile method.
11228 (procfs_make_note_section): New function, corefile method.
11229 (init_procfs_ops): Set new target vector pointers.
11230 (find_memory_regions_callback): New function.
11231 (procfs_do_thread_registers): New function.
11232 (procfs_corefile_thread_callback): New function.
11233 * sol-thread.c (sol_find_memory_regions): New function.
11234 (sol_make_note_section): New function.
11235 (init_sol_thread_ops): Initialize new target vectors.
11236 * inftarg.c (inftarg_set_find_memory_regions): New function.
11237 Allow to_find_memory_regions vector to be taken over.
11238 (inftarg_set_make_corefile_notes): New function.
11239 Allow to_make_corefile_notes vector to be taken over.
11240 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11241 interface layer if not target_has_execution (may be a corefile).
11242 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11243 * config/sparc/sun4sol2.mh: Ditto.
11244 * config/alpha/alpha-linux.mh: Ditto.
11245 * config/arm/linux.mh: Ditto.
11246 * config/i386/x86-64linux.mh: Ditto.
11247 * config/ia64/linux.mh: Ditto.
11248 * config/m68k/linux.mh: Ditto.
11249 * config/mips/linux.mh: Ditto.
11250 * config/powerpc/linux.mh: Ditto.
11251 * config/sparc/linux.mh: Ditto.
11252
c6b92abd
MS
112532002-01-07 Michael Snyder <msnyder@redhat.com>
11254
11255 * arm-linux-nat.c: Remove references to regcache.c internal data
11256 (registers[] and register_valid[]).
11257
4b09dc8c
MS
112582002-01-07 Michael Snyder <msnyder@redhat.com>
11259
abf22e64
AJ
11260 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11261 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11262 symbol file and shlibs.
11263 * Makefile.in: Add rule for linux-proc.o.
11264 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11265 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11266 * config/arm/linux.mh: Ditto.
11267 * config/i386/linux.mh: Ditto.
11268 * config/i386/x86-64linux.mh: Ditto.
11269 * config/ia64/linux.mh: Ditto.
11270 * config/m68k/linux.mh: Ditto.
11271 * config/mips/linux.mh: Ditto.
11272 * config/powerpc/linux.mh: Ditto.
11273 * config/sparc/linux.mh: Ditto.
11274
c25b74ac
PM
112752002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11276
11277 * win32-nat.c: Add i386-tdep.h dependency.
11278
94cd915f
MS
112792002-01-07 Michael Snyder <msnyder@redhat.com>
11280
c7cccb76
MS
11281 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11282 instead of bfd_get_arch_size. Don't bail out just because
11283 there's no exec_bfd.
abf22e64 11284
34c0bd93
MS
11285 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11286 * p-valprint.c (pascal_object_print_value): Ditto.
11287 * somread.c (som_symtab_read): Ditto.
11288 * symfile.c (simple_free_overlay_region_table): Ditto.
11289 * valops.c (value_assign): Ditto.
11290
21c1c920
MS
11291 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11292 use tilde_expand and strerror for opening save-tracepoints file.
11293
5bbd998e
MS
11294 * thread-db.c (thread_db_new_objfile): Indendation fix.
11295
94cd915f
MS
11296 * infptrace.c (GDB_MAX_ALLOCA): New define.
11297 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11298 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11299 can be overridden with whatever value is appropriate to the host).
11300 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11301 alloca to allocate potentially large buffer.
11302 * rs6000-nat.c (child_xfer_memory): Ditto.
11303 * symm-nat.c (child_xfer_memory): Ditto.
11304 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11305
494e8a93
JSC
113062002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11307
11308 From Nick Clifton <nickc@redhat.com>
11309 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11310
d0e1d48e
MS
113112002-01-07 Michael Snyder <msnyder@redhat.com>
11312
abf22e64 11313 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11314 Don't use exec_bfd if it's NULL.
11315
290b2c7a
MK
113162002-01-06 Mark Kettenis <kettenis@gnu.org>
11317
abf22e64 11318 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11319
aef21287
AC
113202002-01-06 Andrew Cagney <ac131313@redhat.com>
11321
11322 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11323 * gnu-nat.c: Ditto.
11324
30efa627
AC
113252002-01-06 Andrew Cagney <ac131313@redhat.com>
11326
11327 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11328 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11329 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11330 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11331 z8k-coff have not been multi-arched. Update z8k-coff build
11332 status.
11333
9b4ff276
AC
113342002-01-06 Andrew Cagney <ac131313@redhat.com>
11335
11336 * MAINTAINERS: Mark a29k target as obsolete.
11337 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11338 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11339 comments.
11340 * NEWS: Note that a29k targets are obsolete.
11341 * a29k-tdep.c: Mark as obsolete.
11342 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11343 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11344 a29k-*-vxworks* targets as obsolete.
11345 * remote-adapt.c: Obsolete.
11346 * remote-eb.c: Obsolete.
11347 * remote-mm.c: Obsolete.
11348 * remote-udi.c: Obsolete.
11349 * config/a29k/a29k-udi.mt: Obsolete.
11350 * config/a29k/a29k.mt: Obsolete.
11351 * config/a29k/tm-a29k.h: Obsolete.
11352 * config/a29k/tm-vx29k.h: Obsolete.
11353 * config/a29k/vx29k.mt: Obsolete.
11354
a9011d31
AC
113552002-01-05 Andrew Cagney <ac131313@redhat.com>
11356
11357 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11358 with BFD_ENDIAN_BIG.
11359
9299404e
AC
113602002-01-05 Andrew Cagney <ac131313@redhat.com>
11361
11362 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11363 * configure, config.in: Re-generate.
11364 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11365 * defs.h: Do not include <endian.h>.
11366
7e89e357
JT
113672002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11368
11369 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11370 * config.in: Regenerate.
11371 * configure.in: Update copyright years.
11372 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11373 * configure: Regenerate.
11374 * i386bsd-nat.c: Update copyright years.
11375 (fill_gregset): Use regcache_collect.
11376 (fetch_inferior_registers): Only fetch integer registers
11377 if requested to do so. Add support for XMM registers
11378 using PT_GETXMMREGS.
11379 (store_inferior_registers): Only store integer registers
11380 if requested to do so. Add support for XMM registers
11381 using PT_SETXMMREGS.
11382 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11383 (store_inferior_registers): Remove.
11384 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11385 (fetch_elfcore_registers): New function.
11386 (i386nbsd_elfcore_fns): New.
11387 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11388 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11389 i386bsd-nat.o.
11390 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11391 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11392 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11393 * config/i386/tm-nbsd.h: Update copyright years.
11394 (HAVE_SSE_REGS): Define.
11395 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11396 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11397 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11398 (SIGCONTEXT_PC_OFFSET): Remove.
11399 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11400
a752853e
AC
114012002-01-05 Andrew Cagney <ac131313@redhat.com>
11402
11403 * configure.tgt: Remove powerpc-*-macos* target.
11404 * config/m68k/xm-mpw.h: Delete file.
11405 * config/xm-mpw.h: Delete file.
11406 * ser-mac.c: Delete file.
11407 * mpw-make.sed: Delete file.
11408 * mpw-config.in: Delete file.
11409 * mac-xdep.c: Delete file.
11410 * mac-gdb.r: Delete file.
11411 * mac-defs.h: Delete file.
11412 * mac-nat.c: Delete file.
11413 * config/powerpc/macos.mh: Delete file.
11414 * config/powerpc/macos.mt: Delete file.
11415 * config/powerpc/nm-macos.h: Delete file.
11416 * config/powerpc/tm-macos.h: Delete file.
11417 * source.c (openp, open_source_file): Remove obsolete code.
11418 * top.c (gdb_readline): Ditto.
11419 * utils.c (query): Ditto.
11420 * event-top.c (display_gdb_prompt): Ditto.
11421 * Makefile.in (ser-mac.o): Delete obsolete target.
11422 * NEWS: Update.
11423
d7449b42
AC
114242002-01-04 Andrew Cagney <ac131313@redhat.com>
11425
11426 * defs.h (BIG_ENDIAN): Delete macro definition.
11427 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11428 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11429 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11430 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11431 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11432 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11433 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11434 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11435 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11436 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11437 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11438 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11439 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11440 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11441 * gdbarch.c: Re-generate.
11442
356374e8
DJ
114432002-01-04 Daniel Jacobowitz <drow@mvista.com>
11444
11445 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11446 for core files.
11447
a2b8f8f8
JT
114482002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11449
11450 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11451
12466af9
AC
114522002-01-04 Andrew Cagney <ac131313@redhat.com>
11453
11454 * value.h (value_ptr): Delete typedef.
11455
3549ab40
JT
114562002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11457
11458 * i386nbsd-nat.c: Update copyright years.
11459 Include i386-tdep.h.
11460
fedbd091
EZ
114612002-01-04 Elena Zannoni <ezannoni@redhat.com>
11462
11463 * stabsread.c: Update copyright years.
11464
11465 From Debashis Mahata <debashis.mahata@wipro.com>:
11466 (read_struct_fields): Deal with Sun C compiler erroneous stab
11467 output for structs and unions.
fec8b34f 11468 Fix PR gdb/269.
fedbd091 11469
eb43544b
DJ
114702002-01-04 Daniel Jacobowitz <drow@mvista.com>
11471
11472 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11473 prototype.
11474
1514d34e
DJ
114752002-01-04 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * cp-abi.c: Fix whitespace.
11478 (baseclass_offset): New wrapper function.
11479 * cp-abi.h (baseclass_offset): Add prototype.
11480 (struct cp_abi_ops): Add baseclass_offset pointer.
11481
11482 * valops.c (vb_match): Move to...
11483 * gnu-v2-abi.c (vb_match): here.
11484 * valops.c (baseclass_offset): Move to...
11485 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11486
11487 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11488
11489 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11490 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11491 * hpacc-abi.c (init_hpacc_ops): Likewise.
11492
7f8c9282
DJ
114932002-01-04 Daniel Jacobowitz <drow@mvista.com>
11494
11495 * valops.c (find_overload_match): Accept obj as a
11496 reference parameter. Update it before returning.
11497 * value.h (find_overload_match): Update prototype.
11498 * eval.c (evaluate_subexp_standard): Pass object to
11499 find_overload_match by reference.
11500
f23631e4
AC
115012002-01-03 Andrew Cagney <ac131313@redhat.com>
11502
11503 * valarith.c: Replace value_ptr with struct value pointer. Remove
11504 register attribute from value declarations.
11505 * valops.c: Ditto.
11506 * value.h: Ditto.
11507 * scm-lang.c (scm_lookup_name): Ditto.
11508
79e10fab 115092002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11510
79e10fab
AC
11511 Abstract the functionality of iterating over mapped memory
11512 regions into a general purpose iterator function.
abf22e64 11513 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11514 iterator for memory sections.
11515 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11516 (solib_mappings_callback): New function, callback for above.
11517 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11518 (info_mappings_callback): New function, callback for above.
11519
11520 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11521
c5ad026a
MK
115222002-01-01 Mark Kettenis <kettenis@gnu.org>
11523
d2a7c97a
MK
11524 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11525 * i386-tdep.c: Include "elf-bfd.h".
11526 (process_note_abi_tag_sections): New function.
11527 (i386_gdbarch_init): Add code to recognize various OS/ABI
11528 combinations.
11529
c5ad026a
MK
11530 * maint.c (_initialize_maint_cmds): Add missing \ in
11531 string-literal.
11532
a1a5b71e 11533For older changes see ChangeLog-2001
c906108c
SS
11534\f
11535Local Variables:
11536mode: change-log
11537left-margin: 8
11538fill-column: 74
11539version-control: never
11540End:
This page took 1.000362 seconds and 4 git commands to generate.