bfd/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43b2fdc7
DC
12002-09-27 David Carlton <carlton@math.stanford.edu>
2
3 * config/djgpp/fnchange.lst: Add entries for
4 gdb/testsuite/gdb.c++/m-static files.
5
e8cfbbd9
JW
62002-09-27 Jim Wilson <wilson@redhat.com>
7
8 * MAINTAINERS: Add myself to the Write After Approval list.
9
43b2fdc7 102002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
11
12 * mips-tdep.c (find_proc_desc): Initialize startaddr.
13
14
9f3b7f07
AC
152002-09-26 Andrew Cagney <ac131313@redhat.com>
16
17 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
18 frame.
19
11269d7e
AC
202002-09-26 Andrew Cagney <ac131313@redhat.com>
21
22 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
23 (rs6000_struct_return_address): Delete variable.
24 (rs6000_store_struct_return): Update.
25 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
26 deprecated_extract_struct_value_address.
27 (rs6000_frame_align): New function.
28 (rs6000_gdbarch_init): Set frame_align.
29
f15ab4a7
AC
302002-09-26 Andrew Cagney <ac131313@redhat.com>
31
32 From Grace Sainsbury <graces@redhat.com>:
33 * Makefile.in (gdbtk-main.o): New target.
34 (gdb.o): New target.
35 (main_h): Define.
36 (main.o): Update dependencies.
37 (gdb$(EXEEXT)): Add gdb.o.
38 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
39 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
40 (SUBDIR_GDBTK_CLEAN): Set.
41 (install-gdbtk): Install the insight binary.
42 (uninstall-gdbtk): New target.
43 (all-gdbtk, clean-gdbtk): New rule.
44 * top.c (use_windows): Default to zero.
45 * main.c: Include "main.h".
46 (main): Delete.
47 (struct captured_main_args): Delete.
48 (gdb_main): New function.
49 * main.h: New file.
50 * gdb.c: New File.
51
e36180d7
AC
522002-09-25 Andrew Cagney <cagney@redhat.com>
53
54 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
55 (frame_map_regnum_to_name): New function.
56 (frame_map_name_to_regnum): New function.
57 * frame.h (frame_map_name_to_regnum): Declare.
58 (frame_map_regnum_to_name): Declare.
59 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
60 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
61 * parse.c: Do not include "builtin-regs.h".
62 (target_map_name_to_register): Delete function.
63 (write_dollar_variable): Use frame_map_name_to_regnum.
64 * parser-defs.h (target_map_name_to_register): Delete declaration.
65 * expprint.c: Include "frame.h".
66 (print_subexp): Use frame_map_regnum_to_name.
67 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
68 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
69
8b69000d
AC
702002-09-25 Andrew Cagney <ac131313@redhat.com>
71
72 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
73 wasn't saved, and the next innermost frame is a dummy, return the
74 dummy frame's link register.
75
046ca86a
JB
762002-09-24 Jim Blandy <jimb@redhat.com>
77
78 Fix from Paul Breed:
79 * main.c (captured_main): Add a `break' after the case for 'b'.
80
94b66fa7
KS
812002-09-24 Keith Seitz <keiths@redhat.com>
82
83 * varobj.c (c_type_of_child): Use get_target_type instead
84 of TYPE_TARGET_TYPE.
85
c214a6fd
FN
862002-09-22 Fernando Nasser <fnasser@redhat.com>
87
53cb0458
FN
88 * source.c (get_current_or_default_source_symtab_and_line): Remove
89 function.
90 (set_default_source_symtab_and_line): New function. Attempts to
91 determine a source file to list lines from if one is not currently
92 defined.
93 (get_current_source_symtab_and_line): Initialize sal.pc and
94 sal.end fields.
95 (set_current_source_symtab_and_line): Mark argument as const.
96 * source.h: Update declarations and comments.
97 * linespec.c (decode_line_1): Replace call to removed routine above.
98 * stack.c (print_frame_info_base): Ditto.
99 * cli/cli-cmds.c (edit_command): Ditto.
100 (list_command): Ditto.
101
1022002-09-22 Fernando Nasser <fnasser@redhat.com>
103
104 * source.c (get_current__or_default_source_symtab_and_line): Initialize
105 sal.pc and sal.end fields.
c214a6fd
FN
106 (get_current_or_default_source_symtab_and_line): Ditto.
107 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
108 so we do not cause a new source symtab to be searched for (reverting an
109 unintentional change from the 2002-09-20 patch).
110 * scm-lang.c (scm_unpac): Ditto.
111
cc3b68a5
AC
1122002-09-21 Andrew Cagney <cagney@redhat.com>
113
114 * complaints.c (symfile_explanations): Remove new-line from
115 ``isolated_message''.
116 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
117 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
118
5835abe7
NC
1192002-09-20 Nick Clifton <nickc@redhat.com>
120
121 * NEWS: Announce that V850EA ISA is no longer supported.
122 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
123
a15ef5f5
DC
1242002-09-20 David Carlton <carlton@math.stanford.edu>
125
06ba1b39
DC
126 * Makefile.in (c-lang.o): Correct dependencies.
127 (utils.o): Gather dependencies.
128 (charset.o): Move.
a15ef5f5
DC
129 * c-lang.c: #include "gdb_string.h"
130
87885426
FN
1312002-09-20 Fernando Nasser <fnasser@redhat.com>
132
133 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
134 * cli/cli-cmds.c (list_command): New function. Implements the new
135 cli edit command.
136 (_init_cli_cmds): Add new command definition.
137 * gdb.1: Document edit command.
138 * doc/gdb.texinfo: Document edit command.
139
1402002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
141
142 * source.c: Make global variables current_source_symtab and
143 current_source_line static.
144 (list_command): Moved to cli/cli-cmds.c.
145 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
146 (get_first_line_listed): New accessor function.
147 (get_lines_to_list): New accessor function.
148 (get_current_source_symtab_and_line): New function. Retrieves the
149 position in the source code that we consider current.
150 (get_current_or_default_source_symtab_and_line): New function.
151 Like the above but attempts to determine a default position if one
152 is not currently defined.
153 (set_current_source_symtab_and_line): New function. Sets the source
154 code position considered current and returns the previously set one.
155 (clear_current_source_symtab_and_line): Reset stored information about
156 a current source line.
157 (_initialize_source): Remove registration for the "list" command and
158 its alias.
159 * source.h: Add declarations for the new functions above.
160 * symtab.h: Remove declarations for the global variables mentioned
161 above.
162 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
163 obtain current source line.
164 * linespec.c (decode_line_1): Ditto.
165 * macroscope.c (default_macro_scope): Ditto.
166 * scm-lang.c (scm_unpac): Ditto.
167 * stack.c (print_frame_info_base): Ditto.
168 * symfile.c (clear_symtab_users): Ditto.
169 * symtab.c (decode_line_spec): Ditto.
170 * cli/cli-cmds.c (list_command): Moved here from source.c.
171 (ambiguous_line_spec): Moved here from source.c.
172 (_init_cli_cmds): Add definition for "list" and its alias.
173 * Makefile.in: Update dependencies.
174
ddd216ea
CV
1752002-09-20 Corinna Vinschen <vinschen@redhat.com>
176
177 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
178 with what gcc thinks is correct.
179
6d305052
CV
1802002-09-20 Corinna Vinschen <vinschen@redhat.com>
181
182 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
183 multiple register push instruction.
184
234b45d4
KB
1852002-09-19 Jim Blandy <jimb@redhat.com>
186
187 Add support for distinct host and target character sets.
188 * charset.c, charset.h: New files.
189 * c-exp.y: #include "charset.h".
190 (yylex): Convert character and string literals to the target
191 character set, before returning them as the semantic value of the
192 token.
193 * c-lang.c: #include "charset.h".
194 (c_emit_char): Use charset-specific methods to recognize
195 characters with backslash escape forms, to decide which characters
196 to print literally and which to print using numeric escape
197 sequences, and to convert target characters to host characters
198 before printing.
199 * utils.c: #include "charset.h".
200 (no_control_char_error): New function.
201 (parse_escape): Use charset-specific methods to recognize
202 backslash escapes, parse `control character' notation, and convert
203 characters from the host character set to the target character set.
204 * configure.in: Set the default host character set.
205 Check where to find iconv, and what its argument types might be.
206 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
207 * Makefile.in (SFILES): List charset.c.
208 (COMMON_OBS): List charset.o.
209 (charset.o): New rule.
210 (charset_h): New header dependency variable.
211 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
212 (LIBICONV): New variable, set by configure.
213 (CLIBS): Include $(LIBICONV) here.
214 * aclocal.m4, config.in, configure: Regenerated.
215
525d6a61
JB
2162002-09-19 Joel Brobecker <brobecker@gnat.com>
217
218 * ada-exp.y: Add missing semicolons to end rules. Fixes a
219 bison 1.35 warning.
220
3ed93867
RE
2212002-09-19 Richard Earnshaw <rearnsha@arm.com>
222
223 * gdb_mbuild.sh: New file.
224
437666f8
AC
2252002-09-19 Andrew Cagney <ac131313@redhat.com>
226
227 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
228
389e51db
AC
2292002-09-18 Andrew Cagney <ac131313@redhat.com>
230
231 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
232 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
233 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
234 valops.c, value.h: Revert previous change.
235
3b4efeaa
MS
2362002-09-18 Michael Snyder <msnyder@redhat.com>
237
238 Preliminary support for Objective-C:
239 * defs.h (language_objc): New enum value.
240 (puts_filtered_tabular): Declaration only, exported from utils.c.
241 (skip_quoted): Delete, declared in completer.h.
242 * c-exp.y: Include completer.h.
243 * p-exp.y: Ditto.
244 * jv-exp.y: Ditto.
245 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
246 New operator enum values.
247 * language.h (CAST_IS_CONVERSION): Test for language_objc.
248 * language.c (binop_result_type): Handle language_objc case.
249 (integral_type, character_type, string_type, boolean_type,
250 structured_type, binop_type_check): Ditto.
251 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
252 (struct objc_specific): Add to general_symbol_info.
253 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
254 (SYMBOL_DEMANGLED_NAME): Handle objc case.
255 * parser-defs.h (struct objc_class_str): New struct type.
256 (start_msglist, end_msglist, add_msglist): Declaration only,
257 exported from objc-lang.c.
258 * value.h (value_of_local, value_nsstring,
259 call_function_by_hand_expecting_type): Exported from valops.c.
260 * valops.c (find_function_addr): Export.
261 (call_function_by_hand_expecting_type): New function.
262 (value_of_local): New function.
263 * symfile.c (init_filename_language_table): Add ".m" extension
264 for Objective-C.
265 * utils.c (puts_filtered_tabular): New function.
266 (fprintf_symbol_filtered): Add objc demangling support (disabled).
267 (set/show demangle): Extend help-string to refer to ObjC.
268 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
269 * stabsread.c (symbol_reference_defined): Objective-C symbols
270 may contain colons: make allowances when scanning stabs strings
271 for colons.
272 (objc_find_colon): New function.
273 * printcmd.c (address_info): If language == objc then print
274 "self" instead of "this".
275 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
276 OP_NSSTRING, and OP_SELF.
277 (prefixify_subexp): Ditto.
278 * source.c (print_source_lines): Mention objc in comment.
279 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
280 method names.
281
b9caf505
AC
2822002-09-18 Andrew Cagney <ac131313@redhat.com>
283
284 * complaints.h: Update copyright.
285 (struct complaints): Declare.
286 (struct complaint): Make `message' constant.
287 (internal_complaint): Declare.
288 (complaint): Declare.
289 (complaint_root): Delete declaration.
290 (symfile_complaints): Delete declaration.
291 (struct complaints): Add opaque declaration.
292 (clear_complaints): Add a complaints parameter.
293 * complaints.c: Update copyright.
294 (enum complaint_series): Define.
295 (complaint_root): Delete.
296 (struct complaints): Define.
297 (complaint_sentinel, symfile_complaint_book): New variables.
298 (symfile_explanations, symfile_complaints): New variables.
299 New variables.
300 (get_complaints): New function.
301 (vcomplaint): New function.
302 (complaint): New function.
303 (internal_complaint): New function.
304 (complain): Call vcomplain with symfile_complaint.
305 (clear_complaints): Rewrite.
306 (_initialize_complaints): Use add_setshow_command.
307 * Makefile.in (complaints.o): Update dependencies.
308 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
309 to call to clear_complaints.
310 (new_symfile_objfile, reread_symbols): Ditto.
311 (oldsyms_complaint): Delete.
312 (empty_symtab_complaint, unknown_option_complaint): Delete.
313 (free_named_symtabs): Use complaint instead of complain.
314
d2e6263c
MS
3152002-09-18 Michael Snyder <msnyder@redhat.com>
316
5fb2031a
AC
317 Contributed by Apple Computer, Inc. Merged with current sources
318 by Adam Fedor <fedor@doc.com> [cagney].
319
d2e6263c
MS
320 * objc-lang.c: First clean-up round: comments, indentation.
321 * objc-lang.h: Ditto.
322 * objc-lang.y: Ditto.
323
dec43320
AC
3242002-09-18 Andrew Cagney <ac131313@redhat.com>
325
326 * maint.c (maintenance_internal_error): Print the parameter as the
327 error message.
328 (maintenance_internal_warning): New function.
329 (_initialize_maint_cmds): Add command `maint internal-warning'.
330
331 * defs.h (internal_warning, internal_vwarning): Declare.
332 * utils.c (struct internal_problem): Define.
333 (internal_vproblem): New function.
334 (internal_warning): New function.
335 (internal_vwarning): New function.
336 (internal_warning_problem, internal_error_problem): New variables.
337 (internal_verror): Just call internal_vproblem.
338
b81654f1
MS
3392002-09-18 Michael Snyder <msnyder@redhat.com>
340
341 * objc-lang.c: New file, support for Objective-C.
342 Preliminary check-in, not yet integrated into gdb.
343 * objc-lang.h: New file.
344 * objc-exp.y: New file.
345
0542c381
AC
3462002-09-18 Andrew Cagney <ac131313@redhat.com>
347
7bda5e4a
AC
348 * infrun.c (signal_stop_update): Convert definition to ISO C.
349 (signal_print_update): Ditto.
350 (signal_pass_update): Ditto.
351 * inflow.c (terminal_save_ours): Ditto.
352
5247b418
AC
353 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
354 comments.
355
fc60962c
AC
356 * config/djgpp/fnchange.lst: Handle name clashes between
357 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
358 bfd/coff-tic80.c.
359
0542c381
AC
360 * i386-linux-tdep.h: Fix tipo.
361
5b924b9b
AF
3622002-09-18 Adam Fedor <fedor@gnu.org>
363
364 * MAINTAINERS: Add myself to the Write After Approval list.
365
5afc051b
JB
3662002-09-18 Jim Blandy <jimb@redhat.com>
367
368 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
369 texthigh and textlow to reader-specific structs caused
370 objfile_relocate to miss them. This is fixable, but the work that
371 the change was supposed to prepare GDB for never got done anyway.
372
eb944380
DC
3732002-09-18 David Carlton <carlton@math.stanford.edu>
374
375 * MAINTAINERS: Alphabetize Write After Approval list.
376
948e66d9
DJ
3772002-09-18 Daniel Jacobowitz <drow@mvista.com>
378
379 Fix PR gdb/709
380 * values.c (value_static_field): Call read_var_value.
381
dc604539
AC
3822002-09-18 Andrew Cagney <ac131313@redhat.com>
383
384 * valops.c (hand_function_call): Align the initial stack pointer
385 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
386 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
387 return value.
388 * mips-tdep.c (mips_frame_align): New function.
389 (mips_gdbarch_init): Set frame_align.
390 * gdbarch.sh (FRAME_ALIGN): New method.
391 * gdbarch.h, gdbarch.c: Re-generate.
392
cb7e422f
ML
3932002-09-18 Michal Ludvig <mludvig@suse.cz>
394
395 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
396 registers.
397
a094c6fb
AC
3982002-09-17 Andrew Cagney <ac131313@redhat.com>
399
400 * NEWS: Mention that MIPS $fp behavior changed.
401 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
402 reference to FP_REGNUM.
403 (mipsnbsd_cannot_store_register): Ditto.
404 * mips-linux-nat.c: Update copyright.
405 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
406 (mips_linux_cannot_store_register): Ditto.
407 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
408 * config/mips/tm-mips.h: Update copyright.
409 (FP_REGNUM): Delete macro.
410 (MIPS_REGISTER_NAMES): Replace "fp" with "".
411 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
412 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
413 (mips_r3041_reg_names, mips_r3051_reg_names)
414 (mips_r3081_reg_names): Replace "fp" with "".
415 Fix PR gdb/480.
416
45cf40d1
TR
4172002-09-17 Theodore A. Roth <troth@verinet.com>
418
419 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
420 generic_read_register_dummy() (PR gdb/703).
421 (avr_push_return_address): #if 0 out unused vars.
422 (avr_gdbarch_init): Enable use of avr_push_return_address().
423
c7e701b5
MS
4242002-09-17 Michael Snyder <msnyder@redhat.com>
425
d76ba2a5 426 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
427 RTE will take care of it.
428
20bcf01c
AC
4292002-09-17 Andrew Cagney <ac131313@redhat.com>
430
431 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
432 invalid, return SP_REGNUM.
433
009a9971 4342002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
435
436 * mips-tdep.c (mips_pop_frame): Read saved values of floating
437 point registers without sign extension.
438
135c175f
AC
4392002-09-17 Andrew Cagney <cagney@redhat.com>
440
441 * blockframe.c (deprecated_read_register_dummy): Rename
442 generic_read_register_dummy.
443 * frame.c (frame_unwind_signed_register): New function.
444 (frame_unwind_unsigned_register): New function.
445 * frame.h (frame_unwind_signed_register): Declare.
446 (frame_unwind_unsigned_register): Declare.
447 (deprecated_read_register_dummy): Rename
448 generic_read_register_dummy.
449
450 * h8300-tdep.c (h8300_frame_chain): Update.
451 (h8300_frame_saved_pc): Update.
452 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
453 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
454 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
455 (s390_frame_chain): Update.
456 * v850-tdep.c (v850_find_callers_reg): Update.
457 (v850_frame_saved_pc): Update.
458 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
459 (m32r_find_callers_reg): Update.
460 (m32r_frame_saved_pc): Update.
461 * sh-tdep.c (sh_find_callers_reg): Update.
462 (sh64_get_saved_pr): Update.
463 (sh_init_extra_frame_info): Update.
464 (sh_init_extra_frame_info): Update.
465 (sh64_init_extra_frame_info): Update.
466 (sh64_init_extra_frame_info): Update.
467 * mcore-tdep.c (mcore_find_callers_reg): Update.
468 (mcore_frame_saved_pc): Update.
469 (mcore_init_extra_frame_info): Update.
470 * i386-tdep.c (i386_frame_saved_pc): Update.
471 * ia64-tdep.c (ia64_frame_saved_pc): Update.
472 (ia64_init_extra_frame_info): Update.
473 (ia64_init_extra_frame_info): Update.
474 * d10v-tdep.c (d10v_frame_saved_pc): Update.
475 * cris-tdep.c (cris_init_extra_frame_info): Update.
476 * avr-tdep.c (avr_frame_chain): Update.
477 (avr_init_extra_frame_info): Update.
478 (avr_frame_saved_pc): Update.
479 * arm-tdep.c (arm_find_callers_reg): Update.
480 (arm_init_extra_frame_info): Update.
481 (arm_frame_saved_pc): Update.
482
a741e514
TT
4832002-09-17 Tom Tromey <tromey@redhat.com>
484
485 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
486 is "'".
487
d1a8e808
CV
4882002-09-17 Corinna Vinschen <vinschen@redhat.com>
489
490 * MAINTAINERS: Remove "non multi-arched" text from h8300.
491 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
492 NEXT_PROLOGUE_INSN.
493 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
494 NEXT_PROLOGUE_INSN.
495
d9025a18
JB
4962002-09-16 Joel Brobecker <brobecker@gnat.com>
497
498 * osfsolib.c: Remove file, replaced by solib-osf.c.
499 * Makefile.in: Remove compilation rules for osfsolib.c.
500
1b2ef1b6
DC
5012002-09-16 David Carlton <carlton@math.stanford.edu>
502
503 * cp-valprint.c (cp_print_class_method): Correct args to
504 check_stub_method_group.
505
928e48af
CV
5062002-09-16 Corinna Vinschen <vinschen@redhat.com>
507
508 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
509 `set architecture'. Unify naming convention of functions.
510 (h8300_skip_prologue): Improve prologue analysis.
511 (h8300_push_arguments): Rewritten to more closely match GCC's
512 bizarre argument-passing behavior, along with the comment describing
513 said behavior.
514 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
515 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
516 sim, remote-e7000.c, remote-hms.c and remote.c
517
5e3397bb
MK
5182002-09-15 Mark Kettenis <kettenis@gnu.org>
519
520 * i386-tdep.c (gdb_print_insn_i386): Removed.
521 (i386_print_insn): New function.
522 (i386_gdbarch_init): Set print_insn to i386_print_insns.
523 (_initialize_i386_tdep): Don't initialize tm_print_insn and
524 tm_print_insn_info.
525
f710f4fc
MK
5262002-09-14 Mark Kettenis <kettenis@gnu.org>
527
528 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
529 zero.
530
db54fef4
CV
5312002-09-14 Corinna Vinschen <vinschen@redhat.com>
532
533 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
534 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
535 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
536
2becadee
CF
5372002-09-13 Christopher Faylor <cgf@redhat.com>
538
539 * win32-nat.c (child_create_inferior): Honor 'tty' command.
540
de17c821
DJ
5412002-09-13 Daniel Jacobowitz <drow@mvista.com>
542
543 * gdbtypes.c (check_stub_method): Make static.
544 (check_stub_method_group): New function.
545 * gdbtypes.h: Update prototypes.
546 * cp-support.c: New file.
547 * cp-support.h: New file.
548
549 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
550 (update_method_name_from_physname): New function.
551 (read_member_functions): Correct method names for operators
552 and v3 constructors/destructors. Separate v2 constructors and
553 destructors.
554 * Makefile.in (stabsread.o): Update dependencies.
555 (SFILES): Add cp-support.c.
556 (COMMON_OBS): Add cp-support.o.
557 (cp_support_h, cp-support.o): Add.
558
559 * cp-valprint.c (cp_print_class_method): Call
560 check_stub_method_group instead of check_stub_method. Remove
561 extraneous QUITs.
562 * p-valprint.c (pascal_object_print_class_method): Likewise.
563 * valops.c (search_struct_method): Likewise.
564 (find_method_list, value_struct_elt_for_reference): Likewise.
565
e76cff22
AC
5662002-09-13 Andrew Cagney <cagney@redhat.com>
567
568 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
569 * gdbarch.h, gdbarch.c: Regenerate.
570
905abb3f
AC
5712002-09-13 Andrew Cagney <ac131313@redhat.com>
572
573 * frame.c (find_saved_register): Delete function.
574 * frame.h (find_saved_register): Delete declaration.
575 Fix PR gdb/631.
576
64159455
AC
577Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
578
579 * mips-tdep.c (read_next_frame_reg): Re-hack using
580 frame_register_unwind.
581
795e1e11
AC
582Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
583
584 * mips-tdep.c (mips_get_saved_register): Re-hack using
585 frame_register_unwind.
586
5720643c
JB
5872002-09-12 Joel Brobecker <brobecker@gnat.com>
588
589 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
590 vector. Will be useful for Interix.
591 * gdbarch.h, gdbarch.c: Regenerate.
592
593 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
594 name of the malloc function by NAME_OF_MALLOC.
595
3bada2a2
JB
5962002-09-12 Joel Brobecker <brobecker@gnat.com>
597
598 * value.h (find_function_in_inferior): Add const keyword to
599 one of the parameters. Allows us to invoke this function with
600 a const char *.
601 * valops.c (find_function_in_inferior): Likewise.
602
3db26b01
JB
6032002-09-12 Joel Brobecker <brobecker@gnat.com>
604
605 * exec.c (xfer_memory): Fix compilation warning with old versions
606 of GCC.
607 * tracepoint.c (trace_find_tracepoint_command): Likewise.
608
17c5ed2c
DC
6092002-09-12 David Carlton <carlton@math.stanford.edu>
610
611 * symtab.h: Run through gdb_indent.h.
612 Add 2002 to Copyright year list.
613
ecd1107e
AM
6142002-09-12 Alan Modra <amodra@bigpond.net.au>
615
616 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
617 mach constants.
618 * MAINTAINERS: Add myself to write after approval list.
619
e64f66d1
JB
6202002-09-11 J. Brobecker <brobecker@gnat.com>
621
622 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
623
f9395794
JB
6242002-09-11 J. Brobecker <brobecker@gnat.com>
625
626 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
627 Interix.
628
1a303dec
MS
6292002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
630
631 * procfs.c (do_detach): Clear current signal, not just fault.
632 Corrects problem with breakpoint trap signal leaking to detached
633 process on Tru64.
634
c0219d42
MS
6352002-09-10 Michael Snyder <msnyder@redhat.com>
636
637 * buildsym.c (finish_block): Protect against null pointer.
638
9d84ac84
AC
6392002-09-10 Andrew Cagney <cagney@redhat.com>
640
641 * infcmd.c (default_print_registers_info): Send all output to
642 ``file'' instead of ``gdb_stdout''.
643
77d8f2b4
MS
6442002-09-10 Michael Snyder <msnyder@redhat.com>
645
646 * mips-tdep.c (mips_extract_struct_value_address): Make val a
647 LONGEST, and use signed register read (addresses are sign-
648 extended for mips).
649
99656a61
SC
6502002-09-10 Stephane Carrez <stcarrez@nerim.fr>
651
652 * event-loop.c (gdb_do_one_event): Make public.
653 * event-loop.h (gdb_do_one_event): Declare.
654
da12f4d8
JL
6552002-09-10 Jeff Law <law@redhat.com>
656
657 * infttrace.c (child_resume): Simplify and rework to avoid
658 TT_PROC_CONTINUE.
659
d0aee0c4
FF
6602002-09-09 Fred Fish <fnf@intrinsity.com>
661
662 * printcmd.c (print_scalar_formatted): "len" is the number of
663 target bytes, NOT the number of target bits.
664
7cb3ec5e
EZ
6652002-09-09 Elena Zannoni <ezannoni@redhat.com>
666
667 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
668 * top.c (init_main): Set rl_terminal_name.
669
4dc81987
AS
6702002-09-08 Aidan Skinner <aidan@velvet.net>
671
672 * ada-lang.c (ada_array_bound, ada_type_match,
673 _initialize_ada_language): Fix K&R definitions.
674 * ada-tasks.c (get_current_task): Fix K&R definitions.
675 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
676
842330b4
CF
6772002-09-07 Christopher Faylor <cgf@redhat.com>
678
679 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
680 Add XP.
681
43156d82
MK
6822002-09-06 Mark Kettenis <kettenis@gnu.org>
683
66da5fd8
MK
684 * i386-tdep.c (i386_register_virtual_type,
685 i386_register_convertible, i386_register_convert_to_virtual,
686 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
687 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
688 (i386_gdbarch_init): Fix comment. Add comments on calls that set
689 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
690 Don't set push_arguments twice.
691
4b218c18
MK
692 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
693 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
694 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
695 sigtramp_end to NULL.
696 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
697 defines.
698 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
699
4cc314d5
MK
700 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
701 whitespace.
702
43156d82
MK
703 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
704 * gdbarch.h, gdbarch.c: Re-generate.
705 * blockframe.c (find_pc_sect_partial_function): Convert to use
706 SIGTRAMP_START_P predicate.
707
6672060b
MS
7082002-09-05 Michael Snyder <msnyder@redhat.com>
709
a90c3637
MS
710 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
711 generic_dummy_frame method and old method. Also distinguish
712 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 713 (arm_extract_return_value): Use new regcache method.
a90c3637 714
6672060b
MS
715 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
716 adjustment that doesn't conform to the ABI.
717 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
718 saved regcache, not from current regcache.
719
299ffc64
AC
7202002-09-05 Andrew Cagney <ac131313@redhat.com>
721
722 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
723 * README: Update.
724
a3a2ee65
JT
7252002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
726
727 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
728 if arm_apcs_32 is false.
729
2bc7eea9
AC
7302002-09-04 Andrew Cagney <ac131313@redhat.com>
731
732 GDB 5.3 branch created.
733
8a55a7c5
TR
7342002-09-03 Theodore A. Roth <troth@verinet.com>
735
736 * gdb/avr-tdep.c (avr_gdbarch_init): Use
737 generic_unwind_get_saved_register.
738
e26fb1d7
DC
7392002-09-03 David Carlton <carlton@math.stanford.edu>
740
741 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
742 argument (PR gdb/653). Update call to smash_to_method_type.
743 (read_structure_scope): Update call to dwarf2_add_member_fn.
744
30d52491
ML
7452002-09-03 Michal Ludvig <mludvig@suse.cz>
746
747 * x86-64-linux-tdep.c: Include gdb_string.h
748 * x86-64-linux-nat.c: Ditto.
749
06891d83
JT
7502002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
751
752 * ada-exp.y (yyname, yyrule): Remap global variables that appear
753 when YYDEBUG is set to 1.
754 * c-exp.y: Likewise.
755 * f-exp.y: Likewise.
756 * jv-exp.y: Likewise.
757 * m2-exp.y: Likewise.
758 * p-exp.y: Likewise.
759
7d400e77
JT
7602002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
761
762 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
763 dependency list.
764 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
765 solib_svr4_fetch_link_map_offsets to
766 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
767 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
768 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
769 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
770 solib-svr4.o, and solib-legacy.o.
771 * config/i386/tm-nbsd.h: Include solib.h.
772
704a27c4
JT
7732002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
774
775 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
776 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
777 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
778 comment noting that this needs its own target configuration.
779 * config/i386/nbsd.mt: New file.
780 * config/i386/nbsdaout.mt: Remove.
781 * config/i386/nbsdelf.mt: Ditto.
782 * config/i386/tm-nbsdaout.h: Ditto.
783
d66198e1
JT
7842002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
785
786 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
787 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
788 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
789 tdep->sigtramp_end.
790 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
791 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
792 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
793
3cac699e
JT
7942002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
795
796 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
797 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
798 * i386-tdep.h (i386bsd_init_abi): New prototype.
799 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
800 function declaration.
801 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
802 for NetBSD-a.out or NetBSD-ELF.
803 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
804 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
805 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
806 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
807 and nbsd-tdep.h.
808 (i386nbsd_pc_in_sigtramp): New function.
809 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
810 i386nbsd_pc_in_sigtramp.
811 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
812 and i386nbsdelf_init_abi OS ABI handlers.
813 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
814 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
815
7010ca0a
MK
8162002-09-02 Mark Kettenis <kettenis@gnu.org>
817
818 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
819 registers if the target really has them.
820
6dd93b72
JT
8212002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
822
823 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
824 than nbsd-tdep.h.
825
2ca8ae21
JT
8262002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
827
828 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
829 list.
830 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
831 (alphanbsd_skip_sigtramp_frame): New functions.
832 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
833 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
834 to alphanbsd_sigcontext_addr.
835
3d9b49b0
JT
8362002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
837
838 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
839 list.
840 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
841 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
842 nbsd_pc_in_sigtramp.
843 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
844 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
845 * nbsd-tdep.c: Include gdb_string.h.
846 (nbsd_pc_in_sigtramp): New function.
847 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
848 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
849 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
850 ppcnbsd_pc_in_sigtramp.
851 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
852 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
853 shnbsd_pc_in_sigtramp.
854 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
855 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
856 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
857
c860120c
PM
8582002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
859
860 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
861 watchpoints to NULL.
862 (insert_breakpoints): set val field of watchpoints if NULL.
863
864
c7612d53
JB
8652002-08-29 Jim Blandy <jimb@redhat.com>
866
867 * symtab.c (lookup_symbol_aux): In the cases where we find a
868 minimal symbol of an appropriate name and use its address to
869 select a symtab to read and search, use `name' (as passed to us)
870 as the demangled name when searching the symtab's global and
871 static blocks, not the minsym's name.
872
66609862
KS
8732002-08-29 Keith Seitz <keiths@redhat.com>
874
875 * stack.c (print_frame_info_base): Always set current_source_symtab
876 and current_source_line.
877
151fefe2
JB
8782002-08-29 Donn Terry <donnte@microsoft.com>
879
880 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
881
bfb3754e
KS
8822002-08-28 Keith Seitz <keiths@redhat.com>
883
884 * stack.c (select_frame): Add FIXME concerning selected-frame
885 events.
886 (select_frame_command): Send selected-frame-level-changed
887 event notification, but only if the level actually changed.
888 (up_silently_base): Add selected-frame-level-changed event
889 notification.
890 (down_silently_base): Likewise.
891
e822a2a0
AC
8922002-08-28 Andrew Cagney <ac131313@redhat.com>
893
894 * Makefile.in: Update dependencies for all gdb/*.c files.
895
309367d4
TT
8962002-08-27 Tom Tromey <tromey@redhat.com>
897
898 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
899 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
900 Update dependencies.
901 * i387-tdep.c: Include gdb_string.h.
902 * osabi.c: Likewise.
903 * i386-linux-nat.c: Likewise.
904 * lin-lwp.c: Likewise.
905 * ax-gdb.c: Likewise.
906 * signals/signals.c: Likewise.
907 * jv-valprint.c: Likewise.
908 * p-lang.c: Likewise.
909 * c-valprint.c: Likewise.
910 * cp-abi.c: Likewise.
911
e1507482
EZ
9122002-08-27 Elena Zannoni <ezannoni@redhat.com>
913
914 * cli/cli-script.h (copy_command_lines): Export.
915 * breakpoint.c: Include cli/cli-script.h.
916 * Makefile.in (breakpoint.o): Update dependencies.
917
c6510018
MS
9182002-08-26 Michael Snyder <msnyder@redhat.com>
919
920 * breakpoint.c (insert_breakpoints): Protect all references
921 to 'process_warning'. Shorten long lines.
922
c2b8ed2c
MS
9232002-08-26 Joel Brobecker <brobecker@gnat.com>
924
925 * cli/cli-script.c (copy_command_lines): New function.
926 * defs.h (copy_command_lines): Export.
927 * testsuite/gdb.base/commands.exp: New tests for commands
928 attached to a temporary breakpoint, and for commands that
929 delete the breakpoint they are attached to.
930
9312002-08-26 Michael Snyder <msnyder@redhat.com>
932
933 * breakpoint.c (bpstat_stop_status): Instead of copying the
934 pointer to the breakpoint commands struct, make a new copy
935 of the struct and point to that.
936 (bpstat_clear): Free the commands struct.
937 (bpstat_clear_actions): Free the commands struct.
938 (bpstat_do_actions): Free the command actions. Also execute
939 the local cleanups, instead of deleting them.
940 (delete_breakpoint): Leave the commands field of the bpstat
941 chain alone -- it will be freed later.
942
64b84175
KB
9432002-08-26 Kevin Buettner <kevinb@redhat.com>
944
945 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
946 deleted in 2002-08-20 commit. This function is still used by
947 ppc-linux-nat.c.
948
55970da6
KS
9492002-08-26 Keith Seitz <keiths@redhat.com>
950
951 * gdb-events.sh: Add selected-frame-level-changed event.
952 * gdb-events.c: Regenerated.
953 * gdb-events.h: Regenerated.
954
a790ad35
SC
9552002-08-26 Stephane Carrez <stcarrez@nerim.fr>
956
957 Fix PR gdb/393:
958 * inflow.c (terminal_save_ours): New function to save terminal
959 settings.
960 * inferior.h (terminal_save_ours): Declare.
961 * target.c (debug_to_terminal_save_ours): New function.
962 (cleanup_target): Defaults to_terminal_save_ours.
963 (update_current_target): Inherit to_terminal_save_ours.
964 (setup_target_debug): Set to_terminal_save_ours.
965 * target.h (target_terminal_save_ours): New to save terminal settings.
966 (target_ops): New member to_terminal_save_ours.
967 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
968 * hpux-thread.c (init_hpux_thread_ops): Likewise.
969 * inftarg.c (init_child_ops): Likewise.
970 * m3-nat.c (init_m3_ops): Likewise.
971 * procfs.c (init_procfs_ops): Likewise.
972 * wince.c (init_child_ops): Likewise.
973 * win32-nat.c (init_child_ops): Likewise.
974 * sol-thread.c (init_sol_thread_ops): Likewise.
975
c00dcbe9
MK
9762002-08-26 Mark Kettenis <kettenis@gnu.org>
977
3d7f4f49
MK
978 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
979 use regcache_* functions.
980 (i386_gdbarch_init): Set store_return_value instead of
981 deprecated_store_return_value.
982
c00dcbe9
MK
983 * regcache.c (regcache_raw_write_signed,
984 regcache_raw_write_unsigned): New functions.
985 * regcache.h (regcache_raw_write_signed,
986 regcache_raw_write_unsigned): New prototypes.
987
0e0d15ca
AC
9882002-08-25 Andrew Cagney <ac131313@redhat.com>
989
990 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
991 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
992 source file dependencies. Cleanup corresponding generator rules.
993
d3b22ed5
AC
9942002-08-25 Andrew Cagney <ac131313@redhat.com>
995
996 * regcache.h (register_offset_hack): Declare.
997 (regcache_cooked_read_using_offset_hack): Declare.
998 (regcache_cooked_write_using_offset_hack): Declare.
999
1000 * regcache.c (register_offset_hack): New function.
1001 (regcache_cooked_read_using_offset_hack): New function.
1002 (regcache_cooked_write_using_offset_hack): New function.
1003 (regcache_dump): Check that the registers, according to their
1004 offset, are packed hard against each other.
1005 (cooked_xfer_using_offset_hack): New function.
1006
bb425013
AC
10072002-08-25 Andrew Cagney <ac131313@redhat.com>
1008
1009 * regcache.c (struct regcache_descr): Add field register_type.
1010 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1011 in as a parameter
1012 (init_regcache_descr): Initialize register_type. Pass the descr
1013 to init_legacy_regcache_descr. Use register_type instead of
1014 REGISTER_VIRTUAL_TYPE.
1015 (register_type): New function.
1016 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1017 * regcache.h (register_type): Declare.
1018
d0403e00
AC
10192002-08-25 Andrew Cagney <ac131313@redhat.com>
1020
1021 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1022 instead of deprecated_store_return_value. Fix fallout from
1023 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1024
0ed04cce
AC
10252002-08-25 Andrew Cagney <ac131313@redhat.com>
1026
1027 * regcache.c (max_register_size): New function.
1028 (init_legacy_regcache_descr): Ensure that max_register_size is
1029 large enough for REGISTER_VIRTUAL_SIZE.
1030 * regcache.h (max_register_size): Declare.
1031
46d79c04
AC
10322002-08-24 Andrew Cagney <ac131313@redhat.com>
1033
1034 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1035 store_return_value.
1036 (e500_extract_return_value): Change type of valbuf pointer to
1037 void.
1038
853c7bd0
MK
10392002-08-24 Mark Kettenis <kettenis@gnu.org>
1040
cd87e769
MK
1041 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1042 workaround.
1043
853c7bd0
MK
1044 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1045 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1046 long long) to prevent compiler warning on 64-bit systems.
1047
ebba8386
AC
10482002-08-23 Andrew Cagney <cagney@redhat.com>
1049
1050 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1051 (DEPRECATED_STORE_RETURN_VALUE): New method.
1052 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1053 * gdbarch.h, gdbarch.c: Re-generate.
1054
1055 * values.c (set_return_value): Pass current_regcache to
1056 STORE_RETURN_VALUE.
1057 * arch-utils.h (legacy_store_return_value): Declare.
1058 * arch-utils.c (legacy_store_return_value): New function.
1059 (legacy_extract_return_value): Update parameters.
1060
1061 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1062 STORE_RETURN_VALUE.
1063 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1064 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1065 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1066 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1067 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1068 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1069 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1070 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1071 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1072 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1073
1074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1075 * i386-tdep.c (i386_extract_return_value): Update.
1076 * arch-utils.c (legacy_extract_return_value): Update.
1077 * frv-tdep.c (frv_gdbarch_init): Update.
1078 * cris-tdep.c (cris_gdbarch_init): Update.
1079 * d10v-tdep.c (d10v_gdbarch_init): Update.
1080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1081 * m68k-tdep.c (m68k_gdbarch_init): Update.
1082 * mcore-tdep.c (mcore_gdbarch_init): Update.
1083 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1084 * s390-tdep.c (s390_gdbarch_init): Update.
1085 * sparc-tdep.c (sparc_gdbarch_init): Update.
1086 * sh-tdep.c (sh_gdbarch_init): Update.
1087 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1088 * v850-tdep.c (v850_gdbarch_init): Update.
1089 * avr-tdep.c (avr_gdbarch_init): Update.
1090 * ia64-tdep.c (ia64_gdbarch_init): Update.
1091 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1092 * vax-tdep.c (vax_gdbarch_init): Update.
1093 * alpha-tdep.c (alpha_gdbarch_init): Update.
1094 * arm-tdep.c (arm_gdbarch_init): Update.
1095 * mips-tdep.c (mips_gdbarch_init): Update.
1096 * i386-tdep.c (i386_gdbarch_init): Update.
1097
5bd8c6d0
AC
10982002-08-23 Andrew Cagney <ac131313@redhat.com>
1099
1100 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1101 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1102
e73e1724
MK
11032002-08-24 Mark Kettenis <kettenis@gnu.org>
1104
1105 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1106 problems.
1107
3e6564e1
JB
11082002-08-23 Joel Brobecker <brobecker@gnat.com>
1109
1110 * infrun.c (handle_inferior_event): Move a comment outside of a
1111 function call, in order to avoid indent reformatting this part
1112 of the code in an unreadable way.
1113
81d0cc19
GS
11142002-08-23 Grace Sainsbury <graces@redhat.com>
1115
1116 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1117 when breakpoints fail. Move general breakpoint error messages to
1118 insert_breakpoints.
1119 * breakpoint.c (insert_breakpoints): Change warnings when
1120 breakpoints are nto inserted to specify the type. Remove call to
1121 memory_error when hardware breakpoints can't be inserted. Remove
1122 multiple calls to warning so all messages are sent to the user at
1123 once.
1124 (delete_breakpoints): Make insert error messsages more explicit.
1125
17574093
DJ
11262002-08-23 Daniel Jacobowitz <drow@mvista.com>
1127
1128 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1129 gdbserver/ChangeLog.
1130
8acc2935
MK
11312002-08-23 Mark Kettenis <kettenis@gnu.org>
1132
dfe01d39
MK
1133 * i386-tdep.c: Include "objfiles.h".
1134 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1135 skip_trampoline_code.
1136 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1137 (CPLUS_MARKER): Define to '.'.
1138
8acc2935
MK
1139 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1140 member.
1141 (linux_corefile_thread_callback): Increase args->num_notes.
1142 (linux_make_note_section): Initialize thread_args.num_notes, and
1143 use it to determine whether notes for any threads were created.
1144
151fefe2 11452002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1146
1147 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1148 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1149 and PCUNKILL.
1150 (write_with_trace): Conditionalize out the switch branch handling
1151 PCSHOLD if the corresponding macro is not defined. Likewise for
1152 PRSABORT and PRSTOP.
1153 This change will be needed by the Interix port.
1154
e1507482
EZ
11552002-08-22 Elena Zannoni <ezannoni@redhat.com>
1156
1157 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1158 write_register wherever possible instead of manipulating the
1159 register bytes directly.
1160 Assign VALUE_CONTENTS to a variable and use that.
1161 The GPR numbers are now dependent on the architecture.
1162
96ff0de4
EZ
11632002-08-22 Elena Zannoni <ezannoni@redhat.com>
1164
1165 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1166 ev_offset fields.
1167 (skip_prologue): Add support for BookE/e500 instructions.
1168 (e500_extract_return_value): New function.
1169 (frame_get_saved_regs): Add support for saving ev registers and
1170 pseudo gpr's.
1171 (e500_store_return_value): New function.
1172 (rs6000_gdbarch_init): Move up default intializations of
1173 deprecated_extract_return_value and store_return_value. Overwrite
1174 init of store_return_value with e500 specific version.
1175 Set extract_return_value for e500.
1176
fbefca5b
EZ
11772002-08-22 Elena Zannoni <ezannoni@redhat.com>
1178
1179 * blockframe.c (generic_call_dummy_register_unwind): Use
1180 regcache_cooked_read to catch cases in which the variable is
1181 stored in a pseudo register.
1182
4d210288
AC
11832002-08-22 Andrew Cagney <cagney@redhat.com>
1184
1185 * NEWS: Mention that the i960 has been made obsolete.
1186 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1187 i960-tdep.c
1188 (remote-nrom.o): Obsolete target.
1189 (remote-nindy.o, i960-tdep.o): Ditto.
1190 * remote-nrom.c: Make file obsolete.
1191 * remote-nindy.c, remote-vx960.c: Ditto.
1192 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1193 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1194 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1195 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1196 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1197 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1198 i960-*-vxworks* obsolete.
1199 * MAINTAINERS: Note that the i960 is obsolete.
1200
6c0c456d
CV
12012002-08-21 Corinna Vinschen <vinschen@redhat.com
1202
1203 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1204 detach to allow reinitialization.
1205
9f9d12b3
AC
12062002-08-22 Andrew Cagney <ac131313@redhat.com>
1207
1208 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1209 attempt).
1210
ebeb39fe
JB
12112002-08-22 Jim Blandy <jimb@redhat.com>
1212
1213 * coffread.c (coff_symfile_read): Don't try to read the line
1214 number table from disk if the image file doesn't have a symbol
1215 table; we'll never actually look at the info anyway, and Windows
1216 ships DLL's with bogus file offsets for the line number data.
1217
5bf1c677
EZ
12182002-08-21 Elena Zannoni <ezannoni@redhat.com>
1219
1220 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1221 an e500 executable.
1222
71b8ef93
MS
12232002-08-21 Michael Snyder <msnyder@redhat.com>
1224
1225 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1226 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1227 (DEFAULT_MIPS_TYPE): Delete unused macro.
1228 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1229 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1230
d174216d
JB
12312002-08-21 Jim Blandy <jimb@redhat.com>
1232
1233 * valops.c (value_cast): Simplify and correct logic for doing a
1234 static cast from a pointer to a base class to a pointer to a
1235 derived class.
1236
0ab7a791
AC
12372002-08-21 Andrew Cagney <ac131313@redhat.com>
1238
1239 * infcmd.c (default_print_registers_info): Replace
1240 do_registers_info.
1241 (registers_info): Use gdbarch_print_registers_info instead of
1242 DO_REGISTERS_INFO.
1243 * inferior.h (default_print_registers_info): Replace
1244 do_registers_info.
1245 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1246 (DO_REGISTERS_INFO): Change to a predicate function.
1247 * gdbarch.h, gdbarch.c: Regenerate.
1248
e23792cc
KS
12492002-08-21 Keith Seitz <keiths@redhat.com>
1250
1251 * gdb-events.sh: Add target-changed event.
1252 * gdb-events.c: Regenerated.
1253 * gdb-events.c: Regenerated.
1254 * valops.c (value_assign): Add target-changed event notification
1255 to inlval_register, lval_memory, and lval_reg_frame_relative.
1256
9fb14e79
JB
12572002-08-21 Joel Brobecker <brobecker@gnat.com>
1258
1259 * NEWS: Add an entry regarding the improvement of the next/step
1260 operation on Alpha Tru64 multi-processor machines.
1261
6d39a69f
AC
12622002-08-21 Andrew Cagney <ac131313@redhat.com>
1263
72acd513
AC
1264 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1265 directores.
342af04b 1266 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1267 * Makefile.in (install-gdbtk): Move to install section.
1268 (rdi-share/libangsd.a): Move to end of file.
1269
fa5f27c7
AC
12702002-08-19 Andrew Cagney <ac131313@redhat.com>
1271
1272 * frame.c (frame_register_unwind): When a register, set addrp to
1273 the register's byte.
1274
5a89d8aa
MS
12752002-08-20 Michael Snyder <msnyder@redhat.com>
1276
1277 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1278 used locally, so move them from the target machine header to here.
1279 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1280 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1281 Make static.
1282 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1283
822e978b
AC
12842002-08-20 Andrew Cagney <cagney@redhat.com>
1285
1286 * NEWS: Mention that the Apollo line was made obsolete.
1287 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1288 m68*-hp-hpux* obsolete.
1289 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1290 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1291 * buildsym.c (make_blockvector): Make static.
1292 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1293 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1294 (ALLDEPFILES): Remove dstread.c.
1295 (dstread.o): Obsolete make rule.
1296 * dstread.c: Makefile obsolete.
1297 * dst.h: Ditto.
1298 * config/m68k/hp300hpux.mt: Ditto.
1299 * config/m68k/hp300hpux.mh: Ditto.
1300 * config/m68k/hp300bsd.mt: Ditto.
1301 * config/m68k/hp300bsd.mh: Ditto.
1302 * config/m68k/apollo68b.mt: Ditto.
1303 * config/m68k/apollo68v.mh: Ditto.
1304 * config/m68k/apollo68b.mh: Ditto.
1305
e41b17f0
MS
13062002-08-20 Michael Snyder <msnyder@redhat.com>
1307
1308 * mips-tdep.c (mips_in_return_stub): Make static.
1309 (mips_gdbarch_init): Set in_solib_return_trampoline.
1310 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1311
d50355b6
MS
13122002-08-20 Michael Snyder <msnyder@redhat.com>
1313
1314 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1315 * gdbarch.c, gdbarch.h: Regenerate.
1316 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1317 Add.
1318 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1319
757a7cc6
MS
13202002-08-20 Michael Snyder <msnyder@redhat.com>
1321
1322 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1323 (mips_gdbarch_init): Set skip_trampoline_code,
1324 in_solib_call_trampoline.
1325 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1326 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1327
c8001721
EZ
13282002-08-20 Elena Zannoni <ezannoni@redhat.com>
1329
1330 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1331
1332 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1333 vector type for ev registers.
1334 (e500_pseudo_register_read): New function.
1335 (e500_pseudo_register_write): New function.
1336 (e500_dwarf2_reg_to_regnum): New function.
1337 (PPC_UISA_NOFP_SPRS): New macro.
1338 (PPC_EV_REGS): New macro.
1339 (PPC_GPRS_PSEUDO_REGS): New macro.
1340 (registers_e500): New register set for e500.
1341 (variants): Add e500 variant.
1342 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1343 before setting architectural dependent variations. Initialize ev
1344 registers numbers. Add case for e500 architecture. Set the
1345 number of pseudo registers.
1346
64366f1c
EZ
13472002-08-20 Elena Zannoni <ezannoni@redhat.com>
1348
1349 * rs6000-tdep.c: Clean up comments.
1350
7e78f0ca
AC
13512002-08-20 Andrew Cagney <cagney@redhat.com>
1352
1353 * h8300-tdep.c: Re-indent file.
1354
697f7479
JB
13552002-08-20 Jim Blandy <jimb@redhat.com>
1356
1357 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1358 default for this.
697f7479 1359
e86ae29f
KS
13602002-08-20 Keith Seitz <keiths@redhat.com>
1361
1362 * breakpoints.c (watch_command_1): Use internal breakpoint
1363 when setting a watchpoint_scope breakpoint.
1364
216b504f
EZ
13652002-08-20 Elena Zannoni <ezannoni@redhat.com>
1366
1367 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1368 (build_builtin_type_vec64i): Ditto.
1369 (build_builtin_type_vec128): Ditto.
1370 (build_builtin_type_vec128i): Ditto.
1371
f7ab6ec6
MS
13722002-08-19 Michael Snyder <msnyder@redhat.com>
1373
1374 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1375 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1376 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1377 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1378 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1379 CALL_DUMMY_ADDRESS): Delete.
1380 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1381 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1382 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1383 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1384 push_return_address.
1385 (mips_register_raw_size, mips_eabi_use_struct_convention,
1386 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1387 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1388 mips_init_extra_frame_info, mips_eabi_push_arguments,
1389 mips_n32n64_push_arguments, mips_push_return_address,
1390 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1391 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1392
b5d1566e
MS
13932002-08-19 Michael Snyder <msnyder@redhat.com>
1394
1395 * mips-tdep.c (mips_frame_num_args): New function.
1396 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1397 frame_saved_pc, frame_args_address, frame_locals_address,
1398 frame_num_args, and frame_args_skip.
1399 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1400 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1401 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1402 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1403
2f1488ce
MS
14042002-08-20 Michael Snyder <msnyder@redhat.com>
1405
1406 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1407 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1408 * mips-tdep.c (mips_store_struct_return): New function.
1409 (mips_extract_struct_value_address): New function.
1410 (mips_gdbarch_init): Set store_struct_return and
1411 extract_struct_value_address.
1412
41ff2da1
DC
14132002-08-20 David Carlton <carlton@math.stanford.edu>
1414
1415 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1416 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1417 (read_file_scope): Check that line_header is nonzero before
1418 decoding macro information.
1419
e5451d58
MK
14202002-08-20 Mark Kettenis <kettenis@gnu.org>
1421
1422 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1423 flag the general-purpose registers as floating-point on targets
1424 that don't support the floating-point registers.
1425
4a6daafa
EZ
14262002-08-20 Elena Zannoni <ezannoni@redhat.com>
1427
1428 * rs6000-tdep.c (altivec_register_p): Delete.
1429 (rs6000_do_altivec_registers): Delete.
1430 (rs6000_altivec_registers_info): Delete.
1431 (rs6000_do_registers_info): Delete.
1432 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1433 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1434
ab4327e0
EZ
14352002-08-20 Elena Zannoni <ezannoni@redhat.com>
1436
1437 * infcmd.c (do_registers_info): Print vector registers in hex
1438 format only.
1439 (print_vector_info): Check that printing registers
1440 makes sense.
1441 (print_float_info): Ditto.
1442
cb1d2653
AC
14432002-08-20 Andrew Cagney <ac131313@redhat.com>
1444
1445 * mips-tdep.c (mips_gdbarch_init): Update.
1446 (mips_o32_extract_return_value): Rewrite.
1447 (mips_o32_store_return_value): Rewrite.
1448 (mips_o32_xfer_return_value): New function.
1449 (mips_xfer_register): Tweak debug print message. Allow for
1450 buf_offset when dumping the value transfered.
1451
dfc3d9b2
AC
14522002-08-20 Andrew Cagney <ac131313@redhat.com>
1453
1454 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1455 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1456 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1457 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1458 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1459
7807aa61
MS
14602002-08-14 Michael Snyder <msnyder@redhat.com>
1461
1462 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1463
489461e2
EZ
14642002-08-19 Elena Zannoni <ezannoni@redhat.com>
1465
1466 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1467 register.
1468 (P): New macro to define a register as a pseudo register.
1469 (R, R4, R8, R16, FR32, R64, R0): Updated.
1470 (struct variant): Add new fields for number of pseudo registers
1471 and number of total registers.
1472 (tot_num_registers): New macro replacing....
1473 (num_registers): ...deleted macro.
1474 (num_registers): New function.
1475 (num_pseudo_registers): New function.
1476 (variants): Update all variants to intialize new fields correctly.
1477 Postpone initialization of number of pseudo regs and real regs.
1478 (init_variants): New function.
1479 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1480 registers offsets.
1481
fcaffe4c
DC
14822002-08-19 David Carlton <carlton@math.stanford.edu>
1483
2c2738a0
DC
1484 * valops.c (search_struct_field): Change error message to treat
1485 return value of 0 from value_static_field as meaning that field is
1486 optimized out.
1487 (value_struct_elt_for_reference): Ditto.
1488 * values.c (value_static_field): Treat an unresolved location the
1489 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1490 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1491 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1492 * MAINTAINERS: Add self to Write After Approval list.
1493
88658117
AC
14942002-08-19 Andrew Cagney <ac131313@redhat.com>
1495
1496 * mips-tdep.c (mips_xfer_register): New function.
1497 (mips_n32n64_extract_return_value): Rewrite.
1498 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1499 instead of deprecated_extract_return_value.
1500
21283beb
EZ
15012002-08-19 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * rs6000-tdep.c (TDEP): Delete macro.
1504 (branch_dest): Replace use of TDEP macro with its body.
1505 (rs6000_pop_frame): Ditto.
1506 (rs6000_push_arguments): Ditto.
1507 (rs6000_skip_trampoline_code): Ditto.
1508 (rs6000_frame_saved_pc): Ditto.
1509 (rs6000_frame_chain): Ditto.
1510 (rs6000_register_name): Ditto.
1511 (rs6000_register_byte): Ditto.
1512 (rs6000_register_raw_size): Ditto.
1513 (rs6000_register_virtual_type): Ditto.
1514 (rs6000_register_convertible): Ditto.
1515 (rs6000_convert_from_func_ptr_addr): Ditto.
1516
bf072999
DJ
15172002-08-19 Daniel Jacobowitz <drow@mvista.com>
1518
1519 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1520 conditionally.
1521 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1522 MIPS_LINUX_JB_ELEMENT_SIZE.
1523 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1524 for MAX_REGISTER_RAW_SIZE arrays.
1525 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1526 MIPS_LINUX_JB_ELEMENT_SIZE.
1527
9b949a49
PM
15282002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1529
1530 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1531
6d3e79c6
AS
15322002-08-19 Aidan Skinner <aidan@velvet.net>
1533
1534 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1535 ada-valprint.c ada-tasks.c.
1536 (YYFILES): Add ada-exp.y.
1537 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1538 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1539 (ada-exp.tab.o): New target.
1540
06c0b04e
AC
15412002-08-18 Andrew Cagney <ac131313@redhat.com>
1542
1543 * regcache.c (regcache_xfer_part): New function.
1544 (regcache_raw_read_part): New function.
1545 (regcache_raw_write_part): New function.
1546 (regcache_cooked_read_part): New function.
1547 (regcache_cooked_write_part): New function.
1548 * regcache.h (regcache_raw_read_part): Declare.
1549 (regcache_raw_write_part): Declare.
1550 (regcache_cooked_read_part): Declare.
1551 (regcache_cooked_write_part): Declare.
1552
92d1e331
DJ
15532002-08-18 Daniel Jacobowitz <drow@mvista.com>
1554
1555 * remote.c (remote_open_1): Add async_p.
1556 (remote_async_open_1): Delete.
1557 (open_remote_target): Delete.
1558 (remote_open, extended_remote_open): Update calls to remote_open_1.
1559 (remote_async_open, extended_remote_async_open): Call
1560 remote_open_1 instead of remote_async_open_1.
1561
247055de
MK
15622002-08-19 Mark Kettenis <kettenis@gnu.org>
1563
1564 * blockframe.c: Fix a few coding standard violations.
1565
641eda39
MK
15662002-08-19 Mark Kettenis <kettenis@gnu.org>
1567
0b717710
MK
1568 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1569 here from ...
1570 * config/i386/tm-i386sco5.h: ... here. File removed.
1571 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1572
26d28e12 1573 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1574 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1575 (TM_FILE): Set to tm-i386.h.
1576 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1577 * config/i386/tm-i386v.h: Remove file.
1578 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1579 instead of "i386/tm-i386v.h".
1580 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1581 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1582 "i386/tm-i386v.h".
1583 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1584 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1585 "i386/tm-i386.h".
1586
d4e0bab4
MK
15872002-08-18 Mark Kettenis <kettenis@gnu.org>
1588
1589 * config/i386/nm-i386v.h: Add protection against
1590 multiple-inclusion.
1591 (i386_register_u_addr): Remove prototype.
1592 (register_u_addr): New prototype.
1593 (REGISTER_U_ADDR): Redefine accordingly.
1594 * i386v-nat.c: Improve several comments.
1595 (i386_register_u_addr): Change signature and rename to
1596 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1597 ubase variable.
1598
46cac009
AC
15992002-08-18 Andrew Cagney <ac131313@redhat.com>
1600
1601 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1602 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1603 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1604 deprecated_extract_return_value.
1605 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1606 rename mips_o32o64_push_arguments.
1607 (mips_gdbarch_init): Update.
1608 (mips_extract_return_value): Delete.
1609 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1610 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1611 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1612 (mips_n32n64_extract_return_value): Clone
1613 mips_extract_return_value.
1614 (mips_store_return_value): Delete.
1615 (mips_o32_store_return_value): Clone mips_store_return_value.
1616 (mips_o64_store_return_value): Clone mips_store_return_value.
1617 (mips_eabi_store_return_value): Clone mips_store_return_value.
1618 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1619
d2e4a39e
AS
16202002-08-18 Aidan Skinner <aidan@velvet.net>
1621
0c30c098
AS
1622 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1623 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1624
16252002-08-18 Aidan Skinner <aidan@velvet.net>
1626
1627 * ada-lang.c: Run through gdb_indent.sh.
1628 * ada-lang.h: Run through gdb_indent.sh.
1629 * ada-tasks.c: Run through gdb_indent.sh.
1630 * ada-typeprint.c: Run through gdb_indent.sh.
1631 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1632
01fc4e33
AC
16332002-08-18 Andrew Cagney <ac131313@redhat.com>
1634
1635 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1636 ABI.
1637
d8ee244c
MK
16382002-08-18 Mark Kettenis <kettenis@gnu.org>
1639
c38d8261
MK
1640 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1641
222db64c
MK
1642 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1643 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1644
c2848c82
MK
1645 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1646 write_register_gen instead of write_register_bytes.
1647
d8ee244c
MK
1648 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1649 i[3456]-*-osf1mk* configurations have been made obsolete.
1650 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1651 i[3456]86-*-osf1mk* hosts obsolete.
1652 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1653 targets obsolete.
1654 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1655 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1656 config/i386/i386m3.mt, config/i386/nm-m3.h,
1657 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1658 config/i386/i386mk.mh, config/i386/i386mk.mt,
1659 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1660 obsolete.
1661 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1662 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1663 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1664
61d8d407
AC
16652002-08-18 Andrew Cagney <ac131313@redhat.com>
1666
1667 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1668 (hppa_value_returned_from_stack): Declare.
1669 (hppa_extract_return_value): Declare.
1670 * config/pa/hppa.mt: New file.
1671 * configure.tgt: Recognize hppa*-*-*.
1672 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1673
0c52bd59
MK
16742002-08-18 Mark Kettenis <kettenis@gnu.org>
1675
1676 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1677 comment.
1678
b5686e99
MK
16792002-08-17 Mark Kettenis <kettenis@gnu.org>
1680
1681 * top.c (gdb_rl_operate_and_get_next): Make sure
1682 operate-and-get-next functions correctly even when the history
1683 list is completely filled.
1684
c1bab85b
AC
16852002-08-18 Andrew Cagney <ac131313@redhat.com>
1686
1687 * MAINTAINERS (Target Instruction Set Architectures): Rename
1688 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1689 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1690 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1691 already listed under Host/Native.
1692
1693 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1694 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1695 mips*-*-*.
1696
32089c7c
AC
16972002-08-17 Andrew Cagney <ac131313@redhat.com>
1698
1699 * config/ia64/ia64.mt: New file.
1700 * config/alpha/alpha.mt: New file.
1701 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1702 ia64-linux-gnu. Mention that ia64-elf is broken.
1703 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1704
b4671f85
MK
17052002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1706
1707 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1708 generic_func_frame_valid instead of func_frame_valid.
1709
c8edd8b4
JB
17102002-08-16 Joel Brobecker <brobecker@gnat.com>
1711
1712 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1713 procfs appears to be broken when debugging on multi-processor
1714 machines. So enable software single stepping in order to avoid
1715 using the procfs interface to do next/step operations, using
1716 internal breakpoints instead.
1717
1718 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1719 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1720 make this pc address equal to the value it would have if the
1721 system stepping capability was used. Also set a new flag used
1722 to ensure that we don't readjust the PC one more time later.
1723
1724 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1725 address by DECR_PC_AFTER_BREAK when software single step is
1726 in use for this architecture, as this has already been taken
1727 care of in handle_inferior_event().
1728
238617f6
JB
17292002-08-16 Joel Brobecker <brobecker@gnat.com>
1730
1731 * infrun.c (handle_inferior_event): Minor reformatting, to make
1732 a rather long condition expression easier to read.
1733
541a7aac
AC
17342002-08-16 Andrew Cagney <ac131313@redhat.com>
1735
1736 * Makefile.in (gdbtk.o): Move to end of file.
1737 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1738 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1739 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1740 (gdbtk-wrapper.o, gdbres.o): Ditto.
1741
f92d4a7b
AC
17422002-08-16 Andrew Cagney <ac131313@redhat.com>
1743
1744 * Makefile.in (copying.o): Separate out compile rule.
1745 (hpux-thread.o, procfs.o, signals.o): Ditto.
1746 (v850ice.o, z8k-tdep.o): Ditto.
1747 (tui-file.o): Move to TUI section.
1748 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1749 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1750
1cce71eb
JB
17512002-08-16 Joel Brobecker <brobecker@gnat.com>
1752
1753 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1754 skip_trampoline_code, for better namespace-proofing.
1755
1756 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1757
0851f23d
JB
17582002-08-16 Joel Brobecker <brobecker@gnat.com>
1759
1760 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1761
f8d40ec8
JB
17622002-08-16 Joel Brobecker <brobecker@gnat.com>
1763
1764 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1765 signal, check whether we hit a breakpoint before checking for a
1766 single step breakpoint. Otherwise, GDB fails to notice that a
1767 breakpoint has been hit when stepping onto a breakpoint.
1768
63d022e0
KS
17692002-08-16 Keith Seitz <keiths@redhat.com>
1770
1771 * gdb-events.sh (clear_gdb_event_hooks): New function.
1772 * gdb-events.c: Regenerate.
1773 * gdb-events.h: Regenerate.
1774
6e31adb3
AC
17752002-08-16 Andrew Cagney <ac131313@redhat.com>
1776
1777 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1778 not_a_sw_breakpoint.
1779 * breakpoint.h (bpstat_stop_status): Add parameter names.
1780
c8189ed1
GS
17812002-08-16 Grace Sainsbury <graces@redhat.com>
1782
1783 * remote.c (remote_insert_hw_breakpoint)
1784 (remote_remove_hw_breakpoint): Fix calculation of length field
1785 for Z-packet.
1786
d05285fa
MS
17872002-08-15 Michael Snyder <msnyder@redhat.com>
1788
466d7106
MS
1789 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1790 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1791 (supply_fpregset): Ditto.
1792
d05285fa
MS
1793 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1794 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1795 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1796 (TARGET_READ_SP): Delete.
bf1f5b4c 1797 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1798 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1799 Delete.
1800 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1801 from macros to functions.
bf1f5b4c 1802
d05285fa
MS
1803 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1804 (mips_register_convertible, mips_register_convert_to_virtual,
1805 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1806 (mips_read_sp): New function.
1807 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1808 (mips_do_registers_info): Make static.
1809 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1810 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1811 (mips_register_convert_from_type, mips_register_convert_to_type):
1812 New functions.
1813 (mips_gdbarch_init): Set up function_start_offset,
1814 register_virtual_size, pc_in_sigtramp.
d05285fa 1815
e76f1f2e
AC
18162002-08-15 Andrew Cagney <ac131313@redhat.com>
1817
1818 * infcmd.c (vector_info): New function.
1819 (_initialize_infcmd): Add command "info vector".
1820 (print_vector_info): New function.
1821
1822 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824
4782dc19
AC
18252002-08-15 Andrew Cagney <ac131313@redhat.com>
1826
1827 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1828 ``print_all''. Only print vector registers when ``print_all''.
1829
23e3a7ac
AC
18302002-08-15 Andrew Cagney <ac131313@redhat.com>
1831
8e186fd6
AC
1832 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1833 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1834
23e3a7ac
AC
1835 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1836 Add `args' parameter.
1837 * gdbarch.h, gdbarch.c: Regenerate.
1838
1839 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1840
1841 * infcmd.c (float_info): Call print_float_info.
1842 (print_float_info): New function. By default, print the
1843 floating-point registers.
1844
1845 * arch-utils.h (default_print_float_info): Delete declaration.
1846 * arch-utils.c (default_print_float_info): Delete function.
1847
e0ca2bb9
MK
18482002-08-16 Mark Kettenis <kettenis@gnu.org>
1849
3f733acc
MK
1850 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1851 out define.
1852
7d8d2918
MK
1853 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1854 FRAME.
1855
1c7cc583
MK
1856 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1857 * configure.host: Make i[3456]86-*-aix host obsolete.
1858 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1859 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1860 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1861 config/i386/xm-i386aix.h: Make files obsolete.
1862 * i386aix-nat.c: Make file obsolete.
1863 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1864 (i386aix-nat.o): Make target obsolete.
1865
e0ca2bb9
MK
1866 * config/i386/nm-gnu.h: Removed.
1867 * config/i386/nm-i386gnu.h: New file.
1868 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1869 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1870 Moved here from ...
1871 * config/i386/tm-i386gnu.h: ... here. Removed.
1872 * config/i386/xm-i386gnu.h: Removed.
1873 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1874 (NAT_FILE): Set to nm-i386gnu.h.
1875 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1876 * i386-tdep.c: New file.
1877 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1878 (i386gnu-tdep.o): Specify dependencies.
1879
16057ec7 18802002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1881
6b99ee2e
MK
1882 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1883 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1884 Adjust a few comments to reflect reality a bit closer.
1885 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1886 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1887 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1888 target_insert_watchpoint, target_remove_watchpoint):
1889 Move defines to ...
1890 * config/i386/nm-i386sco5.h: ... here.
1891 (kernel_u_size): Add prototype. Improve a few comments and add
1892 protection against multiple inclusion.
1893
d9a6f65c
MK
1894 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1895 out define.
1896
047eff6a
MK
1897 * uw-thread.c (SP_ARG0): Define if not already defined.
1898 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1899
dcdb1290
MK
1900 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1901
5d2d0b2a
MK
1902 * config/i386/tm-i386.h: Don't include "regcache.h".
1903
61113f8b
MK
1904 * i387-tdep.h (i387_print_float_info): New prototype.
1905 * i387-tdep.c (print_i387_value, print_i387_ext,
1906 print_i387_status_word, print_i387_control_word): Add `struct
1907 ui_file *' argument and use it for output.
1908 (i387_print_float_info): Renamed from i387_float_info. Add
1909 `struct gdbarch *' and `struct ui_file *' arguments and use the
1910 latter for output.
1911 * i386-tdep.c: Include "i387-tdep.h".
1912 (i386_gdbarch_init): Set print_float_info.
1913 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1914 (FLOAT_INFO): Remove define.
1915
46e0f506
MS
19162002-08-13 Michael Snyder <msnyder@redhat.com>
1917
1918 * mips-tdep.c (mips_push_arguments): Rename to
1919 mips_eabi_push_arguments, and tune for EABI.
1920 (MIPS_REGS_HAVE_HOME_P): Delete.
1921 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1922 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1923 Delete references to mips_regs_have_home_p.
1924
409268de
KS
19252002-08-14 Keith Seitz <keiths@redhat.com>
1926
1927 * Makefile.in (install-gdbtk): Create insight plugin directory.
1928 Install plugins.tcl file.
1929
ffc6a242
KS
19302002-08-14 Keith Seitz <keiths@redhat.com>
1931
1932 * configure.in: Move SUBDIRS to near top of the file so that
1933 --enable options may add things to it.
1934 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1935 * configure: Regenerate.
1936
ebafbe83
MS
19372002-08-13 Michael Snyder <msnyder@redhat.com>
1938
1939 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1940 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1941 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1942
32f6f25d
AC
19432002-08-13 Andrew Cagney <ac131313@redhat.com>
1944
1945 * vax-tdep.c (vax_get_saved_register): Delete function.
1946 (vax_gdbarch_init): Update.
1947 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1948 (ns32k_gdbarch_init): Update.
1949 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1950 (alpha_gdbarch_init): Update.
1951
53826de9
AC
19522002-08-13 Andrew Cagney <cagney@redhat.com>
1953
1954 * regcache.c (init_regcache_descr): Overallocate the
1955 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1956 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1957 nr_raw_registers.
1958 (set_register_cached): Add range checking assertions. Use
1959 current_regcache.
1960
16057ec7 19612002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1962
1963 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1964 numbers for MMX registers.
1965
7b4c2dce
AC
19662002-08-13 Andrew Cagney <cagney@redhat.com>
1967
1968 * i386-tdep.c (i386_gdbarch_init): Use
1969 generic_unwind_get_saved_register.
1970
1e03ad20
KB
19712002-08-13 Kevin Buettner <kevinb@redhat.com>
1972
1973 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1974 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1975 target vector.
1976 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1977 Delete. Add comment regarding this now-deleted target method.
1978
548bcbec
SC
19792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1980
1981 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1982 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1983 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1984 real PC and the page number (if it's within the memory bank window).
1985 (m68hc11_pseudo_register_write): Likewise when saving.
1986 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1987 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1988 (m68hc11_register_raw_size): And use 32-bit for it.
1989 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1990 16K memory bank is used by the prog; also use the virtual pc.
1991
7df11f59
SC
19922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1993
1994 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1995 (m68hc11_gdbarch_init): Install it in gdbarch.
1996 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1997 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1998 (MSYMBOL_SIZE): New for documentation.
1999 (insn_return_kind): Enum to specify how a function returns.
2000 (frame_extra_info): Cleanup and record the return mode.
2001 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2002 register in address computation.
2003 (m68hc11_get_return_insn): New to obtain the return instruction used
2004 by the function.
2005 (m68hc11_frame_init_saved_regs): Take into account the return
2006 instruction used by the function for far and interrupt functions.
2007 (m68hc11_init_extra_frame_info): Take into account page register.
2008 (m68hc11_frame_args_address): Adjust according to the return mode.
2009 (show_regs): Print page register only when it's used.
2010
5706502a
SC
20112002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2012
2013 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2014 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2015 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2016 registers.
2017 (m68hc11_register_raw_size): Likewise.
2018
28fc6740
AC
20192002-08-13 Andrew Cagney <cagney@redhat.com>
2020
2021 * i386-tdep.c (i386_register_name): Handle mmx registers.
2022 (mmx_regnum_p): New function.
2023 (i386_mmx_names): New array.
2024 (mmx_num_regs): New variable.
2025 (i386_pseudo_register_read): New function.
2026 (i386_pseudo_register_write): New function.
2027 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2028
2029 * regcache.c (regcache_raw_read_unsigned): New function.
2030 (regcache_raw_read_signed): New function.
2031 * regcache.h (regcache_raw_read_unsigned): Declare.
2032 (regcache_raw_read_signed): Declare.
2033
a378f419
AC
20342002-08-13 Andrew Cagney <cagney@redhat.com>
2035
2036 * regcache.c (regcache_raw_read_as_address): Delete function.
2037 (regcache_cooked_read_signed): New function.
2038 (regcache_cooked_read_unsigned): New function.
2039 * regcache.h (regcache_cooked_read_signed): Declare.
2040 (regcache_cooked_read_unsigned): Declare.
2041 (regcache_raw_read_as_address): Delete declaration.
2042
2043 * blockframe.c (generic_read_register_dummy): Use
2044 regcache_cooked_read_unsigned.
2045 * i386-tdep.c (i386_extract_struct_value_address): Use
2046 regcache_cooked_read_unsigned.
2047
81967506
SC
20482002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2049
2050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2051 double sizes according to ELF ABI flags.
2052 (gdbarch_tdep): Record elf_flags.
2053
ffe1f3ee
SC
20542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2055
2056 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2057 (m6812_prolog): They can appear in 68HC12 function prologue.
2058 (m68hc11_frame_chain): Cleanup.
2059
98216c5d
AC
20602002-08-12 Andrew Cagney <cagney@redhat.com>
2061
2062 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2063 declarations.
2064 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2065 (i386_linux_register_raw_size): Delete function.
2066 (i386_linux_init_abi): Update.
2067 * i386-tdep.c (i386_register_raw_size): Delete function.
2068 (i386_register_byte): Delete function.
2069 (i386_gdbarch_init): Update.
2070 (i386_register_size): Delete array.
2071 (i386_register_offset): Delete array.
2072
2073 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2074 (REGISTER_RAW_SIZE): Delete macro.
2075 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2076 (REGISTER_BYTE): Delete macro.
2077
3b19021e
AS
20782002-08-11 Aidan Skinner <aidan@velvet.net>
2079
2080 * ada-lang.c (ada_lookup_partial_symbol)
2081 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2082 prototype names so that grep ^func works properly.
2083
2084 * ada-lang.c (ada_array_element_type)
2085 (ada_lookup_partial_symbol): Fix typos in parameter list.
2086
2087 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2088 Fix prototype names so that grep ^func works properly.
2089
b063e7a2
AC
20902002-08-10 Andrew Cagney <cagney@redhat.com>
2091 Elena Zannoni <ezannoni@redhat.com>
2092 Martin M. Hunt <hunt@redhat.com>
2093
2094 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2095 (build_builtin_type_vec128i): Set the vector bit.
2096 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2097 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2098 (build_builtin_type_vec64): New function.
2099 (build_builtin_type_vec64i): New function.
2100 (build_gdbtypes): Initialize builtin_type_vec64 and
2101 builtin_type_vec64i.
2102
a7e3c2ad
AC
21032002-08-09 Andrew Cagney <cagney@redhat.com>
2104
2105 * regcache.c (regcache_dump): Compare the register offset
2106 with REGISTER_BYTE.
2107 * arch-utils.c (generic_register_byte): New function.
2108 * arch-utils.h (generic_register_byte): Declare.
2109 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2110 * gdbarch.h, gdbarch.c: Regenerate.
2111
af030b9a
AC
21122002-08-09 Andrew Cagney <cagney@redhat.com>
2113
2114 * regcache.c: Include "gdbcmd.h"
2115 (_initialize_regcache): Add commands "maintenance print
2116 registers", "maintenance print raw-registers" and "maintenance
2117 print cooked-registers".
2118 (enum regcache_dump_what): Define.
2119 (dump_endian_bytes): New function.
2120 (regcache_dump): New function.
2121 (regcache_print): New function.
2122 (maintenance_print_registers): New function.
2123 (maintenance_print_raw_registers): New function.
2124 (maintenance_print_cooked_registers): New function.
2125 * Makefile.in (regcache.o): Update dependencies.
2126
cb3d25d1
MS
21272002-08-09 Michael Snyder <msnyder@redhat.com>
2128
2129 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2130 (mips_push_arguments): Correct some comments. Use paddr_nz
2131 for printing addresses in debug output. Replace static
2132 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2133 (mips_n32n64_push_arguments): New function, cloned from
2134 mips_push_arguments and tuned for the n32/n64 ABI.
2135 (mips_push_register): Buffer needs dynamic allocation.
2136 (mips_print_register): Ditto.
2137 (do_gp_register_row): Ditto.
2138 (mips_store_return_value): Ditto.
2139 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2140
2163ab9d
DH
21412002-08-09 Don Howard <dhoward@redhat.com>
2142
2143 * memattr.c (mem_info_command): Print special case of upper bound
2144 as max CORE_ADDR + 1.
2145
b78bcb18
MS
21462002-08-08 Michael Snyder <msnyder@redhat.com>
2147
2148 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2149 returns structs by ref if they're too big to fit in two registers.
2150
ffabd70d
KB
21512002-08-09 Kevin Buettner <kevinb@redhat.com>
2152
2153 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2154 saved regs value.
2155 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2156 mips_find_saved_regs().
2157 (mips_pop_frame): Likewise.
2158
fbcdb4a3
KB
21592002-08-09 Kevin Buettner <kevinb@redhat.com>
2160
2161 * blockframe.c (frame_saved_regs_register_unwind): Revise
2162 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2163 frames are in use.
2164
3c3bea1c
GS
21652002-08-09 Grace Sainsbury <graces@redhat.com>
2166
2167 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2168 T-packets; the 'a' is not taken as a register number.
2169 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2170 (remote_stopped_data_address): New functions; add to target
2171 vector.
2172 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2173 prototypes to match other implementations of this
2174 function. replace integer argument with pointer -- the length
2175 field in the Z-packet is the length of what is pointed to or 1 if
2176 pointer is null. Add to target vector.
2177 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2178 target vector.
2179
2180 From Mark Salter:
2181 * remote.c (remote_wait): Add support to extract optional
2182 watchpoint information from T-packet. Ignore unrecognized
2183 optional info in T-packet.
2184 (remote_async_wait): Ditto.
2185
5d1d95de
CV
21862002-08-09 Corinna Vinschen <vinschen@redhat.com>
2187
2188 * cli/cli-dump.c: Change fopen modes to use binary open modes
2189 as defined in include/fopen-bin.h throughout.
2190
c86b5b38
MS
21912002-08-08 Michael Snyder <msnyder@redhat.com>
2192
2193 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2194
b30590dc
KB
21952002-08-08 Kevin Buettner <kevinb@redhat.com>
2196
2197 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2198 assertion failure by returning early after a warning.
2199
498868ed
KB
22002002-08-08 Kevin Buettner <kevinb@redhat.com>
2201
2202 * mips-tdep.c (mips_find_saved_regs): Make static.
2203 (mips_frame_init_saved_regs): New function.
2204 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2205 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2206 (mips_find_saved_regs): Delete declaration.
2207
b2dd6311
GS
22082002-08-08 Grace Sainsbury <graces@redhat.com>
2209
3c3bea1c
GS
2210 * remote.c (remote_wait, remote_async_wait): Change
2211 thread_num from int to ULONGEST.
2212 (unpack_varlen_hex): Change result parameter from
2213 int * to ULONGEST *.
b2dd6311 2214
ea47855f
AC
22152002-08-08 Andrew Cagney <ac131313@redhat.com>
2216
2217 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2218 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2219 powerpc*-*-*.
2220 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2221
69db8bae
AC
22222002-08-08 Andrew Cagney <cagney@redhat.com>
2223
2224 * gcore.c (override_derive_stack_segment): Delete variable.
2225 (preempt_derive_stack_segment): Delete function.
2226 (derive_stack_segment): Delete function.
2227 (default_derive_stack_segment): Renamed to derive_stack_segment.
2228 (override_derive_heap_segment): Delete variable.
2229 (preempt_derive_heap_segment): Delete function.
2230 (derive_heap_segment): Delete function.
2231 (default_derive_heap_segment): Rename to derive_heap_segment.
2232
cb811fe7
MS
22332002-08-06 Michael Snyder <msnyder@redhat.com>
2234
2235 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2236 * mips-tdep.c (mips_EABI_use_struct_convention,
2237 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2238 New functions. (mips_use_struct_convention): Delete.
2239 (mips_gdbarch_init): set use_gdbarch_convention.
2240
8b389c40
MS
22412002-08-06 Michael Snyder <msnyder@redhat.com>
2242
2243 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2244 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2245 mips_o32_reg_struct_has_addr): New functions.
2246 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2247
5c27f28a
AC
22482002-08-07 Andrew Cagney <ac131313@redhat.com>
2249
2250 * regcache.c (pseudo_register): Delete function.
2251 (fetch_register): Delete function.
2252 (store_register): Delete function.
2253 (regcache_raw_read, legacy_read_register_gen): Use
2254 target_fetch_registers instead of fetch_register.
2255 (legacy_write_register_gen, regcache_raw_write): Use
2256 target_store_register instead of store_register.
2257 (write_register_bytes): Ditto.
2258
2259 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2260 (STORE_PSEUDO_REGISTER): Delete.
2261 * gdbarch.h, gdbarch.c: Regenerate.
2262
5b331675
CV
22632002-08-06 Corinna Vinschen <vinschen@redhat.com>
2264
2265 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2266 write dump file binary.
2267
6acdf5c7
MS
22682002-08-05 Michael Snyder <msnyder@redhat.com>
2269
2270 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2271 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2272 (mips_gdbarch_init): Set N32 target to be mips64.
2273
b2f01c35
KB
22742002-08-06 Kevin Buettner <kevinb@redhat.com>
2275
2276 * frame.c (find_saved_register): Break out of loop once saved
2277 register address is found. Don't mention sparc in loop comment
2278 anymore.
2279
63db5580
KB
22802002-08-06 Kevin Buettner <kevinb@redhat.com>
2281
2282 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2283 mips_default_saved_regsize to 8.
2284
5e34e75e
AC
22852002-08-06 Andrew Cagney <ac131313@redhat.com>
2286
2287 * gcore.c: Do not include <sys/procfs.h>.
2288 * Makefile.in (gcore.o): Update dependencies.
2289
eb4c54a2
AC
22902002-08-06 Andrew Cagney <cagney@redhat.com>
2291
2292 * configure.tgt: Make arc-*-* obsolete.
2293 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2294 * MAINTAINERS: Make arc-elf obsolete.
2295 * arc-tdep.c: Make file obsolete.
2296 * config/arc/arc.mt: Ditto.
2297 * config/arc/tm-arc.h: Ditto.
2298
ced15480
TR
22992002-08-05 Theodore A. Roth <troth@verinet.com>
2300
c1bab85b 2301 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2302
b4743822
AC
23032002-08-05 Andrew Cagney <ac131313@redhat.com>
2304
2305 * mcore-tdep.c (mcore_gdbarch_init): Use
2306 generic_unwind_get_saved_register instead of
2307 generic_get_saved_register.
2308 * v850-tdep.c (v850_gdbarch_init): Ditto.
2309 * frv-tdep.c (frv_gdbarch_init): Ditto.
2310 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2311 * s390-tdep.c (s390_gdbarch_init): Ditto.
2312 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2313 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2314 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2315
3956d554
JB
23162002-08-05 Joel Brobecker <brobecker@gnat.com>
2317
2318 * objfiles.h: Add missing #include "symfile.h"
2319
2320 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2321
8249c0d6
AC
23222002-08-04 Andrew Cagney <ac131313@redhat.com>
2323
2324 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2325 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2326 of FIELD_BITSIZE.
2327
b9d14705
DJ
23282002-08-04 Daniel Jacobowitz <drow@mvista.com>
2329
2330 * NEWS: Cleanup and nitpick.
2331
dd73b9bb
AC
23322002-08-03 Andrew Cagney <ac131313@redhat.com>
2333
2334 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2335
043a27f8
AC
23362002-08-03 Andrew Cagney <ac131313@redhat.com>
2337
2338 * Makefile.in (gdbtk-bp.o): Update dependencies.
2339 (gdbtk-register.o): Ditto.
2340 (gdbtk-varobj.o): Ditto.
2341
46ce284d
AC
23422002-08-03 Andrew Cagney <cagney@redhat.com>
2343
2344 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2345 m68hc11_fetch_pseudo_register.
2346 (m68hc11_pseudo_register_write): Replace
2347 m68hc11_store_pseudo_register.
2348 (m68hc11_gdbarch_init): Update.
2349
b66d6d2e
AC
2350Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2351
2352 * gdbarch.sh: Include "gdb_string.h".
2353 * gdbarch.c: Regenerate.
2354
2355 * regcache.c: Include "gdb_string.h".
2356 * ax-general.c: Ditto.
2357 * varobj.c: Ditto.
2358 * std-regs.c: Ditto.
2359 * fbsd-proc.c: Ditto.
2360 * thread.c: Ditto.
2361
2362 * Makefile.in (regcache.o): Update dependencies.
2363 (thread.o, gdbarch.o): Ditto.
2364 (ax-general.o, gdbarch.o): Ditto.
2365 (varobj.o, std-regs.o): Ditto.
2366 (fbsd-proc.o): Specify dependencies.
2367
29e1842b
AC
23682002-08-02 Andrew Cagney <cagney@redhat.com>
2369
2370 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2371 regnum.
2372 (regcache_cooked_write): Ditto.
2373
68365089
AC
23742002-08-02 Andrew Cagney <ac131313@redhat.com>
2375
2376 * regcache.c (regcache_cooked_read): New function.
2377 (regcache_cooked_write): New function.
2378 (read_register_gen): Rewrite using regcache_cooked_read.
2379 (write_register_gen): Rewrite using regcache_cooked_write.
2380
2381 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2382 Declare.
2383
d8124050
AC
23842002-08-02 Andrew Cagney <cagney@redhat.com>
2385
2386 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2387 Replace the architecture methods register_read and register_write.
2388 * gdbarch.h, gdbarch.c: Regenerate.
2389 * regcache.c (init_regcache_descr): Update.
2390 (read_register_gen): Update.
2391 (write_register_gen): Update.
2392 (supply_register): Update comment.
2393
2394 * sh-tdep.c (sh_gdbarch_init): Update.
2395 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2396 `regcache' and `gdbarch' parameters. Make `buffer' a void
2397 pointer. Update code.
2398 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2399 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2400 void pointer. Update code.
2401 (sh64_register_write): Delete.
2402 (sh4_register_read): Delete.
2403 (sh64_register_read): Delete.
2404 (sh4_register_write): Delete.
2405 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2406 void pointer, `to' parameter a void pointer.
2407 (sh_sh64_register_convert_to_raw): Ditto.
2408
a6425924
KB
24092002-08-01 Kevin Buettner <kevinb@redhat.com>
2410
2411 * mips-tdep.c (mips_register_virtual_type): Use architecture
2412 invariant return values.
2413
ff5922b5
AC
24142002-08-01 Andrew Cagney <cagney@redhat.com>
2415
2416 * linux-proc.c: Include "gdb_string.h".
2417 * Makefile.in (linux-proc.o): Update dependency list.
2418
32a6503c
KB
24192002-08-01 Kevin Buettner <kevinb@redhat.com>
2420
2421 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2422 comment.
2423
ccaa32c7
GS
24242002-08-01 Grace Sainsbury <graces@redhat.com>
2425
2426 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2427 to_insert_watchpoint, to_remove_watchpoint,
2428 to_stopped_by_watchpoint, to_stopped_data_address,
2429 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2430 target vecctor. Define their corresponding macros so they call
2431 them.
2432
2433 * target.c: Add default and debug versions of for
2434 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2435 to_insert_watchpoint, to_remove_watchpoint,
2436 to_stopped_by_watchpoint, to_stopped_data_address,
2437 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2438
78fde5f8
KB
24392002-08-01 Kevin Buettner <kevinb@redhat.com>
2440
2441 * mips-tdep.c (mips_register_virtual_type): New function.
2442 (mips_gdbarch_init): Register mips_register_virtual_type()
2443 with gdbarch machinery.
2444 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2445 this file instead of tm-bigmips.h.
2446 (MIPS_REGSIZE): Delete this macro.
2447 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2448 multiarch version in mips-tdep.c will be found.
2449
db034ac5
AC
24502002-08-01 Andrew Cagney <cagney@redhat.com>
2451
2452 * NEWS: Menion that CHILL has been made obsolete.
2453
2454 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2455 * stabsread.c (read_range_type): Ditto.
2456 * gdbtypes.h: Ditto.
2457 * language.c (binop_type_check): Ditto.
2458 (binop_result_type): Ditto.
2459 (integral_type): Ditto.
2460 (character_type): Ditto.
2461 (string_type): Ditto.
2462 (boolean_type): Ditto.
2463 (structured_type): Ditto.
2464 (lang_bool_type): Ditto.
2465 (binop_type_check): Ditto.
2466 * language.h (_LANG_chill): Ditto.
2467 * dwarfread.c (set_cu_language): Ditto.
2468 * dwarfread.c (CHILL_PRODUCER): Ditto.
2469 * dwarfread.c (handle_producer): Ditto.
2470 * expression.h (enum exp_opcode): Ditto.
2471 * eval.c: Ditto for comments.
2472 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2473 * expprint.c (print_subexp): Ditto.
2474 (print_subexp): Ditto.
2475 * valops.c (value_cast): Ditto.
2476 (search_struct_field): Ditto.
2477 * value.h (COERCE_VARYING_ARRAY): Ditto.
2478 * symfile.c (init_filename_language_table): Ditto.
2479 (add_psymbol_with_dem_name_to_list): Ditto.
2480 * valarith.c (value_binop): Ditto.
2481 (value_neg): Ditto.
2482 * valops.c (value_slice): Ditto.
2483 * symtab.h (union language_specific): Ditto.
2484 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2485 (SYMBOL_DEMANGLED_NAME): Ditto.
2486 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2487 * defs.h (enum language): Ditto.
2488 * symtab.c (got_symtab): Ditto.
2489 * utils.c (fprintf_symbol_filtered): Ditto.
2490
2491 * ch-typeprint.c: Make file obsolete.
2492 * ch-valprint.c: Make file obsolete.
2493 * ch-lang.h: Make file obsolete.
2494 * ch-exp.c: Make file obsolete.
2495 * ch-lang.c: Make file obsolete.
2496
2497 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2498 CHILL_LIB.
2499 (TARGET_FLAGS_TO_PASS): Ditto.
2500 (CHILLFLAGS): Obsolete.
2501 (CHILL): Obsolete.
2502 (CHILL_FOR_TARGET): Obsolete.
2503 (CHILL_LIB): Obsolete.
2504 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2505 ch-valprint.c.
2506 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2507 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2508 ch-lang.o.
2509 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2510 targets.
2511
8aaf0b47
JB
25122002-07-31 Joel Brobecker <brobecker@gnat.com>
2513
2514 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2515 This does not change anything at the moment, but will be helpful
2516 later when full Ada support is integrated.
2517
f3a7b3a5
KB
25182002-07-31 Kevin Buettner <kevinb@redhat.com>
2519
2520 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2521 help message.
2522
fb850278
KB
25232002-07-31 Kevin Buettner <kevinb@redhat.com>
2524
2525 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2526 and save it in a local variable. Use variable in later test.
2527
e3bddbfa
KB
25282002-07-31 Kevin Buettner <kevinb@redhat.com>
2529
2530 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2531 test. (Thanks to Daniel Jacobowitz.)
2532
28d169de
KB
25332002-07-31 Kevin Buettner <kevinb@redhat.com>
2534
2535 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2536 (mips_abi_strings): Add "n64".
2537 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2538
7fe7e44e
KB
25392002-07-31 Kevin Buettner <kevinb@redhat.com>
2540
2541 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2542 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2543
c6caf090
KB
25442002-07-31 Kevin Buettner <kevinb@redhat.com>
2545
2546 * utils.c (host_pointer_to_address, address_to_host_pointer):
2547 Use gdb_assert() instead of explicit call to internal_error().
2548
c41669e0
KB
25492002-07-30 Kevin Buettner <kevinb@redhat.com>
2550
2551 * Makefile.in (rs6000-nat.o): Update dependencies.
2552
2553 From Nicholas Duffek:
2554 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2555 (aix-thread.o): New rule.
2556 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2557 * config/powerpc/aix432.mh: New file.
2558
2fda4977
DJ
25592002-07-30 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2562 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2563 (fetch_core_registers, ppc_linux_supply_gregset)
2564 (ppc_linux_supply_fpregset): New functions.
2565 (ppc_linux_regset_core_fns): New.
2566 (_initialize_ppc_linux_tdep): Call add_core_fns.
2567 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2568 and ppc_linux_supply_gregset.
2569 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2570 (supply_fpregset): Call ppc_linux_supply_fpregset.
2571 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2572 corelow.o.
2573 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2574
729051e6
DJ
25752002-07-30 Daniel Jacobowitz <drow@mvista.com>
2576
2577 * symtab.c (lookup_symbol): Demangle before lowercasing.
2578
5f8a3188
AC
25792002-07-30 Andrew Cagney <ac131313@redhat.com>
2580
2581 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2582 declaration.
2583 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2584 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2585 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2586 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2587 "gdb_string.h".
2588 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2589 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2590 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2591 (avr-tdep.o, mon960-rom.o): Ditto.
2592 (aout_stabs_gnu_h): Define.
2593 (symtab_h): Remove $(gdb_obstack_h).
2594
67f07146
JB
25952002-07-30 Jim Blandy <jimb@redhat.com>
2596
2597 Patch from David Carlton <carlton@math.stanford.edu>:
2598 * gdbinit.in: Move the `dir' commands that add GDB's own source
2599 directory to the search path to the end, so that the `gdb' source
2600 directory will be searched first.
2601
04ea0df1
AC
26022002-07-29 Andrew Cagney <ac131313@redhat.com>
2603
2604 * gdb_obstack.h: New file.
2605 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2606 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2607 * objfiles.h: Include "gdb_obstack.h".
2608 * Makefile.in (gdb_obstack_h): Define.
2609 (symtab_h): Add $(gdb_obstack_h).
2610 (objfiles_h): Add $(gdb_obstack_h).
2611
2612 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2613 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2614 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2615 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2616 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2617 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2618 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2619 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2620
2621 * Makefile.in (bcache.o): Update dependencies.
2622 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2623 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2624 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2625 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2626 (stabsread.o, symfile.o, symmisc.o): Ditto.
2627 (symtab.o, typeprint.o, macroexp.o): Ditto.
2628 (macrotab.o, mdebugread.o): Ditto.
2629 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2630 (coff_ecoff_h, aout_aout64_h): Define.
2631 (aout_stabs_gnu_h, libaout_h): Define.
2632
d138e37a
AC
26332002-07-29 Andrew Cagney <cagney@redhat.com>
2634
2635 * regcache.c (struct regcache_descr): Rename nr_registers to
2636 nr_cooked_registers. Revise comments describing the structure
2637 member fields.
2638 (init_regcache_descr): Update.
2639 (init_legacy_regcache_descr): Update.
2640 (read_register_gen, write_register_gen): When a cooked register in
2641 the raw register range, directly access the value from the raw
2642 register cache.
2643
460e6ec3
AC
26442002-07-29 Andrew Cagney <ac131313@redhat.com>
2645
2646 * z8k-tdep.c: Do not include "obstack.h".
2647 * h8300-tdep.c, h8500-tdep.c: Ditto.
2648 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2649 * valprint.c, v850-tdep.c: Ditto.
2650 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2651 * mn10200-tdep.c: Ditto.
2652
2653 * Makefile.in (z8k-tdep.o): Update dependencies.
2654 (m68hc11-tdep.o, valprint.o): Ditto.
2655 (v850-tdep.o, d10v-tdep.o): Ditto.
2656 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2657 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2658 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2659 (sh_opc_h, gdb_sim_sh_h): Define.
2660 (elf_sh_h, elf_bfd_h): Define.
2661 (opcode_m68hc11_h): Define.
2662 (OPCODES_SRC, OPCODES_DIR): define.
2663 (OPCODES): Use $(OPCODES_DIR).
2664 (gdb_sim_d10v_h): Rename sim_d10v_h.
2665 (gdb_sim_arm_h): Rename sim_arm_h.
2666
790c9cf0
KB
26672002-07-26 Kevin Buettner <kevinb@redhat.com>
2668
2669 * utils.c (host_pointer_to_address, address_to_host_pointer):
2670 Change internal_error() message to indicate function responsible
2671 for the error.
2672
9647fa49
KB
26732002-07-26 Kevin Buettner <kevinb@redhat.com>
2674
2675 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2676 calls to local_hex_string_custom().
2677
dabbe2c0
KB
26782002-07-26 Kevin Buettner <kevinb@redhat.com>
2679
2680 * irix5-nat.c: Move IRIX shared library support from here...
2681 * solib-irix.c: ...to here. Revised substantially to work with
2682 generic solib framework.
2683
b96d0a4e
KB
2684 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2685 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2686 * mips-irix-tdep.c: New file.
2687
313fb2f6
KB
2688 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2689 (mips-irix-tdep.o, solib-irix.o): New rules.
2690 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2691 solib-irix.o.
2692 * config/mips/irix6.mt (TDEPFILES): Likewise.
2693 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2694
ab2eaf26
KB
26952002-07-26 Kevin Buettner <kevinb@redhat.com>
2696
177e4768 2697 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2698 disabled (via ``#if 0'') includes.
2699
7244546a
KB
27002002-07-26 Kevin Buettner <kevinb@redhat.com>
2701
2702 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2703 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2704 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2705 Add support for the fpscr register.
2706 * rs6000-nat.c (regmap, fetch_inferior_registers)
2707 (store_inferior_registers, fetch_core_registers): Likewise.
2708
dd7be90a
KB
27092002-07-26 Kevin Buettner <kevinb@redhat.com>
2710
2711 * rs6000-nat.c (language.h): Include.
2712 (special_regs): Delete this array.
2713 (regmap): New function.
2714 (fetch_register, store_register): Use regmap() to map gdb
2715 register numbers to ptrace register numbers. Also, use
2716 outputs from regmap() to make decisions regarding type of
2717 ptrace() call to make. In particular, don't compare against
2718 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2719 (fetch_inferior_registers, store_inferior_registers): Where
2720 possible, obtain register numbers from tdep struct. Don't
2721 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2722 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2723 (LAST_UISA_SP_REGNUM): Delete.
2724
11bf77db
KB
27252002-07-25 Kevin Buettner <kevinb@redhat.com>
2726
2727 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2728 (fetch_registers, store_register, fetch_core_registers): Don't
2729 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2730 regcache_collect() as appropriate.
2731 (find_toc_address): Format hex address with local_hex_string().
2732
06afebeb
AC
27332002-07-25 Andrew Cagney <ac131313@redhat.com>
2734
2735 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2736 bfd/elf32-frv.c.
2737
8c554d79
TT
27382002-07-24 Tom Tromey <tromey@redhat.com>
2739
2740 * jv-exp.y: Marked all strings with _().
2741 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2742 internal_error.
2743 (MethodInvocation, CastExpression, parse_number, yyerror,
2744 java_type_from_name, push_expression_name, yylex): Typo fixes.
2745
e4c242d9
DJ
27462002-07-24 Daniel Jacobowitz <drow@mvista.com>
2747
2748 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2749 (tee_file_flush, tee_file_write, tee_file_fputs)
2750 (tee_file_isatty): New.
2751 * ui-file.h (tee_file_new): Add prototype.
2752
ebf56fd3
AS
27532002-07-24 Aidan Skinner <aidan@velvet.net>
2754
2755 * ada-lang.c: Change k&r style function definitions to prototyped
2756 form.
2757 * ada-typeprint.c: Change k&r style function definitions to prototyped
2758 form.
2759 * ada-valprint.c: Change k&r style function definitions to prototyped
2760 form.
2761
7fb623f7
AC
27622002-07-24 Andrew Cagney <cagney@redhat.com>
2763
2764 * README: Remove reference to remote-bug.
2765 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2766 remote-bug.c.
2767 (m88k-nat.o): Delete rule.
2768 (m88k-tdep.o): Delete rule.
2769 (remote-bug.o): Delete rule.
2770 * MAINTAINERS: Mark as obsolete.
2771 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2772 * m88k-tdep.c: Make file obsolete.
2773 * config/m88k/m88k.mh: Ditto.
2774 * config/m88k/delta88v4.mh: Ditto.
2775 * config/m88k/delta88v4.mt: Ditto.
2776 * config/m88k/delta88.mt: Ditto.
2777 * config/m88k/delta88.mh: Ditto.
2778 * remote-bug.c: Ditto.
2779 * config/m88k/tm-delta88.h: Ditto.
2780 * config/m88k/nm-delta88v4.h: Ditto.
2781 * config/m88k/xm-delta88.h: Ditto.
2782 * config/m88k/xm-dgux.h: Ditto.
2783 * config/m88k/tm-m88k.h: Ditto.
2784 * config/m88k/nm-m88k.h: Ditto.
2785 * config/m88k/tm-delta88v4.h: Ditto.
2786 * m88k-nat.c: Ditto.
2787 * cxux-nat.c: Ditto.
2788 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2789 and m88*-*-* obsolete.
2790 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2791 m88*-*-* obsolete.
2792
37611a2b
AC
27932002-07-24 Andrew Cagney <cagney@redhat.com>
2794
2795 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2796 constant. Same for local pointer variables.
2797 (extract_signed_integer): Ditto.
2798 * defs.h (extract_unsigned_integer): Update.
2799 (extract_signed_integer): Update.
2800
1aaa5f99
AC
28012002-07-24 Andrew Cagney <cagney@redhat.com>
2802
2803 * regcache.c (regcache_raw_write): Change buf parameter to a
2804 constant void pointer.
2805 (regcache_raw_read): Change buf parameter to a void pointer.
2806 (legacy_write_register_gen): Change myaddr parameter a constant
2807 void pointer.
2808 (supply_register): Change val parameter to a const void pointer.
2809 * regcache.h (regcache_raw_write): Update declaration.
2810 (regcache_raw_read): Update declaration.
2811 (supply_register): Update declaration.
2812
b4f5539f
TT
28132002-07-24 Tom Tromey <tromey@redhat.com>
2814
2815 * defs.h (gdb_readline_wrapper): Declare.
2816 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2817 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2818 * top.c (gdb_readline_wrapper): New function.
2819 (command_line_input): Use it.
2820
0818c12a
AC
28212002-07-24 Andrew Cagney <cagney@redhat.com>
2822
2823 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2824 regcache_read and regcache_write.
2825 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2826 * regcache.c: Update.
2827 * sh-tdep.c (sh64_push_arguments): Update comment.
2828 (sh_pseudo_register_read): Update.
2829 (sh_pseudo_register_write): Update.
2830 (sh4_register_read): Update.
2831 (sh4_register_write): Update.
2832 (sh64_pseudo_register_read): Update.
2833 (sh64_pseudo_register_write): Update.
2834 (sh64_register_read): Update.
2835 (sh64_register_write): Update.
2836 * i386-tdep.c (i386_extract_return_value): Update.
2837 (i386_extract_struct_value_address): Update.
2838 (i386_extract_return_value): Update.
2839 * blockframe.c (generic_read_register_dummy): Update.
2840 (generic_call_dummy_register_unwind): Update
2841 * infrun.c (write_inferior_status_register): Update.
2842
f7321c06
JB
28432002-07-23 Jim Blandy <jimb@redhat.com>
2844
2845 * parser-defs.h (expression_context_pc): Make this extern.
2846 (Thanks to Michael Snyder.)
2847
2037aebb
AC
28482002-07-23 Andrew Cagney <ac131313@redhat.com>
2849
2850 GDB 5.2.1 released from 5.2 branch.
2851 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2852 * README: Update to mention 5.2.1.
2853
66504d44
MS
28542002-07-23 Mark Salter <msalter@redhat.com>
2855
2856 * remote.c (remote_read_bytes): Fix check for error.
2857
27bae383
KB
28582002-07-22 Kevin Buettner <kevinb@redhat.com>
2859
2860 * aix-thread.c (language.h): Include.
2861 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2862 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2863 Print newlines at end of debug messages.
2864 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2865 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2866
28672002-07-22 Kevin Buettner <kevinb@redhat.com>
2868
2869 * aix-thread.c (ppc-tdep.h): Include.
2870 (special_register_p): New function.
2871 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2872 (store_regs_user_thread): Use register number information from
2873 gdbarch_tdep struct instead of hardcoded offsets relative to
2874 FIRST_UISA_SP_REGNUM.
2875 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2876 special_register_p() instead of using FPLAST_REGNUM and
2877 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2878 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2879 will be MQ's register number.
2880
28812002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2882
2883 * aix-thread.c (ops): Rename to aix_thread_ops.
2884 (base_ops): Rename to base_target.
2885 (ops_attach): Rename to aix_thread_attach.
2886 (ops_detach): Rename to aix_thread_detach.
2887 (ops_resume): Rename to aix_thread_detach.
2888 (ops_wait): Rename to aix_thread_wait.
2889 (ops_kill): Rename to aix_thread_kill.
2890 (init_ops): Rename to init_aix_thread_ops.
2891 (ops_fetch_register): Rename to aix_thread_fetch_register.
2892 (ops_store_register): Rename to aix_thread_store_register.
2893 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2894 (ops_thread_alive): Rename to aix_thread_thread_alive.
2895 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2896 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2897 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2898 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2899 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2900 (store_regs_lib): Rename to store_regs_user_thread.
2901 (store_regs_kern): Rename to store_regs_kernel_thread.
2902
27bae383 29032002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2904
2905 * aix-thread.c (ops_prepare_to_store): Eliminate.
2906 (init_ops): Don't initialize ops.prepare_to_store.
2907 (store_regs_kern): Pre-fetch register buffers from child,
2908 because some registers may not be in the cache. Copy
2909 regs from register cache only if they are cached.
2910 (store_regs_lib): Copy regs from register cache only
2911 if they are cached.
2912 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2913 fill_gprs64): Ditto.
2914
61c5da0b
KB
29152002-07-22 Kevin Buettner <kevinb@redhat.com>
2916
2917 * aix-thread.c (gdb_assert.h): Include.
2918 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2919 register sizes (from register cache) match size of buffer holding
2920 register data.
2921 (fill_sprs32): Change parameter types to match those in the ptrace()
2922 buffer.
2923 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2924 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2925
29262002-07-22 Michael Snyder <msnyder@redhat.com>
2927
2928 * aix-thread.c (supply_sprs64): Cosmetic change.
2929 (supply_sprs32): Cosmetic change.
2930 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2931 (fill_sprs64): Use regcache_collect instead of read_register.
2932 (store_regs_lib): Use regcache_collect instead of
2933 read_register. Use fill_sprs32 instead of fill_sprs64,
2934 if debugging a 32-bit architecture.
2935 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2936 out of the register cache, instead of passing a pointer into
2937 the register cache directly to ptrace. Use regcache_collect
2938 insteaad of read_register.
2939 (ops_prepare_to_store): Use target_read_registers instead
2940 of read_register_bytes.
2941
36479eb1
AS
29422002-07-20 Aidan Skinner <aidan@velvet.net>
2943
2944 * MAINTAINERS: Add self under write after approval.
2945
80ae6ee2
AS
29462002-07-20 Aidan Skinner <aidan@velvet.net>
2947
2948 * ada-tasks.c: Change k&r style function definitions to prototyped
2949 form.
2950
8a8ab2b9
AC
29512002-07-19 Andrew Cagney <ac131313@redhat.com>
2952
2953 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2954 * x86-64-tdep.c: Include "objfiles.h".
2955 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2956 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2957
fb16b900
ML
29582002-07-17 Michal Ludvig <michal@suse.cz>
2959
2960 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2961 (update_context): Initialise cfa variable.
2962
0fe7bf7b
MS
29632002-07-17 Michael Snyder <msnyder@redhat.com>
2964
2965 * aix-thread.c: Shorten some long lines.
2966 Bring comments into line with code spec.
2967
488f131b
JB
29682002-07-18 Joel Brobecker <brobecker@gnat.com>
2969
2970 * infrun.c: Re-indent using gdb_indent.sh.
2971
46c415d2
JB
29722002-07-18 Joel Brobecker <brobecker@gnat.com>
2973
2974 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2975 Leave the indentation temporarily untouched, to minimize the diffs.
2976
cdecafbe
EZ
29772002-07-18 Elena Zannoni <ezannoni@redhat.com>
2978
2979 * stabsread.c: Make os9k sections of the code obsolete,
2980 for real this time.
2981 * stabsread.h: Make os9k sections of the code obsolete.
2982
7b6aa020
ML
29832002-07-18 Michal Ludvig <mludvig@suse.cz>
2984
09ec9b38
ML
2985 * linux-low.c (regsets_store_inferior_registers): Add free()
2986 at the end of a loop to prevent memory leak.
2987 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2988 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2989 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2990 line a comment.
4894ac5d 2991 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2992
233282cd
JB
29932002-07-17 Jim Blandy <jimb@redhat.com>
2994
2995 * macrocmd.c (info_macro_command): Remove newline from error
2996 message.
2997
7b6aa020 29982002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2999
3000 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3001 (sh_gdbarch_init): Use it for sh-dsp.
3002
f7ef9339
KB
30032002-07-16 Kevin Buettner <kevinb@redhat.com>
3004
3005 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3006 64-bit DWARF2 format.
3007
8dd72958
JB
30082002-07-16 Joel Brobecker <brobecker@gnat.com>
3009
3010 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3011 <sys/proc.h> when not available.
3012
a99a9e1b
AC
30132002-07-16 Andrew Cagney <ac131313@redhat.com>
3014
3015 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3016 * stabsread.c: Make os9k sections of the code obsolete.
3017 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3018 * config/i386/i386os9k.mt: Make file obsolete.
3019 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3020 (COMMON_OBS): Remove os9kread.o
3021 (SFILES): Remove os9kread.c.
3022 (os9kread.o, remote-os9k.o): Make target obsolete.
3023 * remote-os9k.c: Make file obsolete.
3024 * os9kread.c: Make file obsolete.
3025 * Makefile.in
3026
7a3085c1
AC
30272002-07-16 Andrew Cagney <ac131313@redhat.com>
3028
3029 * NEWS: Mention that the FR30 has been made obsolete.
3030 * fr30-tdep.c: Make file obsolete.
3031 * config/fr30/tm-fr30.h: Ditto.
3032 * config/fr30/fr30.mt: Ditto.
3033 * configure.tgt: Make fr30-*-elf obsolete.
3034 * MAINTAINERS: Make fr30-elf obsolete.
3035
28a93f5a
PM
30362002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3037
3038 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3039 found is not inside a section.
3040
be006b8b
KB
30412002-07-15 Kevin Buettner <kevinb@redhat.com>
3042
3043 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3044 strerror().
3045 (pdc_realloc): Use xrealloc() instead of realloc().
3046
14fa3751
KB
30472002-07-15 Kevin Buettner <kevinb@redhat.com>
3048
3049 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3050 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3051 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3052 macros.
3053
42cc437f
KB
30542002-07-15 Kevin Buettner <kevinb@redhat.com>
3055
3056 * aix-thread.c (ptrace_check): Eliminate goto.
3057 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3058 problem.
3059
8e2c28d4
KB
30602002-07-15 Kevin Buettner <kevinb@redhat.com>
3061
3062 * aix-thread.c (gdbcmd.h): Include.
3063 (DEBUG, DBG, DBG2, dbg): Eliminate.
3064 (debug_aix_thread): New static global.
3065 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3066 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3067 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3068 invocations to DBG and DBG2 macros to test against
3069 ``debug_aix_thread'' and call fprintf_unfiltered().
3070 (_initialize_aix_thread): Add new command "set debug aix-thread".
3071
30413464
AC
30722002-07-15 Andrew Cagney <ac131313@redhat.com>
3073
3074 From Gerhard Tonn <TON@de.ibm.com>:
3075 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3076 instead of supply_register.
3077
7c43edc1
AC
30782002-07-15 Andrew Cagney <ac131313@redhat.com>
3079
3080 * dwarf2cfi.c: Include "gdb_assert.h".
3081 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3082 non-NULL.
3083 (update_context): Do not use __func__. Add missing ``break''.
3084 (update_context): Do not use __func__.
3085
9364a0ef
EZ
30862002-07-15 Elena Zannoni <ezannoni@redhat.com>
3087
3088 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3089 and its setting. Set gdbarch instruction printing functions
3090 directly. For non-rs6000 case use new function
3091 gdb_print_insn_powerpc.
3092 (gdb_print_insn_powerpc): New function.
3093
3fbeef0b
AC
30942002-07-13 Andrew Cagney <ac131313@redhat.com>
3095
92eb23c5 3096 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3097 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3098 * configure.tgt: Mark d30v-*-* as obsolete.
3099 * d30v-tdep.c: Mark file as obsolete.
3100 * config/d30v/d30v.mt: Ditto.
3101 * config/d30v/tm-d30v.h: Ditto.
3102
aacb1f0a
AS
31032002-07-13 Aidan Skinner <aidan@velvet.net>
3104
3105 * ada-tasks.c (add_task_entry): replace calls to
3106 malloc() with xmalloc
3107 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3108
3109 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3110 ada_finish_decode_line_1, all_sals_for_line
3111 ada_breakpoint_rewrite): replace calls to free() with xfree()
3112
c11d79f2
KB
31132002-07-12 Kevin Buettner <kevinb@redhat.com>
3114
3115 From Nicholas Duffek (with minor changes by Martin Hunt,
3116 Louis Hamilton, and Kevin Buettner):
3117 * aix-thread.c: New file.
3118
8e19ed76
PS
31192002-07-12 Petr Sorfa <petrs@caldera.com>
3120
3121 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3122 complaint for invalid attribute class or form.
3123 (read_func_scope): DW_AT_frame_base
3124 better handling of DW_AT_block*.
3125 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3126 better handling of DW_AT_block*.
3127 (read_common_block): DW_AT_location
3128 better handling of DW_AT_block*.
3129 (read_partial_die): DW_AT_location better handling
3130 of DW_AT_block*.
3131 (new_symbol): DW_AT_external better handling of
3132 DW_AT_block*. Proper initialization of variable
3133 "addr".
3134 (attr_form_is_block): New function that returns true
3135 if the attribute's form is of DW_FORM_block*.
3136
295401f7
DJ
31372002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3138
3139 * valops.c (find_method_list): Remove comment about
3140 removed STATIC_MEMFUNCP argument.
3141 (value_find_oload_method_list): Likewise.
3142
e42dc924
KB
31432002-07-12 Kevin Buettner <kevinb@redhat.com>
3144
3145 From Nicholas Duffek:
3146 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3147 target_new_objfile_hook.
3148
6904b546
KB
31492002-07-12 Kevin Buettner <kevinb@redhat.com>
3150
3151 From Nicholas Duffek:
3152 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3153 csect.
3154
53fe9346
AC
31552002-07-12 Andrew Cagney <cagney@redhat.com>
3156
3157 * MAINTAINERS: Mention --enable-sim-build-warnings.
3158 (m68hc11-elf): Disable sim build warnings.
3159 (m32r-elf): Mark as broken obsolete candidate.
3160 (x86_64-linux-gnu): Mark as buildable with -Werror.
3161 (arm-elf): Change -w to ``,'' which enables warnings but not
3162 -Werror.
3163
af5f3db6
AC
31642002-07-12 Andrew Cagney <ac131313@redhat.com>
3165
3166 * bcache.h: Update copyright.
3167 (struct bstring, struct bcache): Move definition to "bcache.c".
3168 Replaced by opaque declaration.
3169 (bcache_xfree): Replace free_bcache.
3170 (bcache_xmalloc, bcache_memory_used): Declare.
3171
3172 * bcache.c: Update copyright.
3173 (struct bstring, struct bcache): Moved to here from "bcache.h".
3174 Update comments.
3175 (bcache_xmalloc, bcache_memory_used): New functions.
3176 (bcache_xfree): Replace function free_bcache.
3177
3178 * Makefile.in (objfiles.o): Add $(bcache_h).
3179 (objfiles_h): Remove $(bcache_h).
3180 (symfile.o): Add $(bcache_h).
3181
3182 * symmisc.c: Update copyright.
3183 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3184 (print_objfile_statistics): Use bcache_memory_used.
3185
3186 * symfile.c: Include "bcache.h".
3187 (reread_symbols): Use bcache_xfree.
3188 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3189 (add_psymbol_to_list): Pass psymbol_cache by value.
3190 (add_psymbol_with_dem_name_to_list): Ditto.
3191
3192 * objfiles.h: Update copyright.
3193 (struct bcache): Declare opaque. Do not include "bcache.h".
3194 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3195 bcache'' pointers.
3196 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3197
3198 * objfiles.c: Include "bcache.h". Update copyright.
3199 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3200 macro_cache.
3201 (free_objfile): Use bcache_xfree.
3202
444199e7
GS
32032002-07-11 Grace Sainsbury <graces@redhat.com>
3204
3205 * monitor.c (monitor_fetch_register): Make name a constant.
3206 (monitor_store_register): Same.
3207
261397f8
DJ
32082002-07-11 Daniel Jacobowitz <drow@mvista.com>
3209
3210 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3211 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3212 (finish_block) For non-function blocks, hash the symbol table. For
3213 function blocks, mark the symbol table as unhashed.
3214 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3215 (msymbol_hash_iw): Likewise.
3216 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3217 value.
3218 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3219 (lookup_minimal_symbol): Likewise for both.
3220 * symtab.h (struct block): Add `hashtable' flag. Comment the
3221 hashtable.
3222 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3223 (ALL_BLOCK_SYMBOLS): Update.
3224 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3225 (struct symbol): Add `hash_next' pointer.
3226 * symtab.c (lookup_block_symbol): Search using the hash table when
3227 possible.
3228 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3229 (search_symbols, find_addr_symbol): Likewise.
3230
3231 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3232 (read_dst_symtab): Likewise.
3233 * jv-lang.c (get_java_class_symtab): Likewise.
3234 * mdebugread.c: Include "gdb_assert.h".
3235 (shrink_block): Assert that the block being modified is not hashed.
3236 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3237 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3238 symbols.
3239 (dump_symtab): Recognize hashed blocks.
3240 * printcmd.c (print_frame_args): Assert that function blocks do not
3241 have hashed symbol tables.
3242 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3243 (fill_in_ada_prototype, debug_print_block): Likewise.
3244 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3245
6f0eaa01
CV
32462002-07-11 Corinna Vinschen <vinschen@redhat.com>
3247
3248 * stack.c (print_frame): Use result of frame_address_in_block()
3249 instead of fi->pc when evaluating symbols.
3250 (backtrace_command_1): Ditto.
3251
a208b0cb
AC
32522002-07-11 Andrew Cagney <cagney@redhat.com>
3253
3254 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3255 Make static.
3256
3257 * arm-tdep.c (arm_register_name): Make return type constant.
3258
a6b6b089
AC
32592002-07-10 Andrew Cagney <ac131313@redhat.com>
3260
5ae5f592
AC
3261 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3262 prototype.
3263 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3264 * s390-tdep.c (s390_fp_regnum): Ditto.
3265 (s390_read_fp): Ditto.
3266 (s390_pop_frame): Ditto.
3267 (_initialize_s390_tdep): Ditto.
3268 * remote.c (get_remote_state): Ditto.
3269 * procfs.c (mappingflags): Ditto.
3270 * memattr.c (_initialize_mem): Ditto.
3271 * mcore-tdep.c (mcore_pop_frame): Ditto.
3272 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3273 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3274 * language.c (set_case_str): Ditto.
3275 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3276 * frv-tdep.c (new_variant): Ditto.
3277 (frv_stopped_data_address): Ditto.
3278 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3279 (context_alloc): Ditto.
3280 (frame_state_alloc): Ditto.
3281 (unwind_tmp_obstack_init): Ditto.
3282 (unwind_tmp_obstack_free): Ditto.
3283 (cfi_read_fp): Ditto.
3284 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3285 (cris_pop_frame): Ditto.
3286 * c-lang.c (scanning_macro_expansion): Ditto.
3287 (finished_macro_expansion): Ditto.
3288 (c_preprocess_and_parse): Ditto.
3289 * gdbarch.sh: Ditto.
3290 * gdbarch.h, gdbarch.c: Regenerate.
3291 * config/mn10200/tm-mn10200.h: Adjust indentation.
3292 * target.c: Adjust indentation.
3293 * symtab.h: Adjust indentation.
3294 * stabsread.h: Adjust indentation.
3295 * remote-es.c: Adjust indentation.
3296 * os9kread.c: Adjust indentation.
3297
32982002-07-10 Andrew Cagney <ac131313@redhat.com>
3299
a6b6b089
AC
3300 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3301 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3302
a1789893
GS
33032002-07-10 Grace Sainsbury <graces@redhat.com>
3304
3305 * NEWS: Mention m68k, mcore multi-arching.
3306 * MAINTAINERS: Change status of m68k, mcore to reflect
3307 multi-arching.
3308
02f0d45d
DJ
33092002-07-10 Daniel Jacobowitz <drow@mvista.com>
3310
3311 * valops.c (find_overload_match): Free oload_syms.
3312
f15f768e
JB
33132002-07-09 Joel Brobecker <brobecker@gnat.com>
3314
3315 Define HAVE_SYS_PROC_H if sys/proc.h exists
3316 * configure.in: Add check for sys/proc.h
3317 * config.in: Regenerate.
3318 * configure: Regenerate.
3319
902a7139
GS
33202002-07-09 Grace Sainsbury <graces@redhat.com>
3321
3322 * config/m68k/tm-m68k.h: Remove macros wrapped in
3323 #if !GDB_MULTI_ARCH.
3324
a534e424
AC
33252002-07-08 Andrew Cagney <ac131313@redhat.com>
3326
3327 * config.in, configure: Regenerate.
3328
9b94f7bf
MK
33292002-07-08 Mark Kettenis <kettenis@gnu.org>
3330
3331 * dwarf2cfi.c: Include "gcore.h".
3332 (execute_stack_op): Fix implementation of the
3333 DW_OP_deref and DW_OP_deref_size operators by letting do their
3334 lookup in the target.
3335
1d34db41
MK
33362002-07-07 Mark Kettenis <kettenis@gnu.org>
3337
3338 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3339 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3340 tdep->sc_sp_offset.
3341
79d5b63a
DJ
33422002-07-05 Daniel Jacobowitz <drow@mvista.com>
3343
3344 Fix PR gdb/595, gdb/602
3345 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3346 Don't call value_cast, just read the vtable pointer; update comments
3347 to match.
3348
3bb912e8
GS
33492002-07-05 Grace Sainsbury <graces@redhat.com>
3350
3351 * config/mcore/tm-mcore.h: Remove file.
3352 * config/mcore/mcore.mt: Remove definition of TM_FILE
3353 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3354
ca39387d
MK
33552002-07-05 Mark Kettenis <kettenis@gnu.org>
3356
3357 * i386bsd-tdep.c: Include "gdb_string.h".
3358
efdc1108
GS
33592002-07-04 Grace Sainsbury <graces@redhat.com>
3360
3361 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3362 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3363 mcore-tdep.
3364 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3365 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3366 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3367 (RETVAL_REGNUM): Move macros from tm-mcore.h
3368 (mcore_reg_struct_has_addr): New function.
3369 (mcore_gdbarch_init): Added initializations for the macros removed
3370 from tm-mcore.h.
3371
bb21884d
MK
33722002-07-04 Mark Kettenis <kettenis@gnu.org>
3373
3374 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3375 traditonal string branding within the ELF header.
3376
228c6d41
DJ
33772002-07-04 Daniel Jacobowitz <drow@mvista.com>
3378
3379 * symtab.c (remove_params): New function.
3380 (make_symbol_overload_list): Use it instead of cplus_demangle.
3381 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3382
2404952e
MK
33832002-07-04 Mark Kettenis <kettenis@gnu.org>
3384
e5e4acad
MK
3385 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3386
baadce09
MK
3387 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3388 New variables.
3389 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3390 and tdep->sigtramp_end.
3391 * i386obsd-nat.c: New file.
3392 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3393
2404952e
MK
3394 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3395 Don't call get_current_frame().
3396
9b4f1ba7
PM
33972002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3398
3399 * i386-nat.c (child_post_startup_inferior): New function
3400 calling i386_cleanup_dregs if
3401 I386_USE_GENERIC_WATCHPOINTS is defined.
3402 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3403 conditional to acknowledge that i386-nat.c has its
3404 own child_post_startup_inferior function.
3405
c0d1d883
MK
34062002-07-04 Mark Kettenis <kettenis@gnu.org>
3407
00f8375e
MK
3408 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3409 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3410 instead of MAX_REGISTER_RAW_SIZE.
3411 (i386_extract_return_value, i386_extract_struct_value_address):
3412 Convert to use regcache.
3413 (i386_gdbarch_init): Set max_register_raw_size and
3414 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3415 Set extract_return_value and extract_struct_value_address instead
3416 of their deprecated variants.
3417
c0d1d883
MK
3418 Convert i386 target to generic dummy frames.
3419 * i386-tdep.c: Include "symfile.h".
3420 (i386_frameless_signal_p): Consider a function to be frameless if
3421 the pc points at the first instruction of the function.
3422 (i386_frame_chain): Handle (generic) call dummies.
3423 (i386_frame_saved_pc): Likewise.
3424 (i386_frame_init_saved_regs): Remove code dealing with call
3425 dummies on the stack.
3426 (i386_push_dummy_frame): Removed.
3427 (i386_call_dummy_words): Removed.
3428 (i386_fix_call_dummy): Removed.
3429 (i386_push_return_address): New function.
3430 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3431 parameter, and don't call get_current_frame.
3432 (i386_pop_frame): New function.
3433 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3434 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3435 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3436 call_dummy_length to 0, set call_dummy_words to NULL, set
3437 sizeof_call_dummy_words to 0, set fix_call_dummy to
3438 generic_fix_call_dummy, set pc_in_call_dummy to
3439 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3440 generic_push_dummy_frame, set push_return_address to
3441 i386_push_return_address and set frame_chain_valid to
3442 generic_file_frame_chain_valid.
3443
049ee0e4
AC
34442002-07-03 Andrew Cagney <ac131313@redhat.com>
3445
3446 * gdbarch.sh (struct regcache): Add opaque declaration.
3447 (EXTRACT_RETURN_VALUE): New architecture method.
3448 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3449 * gdbarch.h, gdbarch.c: Regenerate.
3450 * arch-utils.c (legacy_extract_return_value): New function.
3451 * arch-utils.h (legacy_extract_return_value): Declare.
3452 * values.c (value_being_returned): Re-enable code handling
3453 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3454 deprecated_grub_regcache_for_registers call to block handling
3455 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3456 (EXTRACT_RETURN_VALUE): Do not define.
3457
4e0d9804
GS
34582002-07-03 Grace Sainsbury <graces@redhat.com>
3459
3460 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3461 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3462 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3463 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3464 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3465 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3466 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3467 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3468 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3469 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3470 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3471 argument so the function fits the prototype in the architecture
3472 vector.
3473 (mcore_pop_frame): Remove argument so the function fits the
3474 prototype. Use get_current_frame instead of the argument.
3475 (mcore_push_arguments): Change type of struct_return so the
3476 function can be used in the architecture vector.
3477 (mcore_store_struct_return): Add.
3478 (mcore_frame_init_saved_regs): Add.
3479 (mcore_gdbarch_init): Add function calls to replace the macros
3480 removed from tm-mcore.h
3481
36160dc4
AC
34822002-07-03 Andrew Cagney <ac131313@redhat.com>
3483
3484 * infcmd.c (print_return_value): Remove compatibility code calling
3485 deprecated_grub_regcache_for_registers.
3486
3487 * values.c: Include "regcache.h".
3488 (value_being_returned): Update. Use
3489 deprecated_grub_regcache_for_registers to extract the register
3490 buffer address.
3491 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3492 ``struct regcache''.
3493 * Makefile.in (values.o): Add dependency on $(regcache_h).
3494
3495 * inferior.h (run_stack_dummy): Change type of second parameter to
3496 a ``struct regcache''.
3497 * valops.c (hand_function_call): Change type of retbuf to ``struct
3498 regcache''. Allocate using regcache_xmalloc, clean using
3499 make_cleanup_regcache_xfree.
3500 * infcmd.c (run_stack_dummy): Update. Use
3501 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3502
3503 * regcache.c (do_regcache_xfree): New function.
3504 (make_cleanup_regcache_xfree): New function.
3505 * regcache.h (make_cleanup_regcache_xfree): Declare.
3506
e64d9b3d
MH
35072002-07-03 Martin M. Hunt <hunt@redhat.com>
3508
4dd79c29
MH
3509 * event-top.c (command_line_handler): Don't read past
3510 beginning of buffer.
e64d9b3d 3511
4dd79c29
MH
35122002-07-03 Martin M. Hunt <hunt@redhat.com>
3513
e64d9b3d
MH
3514 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3515 struct frame_id.
3516 (varobj_create): Store frame_id for root.
3517 (varobj_gen_name): Use xasprintf.
3518 (varobj_update): Save and restore frame using get_frame_id() and
3519 frame_find_by_id().
3520 (create_child): Use xasprintf.
3521 (new_root_variable): Initialize frame_id.
3522 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3523 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3524 to prevent memory leak.
3525
26e6c56a
AC
35262002-07-03 Andrew Cagney <ac131313@redhat.com>
3527
3528 * valops.c (hand_function_call): Move declaration of retbuf to
3529 start of function, allocate using malloc, add a cleanup but before
3530 the inf_status cleanup, cleanup the buffer. Rename local variable
3531 old_chain to inf_status_cleanup.
3532
f436dd25
MH
35332002-07-03 Martin M. Hunt <hunt@redhat.com>
3534
3535 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3536
3537 * cli/cli-decode.c (cmd_func_p): New function.
3538 (cmd_func): New function.
3539
3540 * command.h: Add cmd_func() and cmd_func_p().
3541
4cfe2084
GS
35422002-07-03 Grace Sainsbury <graces@redhat.com>
3543
3544 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3545 (REGISTER_SIZE): Remove.
3546 (MAX_REGISTER_RAW_SIZE): Remove.
3547 (REGISTER_VIRTUAL_TYPE): Remove.
3548 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3549 (REGISTER_NAME): Remove.
3550 (USE_GENERIC_DUMMY_FRAMES): Remove.
3551 (CALL_DUMMY): Remove.
3552 (CALL_DUMMY_START_OFFSET): Remove.
3553 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3554 (CALL_DUMMY_LOCATION): Remove.
3555 (FIX_CALL_DUMMY): Remove.
3556 (CALL_DUMMY_ADDRESS): Remove.
3557 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3558 (SAVE_DUMMY_FRAME_TOS): Remove.
3559 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3560 (mcore_register_virtual_type): New function.
3561 (mcore_register_byte): New function.
3562 (mcore_register_size): New function.
3563 (mcore_register_name): New function.
3564 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3565 macros removed from tm-mcore.h.
3566 (mcore_dump_tdep): Add.
3567 (_initialize_mcore_tdep): Add gdbarch_register call.
3568
4fd667e9
MK
35692002-07-03 Mark Kettenis <kettenis@gnu.org>
3570
3571 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3572 frameless_look_for_prologue, such that we actually call this
3573 function.
3574
42f99ac2
JB
35752002-07-02 Joel Brobecker <brobecker@gnat.com>
3576
3577 * frame.h (frame_address_in_block): New function.
3578
3579 * blockframe.c (frame_address_in_block): New function extracted
3580 from get_frame_block().
3581 (get_frame_block): Use frame_address_in_block().
3582 (block_innermost_frame): Use frame_address_in_block() to match
3583 the frame pc address against the block boundaries rather than
3584 the frame pc directly. This prevents a failure when a frame pc
3585 is actually a return-address pointing immediately after the end
3586 of the given block.
3587
103a1597 35882002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3589
3590 * MAINTAINERS: Add self under write after approval.
3591
35922002-07-02 Grace Sainsbury <graces@redhat.com>
3593
103a1597
GS
3594 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3595 used in architecture vector. The default is
3596 m68k_local_breakpoint_from_pc.
3597 (m68k_local_breakpoint_from_pc): Add.
3598 (enum): Add register numbers from tm-m68k.h.
3599 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3600 vector.
3601 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3602 GDB_MULTI_ARCH_PARTIAL.
3603 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3604 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3605 m68k-tdep.c.
3606 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3607 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3608 to enum in m68k-tdep.c
3609
7a5a0534
JB
36102002-07-02 Joel Brobecker <brobecker@gnat.com>
3611
3612 * solib-osf.c (open_map): Compute the list of shared libraries
3613 loaded by the inferior, rather than the list of libraries loaded
3614 by GDB itself. Otherwise, GDB ends up reading the symbols from
3615 the wrong shared libraries...
3616
6f558d74
MK
36172002-07-02 Mark Kettenis <kettenis@gnu.org>
3618
b7d15bf7
MK
3619 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3620 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3621 macros.
3622 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3623 Remove functions.
3624 (FRAMELESS_SIGNAL): Remove function.
3625 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3626 i386_linux_saved_pc_after_call): Removed.
3627 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3628 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3629 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3630
6bff26de
MK
3631 * i386-tdep.c (i386_frameless_signal_p): New function.
3632 (i386_frame_chain): Deal with frameless signals.
3633 (i386_sigtramp_saved_sp): New function.
3634 (i386_frame_saved_pc): Deal with frameless signals.
3635 (i386_saved_pc_after_call): Make sure the correct value is
3636 returned just after entry into a sigtramp.
3637 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3638 i386fbsd4_sc_sp_offset): New variables.
3639 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3640 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3641 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3642 similiar to what we already did for sc_pc_offset.
3643 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3644 tdep->sc_sp_offset.
3645
6f558d74
MK
3646 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3647
145564b7
ML
36482002-07-02 Michal Ludvig <mludvig@suse.cz>
3649
3650 * config/i386/tm-x86-64linux.h: New.
3651 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3652 definitions.
3653 * config/i386/nm-x86-64.h: Rename to ...
3654 * config/i386/nm-x86-64linux.h: ... this one.
3655 * config/i386/x86-64linux.mh: Reflect the above change.
3656
3a1e71e3
MK
36572002-07-01 Mark Kettenis <kettenis@gnu.org>
3658
21d0e8a4
MK
3659 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3660 with sigcontext_addr. Add sc_sp_offset.
3661 (i386bsd_sigtramp_saved_pc): Remove prototype.
3662 (i386bsd_sicontext_addr): Add prototype.
3663 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3664 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3665 (i386_svr4_sigtramp_saved_pc): Removed.
3666 (i386_svr4_sigcontext_addr): New function.
3667 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3668 Initialize tdep->sigcontext_addr instead. Initialize
3669 tdep->sc_pc_offset and tdep->sc_sp_offset.
3670 (i386_gdbarch_init): Likewise.
3671 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3672 any more.
3673 (i386bsd_sigtramp_saved_pc): Remove function.
3674 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3675 Initialize tdep->sigcontext_addr instead. Initialize
3676 tdep->sc_pc_offset.
3677 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3678 of tdep->sigtramp_saved_pc.
3679 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3680 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3681 instead.
3682
3a1e71e3
MK
3683 * i386-tdep.c (i386_frameless_function_invocation,
3684 i386_frame_num_args, i386_frame_init_saved_regs,
3685 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3686 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3687 i386_extract_return_value, i386_store_return_value,
3688 i386_extract_struct_value_address, i386_register_virtual_type,
3689 i386_register_convertible, i386_register_convert_to_virtual,
3690 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3691 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3692 static.
3693
52e9098c
MK
36942002-07-01 Mark Kettenis <kettenis@gnu.org>
3695
77b13a25
MK
3696 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3697
52e9098c
MK
3698 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3699 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3700 this macro. Include "value.h".
3701
1b372fff
AS
37022002-06-30 Aidan Skinner <aidan@velvet.net>
3703
3704 * ada-exp.tab.c: remove as it's a generated file
3705 * ada-lex.c: remove as it's a generated file
3706
9c5045b5
MK
37072002-06-30 Mark Kettenis <kettenis@gnu.org>
3708
4a93c5bb
MK
3709 * config/i386/tm-i386.h (struct frame_info, struct
3710 frame_saved_regs, struct value, struct type): Remove forward
3711 declarations.
3712
322d4fe0
MK
3713 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3714 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3715 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3716 (FILL_FPXREGSET): Define.
3717
fdd8263d
MK
3718 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3719
482e577b
MK
3720 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3721 i[3456]86-*-netbsd* case.
3722 * config/i386/tm-obsd.h: Removed.
3723 * config/i386/obsd.mt: Removed.
3724 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3725 core-aout.o.
3726 (MH_CFLAGS): Add -DYYDEBUG=0.
3727
6916549a
MK
3728 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3729 i386nbsd_sc_pc_offset on OpenBSD too.
3730
9c5045b5
MK
3731 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3732 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3733 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3734 define.
3735 * i386bsd-tdep.c: Include "arch-utils.h".
3736 (i386bsd_aout_in_solib_call_trampoline): New function.
3737 (i386bsd_init_abi): Set in_solib_call_trampoline to
3738 i386bsd_aout_in_solib_call_trampoline.
3739 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3740 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3741
aa84d1bb
AC
37422002-06-28 Andrew Cagney <ac131313@redhat.com>
3743
3744 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3745 (struct obstack, struct bcache): Add opaque declarations.
3746 * Makefile.in (macrotab_h): Update
3747
b4d83933
AC
37482002-06-28 Andrew Cagney <ac131313@redhat.com>
3749
3750 * blockframe.c (generic_find_dummy_frame): Change return type to
3751 ``struct regcache''.
3752 (struct dummy_frame): Replace field ``registers'' with regcache, a
3753 struct regcache object.
3754 (generic_find_dummy_frame): Update.
3755 (generic_push_dummy_frame): Update. Use regcache_xfree,
3756 regcache_xmalloc and regcache_cpy.
3757 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3758 regcache_xfree.
3759 (deprecated_generic_find_dummy_frame): Update.
3760 (generic_read_register_dummy): Update. Use
3761 regcache_read_as_address.
3762 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3763 (generic_get_saved_register): Update. Use regcache_read.
3764
08c0b5bc
AC
37652002-06-28 Andrew Cagney <ac131313@redhat.com>
3766
3767 * Makefile.in (objfiles_h): Add $(bcache_h).
3768 * objfiles.h: Include "bcache.h".
3769
3770 * Makefile.in (symtab_h): Remove $(bcache_h).
3771 * symtab.h: Do not include "bcache.h".
3772
1f89801a
AC
37732002-06-28 Andrew Cagney <ac131313@redhat.com>
3774
3775 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3776 generic_func_frame_chain_valid.
3777
b9644b58
DB
37782002-06-28 David O'Brien <obrien@FreeBSD.org>
3779
3780 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3781 * config/i386/tm-fbsd.h: Likewise.
3782
dd486634
AC
37832002-06-28 Andrew Cagney <ac131313@redhat.com>
3784
3785 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3786 generic_unwind_get_saved_register.
3787
0b434a00
AC
37882002-06-27 Andrew Cagney <ac131313@redhat.com>
3789
3790 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3791 * regcache.c (supply_register): Add missing argument to
3792 register_buffer call.
3793
f30e5a77
AC
37942002-06-27 Andrew Cagney <ac131313@redhat.com>
3795
3796 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3797 Solaris /bin/grep does not not like it. From Peter Schauer.
3798
9f064c95
TT
37992002-06-26 Tom Tromey <tromey@redhat.com>
3800
3801 * command.h (add_setshow_cmd): Declare.
3802 (add_setshow_cmd_full): Declare.
3803 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3804 returns void. Use add_setshow_cmd_full.
3805 (add_setshow_cmd_full): New function.
3806 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3807 (add_setshow_boolean_cmd): Likewise.
3808
099c7589
JT
38092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3810
3811 * config/vax/tm-vax.h: Protect from multiple inclusion.
3812 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3813 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3814 * config/vax/tm-vaxbsd.h: ...here. New file.
3815 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3816
1d049c5e
JT
38172002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3818
3819 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3820 (BELIEVE_PCC_PROMOTION): Remove.
3821 (AP_REGNUM): Move to...
3822 * config/vax/nm-vax.h: ...here.
3823 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3824 (vax_breakpoint_from_pc): New function.
3825 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3826 and gdbarch_believe_pcc_promotion.
3827
4791e091
JT
38282002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3829
3830 * Makefile.in (vax_tdep_h): Define.
3831 (vax-tdep.o): Use $(vax_tdep_h).
3832 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3833 (vax_dump_tdep): New function.
3834 (_initialize_vax_tdep): Register vax_dump_tdep.
3835 * vax-tdep.h: Include osabi.h.
3836 (struct gdbarch_tdep): New.
3837
da130f98
AC
38382002-06-26 Andrew Cagney <cagney@redhat.com>
3839
3840 * frame.h (deprecated_generic_find_dummy_frame): Rename
3841 generic_find_dummy_frame.
3842 * blockframe.c (generic_find_dummy_frame): Make static.
3843 (deprecated_generic_find_dummy_frame): New function.
3844 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3845 generic_find_dummy_frame with deprecated_find_dummy_frame.
3846 (sh64_nofp_frame_init_saved_regs): Ditto.
3847 (sh_fp_frame_init_saved_regs): Ditto.
3848 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3849 (s390_frame_chain): Ditto.
3850 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3851
6300c360
GS
38522002-06-26 Grace Sainsbury <graces@redhat.com>
3853
3854 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3855 gdbarch vector are at the top.
3856 (NUM_REGS): Remove.
3857 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3858 (FRAME_ARGS_ADDRESS): Remove.
3859 (FRAME_LOCALS_ADDRESS): Remove.
3860 (FRAME_NUM_ARGS): Remove.
3861 (FRAME_ARGS_SKIP): Remove.
3862 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3863 (m68k_gdbarch_init): Add gdbarch initializations for macros
3864 undefined in tm-m68k.h
3865
1c617db8
GS
38662002-06-26 Grace Sainsbury <graces@redhat.com>
3867
3868 * monitor.h: Add the function regname to monitor_ops
3869 structure. This way NUM_REGS does not have to be a constant.
3870 * monitor.c (monitor_fetch_register): Added support for regname
3871 function. The function is called if the array regnames is NULL.
3872 (monitor_store_register): Same.
da130f98
AC
3873 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3874 regnames array.
1c617db8
GS
3875 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3876 cpu32bug_cmds.regname to point to new function.
3877 * abug-rom.c (abug_regname): Same as above.
3878 (init_abug_cmds): Same.
3879 * dbug-rom.c (dbug_regname): Same as above.
3880 (init_dbug_cmds): Same.
3881 * remote-est.c (est_regname): Same.
3882 (init_est_cmds): Same.
3883 * rom68k-rom.c (rom68k_regname): Same.
3884 (init_rom68k_cmds): Same.
3885
ea9365bb
TT
38862002-06-25 Tom Tromey <tromey@redhat.com>
3887
3888 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3889
72cec141
AC
38902002-06-25 Andrew Cagney <cagney@redhat.com>
3891
3892 * infrun.c (stop_registers): Change variable's type to ``struct
3893 regcache'''.
3894 (xmalloc_inferior_status): Delete function.
3895 (free_inferior_status): Delete function.
3896 (normal_stop): Use regcache_cpy.
3897 (struct inferior_status): Change type of fields ``stop_registers''
3898 and ``registers'' to ``struct regcache''.
3899 (write_inferior_status_register): Use regcache_write.
3900 (save_inferior_status): Instead of calling
3901 xmalloc_inferior_status, allocate the inf_status buffer directly.
3902 Use regcache_dup_no_passthrough and regcache_dup to save the
3903 buffers.
3904 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3905 Replace the stop_registers regcache instead of overriding it. Use
3906 regcache_xfree. Instead of calling free_inferior_status, xfree
3907 the buffer directly.
3908 (discard_inferior_status): Use regcache_xfree. Instead of calling
3909 free_inferior_status, xfree the buffer directly.
3910 (build_infrun): Use regcache_xmalloc.
3911 (_initialize_infrun): Delete redundant call to build_infrun.
3912
3913 * Makefile.in (infcmd.o): Add $(regcache_h).
3914
3915 * infcmd.c: Include "regcache.h".
3916 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3917 obtain the address of `stop_registers' register buffer.
3918 (print_return_value): Ditto.
3919
3920 * inferior.h (struct regcache): Add opaque declaration.
3921 (stop_registers): Change variable's declared type to ``struct
3922 regcache''.
3923
defc6f8c
TT
39242002-06-24 Tom Tromey <tromey@redhat.com>
3925
c0e624e7
TT
3926 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3927 * target.c (initialize_targets): Fixed typo in
3928 trust-readonly-sections `show' documentation.
3929
defc6f8c
TT
3930 * main.c: Marked all strings with _().
3931
2b236d82
DH
39322002-06-24 Don Howard <dhoward@redhat.com>
3933
3934 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3935 that means max CORE_ADDR+1.
3936 (lookup_mem_region): Ditto.
3937 (mem_info_command): Ditto.
3938
942dc0e9
GS
39392002-06-24 Grace Sainsbury <graces@redhat.com>
3940
3941 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3942 (REGISTER_BYTES_OK): Remove.
3943 (REGISTER_BYTES): Remove.
3944 (STORE_STRUCT_RETURN): Remove.
3945 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3946 (STORE_RETURN_VALUE): Remove.
3947 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3948 (FRAME_CHAIN): Remove.
3949 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3950 (FRAME_SAVED_PC): Remove.
3951 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3952 (m68k_store_struct_return): Add.
3953 (m68k_deprecated_extract_return_value): Add.
3954 (m68k_deprecated_extract_struct_value_address): Add.
3955 (m68k_store_return_value): Add.
3956 (m68k_frame_chain): Add.
3957 (m68k_frameless_function_invocation): Add.
3958 (m68k_frame_saved_pc): Add.
3959 (m68k_gdbarch_init): added set_gdbarch calls for new
3960 functions and deleted macros.
3961
03c30d4d
TT
39622002-06-23 Tom Tromey <tromey@redhat.com>
3963
3964 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3965 (ALLDEPFILES): Likewise.
3966 (udiheaders): Removed.
3967 (udip2soc.o): Likewise.
3968 (udi2go32.o): Likewise.
3969 (udr.o): Likewise.
3970 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3971
37e71372
AC
39722002-06-22 Andrew Cagney <ac131313@redhat.com>
3973
06a6ac57
AC
3974 * infrun.c (_initialize_infrun): Delete unnecessary call to
3975 build_infrun.
3976
37e71372
AC
3977 * regcache.h: Update comments describing the regcache_cpy family
3978 of functions.
3979 (regcache_save, regcache_restore): Delete declaration.
3980 (regcache_save_no_passthrough): Delete declaration.
3981 (regcache_restore_no_passthrough): Delete declaration.
3982 * regcache.c (regcache_save): Delete function.
3983 (regcache_save_no_passthrough): Delete function.
3984 (regcache_restore): Delete function.
3985 (regcache_restore_no_passthrough): Delete function.
3986
78f6d055
AC
39872002-06-21 Andrew Cagney <ac131313@redhat.com>
3988
3989 * config/m68k/tm-m68k.h: Fix typo.
3990 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3991 (m68k_frame_init_saved_regs): Declare.
3992
78b119cb
JB
39932002-06-21 Jim Blandy <jimb@redhat.com>
3994
3995 Remove some vestiges of Harris 88k support.
3996 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3997 register numbering quirk.
3998 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3999 odd symbols occurring in Harris 88k ELF targets.
4000
0fbb3da7
TT
40012002-06-21 Tom Tromey <tromey@redhat.com>
4002
4003 * gdb_locale.h: New file.
4004 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4005 (defs_h): Added gdb_locale.h.
4006 * configure, config.in: Rebuilt.
4007 * configure.in (PACKAGE): Define.
4008 * defs.h: Include gdb_locale.h.
4009 * main.c (captured_main): Call setlocale, bindtextdomain,
4010 textdomain.
4011
456f8b9d
DB
40122002-06-21 Dave Brolley <brolley@redhat.com>
4013
4014 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4015 * config/frv/frv.mt: New file.
4016 * config/frv/tm-frv.h: New file.
4017 * configure.tgt: Support frv-*-*.
4018 * Makefile.in (frv-tdep.o): New target.
4019 * frv-tdep.c: New file.
4020 * NEWS: Mention frv.
4021
cdd463f9
DB
40222002-06-21 Dave Brolley <brolley@redhat.com>
4023
4024 * MAINTAINERS: Add self to "Write After Approval" list.
4025
5d3ed2e3
GS
40262002-06-21 Grace Sainsbury <graces@redhat.com>
4027
4028 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4029 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4030 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4031 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4032 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4033
4034 * m68k-tdep.c: Include arch-utils.h
4035 (m68k_register_raw_size): Add.
4036 (m68k_register_virtual_size): Add.
4037 (m68k_register_virtual_type): Add.
4038 (m68k_register_name): Add.
4039 (m68k_stack_align): Add.
4040 (m68k_register_byte): Add.
4041 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4042 tm-m68k.h.
4043
7f8e7424
GS
40442002-06-21 Grace Sainsbury <graces@redhat.com>
4045
a2c6a6d5 4046 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4047 m68k_find_saved_regs.
4048 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4049 references to it with frame->saved_regs.
7f8e7424
GS
4050 (m68k_gdbarch_init): Added function calls to initialize the
4051 gdbarch structure.
a2c6a6d5
GS
4052 (m68k_fix_call_dummy): Add.
4053 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4054 (CALL_DUMMY): Remove.
4055 (CALL_DUMMY_LENGTH): Remove.
4056 (CALL_DUMMY_START_OFFSET): Remove.
4057 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4058 (FIX_CALL_DUMMY): Remove.
4059 (PUSH_DUMMY_FRAME): Remove.
4060 (POP_FRAME): Remove.
7f8e7424 4061
f461f5cf
PM
40622002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4063
4064 * parse.c (parse_fprintf): New function used to avoid calls to
4065 fprintf in bison parser generated debug code.
4066 * parser-defs.h: Declaration of new parse_fprintf function.
4067 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4068 Set YYDEBUG to 1 by default.
4069 Set YYFPRINTF as parse_fprintf.
4070
7f0c12ed
ML
40712002-06-21 Michal Ludvig <mludvig@suse.cz>
4072
4073 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4074 encoding anymore.
4075 (pointer_encoding, enum ptr_encoding): New.
4076 (execute_cfa_program): Take care about pointer encoding.
4077 (dwarf2_build_frame_info): Only call parse_frame_info for
4078 .debug_frame and .eh_frame.
4079 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4080 fixed augmentation handling, added relative addressing,
4081 ignore duplicate FDEs. Added comments.
19d833a2 4082 * dwarf2cfi.c: Reindented.
7f0c12ed 4083
87c4a039
EZ
40842002-06-20 Elena Zannoni <ezannoni@redhat.com>
4085
4086 * event-top.c (command_handler): Don't use space_at_cmd_start
4087 unless there is sbrk() on the host. Assign time and space data
4088 to union fields of the appropriate length.
4089
1cf877ad
ML
40902002-06-20 Michal Ludvig <mludvig@suse.cz>
4091
4092 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4093 x86_64_register_name. Return type changed to 'const char *'.
4094 (x86_64_register_name2nr): Rename to x86_64_register_number.
4095 (x86_64_gdbarch_init): Update to reflect the change.
4096 * x86-64-tdep.h: Ditto.
4097 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4098 (supply_fpregset): Ditto.
4099
3fadccb3
AC
41002002-06-19 Andrew Cagney <cagney@redhat.com>
4101
4102 * regcache.h: Update copyright.
4103 (struct regcache, struct gdbarch): Add opaque declarations.
4104 (current_regcache): Declare global variable.
4105 (regcache_read, regcache_write): Add gdbarch parameter.
4106 (regcache_save, regcache_save_no_passthrough)
4107 (regcache_restore, regcache_restore_no_passthrough)
4108 (regcache_dup, regcache_dup_no_passthrough)
4109 (regcache_cpy, regcache_cpy_no_passthrough)
4110 (deprecated_grub_regcache_for_registers)
4111 (deprecated_grub_regcache_for_register_valid)
4112 (regcache_valid_p): Add function declarations.
4113
4114 * regcache.c: Update copyright.
4115 (regcache_descr_handle): New global variable.
4116 (struct regcache_descr): Define.
4117 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4118 (regcache_descr, xfree_regcache_descr): New functions.
4119 (struct regcache): Define.
4120 (regcache_xmalloc, regcache_xfree): New functions.
4121 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4122 (regcache_dup, regcache_dup_no_passthrough): New functions.
4123 (regcache_valid_p, regcache_read_as_address): New functions.
4124 (deprecated_grub_regcache_for_registers): New function.
4125 (deprecated_grub_regcache_for_register_valid): New function.
4126 (current_regcache): New global variable.
4127 (register_buffer): Add regcache parameter. Update calls.
4128 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4129 (read_register_gen, write_register_gen): Update register_buffer
4130 call. Test for legacy_p instead of gdbarch_register_read_p or
4131 gdbarch_register_write_p.
4132 (regcache_collect): Update register_buffer call.
4133 (build_regcache): Rewrite. Use deprecated grub functions.
4134 (regcache_save, regcache_save_no_passthrough): New functions.
4135 (regcache_restore, regcache_restore_no_passthrough): New
4136 functions.
4137 (_initialize_regcache): Create the regcache_data_handle. Swap
4138 current_regcache global variable.
4139
4140 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4141 parameter to regcache_read and regcache_write calls.
4142 (sh4_register_read): Ditto.
4143 (sh64_pseudo_register_read): Ditto.
4144 (sh64_register_read): Ditto.
4145 (sh_pseudo_register_write): Ditto.
4146 (sh4_register_write): Ditto.
4147 (sh64_pseudo_register_write): Ditto.
4148 (sh64_register_write): Ditto.
4149
4150 * defs.h (XCALLOC): Define.
4151
152d9db6
GS
41522002-06-19 Grace Sainsbury <graces@redhat.com>
4153
4154 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4155 * m68k-tdep.c (m68k_gdbarch_init): Added.
4156 (m68k_dump_tdep): Added.
4157
170911c7
DJ
41582002-06-19 Daniel Jacobowitz <drow@mvista.com>
4159
4160 * ada-lang.c (fill_in_ada_prototype): Update comment.
4161
2e4ebe70
DJ
41622002-06-19 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4165 MIPS_ABI_LAST.
4166 (mips_abi_string, mips_abi_strings): New.
4167 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4168 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4169 tdep->mips_abi_string. Honor mips_abi_string. Default to
4170 O32 if no ABI is found.
4171 (mips_dump_tdep): Use mips_abi_strings.
4172 (mips_abi_update): New function.
4173 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4174 ``set mips abi'' and ``show mips abi''. Check the size of
4175 mips_abi_strings.
4176
16775908
AC
41772002-06-19 Andrew Cagney <cagney@redhat.com>
4178
4179 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4180 constant.
4181
5051bfa4 41822002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4183
5051bfa4
JB
4184 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4185 current frame using only the first stack size adjustment. All
4186 subsequent size adjustments are not considered to be part of
4187 the "static" part of the current frame.
4188 Compute the address of the saved registers relative to the
4189 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4190 in use in this frame.
4191
56468235
DH
41922002-06-18 Don Howard <dhoward@redhat.com>
4193
4194 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4195 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4196 suggesting this solution.
4197
0b624158
AC
41982002-06-18 Andrew Cagney <ac131313@redhat.com>
4199
4200 * config/romp/xm-rtbsd.h: Delete file.
4201 * config/romp/rtbsd.mh: Delete file.
4202
221ea385
KS
42032002-06-18 Keith Seitz <keiths@redhat.com>
4204
4205 * breakpoint.c (condition_command): Post breakpoint_modify
4206 when a condition is added to an existing breakpoint.
4207 (commands_command): Likewise for commands.
4208 (set_ignore_count): Likewise for ignore counts.
4209 If no tty, do not simply return, still need to send event
4210 notification.
4211 (ignore_command): Only print a newline if the command came
4212 from a tty.
4213 Don't call breakpoints_changed, since this is now properly
4214 handled by set_ignore_count.
4215
5402eed1
AC
42162002-06-18 Andrew Cagney <cagney@redhat.com>
4217
4218 * MAINTAINERS: Note that cris-elf target can be compiled with
4219 -Werror.
4220 * cris-tdep.c (cris_register_name): Make return type constant.
4221 (cris_breakpoint_from_pc): Ditto.
4222
cc22880b
ML
42232002-06-18 Michal Ludvig <mludvig@suse.cz>
4224
4225 * frame.h (struct frame_info): Change type of context to
4226 'struct context'.
4227
fa88f677
AC
42282002-06-17 Andrew Cagney <cagney@redhat.com>
4229
4230 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4231 pointer.
4232 * gdbarch.h, gdbarch.c: Regenerate.
4233 * config/mips/tm-mips.h (mips_register_name): Update.
4234 * i386-tdep.h (i386_register_name): Update.
4235 * mips-tdep.c (mips_register_name): Update
4236 * alpha-tdep.c (alpha_register_name): Update.
4237 * arch-utils.c (legacy_register_name): Update.
4238 * arch-utils.h (legacy_register_name): Update.
4239 * avr-tdep.c (avr_register_name): Update.
4240 * ia64-tdep.c (ia64_register_name): Update.
4241 * i386-tdep.c (i386_register_name): Update.
4242 * sparc-tdep.c (sparc32_register_name): Update.
4243 (sparc64_register_name): Update.
4244 (sparclite_register_name): Update.
4245 (sparclet_register_name): Update.
4246 * sh-tdep.c (sh_generic_register_name): Update.
4247 (sh_sh_register_name): Update.
4248 (sh_sh3_register_name): Update.
4249 (sh_sh3e_register_name): Update.
4250 (sh_sh_dsp_register_name): Update.
4251 (sh_sh3_dsp_register_name): Update.
4252 (sh_sh4_register_name): Update.
4253 (sh_sh64_register_name): Update.
4254 * s390-tdep.c (s390_register_name): Update.
4255 * rs6000-tdep.c (rs6000_register_name): Update.
4256 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4257 (ns32k_register_name_32382): Update.
4258 * d10v-tdep.c (d10v_ts2_register_name): Update.
4259 (d10v_ts3_register_name): Update.
4260 * xstormy16-tdep.c (xstormy16_register_name): Update.
4261 * vax-tdep.c (vax_register_name): Update.
4262 * v850-tdep.c (v850_register_name): Update.
4263 * m68hc11-tdep.c (m68hc11_register_name): Update.
4264 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4265 (am33_register_name): Update.
4266
ea1e7ef6
GS
42672002-06-17 Grace Sainsbury <graces@redhat.com>
4268
4269 * m68k-tdep.c: Reindented.
4270
9b02dd1b
AC
42712002-06-17 Andrew Cagney <ac131313@redhat.com>
4272
4273 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4274 list of predefined types.
4275
8758dec1
MK
42762002-06-16 Mark Kettenis <kettenis@gnu.org>
4277
b6197528
MK
4278 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4279 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4280 REGISTER_CONVERT_TO_RAW): Remove defines.
4281 (i386_register_virtual_type, i386_register_convertible,
4282 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4283 Remove prototypes.
4284 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4285 macros mentioned above.
4286
82b47e62
MK
4287 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4288 (i386lynx_saved_pc_after_call): Remove prototype.
4289 * i386ly-tdep.c: Include "i386-tdep.h".
4290 (i386lynx_saved_pc_after_call): Make static. Use
4291 read_memory_nobpt instead of read_memory. Use
4292 read_memory_unsigned_integer instead of read_memory_integer.
4293 (i386lynx_init_abi): New function.
4294 (i386lynx_coff_osabi_sniffer): New function.
4295 (_initialize_i386bsd_tdep): New function.
4296
8758dec1
MK
4297 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4298 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4299 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4300 (i386_fix_call_dummy): Remove prototype.
4301 * i386-tdep.c (i386_call_dummy_words): New variable.
4302 (i386_gdbarch_init): Adjust for removal of the
4303 macros mentioned above.
4304
e9e68a56
AC
43052002-06-15 Andrew Cagney <ac131313@redhat.com>
4306
4307 * command.h (add_setshow_auto_boolean_cmd): Replace
4308 add_set_auto_boolean_cmd.
4309 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4310 add_set_auto_boolean_cmd.
4311 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4312 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4313 mask-address'' command.
4314 (show_mask_address): Add cmd parameter.
4315 * remote.c (add_packet_config_cmd): Update. Change type of
4316 set_func and show_func to cmd_sfunc_ftype.
4317 (_initialize_remote): Update `set remote Z-packet'
4318 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4319 (show_remote_protocol_e_packet_cmd): Ditto.
4320 (show_remote_protocol_E_packet_cmd): Ditto.
4321 (show_remote_protocol_P_packet_cmd): Ditto.
4322 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4323 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4324 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4325 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4326 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4327 (show_remote_protocol_Z_packet_cmd): Ditto.
4328 (show_remote_protocol_binary_download_cmd): Ditto.
4329 (show_remote_cmd): Pass NULL to all of above.
4330
fc08ec52
MK
43312002-06-15 Mark Kettenis <kettenis@gnu.org>
4332
4333 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4334 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4335 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4336 POP_FRAME): Remove defines.
4337 (i386_push_arguments, i386_store_struct_return,
4338 i386_extract_return_value, i386_store_return_value,
4339 i386_extract_struct_value_address, i386_push_dummy_frame,
4340 i386_pop_frame): Renove prototypes.
4341 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4342 macros mentioned above.
4343
e707bbc2
AC
43442002-06-15 Andrew Cagney <ac131313@redhat.com>
4345
4346 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4347 add_set_boolean_cmd.
4348 (add_setshow_cmd): New function.
4349 * command.h (add_setshow_boolean_cmd): Replace
4350 add_set_boolean_cmd.
4351 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4352 and ``set rdiromatzero''.
4353 * maint.c (_initialize_maint_cmds): Update commented out code.
4354 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4355 * target.c (initialize_targets): Update `set
4356 trust-readonly-sections'.
4357 * remote.c (_initialize_remote): Update `set remotebreak'.
4358
42fdc8df
MK
43592002-06-15 Mark Kettenis <kettenis@gnu.org>
4360
93924b6b
MK
4361 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4362 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4363 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4364 fit into multi-arch framework.
4365 (i386_breakpoint_from_pc): New function.
4366 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4367 above.
4368
42fdc8df
MK
4369 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4370 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4371 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4372 (i386_frameless_function_invocation, i386_frame_num_args,
4373 i386_frame_init_saved_regs): Remove prototypes.
4374 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4375 macros mentioned above.
4376
9773a94b
AC
43772002-06-15 Andrew Cagney <ac131313@redhat.com>
4378
4379 * cli/cli-decode.c (set_cmd_cfunc): Update.
4380 (set_cmd_sfunc): Update.
4381 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4382 (set_cmd_sfunc, set_cmd_cfunc): Update.
4383 * cli/cli-decode.h: Update.
4384
6e157172
MK
43852002-06-15 Mark Kettenis <kettenis@gnu.org>
4386
4387 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4388 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4389
7f19b9a2
AC
43902002-06-15 Andrew Cagney <ac131313@redhat.com>
4391
4392 * defs.h (auto_boolean): Declare enum.
4393 * command.h (cmd_auto_boolean): Delete enum.
4394 * mips-tdep.c (mask_address_var): Update.
4395 (mips_mask_address_p): Update.
4396 (show_mask_address): Update.
4397 * remote.c (struct packet_config): Update.
4398 (update_packet_config): Update.
4399 (show_packet_config_cmd): Update.
4400 (packet_ok): Update.
4401 (add_packet_config_cmd): Update.
4402 (_initialize_remote):
4403 * command.h: Update.
4404 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4405 (do_setshow_command): Update.
4406 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4407 * cli/cli-decode.h: Update.
4408
1cf88de5
MK
44092002-06-15 Mark Kettenis <kettenis@gnu.org>
4410
22ba8cf2
MK
4411 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4412 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4413 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4414 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4415 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4416 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4417
762c5349
MK
4418 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4419 list of DJGPP COFF targets.
4420
091198bb
MK
4421 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4422 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4423 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4424 (FP0_REGNUM): Remove define.
4425 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4426 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4427 (i386_register_virtual_size): Remove protoype.
4428 * i386-tdep.c (i386_register_virtual_size): Removed.
4429 (i386_extract_return_value, i386_store_return_value): Use
4430 FP0_REGNUM instead of NUM_FREGS to determine whether the
4431 floating-point registers are available.
4432 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4433 Adjust for removal of macros mentioned above.
4434
44352002-06-15 Mark Kettenis <kettenis@gnu.org>
4436
fcc9bf01
MK
4437 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4438 comments.
4439 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4440 Remove prototypes.
4441 (supply_gregset, fill_gregset): Remove use of register keyword and
4442 remove declaration for regmap. Use I386_NUM_GREGS instead of
4443 NUM_REGS and NUM_FREGS.
4444 (FPREGSET_FSAVE_OFFSET): Remove.
4445 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4446 NUM_FREGS to determine whether the floating-point registers are
4447 available.
4448
65e78234
MK
4449 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4450 gnu_store_registers): Replace usage of NUM_GREGS with
4451 I386_NUM_GREGS.
4452
98df6387
MK
4453 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4454 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4455 usage of NUM_GREGS with I386_NUM_GREGS.
4456
099a9414
MK
4457 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4458
57976e88
MK
4459 * i386bsd-nat.c: Include "i386-tdep.h".
4460 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4461 I386_NUM_GREGS.
4462
b335f4a6
MK
4463 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4464 and associated comment. They no longer make any sense, since we
4465 don't use this file anymore on Linux.
4466
1cf88de5
MK
4467 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4468 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4469 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4470 elements in these arrays.
4471 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4472 MAX_NUM_REGS.
4473
daa66587
MK
44742002-06-15 Mark Kettenis <kettenis@gnu.org>
4475
4476 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4477 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4478
26e9b323
AC
44792002-06-14 Andrew Cagney <cagney@redhat.com>
4480
4481 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4482 EXTRACT_RETURN_VALUE.
4483 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4484 EXTRACT_STRUCT_VALUE_ADDRESS.
4485 * gdbarch.h, gdbarch.c: Regenerate.
4486
4487 * values.c (value_being_returned): Handle
4488 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4489 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4490
4491 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4492 * arm-tdep.c (arm_gdbarch_init): Update.
4493 * avr-tdep.c (avr_gdbarch_init): Update.
4494 * cris-tdep.c (cris_gdbarch_init): Update.
4495 * d10v-tdep.c (d10v_gdbarch_init): Update.
4496 * ia64-tdep.c (ia64_gdbarch_init): Update.
4497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4498 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4499 * s390-tdep.c (s390_gdbarch_init): Update.
4500 * sh-tdep.c (sh_gdbarch_init): Update.
4501 * s390-tdep.c (s390_gdbarch_init): Update.
4502 * sparc-tdep.c (sparc_gdbarch_init): Update.
4503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4504 * v850-tdep.c (v850_gdbarch_init): Update.
4505 * vax-tdep.c (vax_gdbarch_init): Update.
4506 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4508
4509 * config/arc/tm-arc.h: Update.
4510 * config/d30v/tm-d30v.h: Update.
4511 * config/fr30/tm-fr30.h: Update.
4512 * config/h8300/tm-h8300.h: Update.
4513 * config/h8500/tm-h8500.h: Update.
4514 * config/i386/tm-i386.h: Update.
4515 * config/i386/tm-ptx.h: Update.
4516 * config/i386/tm-symmetry.h: Update.
4517 * config/i960/tm-i960.h: Update.
4518 * config/m32r/tm-m32r.h: Update.
4519 * config/m68k/tm-delta68.h: Update.
4520 * config/m68k/tm-linux.h: Update.
4521 * config/m68k/tm-m68k.h: Update.
4522 * config/m88k/tm-m88k.h: Update.
4523 * config/mcore/tm-mcore.h: Update.
4524 * config/mips/tm-mips.h: Update.
4525 * config/mn10200/tm-mn10200.h: Update.
4526 * config/pa/tm-hppa.h: Update.
4527 * config/pa/tm-hppa64.h: Update.
4528 * config/sparc/tm-sp64.h: Update.
4529 * config/sparc/tm-sparc.h: Update.
4530 * config/sparc/tm-sparclet.h: Update.
4531 * config/z8k/tm-z8k.h: Update.
4532
5179e78f
AC
45332002-06-14 Andrew Cagney <cagney@redhat.com>
4534
4535 * Makefile.in (i386_linux_tdep_h): Define.
4536 (i386_tdep_h, i387_tdep_h): Define.
4537 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4538 $(i386_tdep_h) and $(i387_tdep_h).
4539 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4540
8201327c
MK
45412002-06-14 Mark Kettenis <kettenis@gnu.org>
4542
edf393ac
MK
4543 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4544 Already covered by the default.
4545
896fb97d
MK
4546 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4547 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4548 (i386_gdbarch_init): Initialize long_double_format and long_double
4549 bit.
4550
8201327c
MK
4551 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4552 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4553 Move these to ...
4554 * config/i386/i386sol2.mh: ... here.
4555 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4556 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4557 (SIGCONTEXT_PC_OFFSET): Remove define.
4558 (IN_SIGTRAMP): Remove define.
4559 * i386-sol2-tdep.c: New file.
4560
4561 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4562 * config/i386/tm-i386nw.h: Removed.
4563
4564 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4565 USE_STRUCT_CONVENTION): Remove defines.
4566 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4567 (get_longjmp_target): Remove prototype.
4568 (IN_SIGTRAMP): Remove define.
4569 (i386bsd_in_sigtramp): Remove prototype.
4570 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4571 function. Update comment accordingly
4572 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4573 (FRAME_SAVED_PC): Remove define.
4574 (i386bsd_frame_saved_pc): Remove prototype.
4575 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4576 GET_LONGJMP_TARGET): Remove defines.
4577 (get_longjmp_target): Remove prototype.
4578 (IN_SIGTRAMP): Remove define.
4579 (i386bsd_in_sigtramp): Remove prototype.
4580 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4581 function. Update comment accordingly
4582 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4583 (FRAME_SAVED_PC): Remove define.
4584 (i386bsd_frame_saved_pc): Remove prototype.
4585 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4586 Remove prototype.
4587 (USE_STRUCT_CONVENTION): Remove prototype.
4588 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4589 declaration.
4590 (_initialize_i386bsd_nat): Revise logic to determine some
4591 constants at compile time when compiling a native GDB. Warn if
4592 things don't match up with what we expect.
4593 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4594 Remove variables.
4595 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4596 to use date stored in `struct gdbarch_tdep'.
4597 (i386bsd_sigcontext_offset): Remove varaible.
4598 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4599 stored in `struct gdbarch_tdep'.
4600 (i386bsd_frame_saved_pc): Make static.
4601 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4602 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4603 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4604 i386fbsd4_sc_pc_offset): New variables.
4605 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4606 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4607 functions.
4608 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4609 functions.
4610 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4611 Modify the value of i386fbsd_sigtramp_start and
4612 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4613 i386fbsd_sigtramp_end.
4614 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4615 function.
4616
4617 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4618 define to i386-linux-tdep.h.
4619 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4620 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4621 defines.
4622 (i386_linux_register_name, i386_linux_register_byte,
4623 i386_linux_register_raw_size): Remove prototypes.
4624 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4625 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4626 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4627 TARGET_WRITE_PC): Remove defines.
4628 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4629 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4630 i386_linux_write_pc): Remove prototypes.
4631 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4632 (get_longjmp_target): Remove prototype.
4633 * i386-linux-tdep.h: New file.
4634 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4635 * i386-linux-tdep.c: Include "i386-tdep.h" and
4636 "i386-linux-tdep.h".
4637 (i386_linux_register_name, i386_linux_register_byte,
4638 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4639 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4640 Make static.
4641 (i386_linux_init_abi): New function.
4642 (_initialize_i386_linux_tdep): New function.
4643
4644 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4645 (i386_saved_pc_after_call): Remove prototype.
4646 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4647 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4648 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4649 (i386_register_name, i386_stab_reg_to_regnum,
4650 i386_dwarf_reg_to_regnum): Remove prototypes.
4651 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4652 SIZEOF_SSE_REGS): Remove defines.
4653 (REGISTER_BYTES): Remove define.
4654 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4655 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4656 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4657 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4658 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4659 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4660 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4661 (get_longjmp_target): Remove prototype.
4662 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4663 (sigtramp_saved_pc): Remove define.
4664 (i386v4_sigtramp_saved_pc): Remove prototype.
4665 * config/i386/tm-go32.h (FRAME_CHAIN,
4666 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4667 (i386go32_frame_saved_pc): Remove prototype.
4668 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4669 (get_longjmp_target): Remove prototype.
4670 * i386-tdep.h: Include "osabi.h".
4671 (enum i386_abi): Removed.
4672 (enum struct_return): New enum.
4673 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4674 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4675 sc_pc_offset members.
4676 (i386_gdbarch_register_os_abi): Remove prototype.
4677 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4678 I386_SSE_NUM_REGS): New defines.
4679 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4680 I386_SSE_SIZEOF_REGS): New defines.
4681 (i386_register_name, i386_register_byte, i386_register_raw_size):
4682 New prototypes.
4683 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4684 (i386bsd_sigtramp_saved_pc): New prototype.
4685 * i386-tdep.c: Don't include "elf-bfd.h".
4686 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4687 i386_frame_chain, i386_saved_pc_after_call): Make static.
4688 (i386_frame_saved_pc): Rewrite to call architecture dependent
4689 function to deal with signal handlers. Make static.
4690 (i386go32_frame_saved_pc): Removed.
4691 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4692 Removed.
4693 (i386_get_longjmp_target): New function.
4694 (default_struct_convention, pcc_struct_convention,
4695 reg_struct_convention, valid_conventions, struct_convention): New
4696 variables.
4697 (i386_use_struct_convention): New function.
4698 (i386v4_sigtramp_saved_pc): Renamed to
4699 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4700 (i386_pc_in_sigtramp): New function.
4701 (i386_abi_names): Removed.
4702 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4703 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4704 Removed.
4705 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4706 i386_gdbarch_register_os_abi): Removed.
4707 (struct i386_abi_handler): Removed.
4708 (i386_abi_handler_list): Removed.
4709 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4710 functions.
4711 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4712 i386_nw_init_abi): New functions.
4713 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4714 Use set_gdbarch_xxx() calls instead of relying on macros for a
4715 number of calls.
4716 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4717 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4718 Register the various architecture variants defined in this file.
4719
ad2f7632
DJ
47202002-06-14 Daniel Jacobowitz <drow@mvista.com>
4721
4722 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4723 (struct main_type): Remove arg_types member. Update comments for
4724 struct field.
4725 (TYPE_ARG_TYPES): Remove.
4726 (TYPE_FN_FIELD_ARGS): Update.
4727 (smash_to_method_type): Update prototype.
4728
4729 * c-typeprint.c (cp_type_print_method_args): Take method type
4730 instead of argument list. Use new argument layout. Simplify.
4731 (c_type_print_args): Use new argument layout. Simplify.
4732 (c_type_print_base): Update call to cp_type_print_method_args.
4733 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4734 argument; use die->type instead. Update call to
4735 smash_to_method_type.
4736 (read_structure_scope): Update call to dwarf2_add_member_fn.
4737 * gdbtypes.c (allocate_stub_method): Update comment.
4738 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4739 Use new argument layout.
4740 (check_stub_method): Use new argument layout. Don't count
4741 void as an argument.
4742 (print_arg_types): Update comments. Use new argument layout.
4743 (recursive_dump_type): Don't print arg_types member.
4744 * hpread.c (hpread_read_struct_type): Use new argument layout.
4745 (fixup_class_method_type): Likewise.
4746 (hpread_type_lookup): Likewise.
4747 * stabsread.c (read_type): Update calls to read_args and
4748 smash_to_method_type.
4749 (read_args): Use new argument layout. Simplify.
4750 * valops.c (typecmp): Use new argument layout. Update parameters
4751 and comments. Simplify.
4752 (hand_function_call): Use new argument layout.
4753 (search_struct_method): Update call to typecmp.
4754 (find_overload_match): Use new argument layout.
4755
6da02953
DJ
47562002-06-13 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * NEWS: Mention multithreaded debug support for gdbserver.
4759
519b2366
DJ
47602002-06-13 Daniel Jacobowitz <drow@mvista.com>
4761
4762 * MAINTAINERS: Mention NEWS.
4763
6c0d6680
DJ
47642002-06-13 Daniel Jacobowitz <drow@mvista.com>
4765
4766 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4767 (struct mips_objfile_private, compare_pdr_entries): New.
4768 (non_heuristic_proc_desc): Read the ".pdr" section if it
4769 is present.
4770
6529d2dd
AC
47712002-06-12 Andrew Cagney <ac131313@redhat.com>
4772
4773 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4774 (arm_debug): New static variable.
4775 (_initialize_arm_tdep): Add ``set debug arm'' command.
4776
26216b98
AC
47772002-06-12 Andrew Cagney <ac131313@redhat.com>
4778
4779 * Makefile.in (sim_arm_h): Define.
4780 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4781 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4782 (arm_register_sim_regno): New function, map an internal REGNUM
4783 onto a simulator register number.
4784 (arm_gdbarch_init): Set register_sim_regno.
4785
814b3ba0
AH
47862002-06-09 Aldy Hernandez <aldyh@redhat.com>
4787
4788 * MAINTAINERS: Add self.
4789
475b0867
JB
47902002-06-11 Jim Blandy <jimb@redhat.com>
4791
919d772c
JB
4792 * source.c (source_info): Mention whether the symtab has
4793 information about preprocessor macros.
4794
475b0867
JB
4795 Call the command `info macro', not `show macro'.
4796 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4797 Fix error message.
4798 (_initialize_macrocmd): Register `info_macro_command' in
4799 `infolist', not `showlist'.
4800
9e364162
DJ
48012002-06-11 Daniel Jacobowitz <drow@mvista.com>
4802
4803 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4804 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4805 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4806 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4807 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4808 unconditionally.
4809 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4810 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4811 (_initialize_mips_tdep): Remove dead code.
4812 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4813 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4814 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4815 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4816 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4817 MIPS_LAST_FP_ARG_REGNUM): Remove.
4818
23aa4c72
ML
48192002-06-11 Michal Ludvig <mludvig@suse.cz>
4820
4821 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4822 (unwind_tmp_obstack_free, parse_frame_info)
4823 (update_context, cfi_read_fp, cfi_write_fp)
4824 (cfi_frame_chain, cfi_init_extra_frame_info)
4825 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4826 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4827
70eb15a4
CV
48282002-06-11 Corinna Vinschen <vinschen@redhat.com>
4829
4830 * v850-tdep.c (v850_type_is_scalar): New function.
4831 (v850_use_struct_convention): Match current gcc implementation
4832 as close as possible.
4833 (v850_push_arguments): Fix stack_offset handling. Don't write
4834 struct_addr into register. This is done by v850_store_struct_return.
4835 (v850_extract_return_value): Care for structs.
4836 (v850_store_return_value): Ditto.
4837 (v850_store_struct_return): Actually write address.
4838
482a4d06
ML
48392002-06-11 Michal Ludvig <mludvig@suse.cz>
4840
4841 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4842 without debug information too.
4843
d855c300
AC
48442002-06-10 Andrew Cagney <ac131313@redhat.com>
4845
4846 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4847 Make multi-arch pure.
4848 * gdbarch.h, gdbarch.c: Re-generate.
4849 * arm-tdep.c (arm_print_float_info): Update.
4850 * arch-utils.h (default_print_float_info): Update.
4851 * arch-utils.c (default_print_float_info): Update.
4852 * infcmd.c (float_info): Update call.
4853
dd12a101
AC
48542002-06-10 Andrew Cagney <ac131313@redhat.com>
4855
4856 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4857 the front of the initialize list.
4858
101dcfbe
AC
48592002-06-10 Andrew Cagney <ac131313@redhat.com>
4860
4861 * infrun.c (struct inferior_status): Replace fields
4862 selected_frame_address and selected_level with field
4863 selected_frame_id.
4864 (save_inferior_status): Update. Use get_frame_id.
4865 (struct restore_selected_frame_args): Delete.
4866 (restore_selected_frame): Update. Use frame_find_by_id.
4867 (restore_inferior_status): Update.
4868
4869 * breakpoint.h (struct breakpoint): Change type of
4870 watchpoint_frame to frame_id.
4871 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4872 call to get_current_frame.
4873 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4874 get_current_frame.
4875 (watchpoint_check): Use frame_find_by_id.
4876
4877 * frame.h (record_selected_frame): Delete declaration.
4878 * stack.c (record_selected_frame): Delete function.
4879
4880 * frame.h (struct frame_id): Define.
4881 (get_frame_id): Declare.
4882 (frame_find_by_id): Declare.
4883 * frame.c (frame_find_by_id): New function.
4884 (get_frame_id): New function.
4885
304270b6
AV
48862002-06-10 Andrey Volkov <avolkov@transas.com>
4887
4888 * ser-e7kpc.c: Fix duplicated define and call of
4889 _initialize_ser_e7000pc
4890
2f2cf184
DJ
48912002-06-09 Daniel Jacobowitz <drow@mvista.com>
4892
4893 * signals/signals.c (target_signal_from_host): Fix #ifdef
4894 SIGRTMIN case.
4895 (do_target_signal_to_host): Likewise.
4896
caaa3122
DJ
48972002-06-09 Daniel Jacobowitz <drow@mvista.com>
4898
4899 * mips-tdep.c (mips_find_abi_section): New function.
4900 (mips_gdbarch_init): Call it.
4901
6ac5df3a
MK
49022002-06-09 Mark Kettenis <kettenis@gnu.org>
4903
4904 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4905 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4906 after Andrew's 2002-06-08 gdbarch change.
4907
82ea117a
MK
49082002-06-09 Mark Kettenis <kettenis@gnu.org>
4909
4910 * i386-linux-nat.c (suppy_gregset): Don't supply
4911 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4912 register cache.
4913 (fill_gregset): Don't fetch it under the same circumstances.
4914
3c25f8c7
AC
49152002-06-09 Andrew Cagney <cagney@redhat.com>
4916
4917 * Makefile.in (callback_h): Define.
4918 (remote_sim_h): Update path to remote-sim.h.
4919 (remote-rdp.o): Add $(callback_h).
4920 (remote-sim.o): Use $(callback_h).
4921 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4922 * remote-rdp.c: Include "gdb/callback.h".
4923
1029b7fa
MK
49242002-06-09 Mark Kettenis <kettenis@gnu.org>
4925
4926 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4927 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4928
616675d3
AC
49292002-06-08 Andrew Cagney <ac131313@redhat.com>
4930
a3efda28
AC
4931 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4932 * rdi-share/serpardr.c: Ditto.
4933 * rdi-share/unixcomm.c: Ditto.
4934 * rdi-share/serdrv.c: Ditto.
4935 * rdi-share/hostchan.h: Ditto.
4936 * rdi-share/hostchan.c: Ditto.
4937 * rdi-share/host.h: Ditto.
4938 * rdi-share/devsw.c: Ditto.
4939
c5f10366
AC
4940 * objfiles.h: Change type of obj_private to void pointer.
4941 * pa64solib.c: Update copyright. Don't include "assert.h", use
4942 strcmp instead of STREQ, use LONGEST, do not use PTR
4943 * somsolib.c: Ditto.
4944
616675d3
AC
4945 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4946 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4947 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4948
e4b415d9
AC
49492002-06-08 Andrew Cagney <ac131313@redhat.com>
4950
4951 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4952 (default_get_saved_register): Delete function.
4953 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4954 generic_unwind_get_saved_register.
4955 * gdbarch.h, gdbarch.c: Re-generate.
4956
ca0d0b52
AC
49572002-06-08 Andrew Cagney <ac131313@redhat.com>
4958
4959 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4960 generic_func_frame_chain_valid.
4961 * gdbarch.h, gdbarch.c: Re-generate.
4962 * blockframe.c (generic_func_frame_chain_valid): Only check
4963 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4964 passing FP to PC_IN_CALL_DUMMY.
4965 Fix PR gdb/360.
4966
76860b5f
AC
49672002-06-08 Andrew Cagney <ac131313@redhat.com>
4968
4969 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4970 (register_gdbarch_data): Initialize init_p.
4971 (gdbarch_data): Initialize data pointer using the init function.
4972 (init_gdbarch_data): Delete function.
4973 (gdbarch_update_p): Update.
4974 (initialize_non_multiarch): Update.
4975 (struct gdbarch): Add field initialized_p.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977
8dda9770
ML
49782002-06-07 Michal Ludvig <mludvig@suse.cz>
4979
4980 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4981 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4982 better do the things actually here.
4983 * x86-64-tdep.c (x86_64_register_name2nr): New.
4984 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4985 (x86_64_gdbarch_init): Respect the above change.
4986 * x86-64-tdep.h (x86_64_register_name2nr)
4987 (x86_64_register_nr2name): Add prototypes.
4988 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4989
3d79a47c
MS
49902002-06-06 Michael Snyder <msnyder@redhat.com>
4991
7bd91a28
MS
4992 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4993 Delete extra braces and re-indent.
4994 (d10v_store_return_value): Char return values
3d79a47c
MS
4995 must be shifted over by one byte in R0.
4996 (d10v_extract_return_value): Delete extra braces, re-indent.
4997
095a4c96
EZ
49982002-06-06 Elena Zannoni <ezannoni@redhat.com>
4999
5000 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5001 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5002 (d10v_integer_to_address): Rewrite.
5003 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5004 the d10v specific functions which take care of converting to the
5005 correct space.
5006
e8a77ca4
EZ
50072002-06-06 Elena Zannoni <ezannoni@redhat.com>
5008
5009 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5010 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5011
4f2e4a4f
AC
50122002-06-02 Andrew Cagney <ac131313@redhat.com>
5013
5014 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5015 includes.
5016 * config/tm-linux.h: Ditto.
5017 * config/alpha/tm-alphalinux.h: Ditto.
5018 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5019 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5020 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5021 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5022 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5023 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5024 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5025 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5026 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5027 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5028 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5029 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5030 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5031 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5032 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5033 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5034 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5035 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5036 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5037 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5038 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5039 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5040 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5041 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5042 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5043 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5044 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5045 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5046 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5047 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5048 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5049 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5050 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5051 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5052 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5053 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5054 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5055
ae2ab2ce
AS
50562002-05-04 Aidan Skinner <aidan@velvet.net>
5057
5058 * ada-exp.tab.c: New file
5059 * ada-exp.y: New file
5060 * ada-lang.c: New file
5061 * ada-lang.h: New file
5062 * ada-lex.c: New file
5063 * ada-lex.l: New file
5064 * ada-tasks.c: New file
5065 * ada-typeprint.c: New file
5066 * ada-valprint.c: New file
5067
0ddd0135
JT
50682002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5071 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5072
750fbacc
JT
50732002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5074
5075 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5076 insetead of ppc-linux-tdep.o.
5077 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5078 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5079
df94e18a
AC
50802002-06-02 Andrew Cagney <ac131313@redhat.com>
5081
5082 2002-05-07 Christian Groessler <chris@groessler.org>
5083 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5084 bit register contents for little endian hosts.
5085
1a38ab75
AC
50862002-06-01 Andrew Cagney <ac131313@redhat.com>
5087
5088 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5089 any maintainer.
5090
8b1632ac
AC
50912002-06-01 Andrew Cagney <ac131313@redhat.com>
5092
5093 * gdbarch.h: Regenerate.
5094
627054c8
AC
50952002-06-01 Andrew Cagney <ac131313@redhat.com>
5096
5097 * MAINTAINERS: Add everyone to write-after-approval list.
5098
4f460812
AC
50992002-06-01 Andrew Cagney <ac131313@redhat.com>
5100
5101 * stack.c (frame_info): Use frame_register_unwind instead of
5102 saved_regs. Mention when the SP is on the stack or in a register.
5103
5104 * frame.h (frame_register_unwind_ftype): Define. Document.
5105 (struct frame_info): Add field register_unwind and
5106 register_unwind_cache.
5107 (frame_register_unwind): Declare.
5108 (generic_unwind_get_saved_register): Declare.
5109
5110 * frame.c (frame_register_unwind): New function.
5111 (generic_unwind_get_saved_register): New function.
5112
5113 * blockframe.c (generic_call_dummy_register_unwind): New function.
5114 (frame_saved_regs_register_unwind): New function.
5115 (set_unwind_by_pc): New function.
5116 (create_new_frame): New function.
5117 (get_prev_frame): New function.
5118
de888f76
AC
51192002-05-30 Andrew Cagney <ac131313@redhat.com>
5120
5121 * a29k-share/: Delete directory.
5122 * remote-vx29k.c: Delete file.
5123
2f2c3626
JT
51242002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5125
5126 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5127 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5128
9ce5c36a
JT
51292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5130
5131 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5132 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5133 (sparc64nbsd-nat.o)
5134 (sparcnbsd-nat.o)
5135 (sparcnbsd-tdep.o): New dependency lists.
5136 * NEWS: Note new UltraSPARC NetBSD native configuration.
5137 * configure.host (sparc64-*-netbsd*): New host.
5138 * configure.tgt (sparc-*-netbsdelf*)
5139 (sparc-*-netbsd*): Set gdb_target to nbsd.
5140 (sparc64-*-netbsd*): New target.
5141 * sparc64nbsd-nat.c: New file.
5142 * sparcnbsd-nat.c: New file.
5143 * sparcnbsd-tdep.c: New file.
5144 * sparcnbsd-tdep.h: New file.
5145 * config/sparc/nbsd.mt: New file.
5146 * config/sparc/nbsd64.mh: New file.
5147 * config/sparc/nbsd64.mt: New file.
5148 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5149 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5150 (HOST_IPC): Remove.
5151 * config/sparc/nbsdaout.mt: Remove.
5152 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5153 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5154 (HOST_IPC): Remove.
5155 * config/sparc/nbsdelf.mt: Remove.
5156 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5157 sparc-nat.c compatiblity defines.
5158 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5159 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5160 * config/sparc/tm-nbsd64.h: New file.
5161 * config/sparc/tm-nbsdaout.h: Remove.
5162 * config/sparc/xm-nbsd.h: Remove.
5163
ef3cf062
JT
51642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5165
5166 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5167 * sparc-tdep.c: Include osabi.h.
5168 (gdbarch_tdep): Add osabi member.
5169 (_initialize_sparc_tdep): Use gdbarch_register.
5170 (sparc_gdbarch_init): Use generic OS ABI framework.
5171 (sparc_dump_tdep): New function.
5172
ee8ff470
KB
51732002-05-30 Kevin Buettner <kevinb@redhat.com>
5174
5175 * corefile.c (do_captured_read_memory_integer): Return non-zero
5176 result.
5177 (safe_read_memory_integer): Copy result of memory read when
5178 status is non-zero. Also, add comments.
5179
7b112f9c
JT
51802002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5181
5182 * Makefile.in (ppc_tdep_h): Define.
5183 (ppc-linux-nat.o)
5184 (ppc-linux-tdep.o)
5185 (rs6000-tdep.o): Use $(ppc_tdep_h).
5186 (ppc-sysv-tdep.o)
5187 (ppcnbsd-nat.o)
5188 (ppcnbsd-tdep.o): New dependency lists.
5189 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5190 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5191 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5192 (ppc_sysv_abi_broken_use_struct_convention)
5193 (ppc_sysv_abi_use_struct_convention)
5194 (ppc_sysv_abi_push_arguments): Move to...
5195 * ppc-sysv-tdep.c: ...here.
5196 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5197 * rs6000-tdep.c (process_note_abi_tag_sections)
5198 (get_elfosabi): Remove.
5199 (rs6000_gdbarch_init): Use generic OS ABI framework.
5200 (rs6000_dump_tdep): New function.
5201 (_initialize_rs6000_tdep): Use gdbarch_register.
5202 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5203 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5204 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5205 of ppc-linux-tdep.o.
5206 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5207 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5208 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5209 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5210 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5211 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5212
480dd42a
JB
52132002-05-29 Jim Blandy <jimb@redhat.com>
5214
5215 * macroscope.c (default_macro_scope): Put `void' in empty argument
5216 list.
5217
4182591f
AC
52182002-05-29 Andrew Cagney <ac131313@redhat.com>
5219
5220 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5221 * arch-utils.c: Include "sim-regno.h".
5222 * gdbarch.sh: Don't include "sim-regno.h".
5223 * gdbarch.h, gdbarch.c: Regenerate.
5224 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5225 here.
5226 * arch-utils.h (legacy_register_sim_regno): To here.
5227 * remote-sim.c (legacy_register_sim_regno): Move function from
5228 here.
5229 * arch-utils.c (legacy_register_sim_regno): To here.
5230
8238d0bf
AC
52312002-05-28 Andrew Cagney <ac131313@redhat.com>
5232
5233 * sim-regno.h: New file.
5234 * Makefile.in (sim_regno_h): Define.
5235 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5236 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5237 (legacy_register_sim_regno): New function.
5238 (one2one_register_sim_regno): New function.
5239 (gdbsim_fetch_register): Rewrite.
5240 (gdbsim_store_register): Only store a register when
5241 REGISTER_SIM_REGNO is valid.
5242 * d10v-tdep.c: Include "sim-regno.h".
5243 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5244 (d10v_ts3_register_sim_regno): Ditto.
5245 * gdbarch.sh: Include "sim-regno.h".
5246 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5247 * gdbarch.h, gdbarch.c: Regenerate.
5248 * arch-utils.h (default_register_sim_regno): Delete declaration.
5249 * arch-utils.c (default_register_sim_regno): Delete function.
5250
485721b1
JT
52512002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5252
5253 * ppcnbsd-nat.c: Rewrite.
5254 * ppcnbsd-tdep.c: New file.
5255 * ppcnbsd-tdep.h: New file.
5256 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5257 solib.o, and solib-svr4.o.
5258 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5259 nbsd-tdep.o, and corelow.o.
5260
697f244d
AC
52612002-05-28 Andrew Cagney <ac131313@redhat.com>
5262
5263 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5264 `tr' and `sed'. Mention that `broken' targets are not expected to
5265 build.
5266
f08caad1 52672002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5268
5269 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5270 Let PC point right after the prologue before looking up symbols.
5271
3139facc
MH
52722002-05-27 Martin M. Hunt <hunt@redhat.com>
5273
5274 * i386-tdep.c (i386_register_virtual_type): Return
5275 builtin_type_vec128i for SSE registers.
5276
5277 * gdbtypes.h (builtin_type_vec128i): Declare.
5278
5279 * gdbtypes.c (build_builtin_type_vec128i): New function.
5280 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5281 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5282 (build_gdbtypes): Initialize new builtin vector types.
5283 (_initialize_gdbtypes): Register new vector types with gdbarch.
5284
6e3ba3b8
JT
52852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5286
5287 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5288 since it has been multi-arch'd.
5289 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5290 Move Alpha and VAX multi-arch news entries to same section
5291 as other multi-arch news.
5292
93d5585d
JT
52932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5294
5295 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5296 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5297 static. Rename some register numbers to put them in ns32k-tdep
5298 private namespace.
5299 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5300 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5301 functions.
5302 (_initialize_ns32k_tdep): Use gdbarch_register.
5303 * ns32k-tdep.h: New file.
5304 * ns32knbsd-tdep.c: New file.
5305 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5306 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5307 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5308 REGISTER_BYTES, REGISTER_BYTE): Remove.
5309 * config/ns32k/tm-ns32k.h: New file.
5310 * config/ns32k/tm-umax.h: Remove.
5311
efb2c70e
JT
53122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5313
5314 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5315 ns32k_store_struct_return, ns32k_extract_return_value,
5316 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5317 functions.
5318 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5319 ns32k_saved_pc_after_call.
5320 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5321 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5322 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5323 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5324 ns32k_extract_struct_value_address.
5325
7bcc927b
JT
53262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5327
5328 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5329 ns32k_fix_call_dummy): New.
5330 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5331 ns32k_call_dummy_words.
5332 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5333 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5334 CALL_DUMMY_NARGS): Remove.
5335 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5336
78f9d765
JT
53372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5338
5339 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5340 ns32k_frame_saved_pc, ns32k_frame_args_address,
5341 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5342 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5343 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5344 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5345 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5346 (BREAKPOINT): Remove..
5347 (FRAME_CHAIN): Define as ns32k_frame_chain.
5348 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5349 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5350 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5351 (FRAME_FIND_SAVED_REGS): Remove.
5352 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5353 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5354 (POP_FRAME): Define as ns32k_pop_frame.
5355
f2c762e0
JT
53562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5357
5358 * ns32k-tdep.c (ns32k_register_byte_32082,
5359 ns32k_register_byte_32382, ns32k_register_raw_size,
5360 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5361 functions.
5362 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5363 ns32k_register_byte_32382.
5364 * config/ns32k/tm-umax.h: Update copyright years.
5365 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5366 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5367 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5368 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5369 (ns32k_get_enter_addr): Fix prototype.
5370
af137673
JT
53712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5372
5373 * ns32k-tdep.c: Update copyright years.
5374 (ns32k_register_name_32082): New function.
5375 (ns32k_register_name_32382): Ditto.
5376 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5377 (REGISTER_NAME): Define as ns32k_register_name_32382.
5378 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5379 (REGISTER_NAME): Define as ns32k_register_name_32082.
5380
a8bc7b56
JB
53812002-05-24 Jim Blandy <jimb@redhat.com>
5382
5383 * dwarf2read.c (free_line_header): Use xfree, not free.
5384
83a45910
JT
53852002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5386
5387 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5388 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5389
0db71247
AC
53902002-05-23 Andrew Cagney <ac131313@redhat.com>
5391
5392 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5393
b9e5e4dd
AC
53942002-05-23 Andrew Cagney <ac131313@redhat.com>
5395
5396 From Ross Alexander at NEC Europe:
5397 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5398
de530e84
MS
53992002-05-23 Michael Snyder <msnyder@redhat.com>
5400
5401 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5402 for input, rather than parse_and_eval_address.
5403
b91b96f4
AC
54042002-05-23 Andrew Cagney <ac131313@redhat.com>
5405
5406 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5407 * Makefile.in (sim_d10v_h): Update definition.
5408
8b279e7a
AC
54092002-05-24 Andrew Cagney <cagney@redhat.com>
5410
5411 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5412 change `2002-05-22 Michael Snyder' below.
5413 (d10v_push_arguments): Ditto.
5414 (d10v_extract_return_value): Ditto.
5415
0a3d0425
JB
54162002-05-23 Jim Blandy <jimb@redhat.com>
5417
5418 * macrotab.c (check_for_redefinition): Don't complain if the new
5419 definition is the same as the previous one. Take more arguments
5420 to allow the comparison.
5421 (macro_define_object, macro_define_function): Pass more arguments
5422 to check_for_redefinition.
5423
78eac43e
MS
54242002-05-22 Michael Snyder <msnyder@redhat.com>
5425
5426 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5427 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5428 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5429 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5430 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5431 Add a temp variable to save a call (and a memory read).
5432 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5433 if possible (so that PC_IN_CALL_DUMMY will work).
5434
9bc1edb8
CV
54352002-05-22 Corinna Vinschen <vinschen@redhat.com>
5436
5437 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5438
005ef3d2
ML
54392002-05-22 Michal Ludvig <mludvig@suse.cz>
5440
5441 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5442 fde->cie_ptr.
5443 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5444 (dwarf2_build_frame_info): Add offset to fde->initial_location
5445 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5446 (execute_stack_op): Change type of 'result' from ULONGEST to
5447 CORE_ADDR.
005ef3d2 5448
fcf4f891
JT
54492002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5450
5451 * config/alpha/tm-nbsd.h: Include solib.h.
5452
cfef91e4
JT
54532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5454
5455 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5456 assumptions about the host's byte order.
5457
9964235a
JT
54582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5459
5460 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5461 to dependency list.
5462 * alphanbsd-tdep.c: Include solib-svr4.h.
5463 * shnbsd-tdep.c: Ditto.
5464
9eeef8ef
JT
54652002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5466
5467 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5468 nbsd-tdep.h to dependency list.
5469 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5470 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5471 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5472 nbsdaout.mh and nbsdelf.mh consistently.
5473 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5474 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5475 nbsdaout.mt and nbsdelf.mh consistently.
5476 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5477 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5478 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5479 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5480 a.out shared library stuff from here...
5481 * config/nm-nbsdaout.h: ...to here.
5482 * config/tm-nbsd.h: Remove.
5483 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5484 * config/arm/nbsd.mh: Remove.
5485 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5486 nbsd-tdep.o.
5487 * config/arm/nbsdaout.mh: New file.
5488 * config/arm/nbsdelf.mh: New file.
5489 * config/arm/nm-nbsdaout.h: New file.
5490 * config/i386/nbsd.mh: Remove.
5491 * config/i386/nbsd.mt: Remove.
5492 * config/i386/nbsdaout.mh: New file.
5493 * config/i386/nbsdaout.mt: New file.
5494 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5495 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5496 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5497 i386_register_u_addr): Remove.
5498 * config/i386/nm-nbsdaout.h: New file.
5499 * config/i386/nm-nbsdelf.h: Remove.
5500 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5501 (USE_STRUCT_CONVENTION): Remove.
5502 * config/i386/tm-nbsdaout.h: New file.
5503 * config/i386/tm-nbsdelf.h: Remove.
5504 * config/m68k/nbsd.mh: Remove.
5505 * config/m68k/nbsd.mt: Remove.
5506 * config/m68k/nbsdaout.mh: New file.
5507 * config/m68k/nbsdaout.mt: New file.
5508 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5509 * config/m68k/nm-nbsdaout.h: New file.
5510 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5511 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5512 * config/ns32k/nbsd.mh: Remove.
5513 * config/ns32k/nbsd.mt: Remove.
5514 * config/ns32k/nbsdaout.mh: New file.
5515 * config/ns32k/nbsdaout.mt: New file.
5516 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5517 * config/ns32k/nm-nbsdaout.h: New file.
5518 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5519 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5520 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5521 (SVR4_SHARED_LIBS): Remove.
5522 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5523 * config/sparc/nbsd.mh: Remove.
5524 * config/sparc/nbsd.mt: Remove.
5525 * config/sparc/nbsdaout.mh: New file.
5526 * config/sparc/nbsdaout.mt: New file.
5527 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5528 * config/sparc/nbsdelf.mt: New file.
5529 * config/sparc/nm-nbsdaout.h: New file.
5530 * config/sparc/nm-nbsdelf.h: Remove.
5531 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5532 * config/sparc/tm-nbsdaout.h: New file.
5533
257ce470
JT
55342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5535
5536 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5537 mipsnbsd-tdep.c
5538 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5539
76a6d5fe
JT
55402002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5541
5542 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5543 shnbsd-nat.c.
5544 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5545
45888261
JT
55462002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5547
5548 * NEWS: Note new MIPS NetBSD native configuration.
5549 * configure.host (mips*-*-netbsd*): New host.
5550 * configure.tgt (mips*-*-netbsd*): New target.
5551 * mipsnbsd-nat.c: New file.
5552 * mipsnbsd-tdep.c: New file.
5553 * mipsnbsd-tdep.h: New file.
5554 * config/mips/nbsd.mh: New file.
5555 * config/mips/nbsd.mt: New file.
5556 * config/mips/nm-nbsd.h: New file.
5557 * config/mips/tm-nbsd.h: New file.
5558
70f80edf
JT
55592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5560
5561 * Makefile.in (SFILES): Add osabi.c.
5562 (COMMON_OBS): Add osabi.o.
5563 (osabi.o): New dependency list.
5564 * osabi.c: New file.
5565 * osabi.h: New file.
5566 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5567
5568 * Makefile.in (alpha_tdep_h): Define and use instead of
5569 alpha-tdep.h.
5570 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5571 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5572 Remove.
5573 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5574 * alpha-tdep.h: Include osabi.h.
5575 (alpha_abi): Remove.
5576 (gdbarch_tdep): Use generic OS ABI framework.
5577 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5578 gdbarch_register_osabi.
5579 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5580 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5581 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5582
5583 * Makefile.in (sh_tdep_h): Add osabi.h.
5584 * sh-tdep.h (sh_osabi): Remove.
5585 (gdbarch_tdep): Use generic OS ABI framework.
5586 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5587 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5588 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5589 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5590
5591 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5592 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5593 gdbarch_register_osabi.
5594 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5595 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5596 (get_elfosabi): Rename to...
5597 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5598 ABI framework support routines.
5599 (arm_gdbarch_init): Use generic OS ABI framework.
5600 (arm_dump_tdep): Likewise.
5601 (_initialize_arm_tdep): Likewise.
5602 * arm-tdep.h: Include osabi.h.
5603 (arm_abi): Remove.
5604 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5605 osabi member.
5606 (arm_gdbarch_register_os_abi): Remove prototype.
5607 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5608 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5609
5610 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5611 * mips-tdep.c: Include osabi.h.
5612 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5613 OS ABI framework.
5614
d194345b
KH
56152002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5616
5617 * h8300-tdep.c: Fix formatting.
5618
70c6b0d1
EZ
56192002-05-20 Elena Zannoni <ezannoni@redhat.com>
5620
5621 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5622 printing vector registers.
5623
165b8e33
AC
56242002-05-19 Andrew Cagney <ac131313@redhat.com>
5625
5626 From Fernando Nasser:
5627 * remote.c (remote_async_open_1): Re-throw the exception when the
5628 connection fails.
5629 (remote_cisco_open): Ditto.
5630 (remote_open_1): Ditto.
5631
36918e70
AC
56322002-05-19 Andrew Cagney <ac131313@redhat.com>
5633
5634 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5635 (remote_start_remote): Add uiout parameter. Pass through to
5636 remote_start_remote_dummy.
5637 (remote_open_1): Use catch_exception instead of catch_errors.
5638 (remote_async_open_1): Ditto.
5639 (remote_cisco_open): Ditto.
5640
ae44c0c4
AC
56412002-05-19 Andrew Cagney <ac131313@redhat.com>
5642
5643 * remote.c (remote_start_remote): Replace PTR with void pointer.
5644 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5645 static.
5646
8efe637d
AC
56472002-05-18 Andrew Cagney <ac131313@redhat.com>
5648
5649 * gdb_indent.sh: Allow the script to be run in the sim directory.
5650
2f1b5984
MK
56512002-05-18 Mark Kettenis <kettenis@gnu.org>
5652
f0f625e2
MK
5653 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5654 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5655
2f1b5984
MK
5656 * corelow.c (core_open): Only call set_gdbarch_from_file if
5657 exec_bfd is NULL.
5658
fc974602
AV
56592002-05-17 Andrey Volkov <avolkov@transas.com>
5660
5661 * h8300-tdep.c: Add support of EXR register
5662 * config/h8300/tm-h8300.h: Ditto.
5663
906709f4
AV
56642002-05-17 Andrey Volkov <avolkov@transas.com>
5665
5666 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5667
6e591d68
AV
56682002-05-17 Andrey Volkov <avolkov@transas.com>
5669
5670 * h8300-tdep.c: Change literal regnums to REGNO.
5671
84f0252a
JB
56722002-05-17 Jim Blandy <jimb@redhat.com>
5673
e0e9281e
JB
5674 * NEWS: Note addition of macro support.
5675
84f0252a
JB
5676 Expand preprocessor macros in C expressions.
5677 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5678 (scan_macro_expansion, scanning_macro_expansion,
5679 finished_macro_expansion): New function declarations.
5680 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5681 variable declarations.
5682 * parser-defs.h (expression_context_pc): New declaration.
5683 * parse.c (expression_context_pc): New variable.
5684 (parse_exp_1): Set expression_context_pc, as well as
5685 expression_context_block.
5686 * c-exp.y (yylex): If we're not already reading the result of a
5687 macro expansion, try to macro-expand the next token. When we're
5688 done scanning a macro expansion, switch back to the mainline text.
5689 Commas and `if's in a macro's expansion don't terminate the input.
5690 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5691 (macro_original_text, macro_expanded_text,
5692 expression_macro_lookup_func, expression_macro_lookup_baton): New
5693 variables.
5694 (scan_macro_expansion, scanning_macro_expansion,
5695 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5696 c_preprocess_and_parse): New functions.
5697 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5698 c_preprocess_and_parse, instead of c_parse.
5699 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5700 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5701
1c509ca8
JR
5702Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5703
5704 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5705 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5706 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5707
2250ee0c
CV
57082002-05-17 Corinna Vinschen <vinschen@redhat.com>
5709
5710 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5711
ab3b8126
JT
57122002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5713
5714 * Makefile.in (sh_tdep_h): Define and use.
5715 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5716 register enum): Move to...
5717 * * sh-tdep.h: ...here.
5718 * sh-tdep.c: Include sh-tdep.h.
5719 * sh3-rom.c: Likewise.
5720 * shnbsd-tdep.c: Likewise.
5721
ed9d4749
MS
57222002-05-16 Michael Snyder <msnyder@redhat.com>
5723
5724 * arm-tdep.c: Spelling fix in comment.
5725
2e276125
JB
57262002-05-16 Jim Blandy <jimb@redhat.com>
5727
6821892e
JB
5728 Add commands for manually expanding macros and showing their
5729 definitions.
5730 * macrocmd.c, macroscope.c, macroscope.h: New files.
5731 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5732 (macroscope_h): New variable.
5733 (HFILES_NO_SRCDIR): Add macroscope.h.
5734 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5735 (macroscope.o, macrocmd.o): New rules.
5736
2e276125
JB
5737 Teach the Dwarf 2 reader to read macro information.
5738 * dwarf2read.c: #include "macrotab.h".
5739 (dwarf_macinfo_buffer): New variable.
5740 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5741 dwarf_macinfo_size.
5742 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5743 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5744 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5745 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5746 dwarf2_macro_spaces_in_definition): New complaints.
5747 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5748 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5749 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5750 the partial symbol table.
5751 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5752 from what's recorded in the partial symbol table.
5753 (read_file_scope): If the compilation unit has a
5754 `DW_AT_macro_info' attribute, read its macro information.
5755 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5756
2f53fe6c
DJ
57572002-05-16 Daniel Jacobowitz <drow@mvista.com>
5758
5759 Fix PR gdb/546
5760 * ser-tcp.c: Don't include <netinet/udp.h>.
5761
2be99286
SC
57622002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5763
5764 * MAINTAINERS: Update my email address.
5765
c9af212b 57662002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5767
5768 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5769 include file of the same name.
5770
bf5f1a52
CV
57712002-05-16 Corinna Vinschen <vinschen@redhat.com>
5772
5773 * configure.tgt: Mark v850 as multi-arched.
5774 * config/v850/tm-v850.h: Remove file.
5775 * config/v850/v850.mt: Eliminate TM_FILE.
5776
435e042a
CV
57772002-05-16 Corinna Vinschen <vinschen@redhat.com>
5778
5779 * v850-tdep.c: Full multi-arch.
5780 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5781 Define GDB_MULTI_ARCH to 2.
5782
9819c6c8
PM
57832002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5784
5785 * p-exp.y (current_type): New static variable.
5786 Carries the type of the expression at the position that is parsed.
5787 (push_current_type, pop_current_type): Two new functions. Used
5788 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5789 (search_field): New static variable. Set to one after parsing a point
5790 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5791 (FIELDNAME): New token. After a point only a token belonging to
5792 current_type type definition is allowed.
5793 (all over token rules): reset and change current_type according
5794 to rules.
5795 (exp '[' rule): insert implicit array index field if
5796 exp is a pascal string type.
5797
3a06899a
CV
57982002-05-16 Corinna Vinschen <vinschen@redhat.com>
5799
5800 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5801 frame info. Use frame_info's saved_regs instead of matching member
5802 in extra_frame_info throughout.
5803 (v850_frame_init_saved_regs): New function.
5804 (v850_init_extra_frame_info): Move most functionality into
5805 v850_frame_init_saved_regs().
5806 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5807 (v850_frame_find_saved_regs): Remove declaration.
5808 (FRAME_FIND_SAVED_REGS): Remove definition.
5809 (v850_frame_init_saved_regs): Add declaration.
5810 (FRAME_INIT_SAVED_REGS): Add definition.
5811
6ed14b0e
CV
58122002-05-16 Corinna Vinschen <vinschen@redhat.com>
5813
5814 * v850-tdep.c: Begin multi-arch'ing v850.
5815 (v850_target_architecture_hook): Remove function.
5816 (v850_gdbarch_init): New function. Add code previously in
5817 v850_target_architecture_hook().
5818 (_initialize_v850_tdep): Don't set target_architecture_hook.
5819 Call register_gdbarch_init() instead.
5820
42725910
DJ
58212002-05-16 Daniel Jacobowitz <drow@mvista.com>
5822
5823 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5824 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5825 (fixup_class_method_type): Likewise.
5826
99d9066e
JB
58272002-05-15 Jim Blandy <jimb@redhat.com>
5828
5829 Add macro structures to GDB's symbol tables. Nobody puts anything
5830 in them yet.
5831 * symtab.h (struct symtab): New member: `macro_table'.
5832 * buildsym.h (pending_macros): New global variable.
5833 * buildsym.c: #include "macrotab.h".
5834 (buildsym_init): Initialize `pending_macros'.
5835 (end_symtab): If we found macro information while reading a CU's
5836 debugging info, do build a symtab structure for it. Make the
5837 symtab point to the macro information, and clear the
5838 `pending_macros' pointer which held it while we were reading the
5839 debug info.
5840 (really_free_pendings): Free any pending macro table.
5841 * objfiles.h (struct objfile): New member: `macro_cache'.
5842 * objfiles.c (allocate_objfile): Set allocate and free functions
5843 for the macro cache's objstack.
5844 (free_objfile): Empty the macro cache's obstack.
5845 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5846 set new allocate and free functions for it.
5847 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5848 free functions for the macro cache's objstack. (Why is this
5849 function building its own objfile?)
5850 * symmisc.c (print_objfile_statistics): Print statistics on the
5851 macro bcache.
5852 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5853
c899585b
RE
58542002-05-15 Richard Earnshaw <rearnsha@arm.com>
5855
5856 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5857 (REGISTER_U_ADDR): Delete definition.
5858 (arm_register_u_addr): Delete declaration.
5859
a6cdd8c5
RE
58602002-05-15 Richard Earnshaw <rearnsha@arm.com>
5861
5862 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5863 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5864
c97dcfc7
AC
58652002-05-14 Andrew Cagney <ac131313@redhat.com>
5866
5867 * regcache.c (register_valid): Revise comments refering to "Not
5868 available" and "unavailable".
5869 * frame.c (frame_register_read): Ditto.
5870 * findvar.c (value_of_register): Ditto.
5871
93021b7d
AC
58722002-05-15 Andrew Cagney <cagney@redhat.com>
5873
5874 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5875 (remote-sim.o): Update dependencies.
5876 (d10v-tdep.o): Specify dependencies.
5877 (sim_d10v_h): Define.
5878
a86bc61c
JB
58792002-05-14 Jim Blandy <jimb@redhat.com>
5880
5881 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5882 * macrotab.c (macro_lookup_inclusion, find_definition,
5883 new_macro_table): Same.
5884
5885 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5886 not `! strcmp ()'. This is a dubious improvement.
5887 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5888
5889 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5890 although it's not necessary, to avoid a warning.
5891
2fdde8f8
DJ
58922002-05-14 Daniel Jacobowitz <drow@mvista.com>
5893
5894 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5895 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5896 TYPE_INSTANCE_FLAGS.
5897 (struct main_type): New.
5898 (struct type): Move most members to struct main_type. Change
5899 cv_type and as_type to new type_chain member. Add instance_flags.
5900 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5901 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5902 (finish_cv_type): Remove prototype.
5903 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5904 Set TYPE_CHAIN.
5905 (alloc_type_instance): New function.
5906 (smash_type): New function.
5907 (make_pointer_type, make_reference_type, make_function_type)
5908 (smash_to_member_type, smash_to_method_type): Call smash_type.
5909 (make_qualified_type): New function.
5910 (make_type_with_address_space): Call make_qualified_type.
5911 (make_cv_type): Likewise.
5912 (finish_cv_type): Remove unnecessary function.
5913 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5914 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5915 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5916 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5917 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5918 * hpread.c (hpread_read_struct_type): Likewise.
5919 * stabsread.c (read_struct_type): Likewise.
5920
843fedf4
EZ
59212002-05-14 Elena Zannoni <ezannoni@redhat.com>
5922
5923 * configure.tgt: Add a catch all sh* target, for cases like
5924 sh[2,3,4]-elf and sh-hms.
5925
05a6c72c
KS
59262002-05-14 Keith Seitz <keiths@redhat.com>
5927
5928 * event-loop.c (create_file_handler): Don't do anything but
5929 update data when we are given a fd which we are already
5930 monitoring.
5931
5d085aaf
ML
59322002-05-14 Michal Ludvig <mludvig@suse.cz>
5933
5934 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5935 (update_context): Use __func__ in warnings.
5936
9db8d71f
DJ
59372002-05-14 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5940 and tcp_close to net_open and net_close.
5941 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5942 using UDP if requested. Don't try to disable Nagle on UDP
5943 sockets.
5944 * remote.c (remote_serial_open): New function. Warn about UDP.
5945 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5946
5dbc6baa
EZ
59472002-05-13 Elena Zannoni <ezannoni@redhat.com>
5948
5949 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5950
cc3023f7
EZ
59512002-05-13 Elena Zannoni <ezannoni@redhat.com>
5952
5953 * configure.tgt: Remove sh-hms target.
5954 * MAINTAINERS: Don't list sh-hms as a separate target.
5955
ec2bcbe7
JB
59562002-05-13 Jim Blandy <jimb@redhat.com>
5957
5958 Add first preprocessor macro-expansion files.
5959 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5960 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5961 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5962 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5963 (COMMON_OBS): Add macrotab.o, macroexp.o.
5964 (macroexp.o, macrotab.o): New rules.
5965
6d531722
AC
59662002-05-13 Andrew Cagney <ac131313@redhat.com>
5967
5968 * config/m88k/tm-m88k.h: Update copyright.
5969 (m88k_target_write_pc): Declare
5970 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5971 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5972 (SHIFT_INST_REGS): Update definition.
5973 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5974 using old definition of TARGET_WRITE_PC.
5975 * regcache.c (generic_target_write_pc): Delete code handling
5976 NNPC_REGNUM.
5977 * gdbarch.sh (NNPC_REGNUM): Delete.
5978 * gdbarch.h, gdbarch.c: Regenerate.
5979
3e3f2739
RE
59802002-05-13 Richard Earnshaw <rearnsha@arm.com>
5981
5982 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5983 builtin reg number.
5984
0004e5a2
DJ
59852002-05-13 Daniel Jacobowitz <drow@mvista.com>
5986
5987 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5988 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5989 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5990 access macros.
5991 * c-typeprint.c (cp_type_print_method_args): Likewise.
5992 (c_type_print_args): Likewise.
5993 * d10v-tdep.c (d10v_push_arguments): Likewise.
5994 (d10v_extract_return_value): Likewise.
5995 * expprint.c (print_subexp): Likewise.
5996 * gdbtypes.c (lookup_primitive_typename): Likewise.
5997 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5998 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5999 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6000 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6001 (TYPE_VECTOR): Likewise.
6002 * hpread.c (hpread_read_struct_type)
6003 (fix_static_member_physnames, fixup_class_method_type)
6004 (hpread_type_lookup): Likewise.
6005 * mdebugread.c (parse_symbol, parse_type): Likewise.
6006 * p-lang.c (is_pascal_string_type): Likewise.
6007 * valops.c (hand_function_call): Likewise.
6008 * x86-64-tdep.c (classify_argument): Likewise.
6009
6010 * hpread.c (hpread_read_function_type)
6011 (hpread_read_doc_function_type): Call replace_type.
6012 * dstread.c (create_new_type): Delete.
6013 (decode_dst_structure, process_dst_function): Call alloc_type.
6014 Use type access macros.
6015
dff95cc7
MK
60162002-05-12 Mark Kettenis <kettenis@gnu.org>
6017
6018 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6019 the're not supported by the current architecture.
6020 (i387_fill_fxsave): Likewise.
6021
bbcd32ad
FF
60222002-05-12 Fred Fish <fnf@redhat.com>
6023
6024 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6025 sect_index_xxx members to index the first slot in section_offsets
6026 if all of the section_offsets are zero.
6027
89cf4787
MK
60282002-05-12 Mark Kettenis <kettenis@gnu.org>
6029
6030 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6031 checked in with last change.
6032
1f77ffc5
MK
60332002-05-12 Mark Kettenis <kettenis@gnu.org>
6034
6035 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6036 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6037 config.sub.
6038
89b8b4a9
DJ
60392002-05-12 Daniel Jacobowitz <drow@mvista.com>
6040
6041 * Makefile.in: Update dependencies.
6042
14a5e767
AC
60432002-05-11 Andrew Cagney <ac131313@redhat.com>
6044
6045 * language.c (local_hex_string_custom): Simplify. Do not depend
6046 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6047
6048 * memattr.c (mem_info_command): Replace calls to
6049 longest_local_hex_string and longest_local_hex_string_custom.
6050 * buildsym.c (make_blockvector): Ditto.
6051 * solib.c (info_sharedlibrary_command): Ditto.
6052 * tracepoint.c (tracepoints_info): Ditto.
6053 * symtab.c (print_msymbol_info): Ditto.
6054
6055 * language.c (local_hex_string): Delete.
6056 (local_hex_string_custom): Delete.
6057 (longest_local_hex_string): Rename to local_hex_string.
6058 (longest_local_hex_string_custom): Rename to
6059 local_hex_string_custom.
6060 * language.h (local_hex_string): Change parameter type to LONGEST.
6061 (local_hex_string_custom): Ditto.
6062 (longest_local_hex_string): Delete declaration.
6063 (longest_local_hex_string_custom): Ditto.
6064
6065 * solib.c: Update copyright.
6066 * memattr.c: Update copyright.
6067
13d01224
AC
60682002-05-11 Andrew Cagney <ac131313@redhat.com>
6069
6070 * arch-utils.h (legacy_register_to_value): Declare.
6071 (legacy_value_to_register): Declare.
6072 (legacy_convert_register_p): Declare.
6073 * arch-utils.c (legacy_register_to_value): New function.
6074 (legacy_value_to_register): New function.
6075 (legacy_convert_register_p): New function.
6076
6077 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6078 (VALUE_TO_REGISTER): Define.
6079 (CONVERT_REGISTER_P): Define.
6080 * gdbarch.h, gdbarch.c: Regenerate.
6081
6082 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6083 VALUE_TO_REGISTER.
6084 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6085 CONVERT_REGISTER_P.
6086
4a1970e4
DJ
60872005-05-11 Daniel Jacobowitz <drow@mvista.com>
6088 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6089
6090 * Makefile.in: Update dependencies for valops.c.
6091 * valops.c: Include "gdb_assert.h".
6092 (typecmp): Skip THIS parameter to methods.
6093 (find_method_list): Remove static_memfuncp argument,
6094 update callers. Check for stub methods.
6095 (find_value_oload_method_list): Don't set *static_memfuncp.
6096 (find_overload_match): Don't check for stub methods. Assert
6097 that methods are not stubbed. Handle static methods.
6098 (value_find_oload_method_list): Remove static_memfuncp argument.
6099 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6100 to the argument list for static stub methods.
6101 * value.h (value_find_oload_method_list): Update prototype.
6102
b2e75d78
AC
61032002-05-11 Andrew Cagney <ac131313@redhat.com>
6104
6105 * arch-utils.h (generic_register_size): Declare.
6106 (generic_register_raw_size, generic_register_virtual_size): Delete
6107 declarations.
6108 * arch-utils.c (generic_register_raw_size): Delete.
6109 (generic_register_size): New function.
6110 (generic_register_virtual_size): Delete.
6111
6112 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6113 default generic_register_size.
6114 * gdbarch.h, gdbarch.c: Re-generate.
6115
6116 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6117 register_virtual_size.
6118 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6119 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6120
451fbdda
AC
61212002-05-11 Andrew Cagney <ac131313@redhat.com>
6122
6123 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6124 * gdbarch.h, gdbarch.c: Regenerate.
6125 * gnu-v3-abi.c: Update copyright.
6126 (vtable_address_point_offset): Update.
6127 (gnuv3_rtti_type): Update.
6128 (gnuv3_baseclass_offset): Update.
6129 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6130 (init_fetch_link_map_offsets): Update.
6131 * remote.c (get_remote_state): Update.
6132
6d2f5cea
DJ
61332002-05-11 Daniel Jacobowitz <drow@mvista.com>
6134
6135 * TODO: Remove value_headof/value_from_vtable_info comment.
6136 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6137 * values.c (value_headof, value_from_vtable_info): Delete.
6138 * value.h (value_from_vtable_info): Delete prototype.
6139
d2324da4
AC
61402002-05-11 Andrew Cagney <ac131313@redhat.com>
6141
6142 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6143 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6144 $(gdb_regex_h).
6145 (gdb_assert_h): Define.
6146 (gdb_wait_h): Define.
6147 (gdb_regex_h): Define.
6148
5c717440
DJ
61492002-05-11 Daniel Jacobowitz <drow@mvista.com>
6150
6151 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6152 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6153
6c7861b3
JT
61542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6155
6156 * nbsd-tdep.c: Fix comment.
6157
ea5bc2a6
JT
61582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6159
6160 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6161 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6162 (nbsd-tdep.o): New dependency list.
6163 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6164 nbsd-tdep.h.
6165 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6166 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6167 * nbsd-tdep.c: New file.
6168 * nbsd-tdep.h: New file.
6169 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6170 nbsd-tdep.h.
6171 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6172 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6173 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6174 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6175
b28da865
JT
61762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6177
6178 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6179 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6180 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6181 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6182 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6183 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6184
4b8ff1fa
JT
61852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6186
6187 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6188 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6189 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6190 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6191 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6192 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6193 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6194
dfe6eb1f
JT
61952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6196
6197 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6198 fetch_elfcore_registers to...
6199 * i386nbsd-tdep.c: ...here.
6200 (i386nbsd_use_struct_convention): Rename to...
6201 (i386nbsd_aout_use_struct_convention): ...this.
6202 (i386nbsd_supply_reg): New function.
6203 (i386nbsd_fill_reg): New function.
6204 (fetch_core_registers): Use i386nbsd_supply_reg.
6205 (fetch_elfcore_registers): Likewise.
6206 (_initialize_i386nbsd_tdep): New function.
6207 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6208 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6209 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6210 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6211 (i386nbsd_aout_use_struct_convention): ...this.
6212
20cb8cda
JT
62132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6214
6215 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6216 (store_inferior_registers): Use shnbsd_fill_reg.
6217 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6218 sh_nbsd_supply_register): Collapse into...
6219 (shnbsd_supply_reg): ...this.
6220 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6221 (shnbsd_fill_reg): ...this.
6222 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6223 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6224 (fetch_core_registers): Use shnbsd_supply_reg.
6225 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6226 (sh_nbsd_core_fns): Rename to...
6227 (shnbsd_core_fns): ...this.
6228 (sh_nbsd_elfcore_fns): Rename to...
6229 (shnbsd_elfcore_fns): ...this.
6230 (sh_nbsd_init_abi): Rename to...
6231 (shnbsd_init_abi): ...this.
6232 (_initialize_sh_nbsd_tdep): Rename to...
6233 (_initialize_shnbsd_tdep): ...this.
6234 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6235 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6236 sh_nbsd_fill_register): Remove prototypes.
6237 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6238
e750d25e
JT
62392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6240
6241 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6242 (i387-nat.o): Delete dependency list.
6243 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6244 (x86-64-linux-nat.o): Likewise.
6245 * i387-nat.c: Delete file, moving contents to...
6246 * i387-tdep.c: ...here.
6247 * i387-nat.h: Rename...
6248 * i387-tdep.h: ...to this.
6249 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6250 * i386-linux-nat.c: Likewise.
6251 * i386bsd-nat.c: Likewise.
6252 * i386gnu-nat.c: Likewise.
6253 * i386nbsd-nat.c: Likewise.
6254 * i386v4-nat.c: Likewise.
6255 * x86-64-linux-nat.c: Likewise.
6256 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6257 * config/i386/go32.mh (NATDEPFILES): Likewise.
6258 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6259 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6260 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6261 * config/i386/linux.mh (NATDEPFILES): Likewise.
6262 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6263 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6264 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6265 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6266
1aee598a
JT
62672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6268
6269 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6270 (alphanbsd-nat.o): Remove dependency list.
6271 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6272 * alphanbsd-nat.c: Delete. Contents moved to...
6273 * alphanbsd-tdep.c: ...here.
6274 (_initialize_alphanbsd_tdep): Register core functions.
6275 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6276
12bcb0fe
JT
62772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6278
6279 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6280 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6281 (alphanbsd-nat.o): Likewise.
6282 (alphabsd-tdep.o): New dependency list.
6283 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6284 (fill_gregset): Use alphabsd_fill_reg.
6285 (supply_fpregset): Use alphabsd_supply_fpreg.
6286 (fill_fpregset): Use alphabsd_fill_fpreg.
6287 (fetch_inferior_registers): Use struct reg and struct fpreg
6288 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6289 and alphabsd_supply_fpreg.
6290 (store_inferior_registers): Use struct reg and struct fpreg
6291 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6292 and alphabsd_fill_fpreg.
6293 * alphabsd-tdep.c: New file.
6294 * alphabsd-tdep.h: New file.
6295 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6296 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6297 alphabsd_supply_fpreg.
6298 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6299 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6300
361d1df0
EC
63012002-05-11 Eric Christopher <echristo@redhat.com>
6302
6303 * mips-tdep.c (mips_double_register_type): Fix thinko.
6304 (mips_single_register_type): Ditto.
6305 * MAINTAINERS: Add self.
6306
92dd7cee
MK
63072002-05-11 Mark Kettenis <kettenis@gnu.org>
6308
6309 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6310 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6311 right thing on architectures with different endianness and/or
6312 integer sizes.
6313
e27da16d
JT
63142002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 From Christian Limpach <chris@Pin.LU>
6317 * configure.in: Change sed expression which comments out
6318 NATDEPFILES to also comment out continuation lines.
6319 * configure: Regenerate.
6320
ddde02bd
EZ
63212002-05-10 Elena Zannoni <ezannoni@redhat.com>
6322
6323 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6324 big patch.
6325
1c922164
EZ
63262002-05-10 Elena Zannoni <ezannoni@redhat.com>
6327
6328 * sh-tdep.c: Include correct file.
6329
283150cd
EZ
63302002-05-10 Elena Zannoni <ezannoni@redhat.com>
6331
6332 New support for sh64-elf (sh5) target.
6333
6334 * configure.tgt: For sh64-elf target, default to sh-elf.
6335
6336 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6337 (struct gdbarch_tdep): Add new fields for new registers and ABI
6338 info.
361d1df0 6339
283150cd
EZ
6340 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6341 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6342 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6343 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6344 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6345 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6346 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6347 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6348 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6349 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6350 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6351 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6352 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6353 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6354 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6355 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6356 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6357 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6358 sign_extend, sh64_nofp_frame_init_saved_regs,
6359 sh64_init_extra_frame_info, sh64_get_saved_register,
6360 sh64_extract_struct_value_address, sh64_pop_frame,
6361 sh64_push_arguments, sh64_extract_return_value,
6362 sh64_store_return_value, sh64_show_media_regs,
6363 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6364 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6365 sh_sh64_register_virtual_type,
6366 sh_sh64_register_convert_to_virtual,
6367 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6368 sh64_register_read, sh64_pseudo_register_write,
6369 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6370 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6371 sh64_do_pseudo_register, sh_compact_do_registers_info,
6372 sh64_do_registers_info, sh_gdbarch_init): New functions.
6373
3117ed25
EZ
63742002-05-10 Elena Zannoni <ezannoni@redhat.com>
6375
6376 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6377
2654e6d4
DJ
63782002-05-10 Daniel Jacobowitz <drow@mvista.com>
6379
6380 * linespec.c (decode_line_1): Check for a double quote after
6381 a filename correctly.
6382
9ab3e532
JB
63832002-05-10 Jim Blandy <jimb@redhat.com>
6384
6385 Properly track the size of the current objfile's .debug_line section.
6386 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6387 (DWARF_LINE_SIZE): New macro.
6388 (dwarf2_build_psymtabs_hard): Record the line section's size in
6389 the partial symbol table.
6390 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6391 symbol table.
6392
126fa72d
PS
63932002-05-10 Petr Sorfa <petrs@caldera.com>
6394
6395 * ia64-tdep.c: Handle breakpoints on L instruction type
6396 in MLX instruction bundle by moving the breakpoint to
6397 the third slot (X instruction type) as L holds only data.
6398
1f077a3e
KB
63992002-05-10 Kevin Buettner <kevinb@redhat.com>
6400
6401 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6402 (process_one_symbol): Complain about discarding local symbols
6403 due to a misplaced N_LBRAC entry.
6404
8120c9d5 64052002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6406
6407 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6408 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6409 decrease the depth we are at, in the case of templates.
361d1df0 6410
67b2c998
DJ
64112002-05-09 Daniel Jacobowitz <drow@mvista.com>
6412
6413 * mips-tdep.c (mips_float_register_type): New function.
6414 (mips_double_register_type): New function.
6415 (mips_print_register): Use them.
6416 (do_fp_register_row): Likewise.
6417
fd326606
DJ
64182002-05-09 Daniel Jacobowitz <drow@mvista.com>
6419
6609d9af 6420 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6421 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6422 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6423
bef35864
MS
64242002-05-09 Michael Snyder <msnyder@redhat.com>
6425
6426 * remote-rdp.c (remote_rdp_can_run): Remove.
6427
c55a3f73
TT
64282002-05-09 Tom Tromey <tromey@redhat.com>
6429
6430 * jv-valprint.c (java_val_print): Handle `char' as a special case
6431 of TYPE_CODE_INT.
6432
b8d5e71d
MS
64332002-05-09 Michael Snyder <msnyder@redhat.com>
6434
6435 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6436 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6437 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6438 str r(0123),[sp,#nn].
361d1df0 6439 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6440 order-independent by placing it in a loop.
6441
e2cd42dd
MS
64422002-05-06 Michael Snyder <msnyder@redhat.com>
6443
6444 * stabsread.c (read_type): Add recognition for new attribute:
6445 "@V;" means that an array type is actually a vector.
6446 This is analogous to the vector flag that's been added to dwarf2.
6447
3ce1502b
MK
64482002-05-09 Mark Kettenis <kettenis@gnu.org>
6449
6450 * i386-tdep.h (i386_abi): New enum.
6451 (struct gdbarch_tdep): Replace os_ident member with abi.
6452 (i386_gdbarch_register_os_abi): New prototype.
6453 * i386-tdep.c (i386_abi_names): New array.
6454 (process_note_abi_tag_sections): Removed.
6455 (process_note_sections): New function.
6456 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6457 (struct i386_abi_handler): New struct.
6458 (i386_abi_handler_list): New variable.
6459 (i386_gdbarch_register_os_abi): New function.
6460 (i386_gdbarch_init): Adapt for the changes given above.
6461
084c156a
DJ
64622002-05-08 Daniel Jacobowitz <drow@mvista.com>
6463
6464 * gregset.h: Say "GNU/Linux".
6465
6599f021
EZ
64662002-05-08 Elena Zannoni <ezannoni@redhat.com>
6467
6468 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6469 (build_gdbtypes): Build builtin_type_v2_float.
6470 (_initialize_gdbtypes): Register new builtin type.
6471
40af4b0c
AC
64722002-05-08 Andrew Cagney <ac131313@redhat.com>
6473
6474 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6475 (clear_gdbarch_swap): New function.
6476 (initialize_non_multiarch): Call.
6477 (gdbarch_update_p): Before calling init(), swap out and clear the
6478 existing architecture.
6479 * gdbarch.c: Regenerate.
6480
4fe84f46
JT
64812002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6482
6483 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6484 alphanbsd-tdep.c.
6485
4015edd1
JT
64862002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6487
6488 * sh-nbsd-nat.c: Rename to...
6489 * shnbsd-nat.c: ...this.
6490 * sh-nbsd-tdep.c: Rename to...
6491 * shnbsd-tdep.c: ...this.
6492 * sh-nbsd-tdep.h: Rename to...
6493 * shnbsd-tdep.h: ...this.
6494 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6495 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6496
0e2bd219
RE
64972002-05-08 Richard Earnshaw <rearnsha@arm.com>
6498
6499 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6500 concatenation for command help messages.
6501
13a38d45
JT
65022002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * NEWS: Note new sh*-*-netbsdelf* configuration.
6505 * configure.host: Set gdb_host_cpu to sh for all sh*.
6506 (sh*-*-netbsdelf*): New host.
6507 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6508 (sh*-*-netbsdelf*): New target.
6509 * sh-nbsd-nat.c: New file.
6510 * sh-nbsd-tdep.c: New file.
6511 * sh-nbsd-tdep.h: New file.
6512 * config/sh/nbsd.mh: New file.
6513 * config/sh/nbsd.mt: New file.
6514 * config/sh/nm-nbsd.h: New file.
6515 * config/sh/tm-nbsd.h: New file.
6516
d658f924
JT
65172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6518
6519 * sh-tdep.c (sh_osabi_names): Declare.
6520 (process_note_abi_tag_sections): New function.
6521 (get_elfosabi): Ditto.
6522 (sh_gdbarch_register_os_abi): Ditto.
6523 (sh_dump_tdep): Ditto.
6524 _initialize_sh_tdep): Use gdbarch_register to register
6525 sh_gdbarch_init and sh_dump_tdep.
6526 * config/sh/tm-sh.h (sh_osabi): Declare.
6527 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6528
848cfffb
AC
65292002-05-07 Andrew Cagney <ac131313@redhat.com>
6530
6531 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6532 (thumb_scan_prologue): Ditto.
6533 (arm_find_callers_reg): Ditto.
6534 (arm_frame_chain): Ditto.
6535 (arm_init_extra_frame_info): Ditto.
6536 (arm_frame_saved_pc): Ditto.
6537 (arm_pop_frame): Ditto.
6538 (arm_push_return_address): New function.
6539 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6540 call_dummy_location, call_dummy_breakpoint_offset_p,
6541 call_dummy_breakpoint_offset, call_dummy_p,
6542 call_dummy_stack_adjust_p, call_dummy_words,
6543 sizeof_call_dummy_words, call_dummy_start_offset,
6544 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6545 call_dummy_address, push_return_address and push_dummy_frame for
6546 generic dummy frames.
6547
e7d717c0
JT
65482002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6549
6550 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6551 size computation for alloca.
6552 (sh_fp_frame_init_saved_regs): Likewise.
6553
7bbcf283
RE
65542002-05-07 Richard Earnshaw <rearnsha@arm.com>
6555
6556 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6557 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6558 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6559 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6560 * remote-rdp.c (remote_rdp_fetch_register): Use
6561 ARM_MAX_REGISTER_RAW_SIZE.
6562 (remote_rdp_store_register): Likewise.
6563
4657573b
ML
65642002-05-07 Michal Ludvig <mludvig@suse.cz>
6565
361d1df0 6566 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6567 added default labels to switch {} statements.
6568 * x86-64-tdep.c: Ditto.
6569 * x86-64-linux-nat.c: Ditto.
6570
010f3b2f
JT
65712002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6572
6573 * solib.h: Protect against multiple inclusion.
6574
debd256d
JB
65752002-05-06 Jim Blandy <jimb@redhat.com>
6576
9ab3e532
JB
6577 Add first preprocessor macro-expansion files.
6578 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6579 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6580 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6581 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6582 (COMMON_OBS): Add macrotab.o, macroexp.o.
6583 (macroexp.o, macrotab.o): New rules.
6584
debd256d
JB
6585 Separate the job of reading the line number info statement program
6586 header (...expialidocious) out into its own function.
6587 * dwarf2read.c (struct line_head, struct filenames, struct
6588 directories): Replace with...
6589 (struct line_header): New structure, containing the full
6590 contents of the statement program header, including the
6591 include directory and file name tables.
6592 (read_file_scope): If we have line number info, instead of just
6593 calling dwarf_decode_lines to do all the work, call
6594 dwarf_decode_line_header first to get a `struct line_header'
6595 containing the data in the statement program header, and then
6596 pass that to dwarf_decode_lines, which will pick up where that
6597 left off. Be sure to clean up the `struct line_header' object.
6598 (dwarf_decode_line_header, free_line_header, add_include_dir,
6599 add_file_name): New functions.
6600 (dwarf_decode_lines): Move all the code to read the statement
6601 program header into dwarf_decode_line_header. Take the line
6602 header it built as the first argument, instead of the offset to
6603 the compilation unit's line number info. Use the new `struct
6604 line_header' type instead of the old structures. No need to do
6605 cleanups here now, since we don't allocate anything.
6606 (dwarf2_statement_list_fits_in_line_number_section,
6607 dwarf2_line_header_too_long): New complaints.
6608
ac3aafc7
EZ
66092002-05-06 Elena Zannoni <ezannoni@redhat.com>
6610
6611 * gdbtypes.c (init_vector_type): New function.
6612 (build_builtin_type_vec128): Simplify the representation of SIMD
6613 registers.
6614 (build_gdbtypes): Initialize new builtin vector types.
6615 (_initialize_gdbtypes): Register new vector types with gdbarch.
6616 (builtin_type_v4_float, builtin_type_v4_int32,
6617 builtin_type_v8_int16, builtin_type_v16_int8,
6618 builtin_type_v2_int32, builtin_type_v4_int16,
6619 builtin_type_v8_int8): New (renamed) SIMD types.
6620
13e49980
MK
66212002-05-06 Mark Kettenis <kettenis@gnu.org>
6622
6623 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6624 (i387_fill_fxsave): Likewise.
6625
997b20b8
AO
66262002-05-05 Alexandre Oliva <aoliva@redhat.com>
6627
6628 * alpha-tdep.c (alpha_extract_return_value): Don't use
6629 non-constant array size in prototype.
6630
535c96ce
AC
66312002-05-04 Andrew Cagney <ac131313@redhat.com>
6632
6633 From Brian Taylor <briant at model dot com>:
6634 * ui-out.c (ui_out_field_core_addr): Use the function
6635 longest_local_hex_string_custom'to format addresses > 32 bits
6636 wide.
6637
6638 * ui-out.c (ui_out_field_core_addr): Update comment.
6639
bedfa57b
AC
66402002-05-04 Andrew Cagney <ac131313@redhat.com>
6641
6642 * stack.c (select_and_print_frame): Make static. Delete the
6643 parameter `level'.
6644 (func_command): Update call.
6645 (select_frame_command): Delete code computing the frame level.
6646 * frame.h (select_and_print_frame): Delete declaration.
6647
f621c63e
AC
66482002-05-04 Andrew Cagney <ac131313@redhat.com>
6649
6650 * sparc-tdep.c (sparc_get_saved_register): Comment why
6651 get_prev_frame call is safe.
6652
0f7d239c
AC
66532002-05-04 Andrew Cagney <ac131313@redhat.com>
6654
6655 * frame.h (select_frame): Delete level parameter.
6656 * stack.c (select_frame): Update. Use frame_relative_level to
6657 obtain the frame's level.
6658 (select_and_print_frame): Update call.
6659 (select_frame_command): Ditto.
6660 (up_silently_base): Ditto.
6661 (down_silently_base): Ditto.
6662 * ocd.c (ocd_start_remote): Ditto.
6663 * remote-rdp.c (remote_rdp_open): Ditto.
6664 * remote-mips.c (mips_initialize): Ditto.
6665 (common_open): Ditto.
6666 * remote-e7000.c (e7000_start_remote): Ditto.
6667 * m3-nat.c (select_thread): Ditto.
6668 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6669 (child_get_current_exception_event): Ditto.
6670 * varobj.c (varobj_create): Ditto.
6671 (varobj_update): Ditto.
6672 (c_value_of_root): Ditto.
6673 * tracepoint.c (finish_tfind_command): Ditto.
6674 * corelow.c (core_open): Ditto.
6675 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6676 * thread.c (info_threads_command): Ditto.
6677 (switch_to_thread): Ditto.
6678 * infrun.c (normal_stop): Ditto.
6679 (restore_selected_frame): Ditto.
6680 (restore_inferior_status): Ditto.
6681 * breakpoint.c (insert_breakpoints): Ditto.
6682 (watchpoint_check): Ditto.
6683 (bpstat_stop_status): Ditto.
6684 (do_enable_breakpoint): Ditto.
6685 * blockframe.c (flush_cached_frames): Ditto.
6686 (reinit_frame_cache): Ditto.
6687
71d6c7b1
AC
66882002-05-04 Andrew Cagney <ac131313@redhat.com>
6689
6690 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6691 maintainer.
6692
cda6c68a
JB
66932002-05-04 Jim Blandy <jimb@redhat.com>
6694
6695 * gdbtypes.c (replace_type): Doc fix.
6696
5c1c87f0
AC
66972002-05-04 Andrew Cagney <ac131313@redhat.com>
6698
6699 * valprint.c (strcat_longest): Delete commented out function.
6700 Update copyright.
6701
cd9bfe15
AC
67022002-05-04 Andrew Cagney <ac131313@redhat.com>
6703
6704 * MAINTAINERS: Mark a29k as deleted.
6705 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6706 Move new configurations to the top.
6707 * configure.tgt: Remove a29k.
6708 * config/a29k/tm-vx29k.h: Delete.
6709 * config/a29k/vx29k.mt: Delete.
6710 * config/a29k/tm-a29k.h: Delete.
6711 * config/a29k/a29k-udi.mt: Delete.
6712 * config/a29k/a29k.mt: Delete.
6713 * a29k-tdep.c: Delete.
6714 * remote-udi.c: Delete.
6715 * remote-mm.c: Delete.
6716 * remote-eb.c: Delete.
6717 * remote-adapt.c: Delete.
6718 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6719 * config/s390/s390x.mt: Ditto.
6720 * config/s390/s390.mt: Ditto.
6721 * config/sparc/sparclynx.mh: Ditto.
6722 * config/sparc/linux.mh: Ditto.
6723 * config/pa/hppaosf.mh: Ditto.
6724 * config/pa/hppabsd.mh: Ditto.
6725 * config/ns32k/nbsd.mt: Ditto.
6726 * config/mips/vr5000.mt: Ditto.
6727 * config/m68k/sun3os4.mh: Ditto.
6728 * config/m68k/nbsd.mt: Ditto.
6729 * config/m68k/m68klynx.mh: Ditto.
6730 * config/m32r/m32r.mt: Ditto.
6731 * config/i386/x86-64linux.mt: Ditto.
6732 * config/i386/nbsdelf.mt: Ditto.
6733 * config/i386/nbsd.mt: Ditto.
6734 * config/i386/i386lynx.mh: Ditto.
6735
bf0c5130
AC
67362002-05-04 Andrew Cagney <ac131313@redhat.com>
6737
6738 * target.c (debug_print_register): New function. Handle oversize
6739 registers.
6740 (debug_to_fetch_registers): Call.
6741 (debug_to_store_registers): Call.
6742
2ae1c2d2
JB
67432002-05-03 Jim Blandy <jimb@redhat.com>
6744
13a393b0
JB
6745 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6746 (read_type): Doc fix.
6747 * gdbtypes.c (replace_type): Doc fix.
6748
2ae1c2d2
JB
6749 * stabsread.c (multiply_defined_struct): New complaint.
6750 (read_struct_type): If the type we were passed isn't empty, or
6751 incomplete, don't read the new struct type into it; complain,
6752 and return the original type unchanged. Take a new `type_code'
6753 argument, which is the type code for the new type.
6754 (read_type): Rather than storing the type's type code here, pass
6755 it as an argument to read_struct_type, and let that take care of
6756 storing it. That way, we don't overwrite the original type code,
6757 so read_struct_type can use it to decide whether we're overwriting
6758 something we shouldn't.
6759 (complain_about_struct_wipeout): New function.
6760
8de9bdc4
AC
67612002-05-03 Andrew Cagney <ac131313@redhat.com>
6762
6763 * gdbarch.sh: Assert that gdbarch is non-NULL.
6764 * gdbarch.c: Regenerate.
6765
f773fdbb
JM
67662002-05-03 Jason Merrill <jason@redhat.com>
6767
6768 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6769 and return NULL.
6770
0e04a514
ML
67712002-05-03 Michal Ludvig <mludvig@suse.cz>
6772
6773 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6774 (x86_64_dwarf2gdb_regno_map_length),
6775 (x86_64_dwarf2_reg_to_regnum): Added.
6776 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6777 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6778 (_initialize_x86_64_tdep): Synced with the change above.
6779 (x86_64_skip_prologue): Reformulated message.
6780
065432a8
PM
67812002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6782
6783 * f-exp.y: Also use new prev_lexptr variable
6784 to improve error reporting. Based on Michael Snyder
6785 2002-04-24 dated patch to c-exp.y.
6786 * jv-exp.y: Likewise.
6787 * m2-exp.y: Likewise.
6788
a3162708
EZ
67892002-05-02 Elena Zannoni <ezannoni@redhat.com>
6790
6791 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6792 we are dealing with vectors.
6793
03620c38
PM
67942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6795
6796 * config/m68k/tm-nbsd.h: Obvious fix,
6797 correct machine name.
6798
6604db2e
PM
67992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6800
6801 * p-typeprint.c (pascal_type_print_base): Add support
6802 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6803
0906b739
PM
68042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6805
6806 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6807 for fondamental pascal 'char' type.
6808
e2625b33
PM
68092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6810
6811 * p-lang.h (is_pascal_string_type): Declaration changed,
6812 new sixth argument of type char ** added.
361d1df0 6813 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6814 changed. Args length_pos, length_size, string_pos, char_size
6815 can now be NULL. New argument arrayname set to the field
6816 name of the char array. Return value set to char array
6817 field index plus one.
361d1df0 6818 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6819 is_pascal_string_type function.
6820
cf17c188
AC
68212002-05-02 Andrew Cagney <cagney@redhat.com>
6822
6823 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6824 <cagney@redhat.com> change.
6825 * gdbarch.c: Regenerate.
6826
52bca491
AC
68272002-05-02 Andrew Cagney <cagney@redhat.com>
6828
6829 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6830 before probing for a new one. Detect errorenous gdbarch_init
6831 functions.
6832 * gdbarch.c: Regenerate.
6833
d5e72505
AC
68342002-05-01 Andrew Cagney <cagney@redhat.com>
6835
6836 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6837 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6838 * config/v850/tm-v850.h: Ditto. Update copyright.
6839
af566d9f
AC
68402002-04-30 Andrew Cagney <ac131313@redhat.com>
6841
6842 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6843 current_gdbarch.
6844
880d85fa
MS
68452002-04-30 Michael Snyder <msnyder@redhat.com>
6846
94c30b78
MS
6847 * arm-tdep.c: Whitespace clean-ups.
6848 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6849 should have been removed as part of 4/24 change.
6850
6f5987a6
KB
68512002-04-30 Kevin Buettner <kevinb@redhat.com>
6852
6853 * rs6000-tdep.c: Added comment describing how fpscr register
6854 numbers were chosen.
6855
1a113c93
MS
68562002-04-30 Michael Snyder <msnyder@redhat.com>
6857
6858 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6859
9a6f53fe
EZ
68602002-04-29 Elena Zannoni <ezannoni@redhat.com>
6861
6862 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6863 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6864 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6865
11ed25ac
KB
68662002-04-29 Kevin Buettner <kevinb@redhat.com>
6867
6868 From Louis Hamilton <hamilton@redhat.com>:
6869 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6870 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6871 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6872 not bfd-private xcoff data, to determine wordsize.
6873 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6874
ae232405
AC
68752002-04-29 Andrew Cagney <ac131313@redhat.com>
6876
6877 GDB 5.2 released from 5.2 branch.
6878
91fd20f7
ML
68792002-04-29 Michal Ludvig <mludvig@suse.cz>
6880
6881 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6882 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6883 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6884
2dc5091b
EZ
68852002-04-29 Elena Zannoni <ezannoni@redhat.com>
6886
6887 * rs6000-tdep.c (rs6000_extract_return_value,
6888 rs6000_store_return_value): Handle returning vectors.
6889 (rs6000_gdbarch_init): Use
6890 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6891 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6892 New function.
6893 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6894 vectors.
6895 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6896 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6897
2b9848d8
PM
68982002-04-24 Pierre Muller <ics.u-strasbg.fr>
6899
6900 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6901 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6902 with fprintf_unfiltered (gdb_stderr,...).
6903
f8d17dc5
PM
69042002-04-24 Pierre Muller <ics.u-strasbg.fr>
6905
6906 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6907 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6908 Replace fprintf (stderr,...
6909 with fprintf_unfiltered (gdb_stderr,....
6910 * remote-es.c: Likewise.
6911 * remote-os9k.c: Likewise.
6912 * remote-st.c: Likewise.
6913
2f2f1ad1
AS
69142002-04-28 Andreas Schwab <schwab@suse.de>
6915
6916 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6917 linux-proc.o and gcore.o.
6918
b6779aa2
AC
69192002-04-26 Michal Ludvig <mludvig@suse.cz>
6920
6921 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6922 code without frame pointers.
6923
7e57f5f4
AC
69242002-04-26 Andrew Cagney <ac131313@redhat.com>
6925
6926 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6927 ON_STACK is needed.
6928
2ceb85d0
BE
69292002-04-26 Ben Elliston <bje@redhat.com>
6930
6931 * target.c (do_xfer_memory): Correct reference to the new option
6932 "trust-readonly-sections".
6933
f5f8a009
EZ
69342002-04-26 Elena Zannoni <ezannoni@redhat.com>
6935
6936 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6937 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6938 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6939 vectors.
6940 (read_array_type): Record the fact that this array type is really a
6941 vector (i.e. are passed in by value).
6942
5868c862
JT
69432002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6946 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6947 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6948 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6949 * alpha-linux-tdep.c: Include frame.h.
6950 (alpha_linux_sigcontext_addr): New function.
6951 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6952 alpha_linux_sigcontext_addr.
6953 * alpha-osf1-tdep.c: Include gdbcore.h.
6954 (alpha_osf1_sigcontext_addr): New function.
6955 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6956 alpha_osf1_sigcontext_addr.
6957 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6958 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6959
bfb01f37
AC
69602002-04-26 Andrew Cagney <ac131313@redhat.com>
6961
361d1df0 6962 * stack.c (selected_frame_level):
bfb01f37
AC
6963 (select_frame): Do not set selected_frame_level.
6964 * frame.h (selected_frame_level): Delete declaration.
6965
15813d3f
AC
69662002-04-26 Andrew Cagney <ac131313@redhat.com>
6967
6968 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6969 convert_from_func_ptr-addr when AIX / PowerOpen.
6970
6096c27a
AC
69712002-04-25 Andrew Cagney <ac131313@redhat.com>
6972
6973 * valops.c (hand_function_call): Call
6974 generic_save_call_dummy_addr.
6975 * frame.h (generic_save_call_dummy_addr): Declare.
6976 * blockframe.c (struct dummy_frame): Add fields call_lo and
6977 call_hi.
6978 (generic_find_dummy_frame): Check for PC in range call_lo to
6979 call_hi instead of entry_point_address.
6980 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6981 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6982 (generic_save_call_dummy_addr): New function.
6983
f510d44e
DM
69842002-04-24 David S. Miller <davem@redhat.com>
6985
6986 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6987 sparc_skip_prologue.
6988 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6989 information to find prologue when possible.
6990 (sparc_prologue_frameless_p): Call examine_prologue directly.
6991 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6992 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6993 second argument.
6994 (SKIP_PROLOGUE): Likewise.
6995
15d72a92
JT
69962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6999 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7000 indicate that the condition it was testing is always true.
7001 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7002 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7003 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7004
accc6d1f
JT
70052002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7006
7007 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7008 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7009 tdep->jb_pc and tdep->jb_elt_size.
7010 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7011 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7012 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7013 * alpha-nat.c (get_longjmp_target): Remove.
7014 (JB_ELEMENT_SIZE): Ditto.
7015 (JB_PC): Ditto.
7016 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7017 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7018 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7019 to alpha_get_longjmp_target.
7020 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7021 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7022 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7023
1bfdc549
AC
70242002-04-25 Andrew Cagney <ac131313@redhat.com>
7025
7026 * README: Update to GDB 5.2.
7027
1bd316f0
AC
70282002-04-25 Andrew Cagney <ac131313@redhat.com>
7029
7030 * gdbarch.sh (LC_ALL): Set to `c'.
7031
2e5ff58c
TR
70322002-04-25 Theodore A. Roth <troth@verinet.com>
7033
7034 * avr-tdep.c: Ran through gdb_indent.sh.
7035
e33ce519
TR
70362002-04-25 Theodore A. Roth <troth@verinet.com>
7037
7038 * MAINTAINERS: Add myself as AVR maintainer.
7039 * NEWS: Note new target avr.
7040
8818c391
TR
70412002-04-25 Theodore A. Roth <troth@verinet.com>
7042
7043 * Makefile.in: Add support for AVR target.
7044 * configure.tgt: Add support for AVR target.
7045 * avr-tdep.c: New file
7046 * config/avr/avr.mt: New file.
7047
79509c2d
TR
70482002-04-25 Theodore A. Roth <troth@verinet.com>
7049
7050 * MAINTAINERS: Add myself to write-after-approval.
7051
dac8068e
PM
70522002-04-24 Pierre Muller <ics.u-strasbg.fr>
7053
7054 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7055 with fprintf_unfiltered (gdb_stderr,....
7056
25bf3106
PM
70572002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7058
7059 Fix PR gdb/508.
7060 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7061
24467a86
PM
70622002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7063
7064 * p-exp.y: Also use new prev_lexptr variable
7065 to improve error reporting. Based on Michael Snyder
7066 2002-04-24 dated patch to c-exp.y.
7067
95b80706
JT
70682002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7071 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7072 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7073 to 0.
7074 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7075 and struct value.
7076 (FUNCTION_START_OFFSET): Remove.
7077 (BREAKPOINT): Ditto.
7078
e90cc612
JT
70792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7082 * NEWS: Ditto.
7083
6c72f9f9
JT
70842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7087 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7088 alpha_linux_pc_in_sigtramp.
7089 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7090 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7091 alpha_osf1_pc_in_sigtramp.
7092 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7093 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7094 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7095 alphafbsd_pc_in_sigtramp.
7096 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7097 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7098 alphanbsd_pc_in_sigtramp.
7099 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7100 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7101
5e4f3379
JT
71022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7103
7104 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7105
da8ca43d
JT
71062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7107
7108 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7109 alphanbsd-tdep.c.
7110 (alphanbsd-nat.o): New dependency list.
7111 (alphanbsd-tdep.o): Ditto.
7112 * NEWS: Note new native NetBSD/alpha configuration.
7113 * alphanbsd-nat.c: New file.
7114 * alphanbsd-tdep.c: Ditto.
7115 * configure.host (alpha*-*-netbsd*): New host.
7116 * configure.tgt (alpha*-*-netbsd*): New target.
7117 * config/alpha/nbsd.mh: New file.
7118 * config/alpha/nbsd.mt: Ditto.
7119 * config/alpha/nm-nbsd.h: Ditto.
7120 * config/alpha/tm-nbsd.h: Ditto.
7121
36a6271d
JT
71222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7123
7124 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7125 (alpha-osf1-tdep.o): New dependency list.
7126 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7127 and skip_sigtramp_frame members.
7128 * alpha-linux-tdep.c: Include gdbcore.h.
7129 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7130 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7131 * alpha-osf1-tdep.c: New file.
7132 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7133 alpha-osf1-dep.c.
7134 (alpha_frame_past_sigtramp_frame): New function.
7135 (alpha_dynamic_sigtramp_offset): Ditto.
7136 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7137 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7138 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7139 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7140 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7141 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7142 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7143 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7144 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7145 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7146 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7147 to find_solib_trampoline_target.
7148 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7149 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7150 (SKIP_TRAMPOLINE_CODE): Remove.
7151 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7152 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7153 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7154 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7155 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7156 (PROC_SIGTRAMP_MAGIC): Ditto.
7157 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7158 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7159 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7160 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7161 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7162
2f4bc57b
JT
71632002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7164
7165 * NEWS: Note that Alpha targets are now multi-arch.
7166
665132f9
MS
71672002-04-24 Michael Snyder <msnyder@redhat.com>
7168
7169 * parser-defs.h (prev_lexptr): New external variable.
7170 * parse.c (parse_exp_1): Set prev_lexptr to null before
7171 calling the language-specific parser.
7172 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7173 (yyerror): Use prev_lexptr in error reporting.
7174
32872fa7
DJ
71752002-04-24 Daniel Jacobowitz <drow@mvista.com>
7176
7177 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7178 * gregset.h: If FILL_FPXREGSET is defined, provide
7179 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7180 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7181 is defined, call fill_fpxregset.
7182
57e76fac
MS
71832002-04-24 Roland McGrath <roland@frob.com>
7184
7185 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7186 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7187 (supply_gregset, supply_fpregset): New functions.
7188
7189 * gnu-nat.c (gnu_find_memory_regions): New function.
7190 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7191 (gnu_xfer_memory): Add a cast.
7192
f43845b3
MS
71932002-04-24 Michael Snyder <msnyder@redhat.com>
7194
361d1df0 7195 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7196 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7197 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7198 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7199 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7200 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7201
a0abec03
AC
7202Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7203
7204 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7205 NUM_PSEUDO_REGS can be used.
7206
d7bd68ca
AC
72072002-04-24 Andrew Cagney <ac131313@redhat.com>
7208
7209 * arch-utils.h: Update copyright.
7210
7211 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7212 * gdbarch.h, gdbarch.c: Re-generate.
7213
7214 * inferior.h (IN_SIGTRAMP): Delete definition.
7215 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7216 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7217
7218 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7219 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7220 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7221 (find_proc_framesize): Ditto.
7222 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7223 (alpha_init_extra_frame_info): Ditto.
7224 * infrun.c (handle_inferior_event): Ditto.
7225 (handle_inferior_event): Ditto.
7226 (check_sigtramp2): Ditto.
7227 * blockframe.c (create_new_frame): Ditto.
7228 (get_prev_frame): Ditto.
7229 * ppc-linux-tdep.c: Update comments.
7230 * i386-linux-tdep.c: Update comments.
7231 * breakpoint.c (bpstat_what): Update comment.
7232
4867e41e
DM
72332002-04-24 David S. Miller <davem@redhat.com>
7234
21d83aa5
DM
7235 * i960-tdep.c (register_in_window_p): New function.
7236 (i960_find_saved_register): Use it instead of
7237 REGISTER_IN_WINDOW_P.
7238 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7239
4867e41e
DM
7240 * symtab.h (find_stab_function_addr): Kill extern.
7241 * minsyms.c (find_stab_function_addr): Remove from here...
7242 * dbxread.c: ... to here, and mark it static.
7243
69cdf6a2
DM
72442002-04-20 David S. Miller <davem@redhat.com>
7245
7246 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7247 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7248
5a595886
DM
72492002-04-21 David S. Miller <davem@redhat.com>
7250
7251 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7252 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7253 (vx_write_register): Likewise.
7254
1da1a192
JB
72552002-04-23 J. Brobecker <brobecker@gnat.com>
7256
7257 * source.c (is_regular_file): New function.
7258 (openp): Check wether file to open is a regular file
7259 to avoid opening directories.
7260
baa6f10b
JT
72612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7262
7263 * findvar.c (extract_signed_integer): Cast printf argument
7264 to suppress format warning.
7265 (extract_unsigned_integer): Likewise.
7266 * infcmd.c (registers_info): Likewise.
7267 * top.c (get_prompt_1): Likewise.
7268 * valops.c (value_assign): Likewise.
7269 * valprint.c (print_decimal): Likewise.
7270
b2c4da81
L
72712002-04-22 H.J. Lu (hjl@gnu.org)
7272
7273 * c-exp.y (typebase): Support
361d1df0 7274
b2c4da81
L
7275 [long|long long|short] [signed|unsigned] [int|]
7276
7277 and
7278
7279 signed [long|long long|short] int
7280
f267bd6a
JT
72812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7282
7283 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7284 and vax-tdep.h.
7285 * vax-tdep.h: New file.
7286 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7287 Make several routines static.
7288 (vax_get_saved_register): New function.
7289 (vax_gdbarch_init): New function.
7290 (_initialize_vax_tdep): Register vax_gdbarch_init.
7291 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7292 Remove macros now under the control of gdbarch.
7293
da3c6d4a
MS
72942002-04-22 Michael Snyder <msnyder@redhat.com>
7295
11d3b27d
MS
7296 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7297 Some whitespace and coding standards tweaks.
da3c6d4a 7298
a33f7558
JT
72992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7300
7301 * vax-tdep.c: Include regcache.h.
7302 (vax_call_dummy_words): New.
7303 (sizeof_vax_call_dummy_words): New.
7304 (vax_fix_call_dummy): New function.
7305 (vax_saved_pc_after_call): Ditto.
7306 * config/vax/tm-vax.h: Don't include regcache.h.
7307 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7308 (CALL_DUMMY): Remove.
7309 (CALL_DUMMY_WORDS): Define.
7310 (SIZEOF_CALL_DUMMY_WORDS): Define.
7311 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7312
47a73475
MS
73132002-04-18 Michael Snyder <msnyder@redhat.com>
7314
7315 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7316
52efde73
JT
73172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7318
7319 * vax-tdep.c (vax_frame_chain): New function.
7320 (vax_push_dummy_frame): Ditto.
7321 (vax_pop_frame): Ditto.
7322 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7323 (FRAMELESS_FUNCTION_INVOCATION): Use
7324 generic_frameless_function_invocation_not.
7325 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7326 (POP_FRAME): Use vax_pop_frame.
7327
ea74468c
JT
73282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7329
7330 * vax-tdep.c (vax_store_struct_return): New function.
7331 (vax_extract_return_value): Ditto.
7332 (vax_store_return_value): Ditto.
7333 (vax_extract_struct_value_address): Ditto.
7334 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7335 vax_store_struct_return.
7336 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7337 (STORE_RETURN_VALUE): Use vax_store_return_value.
7338 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7339
5516aa92
JT
73402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7341
7342 * vax-tdep.c (vax_frame_saved_pc): New function.
7343 (vax_frame_args_address_correct): Ditto.
7344 (vax_frame_args_address): Ditto.
7345 (vax_frame_locals_address): Ditto.
7346 (vax_frame_num_args): Move code to be in proximity to
7347 other frame-related functions.
7348 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7349 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7350 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7351 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7352 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7353
36af0b35
L
73542002-04-22 H.J. Lu (hjl@gnu.org)
7355
7356 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7357 includedir.
7358
ab62c900
JT
73592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7360
7361 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7362 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7363 (FRAME_INIT_SAVED_REGS): New macro.
7364
7232b100
JT
73652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7366
7367 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7368
b70d2aee
JT
73692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7370
7371 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7372 where needed.
7373 (fetch_osf_core_registers): Likewise.
7374 (supply_gregset): Likewise.
7375
a0e8a2d1 73762002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7377
a0e8a2d1
JB
7378 * symfile.h (get_section_index): Define.
7379 * symfile.c (get_section_index): New function.
7380 * mdebugread.c (SC_IS_SBSS): New macro.
7381 (SC_IS_BSS): Return true for the scBss storage class only, as
7382 the scSBss storage class refers to the .sbss section.
7383 (parse_partial_symbols): Discard the symbols which associated
7384 section does not exist.
7385 Make sure to use the .sbss section index for symbols which
7386 storage class is scBss, rather than using the .bss section index.
7387
51eb8b08
JT
73882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7389
7390 * vax-tdep.c: Update copyright years.
7391 (vax_register_name): New function.
7392 (vax_register_byte): Ditto.
7393 (vax_register_raw_size): Ditto.
7394 (vax_register_virtual_size): Ditto.
7395 (vax_register_virtual_type): Ditto.
7396 * config/vax/tm-vax.h: Update copyright years.
7397 (REGISTER_NAMES): Remove.
7398 (REGISTER_NAME): Define.
7399 (REGISTER_BYTE): Use vax_register_byte.
7400 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7401 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7402 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7403
6cc1c0a8
AC
74042002-04-21 Andrew Cagney <ac131313@redhat.com>
7405
7406 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7407 declaration
7408 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7409
9319a2fe
DM
74102002-04-21 David S. Miller <davem@redhat.com>
7411
7412 * arch-utils.c (generic_prologue_frameless_p): Kill
7413 SKIP_PROLOGUE_FRAMELESS_P code.
7414 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7415 references.
7416 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7417 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7418 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7419 references.
7420 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7421 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7422 (sparc_gdbarch_init): Pass it to
7423 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7424
e9ed6d01
JT
74252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7426
7427 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7428 (alphabsd-nat.o): New dependency list.
7429
36012033
JT
74302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7433 alphafbsd-tdep.c.
7434 (alpha-linux-tdep.o): New dependency list.
7435 (alphafbsd-tdep.o): Likewise.
7436
3379287a
JT
74372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7438
7439 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7440 to here...
7441 * alpha-tdep.c: ...from here.
7442 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7443
4bcbd6cb
JT
74442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7445
7446 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7447 prototype from here...
7448 * alpha-tdep.h: ...to here.
7449
b31da25e
AC
74502002-04-21 Andrew Cagney <ac131313@redhat.com>
7451
7452 * frame.h (selected_frame_level): Document as deprecated.
7453 (frame_relative_level): Declare.
7454 * stack.c (frame_relative_level): New function.
7455 (selected_frame_level): Document as deprecated.
7456 (select_frame): Do not set the selected_frame_level.
7457
7458 * stack.c (frame_info, record_selected_frame): Update.
7459 (frame_command, current_frame_command): Update.
7460 (up_silently_base, up_command, down_silently_base): Update.
7461 (down_command): Update.
7462 * inflow.c (kill_command): Update.
7463 * tracepoint.c (finish_tfind_command): Update.
7464 * corelow.c (core_open): Update.
7465 * thread.c (info_threads_command): Update.
7466 (do_captured_thread_select): Update.
7467 * infcmd.c (finish_command): Update.
7468 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7469
9c1d6fe5
JT
74702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7473
ab89facf
AC
74742002-04-21 Andrew Cagney <ac131313@redhat.com>
7475
7476 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7477 type const.
7478
82a4efa1
JT
74792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7480
7481 * alphafbsd-tdep.c: Update copyright years. Include
7482 alpha-tdep.h.
7483 (alphafbsd_use_struct_convention): Make static.
7484 (alphafbsd_init_abi): New function.
7485 (_initialize_alphafbsd_tdep): New function.
7486 * config/alpha/tm-fbsd.h: Update copyright years.
7487 (USE_STRUCT_CONVENTION): Remove.
7488
44dffaac
JT
74892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7490
7491 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7492 an Alpha ABI variant.
7493 (alpha_abi_handler_list): Declare.
7494 (alpha_gdbarch_register_os_abi): New function.
7495 (alpha_gdbarch_init): Give registered ABI variant handlers a
7496 chance to tweak the gdbarch once we have set up defaults.
7497 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7498
65585be4
JT
74992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7502 to standard_coerce_float_to_double.
7503 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7504
d9b023cc
JT
75052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7506
7507 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7508 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7509 from gdbarch_tdep rather than a constant.
7510 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7511 the default text address for all Alpha Unix ABIs.
7512 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7513 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7514
dc129d82
JT
75152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * alpha-tdep.h: New file. Includes several Alpha target constants
7518 taken from...
7519 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7520 let gdbarch deal with.
7521 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7522 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7523 to dependency list.
7524 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7525 Alpha target register names.
7526 * alphabsd-nat.c: Likewise.
7527 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7528 Alpha target register names. Make serveral routines static.
7529 (alpha_get_saved_register): New function.
7530 (alpha_abi_names): New.
7531 (process_note_abi_tag_sections): New function.
7532 (get_elfosabi): New function.
7533 (alpha_gdbarch_init): New function.
7534 (alpha_dump_tdep): New function.
7535 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7536
d49d1e0a
AC
75372002-04-21 Andrew Cagney <ac131313@redhat.com>
7538
7539 * frame.c (find_saved_register): Delete #ifdef
7540 HAVE_REGISTER_WINDOWS code.
7541 * config/sparc/tm-sparc.h: Update comments.
7542 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7543
92e8c9ed
AC
75442002-04-21 Andrew Cagney <ac131313@redhat.com>
7545
7546 * i960-tdep.c (i960_find_saved_register): New function.
7547 (i960_get_saved_register): New function.
7548 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7549 (i960_get_saved_register): Declare.
7550 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7551
e1925118
DM
75522002-04-20 David S. Miller <davem@redhat.com>
7553
7554 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7555
29673b29
AC
75562002-04-20 Andrew Cagney <ac131313@redhat.com>
7557
7558 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7559 instead of NUM_PSEUDO_REGS.
7560
6c86dcd5
DM
75612002-04-20 David S. Miller <davem@redhat.com>
7562
7563 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7564 GDB_MULTI_ARCH_PARTIAL
7565 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7566 define, let tm-sp64.h do it.
7567
aa40ec90
JT
75682002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7569
7570 * frame.c (find_saved_register): Avoid a NULL pointer
7571 dereference and actually walk the frame list.
7572
0f79675b
AC
75732002-04-20 Andrew Cagney <ac131313@redhat.com>
7574
7575 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7576 sorted in most most-recent-used order. Document.
7577 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7578
f91305dd 75792002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7580
7581 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7582 instead of ->prev.
7583 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7584 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7585 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7586 instead of ->prev.
7587
73d322b1
EZ
75882002-04-19 Elena Zannoni <ezannoni@redhat.com>
7589
7590 Fix PR gdb/471.
7591 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7592 (build_builtin_type_vec128): Ditto.
7593 (append_composite_type_field): Fix calculation of type length in
7594 union case.
7595
ccd9a834
EZ
75962002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7597
7598 * config/djgpp/README: Update.
7599
7600 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7601 compiler warnings.
7602
a57f9e49
JT
76032002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7604
7605 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7606 (alpha_setup_arbitrary_frame): ...to this.
7607 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7608 for alpha_setup_arbitrary_frame.
7609
f4f9705a
AC
76102002-04-18 Andrew Cagney <cagney@redhat.com>
7611
7612 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7613 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7614
f4f9705a
AC
7615 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7616 * target.h (memory_breakpoint_from_pc): Update declaration.
7617 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7618
7619 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7620 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7621 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7622 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7623 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7624 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7625 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7626 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7627 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7628 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7629 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7630 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7631
7632 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7633 const pointer.
7634 * monitor.c (monitor_insert_breakpoint): Ditto.
7635 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7636
7637 * config/mcore/tm-mcore.h: Update copyright.
7638 * mem-break.c: Ditto.
7639 * xstormy16-tdep.c: Ditto.
7640
29f319b8
PM
76412002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7642
7643 * p-exp.y: Add precedence rule for '^' token.
7644 This removes the shift/reduce conflicts.
7645 Remove the comment concerning these shift/reduce conflicts.
7646
ebeac11a
EZ
76472002-04-18 Elena Zannoni <ezannoni@redhat.com>
7648
7649 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7650 (registers_powerpc_nofp): New register set for processors
7651 without floating point unit.
7652
27c31547
DM
76532002-04-18 David S. Miller <davem@redhat.com>
7654
7655 * MAINTAINERS: Add myself to write-after-approval.
7656
47a73475
MS
76572002-04-17 Michael Snyder <msnyder@redhat.com>
7658
7659 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7660
953836b2
AC
76612002-04-17 Andrew Cagney <ac131313@redhat.com>
7662
7663 * rs6000-tdep.c (frame_initial_stack_address): Use
7664 frame_register_read to read the alloca_reg.
7665
8b0d4340
AC
76662002-04-17 Andrew Cagney <ac131313@redhat.com>
7667
7668 * frame.c (find_saved_register): Find saved registers in the next
7669 not prev frame.
7670 Fix PR gdb/365.
7671
d8864532
AC
76722002-04-17 Andrew Cagney <ac131313@redhat.com>
7673
7674 * gdbarch.sh (LANG): Set to ``c''.
7675
36cc83a3 76762002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7677
36cc83a3 7678 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7679
2f4150cc 76802002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7681
7682 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7683 Update copyright.
7684
628703c6 7685 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7686 Also fix PR gdb/391.
361d1df0 7687
56157b4a
AC
76882002-04-14 Andrew Cagney <ac131313@redhat.com>
7689
7690 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7691 * aclocal.m4, configure: Re-generate.
7692 Fix PR gdb/391.
361d1df0 7693
6d1e3329
EZ
76942002-04-14 Elena Zannoni <ezannoni@redhat.com>
7695
7696 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7697 instead of tm_print_insn.
7698
cb06fa07
EZ
76992002-04-14 Elena Zannoni <ezannoni@redhat.com>
7700
7701 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7702
f208ba17
AC
77032002-04-14 Andrew Cagney <ac131313@redhat.com>
7704
7705 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7706 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7707 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7708
20f01a46
DH
77092002-04-12 Don Howard <dhoward@redhat.com>
7710
7711 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7712 max_user_call_depth.
7713 (init_cmd_lists): Initialize the new value;
7714 * cli/cli-script.c (execute_user_command): Limit the call depth of
7715 user defined commands. This avoids a core-dump when user commands
7716 are infinitly recursive.
7717
a88376a3
KB
77182002-04-12 Kevin Buettner <kevinb@redhat.com>
7719
7720 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7721 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7722 from tdep struct instead of DEFAULT_LR_SAVE.
7723 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7724 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7725 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7726
f2172603
MS
77272002-04-12 Michael Snyder <msnyder@redhat.com>
7728
694f61fb 7729 * Remote.c: Spelling fix.
20fe79c8
MS
7730 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7731 If no symbol found for "sbrk", try "_sbrk".
7732 (make_output_phdrs): Use bfd_section_name.
7733 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7734 * eval.c: Indentation fix-ups.
169a7369
MS
7735 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7736 in case it gets applied to an address that is already
7737 in the instruction space.
de74f71f
MS
7738 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7739 * symfile.c: Fix indentation, long lines.
f2172603
MS
7740 * source.c: White space fix-up.
7741
cda5a58a
AC
77422002-04-12 Andrew Cagney <cagney@redhat.com>
7743
7744 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7745 * frame.c (frame_register_read): New function. Return non-zero on
7746 success.
7747 (read_relative_register_raw_bytes_for_frame): Delete.
7748 (read_relative_register_raw_bytes): Delete.
7749 * frame.h (frame_register_read): Declare.
7750 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7751 * sh-tdep.c: Ditto.
7752 * infcmd.c (do_registers_info): Ditto.
7753 * hppa-tdep.c: Ditto.
7754 * rs6000-tdep.c: Ditto.
7755 * h8500-tdep.c: Ditto.
7756 * mips-tdep.c: Ditto.
7757 * h8300-tdep.c: Ditto.
7758 * z8k-tdep.c: Ditto.
7759
2ea5f656
KB
77602002-04-12 Kevin Buettner <kevinb@redhat.com>
7761
7762 From Jimi X <jimix@watson.ibm.com>:
7763 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7764 64-bit SysV ABI.
7765
27b15785
KB
77662002-04-12 Kevin Buettner <kevinb@redhat.com>
7767
7768 From Jimi X <jimix@watson.ibm.com>:
7769 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7770 bfd info.
7771
5d57ee30
KB
77722002-04-12 Kevin Buettner <kevinb@redhat.com>
7773
7774 From Jimi X <jimix@watson.ibm.com>:
7775 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7776 register sets for these processor variants.
7777
bc1e36ca
DJ
77782002-04-11 Daniel Jacobowitz <drow@mvista.com>
7779
bc1e36ca
DJ
7780 * regformats/reg-ppc.dat: Support FPSCR.
7781
e3f36dbd
KB
77822002-04-11 Kevin Buettner <kevinb@redhat.com>
7783
7784 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7785 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7786 Add fpscr as an invalid/unfetchable register.
7787 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7788 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7789 (fill_fpregset): Add support for register fpscr.
7790 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7791 (fill_gregset): Account for the fact that register ``mq'' might
7792 not exist.
7793 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7794 (registers_power): Add fpscr to register set at slot 71.
7795 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7796 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7797
943c9c25
MS
77982002-04-11 Michael Snyder <msnyder@redhat.com>
7799
7800 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7801 * configure: Regenerate.
7802 * config.in: Regenerate.
7803 * acconfig.h: Add define for _SYSCALL32.
7804 * core-sol2.c: Remove #define _SYSCALL32.
7805 * solib-legacy.c: Remove #define _SYSCALL32.
7806
d8c0a2e7
AC
78072002-04-10 Andrew Cagney <ac131313@redhat.com>
7808
7809 * stack.c (select_frame): Cleanup internal error message, do not
7810 use %p.
7811
7cc19214
AC
78122002-04-10 Andrew Cagney <ac131313@redhat.com>
7813
7814 * stack.c (select_frame): Check that selected_frame and the
7815 specified level are as expected.
7816 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7817 Update copyright.
7818 * frame.h (struct frame_info): Add field `level'. Update
7819 copyright.
7820 Work-in-progress PR gdb/464.
7821
67a2b77e
AC
78222002-04-10 Andrew Cagney <ac131313@redhat.com>
7823
7824 * maint.c (maint_print_section_info): Rename print_section_info.
7825 (print_bfd_section_info, print_objfile_section_info): Update.
7826 * inferior.h (struct gdbarch): Add opaque declaration.
7827 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7828 * gdbarch.h: Regenerate.
7829
8cfda98c
ML
78302002-04-10 Michal Ludvig <mludvig@suse.cz>
7831
7832 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7833 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7834 (kernel_u_size): Added.
7835 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7836 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7837
ca439ad2 78382002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7839
ca439ad2
JI
7840 * valarith.c (find_size_for_pointer_math): New function, either returns
7841 the size for a pointer's target, returns 1 for void *, or errors for
7842 incomplete types.
7843 (value_add, value_sub): use find_size_for_pointer_math.
7844
2f2893d9
DJ
78452002-04-09 Daniel Jacobowitz <drow@mvista.com>
7846
7847 * linux-low.c (linux_look_up_symbols): New hook.
7848 (linux_target_ops): Add linux_look_up_symbols.
7849 * remote-utils.c (decode_address): New function.
7850 (look_up_one_symbol): New function.
7851 * server.c (handle_query): Call target look_up_symbols hook.
7852 * server.h (look_up_one_symbol): Add prototype.
7853 * target.h (struct target_ops): Add look_up_symbols hook.
7854
96cb11df
AC
78552002-04-09 Andrew Cagney <ac131313@redhat.com>
7856
7857 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7858 override FP_REGNUM with frame->fp. Update copyright.
7859 * parse.c (num_std_regs, std_regs): Delete.
7860 (target_map_name_to_register): Do not search std_regs. Update
7861 function description.
7862 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7863 declarations. Update copyright.
7864 Fix PR gdb/251.
361d1df0 7865
97658e92
DJ
78662002-04-09 Daniel Jacobowitz <drow@mvista.com>
7867
7868 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7869 after the last symbol in a block.
7870
6044e3eb
PM
78712002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7872
7873 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7874 is non zero as a found symbol.
7875
0406ec40
AC
78762002-04-08 Andrew Cagney <ac131313@redhat.com>
7877
7878 * findvar.c: Include "builtin-regs.h".
7879 (value_of_register): Call value_of_builtin_reg when applicable.
7880 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7881 (target_map_name_to_register): Call
7882 builtin_reg_map_name_to_regnum.
7883 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7884 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7885 (builtin_regs_h): Define.
7886 (builtin-regs.o): New target.
7887 (findvar.o): Add $(builtin_regs_h).
7888 * builtin-regs.c, builtin-regs.h: New files.
7889 * std-regs.c: New file.
7890 Partial fix for PR gdb/251.
7891
56a6dfb9
KB
78922002-04-08 Kevin Buettner <kevinb@redhat.com>
7893
7894 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7895 it's no longer required.
7896
3a808432
AC
78972002-04-08 Andrew Cagney <ac131313@redhat.com>
7898
7899 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7900
7c40d541
KB
79012002-04-08 Kevin Buettner <kevinb@redhat.com>
7902
7903 From Jimi X <jimix@watson.ibm.com>:
7904 * rs6000-tdep.c (rs6000_software_single_step): Use
7905 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7906 and size. Use target_insert_breakpoint() and
7907 target_remove_breakpoint() to insert and remove breakpoints
7908 instead of explicit memory reads and writes.
7909
cc9836a8
KB
79102002-04-08 Kevin Buettner <kevinb@redhat.com>
7911
7912 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7913 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7914 ELF_OBJECT_FORMAT ifdef.
7915
7495d1dc
KB
79162002-04-08 Kevin Buettner <kevinb@redhat.com>
7917
7918 From Jimi X <jimix@watson.ibm.com>:
7919 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7920
4288e836
KB
79212002-04-08 Kevin Buettner <kevinb@redhat.com>
7922
7923 From Jimi X <jimix@watson.ibm.com>:
7924 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7925 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7926
a4e4e501
MK
79272002-04-07 Mark Kettenis <kettenis@gnu.org>
7928
7929 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7930 s/asprintf/xasprintf/.
7931 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7932
006defba
AC
79332002-04-07 Andrew Cagney <ac131313@redhat.com>
7934
7935 I believe Jeff Law denies responsability for this one:
7936 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7937 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7938 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7939 Work-around for PR gdb/366.
7940
7aa83cac
EZ
79412002-04-07 Elena Zannoni <ezannoni@redhat.com>
7942
7943 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7944 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7945 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7946
cf1fcca1
EZ
79472002-04-07 Elena Zannoni <ezannoni@redhat.com>
7948
7949 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7950 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7951 information.
7952
3f289e6f
AC
79532002-04-07 Andrew Cagney <ac131313@redhat.com>
7954
7955 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7956 maintainer.
7957
129188f6
AC
79582002-04-07 Andrew Cagney <ac131313@redhat.com>
7959
7960 * README (Reporting Bugs in GDB): Document the bug web page as the
7961 prefered way of submitting bugs.
7962 Fix PR gdb/402.
7963
1200cd6e
AC
79642002-04-06 Andrew Cagney <ac131313@redhat.com>
7965
7966 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7967 -1. Update comment.
7968 * gdbarch.h, gdbarch.c: Re-generate.
7969
2853c33c
AS
79702002-04-07 Andreas Schwab <schwab@suse.de>
7971
7972 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7973 buffer to regcache_collect.
7974
c2169756
AC
79752002-04-06 Andrew Cagney <ac131313@redhat.com>
7976
7977 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7978 * gdbarch.c, gdbarch.h: Re-generate.
7979
25f1b008
AC
79802002-04-06 Andrew Cagney <ac131313@redhat.com>
7981
7982 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7983 declaration. Fix -Werror.
7984
59263426
DJ
79852002-04-05 Daniel Jacobowitz <drow@mvista.com>
7986
7987 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7988 * gdbarch.c: Regenerate.
7989
f5db4da3
MS
79902002-04-05 Michael Snyder <msnyder@redhat.com>
7991
80f8a6eb
MS
7992 * breakpoint.c (clear_command): Rewrite middle section to
7993 combine two loops with identical control conditions.
7994 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7995 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7996
ad3dcc5c
L
79972002-04-05 H.J. Lu (hjl@gnu.org)
7998
7999 * solib-svr4.c (bkpt_names): Add "__start".
8000
f32e7a74
AC
80012002-04-04 Andrew Cagney <ac131313@redhat.com>
8002
8003 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8004 as test for 64 bit target.
8005
8227c0ff
AC
80062002-04-05 Andrew Cagney <ac131313@redhat.com>
8007
8008 * h8500-tdep.c (h8500_write_fp): Delete function.
8009 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8010 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8011 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8013 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8014 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8015 (s390_write_fp):
8016 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8017 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8018 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8019 (d10v_write_fp): Delete function.
8020 * inferior.h (write_fp, generic_target_write_fp): Delete
8021 declarations.
8022 * regcache.c (generic_target_write_fp): Delete function.
8023 (write_fp): Delete function.
8024 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8025 * gdbarch.h, gdbarch.c: Regenerate.
8026 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8027 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8028 (sparc64_write_fp): Delete declaration.
8029 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8030 (h8500_write_fp): Delete declaration.
8031
2757dd86
AC
80322002-04-04 Andrew Cagney <ac131313@redhat.com>
8033
8034 * sparc-tdep.c (sparc64_write_fp): Delete.
8035 (sparc_push_dummy_frame): Replace write_fp call with code to store
8036 the FP directly.
8037 (sparc_gdbarch_init): Do not initialize write_fp.
8038
c69255e1
KB
80392002-04-05 Kevin Buettner <kevinb@redhat.com>
8040
8041 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8042 clause.
8043
ae767bfb
JB
80442002-03-29 Jim Blandy <jimb@redhat.com>
8045
8046 * stack.c (get_selected_block): Add new argument `addr_in_block',
8047 used to return the exact code address we used to select the block,
8048 not just the block.
8049 * blockframe.c (get_frame_block, get_current_block): Same.
8050 * frame.h (get_frame_block, get_current_block,
8051 get_selected_block): Update declarations.
8052 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8053 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8054
84d2ac95
MS
80552002-04-05 Michael Snyder <msnyder@redhat.com>
8056
8057 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8058 warning message.
8059
596aa3bf
JB
80602002-04-05 J. Brobecker <brobecker@gnat.com>
8061
8062 * utils.c (xfullpath): New function.
8063 * defs.h (xfullpath): Add declaration.
8064 * source.c (openp): Use xfullpath in place of gdb_realpath to
8065 avoid resolving the basename part of filenames when the
8066 associated file is a symbolic link. This fixes a potential
8067 inconsistency between the filenames known to GDB and the
8068 filenames it prints in the annotations.
8069 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8070 to be able to match a filename with either the real filename, or
8071 the name of any symbolic link to this file.
8072 (lookup_partial_symtab): Ditto.
8073
c02f5703
MS
80742002-04-04 Michael Snyder <msnyder@redhat.com>
8075
8076 * breakpoint.c: Add support for hardware breakpoints in overlays.
8077 (overlay_events_enabled): New state variable.
8078 (insert_breakpoints): Use overlay_events_enabled to decide
8079 whether to attempt to set a breakpoint at the overlay load addr.
8080 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8081 (remove_breakpoint): Use overlay_events_enabled to decide
8082 whether breakpoints need to be removed from overlay load addr.
8083 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8084 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8085 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8086 disable_overlay_breakpoints): Update overlay_events_enabled.
8087
5fb290d7
DJ
80882002-04-04 Daniel Jacobowitz <drow@mvista.com>
8089
8090 * dwarf2read.c (struct function_range): New.
8091 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8092 (check_cu_functions): New.
8093 (read_file_scope): Initialize global function lists.
8094 Call dwarf_decode_line after processing children.
8095 (read_func_scope): Add to global function list.
8096 (dwarf_decode_lines): Call check_cu_functions everywhere
8097 record_line is called. Call record_line with a linenumber
8098 of 0 to mark sequence ends.
8099
7b3fabf0
ML
81002002-04-04 Michal Ludvig <mludvig@suse.cz>
8101
361d1df0 8102 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8103 change sync with glibc.
8104
bce58c09
JB
81052002-04-03 Jim Blandy <jimb@redhat.com>
8106
8107 * configure.in: Call AC_C_INLINE.
8108 * configure: Regenerated.
361d1df0 8109
2fccf04a
DJ
81102002-04-01 Daniel Jacobowitz <drow@mvista.com>
8111
8112 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8113 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8114
2d1bfe2e
MK
81152002-03-31 Mark Kettenis <kettenis@gnu.org>
8116
a5941fbf
MK
8117 * NEWS: Mention gcore support on FreeBSD/i386.
8118
a90cd31d
MK
8119 * fbsd-proc.c: New file.
8120 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8121 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8122
2d1bfe2e
MK
8123 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8124 while statement.
8125
9eb6e5a1
JB
81262002-03-29 Jim Blandy <jimb@redhat.com>
8127
8128 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8129 unescaped newlines in string literals, but newer ones don't. So
8130 escape them.
8131
f02df580
MS
81322002-03-26 Michael Snyder <msnyder@redhat.com>
8133 Andrew Cagney <cagney@redhat.com>
8134
361d1df0 8135 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8136 restore file to memory.
8137 * cli/cli-dump.h: New file.
8138 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8139 * NEWS: Mention new commands.
f02df580 8140
109f874e
MS
81412002-03-28 Michael Snyder <msnyder@redhat.com>
8142
8143 * symfile.c (symbol_file_add): Move test for null symbols to later.
8144
520f6ade
AC
81452002-03-27 Andrew Cagney <ac131313@redhat.com>
8146
8147 From veksler at il.ibm.com:
8148 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8149 the xstrduped original path.
8150 Fix PR gdb/417.
8151
d4654627
MS
81522002-03-27 Michael Snyder <msnyder@redhat.com>
8153
8154 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8155 * infcmd.c (_initialize_infcmd): Ditto.
8156 * language.c (_initialize_language): Ditto.
8157 * symfile.c (_initialize_symfile): Ditto.
8158 * top.c (_init_main): Ditto.
8159 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8160
6be8bc0c
EZ
81612002-03-27 Elena Zannoni <ezannoni@redhat.com>
8162
8163 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8164 vector registers handling.
8165 (skip_prologue): Handle new AltiVec instructions. Fill in new
8166 fields of frame data.
8167 (frame_get_saved_regs): Fill in information for AltiVec registers.
8168
12af6855
JB
81692002-03-27 Jim Blandy <jimb@redhat.com>
8170
8171 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8172 a function; leave this macro here to invoke that function.
8173 (symbol_init_mangled_name): Declaration for that function.
8174 * symtab.c (symbol_init_mangled_name): New function.
8175
dc672865
AC
81762002-03-27 Andrew Cagney <ac131313@redhat.com>
8177
8178 * valarith.c: Replace strerror with safe_strerror.
8179 * tracepoint.c: Ditto.
8180 * lin-lwp.c: Ditto.
8181 * go32-nat.c: Ditto.
8182 * inflow.c: Ditto.
8183 * gnu-nat.c: Ditto.
8184
d96429cd
AS
81852002-03-27 Andreas Schwab <schwab@suse.de>
8186
8187 * event-top.c (command_line_handler): Remove useless if.
8188
7e336ba1
AJ
81892002-03-27 Andreas Jaeger <aj@suse.de>
8190
8191 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8192 comment.
8193
de220d0f
ML
81942002-03-27 Michal Ludvig <mludvig@suse.cz>
8195
8196 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8197 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8198 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8199 (x86_64_linux_dr_get_status, supply_gregset),
8200 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8201 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8202 (x86_64_register_info_table): Add.
8203 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8204 (x86_64_register_raw_size, x86_64_register_virtual_type),
8205 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8206 general x86_64_register_info_table.
8207 (i386_gdbarch_init): gdbarch_register_bytes is now set
8208 dynamicaly during initialization.
8209 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8210 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8211
0e98d0a7
DJ
82122002-03-27 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * gdbserver/server.c (main): Call target_signal_to_host_p
8215 and target_signal_to_host on signals received from the remote.
8216 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8217 target_signal_from_host on signals sent to the remote.
8218 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8219 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8220
3130066b
DJ
82212002-03-27 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * signals/signals.c: Include "server.h" in gdbserver build.
8224 (target_signal_from_name): Don't use STREQ.
8225 (_initialize_signals): Likewise. Don't include function in
8226 gdbserver build.
8227
9aedf4f4
DJ
82282002-03-27 Daniel Jacobowitz <drow@mvista.com>
8229
8230 * signals.c: Moved to...
8231 * signals/signals.c: Here.
7e336ba1 8232 * Makefile (signals.o): Update.
9aedf4f4 8233
3fa41cdb
JL
82342002-03-26 Jeff Law (law@redhat.com)
8235
8236 * somread.c (som_symtab_read): Remove some commented out code and
8237 updated related comments. Do not set the minimal symbol table to
8238 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8239 in a dynamic executable.
8240 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8241 where we are unable to find the minimal symbol for the given
8242 PC value.
8243
ee677e8d
MS
82442002-03-25 Jeff Law (law@redhat.com)
8245
8246 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8247
e76e1718
ML
82482002-03-25 Michal Ludvig <mludvig@suse.cz>
8249
8250 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8251
18a642a1
AC
82522002-03-23 Andrew Cagney <ac131313@redhat.com>
8253
8254 * command.h: Update copyright.
8255 (struct cmd_list_element): Replace definition with opaque
8256 declaration.
8257 (enum cmd_types): Document that it will eventually be moved to
8258 cli/cli-decode.h
8259 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8260 (MALLOCED_REPLACEMENT): Delete macro.
8261 * Makefile.in (cli_decode_h): Add $(command_h).
8262 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8263 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8264 * completer.c: Include "cli/cli-decode.h".
8265 * maint.c: Include "cli/cli-decode.h".
8266 * cli/cli-decode.h: Include "command.h".
8267 (enum command_class): Delete.
8268 (enum cmd_types): Comment out.
8269 (enum cmd_auto_boolean): Delete.
8270 (enum var_types): Delete.
8271
b2875cc0
AC
82722002-03-23 Andrew Cagney <ac131313@redhat.com>
8273
8274 * cli/cli-decode.c: Include "gdb_assert.h".
8275 (add_set_or_show_cmd): New static function.
8276 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8277 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8278 all fields, such as func, from the set command.
8279
3b45974e
AC
82802002-03-23 Andrew Cagney <ac131313@redhat.com>
8281
8282 * MAINTAINERS (sh-elf): Change warning flag to -w.
8283
823ca731
AC
82842002-03-23 Andrew Cagney <cagney@redhat.com>
8285
8286 * defs.h (error): Add printf format attribute.
8287 * thread-db.c (thread_from_lwp): Fix error format string.
8288 * stack.c (parse_frame_specification): Ditto.
8289 * cli/cli-decode.c (undef_cmd_error): Ditto.
8290 * scm-lang.c (scm_lookup_name): Ditto.
8291 * tracepoint.c (trace_error): Ditto.
8292 * remote-utils.c (usage): Ditto.
8293 * remote.c (compare_sections_command): Ditto.
8294 Fix PR gdb/328.
8295
0e101458
AC
82962002-03-22 Andrew Cagney <ac131313@redhat.com>
8297
8298 * gdbtypes.c (append_composite_type_field): New function.
8299 (init_composite_type): New function.
8300 * gdbtypes.h (append_composite_type_field): Declare.
8301 (init_composite_type): Ditto.
8302
8e0662df
EZ
83032002-03-22 Elena Zannoni <ezannoni@redhat.com>
8304
8305 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8306 function.
8e0662df
EZ
8307 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8309 structure returning convention for SYSV ABI case, but not
8310 for GNU/Linux, FreeBSD, or NetBSD.
8311
3121eff0
DJ
83122002-03-22 Daniel Jacobowitz <drow@mvista.com>
8313
8314 * symtab.h (lookup_block_symbol): Add mangled_name argument
8315 to prototype.
8316
8317 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8318 with new mangled_name argument.
8319 * linespec.c (decode_line_1): Likewise.
8320 * valops (value_of_this): Likewise.
8321 * symtab.c (lookup_transparent_type): Likewise.
8322 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8323 (lookup_symbol): If we are given a mangled name, pass it down
8324 to lookup_symbol_aux.
8325 (lookup_block_symbol): If we are given a mangled name to check
8326 against, only return symbols which match it.
8327
349b409f
CF
83282002-03-22 Christopher Faylor <cgf@redhat.com>
8329
8330 * win32-nat.c (child_create_inferior): Check for proper shell to use
8331 here, in case the user changes it on the fly.
8332 (_initialize_inftarg): Remove shell path considerations.
8333
2a873819
EZ
83342002-03-21 Elena Zannoni <ezannoni@redhat.com>
8335
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8337 for gdbarch_max_register_raw_size and max_register_virtual_size.
8338 Adjust copyright year.
8339
a1b9830c
DJ
83402002-03-21 Daniel Jacobowitz <drow@mvista.com>
8341
8342 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8343 in a function to cover the entire beginning of the function
8344 as well if it does not already.
8345
8b5790f2
TR
83462002-03-21 Tom Rix <trix@redhat.com>
8347
8348 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8349 (rs6000_ptrace64): Renamed from ptrace64.
8350
bdbe5747
MH
83512002-03-20 Martin M. Hunt <hunt@redhat.com>
8352
8353 * gdbserver/remote-utils.c (remote_open): Don't call
8354 getprotobyname, we're all using TCP here so just use
8355 IPPROTO_TCP.
7e336ba1 8356 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8357
83582002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8359
bdbe5747
MH
8360 * regcache.c (_initialize_regcache): No need to call
8361 build_regcache() at this time; it gets called whenever
8362 the gdbarch changes.
8363
7781cd62
DB
83642002-03-20 David O'Brien <obrien@FreeBSD.org>
8365
8366 * sparc-nat.c: Include sys/param.h where possible.
8367
f65ca430
DJ
83682002-03-20 Daniel Jacobowitz <drow@mvista.com>
8369
8370 Fix PR gdb/422.
8371 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8372 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8373 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8374 complex types.
8375 * stabsread.c (rs6000_builtin_type): Likewise.
8376 (read_sun_floating_type): Likewise.
8377
0c867556
PS
83782002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8379
8380 * stabsread.c (read_member_functions): Remove skip code for duplicate
8381 constructor/destructor methods. Use standard parsing for these
8382 methods and just do not chain them to the list of methods after
8383 parsing.
8384
12b9c64f
AO
83852002-03-19 Alexandre Oliva <aoliva@redhat.com>
8386
8387 * coffread.c: Remove redundant static declarations. Replace
8388 occurrences of `PTR' with `void *'.
8389 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8390 * top.h (quit_cover): Likewise.
8391 * defs.h (catch_errors): Likewise.
8392
349c5d5f
AC
83932002-03-18 Andrew Cagney <ac131313@redhat.com>
8394
8395 * defs.h (XMALLOC): Define.
8396 * gdb-events.sh (XMALLOC): Delete macro.
8397 * gdb-events.c, gdb-events.h: Regenerate.
8398 * gdbarch.sh (XMALLOC): Delete macro.
8399 * gdbarch.c: Regenerate.
8400 * serial.c (XMALLOC): Delete macro.
8401 * ui-file.c (XMALLOC): Ditto.
8402 * ser-unix.h (XMALLOC): Ditto.
8403 * sh-tdep.c (XMALLOC): Ditto.
8404 * ui-out.c (XMALLOC): Ditto.
8405 * utils.c (XMALLOC): Ditto.
8406 * i386-tdep.c (XMALLOC): Ditto.
8407 * gdb-events.c (XMALLOC): Ditto.
8408 * d10v-tdep.c (XMALLOC): Ditto.
8409 * cli-out.c (XMALLOC): Ditto.
8410
8411 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8412 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8413 * ui-file.c, ui-out.c: Ditto.
8414
7d0766f3
AC
84152002-03-18 Andrew Cagney <ac131313@redhat.com>
8416
8417 * command.h (struct cmd_list_element): Add field context.
8418 (set_cmd_context, get_cmd_context): Declare.
8419 * cli/cli-decode.h: Ditto.
8420 * cli/cli-decode.c (get_cmd_context): New function.
8421 (set_cmd_context): New function.
8422 (add_cmd): Initialize context.
8423 Part of fixing PR gdb/145 and PR gdb/146.
8424
5913bcb0
AC
84252002-03-17 Andrew Cagney <ac131313@redhat.com>
8426
1868c04e
AC
8427 * cli/cli-decode.c (cmd_type): New function.
8428 * command.h (cmd_type): Declare.
8429 * infrun.c (set_schedlock_func): Call function cmd_type.
8430 * kod.c (kod_set_os): Call cmd_type.
8431 * cris-tdep.c (cris_version_update): Use function cmd_type.
8432 (cris_mode_update, cris_abi_update): Ditto.
8433
5913bcb0
AC
8434 * command.h: (execute_cmd_post_hook): Declare.
8435 (execute_cmd_pre_hook): Declare.
8436 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8437 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8438 functions. Execute pre/post hook while ensuring that afterwords
8439 hook_in is cleared.
8440 * top.c (execute_command): Use execute_cmd_post_hook, and
8441 execute_cmd_pre_hook to execute pre/post commands.
8442 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8443 hook_stop_stub.
8444 (hook_stop_stub): Call execute_cmd_pre_hook.
8445
b51450c9
AC
84462002-03-17 Andrew Cagney <ac131313@redhat.com>
8447
8448 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8449 set'' and this leads to a core dump. Move xstrdup of
8450 operating_system to after check that it is not NULL.
8451
f66c9f11
AC
84522002-03-17 Andrew Cagney <ac131313@redhat.com>
8453
8e694ecf
AC
8454 * kod.c (kod_set_os): Remove unnecessary check that
8455 ``command->type'' is set_cmd.
8456
f66c9f11
AC
8457 * valprint.c (set_input_radix): Use input_radix.
8458 (set_output_radix): Use output_radix.
8459 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8460 isn't reverted.
8461
9d01611c
AC
84622002-03-16 Andrew Cagney <ac131313@redhat.com>
8463
8464 * value.h (struct value): Delete field ``substring_addr''. Change
8465 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8466 force_core_addr_align and force_pointer_aligh.
8467
8468 * value.h (struct value): Fix typo in above change.
9d01611c 8469
4156bb53
PS
84702002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8471
8472 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8473 to fix internal_error from ``maintenance print architecture''.
8474
0e5e3ea6
PS
84752002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8476
8477 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8478 for gcc versions after gcc-2.8.1.
8479
9b013045
PS
84802002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8481
8482 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8483 for method resolution. Restore adjustment of ``this'' pointer after
8484 calling value_struct_elt, which was accidentally removed during the
8485 HP merge.
8486
376c9600
AC
84872002-03-15 Andrew Cagney <ac131313@redhat.com>
8488
8489 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8490 value_of_register.
8491 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8492 get_saved_register.
8493 * value.h (value_of_register): Update.
8494
a4db0f07
RH
84952002-03-14 Richard Henderson <rth@redhat.com>
8496
8497 * configure.in: Detect declaration for canonicalize_file_name.
8498 * utils.c (canonicalize_file_name): Declare, if needed.
8499 (gdb_realpath): Prefer realpath if available and usable.
8500 * config.in, configure: Rebuild.
8501
96383835
RH
85022002-03-14 Richard Henderson <rth@redhat.com>
8503
8504 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8505 a constant array bound.
8506
8507 * MAINTAINERS: Add myself to write-after-approval.
8508
75245b24
MS
85092002-03-14 Michael Snyder <msnyder@redhat.com>
8510
8511 * symfile.c (syms_from_objfile): Return immediately if no syms.
8512 (symbol_file_add): Return immediately if no syms.
8513 (find_sym_fns): Return immediately if no syms.
8514
e641a1ca
ML
85152002-03-13 Michal Ludvig <mludvig@suse.cz>
8516
8517 * gdbserver/remote-util.c (remote_open): Print remote-side's
8518 IP address when remote debugging over the network.
7e336ba1 8519
df08bfec
DB
85202002-03-12 David O'Brien <obrien@FreeBSD.org>
8521
8522 * config/sparc/fbsd.mh: Fix copyright.
8523 * config/sparc/fbsd.mt: Likewise.
8524
9a57864f
RE
85252002-03-11 Richard Earnshaw <rearnsha@arm.com>
8526
8527 * MAINTAINERS: Fix typo in name of gdb warnings option.
8528 (x86-64): Fix formating so that this can be parsed by awk.
8529
dd7bf85e
DJ
85302002-03-10 Daniel Jacobowitz <drow@mvista.com>
8531
8532 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8533 * defs.h: Include "gdb/signals.h".
8534 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8535
33a0a2ac
ML
85362002-03-10 Michal Ludvig <mludvig@suse.cz>
8537
8538 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8539 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8540 from x86-64-tdep.h
8541
dd824b04
DJ
85422002-03-10 Daniel Jacobowitz <drow@mvista.com>
8543 Don Howard <dhoward@redhat.com>
8544
8545 * mips-tdep.c (ST0_FR): Define.
8546 (mips2_fp_compat): New function, temporarily disabled.
8547 (mips_read_fp_register_single): New function.
8548 (mips_read_fp_register_double): New function.
8549 (mips_print_register): Use them.
8550 (do_fp_register_row): Likewise.
8551
6a41ff59
AC
85522002-03-09 Andrew Cagney <ac131313@redhat.com>
8553
8554 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8555 approval''.
8556
4ea09c10
PS
85572002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8558
8559 * stabsread.c (read_member_functions): Fix is_stub test for
8560 static member functions, improve comment.
8561
6ccc741d
RE
85622002-03-07 Richard Earnshaw <rearnsha@arm.com>
8563
8564 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8565 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8566 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8567 commands that set boolean values.
8568 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8569 (arm_rdi_resume): Always initialize PC.
8570 (arm_rdi_open): Don't use rslt as a boolean.
8571 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8572 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8573 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8574 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8575
438013df
AO
85762002-03-06 Alexandre Oliva <aoliva@redhat.com>
8577
8578 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8579 * configure: Rebuilt.
8580
70ed8774
SC
85812002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8582
8583 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8584 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8585
5ba2abeb
AC
85862002-03-06 Andrew Cagney <ac131313@redhat.com>
8587
8588 * cli/cli-decode.c (set_cmd_completer): New function.
8589 * command.h (set_cmd_completer): Declare.
8590 * cli/cli-decode.h (set_cmd_completer): Ditto.
8591
8592 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8593 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8594 * win32-nat.c (_initialize_inftarg): Ditto.
8595 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8596 * proc-api.c (_initialize_proc_api): Ditto.
8597 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8598 * source.c (_initialize_source): Ditto.
8599 * exec.c (_initialize_exec): Ditto.
8600 * solib.c (_initialize_solib): Ditto.
8601 * top.c (init_main): Ditto.
8602 * tracepoint.c (_initialize_tracepoint): Ditto.
8603 * symfile.c (_initialize_symfile): Ditto.
8604 * printcmd.c (_initialize_printcmd): Ditto.
8605 * infcmd.c (_initialize_infcmd): Ditto.
8606 * corefile.c (_initialize_core): Ditto.
8607
f779ca99
AC
86082002-03-05 Andrew Cagney <ac131313@redhat.com>
8609
8610 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8611
01a3934b
AC
86122002-03-05 Andrew Cagney <ac131313@redhat.com>
8613
8614 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8615
37057839
AC
86162002-03-05 Andrew Cagney <ac131313@redhat.com>
8617
8618 * NEWS: Update headings, 5.2 has branched.
8619
c6ecbae5
DJ
86202002-03-04 Daniel Jacobowitz <drow@mvista.com>
8621
8622 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8623 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8624 (register_addr, REGISTER_RAW_SIZE): Likewise.
8625 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8626 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8627
e9f30c21
ML
86282002-03-03 Michal Ludvig <mludvig@suse.cz>
8629
8630 * MAINTAINERS (x86-64): Add myself.
8631 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8632 changed value_ptr -> struct value *
8633
54394ac3
DB
86342002-03-01 David O'Brien <obrien@FreeBSD.org>
8635
8636 * configure.host (sparc64-*-freebsd): Add.
8637 * configure.tgt: Likewise.
8638 * config/sparc/fbsd.mh: New file.
8639 * config/sparc/fbsd.mt: Likewise.
8640 * config/sparc/nm-fbsd.h: Likewise.
8641 * config/sparc/tm-fbsd.h: Likewise.
8642
bfe95955
DJ
86432002-03-01 Daniel Jacobowitz <drow@mvista.com>
8644
8645 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8646 regformats/reg-s390x.dat.
8647
f33c6cbf
AC
86482002-03-01 Andrew Cagney <ac131313@redhat.com>
8649
8650 * utils.c: Add FIXME explaining true/false problem.
8651
5ecaa7dd
AC
86522002-02-28 Andrew Cagney <ac131313@redhat.com>
8653
8654 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8655
2a251cc2
MC
86562002-02-28 Michael Chastain <mec@shout.net>
8657
8658 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8659
6a8031a3 86602002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8661
8662 * gdbserver/linux-s390-low.c: New file.
8663 * regformats/reg-s390.dat: New file.
8664 * regformats/reg-s390x.dat: New file.
8665 * gdbserver/configure.srv: Add S/390.
8666 * gdbserver/Makefile.in: Add S/390.
8667 * configure.tgt: Enable gdbserver for S/390.
8668
ac469903
EZ
86692002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8670
8671 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8672 first line of the doc string for "info dos", except at the end of
8673 the sentence, since the short help stops at the first period.
8674
985cb1a3
JM
86752002-02-28 Jason Merrill <jason@redhat.com>
8676
8677 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8678
c570663e
FF
86792002-02-27 Fred Fish <fnf@redhat.com>
8680
8681 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8682 comment (dumy -> dummy).
8683
43630227
PS
86842002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8685
8686 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8687
b84911e8
RB
86882002-02-27 Rodney Brown <rbrown64@csc.com.au>
8689
8690 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8691
58caa3dc
DJ
86922002-02-27 Daniel Jacobowitz <drow@mvista.com>
8693
8694 * gdbserver/acconfig.h: New file.
8695 * gdbserver/i387-fp.c: New file.
8696 * gdbserver/i387-fp.h: New file.
8697 * gdbserver/linux-x86-64.c: New file.
8698 * regformats/reg-x86-64.dat: New file.
8699 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8700 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8701 * gdbserver/configure.in: Add support for regsets.
8702 * gdbserver/config.in: Regenerate.
8703 * gdbserver/configure: Regenerate.
8704 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8705 * gdbserver/linux-low.h: New file.
8706 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8707 for regsets.
8708 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8709 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8710 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8711 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8712 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8713 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8714 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8715 "i387-fp.h". Add PTRACE_GETREGS and friends.
8716 * gdbserver/regcache.c (supply_register): New function.
8717 (supply_register_by_name): New function.
8718 (collect_register): New function.
8719 (collect_register_by_name): New function.
8720
93652174
DJ
87212002-02-27 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8724 (config.status): Add configure.srv dependency.
8725 (server_h): Add config.h dependency.
8726
a02e4a61
DJ
87272002-02-27 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8730 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8731 * gdbserver/configure.srv: Change i386-*-linux* to use
8732 reg-i386-linux.o.
8733
ce0eebec
AC
87342002-02-26 Andrew Cagney <ac131313@redhat.com>
8735
8736 * x86-64-tdep.c: Re-indent. Update copyright date.
8737
82dbc5f7
AC
87382002-02-26 Andrew Cagney <ac131313@redhat.com>
8739
8740 From Michal Ludvig <mludvig@suse.cz>:
8741 * x86-64-tdep.c (value.h): Delete.
8742 (gdb_assert.h): Include.
8743 (x86_64_register_convert_to_virtual,
8744 x86_64_register_convert_to_raw ): Add check which lets only
8745 floating-point values to be converted.
8746 (value_push): Delete.
8747 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8748 (i386_gdbarch_init): Number of register_bytes fixed.
8749
e4621584
AC
87502002-02-26 Andrew Cagney <ac131313@redhat.com>
8751
8752 * MAINTAINERS: Add x86-64 target.
8753
81a9a963
AC
87542002-02-26 Andrew Cagney <ac131313@redhat.com>
8755
8756 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8757 * osfsolib.c (solib_map_sections): Ditto.
8758 * irix5-nat.c (solib_map_sections): Ditto.
8759 * corelow.c (gdb_check_format): Ditto.
8760 * symfile.c (symfile_bfd_open): Ditto.
8761 * solib.c (solib_map_sections): Ditto.
8762 Fix PR gdb/354.
7e336ba1 8763
0f017ab9
AC
87642002-02-26 Andrew Cagney <ac131313@redhat.com>
8765
8766 * remote.c (_initialize_remote): By default, disable ``e'' and
8767 ``E'' step out-of-range packets.
8768
75738c29
AS
87692002-02-26 Andreas Schwab <schwab@suse.de>
8770
8771 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8772 m68k_linux_frame_saved_pc.
8773 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8774 in_sigtramp.
8775 (SIGCONTEXT_PC_OFFSET): Remove.
8776 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8777 m68k_linux_sigtramp_saved_pc): New functions.
8778 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8779 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8780 (UCONTEXT_PC_OFFSET): Define.
8781 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8782 non-RT and RT signal trampolines.
8783
7e8ed687
RE
87842002-02-26 Richard Earnshaw <rearnsha@arm.com>
8785
8786 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8787 (TARGET_NBPG, STACK_END_ADDR): Delete
8788 (VARIABLES_INSIDE_BLOCK): Delete.
8789
6972bc8b
AC
87902002-02-25 Andrew Cagney <ac131313@redhat.com>
8791
8792 * utils.c (perror_with_name): Make string parameter constant.
8793 (print_sys_errmsg): Ditto.
8794 (query): Ditto.
8795 * defs.h (perror_with_name): Update.
8796 (print_sys_errmsg): Update.
8797 (query): Update.
8798
aa32f823
DJ
87992002-02-25 Daniel Jacobowitz <drow@mvista.com>
8800
8801 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8802 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8803
19caaa45
PS
88042002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8805
8806 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8807 if it already matches the current architecture from the exec file.
8808 Include arch-utils.h for gdbarch_info_init prototype.
8809 * Makefile.in (rs6000-nat.o): Update dependencies.
8810
d951901f
EZ
88112002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8812
8813 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8814 list of exported variables.
8815
7ea81414
DJ
88162002-02-24 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * gdbserver/configure.srv: New file.
8819 * gdbserver/configure.in: Use configure.srv instead
8820 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8821 from it.
8822 * gdbserver/configure: Regenerated.
8823 * gdbserver/terminal.h: New file.
8824 * gdbserver/Makefile.in: Update for configure changes. Remove
8825 more unneeded include paths.
8826
080fe24b
AC
88272002-02-24 Andrew Cagney <ac131313@redhat.com>
8828
8829 From wiz at danbala:
8830 * config/sparc/tm-sp64.h: Fix grammar and typos.
8831 Fix PR gdb/287.
8832
8605d56e
AC
88332002-02-24 Andrew Cagney <ac131313@redhat.com>
8834
8835 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8836 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8837 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8838 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8839 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8840 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8841 * s390-tdep.c: Ditto.
92362027
AC
8842 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8843 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8844 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8845 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8846 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8847 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8848 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8849 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8850 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8851 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8852 Fix PR gdb/378.
7e336ba1 8853
8ed32cc0
AC
88542002-02-23 Andrew Cagney <ac131313@redhat.com>
8855
a3007b6f
AC
8856 * lin-thread.c: Delete file.
8857 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8858 to gdb_proc_service.h.
8859 * configure: Re-generate.
8860
50a9e2f1
AC
8861 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8862 * serial.c (serial_open): Delete check for "ocd".
8863 Fix PR gdb/349.
8864
8b6e7932
AC
8865 * Makefile.in (linux-thread.o): Delete target.
8866 * linux-thread.c: Delete file.
8867
d155c46b
AC
8868 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8869 renamed SH files to be consistent.
8870
8ed32cc0
AC
8871 * symtab.c (sort_search_symbols): Use xfree.
8872
0e18d038
RE
88732002-02-23 Richard Earnshaw <rearnsha@arm.com>
8874
8875 * arm-linux-tdep.c (arm_linux_init_abi): Register
8876 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8877 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8878 definition with undef, since we don't want the sysvr4 definition.
8879 (SKIP_TRAMPOLINE_CODE): Likewise.
8880
27aac7ff
AC
88812002-02-23 Andrew Cagney <ac131313@redhat.com>
8882
8883 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8884
8885 * configure.in: (AC_CHECK_FUNCS) Added test for
8886 canonicalize_file_name Regenerated.
8887 * config.in, configure: Regenerated.
8888 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8889 defined use canonicalize_file_name.
7e336ba1 8890
65a6e0ee
MC
88912002-02-23 Michael Chastain <mec@shout.net>
8892
8893 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8894
47b95330
AC
88952002-02-23 Andrew Cagney <ac131313@redhat.com>
8896
8897 * README: Remove references to cygnus.com.
8898 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8899 dot com'' form. Remove references to cygnus.com and sourceware.
8900
696f451b
AC
89012002-02-23 Andrew Cagney <ac131313@redhat.com>
8902
8903 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8904 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8905 1003.1-2001 no longer allows "head -1".
8906 * gdb/Makefile.in (version.c): Likewise.
8907 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8908 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8909 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8910
bbaca940
AC
89112002-02-23 Andrew Cagney <ac131313@redhat.com>
8912
8913 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8914 * command.h (cmd_cfunc_eq): Declare.
8915 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8916
8917 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8918 ``struct cmd_list_element *''.
8919 * cli/cli-cmds.c (is_complete_command): Update. Use
8920 cmd_cfunc_eq.
8921 * top.c (execute_command): Pass the command to
8922 is_complete_command.
8923 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8924
b8b8b047
AC
89252002-02-23 Andrew Cagney <ac131313@redhat.com>
8926
8927 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8928 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8929 architecture defines.
8930 * s390-tdep.c (s390_gdbarch_init): Likewise.
8931
19d3fc80
RE
89322002-02-23 Richard Earnshaw <rearnsha@arm.com>
8933
8934 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8935 (arm_linux_push_arguments): Likewise.
8936 (arm_linux_init_abi): Register them. Also register linux-specific
8937 call_dummy_words.
8938 (find_minsym_and_objfile): Use strcmp, not STREQ.
8939 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8940 (arm_linux_call_dummy_words): Delete declaration.
8941 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8942 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8943 declarations.
8944 (LOWEST_PC): Delete.
8945
3ab13650
PS
89462002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8947
8948 * maint.c (print_section_info): Do not prepend `0x' to filepos
8949 output, it will be handled by local_hex_string_custom.
8950
19d3fc80 89512002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8952
8953 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8954 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8955 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8956
d85a5daf
JB
89572002-02-22 Jim Blandy <jimb@redhat.com>
8958
8959 Indicate that the bcache functions don't change the strings
8960 they're passed.
8961 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8962 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8963
eeb25b8a
PM
89642002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8965
8966 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8967
6badb179
CF
89682002-02-21 Christopher Faylor <cgf@redhat.com>
8969
8970 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8971 find the complete path to a loaded DLL.
8972
e8717518
FF
89732002-02-21 Fred Fish <fnf@redhat.com>
8974
8975 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8976 that marks the end of the range of a function, enter a line number
8977 entry that has a line number of zero and a PC offset that matches
8978 the end of the function. This starts a range of PC's for which no
8979 line number information is known.
8980 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8981 PC's for which no line number info is found (line number is zero)
8982 then we didn't find any valid line information.
8983 * symtab.h: Document use of zero line number entry.
8984
9abe5450
EZ
89852002-02-21 Elena Zannoni <ezannoni@redhat.com>
8986
8987 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8988 (have_ptrace_getvrregs): Define for run time checks.
8989 (gdb_vrregset_t): New type for Altivec register handling.
8990 (fetch_register, store_register): Fetch/store altivec register
8991 when needed.
8992 (fetch_altivec_register, store_altivec_register): New functions.
8993 (supply_vrregset, fill_vrregset): New functions.
8994 (fetch_altivec_registers, store_altivec_registers): New functions.
8995 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8996 registers as well.
8997
aaa38bb5
AJ
89982002-02-21 Jiri Smid <smid@suse.cz>
8999
9000 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9001
b34db576
RE
90022002-02-21 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * Makefile.in (armnbsd-nat.o): Update dependencies.
9005 * armnbsd-nat.c (supply_gregset): New function. Common code to
9006 supply the integer register set.
9007 (supply_fparegset): New function. Similar for FPA registers.
9008 (fetch_regs, fetch_fp_regs): Use them.
9009 (fetch_core_registers): Likewise.
9010 (fetch_elfcore_registers): New function.
9011 (arm_netbsd_elfcore_fns): New core-file type specification.
9012 (_initialize_arm_netbsd_nat): Register it.
9013
3e56fc4b
RE
90142002-02-21 Richard Earnshaw <rearnsha@arm.com>
9015
9016 * armnbsd-nat.c: Include gdbcore.h.
9017 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9018 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9019 'void' to declaration, to shut up ARI.
9020 (fetch_core_registers): Make static. Rewrite using supply_register.
9021 (arm_netbsd_core_fns): New core-file type specification.
9022 (_initialize_arm_netbsd_nat): New function.
9023
097f6b0b
CF
90242002-02-21 Christopher Faylor <cgf@redhat.com>
9025
9026 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9027 value.
9028
c914e0cc
CF
90292002-02-20 Christopher Faylor <cgf@redhat.com>
9030
9031 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9032 fails.
9033
385fa495
DJ
90342002-02-20 Daniel Jacobowitz <drow@mvista.com>
9035
9036 * jv-exp.y (parse_number): Change type of implicit longs
9037 to builtin_type_uint64.
9038
e5f1222d
DJ
90392002-02-20 Daniel Jacobowitz <drow@mvista.com>
9040
9041 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9042 to be an integer instead of a `union wait'.
9043
75c9abc6
DJ
90442002-02-20 Daniel Jacobowitz <drow@mvista.com>
9045
9046 * mips-linux-nat.c: Call the operating system GNU/Linux.
9047 * mips-linux-tdep.c: Likewise.
9048 * mips-tdep.c: Likewise.
9049
551792a5
DJ
90502002-02-20 Daniel Jacobowitz <drow@mvista.com>
9051
9052 Fix PR gdb/265.
9053 * jv-exp.y (parse_number): Handle 64-bit integers.
9054
ee6e2b82
DJ
90552002-02-20 Daniel Jacobowitz <drow@mvista.com>
9056
9057 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9058 AC_STDC_HEADERS to AC_HEADER_STDC.
9059 * gdbserver/configure: Regenerated.
9060
a48442a0
RE
90612002-02-20 Richard Earnshaw <rearnsha@arm.com>
9062
9063 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9064 is defined.
9065 * sparc-tdep.c (get_longjmp_target): Likewise.
9066
fe419ffc
RE
90672002-02-20 Richard Earnshaw <rearnsha@arm.com>
9068
9069 * News: Add news about ARM and Multi-arch. Mention the new target
9070 arm*-*-netbsd*.
9071
5832ed7e
JB
90722002-02-19 Jim Blandy <jimb@redhat.com>
9073
9074 * stabsread.c (error_type_complaint): Improve error message.
9075
84563040
DJ
90762002-02-19 Daniel Jacobowitz <drow@mvista.com>
9077
9078 * gdbserver/README: Update documentation.
9079 * gdbserver/configure.in: Update configury to match documentation.
9080 * gdbserver/Makefile.in: Likewise.
9081 * gdbserver/configure: Regenerated.
9082 * gdbserver/aclocal.m4: New file, generated by aclocal.
9083 * gdbserver/config.in: New file, generated by autoheader.
9084
375fd65b
RE
90852002-02-19 Richard Earnshaw <rearnsha@arm.com>
9086
9087 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9088 armnbsd-nat.c.
9089
08216dd7
RE
90902002-02-19 Richard Earnshaw <rearnsha@arm.com>
9091
9092 * arm-tdep.h (enum arm_float_model): New enum.
9093 (struct gdbarch_tdep): Add fp_model.
9094 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9095 up floating-point conversions until we know the floating-point model
9096 in use by the inferior. Don't complain about being unable to
9097 determine the ABI of the inferior when we don't have one.
9098 (arm_extract_return_value): Support different floating-point models.
9099 (arm_store_return_value): Likewise.
aaa38bb5 9100 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9101 ARM_FLOAT_SOFT.
9102 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9103
65d6d66a
PS
91042002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9105
9106 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9107 of ``current_gdbarch''.
9108
47221191
RE
91092002-02-19 Richard Earnshaw <rearnsha@arm.com>
9110
9111 * armnbsd-nat.c : ANSIfy all function declarations.
9112 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9113 (fetch_inferior_registers): Re-implement in terms of above.
9114 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9115 (store_inferior_registers): Re-implement in terms of above.
9116
fdf39c9a
RE
91172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9118
aaa38bb5 9119 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9120 kernel.
9121 * arm-linux-tdep.c: Likewise.
9122 * config/arm/tm-linux.h: Likewise.
9123
93247f88
RE
91242002-02-19 Richard Earnshaw <rearnsha@arm.com>
9125
9126 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9127 * config/arm/nbsd.mt (TM_FILE): Delete.
9128 * config/arm/tm-nbsd.h: Delete.
9129
d7b486e7
RE
91302002-02-19 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9133 Initialize CALL_DUMMY_LENGTH.
9134
41d39a95
RE
91352002-02-19 Richard Earnshaw <rearnsha@arm.com>
9136
9137 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9138 function.
9139 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9140 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9141 defines one thing and that is incorrect for this port.
9142 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9143
e1195560
PM
91442002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9145
9146 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9147
c1748f97
PM
91482002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9149
9150 * win32-nat.c (display_selector): New function. Displays information
9151 about the information returned by GetThreadSelectorEntry API function.
9152 (display_selectors): New function. Displays the infomation of
9153 the selector given as argument, or of CS, DS ans FS selectors
9154 if no argument is given.
9155 ( _initialize_inftarg): Add "w32" as info prefix command.
9156 Add "info w32 selector" as command calling display_selectors.
9157
e41e6bbf
PM
91582002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9159
9160 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9161 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9162 if not defined.
9163
0d3a9f48
RE
91642002-02-18 Richard Earnshaw <rearnsha@arm.com>
9165
9166 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9167
3fb4b924
RE
91682002-02-18 Richard Earnshaw <rearnsha@arm.com>
9169
9170 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9171 (arm_fix_call_dummy): Call it.
9172 (arm_call_dummy_breakpoint_offset): Delete.
9173 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9174 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9175
7f55af32
AC
91762002-02-18 Andrew Cagney <ac131313@redhat.com>
9177
9178 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9179 Default to func_frame_chain_valid.
9180 * gdbarch.h, gdbarch.c: Re-generate.
9181 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9182
05f13b9c
EZ
91832002-02-18 Elena Zannoni <ezannoni@redhat.com>
9184
9185 * ppc-linux-nat.c: Update copyright.
9186 (fetch_register, store_register): Add tid parameter, don't compute
9187 tid here.
9188 (fetch_ppc_registers, store_ppc_registers): Add tid
9189 parameter. Pass it along to callees.
9190 (fetch_inferior_registers, store_inferior_registers): Compute tid
9191 here, and pass it to calleed functions.
9192 (fill_gregset, supply_fpregset): Clean up formatting.
9193
d7afb4c9
RE
91942002-02-18 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9197 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9198
9df628e0
RE
91992002-02-18 Richard Earnshaw <rearnsha@arm.com>
9200
9201 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9202 * gdbarch.c gdbarch.h: Regenerate.
9203 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9204 function.
9205 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9206 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9207 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9208
9209 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9210 * arm-tdep.c (arm_get_longjmp_target): New function.
9211 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9212 this to a positive value register arm_get_longjmp_target as the
9213 longjmp handler.
9214 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9215 (arm_linux_init_abi): Set up longjmp description in tdep.
9216 * armnbsd-nat.c (get_longjmp_target): Delete.
9217 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9218 description in tdep.
9219 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9220 (get_longjmp_target): Delete declaration.
9221 (GET_LONGJMP_TARGET): Delete.
9222 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9223 (GET_LONGJMP_TARGET): Delete.
9224
57bc8964
KB
92252002-02-17 Kevin Buettner <kevinb@redhat.com>
9226
9227 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9228 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9229 of ``current_gdbarch''.
9230
83d31a92
TT
92312002-02-17 Tom Tromey <tromey@redhat.com>
9232
9233 * cli/cli-cmds.c (compare_strings): New function.
9234 (complete_command): Only print each unique item once.
9235 * completer.h (complete_line): Declare.
9236 * completer.c (complete_line): New function.
9237 (line_completion_function): Use it.
9238
17ef5d92
AC
92392002-02-16 Andrew Cagney <ac131313@redhat.com>
9240
9241 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9242 * gdbarch.h, gdbarch.c: Re-generate.
9243
491b8946
DJ
92442002-02-16 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9247
92482002-02-16 Daniel Jacobowitz <drow@mvista.com>
9249
9250 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9251 * valops.c (value_arg_coerce): Don't take the address of a reference
9252 to convert an argument to a reference.
9253
dfe7f3ac
CF
92542002-02-15 Christopher Faylor <cgf@redhat.com>
9255
9256 * win32-nat.c (get_image_name): New function.
9257 (handle_load_dll): Use get_image_name function.
9258 (get_child_debug_event): Avoid registering debug events until possibly
9259 execed process is started.
9260 (child_create_inferior): Allow invocation via shell so that command
9261 line redirection, etc. works ok.
9262 (_initialize_inftarg): Add new command: "set shell" to control whether
9263 a shell is used to start a process.
9264
1d33e73a
DJ
92652002-02-15 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9268 instead of find_register_by_number.
9269 (cannot_store_register): Likewise.
9270
48cd0caa
PM
92712002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9272
aaa38bb5 9273 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9274 fprintf_unfiltered (gdb_stderr, ...).
9275
8656e7d8
DJ
92762002-02-15 Daniel Jacobowitz <drow@mvista.com>
9277
9278 * gdbserver/gdbserver.1: Document --attach.
9279
66e810cd
RE
92802002-02-15 Richard Earnshaw <rearnsha@arm.com>
9281
9282 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9283 descriptions.
9284 * arm-tdep.c (arm_default_arm_le_breakpoint)
9285 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9286 (arm_default_thumb_be_breakpoint): New. Initialize them from
9287 traditional breakpoint defines.
9288 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9289 (arm_gdbarch_init): Initialize new breakpoint variables.
9290 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9291 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9292 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9293 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9294 code out to ...
9295 (arm_netbsd_init_abi_common): ... here; new function.
9296 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9297 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9298 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9299 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9300
97e03143
RE
93012002-02-15 Richard Earnshaw <rearnsha@arm.com>
9302
9303 * arm-tdep.h (enum arm_abi): New enum.
9304 (struct gdbarch_tdep): New structure.
9305 (LOWEST_PC): Provide a default.
9306 (arm_gdbarch_register_os_abi): Declare new function.
9307 * arm-tdep.c (arm_abi_names): New array.
9308 (process_note_abi_tag_sections): New function.
9309 (get_elfosabi): New function.
9310 (arm_gdbarch_register_os_abi): New function.
9311 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9312 support for that ABI has been built in, then call the appropriate
9313 configuration routine. Use gdbarch_num_regs() to get the number
9314 of registers.
9315 (arm_dump_tdep): New function.
9316 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9317 place-holder functions.
9318 (_initialize_arm_tdep): Register them.
9319 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9320
9321 * armnbsd-tdep.c: New file.
9322 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9323 * config/arm/nbsd.mt (TDEPFILES): Add it.
9324 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9325
9326 * armnbsd-nat.c: Include regcache.h.
9327 * Makefile.in (armnbsd-nat.o): Update dependency list.
9328
9329 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9330
ad68be46
DJ
93312002-02-14 Daniel Jacobowitz <drow@mvista.com>
9332
9333 * gdbserver/Makefile.in: Fix typos in target rules.
9334
003d6d1d
DJ
93352002-02-14 Daniel Jacobowitz <drow@mvista.com>
9336
aaa38bb5 9337 Fix part of PR gdb/267.
003d6d1d
DJ
9338 * linespec.c (find_methods): Handle constructors specially for now.
9339
6b230f1b
CV
93402002-02-14 Corinna Vinschen <vinschen@redhat.com>
9341
9342 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9343 handling.
9344 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9345 standard_coerce_float_to_double().
9346
1ea98d12
CF
93472002-02-14 Christopher Faylor <cgf@redhat.com>
9348
9349 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9350 GDBINIT_FILENAME.
9351
dd47e6fd
EZ
93522002-02-14 Elena Zannoni <ezannoni@redhat.com>
9353
9354 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9355 find_variant_by_name, because it confuses the multiarch
9356 framework. Return NULL if there isn't an architecture with the
9357 user supplied name, instead of forcing a different one without
9358 recording the change with the multiarch machinery.
9359 (find_variant_by_name): Delete.
9360
d7e39b9e
PS
93612002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9362
9363 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9364 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9365
76e42a4f
MH
93662002-02-13 Martin M. Hunt <hunt@redhat.com>
9367
aaa38bb5 9368 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9369 print_frame_info_listing_hook, set current_source_symtab.
9370
0a30fbc4
DJ
93712002-02-14 Daniel Jacobowitz <drow@mvista.com>
9372
9373 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9374 and remove unused $(INCLUDE_DIR).
9375 Add regcache.c to OBS.
9376 Add generated register protocol files to clean target.
9377 Update dependencies for new objects, obsolete old target code.
9378
9379 * gdbserver/linux-low.c: Remove all platform-specific code to
9380 new files. Remove various dead code. Update to use regcache
9381 functionality.
9382 * gdbserver/remote-utils.c (fromhex): Add return statement
9383 to quiet warning.
9384 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9385 constant.
9386 (input_interrupt): Add integer parameter to match prototype
9387 of a signal handler.
9388 (outreg): Use register_data ().
9389 (prepare_resume_reply): Use gdbserver_expedite_regs.
9390 * gdbserver/server.c (main): Dynamically allocate own_buf because
9391 PBUFSIZ is no longer constant. Use registers_to_string () and
9392 registers_from_string ().
9393 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9394 for error (), fatal (), and warning (). Update definition of
9395 PBUFSIZ to use regcache functionality. Add include guard.
9396 * gdbserver/utils.c (fatal): Add missing ``const''.
9397 (warning): New function.
9398
9399 * regformats/regdat.sh: Include "regcache.h" in generated files.
9400 Provide init_registers () function.
9401 * regformats/regdef.h: Add prototype for set_register_cache ().
9402 Add include guard.
9403
9404 * gdbserver/linux-arm-low.c: New file.
9405 * gdbserver/linux-i386-low.c: New file.
9406 * gdbserver/linux-ia64-low.c: New file.
9407 * gdbserver/linux-m68k-low.c: New file.
9408 * gdbserver/linux-mips-low.c: New file.
9409 * gdbserver/linux-ppc-low.c: New file.
9410 * gdbserver/linux-sh-low.c: New file.
9411
9412 * gdbserver/regcache.c: New file.
9413 * gdbserver/regcache.h: New file.
9414
9415 * gdbserver/low-linux.c: Removed obsolete file.
9416
4cc841d0
DJ
94172002-02-14 Daniel Jacobowitz <drow@mvista.com>
9418
9419 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9420 * config/i386/linux.mt: Likewise.
9421 * config/ia64/linux.mt: Likewise.
9422 * config/m68k/linux.mh: Likewise.
9423 * config/powerpc/linux.mh: Likewise.
9424 * config/mips/linux.mt: Likewise.
9425
9426 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9427
9428 * config/i386/i386lynx.mh: Mark gdbserver variables
9429 as (currently) obsolete for this target.
9430 * config/i386/nbsd.mt: Likewise.
9431 * config/i386/nbsdelf.mt: Likewise.
9432 * config/m32r/m32r.mt: Likewise.
9433 * config/m68k/m68klynx.mh: Likewise.
9434 * config/m68k/nbsd.mt: Likewise.
9435 * config/m68k/sun3os4.mh: Likewise.
9436 * config/mips/vr5000.mt: Likewise.
9437 * config/ns32k/nbsd.mt: Likewise.
9438 * config/pa/hppabsd.mh: Likewise.
9439 * config/pa/hppaosf.mh: Likewise.
9440 * config/powerpc/nbsd.mt: Likewise.
9441 * config/rs6000/rs6000lynx.mh: Likewise.
9442 * config/s390/s390.mt: Likewise.
9443 * config/s390/s390x.mt: Likewise.
9444 * config/sparc/sparclynx.mh: Likewise.
9445 * config/sparc/sun4os4.mh: Likewise.
9446 * config/i386/x86-64linux.mt: Likewise.
9447 * config/sparc/linux.mh: Likewise.
9448
a85f51e7
DJ
94492002-02-14 Daniel Jacobowitz <drow@mvista.com>
9450
9451 * configure.tgt: Configure gdbserver only for known working
9452 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9453 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9454 SUBDIRS if it is configured. Update comment for ${nativefile}.
9455 * configure: Regenerated.
9456
65554fef
MS
94572002-02-13 Michael Snyder <msnyder@redhat.com>
9458
670a52db
MS
9459 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9460
6dbdc4a3
MS
9461 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9462 (default_gcore_mach): Just return 0, work around a problem in bfd.
9463 (default_gcore_target): OK to return NULL if exec_bfd is null.
9464 (make_mem_sec): Use a cast, avoid a warning.
9465
9466 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9467 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9468 sizeof (host pointer) != sizeof (target pointer)).
9469 (procfs_make_note_section): Avoid overflow in psargs string.
9470
aaa38bb5 9471 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9472 implementation return an error.
9473
94742002-02-13 Rodney Brown <rbrown64@csc.com.au>
9475
9476 * procfs.c (procfs_make_note_section): Provide a default definition
9477 (for alpha-dec-osf4.0f). Fix typos.
9478
1e4d76e7
EZ
94792002-02-13 Elena Zannoni <ezannoni@redhat.com>
9480
9481 * linux-proc.c: Add include of regcache.h.
9482 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9483
b6d1a1d5
AC
94842002-02-13 Andrew Cagney <ac131313@redhat.com>
9485
9486 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9487 * memattr.c (create_mem_region): Disallow useless empty region.
9488 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9489 non-overlapping.
b6d1a1d5 9490
6c6ea35e
MC
94912002-02-13 Michael Chastain <mec@shout.net>
9492
9493 * defs.h: Kill CONST_PTR.
9494 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9495 * c-lang.c (c_builtin_types): Likewise.
9496 * ch-lang.c (ch_builtin_types): Likewise.
9497 * f-lang.c (f_builtin_types): Likewise.
9498 * language.c (unknown_builtin_types): Likewise.
9499 * m2-lang.c (m2_builtin_types): Likewise.
9500 * p-lang.c (pascal_builtin_types): Likewise.
9501 * scm-lang.c (c_builtin_types): Likewise.
9502
3e0b0f48
KS
95032002-02-13 Keith Seitz <keiths@redhat.com>
9504
9505 * arm-tdep.h (arm_get_next_pc): Add declaration.
9506
67255d04
RE
95072002-02-13 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9510 with other related struct-returning functions.
9511 (arm_extract_struct_value_address): New function.
9512 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9513 initialize float_format, double_format and long_double_format as
9514 appropriate to the endianness of the target.
9515 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9516 (arm_use_struct_convention): Delete declaration.
9517 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9518
079777f6
KS
95192002-02-13 Keith Seitz <keiths@redhat.com>
9520
9521 * defs.h (core_addr_to_string_nz): New function.
9522
34588f23
MK
95232002-02-13 Mark Kettenis <kettenis@gnu.org>
9524
9525 Apply missing bits of 2002-01-15 patch.
9526 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9527 (fill_fpregset): Use i387_fill_fsave.
9528
49b563f9
KS
95292002-02-12 Keith Seitz <keiths@redhat.com>
9530
49b563f9
KS
9531 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9532 (core_addr_to_string_nz): New function.
9533
aeb98c60
RE
95342002-02-11 Richard Earnshaw <rearnsha@arm.com>
9535
9536 * arm-linux-nat.c: Really include arm-tdep.h.
9537 * config/arm/tm-linux.h (struct type, struct value): Declare.
9538
65554fef
MS
95392002-02-11 Michael Snyder <msnyder@redhat.com>
9540
9541 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9542 (gcore section): Ifdef for Solaris and Unixware only.
9543 (procfs_do_thread_registers): Unixware needs one lwpstatus
9544 per thread (not one prstatus or pstatus).
9545 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9546 not over all gdb threads. For unixware, call elfcore_write_pstatus
9547 once before iterating over threads.
9548
34e8f22d
RE
95492002-02-11 Richard Earnshaw <rearnsha@arm.com>
9550
9551 * arm-tdep.h: New file.
9552 * arm-tdep.c: Include arm-tdep.h.
9553 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9554 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9555 (arm_print_float_info, arm_register_type, convert_to_extended)
9556 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9557 (arm_extract_return_value, arm_register_name): Make static.
9558 (arm_software_single_step): Similarly. Fix types in declaration.
9559 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9560 (arm_store_return_value, arm_store_struct_return): New functions.
9561 (arm_gdbarch_init): Register the above functions. Also register
9562 call_dummy_start_offset, sizeof_call_dummy_words,
9563 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9564 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9565 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9566 prologue_cache.saved_regs here, rather than ...
9567 (_initialize_arm_tdep): ... here.
9568 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9569 declarations.
9570 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9571 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9572 (arm_print_float_info, arm_register_type, convert_to_extended)
9573 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9574 (arm_extract_return_value, arm_register_name): Delete declarations.
9575 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9576 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9577 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9578 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9579 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9580 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9581 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9582 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9583 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9584 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9585 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9586 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9587 interface.
9588 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9589 * remote-rdi.c remote-rdp.c: Likewise.
9590 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9591 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9592 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9593 definition.
9594
9595 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9596 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9597 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9598 from non-ARM_ prefixed definitions.
9599 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9600 all uses of above.
9601 * remote-rdi.c remote-rdp.c: Likewise.
9602 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9603
148754e5
RE
96042002-02-11 Richard Earnshaw <rearnsha@arm.com>
9605
9606 * arm-tdep.c (arm_frameless_function_invocation)
9607 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9608 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9609 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9610 (arm_pop_frame, arm_get_next_pc): Make static.
9611 (arm_gdbarch_init): Register above in gdbarch structure.
9612 (arm_read_fp): Renamed from arm_target_read_fp.
9613 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9614 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9615 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9616 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9617 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9618 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9619 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9620 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9621 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9622 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9623 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9624
434d2d4f
DJ
96252002-02-10 Daniel Jacobowitz <drow@mvista.com>
9626
9627 * symtab.c (compare_search_syms): New function.
9628 (sort_search_symbols): New function.
9629 (search_symbols): Sort symbols after searching rather than
9630 before.
9631
55241689
AC
96322002-02-10 Andrew Cagney <ac131313@redhat.com>
9633
9634 * NEWS: Linux -> GNU/Linux.
9635
028c194b
AC
96362002-02-10 Andrew Cagney <ac131313@redhat.com>
9637
9638 * gdbarch.sh: For for level one methods, disallow a definition
9639 when partially multi-arched. Add comments explaining rationale.
9640 * gdbarch.h: Re-generate.
9641
6acf50cd
AC
96422002-02-10 Andrew Cagney <ac131313@redhat.com>
9643
9644 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9645 multi-arch partial.
aaa38bb5 9646
50248794
AC
96472002-02-10 Andrew Cagney <ac131313@redhat.com>
9648
9649 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9650 field. Use diff -u.
9651 * gdbarch.c: Re-generate.
9652
c30e0066
AC
96532002-02-10 Andrew Cagney <ac131313@redhat.com>
9654
9b56c5f3 9655 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9656 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9657 partial.
9658
6e6d6484
AC
96592002-02-10 Andrew Cagney <ac131313@redhat.com>
9660
9661 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9662 multi-arch partial.
9663 (PUSH_ARGUMENTS): Switch to using predefault.
9664 * gdbarch.c: Regenerate.
9665
c203844d
AC
96662002-02-10 Andrew Cagney <ac131313@redhat.com>
9667
9668 * valops.c (PUSH_ARGUMENTS): Delete definition.
9669 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9670 partial. Default to default_push_arguments.
9671 * gdbarch.h, gdbarch.c: Regenerate.
9672
b5a2688f
AC
96732002-02-09 Andrew Cagney <ac131313@redhat.com>
9674
9675 * defs.h (throw_exception): Rename return_to_top_level. Update
9676 comments.
9677 * utils.c (error_stream, internal_verror, quit): Ditto.
9678 * top.c (throw_exception, catcher): Ditto.
9679 * sparclet-rom.c (sparclet_load): Ditto.
9680 * remote.c (interrupt_query, minitelnet): Ditto.
9681 * remote-sds.c (interrupt_query): Ditto.
9682 * remote-mips.c (mips_error, mips_kill): Ditto.
9683 * ocd.c (interrupt_query): Ditto.
9684 * monitor.c (monitor_interrupt_query): Ditto.
9685 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9686 * target.h: Update comment.
aaa38bb5 9687
b5a2688f 9688 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9689
2fa5c1e0
AC
96902002-02-09 Andrew Cagney <ac131313@redhat.com>
9691
9692 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9693 default_double_format.
9694 * gdbarch.h, gdbarch.c: Re-generate.
9695 * findvar.c (floatformat_unknown): Delete variable definition.
9696 * doublest.h (floatformat_unknown): Delete variable declaration.
9697
da966255
JB
96982002-02-09 Jim Blandy <jimb@redhat.com>
9699
9700 * stabsread.c (read_type): Add code to parse Sun's syntax for
9701 prototyped function types.
9702
123a4891
AC
97032002-02-09 Andrew Cagney <ac131313@redhat.com>
9704
9705 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9706 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9707
fb39c8f3
PS
97082002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9709
9710 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9711 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9712 now _initialize_xcoffsolib gets called again and overrides the
9713 commands from solib.c in a native configuration.
9714
0b87a11d
MK
97152002-02-09 Mark Kettenis <kettenis@gnu.org>
9716
9717 * doublest.c (store_typed_floating): Don't try to return a value.
9718 Fixes PR gdb/290.
9719
bdc2fc72
JB
97202002-02-08 Jim Blandy <jimb@redhat.com>
9721
9722 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9723 is prototyped and has no arguments, print its argument list as
9724 `(void)'.
9725
da69bbcf
CD
97262002-02-08 Chris Demetriou <cgd@broadcom.com>
9727
9728 * MAINTAINERS (write-after-approval): Add myself.
9729 (paper-trail): I've escaped!
aaa38bb5 9730
b69571f5
CF
97312002-02-08 Christopher Faylor <cgf@redhat.com>
9732
9733 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9734 changes.
9735 (_initialize_check_for_gdb_ini): Ditto.
9736
f6871398
MH
97372002-02-08 Martin M. Hunt <hunt@redhat.com>
9738
9739 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9740 xaprintf -> xasprintf.
9741
4e52d31c
PM
97422002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9743
9744 * win32-nat.c: Remove use of printf and sprintf functions.
9745
39bbf761
RE
97462002-02-08 Richard Earnshaw <rearnsha@arm.com>
9747
9748 * arm-tdep.c (arm_frame_chain_valid): Make static.
9749 (arm_push_arguments): Likewise.
9750 (arm_gdbarch_init): New function.
9751 (_initialize_arm_tdep): Call it.
9752 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9753 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9754 (FRAME_CHAIN_VALID): Delete.
9755 (arm_frame_chain_valid): Delete declaration.
9756 (PUSH_ARGUMENTS): Delete.
9757 (arm_push_arguments): Delete declaration.
9758 (CALL_DUMMY_P): Delete.
9759
9c9532c9
CV
97602002-02-08 Andrew Cagney <ac131313@redhat.com>
9761 Corinna Vinschen <vinschen@redhat.com>
9762
9763 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9764 on builtin float types.
9765
4e8f7a8b
DJ
97662002-02-08 Daniel Jacobowitz <drow@mvista.com>
9767
9768 * utils.c: Include <curses.h> before "bfd.h".
9769 * tui/tui-hooks.c: Likewise.
9770 * tui/tui.c: Likewise.
9771 * tui/tuiCommand.c: Likewise.
9772 * tui/tuiData.c: Likewise.
9773 * tui/tuiDataWin.c: Likewise.
9774 * tui/tuiDisassem.c: Likewise.
9775 * tui/tuiGeneralWin.c: Likewise.
9776 * tui/tuiIO.c: Likewise.
9777 * tui/tuiLayout.c: Likewise.
9778 * tui/tuiRegs.c: Likewise.
9779 * tui/tuiSource.c: Likewise.
9780 * tui/tuiSourceWin.c: Likewise.
9781 * tui/tuiStack.c: Likewise.
9782 * tui/tuiWin.c: Likewise.
9783
cd4bffcf
EZ
97842002-02-07 Elena Zannoni <ezannoni@redhat.com>
9785
9786 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9787 to include space for pseudoregs as well. Update loops accordingly.
9788 (sh_fp_frame_init_saved_regs): Ditto.
9789 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9790
26806ce2
AC
97912002-02-07 Andrew Cagney <ac131313@redhat.com>
9792
9793 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9794 Add Richard Earnshaw to Arm maintainers.
9795
97fdab62
AC
97962002-02-07 Andrew Cagney <ac131313@redhat.com>
9797
a6b98203
AC
9798 * defs.h (warning_begin): Delete declaration.
9799
97fdab62
AC
9800 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9801 Delete macro.
9802
78b29b40
MS
98032002-02-07 Michael Snyder <msnyder@redhat.com>
9804
aaa38bb5 9805 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9806 Logic bug, remove misplaced else.
9807
d8849953
KD
98082002-02-07 Klee Dienes <klee@apple.com>
9809
9810 * fork-inferior.c (fork_inferior): Add '!' to the list of
9811 characters that need to be quoted when building a string for the
9812 shell. Quote '!' specifically with a backslash, since CSH chokes
9813 when trying to evaluate "str!str".
aaa38bb5 9814
095778a0
NC
98152002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9816
9817 * rdi-share/host.h: Only provide a typedef for bool if it is not
9818 defined.
9819
1900040c
MS
98202002-02-04 Michael Snyder <msnyder@redhat.com>
9821
9822 * breakpoint.h (enum bptype): Add new overlay event bp type.
9823 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9824
1900040c
MS
9825 * breakpoint.c (create_internal_breakpoint): New function.
9826 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9827 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9828 (create_thread_event_breakpoint): Ditto.
9829 (create_solib_event_breakpoint): Ditto.
9830 (create_overlay_event_breakpoint): New function.
9831 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9832 (update_breakpoints_after_exec): Delete and re-initialize
9833 overlay event breakpoints after an exec. Add FIXME comment
9834 about longjmp breakpoint.
9835 (print_it_typical): Ignore overlay event breakpoints.
9836 (print_one_breakpoint): Ditto.
9837 (mention): Ditto.
9838 (bpstat_what): Do not stop for overlay event breakpoints.
9839 (delete_breakpoint): Don't delete overlay event breakpoints.
9840 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9841 (breakpoint_re_set): Re-create overlay event breakpoint.
9842
9843 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9844 (overlay_manual_command): Disable overlay breakpoints.
9845 (overlay_off_command): Disable overlay breakpoints.
9846
082fc60d
RE
98472002-02-06 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9850 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9851 to here from config/tm-arm.h.
9852 (coff_sym_is_thumb): Make static.
9853 (arm_elf_make_msymbol_special): New function.
9854 (arm_coff_make_msymbol_special): New function.
9855 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9856 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9857 (coff_sym_is_thumb): Delete declaration.
9858 (arm_elf_make_msymbol_special): Declare.
9859 (arm_coff_make_msymbol_special): Declare.
9860 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9861 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9862
039c5766
RE
98632002-02-06 Richard Earnshaw <rearnsha@arm.com>
9864
9865 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9866
98672002-02-06 Richard Earnshaw <rearnsha@arm.com>
9868
9869 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9870 * gdbarch.c gdbarch.h: Regenerate.
9871 * arch-utils.c (default_print_float_info): New function.
9872 * arch-utils.h (default_print_float_info): Prototype it.
9873 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9874 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9875 (PRINT_FLOAT_INFO): Document it.
9876
9877 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9878 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9879 (PRINT_FLOAT_INFO): Define.
9880
58fa08f0
PM
98812002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9882
aaa38bb5 9883 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9884 Add typecast to sprintf argument to suppress a warning.
9885
7393af7c
PM
98862002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9887
58fa08f0 9888 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9889 to allow easier handling of pass state.
9890 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9891 that gives exception name and address.
9892 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9893 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9894 exceptions added.
aaa38bb5
AJ
9895 (child_continue): Correctly report continue_status.
9896 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9897 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9898 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9899 the exception should be passed to debuggee or not.
9900
6af4589c
MS
99012002-02-05 Michael Snyder <msnyder@redhat.com>
9902
9903 * regcache.c (fetch_register): Call target_fetch_register
9904 only if we don't call FETCH_PSEUDO_REGISTER.
9905 (store_register): Call target_store_register only if we
9906 don't call STORE_PSEUDO_REGISTER.
9907
a2cf933a
EZ
99082002-02-05 Elena Zannoni <ezannoni@redhat.com>
9909
9910 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9911 ELF_MAKE_MSYMBOL_SPECIAL.
9912 * gdbarch.c, gdbarch.h: Regenerate.
9913 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9914 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9915 * elfread.c (elf_symtab_read): Compile use of
9916 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9917 multiarched.
9918 * coffread.c (coff_symtab_read): Ditto, for
9919 COFF_MAKE_MSYMBOL_SPECIAL.
9920
6bb7be43
JB
99212002-02-05 Jim Blandy <jimb@redhat.com>
9922
9923 * solib-svr4.c (svr4_truncate_ptr): New function.
9924 (svr4_relocate_section_addresses): Do the address arithmetic with
9925 the appropriate truncation for target addresses, even when
9926 CORE_ADDR is larger than a target address.
9927
e18651ec
DJ
99282002-02-05 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9931 to (int *).
9932
6b2725be
DJ
99332002-02-05 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9936 code.
9937
fca9e603
DJ
99382002-02-05 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9941
6c537a52
DJ
99422002-02-05 Daniel Jacobowitz <drow@mvista.com>
9943
9944 * gdbserver/linux-low.c: Remove unused include files.
9945
d844cde6
DJ
99462002-02-05 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9949 (read_inferior_memory): Use it.
9950 (write_inferior_memory): Likewise.
9951
d07c63e7
DJ
99522002-02-05 Daniel Jacobowitz <drow@mvista.com>
9953
9954 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9955 grubbing through sys_errlist.
9956
da6d8c04
DJ
99572002-02-05 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9960
5b421780
PM
99612002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9962 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9963
9f60d481
AC
99642002-02-04 Andrew Cagney <ac131313@redhat.com>
9965
9966 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9967 (do_sfunc, set_cmd_sfunc): New functions.
9968
9969 * command.h (struct cmd_list_element): Add field func.
9970 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9971 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9972 * cli/cli-decode.h: Ditto.
9973
9974 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9975 (help_all, help_cmd_list): Ditto.
9976 (find_cmd, complete_on_cmdlist): Ditto.
9977 * top.c (execute_command): Ditto.
9978
9979 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9980 function.sfunc.
9981
9982 * infcmd.c (notice_args_read): Fix function signature.
9983
9984 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9985 * cli/cli-decode.c (add_set_cmd): Ditto.
9986 * utils.c (initialize_utils): Ditto.
9987 * maint.c (_initialize_maint_cmds): Ditto.
9988 * infrun.c (_initialize_infrun): Ditto.
9989 * demangle.c (_initialize_demangler): Ditto.
9990 * remote.c (add_packet_config_cmd): Ditto.
9991 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9992 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9993 * proc-api.c (_initialize_proc_api): Ditto.
9994 * kod.c (_initialize_kod): Ditto.
9995 * valprint.c (_initialize_valprint): Ditto.
9996 * top.c (init_main): Ditto.
9997 * infcmd.c (_initialize_infcmd): Ditto.
9998 * corefile.c (_initialize_core): Ditto.
9999 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10000 * arch-utils.c (initialize_current_architecture): Ditto.
10001 (_initialize_gdbarch_utils): Ditto.
10002 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10003
10004 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10005 * wince.c (_initialize_inftarg): Ditto.
10006 * symfile.c (_initialize_symfile): Ditto.
10007 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10008 * language.c (_initialize_language): Ditto.
10009 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10010
f9ba0717
MS
100112002-02-04 Michael Snyder <msnyder@redhat.com>
10012
10013 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10014
0c74b2a7
DJ
100152002-02-04 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10018 Add rules for building the register data files.
10019
c638789f
DJ
100202002-02-04 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * regformats/regdat.sh: Add braces to the definition of
10023 expedite_regs_${arch}.
10024
db253027
DJ
100252002-02-04 Daniel Jacobowitz <drow@mvista.com>
10026
10027 * regformats/regdef.h (struct reg): Add comment describing the
10028 requirements for offset and size fields.
10029
206be19c
AS
100302002-02-04 Andreas Schwab <schwab@suse.de>
10031
10032 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10033 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10034
181c1381
RE
100352002-02-04 Richard Earnshaw <rearnsha@arm.com>
10036
10037 * gdbarch.sh (copyright): Update years in generated header.
10038 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10039 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10040 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10041 * dbxread.c: Likewise.
10042 * dwarfread.c: Likewise.
10043 * elfread.c: Likewise.
10044 * somread.c: Likewise.
10045
10046 * arm-tdep.c (arm_smash_text_address): New function.
10047 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10048
fa4ba8da
PM
100492002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10050
10051 Add support for hardware watchpoints on win32 native.
aaa38bb5 10052 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10053 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10054 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10055 of debug registers.
10056 (debug_registers_changed): New variable. Reflects when debug registers
10057 are changed and need to be written to inferior.
aaa38bb5 10058 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10059 was set, used when new threads are created.
10060 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10061 i386-nat code.
10062 (thread_rec): Set dr array if id is the thread of current_event .
10063 (child_continue, child_resume): Change the debug registers for all
10064 threads if debug_registers_changed.
10065 (child_add_thread): Change the debug registers if debug_registers_used.
10066 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10067 Link nm.h to new nm-cygwin.h file.
10068 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10069 of hardware registers.
10070
a73c86fb
AC
100712002-02-03 Andrew Cagney <ac131313@redhat.com>
10072
10073 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10074 Restore behavour broken by 2002-01-20 Andrew Cagney
10075 <ac131313@redhat.com> IEEE_FLOAT removal.
10076
acf5ed49
DJ
100772002-02-03 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * c-valprint.c (c_val_print): Pass a proper valaddr to
10080 cp_print_class_method.
10081 * valops.c (search_struct_method): If there is only one method
10082 and args is NULL, return that method.
10083
493d28d5
DJ
100842002-02-03 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10087 accessing tag_name directly.
10088
7495dfdb
DJ
100892002-02-03 Daniel Jacobowitz <drow@mvista.com>
10090
10091 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10092 of accessing tag_name directly.
10093
dd6bda65
DJ
100942002-02-03 Daniel Jacobowitz <drow@mvista.com>
10095
10096 PR gdb/280
10097 * gdbtypes.c (replace_type): New function.
10098 * gdbtypes.h (replace_type): Add prototype.
10099 * stabsread.c (read_type): Use replace_type.
10100
88fe217c
RE
101012002-02-03 Richard Earnshaw <rearnsha@arm.com>
10102
10103 * Makefile.in (memattr.o): Add missing dependencies rule.
10104
e5d66720
PS
101052002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10106
10107 * breakpoint.c (break_at_finish_command): Really export.
10108 (break_at_finish_at_depth_command): Ditto.
10109 (tbreak_at_finish_command): Ditto.
10110 * hppa-tdep.c: Include completer.h.
10111 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10112 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10113
fffee0be
AC
101142002-02-01 Andrew Cagney <ac131313@redhat.com>
10115
10116 * utils.c (do_write): New function.
10117 (error_stream): Rewrite combining the code from error_begin and
10118 verror.
10119 (verror): Rewrite using error_stream.
10120 (error_begin): Delete function.
10121
255e7dbf
AC
101222002-02-01 Andrew Cagney <ac131313@redhat.com>
10123
10124 * utils.c (error_begin): Make static.
10125 * defs.h (error_begin): Delete declaration.
10126
10127 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10128 (decode_line_1): Use cplusplus_error instead of error_begin,
10129 cplusplus_hint and return_to_top_level.
10130 * coffread.c (coff_symfile_read): Use error instead of error_begin
10131 and return_to_top_level.
10132 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10133
ddfe3c15
AC
101342002-02-01 Andrew Cagney <ac131313@redhat.com>
10135
10136 * language.h (type_error, range_error): Make string parameter
10137 constant.
10138 * language.c (warning_pre_print): Delete extern declaration.
10139 * dwarfread.c (warning_pre_print): Ditto.
10140 * language.c (type_error, range_error): Rewrite to use verror and
10141 vwarning instead of warning_begin.
10142
03ac34d5
MS
101432002-02-01 Michael Snyder <msnyder@redhat.com>
10144
261c4ca2
MS
10145 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10146 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10147
e00d1dc8
AC
101482002-02-01 Andrew Cagney <ac131313@redhat.com>
10149
10150 * command.h (NO_FUNCTION): Delete macro.
10151 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10152 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10153 * tracepoint.c (_initialize_tracepoint): Ditto.
10154 * cli/cli-decode.c (add_set_cmd): Ditto.
10155 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10156
76b79d6e
DJ
101572002-02-01 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10160 Update ``this'' pointer when calling virtual functions.
10161
799f9e91
MS
101622002-02-01 Michael Snyder <msnyder@redhat.com>
10163
c7bd442c 10164 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10165 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10166
3cf384d4
DJ
101672002-02-01 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * regformats/reg-arm.dat: New file.
10170 * regformats/reg-i386.dat: New file.
10171 * regformats/reg-ia64.dat: New file.
10172 * regformats/reg-m68k.dat: New file.
10173 * regformats/reg-mips.dat: New file.
10174 * regformats/reg-ppc.dat: New file.
10175 * regformats/reg-sh.dat: New file.
10176 * regformats/regdef.h: New file.
10177 * regformats/regdat.sh: New file.
10178
0defa245
RE
101792002-02-01 Richard Earnshaw <reanrsha@arm.com>
10180
10181 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10182 (arm_frame_args_address, arm_frame_locals_address): New functions.
10183 (arm_frame_num_args): New function.
10184 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10185 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10186 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10187
405f26e6
MS
101882002-01-31 Michael Snyder <msnyder@redhat.com>
10189
502fd408
MS
10190 * breakpoint.c (break_at_finish_command): Export.
10191 (break_at_finish_at_depth_command): Export.
10192 (tbreak_at_finish_command): Export.
10193 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10194 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10195 "tbreak" commands, which are HPPA specific.
10196
7d35e135
MS
10197 * printcmd.c (disassemble_command): Remove an ancient
10198 artifact of an old merge.
10199
aaa38bb5 10200 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10201 Define enum constant values for overlay mode.
10202 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10203 (overlay_is_mapped, overlay_auto_command,
10204 overlay_manual_command): Ditto.
d874f1e2 10205
aaa38bb5
AJ
10206 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10207 breakpoint_here_p, breakpoint_inserted_here_p,
10208 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10209 describe_other_breakpoints, check_duplicates, clear_command):
10210 Coding standard fixes.
10211
8add0441 10212 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10213 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10214 code: check bfd SEC_READONLY flag for section.
10215
e351066e
AC
102162002-01-31 Andrew Cagney <ac131313@redhat.com>
10217
7d35e135 10218 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10219
8a48e967
DJ
102202002-01-30 Daniel Jacobowitz <drow@mvista.com>
10221
10222 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10223 data symbols, since we search based on textlow and texthigh.
10224 (find_pc_sect_symtab): Likewise.
10225
f5a96129
AC
102262002-01-30 Andrew Cagney <ac131313@redhat.com>
10227
10228 * defs.h (vwarning): Declare.
f5a96129
AC
10229 * utils.c (vwarning): New function.
10230 (warning): Call vwarning.
10231 (warning_begin): Delete function.
10232
10233 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10234 the warning message.
10235 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10236 warning_begin.
10237
cefd4ef5
MS
102382002-01-30 Michael Snyder <msnyder@redhat.com>
10239
1a703748
MS
10240 * NEWS: Mention "set trust-readonly-sections" command.
10241 Mention generate-core-file command.
cefd4ef5 10242
3a11626d
MS
102432002-01-15 Michael Snyder <msnyder@redhat.com>
10244
10245 * target.c: New command, "set trust-readonly-sections on".
10246 (do_xfer_memory): Honor the suggestion to trust readonly sections
10247 by reading them from the object file instead of from the target.
10248 (initialize_targets): Register command "set trust-readonly-sections".
10249
d1c7e53b
AC
102502002-01-29 Andrew Cagney <ac131313@redhat.com>
10251
10252 * parse.c (target_map_name_to_register): Simplify, search regs and
10253 pseudo-regs using a single loop.
10254
e2c9a72c
AC
102552002-01-30 Andrew Cagney <ac131313@redhat.com>
10256
10257 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10258
69824b4e
MK
102592002-01-15 Rodney Brown <rbrown64@csc.com.au>
10260
10261 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10262 * config/i386/i386v42mp.mh: Add i387-nat.o .
10263 * i386v4-nat.c: Include i387-nat.h.
10264 (supply_fpregset): Use i387_supply_fsave.
10265 (fill_fpregset): Use i387_fill_fsave.
10266
6eb69eab
RE
102672002-01-30 Richard Earnshaw <rearnsha@arm.com>
10268
10269 * arm-tdep.c (arm_call_dummy_words): Define.
10270 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10271 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10272 (CALL_DUMMY_WORDS): Define.
10273 (arm_call_dummy_words): Declare.
10274 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10275 (arm_linux_call_dummy_words): Declare.
10276
9852326a
AS
102772002-01-30 Andreas Schwab <schwab@suse.de>
10278
10279 * m68klinux-nat.c: Fix last change to use regcache_collect
10280 instead of referencing registers[] directly.
10281
977a3030
AC
102822002-01-29 Andrew Cagney <ac131313@redhat.com>
10283
10284 * parse.c (target_map_name_to_register): Delete code wrapped in
10285 #ifdef REGISTER_NAME_ALIAS_HOOK.
10286
2076c72b
MS
102872002-01-28 Michael Snyder <msnyder@redhat.com>
10288
10289 * regcache.c (legacy_read_register_gen): Need to be able to
10290 read pseudo-register as well as real register.
10291 (legacy_write_register_gen): Ditto.
10292
8fcc723b
AC
102932002-01-28 Andrew Cagney <ac131313@redhat.com>
10294
10295 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10296 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10297 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10298 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10299 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10300 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10301 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10302 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10303 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10304 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10305 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10306 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10307 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10308 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10309 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10310 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10311 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10312 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10313 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10314 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10315
afe64c1a
AC
103162002-01-28 Andrew Cagney <ac131313@redhat.com>
10317
10318 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10319 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10320 (initialize_current_architecture): Update target_byte_order using
10321 information from BFD.
aaa38bb5 10322 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10323 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10324
75bc7ddf
AC
103252002-01-28 Andrew Cagney <ac131313@redhat.com>
10326
10327 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10328 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10329
10330 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10331 #ifdef INVALID_FLOAT.
10332 * infcmd.c (do_registers_info): Ditto.
10333 * values.c (unpack_double): Ditto. Add comment.
10334
10335 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10336 already commented out.
10337
0280a90a
AS
103382002-01-26 Andreas Schwab <schwab@suse.de>
10339
10340 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10341 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10342 registers and add support for PTRACE_GETREGS.
10343
7072a954
AC
103442002-01-24 Andrew Cagney <ac131313@redhat.com>
10345
10346 GDB 5.1.1 released from 5.1 branch.
10347 * NEWS: Add 5.1.1 news.
10348 * README: Sync with 5.1 branch.
10349
86f902e0
FF
103502002-01-23 Fred Fish <fnf@redhat.com>
10351
10352 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10353 stabstring on initial malloc. Reallocing will copy it for us,
10354 if necessary.
10355
8af51c36
EZ
103562002-01-23 Elena Zannoni <ezannoni@redhat.com>
10357
aaa38bb5 10358 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10359 (HFILES_NO_SRCDIR): Remove hpread.h.
10360 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10361 (hpread.o): Update dependencies.
10362 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10363
10364 * hp-psymtab-read.c: Remove file.
10365 * hp-symtab-read.c: Remove file.
10366 * hpread.h: Remove file.
10367
10368 * hpread.c: Merge all contents of hp-psymtab-read.c,
10369 hp-symtab-read.c and hpread.h into this file, as it was prior to
10370 January 1999.
10371
10372 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10373 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10374 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10375 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10376
dc5cfeb6
EZ
103772002-01-23 Elena Zannoni <ezannoni@redhat.com>
10378
10379 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10380 fill_gregset): Call gdbarch_tdep() just once, assign result to
10381 variable and use that, instead of calling the function several
10382 times.
10383
ea87b71b
AO
103842002-01-24 Alexandre Oliva <aoliva@redhat.com>
10385
10386 * configure.host: Accept sparcv9 as alias for sparc64.
10387 * configure.tgt: Likewise.
10388
13fc0c2f
KB
103892002-01-22 Kevin Buettner <kevinb@redhat.com>
10390
10391 * solib-aix5.c (build_so_list_from_mapfile)
10392 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10393 arguments is not reversed.
10394 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10395 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10396
7bd872fe
EZ
103972002-01-22 Elena Zannoni <ezannoni@redhat.com>
10398
10399 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10400 modified version of obsolete sh_fetch_pseudo_register.
10401 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10402 (sh4_register_read): New function.
10403 (sh_pseudo_register_write): New function. Renamed and modified
10404 version of obsolete sh_store_pseudo_register.
10405 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10406 (sh4_register_write): New function.
10407 (sh_gdbarch_init): Remove setting of gdbarch function
10408 fetch_pseudo_register and store_pseudo_register. Remove setting of
10409 register_convert_to_raw, register_convert_to_virtual,
10410 register_convertible.
10411 (sh_sh4_register_convertible): Delete. No longer needed. All is
10412 taken care by architecture specific functions
10413 register_read/register_write.
10414 (sh_sh4_register_convert_to_virtual): Make static.
10415 (sh_sh4_register_convert_to_raw): Ditto.
10416
069e84fd
AC
104172002-01-22 Andrew Cagney <ac131313@redhat.com>
10418
10419 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10420 (floatformat_is_nan, floatformat_mantissa): Ditto.
10421
10422 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10423 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10424 builtin_type_ieee_double_little,
10425 builtin_type_ieee_double_littlebyte_bigword,
10426 builtin_type_m68881_ext, builtin_type_i960_ext,
10427 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10428 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10429 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10430 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10431
211a4f69
CV
104322002-01-22 Corinna Vinschen <vinschen@redhat.com>
10433
10434 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10435 parameter. Set frameless flag if it exists and depended of
10436 whether the scanned function is frameless or not.
10437 (xstormy16_skip_prologue): If function is frameless, return
10438 result of xstormy16_scan_prologue().
10439 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10440 call.
10441
f81353e4
EZ
104422002-01-21 Elena Zannoni <ezannoni@redhat.com>
10443
10444 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10445 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10446 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10447 sh_sh4_register_byte, sh_sh4_register_raw_size,
10448 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10449 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10450 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10451 sh_store_pseudo_register, sh_do_pseudo_register): Call
10452 gdbarch_tdep() just once, assign result to variable and use that,
10453 instead of calling the function several times.
10454
63c73a17
MK
104552002-01-20 Mark Kettenis <kettenis@gnu.org>
10456
10457 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10458 macros instead of LAST_FPU_CTRL_REGNUM.
10459 (store_register): Likewise.
10460
39ad761d
JB
104612002-01-21 Jim Blandy <jimb@redhat.com>
10462
10463 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10464 is up-to-date before running the program, not just when a program
10465 exits.
10466
3d74b771
FF
104672002-01-21 Fred Fish <fnf@redhat.com>
10468
10469 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10470 when we have found all instructions we are looking for.
10471
966fbf70
RE
104722002-01-21 Richard Earnshaw <rearnsha@arm.com>
10473
10474 * arm-tdep.c (arm_register_name): New function.
10475 (arm_registers_names): Make static.
10476 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10477 (arm_register_name): Declare.
10478 (REGISTER_NAME): Use it.
10479
c3b4394c
RE
104802002-01-21 Richard Earnshaw <rearnsha@arm.com>
10481 Kevin Buettner <kevinb@redhat.com>
10482
10483 Convert arm targets to new FRAME interface.
10484 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10485 (arm_frame_find_save_regs): Delete.
10486 (arm_frame_init_saved_regs): New.
10487 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10488 Allocate extra_info as required. Convert all uses of fsr.regs
10489 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10490 to use extra_info.
10491 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10492 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10493 (check_prologue_cache, save_prologue_cache): Likewise.
10494 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10495 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10496 (FRAME_FIND_SAVED_REGS): Delete.
10497 (arm_frame_find_saved_regs): Delete prototype.
10498 (arm_frame_init_saved_regs): New prototype.
10499 (FRAME_INIT_SAVED_REGS): Define.
10500
61d99182
AC
105012002-01-20 Andrew Cagney <ac131313@redhat.com>
10502
10503 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10504
6aaea291
AC
105052002-01-20 Andrew Cagney <ac131313@redhat.com>
10506
10507 From Jeff Law <law@redhat.com>:
10508 * infttrace.c: Include <sys/pstat.h>.
10509 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10510 exec file if the ttrace equivalent fails.
10511
15f698d2
AC
105122002-01-20 Andrew Cagney <ac131313@redhat.com>
10513
10514 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10515 (closeLogFile): Ditto.
10516
f86ddd7c
MC
105172002-01-20 Michael Chastain <mec@shout.net>
10518
10519 * top.c (print_gdb_version): Bump copyright year to 2002.
10520
904507ce
AC
105212002-01-20 Andrew Cagney <ac131313@redhat.com>
10522
10523 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10524 Zannoni and Eli Zaretskii.
10525
d7f0b9ce
DJ
105262002-01-20 Daniel Jacobowitz <drow@mvista.com>
10527
10528 * buildsym.c: Update copyright years.
10529 * c-typeprint.c: Likewise.
10530 * dwarf2read.c: Likewise.
10531 * f-typeprint.c: Likewise.
10532 * gdbtypes.c: Likewise.
10533 * gdbtypes.h: Likewise.
10534 * hp-symtab-read.c: Likewise.
10535 * hpread.c: Likewise.
10536 * mdebugread.c: Likewise.
10537 * p-typeprint.c: Likewise.
10538
3fd3d7d2
AC
105392002-01-20 Andrew Cagney <ac131313@redhat.com>
10540
10541 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10542 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10543 byte-order selectable.
10544 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10545 * arch-utils.c: Ditto.
10546 (set_endian): Ditto.
10547 (set_endian_from_file): Ditto.
10548 * gdbserver/low-sim.c (create_inferior): Ditto.
10549 * gdbarch.sh: Ditto.
10550 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10551 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10552 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10553 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10554 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10555 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10556 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10557 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10558 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10559 macro definition.
10560 * config/mips/tm-wince.h: Remove #undef of macro
10561 TARGET_BYTE_ORDER_SELECTABLE.
10562 * config/sh/tm-wince.h: Ditto.
10563
b02dede2
DJ
105642002-01-20 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10567 member function fields. Add accessor macro
10568 TYPE_FN_FIELD_ARTIFICIAL.
10569 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10570 * c-typeprint.c (c_type_print_base): Skip artificial member
10571 functions.
10572
c3643761
DJ
105732002-01-20 Daniel Jacobowitz <drow@mvista.com>
10574
10575 * f-typeprint.c: Delete unused function f_type_print_args.
10576 * p-typeprint.c: Delete unused function pascal_type_print_args.
10577
8176bb6d
DJ
105782002-01-20 Daniel Jacobowitz <drow@mvista.com>
10579
10580 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10581 comment. Add ``artificial'' to ``union field_location''.
10582
10583 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10584
10585 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10586 * mdebugread.c (parse_symbol): Likewise.
10587 * stabsread.c (define_symbol): Likewise.
10588 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10589 initializing TYPE_FIELD_BITPOS to n (obsolete).
10590 (hpread_doc_function_type): Likewise.
10591 * hpread.c (hpread_function_type): Likewise.
10592
7fd60527
AC
105932002-01-20 Andrew Cagney <ac131313@redhat.com>
10594
10595 * configure.in (host_makefile_frag): Only require a host makefile
10596 fragment when a native build.
10597 * configure: Re-generate.
10598
c2f05ac9
AC
105992002-01-20 Andrew Cagney <ac131313@redhat.com>
10600
10601 * doublest.h (floatformat_from_type): Declare.
10602 * doublest.c (floatformat_from_type): New function.
10603 (convert_typed_floating): Use.
10604
10605 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10606 call to function floatformat_from_type.
10607
10608 * gdbarch.sh (IEEE_FLOAT): Delete.
10609 * gdbarch.h, gdbarch.c: Re-generate.
10610 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10611 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10612 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10613 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10614 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10615 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10616 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10617 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10618 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10619 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10620 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10621 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10622
10623 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10624 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10625 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10626 * sh-tdep.c (sh_gdbarch_init): Ditto.
10627 * mips-tdep.c (mips_gdbarch_init): Ditto.
10628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10629 * cris-tdep.c (cris_gdbarch_init): Ditto.
10630
abf22e64
AJ
106312002-01-20 Jiri Smid <smid@suse.cz>
10632
10633 * configure.host, configure.tgt: Support x86-64.
10634 * NEWS: Note new target x86-64.
10635
b7c4cbf8
AJ
10636 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10637 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10638 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10639 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10640 x86-64-linux-nat.o): Fix dependencies.
10641
82600034
AC
106422002-01-19 Andrew Cagney <ac131313@redhat.com>
10643
10644 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10645 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10646 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10647 * config/sparc/xm-sun4os4.h: Delete file.
10648 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10649
bbe5c628
AC
106502002-01-19 Andrew Cagney <ac131313@redhat.com>
10651
10652 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10653 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10654 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10655 * config/i386/i386lynx.mh (XM_FILE): Delete.
10656 * config/rs6000/xm-rs6000ly.h: Delete file.
10657 * config/sparc/xm-sparclynx.h: Delete file.
10658 * config/m68k/xm-m68klynx.h: Delete file.
10659 * config/i386/xm-i386lynx.h: Delete file.
10660 * config/xm-lynx.h: Delete file.
10661 * config/djgpp/fnchange.lst: Update.
10662
f8453e34
JT
106632002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10664
10665 * alpha-tdep.c (alpha_register_byte): New function.
10666 (alpha_register_raw_size): Ditto.
10667 (alpha_register_virtual_size): Ditto.
10668 (alpha_skip_prologue_internal): Renamed from
10669 alpha_skip_prologue.
10670 (alpha_skip_prologue): New version that calls
10671 alpha_skip_prologue_internal.
10672 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10673 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10674 second argument from alpha_skip_prologue.
10675 (REGISTER_BYTE): Use alpha_register_byte.
10676 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10677 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10678 (FRAMELESS_FUNCTION_INVOCATION): Use
10679 generic_frameless_function_invocation_not.
10680 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10681 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10682
52d9e613
AC
106832002-01-19 Andrew Cagney <ac131313@redhat.com>
10684
10685 * config/mips/xm-news-mips.h: Delete file.
10686 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10687
10688 * config/m88k/xm-m88k.h: Delete file.
10689 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10690 * config/m88k/xm-delta88v4.h: Ditto.
10691 * config/m88k/xm-delta88.h: Ditto.
10692
10693 * config/alpha/xm-fbsd.h: Delete file.
10694 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10695
10696 * config/sparc/xm-sparc.h: Delete file.
10697 * Makefile.in (xm-sun4os4.h): Delete dependency.
10698 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10699 * config/sparc/xm-sun4os4.h: Ditto.
10700 * config/sparc/xm-linux.h: Ditto.
10701
10702 * config/i386/xm-windows.h: Delete file.
10703
2d1b2124
AC
107042002-01-19 Andrew Cagney <ac131313@redhat.com>
10705
10706 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10707 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10708
ee1f65f0
JT
107092002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10710
10711 * alpha-tdep.c (alpha_call_dummy_words): New.
10712 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10713 (CALL_DUMMY_P): Define.
10714 (CALL_DUMMY_WORDS): Define.
10715 (SIZEOF_CALL_DUMMY_WORDS): Define.
10716
98081e55
PB
107172002-01-19 Per Bothner <per@bothner.com>
10718
10719 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10720 isn't NULL, which can happen with some gcj-3.x-produced code.
10721
0d056799
JT
107222002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10723
10724 * alpha-tdep.c (alpha_register_virtual_type): New function.
10725 (alpha_init_frame_pc_first): Ditto.
10726 (alpha_fix_call_dummy): Ditto.
10727 (alpha_store_struct_return): Ditto.
10728 (alpha_extract_struct_value_address): Ditto.
10729 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10730 alpha_register_virtual_type.
10731 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10732 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10733 alpha_extract_struct_value_address.
10734 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10735 (INIT_FRAME_PC): Use init_frame_pc_noop.
10736 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10737
4604bcad
MK
107382002-01-19 Mark Kettenis <kettenis@gnu.org>
10739
10740 * i386gnu-nat.c: Include "i386-tdep.h".
10741 (fetch_fpregs): Simplify code dealing with uninitialized floating
10742 point states such that it doesn't require FP7_REGNUM.
10743
140f9984
JT
107442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10745
abf22e64
AJ
10746 * alpha-tdep.c (frame_extra_info): New.
10747 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10748 frame->extra_info.
10749 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10750 (alpha_frame_saved_pc): Use frame->extra_info.
10751 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10752 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10753 (init_extra_frame_info): Rename to...
10754 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10755 (alpha_print_extra_frame_info): New function.
140f9984
JT
10756 (alpha_frame_locals_address): Ditto.
10757 (alpha_frame_args_address): Ditto.
abf22e64 10758 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10759 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10760 alpha_frame_args_address.
abf22e64 10761 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10762 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10763 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10764 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10765 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10766 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10767
d734c450
JT
107682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10769
10770 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10771 (alpha_cannot_fetch_register): Ditto.
10772 (alpha_cannot_store_register): Ditto.
10773 (alpha_register_convertible): Ditto.
10774 (alpha_use_struct_convention): Ditto.
10775 * config/alpha/tm-alpha.h: Update copyright years.
10776 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10777 (INNER_THAN): Use core_addr_lessthan.
10778 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10779 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10780 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10781 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10782 (FRAME_CHAIN): Remove unnecessary cast.
10783
b4ceaee6
AC
107842002-01-18 Andrew Cagney <ac131313@redhat.com>
10785
10786 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10787 obsolete.
10788
0a65a603
AC
107892002-01-18 Andrew Cagney <ac131313@redhat.com>
10790
10791 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10792 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10793 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10794 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10795 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10796 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10797 * x86-64-linux-nat.c: Ditto.
10798
636a6dfc
JT
107992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10800
abf22e64 10801 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10802 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10803 (REGISTER_NAME): Define.
10804
acceddb6
JT
108052002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10806
10807 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10808
ec32e4be
JT
108092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10810
10811 * alpha-tdep.c: Update copyright years.
10812 (alpha_next_pc): New function.
10813 (alpha_software_single_step): Ditto.
10814 * config/alpha/tm-alpha.h: Add prototype for
10815 alpha_software_single_step.
10816
e771a871
JT
108172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10818
10819 * alphabsd-nat.c: Update copyright years.
10820 (fill_gregset): Use regcache_collect.
10821 (fill_fpregset): Likewise.
10822 (fetch_inferior_registers): Only fetch integer registers
10823 if requested to do so.
10824 (store_inferior_registers): Only store integer registers
10825 if requested to do so.
10826
7708fa01
AC
108272002-01-17 Andrew Cagney <ac131313@redhat.com>
10828
10829 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10830 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10831 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10832 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10833 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10834 * config/arm/linux.mh (XDEPFILES): Delete.
10835 * config/arm/nbsd.mh (XDEPFILES): Delete.
10836 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10837 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10838 * config/i386/i386m3.mh (XDEPFILES): Delete.
10839 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10840 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10841 * config/i386/fbsd.mh (XDEPFILES): Delete.
10842 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10843 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10844 * config/i386/i386v4.mh (XDEPFILES): Delete.
10845 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10846 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10847 * config/i386/i386aix.mh (XDEPFILES): Delete.
10848 * config/i386/go32.mh (XDEPFILES): Delete.
10849 * config/i386/cygwin.mh (XDEPFILES): Delete.
10850 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10851 * config/i386/i386mach.mh (XDEPFILES): Delete.
10852 * config/i386/i386v32.mh (XDEPFILES): Delete.
10853 * config/i386/linux.mh (XDEPFILES): Delete.
10854 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10855 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10856 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10857 * config/i386/i386sco.mh (XDEPFILES): Delete.
10858 * config/i386/i386v.mh (XDEPFILES): Delete.
10859 * config/i386/nbsd.mh (XDEPFILES): Delete.
10860 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10861 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10862 * config/i386/symmetry.mh (XDEPFILES): Delete.
10863 * config/i386/obsd.mh (XDEPFILES): Delete.
10864 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10865 * config/ia64/linux.mh (XDEPFILES): Delete.
10866 * config/ia64/aix.mh (XDEPFILES): Delete.
10867 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10868 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10869 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10870 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10871 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10872 * config/m68k/linux.mh (XDEPFILES): Delete.
10873 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10874 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10875 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10876 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10877 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10878 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10879 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10880 * config/m88k/delta88.mh (XDEPFILES): Delete.
10881 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10882 * config/m88k/m88k.mh (XDEPFILES): Delete.
10883 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10884 * config/mips/linux.mh (XDEPFILES): Delete.
10885 * config/mips/irix6.mh (XDEPFILES): Delete.
10886 * config/mips/irix5.mh (XDEPFILES): Delete.
10887 * config/mips/irix4.mh (XDEPFILES): Delete.
10888 * config/mips/irix3.mh (XDEPFILES): Delete.
10889 * config/mips/decstation.mh (XDEPFILES): Delete.
10890 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10891 (NATDEPFILES): Move core-aout.o to here.
10892 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10893 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10894 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10895 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10896 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10897 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10898 * config/pa/hpux11.mh (XDEPFILES): Delete.
10899 * config/powerpc/aix.mh (XDEPFILES): Delete.
10900 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10901 * config/powerpc/linux.mh (XDEPFILES): Delete.
10902 * config/romp/rtbsd.mh: Rename XDEPFILES.
10903 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10904 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10905 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10906 * config/s390/s390.mh (XDEPFILES): Delete.
10907 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10908 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10909 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10910 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10911 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10912 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10913 * config/sparc/linux.mh (XDEPFILES): Delete.
10914 * config/vax/vaxult.mh (XDEPFILES): Delete.
10915 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10916 * Makefile.in (DEPFILES): Remove XDEPFILES.
10917
375fc983
AC
109182002-01-17 Andrew Cagney <ac131313@redhat.com>
10919
10920 * utils.c (internal_verror): Fix comments, default is yes not no.
10921 Update queries to match. Default to quit and dump core.
10922
8926118c
AC
109232002-01-17 Andrew Cagney <ac131313@redhat.com>
10924
10925 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10926 copyright.
10927 * defs.h, event-top.c, gdbcmd.h: Ditto.
10928 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10929 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10930 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10931 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10932 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10933 * mi/mi-main.c:Ditto.
10934
10935 * stack.c, symfile.c: Update copyright.
10936
45b7b345
DJ
109372002-01-17 Daniel Jacobowitz <drow@mvista.com>
10938
db728ff7
DJ
10939 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10940 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10941 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10942 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10943
db728ff7
DJ
109442002-01-17 Daniel Jacobowitz <drow@mvista.com>
10945
10946 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10947 * gdbserver/low-lynx.c (myattach): Likewise.
10948 * gdbserver/low-nbsd.c (myattach): Likewise.
10949 * gdbserver/low-sim.c (myattach): Likewise.
10950 * gdbserver/low-sparc.c (myattach): Likewise.
10951 * gdbserver/low-sun3.c (myattach): Likewise.
10952
10953 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10954
db728ff7 10955 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10956 (main): Handle "--attach".
10957
8de3c354
AC
109582002-01-16 Andrew Cagney <ac131313@redhat.com>
10959
10960 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10961 maintainer.
10962
b0129042
DJ
109632002-01-15 Daniel Jacobowitz <drow@mvista.com>
10964
10965 * c-typeprint.c (is_type_conversion_operator): Add additional
10966 check for non-conversion operators.
10967
ba8679fb 109682002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10969
10970 * linux-proc.c: Add "info proc" command, a la procfs.c.
10971 (read_mapping): New function, abstract and re-use code.
10972 (linux_find_memory_regions): Use new func read_mapping.
10973 (linux_info_proc_cmd): New function, implement "info proc".
10974 (_initialize_linux_proc): Add new command "info proc".
10975
e4f9b4d5
MS
109762002-01-15 Michael Snyder <msnyder@redhat.com>
10977
10978 * symfile.c (generic_load): Use bfd_map_over_sections method
10979 instead of manipulating bfd structure members directly.
10980 (add_section_size_callback): New function, bfd sections callback
10981 used by generic_load.
10982 (load_sections_callback): New function, bfd sections callback
10983 used by generic_load.
10984
08cf96df
EZ
109852002-01-15 Elena Zannoni <ezannoni@redhat.com>
10986
abf22e64 10987 [Based on work by Jim Blandy]
08cf96df
EZ
10988 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10989 (builtin_type_vec128): Export.
10990 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10991 types.
10992 (builtin_type_vec128): New builtin type for 128 bit vector
10993 registers.
10994 (build_gdbtypes): Initialize builtin_type_v16qi and
10995 builtin_type_v8hi. Create the vec128 register builtin type
10996 structure.
10997 (build_builtin_type_vec128): New function.
abf22e64 10998 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10999 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11000 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11001 AltiVec register to new builtin type.
11002
d7242108
DJ
110032001-01-15 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11006 to make_cv_type.
11007
4ee3352d
AC
110082002-01-14 Andrew Cagney <ac131313@redhat.com>
11009
11010 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11011 CLEAN_UP_REGISTER_VALUE.
11012 * regcache.c (supply_register): Update only call.
11013
f015b2e7
AC
110142002-01-14 Andrew Cagney <ac131313@redhat.com>
11015
11016 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11017 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11018 a29k-*-vxworks* targets as obsolete.
11019
356ae49d
MS
110202002-01-14 Michael Snyder <msnyder@redhat.com>
11021
11022 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11023 until we can resolve portability issues.
11024 * gregset.h: Remove references to fpxregs.
11025 * gcore.c (gcore_command): Initialize note_sec to NULL.
11026
ade8f45e
AC
110272002-01-13 Andrew Cagney <ac131313@redhat.com>
11028
11029 * signals.c (target_signal_to_name): Rewrite. Only use
11030 signals[].name when in bounds and non-NULL.
abf22e64 11031
89c49e7a
AC
110322002-01-13 Andrew Cagney <ac131313@redhat.com>
11033
11034 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11035 * signals.c (target_signal_to_name): Verify that SIG is within the
11036 bounds of the signals array.
11037
4daa9f9f
AC
110382002-01-13 Andrew Cagney <ac131313@redhat.com>
11039
11040 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11041
ba4bbdcb
KS
110422002-01-13 Keith Seitz <keiths@redhat.com>
11043
11044 * stack.c (print_frame_info_base): Print the frame's pc
11045 only if when print_frame_info_listing_hook is not defined.
11046
575bbeb6
KS
110472002-01-13 Keith Seitz <keiths@redhat.com>
11048
11049 * varobj.c (varobj_set_value): Make sure that there were no
11050 errors evaluating the object before attempting to set its
11051 value.
11052 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11053 so this offset adjustment is no longer necessary.
11054 (create_child): Don't set the error flag if the child is
11055 a CPLUS_FAKE_CHILD.
11056 (value_of_child): If value_fetch_lazy fails, return NULL
11057 so that callers will be notified that an error occurred.
11058 (c_value_of_variable): Delay check of variable's validity
11059 until later. We actually want all structs and unions to have
11060 the value "{...}".
11061 Do not return "???" for variables which could not be evaluated.
11062 This error condition must be returned to the caller so that it
11063 can get the error condition from gdb.
11064 (cplus_name_of_child): Adjust index for vptr before figuring
11065 out the name of the child.
11066 (cplus_value_of_child): If a child's (real) parent is not valid,
11067 don't even bother trying to give a value for it. Just return
11068 an error. Change all instances in this function.
11069 (cplus_type_of_child): If our parent is one of the "fake"
11070 parents, we need to get at the type of the real parent, and
11071 derive the child's true type using this information.
11072
b76898ab
AC
110732002-01-13 Andrew Cagney <ac131313@redhat.com>
11074
11075 From 2002-01-09 John Marshall <johnm@falch.net>:
11076 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11077 sources.redhat.com, and tweak some related URLs which had
11078 suffered from linkrot.
11079
b6649e88
AC
110802002-01-13 Andrew Cagney <ac131313@redhat.com>
11081
11082 From Jeff law:
11083 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11084 structures passed in registers.
11085
82cc5033
EZ
110862002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11087
11088 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11089 white space which prevented compilation. Reported by DSK
11090 <dsk@student.unsw.edu.au>.
11091
ba5f2f8a
MS
110922002-01-11 Michael Snyder <msnyder@redhat.com>
11093
fbd35540
MS
11094 * symfile.c (build_section_addr_info_from_section_tab):
11095 Use bfd access method instead of manipulating bfd directly.
11096 (syms_from_objfile): Ditto.
11097 (simple_overlay_update_1): Ditto.
11098 (simple_overlay_update): Ditto.
11099 (generic_load): Ditto.
11100 (overlay_unmapped_address): FIXME comment, bfd access methods.
11101 (sections_overlap): FIXME comment, bfd access methods.
11102 (pc_in_mapped_range): FIXME comment, bfd access methods.
11103 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11104 (section_is_mapped): FIXME comment, bfd access methods.
11105 (section_is_overlay): FIXME comment, bfd access methods.
11106
ba5f2f8a
MS
11107 * symfile.c (generic_load): Whitespace and long line cleanups.
11108 Remove duplicate variable, change several local variables to
11109 more appropriate data types.
11110 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11111
17df2af6
AC
111122002-01-12 Andrew Cagney <ac131313@redhat.com>
11113
11114 From Peter Schauer:
11115 * language.c (longest_local_hex_string_custom): Use phex_nz to
11116 convert NUM to a hex string.
11117
ec920329
EZ
111182002-01-12 Elena Zannoni <ezannoni@redhat.com>
11119
11120 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11121 the function.
538a76d6 11122 Update Copyright year.
ec920329 11123
3abd2e01
AC
111242002-01-12 Andrew Cagney <ac131313@redhat.com>
11125
11126 * language.c (longest_raw_hex_string): Delete unused function.
11127
b21b22e0
PS
111282002-01-11 Petr Sorfa <petrs@caldera.com>
11129
11130 * MAINTAINERS (write-after-approval): Add myself.
11131 * dwarf2read.c (read_tag_string_type): Handling of
11132 DW_AT_byte_size.
11133 (read_tag_string_type): FORTRAN fix to prevent propagation of
11134 first string size.
11135 (set_cu_language): Handling of DW_LANG_Fortran95
11136
747fe712
RE
111372002-01-11 Richard Earnshaw <rearnsha@arm.com>
11138
11139 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11140 GETPID(inferior_ptid).
11141 (store_inferior_registers): Likewise.
11142
f1bea926
JM
111432002-01-10 Jason Merrill <jason@redhat.com>
11144
11145 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11146 Fix DW_OP_minus.
11147
ae940673
AC
111482002-01-10 Andrew Cagney <ac131313@redhat.com>
11149
11150 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11151 and bfd/elf32-sh-nbsd.c.
11152
00546b04
MS
111532002-01-10 Michael Snyder <msnyder@redhat.com>
11154
352ed7b4
MS
11155 * NEWS: Mention --pid and corefile/proc-id behavior change.
11156
c18be923
MS
11157 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11158 * gcore.c: Include cli/cli-decode.h instead of command.h.
11159
00546b04
MS
11160 * main.c (captured_main): Add new command line option "--pid".
11161 If the second command line argument (following the symbol-file)
11162 begins with a digit, try to attach to it before trying to open
11163 it as a corefile.
11164 (print_gdb_help): Document the "--pid" argument.
11165
db60ec62
EZ
111662002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11167
11168 * completer.c (command_completer): New function.
11169
11170 * completer.h <command_completer>: Add prototype.
11171
11172 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11173 completer for the "help" command.
11174
39c22d1a
JM
111752002-01-09 Jason Merrill <jason@redhat.com>
11176
11177 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11178
c564377f
MS
111792002-01-09 Michael Snyder <msnyder@redhat.com>
11180
975aec09
MS
11181 * i386-linux-nat.c (fill_fpxregset): Make global.
11182 (store_fpxregset): Ditto.
11183
db4a10fa
MS
11184 * gregset.h (gdb_fpxregset_t): Define.
11185 (supply_fpxregset): Prototype.
11186 (fill_fpxregset): Prototype.
11187
c564377f
MS
11188 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11189
c3d45d70
RE
111902002-01-09 Richard Earnshaw <rearnsha@arm.com>
11191
11192 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11193 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11194 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11195
fcc87af1
AC
111962002-01-09 Andrew Cagney <ac131313@redhat.com>
11197
11198 * MAINTAINERS: Update target maintainer rules so that any
11199 Maintainer can approve a tested patch for a maintenance-only
11200 target.
11201
dd96c05b
RE
112022002-01-09 Richard Earnshaw <rearnsha@arm.com>
11203
d4297db9 11204 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11205
d4297db9 11206 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11207 IN_SIGTRAMP.
11208
145fdc6e
MS
112092002-01-08 Michael Snyder <msnyder@redhat.com>
11210
11211 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11212 real name of the executable, rather than the /proc name.
11213
be4d1333
MS
112142002-01-03 Michael Snyder <msnyder@redhat.com>
11215
11216 Implement a "generate-core-file" command in gdb, save target state.
11217 * gcore.c: New file. Implement new command 'generate-core-file'.
11218 Save a corefile image of the current state of the inferior.
11219 * linux-proc.c: Add linux-specific code for saving corefiles.
11220 * target.h (struct target_ops): Add new target vectors for saving
11221 corefiles; to_find_memory_regions and to_make_corefile_notes.
11222 (target_find_memory_regions): New macro.
11223 (target_make_corefile_notes): New macro.
11224 * target.c (update_current_target): Inherit new target methods.
11225 (dummy_find_memory_regions): New place-holder method.
11226 (dummy_make_corefile_notes): New place-holder method.
11227 (init_dummy_target): Initialize new dummy target vectors.
11228 * exec.c (exec_set_find_memory_regions): New function.
11229 Allow the exec_ops vector for memory regions to be taken over.
11230 (exec_make_note_section): New function, target vector method.
11231 * defs.h (exec_set_find_memory_regions): Export prototype.
11232 * procfs.c (proc_find_memory_regions): New function, corefile method.
11233 (procfs_make_note_section): New function, corefile method.
11234 (init_procfs_ops): Set new target vector pointers.
11235 (find_memory_regions_callback): New function.
11236 (procfs_do_thread_registers): New function.
11237 (procfs_corefile_thread_callback): New function.
11238 * sol-thread.c (sol_find_memory_regions): New function.
11239 (sol_make_note_section): New function.
11240 (init_sol_thread_ops): Initialize new target vectors.
11241 * inftarg.c (inftarg_set_find_memory_regions): New function.
11242 Allow to_find_memory_regions vector to be taken over.
11243 (inftarg_set_make_corefile_notes): New function.
11244 Allow to_make_corefile_notes vector to be taken over.
11245 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11246 interface layer if not target_has_execution (may be a corefile).
11247 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11248 * config/sparc/sun4sol2.mh: Ditto.
11249 * config/alpha/alpha-linux.mh: Ditto.
11250 * config/arm/linux.mh: Ditto.
11251 * config/i386/x86-64linux.mh: Ditto.
11252 * config/ia64/linux.mh: Ditto.
11253 * config/m68k/linux.mh: Ditto.
11254 * config/mips/linux.mh: Ditto.
11255 * config/powerpc/linux.mh: Ditto.
11256 * config/sparc/linux.mh: Ditto.
11257
c6b92abd
MS
112582002-01-07 Michael Snyder <msnyder@redhat.com>
11259
11260 * arm-linux-nat.c: Remove references to regcache.c internal data
11261 (registers[] and register_valid[]).
11262
4b09dc8c
MS
112632002-01-07 Michael Snyder <msnyder@redhat.com>
11264
abf22e64
AJ
11265 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11266 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11267 symbol file and shlibs.
11268 * Makefile.in: Add rule for linux-proc.o.
11269 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11270 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11271 * config/arm/linux.mh: Ditto.
11272 * config/i386/linux.mh: Ditto.
11273 * config/i386/x86-64linux.mh: Ditto.
11274 * config/ia64/linux.mh: Ditto.
11275 * config/m68k/linux.mh: Ditto.
11276 * config/mips/linux.mh: Ditto.
11277 * config/powerpc/linux.mh: Ditto.
11278 * config/sparc/linux.mh: Ditto.
11279
c25b74ac
PM
112802002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11281
11282 * win32-nat.c: Add i386-tdep.h dependency.
11283
94cd915f
MS
112842002-01-07 Michael Snyder <msnyder@redhat.com>
11285
c7cccb76
MS
11286 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11287 instead of bfd_get_arch_size. Don't bail out just because
11288 there's no exec_bfd.
abf22e64 11289
34c0bd93
MS
11290 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11291 * p-valprint.c (pascal_object_print_value): Ditto.
11292 * somread.c (som_symtab_read): Ditto.
11293 * symfile.c (simple_free_overlay_region_table): Ditto.
11294 * valops.c (value_assign): Ditto.
11295
21c1c920
MS
11296 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11297 use tilde_expand and strerror for opening save-tracepoints file.
11298
5bbd998e
MS
11299 * thread-db.c (thread_db_new_objfile): Indendation fix.
11300
94cd915f
MS
11301 * infptrace.c (GDB_MAX_ALLOCA): New define.
11302 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11303 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11304 can be overridden with whatever value is appropriate to the host).
11305 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11306 alloca to allocate potentially large buffer.
11307 * rs6000-nat.c (child_xfer_memory): Ditto.
11308 * symm-nat.c (child_xfer_memory): Ditto.
11309 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11310
494e8a93
JSC
113112002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11312
11313 From Nick Clifton <nickc@redhat.com>
11314 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11315
d0e1d48e
MS
113162002-01-07 Michael Snyder <msnyder@redhat.com>
11317
abf22e64 11318 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11319 Don't use exec_bfd if it's NULL.
11320
290b2c7a
MK
113212002-01-06 Mark Kettenis <kettenis@gnu.org>
11322
abf22e64 11323 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11324
aef21287
AC
113252002-01-06 Andrew Cagney <ac131313@redhat.com>
11326
11327 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11328 * gnu-nat.c: Ditto.
11329
30efa627
AC
113302002-01-06 Andrew Cagney <ac131313@redhat.com>
11331
11332 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11333 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11334 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11335 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11336 z8k-coff have not been multi-arched. Update z8k-coff build
11337 status.
11338
9b4ff276
AC
113392002-01-06 Andrew Cagney <ac131313@redhat.com>
11340
11341 * MAINTAINERS: Mark a29k target as obsolete.
11342 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11343 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11344 comments.
11345 * NEWS: Note that a29k targets are obsolete.
11346 * a29k-tdep.c: Mark as obsolete.
11347 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11348 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11349 a29k-*-vxworks* targets as obsolete.
11350 * remote-adapt.c: Obsolete.
11351 * remote-eb.c: Obsolete.
11352 * remote-mm.c: Obsolete.
11353 * remote-udi.c: Obsolete.
11354 * config/a29k/a29k-udi.mt: Obsolete.
11355 * config/a29k/a29k.mt: Obsolete.
11356 * config/a29k/tm-a29k.h: Obsolete.
11357 * config/a29k/tm-vx29k.h: Obsolete.
11358 * config/a29k/vx29k.mt: Obsolete.
11359
a9011d31
AC
113602002-01-05 Andrew Cagney <ac131313@redhat.com>
11361
11362 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11363 with BFD_ENDIAN_BIG.
11364
9299404e
AC
113652002-01-05 Andrew Cagney <ac131313@redhat.com>
11366
11367 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11368 * configure, config.in: Re-generate.
11369 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11370 * defs.h: Do not include <endian.h>.
11371
7e89e357
JT
113722002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11373
11374 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11375 * config.in: Regenerate.
11376 * configure.in: Update copyright years.
11377 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11378 * configure: Regenerate.
11379 * i386bsd-nat.c: Update copyright years.
11380 (fill_gregset): Use regcache_collect.
11381 (fetch_inferior_registers): Only fetch integer registers
11382 if requested to do so. Add support for XMM registers
11383 using PT_GETXMMREGS.
11384 (store_inferior_registers): Only store integer registers
11385 if requested to do so. Add support for XMM registers
11386 using PT_SETXMMREGS.
11387 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11388 (store_inferior_registers): Remove.
11389 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11390 (fetch_elfcore_registers): New function.
11391 (i386nbsd_elfcore_fns): New.
11392 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11393 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11394 i386bsd-nat.o.
11395 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11396 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11397 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11398 * config/i386/tm-nbsd.h: Update copyright years.
11399 (HAVE_SSE_REGS): Define.
11400 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11401 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11402 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11403 (SIGCONTEXT_PC_OFFSET): Remove.
11404 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11405
a752853e
AC
114062002-01-05 Andrew Cagney <ac131313@redhat.com>
11407
11408 * configure.tgt: Remove powerpc-*-macos* target.
11409 * config/m68k/xm-mpw.h: Delete file.
11410 * config/xm-mpw.h: Delete file.
11411 * ser-mac.c: Delete file.
11412 * mpw-make.sed: Delete file.
11413 * mpw-config.in: Delete file.
11414 * mac-xdep.c: Delete file.
11415 * mac-gdb.r: Delete file.
11416 * mac-defs.h: Delete file.
11417 * mac-nat.c: Delete file.
11418 * config/powerpc/macos.mh: Delete file.
11419 * config/powerpc/macos.mt: Delete file.
11420 * config/powerpc/nm-macos.h: Delete file.
11421 * config/powerpc/tm-macos.h: Delete file.
11422 * source.c (openp, open_source_file): Remove obsolete code.
11423 * top.c (gdb_readline): Ditto.
11424 * utils.c (query): Ditto.
11425 * event-top.c (display_gdb_prompt): Ditto.
11426 * Makefile.in (ser-mac.o): Delete obsolete target.
11427 * NEWS: Update.
11428
d7449b42
AC
114292002-01-04 Andrew Cagney <ac131313@redhat.com>
11430
11431 * defs.h (BIG_ENDIAN): Delete macro definition.
11432 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11433 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11434 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11435 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11436 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11437 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11438 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11439 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11440 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11441 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11442 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11443 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11444 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11445 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11446 * gdbarch.c: Re-generate.
11447
356374e8
DJ
114482002-01-04 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11451 for core files.
11452
a2b8f8f8
JT
114532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11454
11455 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11456
12466af9
AC
114572002-01-04 Andrew Cagney <ac131313@redhat.com>
11458
11459 * value.h (value_ptr): Delete typedef.
11460
3549ab40
JT
114612002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11462
11463 * i386nbsd-nat.c: Update copyright years.
11464 Include i386-tdep.h.
11465
fedbd091
EZ
114662002-01-04 Elena Zannoni <ezannoni@redhat.com>
11467
11468 * stabsread.c: Update copyright years.
11469
11470 From Debashis Mahata <debashis.mahata@wipro.com>:
11471 (read_struct_fields): Deal with Sun C compiler erroneous stab
11472 output for structs and unions.
fec8b34f 11473 Fix PR gdb/269.
fedbd091 11474
eb43544b
DJ
114752002-01-04 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11478 prototype.
11479
1514d34e
DJ
114802002-01-04 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * cp-abi.c: Fix whitespace.
11483 (baseclass_offset): New wrapper function.
11484 * cp-abi.h (baseclass_offset): Add prototype.
11485 (struct cp_abi_ops): Add baseclass_offset pointer.
11486
11487 * valops.c (vb_match): Move to...
11488 * gnu-v2-abi.c (vb_match): here.
11489 * valops.c (baseclass_offset): Move to...
11490 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11491
11492 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11493
11494 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11495 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11496 * hpacc-abi.c (init_hpacc_ops): Likewise.
11497
7f8c9282
DJ
114982002-01-04 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * valops.c (find_overload_match): Accept obj as a
11501 reference parameter. Update it before returning.
11502 * value.h (find_overload_match): Update prototype.
11503 * eval.c (evaluate_subexp_standard): Pass object to
11504 find_overload_match by reference.
11505
f23631e4
AC
115062002-01-03 Andrew Cagney <ac131313@redhat.com>
11507
11508 * valarith.c: Replace value_ptr with struct value pointer. Remove
11509 register attribute from value declarations.
11510 * valops.c: Ditto.
11511 * value.h: Ditto.
11512 * scm-lang.c (scm_lookup_name): Ditto.
11513
79e10fab 115142002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11515
79e10fab
AC
11516 Abstract the functionality of iterating over mapped memory
11517 regions into a general purpose iterator function.
abf22e64 11518 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11519 iterator for memory sections.
11520 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11521 (solib_mappings_callback): New function, callback for above.
11522 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11523 (info_mappings_callback): New function, callback for above.
11524
11525 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11526
c5ad026a
MK
115272002-01-01 Mark Kettenis <kettenis@gnu.org>
11528
d2a7c97a
MK
11529 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11530 * i386-tdep.c: Include "elf-bfd.h".
11531 (process_note_abi_tag_sections): New function.
11532 (i386_gdbarch_init): Add code to recognize various OS/ABI
11533 combinations.
11534
c5ad026a
MK
11535 * maint.c (_initialize_maint_cmds): Add missing \ in
11536 string-literal.
11537
a1a5b71e 11538For older changes see ChangeLog-2001
c906108c
SS
11539\f
11540Local Variables:
11541mode: change-log
11542left-margin: 8
11543fill-column: 74
11544version-control: never
11545End:
This page took 0.896208 seconds and 4 git commands to generate.