2002-10-01 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
54c2a1e6
AC
12002-10-01 Andrew Cagney <ac131313@redhat.com>
2
3 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4 "vrsave"'s register number.
5
cedea778
AC
62002-09-30 Andrew Cagney <ac131313@redhat.com>
7
8 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
9 use frame_unwind_signed_register to obtain the PC.
10 (mips_frame_chain): Handle a generic dummy frame.
11 (mips_init_extra_frame_info): When a generic dummy frame, don't
12 re-compute the frame base.
13 (mips_pop_frame): Handle generic dummy frames.
14 (mips_gdbarch_init): When generic dummy frames, set
15 use_generic_dummy_frames, push_dummy_frame to
16 generic_push_dummy_frame, pc_in_call_dummy to
17 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
18 generic_save_dummy_frame_tos.
19
68315eb8
AC
202002-09-30 Andrew Cagney <ac131313@redhat.com>
21
22 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
23 against TOP when TOP was explictly set.
24 (generic_push_dummy_frame): Set TOP to zero.
25
3b8630c3
EZ
262002-09-30 Elena Zannoni <ezannoni@redhat.com>
27
28 * event-loop.c (start_event_loop): Rename variable 'result' to
29 'gdb_result', to avoid conflicts with upcoming intepreters changes.
30
28ee05e9
KS
312002-09-30 Keith Seitz <keiths@redhat.com>
32
33 * gdb-events.sh (selected_thread_changed): New event.
34 * gdb-events.c: Regenerated.
35 * gdb-events.h: Regenerated.
36
6eecb1c8
HPN
372002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
38
39 * MAINTAINERS: Add self to Write After Approval list.
40
92df71f0
FN
412002-09-30 Fernando Nasser <fnasser@redhat.com>
42
3b8630c3
EZ
43 * disasm.c: New file.
44 * disasm.h: New file.
92df71f0
FN
45 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
46 (compare_lines): Ditto.
47 (dump_insns): Ditto.
3b8630c3
EZ
48 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
49 argument.
92df71f0 50 (do_assembly_only): Ditto.
3b8630c3
EZ
51 (do_disassembly): Renamed to gdb_disassembly and moved to
52 disasm.c. Sdded uiout argument.
53 * Makefile.in: Add new files. Reorder SFILES list. Update
54 dependencies. Include libgdb.a later in the insight executable.
92df71f0 55
0c22854d
AC
562002-09-29 Andrew Cagney <ac131313@redhat.com>
57
58 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
59 bfd/elf64-alpha-fbsd.c.
60
e67f2023
AC
612002-09-29 Andrew Cagney <ac131313@redhat.com>
62
63 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
64 i386gnu-tdep.c.
65
89396210
AC
662002-09-29 Andrew Cagney <ac131313@redhat.com>
67
68 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
69 __FUNCTION__.
70 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
71 function name.
72 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
73 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
74 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
75 (S_msg_sig_post_reply): Ditto.
76
7079c36c
CV
772002-09-28 Corinna Vinschen <vinschen@redhat.com>
78
89396210
AC
79 * sh-tdep.c (sh_use_struct_convention): Use definition according
80 to ABI.
7079c36c
CV
81 (sh_push_arguments): Store in register with correct endianess.
82 (sh_default_store_return_value): Ditto.
83 (sh_gdbarch_init): Set sizeof long double to 8.
84
975ac915
MK
852002-09-27 Mark Kettenis <kettenis@gnu.org>
86
87 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
88 Fix some whitespace problems.
89
9bbe19fb
DC
902002-09-27 David Carlton <carlton@math.stanford.edu>
91
92 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
93 (mcore-tdep.o): Ditto.
94 (ns32k-tdep.o): Ditto.
95 (ns32knbsd-tdep.o): Ditto.
96 (sh3-rom.o): Ditto.
97 (vax-tdep.o): Ditto.
98 * cris-tdep.c: #include "gdb_string.h"
99 * mcore-tdep.c: Ditto.
100 * ns32k-tdep.c: Ditto.
101 * ns32knbsd-tdep.c: Ditto.
102 * sh3-rom.c: Ditto.
103 * vax-tdep.c: Ditto.
104
43b2fdc7
DC
1052002-09-27 David Carlton <carlton@math.stanford.edu>
106
107 * config/djgpp/fnchange.lst: Add entries for
108 gdb/testsuite/gdb.c++/m-static files.
109
e8cfbbd9
JW
1102002-09-27 Jim Wilson <wilson@redhat.com>
111
112 * MAINTAINERS: Add myself to the Write After Approval list.
113
43b2fdc7 1142002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
115
116 * mips-tdep.c (find_proc_desc): Initialize startaddr.
117
118
9f3b7f07
AC
1192002-09-26 Andrew Cagney <ac131313@redhat.com>
120
121 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
122 frame.
123
11269d7e
AC
1242002-09-26 Andrew Cagney <ac131313@redhat.com>
125
126 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
127 (rs6000_struct_return_address): Delete variable.
128 (rs6000_store_struct_return): Update.
129 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
130 deprecated_extract_struct_value_address.
131 (rs6000_frame_align): New function.
132 (rs6000_gdbarch_init): Set frame_align.
133
f15ab4a7
AC
1342002-09-26 Andrew Cagney <ac131313@redhat.com>
135
136 From Grace Sainsbury <graces@redhat.com>:
137 * Makefile.in (gdbtk-main.o): New target.
138 (gdb.o): New target.
139 (main_h): Define.
140 (main.o): Update dependencies.
141 (gdb$(EXEEXT)): Add gdb.o.
142 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
143 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
144 (SUBDIR_GDBTK_CLEAN): Set.
145 (install-gdbtk): Install the insight binary.
146 (uninstall-gdbtk): New target.
147 (all-gdbtk, clean-gdbtk): New rule.
148 * top.c (use_windows): Default to zero.
149 * main.c: Include "main.h".
150 (main): Delete.
151 (struct captured_main_args): Delete.
152 (gdb_main): New function.
153 * main.h: New file.
154 * gdb.c: New File.
155
e36180d7
AC
1562002-09-25 Andrew Cagney <cagney@redhat.com>
157
158 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
159 (frame_map_regnum_to_name): New function.
160 (frame_map_name_to_regnum): New function.
161 * frame.h (frame_map_name_to_regnum): Declare.
162 (frame_map_regnum_to_name): Declare.
163 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
164 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
165 * parse.c: Do not include "builtin-regs.h".
166 (target_map_name_to_register): Delete function.
167 (write_dollar_variable): Use frame_map_name_to_regnum.
168 * parser-defs.h (target_map_name_to_register): Delete declaration.
169 * expprint.c: Include "frame.h".
170 (print_subexp): Use frame_map_regnum_to_name.
171 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
172 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
173
8b69000d
AC
1742002-09-25 Andrew Cagney <ac131313@redhat.com>
175
176 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
177 wasn't saved, and the next innermost frame is a dummy, return the
178 dummy frame's link register.
179
046ca86a
JB
1802002-09-24 Jim Blandy <jimb@redhat.com>
181
182 Fix from Paul Breed:
183 * main.c (captured_main): Add a `break' after the case for 'b'.
184
94b66fa7
KS
1852002-09-24 Keith Seitz <keiths@redhat.com>
186
187 * varobj.c (c_type_of_child): Use get_target_type instead
188 of TYPE_TARGET_TYPE.
189
c214a6fd
FN
1902002-09-22 Fernando Nasser <fnasser@redhat.com>
191
53cb0458
FN
192 * source.c (get_current_or_default_source_symtab_and_line): Remove
193 function.
194 (set_default_source_symtab_and_line): New function. Attempts to
195 determine a source file to list lines from if one is not currently
196 defined.
197 (get_current_source_symtab_and_line): Initialize sal.pc and
198 sal.end fields.
199 (set_current_source_symtab_and_line): Mark argument as const.
200 * source.h: Update declarations and comments.
201 * linespec.c (decode_line_1): Replace call to removed routine above.
202 * stack.c (print_frame_info_base): Ditto.
203 * cli/cli-cmds.c (edit_command): Ditto.
204 (list_command): Ditto.
205
2062002-09-22 Fernando Nasser <fnasser@redhat.com>
207
208 * source.c (get_current__or_default_source_symtab_and_line): Initialize
209 sal.pc and sal.end fields.
c214a6fd
FN
210 (get_current_or_default_source_symtab_and_line): Ditto.
211 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
212 so we do not cause a new source symtab to be searched for (reverting an
213 unintentional change from the 2002-09-20 patch).
214 * scm-lang.c (scm_unpac): Ditto.
215
cc3b68a5
AC
2162002-09-21 Andrew Cagney <cagney@redhat.com>
217
218 * complaints.c (symfile_explanations): Remove new-line from
219 ``isolated_message''.
220 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
221 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
222
5835abe7
NC
2232002-09-20 Nick Clifton <nickc@redhat.com>
224
225 * NEWS: Announce that V850EA ISA is no longer supported.
226 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
227
a15ef5f5
DC
2282002-09-20 David Carlton <carlton@math.stanford.edu>
229
06ba1b39
DC
230 * Makefile.in (c-lang.o): Correct dependencies.
231 (utils.o): Gather dependencies.
232 (charset.o): Move.
a15ef5f5
DC
233 * c-lang.c: #include "gdb_string.h"
234
87885426
FN
2352002-09-20 Fernando Nasser <fnasser@redhat.com>
236
237 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
238 * cli/cli-cmds.c (list_command): New function. Implements the new
239 cli edit command.
240 (_init_cli_cmds): Add new command definition.
241 * gdb.1: Document edit command.
242 * doc/gdb.texinfo: Document edit command.
243
2442002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
245
246 * source.c: Make global variables current_source_symtab and
247 current_source_line static.
248 (list_command): Moved to cli/cli-cmds.c.
249 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
250 (get_first_line_listed): New accessor function.
251 (get_lines_to_list): New accessor function.
252 (get_current_source_symtab_and_line): New function. Retrieves the
253 position in the source code that we consider current.
254 (get_current_or_default_source_symtab_and_line): New function.
255 Like the above but attempts to determine a default position if one
256 is not currently defined.
257 (set_current_source_symtab_and_line): New function. Sets the source
258 code position considered current and returns the previously set one.
259 (clear_current_source_symtab_and_line): Reset stored information about
260 a current source line.
261 (_initialize_source): Remove registration for the "list" command and
262 its alias.
263 * source.h: Add declarations for the new functions above.
264 * symtab.h: Remove declarations for the global variables mentioned
265 above.
266 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
267 obtain current source line.
268 * linespec.c (decode_line_1): Ditto.
269 * macroscope.c (default_macro_scope): Ditto.
270 * scm-lang.c (scm_unpac): Ditto.
271 * stack.c (print_frame_info_base): Ditto.
272 * symfile.c (clear_symtab_users): Ditto.
273 * symtab.c (decode_line_spec): Ditto.
274 * cli/cli-cmds.c (list_command): Moved here from source.c.
275 (ambiguous_line_spec): Moved here from source.c.
276 (_init_cli_cmds): Add definition for "list" and its alias.
277 * Makefile.in: Update dependencies.
278
ddd216ea
CV
2792002-09-20 Corinna Vinschen <vinschen@redhat.com>
280
281 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
282 with what gcc thinks is correct.
283
6d305052
CV
2842002-09-20 Corinna Vinschen <vinschen@redhat.com>
285
286 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
287 multiple register push instruction.
288
234b45d4
KB
2892002-09-19 Jim Blandy <jimb@redhat.com>
290
291 Add support for distinct host and target character sets.
292 * charset.c, charset.h: New files.
293 * c-exp.y: #include "charset.h".
294 (yylex): Convert character and string literals to the target
295 character set, before returning them as the semantic value of the
296 token.
297 * c-lang.c: #include "charset.h".
298 (c_emit_char): Use charset-specific methods to recognize
299 characters with backslash escape forms, to decide which characters
300 to print literally and which to print using numeric escape
301 sequences, and to convert target characters to host characters
302 before printing.
303 * utils.c: #include "charset.h".
304 (no_control_char_error): New function.
305 (parse_escape): Use charset-specific methods to recognize
306 backslash escapes, parse `control character' notation, and convert
307 characters from the host character set to the target character set.
308 * configure.in: Set the default host character set.
309 Check where to find iconv, and what its argument types might be.
310 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
311 * Makefile.in (SFILES): List charset.c.
312 (COMMON_OBS): List charset.o.
313 (charset.o): New rule.
314 (charset_h): New header dependency variable.
315 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
316 (LIBICONV): New variable, set by configure.
317 (CLIBS): Include $(LIBICONV) here.
318 * aclocal.m4, config.in, configure: Regenerated.
319
525d6a61
JB
3202002-09-19 Joel Brobecker <brobecker@gnat.com>
321
322 * ada-exp.y: Add missing semicolons to end rules. Fixes a
323 bison 1.35 warning.
324
3ed93867
RE
3252002-09-19 Richard Earnshaw <rearnsha@arm.com>
326
327 * gdb_mbuild.sh: New file.
328
437666f8
AC
3292002-09-19 Andrew Cagney <ac131313@redhat.com>
330
331 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
332
389e51db
AC
3332002-09-18 Andrew Cagney <ac131313@redhat.com>
334
335 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
336 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
337 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
338 valops.c, value.h: Revert previous change.
339
3b4efeaa
MS
3402002-09-18 Michael Snyder <msnyder@redhat.com>
341
342 Preliminary support for Objective-C:
343 * defs.h (language_objc): New enum value.
344 (puts_filtered_tabular): Declaration only, exported from utils.c.
345 (skip_quoted): Delete, declared in completer.h.
346 * c-exp.y: Include completer.h.
347 * p-exp.y: Ditto.
348 * jv-exp.y: Ditto.
349 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
350 New operator enum values.
351 * language.h (CAST_IS_CONVERSION): Test for language_objc.
352 * language.c (binop_result_type): Handle language_objc case.
353 (integral_type, character_type, string_type, boolean_type,
354 structured_type, binop_type_check): Ditto.
355 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
356 (struct objc_specific): Add to general_symbol_info.
357 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
358 (SYMBOL_DEMANGLED_NAME): Handle objc case.
359 * parser-defs.h (struct objc_class_str): New struct type.
360 (start_msglist, end_msglist, add_msglist): Declaration only,
361 exported from objc-lang.c.
362 * value.h (value_of_local, value_nsstring,
363 call_function_by_hand_expecting_type): Exported from valops.c.
364 * valops.c (find_function_addr): Export.
365 (call_function_by_hand_expecting_type): New function.
366 (value_of_local): New function.
367 * symfile.c (init_filename_language_table): Add ".m" extension
368 for Objective-C.
369 * utils.c (puts_filtered_tabular): New function.
370 (fprintf_symbol_filtered): Add objc demangling support (disabled).
371 (set/show demangle): Extend help-string to refer to ObjC.
372 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
373 * stabsread.c (symbol_reference_defined): Objective-C symbols
374 may contain colons: make allowances when scanning stabs strings
375 for colons.
376 (objc_find_colon): New function.
377 * printcmd.c (address_info): If language == objc then print
378 "self" instead of "this".
379 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
380 OP_NSSTRING, and OP_SELF.
381 (prefixify_subexp): Ditto.
382 * source.c (print_source_lines): Mention objc in comment.
383 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
384 method names.
385
b9caf505
AC
3862002-09-18 Andrew Cagney <ac131313@redhat.com>
387
388 * complaints.h: Update copyright.
389 (struct complaints): Declare.
390 (struct complaint): Make `message' constant.
391 (internal_complaint): Declare.
392 (complaint): Declare.
393 (complaint_root): Delete declaration.
394 (symfile_complaints): Delete declaration.
395 (struct complaints): Add opaque declaration.
396 (clear_complaints): Add a complaints parameter.
397 * complaints.c: Update copyright.
398 (enum complaint_series): Define.
399 (complaint_root): Delete.
400 (struct complaints): Define.
401 (complaint_sentinel, symfile_complaint_book): New variables.
402 (symfile_explanations, symfile_complaints): New variables.
403 New variables.
404 (get_complaints): New function.
405 (vcomplaint): New function.
406 (complaint): New function.
407 (internal_complaint): New function.
408 (complain): Call vcomplain with symfile_complaint.
409 (clear_complaints): Rewrite.
410 (_initialize_complaints): Use add_setshow_command.
411 * Makefile.in (complaints.o): Update dependencies.
412 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
413 to call to clear_complaints.
414 (new_symfile_objfile, reread_symbols): Ditto.
415 (oldsyms_complaint): Delete.
416 (empty_symtab_complaint, unknown_option_complaint): Delete.
417 (free_named_symtabs): Use complaint instead of complain.
418
d2e6263c
MS
4192002-09-18 Michael Snyder <msnyder@redhat.com>
420
5fb2031a
AC
421 Contributed by Apple Computer, Inc. Merged with current sources
422 by Adam Fedor <fedor@doc.com> [cagney].
423
d2e6263c
MS
424 * objc-lang.c: First clean-up round: comments, indentation.
425 * objc-lang.h: Ditto.
426 * objc-lang.y: Ditto.
427
dec43320
AC
4282002-09-18 Andrew Cagney <ac131313@redhat.com>
429
430 * maint.c (maintenance_internal_error): Print the parameter as the
431 error message.
432 (maintenance_internal_warning): New function.
433 (_initialize_maint_cmds): Add command `maint internal-warning'.
434
435 * defs.h (internal_warning, internal_vwarning): Declare.
436 * utils.c (struct internal_problem): Define.
437 (internal_vproblem): New function.
438 (internal_warning): New function.
439 (internal_vwarning): New function.
440 (internal_warning_problem, internal_error_problem): New variables.
441 (internal_verror): Just call internal_vproblem.
442
b81654f1
MS
4432002-09-18 Michael Snyder <msnyder@redhat.com>
444
445 * objc-lang.c: New file, support for Objective-C.
446 Preliminary check-in, not yet integrated into gdb.
447 * objc-lang.h: New file.
448 * objc-exp.y: New file.
449
0542c381
AC
4502002-09-18 Andrew Cagney <ac131313@redhat.com>
451
7bda5e4a
AC
452 * infrun.c (signal_stop_update): Convert definition to ISO C.
453 (signal_print_update): Ditto.
454 (signal_pass_update): Ditto.
455 * inflow.c (terminal_save_ours): Ditto.
456
5247b418
AC
457 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
458 comments.
459
fc60962c
AC
460 * config/djgpp/fnchange.lst: Handle name clashes between
461 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
462 bfd/coff-tic80.c.
463
0542c381
AC
464 * i386-linux-tdep.h: Fix tipo.
465
5b924b9b
AF
4662002-09-18 Adam Fedor <fedor@gnu.org>
467
468 * MAINTAINERS: Add myself to the Write After Approval list.
469
5afc051b
JB
4702002-09-18 Jim Blandy <jimb@redhat.com>
471
472 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
473 texthigh and textlow to reader-specific structs caused
474 objfile_relocate to miss them. This is fixable, but the work that
475 the change was supposed to prepare GDB for never got done anyway.
476
eb944380
DC
4772002-09-18 David Carlton <carlton@math.stanford.edu>
478
479 * MAINTAINERS: Alphabetize Write After Approval list.
480
948e66d9
DJ
4812002-09-18 Daniel Jacobowitz <drow@mvista.com>
482
483 Fix PR gdb/709
484 * values.c (value_static_field): Call read_var_value.
485
dc604539
AC
4862002-09-18 Andrew Cagney <ac131313@redhat.com>
487
488 * valops.c (hand_function_call): Align the initial stack pointer
489 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
490 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
491 return value.
492 * mips-tdep.c (mips_frame_align): New function.
493 (mips_gdbarch_init): Set frame_align.
494 * gdbarch.sh (FRAME_ALIGN): New method.
495 * gdbarch.h, gdbarch.c: Re-generate.
496
cb7e422f
ML
4972002-09-18 Michal Ludvig <mludvig@suse.cz>
498
499 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
500 registers.
501
a094c6fb
AC
5022002-09-17 Andrew Cagney <ac131313@redhat.com>
503
504 * NEWS: Mention that MIPS $fp behavior changed.
505 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
506 reference to FP_REGNUM.
507 (mipsnbsd_cannot_store_register): Ditto.
508 * mips-linux-nat.c: Update copyright.
509 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
510 (mips_linux_cannot_store_register): Ditto.
511 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
512 * config/mips/tm-mips.h: Update copyright.
513 (FP_REGNUM): Delete macro.
514 (MIPS_REGISTER_NAMES): Replace "fp" with "".
515 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
516 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
517 (mips_r3041_reg_names, mips_r3051_reg_names)
518 (mips_r3081_reg_names): Replace "fp" with "".
519 Fix PR gdb/480.
520
45cf40d1
TR
5212002-09-17 Theodore A. Roth <troth@verinet.com>
522
523 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
524 generic_read_register_dummy() (PR gdb/703).
525 (avr_push_return_address): #if 0 out unused vars.
526 (avr_gdbarch_init): Enable use of avr_push_return_address().
527
c7e701b5
MS
5282002-09-17 Michael Snyder <msnyder@redhat.com>
529
d76ba2a5 530 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
531 RTE will take care of it.
532
20bcf01c
AC
5332002-09-17 Andrew Cagney <ac131313@redhat.com>
534
535 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
536 invalid, return SP_REGNUM.
537
009a9971 5382002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
539
540 * mips-tdep.c (mips_pop_frame): Read saved values of floating
541 point registers without sign extension.
542
135c175f
AC
5432002-09-17 Andrew Cagney <cagney@redhat.com>
544
545 * blockframe.c (deprecated_read_register_dummy): Rename
546 generic_read_register_dummy.
547 * frame.c (frame_unwind_signed_register): New function.
548 (frame_unwind_unsigned_register): New function.
549 * frame.h (frame_unwind_signed_register): Declare.
550 (frame_unwind_unsigned_register): Declare.
551 (deprecated_read_register_dummy): Rename
552 generic_read_register_dummy.
553
554 * h8300-tdep.c (h8300_frame_chain): Update.
555 (h8300_frame_saved_pc): Update.
556 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
557 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
558 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
559 (s390_frame_chain): Update.
560 * v850-tdep.c (v850_find_callers_reg): Update.
561 (v850_frame_saved_pc): Update.
562 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
563 (m32r_find_callers_reg): Update.
564 (m32r_frame_saved_pc): Update.
565 * sh-tdep.c (sh_find_callers_reg): Update.
566 (sh64_get_saved_pr): Update.
567 (sh_init_extra_frame_info): Update.
568 (sh_init_extra_frame_info): Update.
569 (sh64_init_extra_frame_info): Update.
570 (sh64_init_extra_frame_info): Update.
571 * mcore-tdep.c (mcore_find_callers_reg): Update.
572 (mcore_frame_saved_pc): Update.
573 (mcore_init_extra_frame_info): Update.
574 * i386-tdep.c (i386_frame_saved_pc): Update.
575 * ia64-tdep.c (ia64_frame_saved_pc): Update.
576 (ia64_init_extra_frame_info): Update.
577 (ia64_init_extra_frame_info): Update.
578 * d10v-tdep.c (d10v_frame_saved_pc): Update.
579 * cris-tdep.c (cris_init_extra_frame_info): Update.
580 * avr-tdep.c (avr_frame_chain): Update.
581 (avr_init_extra_frame_info): Update.
582 (avr_frame_saved_pc): Update.
583 * arm-tdep.c (arm_find_callers_reg): Update.
584 (arm_init_extra_frame_info): Update.
585 (arm_frame_saved_pc): Update.
586
a741e514
TT
5872002-09-17 Tom Tromey <tromey@redhat.com>
588
589 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
590 is "'".
591
d1a8e808
CV
5922002-09-17 Corinna Vinschen <vinschen@redhat.com>
593
594 * MAINTAINERS: Remove "non multi-arched" text from h8300.
595 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
596 NEXT_PROLOGUE_INSN.
597 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
598 NEXT_PROLOGUE_INSN.
599
d9025a18
JB
6002002-09-16 Joel Brobecker <brobecker@gnat.com>
601
602 * osfsolib.c: Remove file, replaced by solib-osf.c.
603 * Makefile.in: Remove compilation rules for osfsolib.c.
604
1b2ef1b6
DC
6052002-09-16 David Carlton <carlton@math.stanford.edu>
606
607 * cp-valprint.c (cp_print_class_method): Correct args to
608 check_stub_method_group.
609
928e48af
CV
6102002-09-16 Corinna Vinschen <vinschen@redhat.com>
611
612 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
613 `set architecture'. Unify naming convention of functions.
614 (h8300_skip_prologue): Improve prologue analysis.
615 (h8300_push_arguments): Rewritten to more closely match GCC's
616 bizarre argument-passing behavior, along with the comment describing
617 said behavior.
618 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
619 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
620 sim, remote-e7000.c, remote-hms.c and remote.c
621
5e3397bb
MK
6222002-09-15 Mark Kettenis <kettenis@gnu.org>
623
624 * i386-tdep.c (gdb_print_insn_i386): Removed.
625 (i386_print_insn): New function.
626 (i386_gdbarch_init): Set print_insn to i386_print_insns.
627 (_initialize_i386_tdep): Don't initialize tm_print_insn and
628 tm_print_insn_info.
629
f710f4fc
MK
6302002-09-14 Mark Kettenis <kettenis@gnu.org>
631
632 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
633 zero.
634
db54fef4
CV
6352002-09-14 Corinna Vinschen <vinschen@redhat.com>
636
637 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
638 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
639 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
640
2becadee
CF
6412002-09-13 Christopher Faylor <cgf@redhat.com>
642
643 * win32-nat.c (child_create_inferior): Honor 'tty' command.
644
de17c821
DJ
6452002-09-13 Daniel Jacobowitz <drow@mvista.com>
646
647 * gdbtypes.c (check_stub_method): Make static.
648 (check_stub_method_group): New function.
649 * gdbtypes.h: Update prototypes.
650 * cp-support.c: New file.
651 * cp-support.h: New file.
652
653 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
654 (update_method_name_from_physname): New function.
655 (read_member_functions): Correct method names for operators
656 and v3 constructors/destructors. Separate v2 constructors and
657 destructors.
658 * Makefile.in (stabsread.o): Update dependencies.
659 (SFILES): Add cp-support.c.
660 (COMMON_OBS): Add cp-support.o.
661 (cp_support_h, cp-support.o): Add.
662
663 * cp-valprint.c (cp_print_class_method): Call
664 check_stub_method_group instead of check_stub_method. Remove
665 extraneous QUITs.
666 * p-valprint.c (pascal_object_print_class_method): Likewise.
667 * valops.c (search_struct_method): Likewise.
668 (find_method_list, value_struct_elt_for_reference): Likewise.
669
e76cff22
AC
6702002-09-13 Andrew Cagney <cagney@redhat.com>
671
672 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
673 * gdbarch.h, gdbarch.c: Regenerate.
674
905abb3f
AC
6752002-09-13 Andrew Cagney <ac131313@redhat.com>
676
677 * frame.c (find_saved_register): Delete function.
678 * frame.h (find_saved_register): Delete declaration.
679 Fix PR gdb/631.
680
64159455
AC
681Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
682
683 * mips-tdep.c (read_next_frame_reg): Re-hack using
684 frame_register_unwind.
685
795e1e11
AC
686Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
687
688 * mips-tdep.c (mips_get_saved_register): Re-hack using
689 frame_register_unwind.
690
5720643c
JB
6912002-09-12 Joel Brobecker <brobecker@gnat.com>
692
693 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
694 vector. Will be useful for Interix.
695 * gdbarch.h, gdbarch.c: Regenerate.
696
697 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
698 name of the malloc function by NAME_OF_MALLOC.
699
3bada2a2
JB
7002002-09-12 Joel Brobecker <brobecker@gnat.com>
701
702 * value.h (find_function_in_inferior): Add const keyword to
703 one of the parameters. Allows us to invoke this function with
704 a const char *.
705 * valops.c (find_function_in_inferior): Likewise.
706
3db26b01
JB
7072002-09-12 Joel Brobecker <brobecker@gnat.com>
708
709 * exec.c (xfer_memory): Fix compilation warning with old versions
710 of GCC.
711 * tracepoint.c (trace_find_tracepoint_command): Likewise.
712
17c5ed2c
DC
7132002-09-12 David Carlton <carlton@math.stanford.edu>
714
715 * symtab.h: Run through gdb_indent.h.
716 Add 2002 to Copyright year list.
717
ecd1107e
AM
7182002-09-12 Alan Modra <amodra@bigpond.net.au>
719
720 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
721 mach constants.
722 * MAINTAINERS: Add myself to write after approval list.
723
e64f66d1
JB
7242002-09-11 J. Brobecker <brobecker@gnat.com>
725
726 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
727
f9395794
JB
7282002-09-11 J. Brobecker <brobecker@gnat.com>
729
730 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
731 Interix.
732
1a303dec
MS
7332002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
734
735 * procfs.c (do_detach): Clear current signal, not just fault.
736 Corrects problem with breakpoint trap signal leaking to detached
737 process on Tru64.
738
c0219d42
MS
7392002-09-10 Michael Snyder <msnyder@redhat.com>
740
741 * buildsym.c (finish_block): Protect against null pointer.
742
9d84ac84
AC
7432002-09-10 Andrew Cagney <cagney@redhat.com>
744
745 * infcmd.c (default_print_registers_info): Send all output to
746 ``file'' instead of ``gdb_stdout''.
747
77d8f2b4
MS
7482002-09-10 Michael Snyder <msnyder@redhat.com>
749
750 * mips-tdep.c (mips_extract_struct_value_address): Make val a
751 LONGEST, and use signed register read (addresses are sign-
752 extended for mips).
753
99656a61
SC
7542002-09-10 Stephane Carrez <stcarrez@nerim.fr>
755
756 * event-loop.c (gdb_do_one_event): Make public.
757 * event-loop.h (gdb_do_one_event): Declare.
758
da12f4d8
JL
7592002-09-10 Jeff Law <law@redhat.com>
760
761 * infttrace.c (child_resume): Simplify and rework to avoid
762 TT_PROC_CONTINUE.
763
d0aee0c4
FF
7642002-09-09 Fred Fish <fnf@intrinsity.com>
765
766 * printcmd.c (print_scalar_formatted): "len" is the number of
767 target bytes, NOT the number of target bits.
768
7cb3ec5e
EZ
7692002-09-09 Elena Zannoni <ezannoni@redhat.com>
770
771 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
772 * top.c (init_main): Set rl_terminal_name.
773
4dc81987
AS
7742002-09-08 Aidan Skinner <aidan@velvet.net>
775
776 * ada-lang.c (ada_array_bound, ada_type_match,
777 _initialize_ada_language): Fix K&R definitions.
778 * ada-tasks.c (get_current_task): Fix K&R definitions.
779 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
780
842330b4
CF
7812002-09-07 Christopher Faylor <cgf@redhat.com>
782
783 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
784 Add XP.
785
43156d82
MK
7862002-09-06 Mark Kettenis <kettenis@gnu.org>
787
66da5fd8
MK
788 * i386-tdep.c (i386_register_virtual_type,
789 i386_register_convertible, i386_register_convert_to_virtual,
790 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
791 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
792 (i386_gdbarch_init): Fix comment. Add comments on calls that set
793 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
794 Don't set push_arguments twice.
795
4b218c18
MK
796 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
797 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
798 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
799 sigtramp_end to NULL.
800 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
801 defines.
802 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
803
4cc314d5
MK
804 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
805 whitespace.
806
43156d82
MK
807 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
808 * gdbarch.h, gdbarch.c: Re-generate.
809 * blockframe.c (find_pc_sect_partial_function): Convert to use
810 SIGTRAMP_START_P predicate.
811
6672060b
MS
8122002-09-05 Michael Snyder <msnyder@redhat.com>
813
a90c3637
MS
814 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
815 generic_dummy_frame method and old method. Also distinguish
816 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 817 (arm_extract_return_value): Use new regcache method.
a90c3637 818
6672060b
MS
819 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
820 adjustment that doesn't conform to the ABI.
821 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
822 saved regcache, not from current regcache.
823
299ffc64
AC
8242002-09-05 Andrew Cagney <ac131313@redhat.com>
825
826 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
827 * README: Update.
828
a3a2ee65
JT
8292002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
830
831 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
832 if arm_apcs_32 is false.
833
2bc7eea9
AC
8342002-09-04 Andrew Cagney <ac131313@redhat.com>
835
836 GDB 5.3 branch created.
837
8a55a7c5
TR
8382002-09-03 Theodore A. Roth <troth@verinet.com>
839
840 * gdb/avr-tdep.c (avr_gdbarch_init): Use
841 generic_unwind_get_saved_register.
842
e26fb1d7
DC
8432002-09-03 David Carlton <carlton@math.stanford.edu>
844
845 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
846 argument (PR gdb/653). Update call to smash_to_method_type.
847 (read_structure_scope): Update call to dwarf2_add_member_fn.
848
30d52491
ML
8492002-09-03 Michal Ludvig <mludvig@suse.cz>
850
851 * x86-64-linux-tdep.c: Include gdb_string.h
852 * x86-64-linux-nat.c: Ditto.
853
06891d83
JT
8542002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
855
856 * ada-exp.y (yyname, yyrule): Remap global variables that appear
857 when YYDEBUG is set to 1.
858 * c-exp.y: Likewise.
859 * f-exp.y: Likewise.
860 * jv-exp.y: Likewise.
861 * m2-exp.y: Likewise.
862 * p-exp.y: Likewise.
863
7d400e77
JT
8642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
865
866 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
867 dependency list.
868 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
869 solib_svr4_fetch_link_map_offsets to
870 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
871 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
872 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
873 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
874 solib-svr4.o, and solib-legacy.o.
875 * config/i386/tm-nbsd.h: Include solib.h.
876
704a27c4
JT
8772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
878
879 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
880 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
881 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
882 comment noting that this needs its own target configuration.
883 * config/i386/nbsd.mt: New file.
884 * config/i386/nbsdaout.mt: Remove.
885 * config/i386/nbsdelf.mt: Ditto.
886 * config/i386/tm-nbsdaout.h: Ditto.
887
d66198e1
JT
8882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
889
890 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
891 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
892 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
893 tdep->sigtramp_end.
894 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
895 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
896 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
897
3cac699e
JT
8982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
899
900 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
901 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
902 * i386-tdep.h (i386bsd_init_abi): New prototype.
903 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
904 function declaration.
905 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
906 for NetBSD-a.out or NetBSD-ELF.
907 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
908 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
909 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
910 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
911 and nbsd-tdep.h.
912 (i386nbsd_pc_in_sigtramp): New function.
913 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
914 i386nbsd_pc_in_sigtramp.
915 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
916 and i386nbsdelf_init_abi OS ABI handlers.
917 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
918 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
919
7010ca0a
MK
9202002-09-02 Mark Kettenis <kettenis@gnu.org>
921
922 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
923 registers if the target really has them.
924
6dd93b72
JT
9252002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
926
927 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
928 than nbsd-tdep.h.
929
2ca8ae21
JT
9302002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
931
932 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
933 list.
934 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
935 (alphanbsd_skip_sigtramp_frame): New functions.
936 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
937 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
938 to alphanbsd_sigcontext_addr.
939
3d9b49b0
JT
9402002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
941
942 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
943 list.
944 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
945 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
946 nbsd_pc_in_sigtramp.
947 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
948 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
949 * nbsd-tdep.c: Include gdb_string.h.
950 (nbsd_pc_in_sigtramp): New function.
951 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
952 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
953 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
954 ppcnbsd_pc_in_sigtramp.
955 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
956 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
957 shnbsd_pc_in_sigtramp.
958 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
959 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
960 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
961
c860120c
PM
9622002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
963
964 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
965 watchpoints to NULL.
966 (insert_breakpoints): set val field of watchpoints if NULL.
967
968
c7612d53
JB
9692002-08-29 Jim Blandy <jimb@redhat.com>
970
971 * symtab.c (lookup_symbol_aux): In the cases where we find a
972 minimal symbol of an appropriate name and use its address to
973 select a symtab to read and search, use `name' (as passed to us)
974 as the demangled name when searching the symtab's global and
975 static blocks, not the minsym's name.
976
66609862
KS
9772002-08-29 Keith Seitz <keiths@redhat.com>
978
979 * stack.c (print_frame_info_base): Always set current_source_symtab
980 and current_source_line.
981
151fefe2
JB
9822002-08-29 Donn Terry <donnte@microsoft.com>
983
984 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
985
bfb3754e
KS
9862002-08-28 Keith Seitz <keiths@redhat.com>
987
988 * stack.c (select_frame): Add FIXME concerning selected-frame
989 events.
990 (select_frame_command): Send selected-frame-level-changed
991 event notification, but only if the level actually changed.
992 (up_silently_base): Add selected-frame-level-changed event
993 notification.
994 (down_silently_base): Likewise.
995
e822a2a0
AC
9962002-08-28 Andrew Cagney <ac131313@redhat.com>
997
998 * Makefile.in: Update dependencies for all gdb/*.c files.
999
309367d4
TT
10002002-08-27 Tom Tromey <tromey@redhat.com>
1001
1002 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1003 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1004 Update dependencies.
1005 * i387-tdep.c: Include gdb_string.h.
1006 * osabi.c: Likewise.
1007 * i386-linux-nat.c: Likewise.
1008 * lin-lwp.c: Likewise.
1009 * ax-gdb.c: Likewise.
1010 * signals/signals.c: Likewise.
1011 * jv-valprint.c: Likewise.
1012 * p-lang.c: Likewise.
1013 * c-valprint.c: Likewise.
1014 * cp-abi.c: Likewise.
1015
e1507482
EZ
10162002-08-27 Elena Zannoni <ezannoni@redhat.com>
1017
1018 * cli/cli-script.h (copy_command_lines): Export.
1019 * breakpoint.c: Include cli/cli-script.h.
1020 * Makefile.in (breakpoint.o): Update dependencies.
1021
c6510018
MS
10222002-08-26 Michael Snyder <msnyder@redhat.com>
1023
1024 * breakpoint.c (insert_breakpoints): Protect all references
1025 to 'process_warning'. Shorten long lines.
1026
c2b8ed2c
MS
10272002-08-26 Joel Brobecker <brobecker@gnat.com>
1028
1029 * cli/cli-script.c (copy_command_lines): New function.
1030 * defs.h (copy_command_lines): Export.
1031 * testsuite/gdb.base/commands.exp: New tests for commands
1032 attached to a temporary breakpoint, and for commands that
1033 delete the breakpoint they are attached to.
1034
10352002-08-26 Michael Snyder <msnyder@redhat.com>
1036
1037 * breakpoint.c (bpstat_stop_status): Instead of copying the
1038 pointer to the breakpoint commands struct, make a new copy
1039 of the struct and point to that.
1040 (bpstat_clear): Free the commands struct.
1041 (bpstat_clear_actions): Free the commands struct.
1042 (bpstat_do_actions): Free the command actions. Also execute
1043 the local cleanups, instead of deleting them.
1044 (delete_breakpoint): Leave the commands field of the bpstat
1045 chain alone -- it will be freed later.
1046
64b84175
KB
10472002-08-26 Kevin Buettner <kevinb@redhat.com>
1048
1049 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1050 deleted in 2002-08-20 commit. This function is still used by
1051 ppc-linux-nat.c.
1052
55970da6
KS
10532002-08-26 Keith Seitz <keiths@redhat.com>
1054
1055 * gdb-events.sh: Add selected-frame-level-changed event.
1056 * gdb-events.c: Regenerated.
1057 * gdb-events.h: Regenerated.
1058
a790ad35
SC
10592002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1060
1061 Fix PR gdb/393:
1062 * inflow.c (terminal_save_ours): New function to save terminal
1063 settings.
1064 * inferior.h (terminal_save_ours): Declare.
1065 * target.c (debug_to_terminal_save_ours): New function.
1066 (cleanup_target): Defaults to_terminal_save_ours.
1067 (update_current_target): Inherit to_terminal_save_ours.
1068 (setup_target_debug): Set to_terminal_save_ours.
1069 * target.h (target_terminal_save_ours): New to save terminal settings.
1070 (target_ops): New member to_terminal_save_ours.
1071 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1072 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1073 * inftarg.c (init_child_ops): Likewise.
1074 * m3-nat.c (init_m3_ops): Likewise.
1075 * procfs.c (init_procfs_ops): Likewise.
1076 * wince.c (init_child_ops): Likewise.
1077 * win32-nat.c (init_child_ops): Likewise.
1078 * sol-thread.c (init_sol_thread_ops): Likewise.
1079
c00dcbe9
MK
10802002-08-26 Mark Kettenis <kettenis@gnu.org>
1081
3d7f4f49
MK
1082 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1083 use regcache_* functions.
1084 (i386_gdbarch_init): Set store_return_value instead of
1085 deprecated_store_return_value.
1086
c00dcbe9
MK
1087 * regcache.c (regcache_raw_write_signed,
1088 regcache_raw_write_unsigned): New functions.
1089 * regcache.h (regcache_raw_write_signed,
1090 regcache_raw_write_unsigned): New prototypes.
1091
0e0d15ca
AC
10922002-08-25 Andrew Cagney <ac131313@redhat.com>
1093
1094 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1095 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1096 source file dependencies. Cleanup corresponding generator rules.
1097
d3b22ed5
AC
10982002-08-25 Andrew Cagney <ac131313@redhat.com>
1099
1100 * regcache.h (register_offset_hack): Declare.
1101 (regcache_cooked_read_using_offset_hack): Declare.
1102 (regcache_cooked_write_using_offset_hack): Declare.
1103
1104 * regcache.c (register_offset_hack): New function.
1105 (regcache_cooked_read_using_offset_hack): New function.
1106 (regcache_cooked_write_using_offset_hack): New function.
1107 (regcache_dump): Check that the registers, according to their
1108 offset, are packed hard against each other.
1109 (cooked_xfer_using_offset_hack): New function.
1110
bb425013
AC
11112002-08-25 Andrew Cagney <ac131313@redhat.com>
1112
1113 * regcache.c (struct regcache_descr): Add field register_type.
1114 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1115 in as a parameter
1116 (init_regcache_descr): Initialize register_type. Pass the descr
1117 to init_legacy_regcache_descr. Use register_type instead of
1118 REGISTER_VIRTUAL_TYPE.
1119 (register_type): New function.
1120 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1121 * regcache.h (register_type): Declare.
1122
d0403e00
AC
11232002-08-25 Andrew Cagney <ac131313@redhat.com>
1124
1125 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1126 instead of deprecated_store_return_value. Fix fallout from
1127 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1128
0ed04cce
AC
11292002-08-25 Andrew Cagney <ac131313@redhat.com>
1130
1131 * regcache.c (max_register_size): New function.
1132 (init_legacy_regcache_descr): Ensure that max_register_size is
1133 large enough for REGISTER_VIRTUAL_SIZE.
1134 * regcache.h (max_register_size): Declare.
1135
46d79c04
AC
11362002-08-24 Andrew Cagney <ac131313@redhat.com>
1137
1138 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1139 store_return_value.
1140 (e500_extract_return_value): Change type of valbuf pointer to
1141 void.
1142
853c7bd0
MK
11432002-08-24 Mark Kettenis <kettenis@gnu.org>
1144
cd87e769
MK
1145 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1146 workaround.
1147
853c7bd0
MK
1148 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1149 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1150 long long) to prevent compiler warning on 64-bit systems.
1151
ebba8386
AC
11522002-08-23 Andrew Cagney <cagney@redhat.com>
1153
1154 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1155 (DEPRECATED_STORE_RETURN_VALUE): New method.
1156 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1157 * gdbarch.h, gdbarch.c: Re-generate.
1158
1159 * values.c (set_return_value): Pass current_regcache to
1160 STORE_RETURN_VALUE.
1161 * arch-utils.h (legacy_store_return_value): Declare.
1162 * arch-utils.c (legacy_store_return_value): New function.
1163 (legacy_extract_return_value): Update parameters.
1164
1165 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1166 STORE_RETURN_VALUE.
1167 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1168 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1169 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1170 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1171 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1172 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1173 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1174 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1175 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1176 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1177
1178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1179 * i386-tdep.c (i386_extract_return_value): Update.
1180 * arch-utils.c (legacy_extract_return_value): Update.
1181 * frv-tdep.c (frv_gdbarch_init): Update.
1182 * cris-tdep.c (cris_gdbarch_init): Update.
1183 * d10v-tdep.c (d10v_gdbarch_init): Update.
1184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1185 * m68k-tdep.c (m68k_gdbarch_init): Update.
1186 * mcore-tdep.c (mcore_gdbarch_init): Update.
1187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1188 * s390-tdep.c (s390_gdbarch_init): Update.
1189 * sparc-tdep.c (sparc_gdbarch_init): Update.
1190 * sh-tdep.c (sh_gdbarch_init): Update.
1191 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1192 * v850-tdep.c (v850_gdbarch_init): Update.
1193 * avr-tdep.c (avr_gdbarch_init): Update.
1194 * ia64-tdep.c (ia64_gdbarch_init): Update.
1195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1196 * vax-tdep.c (vax_gdbarch_init): Update.
1197 * alpha-tdep.c (alpha_gdbarch_init): Update.
1198 * arm-tdep.c (arm_gdbarch_init): Update.
1199 * mips-tdep.c (mips_gdbarch_init): Update.
1200 * i386-tdep.c (i386_gdbarch_init): Update.
1201
5bd8c6d0
AC
12022002-08-23 Andrew Cagney <ac131313@redhat.com>
1203
1204 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1205 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1206
e73e1724
MK
12072002-08-24 Mark Kettenis <kettenis@gnu.org>
1208
1209 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1210 problems.
1211
3e6564e1
JB
12122002-08-23 Joel Brobecker <brobecker@gnat.com>
1213
1214 * infrun.c (handle_inferior_event): Move a comment outside of a
1215 function call, in order to avoid indent reformatting this part
1216 of the code in an unreadable way.
1217
81d0cc19
GS
12182002-08-23 Grace Sainsbury <graces@redhat.com>
1219
1220 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1221 when breakpoints fail. Move general breakpoint error messages to
1222 insert_breakpoints.
1223 * breakpoint.c (insert_breakpoints): Change warnings when
1224 breakpoints are nto inserted to specify the type. Remove call to
1225 memory_error when hardware breakpoints can't be inserted. Remove
1226 multiple calls to warning so all messages are sent to the user at
1227 once.
1228 (delete_breakpoints): Make insert error messsages more explicit.
1229
17574093
DJ
12302002-08-23 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1233 gdbserver/ChangeLog.
1234
8acc2935
MK
12352002-08-23 Mark Kettenis <kettenis@gnu.org>
1236
dfe01d39
MK
1237 * i386-tdep.c: Include "objfiles.h".
1238 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1239 skip_trampoline_code.
1240 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1241 (CPLUS_MARKER): Define to '.'.
1242
8acc2935
MK
1243 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1244 member.
1245 (linux_corefile_thread_callback): Increase args->num_notes.
1246 (linux_make_note_section): Initialize thread_args.num_notes, and
1247 use it to determine whether notes for any threads were created.
1248
151fefe2 12492002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1250
1251 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1252 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1253 and PCUNKILL.
1254 (write_with_trace): Conditionalize out the switch branch handling
1255 PCSHOLD if the corresponding macro is not defined. Likewise for
1256 PRSABORT and PRSTOP.
1257 This change will be needed by the Interix port.
1258
e1507482
EZ
12592002-08-22 Elena Zannoni <ezannoni@redhat.com>
1260
1261 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1262 write_register wherever possible instead of manipulating the
1263 register bytes directly.
1264 Assign VALUE_CONTENTS to a variable and use that.
1265 The GPR numbers are now dependent on the architecture.
1266
96ff0de4
EZ
12672002-08-22 Elena Zannoni <ezannoni@redhat.com>
1268
1269 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1270 ev_offset fields.
1271 (skip_prologue): Add support for BookE/e500 instructions.
1272 (e500_extract_return_value): New function.
1273 (frame_get_saved_regs): Add support for saving ev registers and
1274 pseudo gpr's.
1275 (e500_store_return_value): New function.
1276 (rs6000_gdbarch_init): Move up default intializations of
1277 deprecated_extract_return_value and store_return_value. Overwrite
1278 init of store_return_value with e500 specific version.
1279 Set extract_return_value for e500.
1280
fbefca5b
EZ
12812002-08-22 Elena Zannoni <ezannoni@redhat.com>
1282
1283 * blockframe.c (generic_call_dummy_register_unwind): Use
1284 regcache_cooked_read to catch cases in which the variable is
1285 stored in a pseudo register.
1286
4d210288
AC
12872002-08-22 Andrew Cagney <cagney@redhat.com>
1288
1289 * NEWS: Mention that the i960 has been made obsolete.
1290 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1291 i960-tdep.c
1292 (remote-nrom.o): Obsolete target.
1293 (remote-nindy.o, i960-tdep.o): Ditto.
1294 * remote-nrom.c: Make file obsolete.
1295 * remote-nindy.c, remote-vx960.c: Ditto.
1296 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1297 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1298 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1299 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1300 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1301 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1302 i960-*-vxworks* obsolete.
1303 * MAINTAINERS: Note that the i960 is obsolete.
1304
6c0c456d
CV
13052002-08-21 Corinna Vinschen <vinschen@redhat.com
1306
1307 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1308 detach to allow reinitialization.
1309
9f9d12b3
AC
13102002-08-22 Andrew Cagney <ac131313@redhat.com>
1311
1312 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1313 attempt).
1314
ebeb39fe
JB
13152002-08-22 Jim Blandy <jimb@redhat.com>
1316
1317 * coffread.c (coff_symfile_read): Don't try to read the line
1318 number table from disk if the image file doesn't have a symbol
1319 table; we'll never actually look at the info anyway, and Windows
1320 ships DLL's with bogus file offsets for the line number data.
1321
5bf1c677
EZ
13222002-08-21 Elena Zannoni <ezannoni@redhat.com>
1323
1324 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1325 an e500 executable.
1326
71b8ef93
MS
13272002-08-21 Michael Snyder <msnyder@redhat.com>
1328
1329 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1330 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1331 (DEFAULT_MIPS_TYPE): Delete unused macro.
1332 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1333 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1334
d174216d
JB
13352002-08-21 Jim Blandy <jimb@redhat.com>
1336
1337 * valops.c (value_cast): Simplify and correct logic for doing a
1338 static cast from a pointer to a base class to a pointer to a
1339 derived class.
1340
0ab7a791
AC
13412002-08-21 Andrew Cagney <ac131313@redhat.com>
1342
1343 * infcmd.c (default_print_registers_info): Replace
1344 do_registers_info.
1345 (registers_info): Use gdbarch_print_registers_info instead of
1346 DO_REGISTERS_INFO.
1347 * inferior.h (default_print_registers_info): Replace
1348 do_registers_info.
1349 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1350 (DO_REGISTERS_INFO): Change to a predicate function.
1351 * gdbarch.h, gdbarch.c: Regenerate.
1352
e23792cc
KS
13532002-08-21 Keith Seitz <keiths@redhat.com>
1354
1355 * gdb-events.sh: Add target-changed event.
1356 * gdb-events.c: Regenerated.
1357 * gdb-events.c: Regenerated.
1358 * valops.c (value_assign): Add target-changed event notification
1359 to inlval_register, lval_memory, and lval_reg_frame_relative.
1360
9fb14e79
JB
13612002-08-21 Joel Brobecker <brobecker@gnat.com>
1362
1363 * NEWS: Add an entry regarding the improvement of the next/step
1364 operation on Alpha Tru64 multi-processor machines.
1365
6d39a69f
AC
13662002-08-21 Andrew Cagney <ac131313@redhat.com>
1367
72acd513
AC
1368 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1369 directores.
342af04b 1370 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1371 * Makefile.in (install-gdbtk): Move to install section.
1372 (rdi-share/libangsd.a): Move to end of file.
1373
fa5f27c7
AC
13742002-08-19 Andrew Cagney <ac131313@redhat.com>
1375
1376 * frame.c (frame_register_unwind): When a register, set addrp to
1377 the register's byte.
1378
5a89d8aa
MS
13792002-08-20 Michael Snyder <msnyder@redhat.com>
1380
1381 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1382 used locally, so move them from the target machine header to here.
1383 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1384 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1385 Make static.
1386 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1387
822e978b
AC
13882002-08-20 Andrew Cagney <cagney@redhat.com>
1389
1390 * NEWS: Mention that the Apollo line was made obsolete.
1391 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1392 m68*-hp-hpux* obsolete.
1393 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1394 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1395 * buildsym.c (make_blockvector): Make static.
1396 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1397 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1398 (ALLDEPFILES): Remove dstread.c.
1399 (dstread.o): Obsolete make rule.
1400 * dstread.c: Makefile obsolete.
1401 * dst.h: Ditto.
1402 * config/m68k/hp300hpux.mt: Ditto.
1403 * config/m68k/hp300hpux.mh: Ditto.
1404 * config/m68k/hp300bsd.mt: Ditto.
1405 * config/m68k/hp300bsd.mh: Ditto.
1406 * config/m68k/apollo68b.mt: Ditto.
1407 * config/m68k/apollo68v.mh: Ditto.
1408 * config/m68k/apollo68b.mh: Ditto.
1409
e41b17f0
MS
14102002-08-20 Michael Snyder <msnyder@redhat.com>
1411
1412 * mips-tdep.c (mips_in_return_stub): Make static.
1413 (mips_gdbarch_init): Set in_solib_return_trampoline.
1414 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1415
d50355b6
MS
14162002-08-20 Michael Snyder <msnyder@redhat.com>
1417
1418 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1419 * gdbarch.c, gdbarch.h: Regenerate.
1420 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1421 Add.
1422 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1423
757a7cc6
MS
14242002-08-20 Michael Snyder <msnyder@redhat.com>
1425
1426 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1427 (mips_gdbarch_init): Set skip_trampoline_code,
1428 in_solib_call_trampoline.
1429 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1430 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1431
c8001721
EZ
14322002-08-20 Elena Zannoni <ezannoni@redhat.com>
1433
1434 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1435
1436 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1437 vector type for ev registers.
1438 (e500_pseudo_register_read): New function.
1439 (e500_pseudo_register_write): New function.
1440 (e500_dwarf2_reg_to_regnum): New function.
1441 (PPC_UISA_NOFP_SPRS): New macro.
1442 (PPC_EV_REGS): New macro.
1443 (PPC_GPRS_PSEUDO_REGS): New macro.
1444 (registers_e500): New register set for e500.
1445 (variants): Add e500 variant.
1446 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1447 before setting architectural dependent variations. Initialize ev
1448 registers numbers. Add case for e500 architecture. Set the
1449 number of pseudo registers.
1450
64366f1c
EZ
14512002-08-20 Elena Zannoni <ezannoni@redhat.com>
1452
1453 * rs6000-tdep.c: Clean up comments.
1454
7e78f0ca
AC
14552002-08-20 Andrew Cagney <cagney@redhat.com>
1456
1457 * h8300-tdep.c: Re-indent file.
1458
697f7479
JB
14592002-08-20 Jim Blandy <jimb@redhat.com>
1460
1461 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1462 default for this.
697f7479 1463
e86ae29f
KS
14642002-08-20 Keith Seitz <keiths@redhat.com>
1465
1466 * breakpoints.c (watch_command_1): Use internal breakpoint
1467 when setting a watchpoint_scope breakpoint.
1468
216b504f
EZ
14692002-08-20 Elena Zannoni <ezannoni@redhat.com>
1470
1471 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1472 (build_builtin_type_vec64i): Ditto.
1473 (build_builtin_type_vec128): Ditto.
1474 (build_builtin_type_vec128i): Ditto.
1475
f7ab6ec6
MS
14762002-08-19 Michael Snyder <msnyder@redhat.com>
1477
1478 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1479 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1480 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1481 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1482 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1483 CALL_DUMMY_ADDRESS): Delete.
1484 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1485 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1486 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1487 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1488 push_return_address.
1489 (mips_register_raw_size, mips_eabi_use_struct_convention,
1490 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1491 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1492 mips_init_extra_frame_info, mips_eabi_push_arguments,
1493 mips_n32n64_push_arguments, mips_push_return_address,
1494 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1495 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1496
b5d1566e
MS
14972002-08-19 Michael Snyder <msnyder@redhat.com>
1498
1499 * mips-tdep.c (mips_frame_num_args): New function.
1500 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1501 frame_saved_pc, frame_args_address, frame_locals_address,
1502 frame_num_args, and frame_args_skip.
1503 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1504 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1505 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1506 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1507
2f1488ce
MS
15082002-08-20 Michael Snyder <msnyder@redhat.com>
1509
1510 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1511 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1512 * mips-tdep.c (mips_store_struct_return): New function.
1513 (mips_extract_struct_value_address): New function.
1514 (mips_gdbarch_init): Set store_struct_return and
1515 extract_struct_value_address.
1516
41ff2da1
DC
15172002-08-20 David Carlton <carlton@math.stanford.edu>
1518
1519 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1520 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1521 (read_file_scope): Check that line_header is nonzero before
1522 decoding macro information.
1523
e5451d58
MK
15242002-08-20 Mark Kettenis <kettenis@gnu.org>
1525
1526 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1527 flag the general-purpose registers as floating-point on targets
1528 that don't support the floating-point registers.
1529
4a6daafa
EZ
15302002-08-20 Elena Zannoni <ezannoni@redhat.com>
1531
1532 * rs6000-tdep.c (altivec_register_p): Delete.
1533 (rs6000_do_altivec_registers): Delete.
1534 (rs6000_altivec_registers_info): Delete.
1535 (rs6000_do_registers_info): Delete.
1536 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1537 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1538
ab4327e0
EZ
15392002-08-20 Elena Zannoni <ezannoni@redhat.com>
1540
1541 * infcmd.c (do_registers_info): Print vector registers in hex
1542 format only.
1543 (print_vector_info): Check that printing registers
1544 makes sense.
1545 (print_float_info): Ditto.
1546
cb1d2653
AC
15472002-08-20 Andrew Cagney <ac131313@redhat.com>
1548
1549 * mips-tdep.c (mips_gdbarch_init): Update.
1550 (mips_o32_extract_return_value): Rewrite.
1551 (mips_o32_store_return_value): Rewrite.
1552 (mips_o32_xfer_return_value): New function.
1553 (mips_xfer_register): Tweak debug print message. Allow for
1554 buf_offset when dumping the value transfered.
1555
dfc3d9b2
AC
15562002-08-20 Andrew Cagney <ac131313@redhat.com>
1557
1558 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1559 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1560 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1561 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1562 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1563
7807aa61
MS
15642002-08-14 Michael Snyder <msnyder@redhat.com>
1565
1566 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1567
489461e2
EZ
15682002-08-19 Elena Zannoni <ezannoni@redhat.com>
1569
1570 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1571 register.
1572 (P): New macro to define a register as a pseudo register.
1573 (R, R4, R8, R16, FR32, R64, R0): Updated.
1574 (struct variant): Add new fields for number of pseudo registers
1575 and number of total registers.
1576 (tot_num_registers): New macro replacing....
1577 (num_registers): ...deleted macro.
1578 (num_registers): New function.
1579 (num_pseudo_registers): New function.
1580 (variants): Update all variants to intialize new fields correctly.
1581 Postpone initialization of number of pseudo regs and real regs.
1582 (init_variants): New function.
1583 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1584 registers offsets.
1585
fcaffe4c
DC
15862002-08-19 David Carlton <carlton@math.stanford.edu>
1587
2c2738a0
DC
1588 * valops.c (search_struct_field): Change error message to treat
1589 return value of 0 from value_static_field as meaning that field is
1590 optimized out.
1591 (value_struct_elt_for_reference): Ditto.
1592 * values.c (value_static_field): Treat an unresolved location the
1593 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1594 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1595 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1596 * MAINTAINERS: Add self to Write After Approval list.
1597
88658117
AC
15982002-08-19 Andrew Cagney <ac131313@redhat.com>
1599
1600 * mips-tdep.c (mips_xfer_register): New function.
1601 (mips_n32n64_extract_return_value): Rewrite.
1602 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1603 instead of deprecated_extract_return_value.
1604
21283beb
EZ
16052002-08-19 Elena Zannoni <ezannoni@redhat.com>
1606
1607 * rs6000-tdep.c (TDEP): Delete macro.
1608 (branch_dest): Replace use of TDEP macro with its body.
1609 (rs6000_pop_frame): Ditto.
1610 (rs6000_push_arguments): Ditto.
1611 (rs6000_skip_trampoline_code): Ditto.
1612 (rs6000_frame_saved_pc): Ditto.
1613 (rs6000_frame_chain): Ditto.
1614 (rs6000_register_name): Ditto.
1615 (rs6000_register_byte): Ditto.
1616 (rs6000_register_raw_size): Ditto.
1617 (rs6000_register_virtual_type): Ditto.
1618 (rs6000_register_convertible): Ditto.
1619 (rs6000_convert_from_func_ptr_addr): Ditto.
1620
bf072999
DJ
16212002-08-19 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1624 conditionally.
1625 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1626 MIPS_LINUX_JB_ELEMENT_SIZE.
1627 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1628 for MAX_REGISTER_RAW_SIZE arrays.
1629 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1630 MIPS_LINUX_JB_ELEMENT_SIZE.
1631
9b949a49
PM
16322002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1633
1634 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1635
6d3e79c6
AS
16362002-08-19 Aidan Skinner <aidan@velvet.net>
1637
1638 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1639 ada-valprint.c ada-tasks.c.
1640 (YYFILES): Add ada-exp.y.
1641 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1642 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1643 (ada-exp.tab.o): New target.
1644
06c0b04e
AC
16452002-08-18 Andrew Cagney <ac131313@redhat.com>
1646
1647 * regcache.c (regcache_xfer_part): New function.
1648 (regcache_raw_read_part): New function.
1649 (regcache_raw_write_part): New function.
1650 (regcache_cooked_read_part): New function.
1651 (regcache_cooked_write_part): New function.
1652 * regcache.h (regcache_raw_read_part): Declare.
1653 (regcache_raw_write_part): Declare.
1654 (regcache_cooked_read_part): Declare.
1655 (regcache_cooked_write_part): Declare.
1656
92d1e331
DJ
16572002-08-18 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * remote.c (remote_open_1): Add async_p.
1660 (remote_async_open_1): Delete.
1661 (open_remote_target): Delete.
1662 (remote_open, extended_remote_open): Update calls to remote_open_1.
1663 (remote_async_open, extended_remote_async_open): Call
1664 remote_open_1 instead of remote_async_open_1.
1665
247055de
MK
16662002-08-19 Mark Kettenis <kettenis@gnu.org>
1667
1668 * blockframe.c: Fix a few coding standard violations.
1669
641eda39
MK
16702002-08-19 Mark Kettenis <kettenis@gnu.org>
1671
0b717710
MK
1672 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1673 here from ...
1674 * config/i386/tm-i386sco5.h: ... here. File removed.
1675 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1676
26d28e12 1677 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1678 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1679 (TM_FILE): Set to tm-i386.h.
1680 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1681 * config/i386/tm-i386v.h: Remove file.
1682 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1683 instead of "i386/tm-i386v.h".
1684 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1685 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1686 "i386/tm-i386v.h".
1687 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1688 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1689 "i386/tm-i386.h".
1690
d4e0bab4
MK
16912002-08-18 Mark Kettenis <kettenis@gnu.org>
1692
1693 * config/i386/nm-i386v.h: Add protection against
1694 multiple-inclusion.
1695 (i386_register_u_addr): Remove prototype.
1696 (register_u_addr): New prototype.
1697 (REGISTER_U_ADDR): Redefine accordingly.
1698 * i386v-nat.c: Improve several comments.
1699 (i386_register_u_addr): Change signature and rename to
1700 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1701 ubase variable.
1702
46cac009
AC
17032002-08-18 Andrew Cagney <ac131313@redhat.com>
1704
1705 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1706 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1707 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1708 deprecated_extract_return_value.
1709 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1710 rename mips_o32o64_push_arguments.
1711 (mips_gdbarch_init): Update.
1712 (mips_extract_return_value): Delete.
1713 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1714 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1715 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1716 (mips_n32n64_extract_return_value): Clone
1717 mips_extract_return_value.
1718 (mips_store_return_value): Delete.
1719 (mips_o32_store_return_value): Clone mips_store_return_value.
1720 (mips_o64_store_return_value): Clone mips_store_return_value.
1721 (mips_eabi_store_return_value): Clone mips_store_return_value.
1722 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1723
d2e4a39e
AS
17242002-08-18 Aidan Skinner <aidan@velvet.net>
1725
0c30c098
AS
1726 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1727 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1728
17292002-08-18 Aidan Skinner <aidan@velvet.net>
1730
1731 * ada-lang.c: Run through gdb_indent.sh.
1732 * ada-lang.h: Run through gdb_indent.sh.
1733 * ada-tasks.c: Run through gdb_indent.sh.
1734 * ada-typeprint.c: Run through gdb_indent.sh.
1735 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1736
01fc4e33
AC
17372002-08-18 Andrew Cagney <ac131313@redhat.com>
1738
1739 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1740 ABI.
1741
d8ee244c
MK
17422002-08-18 Mark Kettenis <kettenis@gnu.org>
1743
c38d8261
MK
1744 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1745
222db64c
MK
1746 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1747 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1748
c2848c82
MK
1749 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1750 write_register_gen instead of write_register_bytes.
1751
d8ee244c
MK
1752 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1753 i[3456]-*-osf1mk* configurations have been made obsolete.
1754 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1755 i[3456]86-*-osf1mk* hosts obsolete.
1756 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1757 targets obsolete.
1758 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1759 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1760 config/i386/i386m3.mt, config/i386/nm-m3.h,
1761 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1762 config/i386/i386mk.mh, config/i386/i386mk.mt,
1763 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1764 obsolete.
1765 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1766 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1767 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1768
61d8d407
AC
17692002-08-18 Andrew Cagney <ac131313@redhat.com>
1770
1771 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1772 (hppa_value_returned_from_stack): Declare.
1773 (hppa_extract_return_value): Declare.
1774 * config/pa/hppa.mt: New file.
1775 * configure.tgt: Recognize hppa*-*-*.
1776 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1777
0c52bd59
MK
17782002-08-18 Mark Kettenis <kettenis@gnu.org>
1779
1780 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1781 comment.
1782
b5686e99
MK
17832002-08-17 Mark Kettenis <kettenis@gnu.org>
1784
1785 * top.c (gdb_rl_operate_and_get_next): Make sure
1786 operate-and-get-next functions correctly even when the history
1787 list is completely filled.
1788
c1bab85b
AC
17892002-08-18 Andrew Cagney <ac131313@redhat.com>
1790
1791 * MAINTAINERS (Target Instruction Set Architectures): Rename
1792 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1793 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1794 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1795 already listed under Host/Native.
1796
1797 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1798 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1799 mips*-*-*.
1800
32089c7c
AC
18012002-08-17 Andrew Cagney <ac131313@redhat.com>
1802
1803 * config/ia64/ia64.mt: New file.
1804 * config/alpha/alpha.mt: New file.
1805 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1806 ia64-linux-gnu. Mention that ia64-elf is broken.
1807 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1808
b4671f85
MK
18092002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1810
1811 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1812 generic_func_frame_valid instead of func_frame_valid.
1813
c8edd8b4
JB
18142002-08-16 Joel Brobecker <brobecker@gnat.com>
1815
1816 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1817 procfs appears to be broken when debugging on multi-processor
1818 machines. So enable software single stepping in order to avoid
1819 using the procfs interface to do next/step operations, using
1820 internal breakpoints instead.
1821
1822 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1823 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1824 make this pc address equal to the value it would have if the
1825 system stepping capability was used. Also set a new flag used
1826 to ensure that we don't readjust the PC one more time later.
1827
1828 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1829 address by DECR_PC_AFTER_BREAK when software single step is
1830 in use for this architecture, as this has already been taken
1831 care of in handle_inferior_event().
1832
238617f6
JB
18332002-08-16 Joel Brobecker <brobecker@gnat.com>
1834
1835 * infrun.c (handle_inferior_event): Minor reformatting, to make
1836 a rather long condition expression easier to read.
1837
541a7aac
AC
18382002-08-16 Andrew Cagney <ac131313@redhat.com>
1839
1840 * Makefile.in (gdbtk.o): Move to end of file.
1841 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1842 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1843 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1844 (gdbtk-wrapper.o, gdbres.o): Ditto.
1845
f92d4a7b
AC
18462002-08-16 Andrew Cagney <ac131313@redhat.com>
1847
1848 * Makefile.in (copying.o): Separate out compile rule.
1849 (hpux-thread.o, procfs.o, signals.o): Ditto.
1850 (v850ice.o, z8k-tdep.o): Ditto.
1851 (tui-file.o): Move to TUI section.
1852 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1853 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1854
1cce71eb
JB
18552002-08-16 Joel Brobecker <brobecker@gnat.com>
1856
1857 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1858 skip_trampoline_code, for better namespace-proofing.
1859
1860 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1861
0851f23d
JB
18622002-08-16 Joel Brobecker <brobecker@gnat.com>
1863
1864 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1865
f8d40ec8
JB
18662002-08-16 Joel Brobecker <brobecker@gnat.com>
1867
1868 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1869 signal, check whether we hit a breakpoint before checking for a
1870 single step breakpoint. Otherwise, GDB fails to notice that a
1871 breakpoint has been hit when stepping onto a breakpoint.
1872
63d022e0
KS
18732002-08-16 Keith Seitz <keiths@redhat.com>
1874
1875 * gdb-events.sh (clear_gdb_event_hooks): New function.
1876 * gdb-events.c: Regenerate.
1877 * gdb-events.h: Regenerate.
1878
6e31adb3
AC
18792002-08-16 Andrew Cagney <ac131313@redhat.com>
1880
1881 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1882 not_a_sw_breakpoint.
1883 * breakpoint.h (bpstat_stop_status): Add parameter names.
1884
c8189ed1
GS
18852002-08-16 Grace Sainsbury <graces@redhat.com>
1886
1887 * remote.c (remote_insert_hw_breakpoint)
1888 (remote_remove_hw_breakpoint): Fix calculation of length field
1889 for Z-packet.
1890
d05285fa
MS
18912002-08-15 Michael Snyder <msnyder@redhat.com>
1892
466d7106
MS
1893 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1894 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1895 (supply_fpregset): Ditto.
1896
d05285fa
MS
1897 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1898 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1899 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1900 (TARGET_READ_SP): Delete.
bf1f5b4c 1901 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1902 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1903 Delete.
1904 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1905 from macros to functions.
bf1f5b4c 1906
d05285fa
MS
1907 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1908 (mips_register_convertible, mips_register_convert_to_virtual,
1909 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1910 (mips_read_sp): New function.
1911 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1912 (mips_do_registers_info): Make static.
1913 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1914 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1915 (mips_register_convert_from_type, mips_register_convert_to_type):
1916 New functions.
1917 (mips_gdbarch_init): Set up function_start_offset,
1918 register_virtual_size, pc_in_sigtramp.
d05285fa 1919
e76f1f2e
AC
19202002-08-15 Andrew Cagney <ac131313@redhat.com>
1921
1922 * infcmd.c (vector_info): New function.
1923 (_initialize_infcmd): Add command "info vector".
1924 (print_vector_info): New function.
1925
1926 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1927 * gdbarch.h, gdbarch.c: Regenerate.
1928
4782dc19
AC
19292002-08-15 Andrew Cagney <ac131313@redhat.com>
1930
1931 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1932 ``print_all''. Only print vector registers when ``print_all''.
1933
23e3a7ac
AC
19342002-08-15 Andrew Cagney <ac131313@redhat.com>
1935
8e186fd6
AC
1936 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1937 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1938
23e3a7ac
AC
1939 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1940 Add `args' parameter.
1941 * gdbarch.h, gdbarch.c: Regenerate.
1942
1943 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1944
1945 * infcmd.c (float_info): Call print_float_info.
1946 (print_float_info): New function. By default, print the
1947 floating-point registers.
1948
1949 * arch-utils.h (default_print_float_info): Delete declaration.
1950 * arch-utils.c (default_print_float_info): Delete function.
1951
e0ca2bb9
MK
19522002-08-16 Mark Kettenis <kettenis@gnu.org>
1953
3f733acc
MK
1954 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1955 out define.
1956
7d8d2918
MK
1957 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1958 FRAME.
1959
1c7cc583
MK
1960 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1961 * configure.host: Make i[3456]86-*-aix host obsolete.
1962 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1963 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1964 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1965 config/i386/xm-i386aix.h: Make files obsolete.
1966 * i386aix-nat.c: Make file obsolete.
1967 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1968 (i386aix-nat.o): Make target obsolete.
1969
e0ca2bb9
MK
1970 * config/i386/nm-gnu.h: Removed.
1971 * config/i386/nm-i386gnu.h: New file.
1972 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1973 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1974 Moved here from ...
1975 * config/i386/tm-i386gnu.h: ... here. Removed.
1976 * config/i386/xm-i386gnu.h: Removed.
1977 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1978 (NAT_FILE): Set to nm-i386gnu.h.
1979 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1980 * i386-tdep.c: New file.
1981 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1982 (i386gnu-tdep.o): Specify dependencies.
1983
16057ec7 19842002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1985
6b99ee2e
MK
1986 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1987 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1988 Adjust a few comments to reflect reality a bit closer.
1989 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1990 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1991 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1992 target_insert_watchpoint, target_remove_watchpoint):
1993 Move defines to ...
1994 * config/i386/nm-i386sco5.h: ... here.
1995 (kernel_u_size): Add prototype. Improve a few comments and add
1996 protection against multiple inclusion.
1997
d9a6f65c
MK
1998 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1999 out define.
2000
047eff6a
MK
2001 * uw-thread.c (SP_ARG0): Define if not already defined.
2002 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2003
dcdb1290
MK
2004 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2005
5d2d0b2a
MK
2006 * config/i386/tm-i386.h: Don't include "regcache.h".
2007
61113f8b
MK
2008 * i387-tdep.h (i387_print_float_info): New prototype.
2009 * i387-tdep.c (print_i387_value, print_i387_ext,
2010 print_i387_status_word, print_i387_control_word): Add `struct
2011 ui_file *' argument and use it for output.
2012 (i387_print_float_info): Renamed from i387_float_info. Add
2013 `struct gdbarch *' and `struct ui_file *' arguments and use the
2014 latter for output.
2015 * i386-tdep.c: Include "i387-tdep.h".
2016 (i386_gdbarch_init): Set print_float_info.
2017 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2018 (FLOAT_INFO): Remove define.
2019
46e0f506
MS
20202002-08-13 Michael Snyder <msnyder@redhat.com>
2021
2022 * mips-tdep.c (mips_push_arguments): Rename to
2023 mips_eabi_push_arguments, and tune for EABI.
2024 (MIPS_REGS_HAVE_HOME_P): Delete.
2025 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2026 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2027 Delete references to mips_regs_have_home_p.
2028
409268de
KS
20292002-08-14 Keith Seitz <keiths@redhat.com>
2030
2031 * Makefile.in (install-gdbtk): Create insight plugin directory.
2032 Install plugins.tcl file.
2033
ffc6a242
KS
20342002-08-14 Keith Seitz <keiths@redhat.com>
2035
2036 * configure.in: Move SUBDIRS to near top of the file so that
2037 --enable options may add things to it.
2038 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2039 * configure: Regenerate.
2040
ebafbe83
MS
20412002-08-13 Michael Snyder <msnyder@redhat.com>
2042
2043 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2044 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2045 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2046
32f6f25d
AC
20472002-08-13 Andrew Cagney <ac131313@redhat.com>
2048
2049 * vax-tdep.c (vax_get_saved_register): Delete function.
2050 (vax_gdbarch_init): Update.
2051 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2052 (ns32k_gdbarch_init): Update.
2053 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2054 (alpha_gdbarch_init): Update.
2055
53826de9
AC
20562002-08-13 Andrew Cagney <cagney@redhat.com>
2057
2058 * regcache.c (init_regcache_descr): Overallocate the
2059 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2060 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2061 nr_raw_registers.
2062 (set_register_cached): Add range checking assertions. Use
2063 current_regcache.
2064
16057ec7 20652002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2066
2067 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2068 numbers for MMX registers.
2069
7b4c2dce
AC
20702002-08-13 Andrew Cagney <cagney@redhat.com>
2071
2072 * i386-tdep.c (i386_gdbarch_init): Use
2073 generic_unwind_get_saved_register.
2074
1e03ad20
KB
20752002-08-13 Kevin Buettner <kevinb@redhat.com>
2076
2077 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2078 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2079 target vector.
2080 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2081 Delete. Add comment regarding this now-deleted target method.
2082
548bcbec
SC
20832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2084
2085 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2086 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2087 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2088 real PC and the page number (if it's within the memory bank window).
2089 (m68hc11_pseudo_register_write): Likewise when saving.
2090 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2091 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2092 (m68hc11_register_raw_size): And use 32-bit for it.
2093 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2094 16K memory bank is used by the prog; also use the virtual pc.
2095
7df11f59
SC
20962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2097
2098 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2099 (m68hc11_gdbarch_init): Install it in gdbarch.
2100 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2101 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2102 (MSYMBOL_SIZE): New for documentation.
2103 (insn_return_kind): Enum to specify how a function returns.
2104 (frame_extra_info): Cleanup and record the return mode.
2105 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2106 register in address computation.
2107 (m68hc11_get_return_insn): New to obtain the return instruction used
2108 by the function.
2109 (m68hc11_frame_init_saved_regs): Take into account the return
2110 instruction used by the function for far and interrupt functions.
2111 (m68hc11_init_extra_frame_info): Take into account page register.
2112 (m68hc11_frame_args_address): Adjust according to the return mode.
2113 (show_regs): Print page register only when it's used.
2114
5706502a
SC
21152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2116
2117 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2118 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2119 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2120 registers.
2121 (m68hc11_register_raw_size): Likewise.
2122
28fc6740
AC
21232002-08-13 Andrew Cagney <cagney@redhat.com>
2124
2125 * i386-tdep.c (i386_register_name): Handle mmx registers.
2126 (mmx_regnum_p): New function.
2127 (i386_mmx_names): New array.
2128 (mmx_num_regs): New variable.
2129 (i386_pseudo_register_read): New function.
2130 (i386_pseudo_register_write): New function.
2131 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2132
2133 * regcache.c (regcache_raw_read_unsigned): New function.
2134 (regcache_raw_read_signed): New function.
2135 * regcache.h (regcache_raw_read_unsigned): Declare.
2136 (regcache_raw_read_signed): Declare.
2137
a378f419
AC
21382002-08-13 Andrew Cagney <cagney@redhat.com>
2139
2140 * regcache.c (regcache_raw_read_as_address): Delete function.
2141 (regcache_cooked_read_signed): New function.
2142 (regcache_cooked_read_unsigned): New function.
2143 * regcache.h (regcache_cooked_read_signed): Declare.
2144 (regcache_cooked_read_unsigned): Declare.
2145 (regcache_raw_read_as_address): Delete declaration.
2146
2147 * blockframe.c (generic_read_register_dummy): Use
2148 regcache_cooked_read_unsigned.
2149 * i386-tdep.c (i386_extract_struct_value_address): Use
2150 regcache_cooked_read_unsigned.
2151
81967506
SC
21522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2153
2154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2155 double sizes according to ELF ABI flags.
2156 (gdbarch_tdep): Record elf_flags.
2157
ffe1f3ee
SC
21582002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2159
2160 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2161 (m6812_prolog): They can appear in 68HC12 function prologue.
2162 (m68hc11_frame_chain): Cleanup.
2163
98216c5d
AC
21642002-08-12 Andrew Cagney <cagney@redhat.com>
2165
2166 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2167 declarations.
2168 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2169 (i386_linux_register_raw_size): Delete function.
2170 (i386_linux_init_abi): Update.
2171 * i386-tdep.c (i386_register_raw_size): Delete function.
2172 (i386_register_byte): Delete function.
2173 (i386_gdbarch_init): Update.
2174 (i386_register_size): Delete array.
2175 (i386_register_offset): Delete array.
2176
2177 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2178 (REGISTER_RAW_SIZE): Delete macro.
2179 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2180 (REGISTER_BYTE): Delete macro.
2181
3b19021e
AS
21822002-08-11 Aidan Skinner <aidan@velvet.net>
2183
2184 * ada-lang.c (ada_lookup_partial_symbol)
2185 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2186 prototype names so that grep ^func works properly.
2187
2188 * ada-lang.c (ada_array_element_type)
2189 (ada_lookup_partial_symbol): Fix typos in parameter list.
2190
2191 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2192 Fix prototype names so that grep ^func works properly.
2193
b063e7a2
AC
21942002-08-10 Andrew Cagney <cagney@redhat.com>
2195 Elena Zannoni <ezannoni@redhat.com>
2196 Martin M. Hunt <hunt@redhat.com>
2197
2198 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2199 (build_builtin_type_vec128i): Set the vector bit.
2200 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2201 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2202 (build_builtin_type_vec64): New function.
2203 (build_builtin_type_vec64i): New function.
2204 (build_gdbtypes): Initialize builtin_type_vec64 and
2205 builtin_type_vec64i.
2206
a7e3c2ad
AC
22072002-08-09 Andrew Cagney <cagney@redhat.com>
2208
2209 * regcache.c (regcache_dump): Compare the register offset
2210 with REGISTER_BYTE.
2211 * arch-utils.c (generic_register_byte): New function.
2212 * arch-utils.h (generic_register_byte): Declare.
2213 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2214 * gdbarch.h, gdbarch.c: Regenerate.
2215
af030b9a
AC
22162002-08-09 Andrew Cagney <cagney@redhat.com>
2217
2218 * regcache.c: Include "gdbcmd.h"
2219 (_initialize_regcache): Add commands "maintenance print
2220 registers", "maintenance print raw-registers" and "maintenance
2221 print cooked-registers".
2222 (enum regcache_dump_what): Define.
2223 (dump_endian_bytes): New function.
2224 (regcache_dump): New function.
2225 (regcache_print): New function.
2226 (maintenance_print_registers): New function.
2227 (maintenance_print_raw_registers): New function.
2228 (maintenance_print_cooked_registers): New function.
2229 * Makefile.in (regcache.o): Update dependencies.
2230
cb3d25d1
MS
22312002-08-09 Michael Snyder <msnyder@redhat.com>
2232
2233 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2234 (mips_push_arguments): Correct some comments. Use paddr_nz
2235 for printing addresses in debug output. Replace static
2236 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2237 (mips_n32n64_push_arguments): New function, cloned from
2238 mips_push_arguments and tuned for the n32/n64 ABI.
2239 (mips_push_register): Buffer needs dynamic allocation.
2240 (mips_print_register): Ditto.
2241 (do_gp_register_row): Ditto.
2242 (mips_store_return_value): Ditto.
2243 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2244
2163ab9d
DH
22452002-08-09 Don Howard <dhoward@redhat.com>
2246
2247 * memattr.c (mem_info_command): Print special case of upper bound
2248 as max CORE_ADDR + 1.
2249
b78bcb18
MS
22502002-08-08 Michael Snyder <msnyder@redhat.com>
2251
2252 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2253 returns structs by ref if they're too big to fit in two registers.
2254
ffabd70d
KB
22552002-08-09 Kevin Buettner <kevinb@redhat.com>
2256
2257 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2258 saved regs value.
2259 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2260 mips_find_saved_regs().
2261 (mips_pop_frame): Likewise.
2262
fbcdb4a3
KB
22632002-08-09 Kevin Buettner <kevinb@redhat.com>
2264
2265 * blockframe.c (frame_saved_regs_register_unwind): Revise
2266 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2267 frames are in use.
2268
3c3bea1c
GS
22692002-08-09 Grace Sainsbury <graces@redhat.com>
2270
2271 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2272 T-packets; the 'a' is not taken as a register number.
2273 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2274 (remote_stopped_data_address): New functions; add to target
2275 vector.
2276 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2277 prototypes to match other implementations of this
2278 function. replace integer argument with pointer -- the length
2279 field in the Z-packet is the length of what is pointed to or 1 if
2280 pointer is null. Add to target vector.
2281 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2282 target vector.
2283
2284 From Mark Salter:
2285 * remote.c (remote_wait): Add support to extract optional
2286 watchpoint information from T-packet. Ignore unrecognized
2287 optional info in T-packet.
2288 (remote_async_wait): Ditto.
2289
5d1d95de
CV
22902002-08-09 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * cli/cli-dump.c: Change fopen modes to use binary open modes
2293 as defined in include/fopen-bin.h throughout.
2294
c86b5b38
MS
22952002-08-08 Michael Snyder <msnyder@redhat.com>
2296
2297 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2298
b30590dc
KB
22992002-08-08 Kevin Buettner <kevinb@redhat.com>
2300
2301 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2302 assertion failure by returning early after a warning.
2303
498868ed
KB
23042002-08-08 Kevin Buettner <kevinb@redhat.com>
2305
2306 * mips-tdep.c (mips_find_saved_regs): Make static.
2307 (mips_frame_init_saved_regs): New function.
2308 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2309 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2310 (mips_find_saved_regs): Delete declaration.
2311
b2dd6311
GS
23122002-08-08 Grace Sainsbury <graces@redhat.com>
2313
3c3bea1c
GS
2314 * remote.c (remote_wait, remote_async_wait): Change
2315 thread_num from int to ULONGEST.
2316 (unpack_varlen_hex): Change result parameter from
2317 int * to ULONGEST *.
b2dd6311 2318
ea47855f
AC
23192002-08-08 Andrew Cagney <ac131313@redhat.com>
2320
2321 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2322 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2323 powerpc*-*-*.
2324 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2325
69db8bae
AC
23262002-08-08 Andrew Cagney <cagney@redhat.com>
2327
2328 * gcore.c (override_derive_stack_segment): Delete variable.
2329 (preempt_derive_stack_segment): Delete function.
2330 (derive_stack_segment): Delete function.
2331 (default_derive_stack_segment): Renamed to derive_stack_segment.
2332 (override_derive_heap_segment): Delete variable.
2333 (preempt_derive_heap_segment): Delete function.
2334 (derive_heap_segment): Delete function.
2335 (default_derive_heap_segment): Rename to derive_heap_segment.
2336
cb811fe7
MS
23372002-08-06 Michael Snyder <msnyder@redhat.com>
2338
2339 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2340 * mips-tdep.c (mips_EABI_use_struct_convention,
2341 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2342 New functions. (mips_use_struct_convention): Delete.
2343 (mips_gdbarch_init): set use_gdbarch_convention.
2344
8b389c40
MS
23452002-08-06 Michael Snyder <msnyder@redhat.com>
2346
2347 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2348 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2349 mips_o32_reg_struct_has_addr): New functions.
2350 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2351
5c27f28a
AC
23522002-08-07 Andrew Cagney <ac131313@redhat.com>
2353
2354 * regcache.c (pseudo_register): Delete function.
2355 (fetch_register): Delete function.
2356 (store_register): Delete function.
2357 (regcache_raw_read, legacy_read_register_gen): Use
2358 target_fetch_registers instead of fetch_register.
2359 (legacy_write_register_gen, regcache_raw_write): Use
2360 target_store_register instead of store_register.
2361 (write_register_bytes): Ditto.
2362
2363 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2364 (STORE_PSEUDO_REGISTER): Delete.
2365 * gdbarch.h, gdbarch.c: Regenerate.
2366
5b331675
CV
23672002-08-06 Corinna Vinschen <vinschen@redhat.com>
2368
2369 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2370 write dump file binary.
2371
6acdf5c7
MS
23722002-08-05 Michael Snyder <msnyder@redhat.com>
2373
2374 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2375 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2376 (mips_gdbarch_init): Set N32 target to be mips64.
2377
b2f01c35
KB
23782002-08-06 Kevin Buettner <kevinb@redhat.com>
2379
2380 * frame.c (find_saved_register): Break out of loop once saved
2381 register address is found. Don't mention sparc in loop comment
2382 anymore.
2383
63db5580
KB
23842002-08-06 Kevin Buettner <kevinb@redhat.com>
2385
2386 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2387 mips_default_saved_regsize to 8.
2388
5e34e75e
AC
23892002-08-06 Andrew Cagney <ac131313@redhat.com>
2390
2391 * gcore.c: Do not include <sys/procfs.h>.
2392 * Makefile.in (gcore.o): Update dependencies.
2393
eb4c54a2
AC
23942002-08-06 Andrew Cagney <cagney@redhat.com>
2395
2396 * configure.tgt: Make arc-*-* obsolete.
2397 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2398 * MAINTAINERS: Make arc-elf obsolete.
2399 * arc-tdep.c: Make file obsolete.
2400 * config/arc/arc.mt: Ditto.
2401 * config/arc/tm-arc.h: Ditto.
2402
ced15480
TR
24032002-08-05 Theodore A. Roth <troth@verinet.com>
2404
c1bab85b 2405 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2406
b4743822
AC
24072002-08-05 Andrew Cagney <ac131313@redhat.com>
2408
2409 * mcore-tdep.c (mcore_gdbarch_init): Use
2410 generic_unwind_get_saved_register instead of
2411 generic_get_saved_register.
2412 * v850-tdep.c (v850_gdbarch_init): Ditto.
2413 * frv-tdep.c (frv_gdbarch_init): Ditto.
2414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2415 * s390-tdep.c (s390_gdbarch_init): Ditto.
2416 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2417 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2418 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2419
3956d554
JB
24202002-08-05 Joel Brobecker <brobecker@gnat.com>
2421
2422 * objfiles.h: Add missing #include "symfile.h"
2423
2424 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2425
8249c0d6
AC
24262002-08-04 Andrew Cagney <ac131313@redhat.com>
2427
2428 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2429 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2430 of FIELD_BITSIZE.
2431
b9d14705
DJ
24322002-08-04 Daniel Jacobowitz <drow@mvista.com>
2433
2434 * NEWS: Cleanup and nitpick.
2435
dd73b9bb
AC
24362002-08-03 Andrew Cagney <ac131313@redhat.com>
2437
2438 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2439
043a27f8
AC
24402002-08-03 Andrew Cagney <ac131313@redhat.com>
2441
2442 * Makefile.in (gdbtk-bp.o): Update dependencies.
2443 (gdbtk-register.o): Ditto.
2444 (gdbtk-varobj.o): Ditto.
2445
46ce284d
AC
24462002-08-03 Andrew Cagney <cagney@redhat.com>
2447
2448 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2449 m68hc11_fetch_pseudo_register.
2450 (m68hc11_pseudo_register_write): Replace
2451 m68hc11_store_pseudo_register.
2452 (m68hc11_gdbarch_init): Update.
2453
b66d6d2e
AC
2454Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2455
2456 * gdbarch.sh: Include "gdb_string.h".
2457 * gdbarch.c: Regenerate.
2458
2459 * regcache.c: Include "gdb_string.h".
2460 * ax-general.c: Ditto.
2461 * varobj.c: Ditto.
2462 * std-regs.c: Ditto.
2463 * fbsd-proc.c: Ditto.
2464 * thread.c: Ditto.
2465
2466 * Makefile.in (regcache.o): Update dependencies.
2467 (thread.o, gdbarch.o): Ditto.
2468 (ax-general.o, gdbarch.o): Ditto.
2469 (varobj.o, std-regs.o): Ditto.
2470 (fbsd-proc.o): Specify dependencies.
2471
29e1842b
AC
24722002-08-02 Andrew Cagney <cagney@redhat.com>
2473
2474 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2475 regnum.
2476 (regcache_cooked_write): Ditto.
2477
68365089
AC
24782002-08-02 Andrew Cagney <ac131313@redhat.com>
2479
2480 * regcache.c (regcache_cooked_read): New function.
2481 (regcache_cooked_write): New function.
2482 (read_register_gen): Rewrite using regcache_cooked_read.
2483 (write_register_gen): Rewrite using regcache_cooked_write.
2484
2485 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2486 Declare.
2487
d8124050
AC
24882002-08-02 Andrew Cagney <cagney@redhat.com>
2489
2490 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2491 Replace the architecture methods register_read and register_write.
2492 * gdbarch.h, gdbarch.c: Regenerate.
2493 * regcache.c (init_regcache_descr): Update.
2494 (read_register_gen): Update.
2495 (write_register_gen): Update.
2496 (supply_register): Update comment.
2497
2498 * sh-tdep.c (sh_gdbarch_init): Update.
2499 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2500 `regcache' and `gdbarch' parameters. Make `buffer' a void
2501 pointer. Update code.
2502 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2503 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2504 void pointer. Update code.
2505 (sh64_register_write): Delete.
2506 (sh4_register_read): Delete.
2507 (sh64_register_read): Delete.
2508 (sh4_register_write): Delete.
2509 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2510 void pointer, `to' parameter a void pointer.
2511 (sh_sh64_register_convert_to_raw): Ditto.
2512
a6425924
KB
25132002-08-01 Kevin Buettner <kevinb@redhat.com>
2514
2515 * mips-tdep.c (mips_register_virtual_type): Use architecture
2516 invariant return values.
2517
ff5922b5
AC
25182002-08-01 Andrew Cagney <cagney@redhat.com>
2519
2520 * linux-proc.c: Include "gdb_string.h".
2521 * Makefile.in (linux-proc.o): Update dependency list.
2522
32a6503c
KB
25232002-08-01 Kevin Buettner <kevinb@redhat.com>
2524
2525 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2526 comment.
2527
ccaa32c7
GS
25282002-08-01 Grace Sainsbury <graces@redhat.com>
2529
2530 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2531 to_insert_watchpoint, to_remove_watchpoint,
2532 to_stopped_by_watchpoint, to_stopped_data_address,
2533 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2534 target vecctor. Define their corresponding macros so they call
2535 them.
2536
2537 * target.c: Add default and debug versions of for
2538 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2539 to_insert_watchpoint, to_remove_watchpoint,
2540 to_stopped_by_watchpoint, to_stopped_data_address,
2541 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2542
78fde5f8
KB
25432002-08-01 Kevin Buettner <kevinb@redhat.com>
2544
2545 * mips-tdep.c (mips_register_virtual_type): New function.
2546 (mips_gdbarch_init): Register mips_register_virtual_type()
2547 with gdbarch machinery.
2548 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2549 this file instead of tm-bigmips.h.
2550 (MIPS_REGSIZE): Delete this macro.
2551 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2552 multiarch version in mips-tdep.c will be found.
2553
db034ac5
AC
25542002-08-01 Andrew Cagney <cagney@redhat.com>
2555
2556 * NEWS: Menion that CHILL has been made obsolete.
2557
2558 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2559 * stabsread.c (read_range_type): Ditto.
2560 * gdbtypes.h: Ditto.
2561 * language.c (binop_type_check): Ditto.
2562 (binop_result_type): Ditto.
2563 (integral_type): Ditto.
2564 (character_type): Ditto.
2565 (string_type): Ditto.
2566 (boolean_type): Ditto.
2567 (structured_type): Ditto.
2568 (lang_bool_type): Ditto.
2569 (binop_type_check): Ditto.
2570 * language.h (_LANG_chill): Ditto.
2571 * dwarfread.c (set_cu_language): Ditto.
2572 * dwarfread.c (CHILL_PRODUCER): Ditto.
2573 * dwarfread.c (handle_producer): Ditto.
2574 * expression.h (enum exp_opcode): Ditto.
2575 * eval.c: Ditto for comments.
2576 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2577 * expprint.c (print_subexp): Ditto.
2578 (print_subexp): Ditto.
2579 * valops.c (value_cast): Ditto.
2580 (search_struct_field): Ditto.
2581 * value.h (COERCE_VARYING_ARRAY): Ditto.
2582 * symfile.c (init_filename_language_table): Ditto.
2583 (add_psymbol_with_dem_name_to_list): Ditto.
2584 * valarith.c (value_binop): Ditto.
2585 (value_neg): Ditto.
2586 * valops.c (value_slice): Ditto.
2587 * symtab.h (union language_specific): Ditto.
2588 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2589 (SYMBOL_DEMANGLED_NAME): Ditto.
2590 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2591 * defs.h (enum language): Ditto.
2592 * symtab.c (got_symtab): Ditto.
2593 * utils.c (fprintf_symbol_filtered): Ditto.
2594
2595 * ch-typeprint.c: Make file obsolete.
2596 * ch-valprint.c: Make file obsolete.
2597 * ch-lang.h: Make file obsolete.
2598 * ch-exp.c: Make file obsolete.
2599 * ch-lang.c: Make file obsolete.
2600
2601 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2602 CHILL_LIB.
2603 (TARGET_FLAGS_TO_PASS): Ditto.
2604 (CHILLFLAGS): Obsolete.
2605 (CHILL): Obsolete.
2606 (CHILL_FOR_TARGET): Obsolete.
2607 (CHILL_LIB): Obsolete.
2608 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2609 ch-valprint.c.
2610 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2611 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2612 ch-lang.o.
2613 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2614 targets.
2615
8aaf0b47
JB
26162002-07-31 Joel Brobecker <brobecker@gnat.com>
2617
2618 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2619 This does not change anything at the moment, but will be helpful
2620 later when full Ada support is integrated.
2621
f3a7b3a5
KB
26222002-07-31 Kevin Buettner <kevinb@redhat.com>
2623
2624 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2625 help message.
2626
fb850278
KB
26272002-07-31 Kevin Buettner <kevinb@redhat.com>
2628
2629 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2630 and save it in a local variable. Use variable in later test.
2631
e3bddbfa
KB
26322002-07-31 Kevin Buettner <kevinb@redhat.com>
2633
2634 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2635 test. (Thanks to Daniel Jacobowitz.)
2636
28d169de
KB
26372002-07-31 Kevin Buettner <kevinb@redhat.com>
2638
2639 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2640 (mips_abi_strings): Add "n64".
2641 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2642
7fe7e44e
KB
26432002-07-31 Kevin Buettner <kevinb@redhat.com>
2644
2645 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2646 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2647
c6caf090
KB
26482002-07-31 Kevin Buettner <kevinb@redhat.com>
2649
2650 * utils.c (host_pointer_to_address, address_to_host_pointer):
2651 Use gdb_assert() instead of explicit call to internal_error().
2652
c41669e0
KB
26532002-07-30 Kevin Buettner <kevinb@redhat.com>
2654
2655 * Makefile.in (rs6000-nat.o): Update dependencies.
2656
2657 From Nicholas Duffek:
2658 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2659 (aix-thread.o): New rule.
2660 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2661 * config/powerpc/aix432.mh: New file.
2662
2fda4977
DJ
26632002-07-30 Daniel Jacobowitz <drow@mvista.com>
2664
2665 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2666 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2667 (fetch_core_registers, ppc_linux_supply_gregset)
2668 (ppc_linux_supply_fpregset): New functions.
2669 (ppc_linux_regset_core_fns): New.
2670 (_initialize_ppc_linux_tdep): Call add_core_fns.
2671 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2672 and ppc_linux_supply_gregset.
2673 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2674 (supply_fpregset): Call ppc_linux_supply_fpregset.
2675 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2676 corelow.o.
2677 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2678
729051e6
DJ
26792002-07-30 Daniel Jacobowitz <drow@mvista.com>
2680
2681 * symtab.c (lookup_symbol): Demangle before lowercasing.
2682
5f8a3188
AC
26832002-07-30 Andrew Cagney <ac131313@redhat.com>
2684
2685 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2686 declaration.
2687 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2688 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2689 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2690 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2691 "gdb_string.h".
2692 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2693 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2694 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2695 (avr-tdep.o, mon960-rom.o): Ditto.
2696 (aout_stabs_gnu_h): Define.
2697 (symtab_h): Remove $(gdb_obstack_h).
2698
67f07146
JB
26992002-07-30 Jim Blandy <jimb@redhat.com>
2700
2701 Patch from David Carlton <carlton@math.stanford.edu>:
2702 * gdbinit.in: Move the `dir' commands that add GDB's own source
2703 directory to the search path to the end, so that the `gdb' source
2704 directory will be searched first.
2705
04ea0df1
AC
27062002-07-29 Andrew Cagney <ac131313@redhat.com>
2707
2708 * gdb_obstack.h: New file.
2709 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2710 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2711 * objfiles.h: Include "gdb_obstack.h".
2712 * Makefile.in (gdb_obstack_h): Define.
2713 (symtab_h): Add $(gdb_obstack_h).
2714 (objfiles_h): Add $(gdb_obstack_h).
2715
2716 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2717 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2718 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2719 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2720 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2721 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2722 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2723 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2724
2725 * Makefile.in (bcache.o): Update dependencies.
2726 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2727 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2728 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2729 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2730 (stabsread.o, symfile.o, symmisc.o): Ditto.
2731 (symtab.o, typeprint.o, macroexp.o): Ditto.
2732 (macrotab.o, mdebugread.o): Ditto.
2733 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2734 (coff_ecoff_h, aout_aout64_h): Define.
2735 (aout_stabs_gnu_h, libaout_h): Define.
2736
d138e37a
AC
27372002-07-29 Andrew Cagney <cagney@redhat.com>
2738
2739 * regcache.c (struct regcache_descr): Rename nr_registers to
2740 nr_cooked_registers. Revise comments describing the structure
2741 member fields.
2742 (init_regcache_descr): Update.
2743 (init_legacy_regcache_descr): Update.
2744 (read_register_gen, write_register_gen): When a cooked register in
2745 the raw register range, directly access the value from the raw
2746 register cache.
2747
460e6ec3
AC
27482002-07-29 Andrew Cagney <ac131313@redhat.com>
2749
2750 * z8k-tdep.c: Do not include "obstack.h".
2751 * h8300-tdep.c, h8500-tdep.c: Ditto.
2752 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2753 * valprint.c, v850-tdep.c: Ditto.
2754 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2755 * mn10200-tdep.c: Ditto.
2756
2757 * Makefile.in (z8k-tdep.o): Update dependencies.
2758 (m68hc11-tdep.o, valprint.o): Ditto.
2759 (v850-tdep.o, d10v-tdep.o): Ditto.
2760 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2761 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2762 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2763 (sh_opc_h, gdb_sim_sh_h): Define.
2764 (elf_sh_h, elf_bfd_h): Define.
2765 (opcode_m68hc11_h): Define.
2766 (OPCODES_SRC, OPCODES_DIR): define.
2767 (OPCODES): Use $(OPCODES_DIR).
2768 (gdb_sim_d10v_h): Rename sim_d10v_h.
2769 (gdb_sim_arm_h): Rename sim_arm_h.
2770
790c9cf0
KB
27712002-07-26 Kevin Buettner <kevinb@redhat.com>
2772
2773 * utils.c (host_pointer_to_address, address_to_host_pointer):
2774 Change internal_error() message to indicate function responsible
2775 for the error.
2776
9647fa49
KB
27772002-07-26 Kevin Buettner <kevinb@redhat.com>
2778
2779 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2780 calls to local_hex_string_custom().
2781
dabbe2c0
KB
27822002-07-26 Kevin Buettner <kevinb@redhat.com>
2783
2784 * irix5-nat.c: Move IRIX shared library support from here...
2785 * solib-irix.c: ...to here. Revised substantially to work with
2786 generic solib framework.
2787
b96d0a4e
KB
2788 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2789 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2790 * mips-irix-tdep.c: New file.
2791
313fb2f6
KB
2792 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2793 (mips-irix-tdep.o, solib-irix.o): New rules.
2794 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2795 solib-irix.o.
2796 * config/mips/irix6.mt (TDEPFILES): Likewise.
2797 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2798
ab2eaf26
KB
27992002-07-26 Kevin Buettner <kevinb@redhat.com>
2800
177e4768 2801 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2802 disabled (via ``#if 0'') includes.
2803
7244546a
KB
28042002-07-26 Kevin Buettner <kevinb@redhat.com>
2805
2806 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2807 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2808 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2809 Add support for the fpscr register.
2810 * rs6000-nat.c (regmap, fetch_inferior_registers)
2811 (store_inferior_registers, fetch_core_registers): Likewise.
2812
dd7be90a
KB
28132002-07-26 Kevin Buettner <kevinb@redhat.com>
2814
2815 * rs6000-nat.c (language.h): Include.
2816 (special_regs): Delete this array.
2817 (regmap): New function.
2818 (fetch_register, store_register): Use regmap() to map gdb
2819 register numbers to ptrace register numbers. Also, use
2820 outputs from regmap() to make decisions regarding type of
2821 ptrace() call to make. In particular, don't compare against
2822 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2823 (fetch_inferior_registers, store_inferior_registers): Where
2824 possible, obtain register numbers from tdep struct. Don't
2825 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2826 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2827 (LAST_UISA_SP_REGNUM): Delete.
2828
11bf77db
KB
28292002-07-25 Kevin Buettner <kevinb@redhat.com>
2830
2831 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2832 (fetch_registers, store_register, fetch_core_registers): Don't
2833 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2834 regcache_collect() as appropriate.
2835 (find_toc_address): Format hex address with local_hex_string().
2836
06afebeb
AC
28372002-07-25 Andrew Cagney <ac131313@redhat.com>
2838
2839 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2840 bfd/elf32-frv.c.
2841
8c554d79
TT
28422002-07-24 Tom Tromey <tromey@redhat.com>
2843
2844 * jv-exp.y: Marked all strings with _().
2845 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2846 internal_error.
2847 (MethodInvocation, CastExpression, parse_number, yyerror,
2848 java_type_from_name, push_expression_name, yylex): Typo fixes.
2849
e4c242d9
DJ
28502002-07-24 Daniel Jacobowitz <drow@mvista.com>
2851
2852 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2853 (tee_file_flush, tee_file_write, tee_file_fputs)
2854 (tee_file_isatty): New.
2855 * ui-file.h (tee_file_new): Add prototype.
2856
ebf56fd3
AS
28572002-07-24 Aidan Skinner <aidan@velvet.net>
2858
2859 * ada-lang.c: Change k&r style function definitions to prototyped
2860 form.
2861 * ada-typeprint.c: Change k&r style function definitions to prototyped
2862 form.
2863 * ada-valprint.c: Change k&r style function definitions to prototyped
2864 form.
2865
7fb623f7
AC
28662002-07-24 Andrew Cagney <cagney@redhat.com>
2867
2868 * README: Remove reference to remote-bug.
2869 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2870 remote-bug.c.
2871 (m88k-nat.o): Delete rule.
2872 (m88k-tdep.o): Delete rule.
2873 (remote-bug.o): Delete rule.
2874 * MAINTAINERS: Mark as obsolete.
2875 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2876 * m88k-tdep.c: Make file obsolete.
2877 * config/m88k/m88k.mh: Ditto.
2878 * config/m88k/delta88v4.mh: Ditto.
2879 * config/m88k/delta88v4.mt: Ditto.
2880 * config/m88k/delta88.mt: Ditto.
2881 * config/m88k/delta88.mh: Ditto.
2882 * remote-bug.c: Ditto.
2883 * config/m88k/tm-delta88.h: Ditto.
2884 * config/m88k/nm-delta88v4.h: Ditto.
2885 * config/m88k/xm-delta88.h: Ditto.
2886 * config/m88k/xm-dgux.h: Ditto.
2887 * config/m88k/tm-m88k.h: Ditto.
2888 * config/m88k/nm-m88k.h: Ditto.
2889 * config/m88k/tm-delta88v4.h: Ditto.
2890 * m88k-nat.c: Ditto.
2891 * cxux-nat.c: Ditto.
2892 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2893 and m88*-*-* obsolete.
2894 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2895 m88*-*-* obsolete.
2896
37611a2b
AC
28972002-07-24 Andrew Cagney <cagney@redhat.com>
2898
2899 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2900 constant. Same for local pointer variables.
2901 (extract_signed_integer): Ditto.
2902 * defs.h (extract_unsigned_integer): Update.
2903 (extract_signed_integer): Update.
2904
1aaa5f99
AC
29052002-07-24 Andrew Cagney <cagney@redhat.com>
2906
2907 * regcache.c (regcache_raw_write): Change buf parameter to a
2908 constant void pointer.
2909 (regcache_raw_read): Change buf parameter to a void pointer.
2910 (legacy_write_register_gen): Change myaddr parameter a constant
2911 void pointer.
2912 (supply_register): Change val parameter to a const void pointer.
2913 * regcache.h (regcache_raw_write): Update declaration.
2914 (regcache_raw_read): Update declaration.
2915 (supply_register): Update declaration.
2916
b4f5539f
TT
29172002-07-24 Tom Tromey <tromey@redhat.com>
2918
2919 * defs.h (gdb_readline_wrapper): Declare.
2920 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2921 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2922 * top.c (gdb_readline_wrapper): New function.
2923 (command_line_input): Use it.
2924
0818c12a
AC
29252002-07-24 Andrew Cagney <cagney@redhat.com>
2926
2927 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2928 regcache_read and regcache_write.
2929 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2930 * regcache.c: Update.
2931 * sh-tdep.c (sh64_push_arguments): Update comment.
2932 (sh_pseudo_register_read): Update.
2933 (sh_pseudo_register_write): Update.
2934 (sh4_register_read): Update.
2935 (sh4_register_write): Update.
2936 (sh64_pseudo_register_read): Update.
2937 (sh64_pseudo_register_write): Update.
2938 (sh64_register_read): Update.
2939 (sh64_register_write): Update.
2940 * i386-tdep.c (i386_extract_return_value): Update.
2941 (i386_extract_struct_value_address): Update.
2942 (i386_extract_return_value): Update.
2943 * blockframe.c (generic_read_register_dummy): Update.
2944 (generic_call_dummy_register_unwind): Update
2945 * infrun.c (write_inferior_status_register): Update.
2946
f7321c06
JB
29472002-07-23 Jim Blandy <jimb@redhat.com>
2948
2949 * parser-defs.h (expression_context_pc): Make this extern.
2950 (Thanks to Michael Snyder.)
2951
2037aebb
AC
29522002-07-23 Andrew Cagney <ac131313@redhat.com>
2953
2954 GDB 5.2.1 released from 5.2 branch.
2955 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2956 * README: Update to mention 5.2.1.
2957
66504d44
MS
29582002-07-23 Mark Salter <msalter@redhat.com>
2959
2960 * remote.c (remote_read_bytes): Fix check for error.
2961
27bae383
KB
29622002-07-22 Kevin Buettner <kevinb@redhat.com>
2963
2964 * aix-thread.c (language.h): Include.
2965 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2966 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2967 Print newlines at end of debug messages.
2968 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2969 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2970
29712002-07-22 Kevin Buettner <kevinb@redhat.com>
2972
2973 * aix-thread.c (ppc-tdep.h): Include.
2974 (special_register_p): New function.
2975 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2976 (store_regs_user_thread): Use register number information from
2977 gdbarch_tdep struct instead of hardcoded offsets relative to
2978 FIRST_UISA_SP_REGNUM.
2979 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2980 special_register_p() instead of using FPLAST_REGNUM and
2981 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2982 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2983 will be MQ's register number.
2984
29852002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2986
2987 * aix-thread.c (ops): Rename to aix_thread_ops.
2988 (base_ops): Rename to base_target.
2989 (ops_attach): Rename to aix_thread_attach.
2990 (ops_detach): Rename to aix_thread_detach.
2991 (ops_resume): Rename to aix_thread_detach.
2992 (ops_wait): Rename to aix_thread_wait.
2993 (ops_kill): Rename to aix_thread_kill.
2994 (init_ops): Rename to init_aix_thread_ops.
2995 (ops_fetch_register): Rename to aix_thread_fetch_register.
2996 (ops_store_register): Rename to aix_thread_store_register.
2997 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2998 (ops_thread_alive): Rename to aix_thread_thread_alive.
2999 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3000 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3001 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3002 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3003 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3004 (store_regs_lib): Rename to store_regs_user_thread.
3005 (store_regs_kern): Rename to store_regs_kernel_thread.
3006
27bae383 30072002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3008
3009 * aix-thread.c (ops_prepare_to_store): Eliminate.
3010 (init_ops): Don't initialize ops.prepare_to_store.
3011 (store_regs_kern): Pre-fetch register buffers from child,
3012 because some registers may not be in the cache. Copy
3013 regs from register cache only if they are cached.
3014 (store_regs_lib): Copy regs from register cache only
3015 if they are cached.
3016 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3017 fill_gprs64): Ditto.
3018
61c5da0b
KB
30192002-07-22 Kevin Buettner <kevinb@redhat.com>
3020
3021 * aix-thread.c (gdb_assert.h): Include.
3022 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3023 register sizes (from register cache) match size of buffer holding
3024 register data.
3025 (fill_sprs32): Change parameter types to match those in the ptrace()
3026 buffer.
3027 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3028 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3029
30302002-07-22 Michael Snyder <msnyder@redhat.com>
3031
3032 * aix-thread.c (supply_sprs64): Cosmetic change.
3033 (supply_sprs32): Cosmetic change.
3034 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3035 (fill_sprs64): Use regcache_collect instead of read_register.
3036 (store_regs_lib): Use regcache_collect instead of
3037 read_register. Use fill_sprs32 instead of fill_sprs64,
3038 if debugging a 32-bit architecture.
3039 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3040 out of the register cache, instead of passing a pointer into
3041 the register cache directly to ptrace. Use regcache_collect
3042 insteaad of read_register.
3043 (ops_prepare_to_store): Use target_read_registers instead
3044 of read_register_bytes.
3045
36479eb1
AS
30462002-07-20 Aidan Skinner <aidan@velvet.net>
3047
3048 * MAINTAINERS: Add self under write after approval.
3049
80ae6ee2
AS
30502002-07-20 Aidan Skinner <aidan@velvet.net>
3051
3052 * ada-tasks.c: Change k&r style function definitions to prototyped
3053 form.
3054
8a8ab2b9
AC
30552002-07-19 Andrew Cagney <ac131313@redhat.com>
3056
3057 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3058 * x86-64-tdep.c: Include "objfiles.h".
3059 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3060 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3061
fb16b900
ML
30622002-07-17 Michal Ludvig <michal@suse.cz>
3063
3064 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3065 (update_context): Initialise cfa variable.
3066
0fe7bf7b
MS
30672002-07-17 Michael Snyder <msnyder@redhat.com>
3068
3069 * aix-thread.c: Shorten some long lines.
3070 Bring comments into line with code spec.
3071
488f131b
JB
30722002-07-18 Joel Brobecker <brobecker@gnat.com>
3073
3074 * infrun.c: Re-indent using gdb_indent.sh.
3075
46c415d2
JB
30762002-07-18 Joel Brobecker <brobecker@gnat.com>
3077
3078 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3079 Leave the indentation temporarily untouched, to minimize the diffs.
3080
cdecafbe
EZ
30812002-07-18 Elena Zannoni <ezannoni@redhat.com>
3082
3083 * stabsread.c: Make os9k sections of the code obsolete,
3084 for real this time.
3085 * stabsread.h: Make os9k sections of the code obsolete.
3086
7b6aa020
ML
30872002-07-18 Michal Ludvig <mludvig@suse.cz>
3088
09ec9b38
ML
3089 * linux-low.c (regsets_store_inferior_registers): Add free()
3090 at the end of a loop to prevent memory leak.
3091 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3092 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3093 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3094 line a comment.
4894ac5d 3095 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3096
233282cd
JB
30972002-07-17 Jim Blandy <jimb@redhat.com>
3098
3099 * macrocmd.c (info_macro_command): Remove newline from error
3100 message.
3101
7b6aa020 31022002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3103
3104 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3105 (sh_gdbarch_init): Use it for sh-dsp.
3106
f7ef9339
KB
31072002-07-16 Kevin Buettner <kevinb@redhat.com>
3108
3109 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3110 64-bit DWARF2 format.
3111
8dd72958
JB
31122002-07-16 Joel Brobecker <brobecker@gnat.com>
3113
3114 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3115 <sys/proc.h> when not available.
3116
a99a9e1b
AC
31172002-07-16 Andrew Cagney <ac131313@redhat.com>
3118
3119 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3120 * stabsread.c: Make os9k sections of the code obsolete.
3121 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3122 * config/i386/i386os9k.mt: Make file obsolete.
3123 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3124 (COMMON_OBS): Remove os9kread.o
3125 (SFILES): Remove os9kread.c.
3126 (os9kread.o, remote-os9k.o): Make target obsolete.
3127 * remote-os9k.c: Make file obsolete.
3128 * os9kread.c: Make file obsolete.
3129 * Makefile.in
3130
7a3085c1
AC
31312002-07-16 Andrew Cagney <ac131313@redhat.com>
3132
3133 * NEWS: Mention that the FR30 has been made obsolete.
3134 * fr30-tdep.c: Make file obsolete.
3135 * config/fr30/tm-fr30.h: Ditto.
3136 * config/fr30/fr30.mt: Ditto.
3137 * configure.tgt: Make fr30-*-elf obsolete.
3138 * MAINTAINERS: Make fr30-elf obsolete.
3139
28a93f5a
PM
31402002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3141
3142 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3143 found is not inside a section.
3144
be006b8b
KB
31452002-07-15 Kevin Buettner <kevinb@redhat.com>
3146
3147 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3148 strerror().
3149 (pdc_realloc): Use xrealloc() instead of realloc().
3150
14fa3751
KB
31512002-07-15 Kevin Buettner <kevinb@redhat.com>
3152
3153 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3154 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3155 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3156 macros.
3157
42cc437f
KB
31582002-07-15 Kevin Buettner <kevinb@redhat.com>
3159
3160 * aix-thread.c (ptrace_check): Eliminate goto.
3161 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3162 problem.
3163
8e2c28d4
KB
31642002-07-15 Kevin Buettner <kevinb@redhat.com>
3165
3166 * aix-thread.c (gdbcmd.h): Include.
3167 (DEBUG, DBG, DBG2, dbg): Eliminate.
3168 (debug_aix_thread): New static global.
3169 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3170 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3171 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3172 invocations to DBG and DBG2 macros to test against
3173 ``debug_aix_thread'' and call fprintf_unfiltered().
3174 (_initialize_aix_thread): Add new command "set debug aix-thread".
3175
30413464
AC
31762002-07-15 Andrew Cagney <ac131313@redhat.com>
3177
3178 From Gerhard Tonn <TON@de.ibm.com>:
3179 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3180 instead of supply_register.
3181
7c43edc1
AC
31822002-07-15 Andrew Cagney <ac131313@redhat.com>
3183
3184 * dwarf2cfi.c: Include "gdb_assert.h".
3185 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3186 non-NULL.
3187 (update_context): Do not use __func__. Add missing ``break''.
3188 (update_context): Do not use __func__.
3189
9364a0ef
EZ
31902002-07-15 Elena Zannoni <ezannoni@redhat.com>
3191
3192 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3193 and its setting. Set gdbarch instruction printing functions
3194 directly. For non-rs6000 case use new function
3195 gdb_print_insn_powerpc.
3196 (gdb_print_insn_powerpc): New function.
3197
3fbeef0b
AC
31982002-07-13 Andrew Cagney <ac131313@redhat.com>
3199
92eb23c5 3200 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3201 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3202 * configure.tgt: Mark d30v-*-* as obsolete.
3203 * d30v-tdep.c: Mark file as obsolete.
3204 * config/d30v/d30v.mt: Ditto.
3205 * config/d30v/tm-d30v.h: Ditto.
3206
aacb1f0a
AS
32072002-07-13 Aidan Skinner <aidan@velvet.net>
3208
3209 * ada-tasks.c (add_task_entry): replace calls to
3210 malloc() with xmalloc
3211 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3212
3213 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3214 ada_finish_decode_line_1, all_sals_for_line
3215 ada_breakpoint_rewrite): replace calls to free() with xfree()
3216
c11d79f2
KB
32172002-07-12 Kevin Buettner <kevinb@redhat.com>
3218
3219 From Nicholas Duffek (with minor changes by Martin Hunt,
3220 Louis Hamilton, and Kevin Buettner):
3221 * aix-thread.c: New file.
3222
8e19ed76
PS
32232002-07-12 Petr Sorfa <petrs@caldera.com>
3224
3225 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3226 complaint for invalid attribute class or form.
3227 (read_func_scope): DW_AT_frame_base
3228 better handling of DW_AT_block*.
3229 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3230 better handling of DW_AT_block*.
3231 (read_common_block): DW_AT_location
3232 better handling of DW_AT_block*.
3233 (read_partial_die): DW_AT_location better handling
3234 of DW_AT_block*.
3235 (new_symbol): DW_AT_external better handling of
3236 DW_AT_block*. Proper initialization of variable
3237 "addr".
3238 (attr_form_is_block): New function that returns true
3239 if the attribute's form is of DW_FORM_block*.
3240
295401f7
DJ
32412002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3242
3243 * valops.c (find_method_list): Remove comment about
3244 removed STATIC_MEMFUNCP argument.
3245 (value_find_oload_method_list): Likewise.
3246
e42dc924
KB
32472002-07-12 Kevin Buettner <kevinb@redhat.com>
3248
3249 From Nicholas Duffek:
3250 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3251 target_new_objfile_hook.
3252
6904b546
KB
32532002-07-12 Kevin Buettner <kevinb@redhat.com>
3254
3255 From Nicholas Duffek:
3256 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3257 csect.
3258
53fe9346
AC
32592002-07-12 Andrew Cagney <cagney@redhat.com>
3260
3261 * MAINTAINERS: Mention --enable-sim-build-warnings.
3262 (m68hc11-elf): Disable sim build warnings.
3263 (m32r-elf): Mark as broken obsolete candidate.
3264 (x86_64-linux-gnu): Mark as buildable with -Werror.
3265 (arm-elf): Change -w to ``,'' which enables warnings but not
3266 -Werror.
3267
af5f3db6
AC
32682002-07-12 Andrew Cagney <ac131313@redhat.com>
3269
3270 * bcache.h: Update copyright.
3271 (struct bstring, struct bcache): Move definition to "bcache.c".
3272 Replaced by opaque declaration.
3273 (bcache_xfree): Replace free_bcache.
3274 (bcache_xmalloc, bcache_memory_used): Declare.
3275
3276 * bcache.c: Update copyright.
3277 (struct bstring, struct bcache): Moved to here from "bcache.h".
3278 Update comments.
3279 (bcache_xmalloc, bcache_memory_used): New functions.
3280 (bcache_xfree): Replace function free_bcache.
3281
3282 * Makefile.in (objfiles.o): Add $(bcache_h).
3283 (objfiles_h): Remove $(bcache_h).
3284 (symfile.o): Add $(bcache_h).
3285
3286 * symmisc.c: Update copyright.
3287 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3288 (print_objfile_statistics): Use bcache_memory_used.
3289
3290 * symfile.c: Include "bcache.h".
3291 (reread_symbols): Use bcache_xfree.
3292 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3293 (add_psymbol_to_list): Pass psymbol_cache by value.
3294 (add_psymbol_with_dem_name_to_list): Ditto.
3295
3296 * objfiles.h: Update copyright.
3297 (struct bcache): Declare opaque. Do not include "bcache.h".
3298 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3299 bcache'' pointers.
3300 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3301
3302 * objfiles.c: Include "bcache.h". Update copyright.
3303 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3304 macro_cache.
3305 (free_objfile): Use bcache_xfree.
3306
444199e7
GS
33072002-07-11 Grace Sainsbury <graces@redhat.com>
3308
3309 * monitor.c (monitor_fetch_register): Make name a constant.
3310 (monitor_store_register): Same.
3311
261397f8
DJ
33122002-07-11 Daniel Jacobowitz <drow@mvista.com>
3313
3314 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3315 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3316 (finish_block) For non-function blocks, hash the symbol table. For
3317 function blocks, mark the symbol table as unhashed.
3318 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3319 (msymbol_hash_iw): Likewise.
3320 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3321 value.
3322 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3323 (lookup_minimal_symbol): Likewise for both.
3324 * symtab.h (struct block): Add `hashtable' flag. Comment the
3325 hashtable.
3326 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3327 (ALL_BLOCK_SYMBOLS): Update.
3328 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3329 (struct symbol): Add `hash_next' pointer.
3330 * symtab.c (lookup_block_symbol): Search using the hash table when
3331 possible.
3332 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3333 (search_symbols, find_addr_symbol): Likewise.
3334
3335 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3336 (read_dst_symtab): Likewise.
3337 * jv-lang.c (get_java_class_symtab): Likewise.
3338 * mdebugread.c: Include "gdb_assert.h".
3339 (shrink_block): Assert that the block being modified is not hashed.
3340 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3341 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3342 symbols.
3343 (dump_symtab): Recognize hashed blocks.
3344 * printcmd.c (print_frame_args): Assert that function blocks do not
3345 have hashed symbol tables.
3346 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3347 (fill_in_ada_prototype, debug_print_block): Likewise.
3348 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3349
6f0eaa01
CV
33502002-07-11 Corinna Vinschen <vinschen@redhat.com>
3351
3352 * stack.c (print_frame): Use result of frame_address_in_block()
3353 instead of fi->pc when evaluating symbols.
3354 (backtrace_command_1): Ditto.
3355
a208b0cb
AC
33562002-07-11 Andrew Cagney <cagney@redhat.com>
3357
3358 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3359 Make static.
3360
3361 * arm-tdep.c (arm_register_name): Make return type constant.
3362
a6b6b089
AC
33632002-07-10 Andrew Cagney <ac131313@redhat.com>
3364
5ae5f592
AC
3365 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3366 prototype.
3367 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3368 * s390-tdep.c (s390_fp_regnum): Ditto.
3369 (s390_read_fp): Ditto.
3370 (s390_pop_frame): Ditto.
3371 (_initialize_s390_tdep): Ditto.
3372 * remote.c (get_remote_state): Ditto.
3373 * procfs.c (mappingflags): Ditto.
3374 * memattr.c (_initialize_mem): Ditto.
3375 * mcore-tdep.c (mcore_pop_frame): Ditto.
3376 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3377 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3378 * language.c (set_case_str): Ditto.
3379 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3380 * frv-tdep.c (new_variant): Ditto.
3381 (frv_stopped_data_address): Ditto.
3382 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3383 (context_alloc): Ditto.
3384 (frame_state_alloc): Ditto.
3385 (unwind_tmp_obstack_init): Ditto.
3386 (unwind_tmp_obstack_free): Ditto.
3387 (cfi_read_fp): Ditto.
3388 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3389 (cris_pop_frame): Ditto.
3390 * c-lang.c (scanning_macro_expansion): Ditto.
3391 (finished_macro_expansion): Ditto.
3392 (c_preprocess_and_parse): Ditto.
3393 * gdbarch.sh: Ditto.
3394 * gdbarch.h, gdbarch.c: Regenerate.
3395 * config/mn10200/tm-mn10200.h: Adjust indentation.
3396 * target.c: Adjust indentation.
3397 * symtab.h: Adjust indentation.
3398 * stabsread.h: Adjust indentation.
3399 * remote-es.c: Adjust indentation.
3400 * os9kread.c: Adjust indentation.
3401
34022002-07-10 Andrew Cagney <ac131313@redhat.com>
3403
a6b6b089
AC
3404 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3405 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3406
a1789893
GS
34072002-07-10 Grace Sainsbury <graces@redhat.com>
3408
3409 * NEWS: Mention m68k, mcore multi-arching.
3410 * MAINTAINERS: Change status of m68k, mcore to reflect
3411 multi-arching.
3412
02f0d45d
DJ
34132002-07-10 Daniel Jacobowitz <drow@mvista.com>
3414
3415 * valops.c (find_overload_match): Free oload_syms.
3416
f15f768e
JB
34172002-07-09 Joel Brobecker <brobecker@gnat.com>
3418
3419 Define HAVE_SYS_PROC_H if sys/proc.h exists
3420 * configure.in: Add check for sys/proc.h
3421 * config.in: Regenerate.
3422 * configure: Regenerate.
3423
902a7139
GS
34242002-07-09 Grace Sainsbury <graces@redhat.com>
3425
3426 * config/m68k/tm-m68k.h: Remove macros wrapped in
3427 #if !GDB_MULTI_ARCH.
3428
a534e424
AC
34292002-07-08 Andrew Cagney <ac131313@redhat.com>
3430
3431 * config.in, configure: Regenerate.
3432
9b94f7bf
MK
34332002-07-08 Mark Kettenis <kettenis@gnu.org>
3434
3435 * dwarf2cfi.c: Include "gcore.h".
3436 (execute_stack_op): Fix implementation of the
3437 DW_OP_deref and DW_OP_deref_size operators by letting do their
3438 lookup in the target.
3439
1d34db41
MK
34402002-07-07 Mark Kettenis <kettenis@gnu.org>
3441
3442 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3443 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3444 tdep->sc_sp_offset.
3445
79d5b63a
DJ
34462002-07-05 Daniel Jacobowitz <drow@mvista.com>
3447
3448 Fix PR gdb/595, gdb/602
3449 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3450 Don't call value_cast, just read the vtable pointer; update comments
3451 to match.
3452
3bb912e8
GS
34532002-07-05 Grace Sainsbury <graces@redhat.com>
3454
3455 * config/mcore/tm-mcore.h: Remove file.
3456 * config/mcore/mcore.mt: Remove definition of TM_FILE
3457 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3458
ca39387d
MK
34592002-07-05 Mark Kettenis <kettenis@gnu.org>
3460
3461 * i386bsd-tdep.c: Include "gdb_string.h".
3462
efdc1108
GS
34632002-07-04 Grace Sainsbury <graces@redhat.com>
3464
3465 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3466 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3467 mcore-tdep.
3468 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3469 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3470 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3471 (RETVAL_REGNUM): Move macros from tm-mcore.h
3472 (mcore_reg_struct_has_addr): New function.
3473 (mcore_gdbarch_init): Added initializations for the macros removed
3474 from tm-mcore.h.
3475
bb21884d
MK
34762002-07-04 Mark Kettenis <kettenis@gnu.org>
3477
3478 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3479 traditonal string branding within the ELF header.
3480
228c6d41
DJ
34812002-07-04 Daniel Jacobowitz <drow@mvista.com>
3482
3483 * symtab.c (remove_params): New function.
3484 (make_symbol_overload_list): Use it instead of cplus_demangle.
3485 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3486
2404952e
MK
34872002-07-04 Mark Kettenis <kettenis@gnu.org>
3488
e5e4acad
MK
3489 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3490
baadce09
MK
3491 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3492 New variables.
3493 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3494 and tdep->sigtramp_end.
3495 * i386obsd-nat.c: New file.
3496 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3497
2404952e
MK
3498 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3499 Don't call get_current_frame().
3500
9b4f1ba7
PM
35012002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3502
3503 * i386-nat.c (child_post_startup_inferior): New function
3504 calling i386_cleanup_dregs if
3505 I386_USE_GENERIC_WATCHPOINTS is defined.
3506 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3507 conditional to acknowledge that i386-nat.c has its
3508 own child_post_startup_inferior function.
3509
c0d1d883
MK
35102002-07-04 Mark Kettenis <kettenis@gnu.org>
3511
00f8375e
MK
3512 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3513 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3514 instead of MAX_REGISTER_RAW_SIZE.
3515 (i386_extract_return_value, i386_extract_struct_value_address):
3516 Convert to use regcache.
3517 (i386_gdbarch_init): Set max_register_raw_size and
3518 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3519 Set extract_return_value and extract_struct_value_address instead
3520 of their deprecated variants.
3521
c0d1d883
MK
3522 Convert i386 target to generic dummy frames.
3523 * i386-tdep.c: Include "symfile.h".
3524 (i386_frameless_signal_p): Consider a function to be frameless if
3525 the pc points at the first instruction of the function.
3526 (i386_frame_chain): Handle (generic) call dummies.
3527 (i386_frame_saved_pc): Likewise.
3528 (i386_frame_init_saved_regs): Remove code dealing with call
3529 dummies on the stack.
3530 (i386_push_dummy_frame): Removed.
3531 (i386_call_dummy_words): Removed.
3532 (i386_fix_call_dummy): Removed.
3533 (i386_push_return_address): New function.
3534 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3535 parameter, and don't call get_current_frame.
3536 (i386_pop_frame): New function.
3537 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3538 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3539 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3540 call_dummy_length to 0, set call_dummy_words to NULL, set
3541 sizeof_call_dummy_words to 0, set fix_call_dummy to
3542 generic_fix_call_dummy, set pc_in_call_dummy to
3543 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3544 generic_push_dummy_frame, set push_return_address to
3545 i386_push_return_address and set frame_chain_valid to
3546 generic_file_frame_chain_valid.
3547
049ee0e4
AC
35482002-07-03 Andrew Cagney <ac131313@redhat.com>
3549
3550 * gdbarch.sh (struct regcache): Add opaque declaration.
3551 (EXTRACT_RETURN_VALUE): New architecture method.
3552 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3553 * gdbarch.h, gdbarch.c: Regenerate.
3554 * arch-utils.c (legacy_extract_return_value): New function.
3555 * arch-utils.h (legacy_extract_return_value): Declare.
3556 * values.c (value_being_returned): Re-enable code handling
3557 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3558 deprecated_grub_regcache_for_registers call to block handling
3559 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3560 (EXTRACT_RETURN_VALUE): Do not define.
3561
4e0d9804
GS
35622002-07-03 Grace Sainsbury <graces@redhat.com>
3563
3564 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3565 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3566 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3567 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3568 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3569 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3570 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3571 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3572 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3573 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3574 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3575 argument so the function fits the prototype in the architecture
3576 vector.
3577 (mcore_pop_frame): Remove argument so the function fits the
3578 prototype. Use get_current_frame instead of the argument.
3579 (mcore_push_arguments): Change type of struct_return so the
3580 function can be used in the architecture vector.
3581 (mcore_store_struct_return): Add.
3582 (mcore_frame_init_saved_regs): Add.
3583 (mcore_gdbarch_init): Add function calls to replace the macros
3584 removed from tm-mcore.h
3585
36160dc4
AC
35862002-07-03 Andrew Cagney <ac131313@redhat.com>
3587
3588 * infcmd.c (print_return_value): Remove compatibility code calling
3589 deprecated_grub_regcache_for_registers.
3590
3591 * values.c: Include "regcache.h".
3592 (value_being_returned): Update. Use
3593 deprecated_grub_regcache_for_registers to extract the register
3594 buffer address.
3595 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3596 ``struct regcache''.
3597 * Makefile.in (values.o): Add dependency on $(regcache_h).
3598
3599 * inferior.h (run_stack_dummy): Change type of second parameter to
3600 a ``struct regcache''.
3601 * valops.c (hand_function_call): Change type of retbuf to ``struct
3602 regcache''. Allocate using regcache_xmalloc, clean using
3603 make_cleanup_regcache_xfree.
3604 * infcmd.c (run_stack_dummy): Update. Use
3605 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3606
3607 * regcache.c (do_regcache_xfree): New function.
3608 (make_cleanup_regcache_xfree): New function.
3609 * regcache.h (make_cleanup_regcache_xfree): Declare.
3610
e64d9b3d
MH
36112002-07-03 Martin M. Hunt <hunt@redhat.com>
3612
4dd79c29
MH
3613 * event-top.c (command_line_handler): Don't read past
3614 beginning of buffer.
e64d9b3d 3615
4dd79c29
MH
36162002-07-03 Martin M. Hunt <hunt@redhat.com>
3617
e64d9b3d
MH
3618 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3619 struct frame_id.
3620 (varobj_create): Store frame_id for root.
3621 (varobj_gen_name): Use xasprintf.
3622 (varobj_update): Save and restore frame using get_frame_id() and
3623 frame_find_by_id().
3624 (create_child): Use xasprintf.
3625 (new_root_variable): Initialize frame_id.
3626 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3627 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3628 to prevent memory leak.
3629
26e6c56a
AC
36302002-07-03 Andrew Cagney <ac131313@redhat.com>
3631
3632 * valops.c (hand_function_call): Move declaration of retbuf to
3633 start of function, allocate using malloc, add a cleanup but before
3634 the inf_status cleanup, cleanup the buffer. Rename local variable
3635 old_chain to inf_status_cleanup.
3636
f436dd25
MH
36372002-07-03 Martin M. Hunt <hunt@redhat.com>
3638
3639 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3640
3641 * cli/cli-decode.c (cmd_func_p): New function.
3642 (cmd_func): New function.
3643
3644 * command.h: Add cmd_func() and cmd_func_p().
3645
4cfe2084
GS
36462002-07-03 Grace Sainsbury <graces@redhat.com>
3647
3648 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3649 (REGISTER_SIZE): Remove.
3650 (MAX_REGISTER_RAW_SIZE): Remove.
3651 (REGISTER_VIRTUAL_TYPE): Remove.
3652 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3653 (REGISTER_NAME): Remove.
3654 (USE_GENERIC_DUMMY_FRAMES): Remove.
3655 (CALL_DUMMY): Remove.
3656 (CALL_DUMMY_START_OFFSET): Remove.
3657 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3658 (CALL_DUMMY_LOCATION): Remove.
3659 (FIX_CALL_DUMMY): Remove.
3660 (CALL_DUMMY_ADDRESS): Remove.
3661 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3662 (SAVE_DUMMY_FRAME_TOS): Remove.
3663 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3664 (mcore_register_virtual_type): New function.
3665 (mcore_register_byte): New function.
3666 (mcore_register_size): New function.
3667 (mcore_register_name): New function.
3668 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3669 macros removed from tm-mcore.h.
3670 (mcore_dump_tdep): Add.
3671 (_initialize_mcore_tdep): Add gdbarch_register call.
3672
4fd667e9
MK
36732002-07-03 Mark Kettenis <kettenis@gnu.org>
3674
3675 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3676 frameless_look_for_prologue, such that we actually call this
3677 function.
3678
42f99ac2
JB
36792002-07-02 Joel Brobecker <brobecker@gnat.com>
3680
3681 * frame.h (frame_address_in_block): New function.
3682
3683 * blockframe.c (frame_address_in_block): New function extracted
3684 from get_frame_block().
3685 (get_frame_block): Use frame_address_in_block().
3686 (block_innermost_frame): Use frame_address_in_block() to match
3687 the frame pc address against the block boundaries rather than
3688 the frame pc directly. This prevents a failure when a frame pc
3689 is actually a return-address pointing immediately after the end
3690 of the given block.
3691
103a1597 36922002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3693
3694 * MAINTAINERS: Add self under write after approval.
3695
36962002-07-02 Grace Sainsbury <graces@redhat.com>
3697
103a1597
GS
3698 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3699 used in architecture vector. The default is
3700 m68k_local_breakpoint_from_pc.
3701 (m68k_local_breakpoint_from_pc): Add.
3702 (enum): Add register numbers from tm-m68k.h.
3703 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3704 vector.
3705 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3706 GDB_MULTI_ARCH_PARTIAL.
3707 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3708 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3709 m68k-tdep.c.
3710 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3711 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3712 to enum in m68k-tdep.c
3713
7a5a0534
JB
37142002-07-02 Joel Brobecker <brobecker@gnat.com>
3715
3716 * solib-osf.c (open_map): Compute the list of shared libraries
3717 loaded by the inferior, rather than the list of libraries loaded
3718 by GDB itself. Otherwise, GDB ends up reading the symbols from
3719 the wrong shared libraries...
3720
6f558d74
MK
37212002-07-02 Mark Kettenis <kettenis@gnu.org>
3722
b7d15bf7
MK
3723 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3724 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3725 macros.
3726 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3727 Remove functions.
3728 (FRAMELESS_SIGNAL): Remove function.
3729 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3730 i386_linux_saved_pc_after_call): Removed.
3731 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3732 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3733 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3734
6bff26de
MK
3735 * i386-tdep.c (i386_frameless_signal_p): New function.
3736 (i386_frame_chain): Deal with frameless signals.
3737 (i386_sigtramp_saved_sp): New function.
3738 (i386_frame_saved_pc): Deal with frameless signals.
3739 (i386_saved_pc_after_call): Make sure the correct value is
3740 returned just after entry into a sigtramp.
3741 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3742 i386fbsd4_sc_sp_offset): New variables.
3743 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3744 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3745 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3746 similiar to what we already did for sc_pc_offset.
3747 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3748 tdep->sc_sp_offset.
3749
6f558d74
MK
3750 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3751
145564b7
ML
37522002-07-02 Michal Ludvig <mludvig@suse.cz>
3753
3754 * config/i386/tm-x86-64linux.h: New.
3755 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3756 definitions.
3757 * config/i386/nm-x86-64.h: Rename to ...
3758 * config/i386/nm-x86-64linux.h: ... this one.
3759 * config/i386/x86-64linux.mh: Reflect the above change.
3760
3a1e71e3
MK
37612002-07-01 Mark Kettenis <kettenis@gnu.org>
3762
21d0e8a4
MK
3763 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3764 with sigcontext_addr. Add sc_sp_offset.
3765 (i386bsd_sigtramp_saved_pc): Remove prototype.
3766 (i386bsd_sicontext_addr): Add prototype.
3767 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3768 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3769 (i386_svr4_sigtramp_saved_pc): Removed.
3770 (i386_svr4_sigcontext_addr): New function.
3771 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3772 Initialize tdep->sigcontext_addr instead. Initialize
3773 tdep->sc_pc_offset and tdep->sc_sp_offset.
3774 (i386_gdbarch_init): Likewise.
3775 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3776 any more.
3777 (i386bsd_sigtramp_saved_pc): Remove function.
3778 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3779 Initialize tdep->sigcontext_addr instead. Initialize
3780 tdep->sc_pc_offset.
3781 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3782 of tdep->sigtramp_saved_pc.
3783 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3784 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3785 instead.
3786
3a1e71e3
MK
3787 * i386-tdep.c (i386_frameless_function_invocation,
3788 i386_frame_num_args, i386_frame_init_saved_regs,
3789 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3790 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3791 i386_extract_return_value, i386_store_return_value,
3792 i386_extract_struct_value_address, i386_register_virtual_type,
3793 i386_register_convertible, i386_register_convert_to_virtual,
3794 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3795 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3796 static.
3797
52e9098c
MK
37982002-07-01 Mark Kettenis <kettenis@gnu.org>
3799
77b13a25
MK
3800 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3801
52e9098c
MK
3802 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3803 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3804 this macro. Include "value.h".
3805
1b372fff
AS
38062002-06-30 Aidan Skinner <aidan@velvet.net>
3807
3808 * ada-exp.tab.c: remove as it's a generated file
3809 * ada-lex.c: remove as it's a generated file
3810
9c5045b5
MK
38112002-06-30 Mark Kettenis <kettenis@gnu.org>
3812
4a93c5bb
MK
3813 * config/i386/tm-i386.h (struct frame_info, struct
3814 frame_saved_regs, struct value, struct type): Remove forward
3815 declarations.
3816
322d4fe0
MK
3817 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3818 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3819 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3820 (FILL_FPXREGSET): Define.
3821
fdd8263d
MK
3822 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3823
482e577b
MK
3824 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3825 i[3456]86-*-netbsd* case.
3826 * config/i386/tm-obsd.h: Removed.
3827 * config/i386/obsd.mt: Removed.
3828 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3829 core-aout.o.
3830 (MH_CFLAGS): Add -DYYDEBUG=0.
3831
6916549a
MK
3832 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3833 i386nbsd_sc_pc_offset on OpenBSD too.
3834
9c5045b5
MK
3835 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3836 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3837 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3838 define.
3839 * i386bsd-tdep.c: Include "arch-utils.h".
3840 (i386bsd_aout_in_solib_call_trampoline): New function.
3841 (i386bsd_init_abi): Set in_solib_call_trampoline to
3842 i386bsd_aout_in_solib_call_trampoline.
3843 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3844 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3845
aa84d1bb
AC
38462002-06-28 Andrew Cagney <ac131313@redhat.com>
3847
3848 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3849 (struct obstack, struct bcache): Add opaque declarations.
3850 * Makefile.in (macrotab_h): Update
3851
b4d83933
AC
38522002-06-28 Andrew Cagney <ac131313@redhat.com>
3853
3854 * blockframe.c (generic_find_dummy_frame): Change return type to
3855 ``struct regcache''.
3856 (struct dummy_frame): Replace field ``registers'' with regcache, a
3857 struct regcache object.
3858 (generic_find_dummy_frame): Update.
3859 (generic_push_dummy_frame): Update. Use regcache_xfree,
3860 regcache_xmalloc and regcache_cpy.
3861 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3862 regcache_xfree.
3863 (deprecated_generic_find_dummy_frame): Update.
3864 (generic_read_register_dummy): Update. Use
3865 regcache_read_as_address.
3866 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3867 (generic_get_saved_register): Update. Use regcache_read.
3868
08c0b5bc
AC
38692002-06-28 Andrew Cagney <ac131313@redhat.com>
3870
3871 * Makefile.in (objfiles_h): Add $(bcache_h).
3872 * objfiles.h: Include "bcache.h".
3873
3874 * Makefile.in (symtab_h): Remove $(bcache_h).
3875 * symtab.h: Do not include "bcache.h".
3876
1f89801a
AC
38772002-06-28 Andrew Cagney <ac131313@redhat.com>
3878
3879 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3880 generic_func_frame_chain_valid.
3881
b9644b58
DB
38822002-06-28 David O'Brien <obrien@FreeBSD.org>
3883
3884 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3885 * config/i386/tm-fbsd.h: Likewise.
3886
dd486634
AC
38872002-06-28 Andrew Cagney <ac131313@redhat.com>
3888
3889 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3890 generic_unwind_get_saved_register.
3891
0b434a00
AC
38922002-06-27 Andrew Cagney <ac131313@redhat.com>
3893
3894 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3895 * regcache.c (supply_register): Add missing argument to
3896 register_buffer call.
3897
f30e5a77
AC
38982002-06-27 Andrew Cagney <ac131313@redhat.com>
3899
3900 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3901 Solaris /bin/grep does not not like it. From Peter Schauer.
3902
9f064c95
TT
39032002-06-26 Tom Tromey <tromey@redhat.com>
3904
3905 * command.h (add_setshow_cmd): Declare.
3906 (add_setshow_cmd_full): Declare.
3907 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3908 returns void. Use add_setshow_cmd_full.
3909 (add_setshow_cmd_full): New function.
3910 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3911 (add_setshow_boolean_cmd): Likewise.
3912
099c7589
JT
39132002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3914
3915 * config/vax/tm-vax.h: Protect from multiple inclusion.
3916 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3917 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3918 * config/vax/tm-vaxbsd.h: ...here. New file.
3919 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3920
1d049c5e
JT
39212002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3922
3923 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3924 (BELIEVE_PCC_PROMOTION): Remove.
3925 (AP_REGNUM): Move to...
3926 * config/vax/nm-vax.h: ...here.
3927 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3928 (vax_breakpoint_from_pc): New function.
3929 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3930 and gdbarch_believe_pcc_promotion.
3931
4791e091
JT
39322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3933
3934 * Makefile.in (vax_tdep_h): Define.
3935 (vax-tdep.o): Use $(vax_tdep_h).
3936 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3937 (vax_dump_tdep): New function.
3938 (_initialize_vax_tdep): Register vax_dump_tdep.
3939 * vax-tdep.h: Include osabi.h.
3940 (struct gdbarch_tdep): New.
3941
da130f98
AC
39422002-06-26 Andrew Cagney <cagney@redhat.com>
3943
3944 * frame.h (deprecated_generic_find_dummy_frame): Rename
3945 generic_find_dummy_frame.
3946 * blockframe.c (generic_find_dummy_frame): Make static.
3947 (deprecated_generic_find_dummy_frame): New function.
3948 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3949 generic_find_dummy_frame with deprecated_find_dummy_frame.
3950 (sh64_nofp_frame_init_saved_regs): Ditto.
3951 (sh_fp_frame_init_saved_regs): Ditto.
3952 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3953 (s390_frame_chain): Ditto.
3954 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3955
6300c360
GS
39562002-06-26 Grace Sainsbury <graces@redhat.com>
3957
3958 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3959 gdbarch vector are at the top.
3960 (NUM_REGS): Remove.
3961 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3962 (FRAME_ARGS_ADDRESS): Remove.
3963 (FRAME_LOCALS_ADDRESS): Remove.
3964 (FRAME_NUM_ARGS): Remove.
3965 (FRAME_ARGS_SKIP): Remove.
3966 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3967 (m68k_gdbarch_init): Add gdbarch initializations for macros
3968 undefined in tm-m68k.h
3969
1c617db8
GS
39702002-06-26 Grace Sainsbury <graces@redhat.com>
3971
3972 * monitor.h: Add the function regname to monitor_ops
3973 structure. This way NUM_REGS does not have to be a constant.
3974 * monitor.c (monitor_fetch_register): Added support for regname
3975 function. The function is called if the array regnames is NULL.
3976 (monitor_store_register): Same.
da130f98
AC
3977 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3978 regnames array.
1c617db8
GS
3979 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3980 cpu32bug_cmds.regname to point to new function.
3981 * abug-rom.c (abug_regname): Same as above.
3982 (init_abug_cmds): Same.
3983 * dbug-rom.c (dbug_regname): Same as above.
3984 (init_dbug_cmds): Same.
3985 * remote-est.c (est_regname): Same.
3986 (init_est_cmds): Same.
3987 * rom68k-rom.c (rom68k_regname): Same.
3988 (init_rom68k_cmds): Same.
3989
ea9365bb
TT
39902002-06-25 Tom Tromey <tromey@redhat.com>
3991
3992 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3993
72cec141
AC
39942002-06-25 Andrew Cagney <cagney@redhat.com>
3995
3996 * infrun.c (stop_registers): Change variable's type to ``struct
3997 regcache'''.
3998 (xmalloc_inferior_status): Delete function.
3999 (free_inferior_status): Delete function.
4000 (normal_stop): Use regcache_cpy.
4001 (struct inferior_status): Change type of fields ``stop_registers''
4002 and ``registers'' to ``struct regcache''.
4003 (write_inferior_status_register): Use regcache_write.
4004 (save_inferior_status): Instead of calling
4005 xmalloc_inferior_status, allocate the inf_status buffer directly.
4006 Use regcache_dup_no_passthrough and regcache_dup to save the
4007 buffers.
4008 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4009 Replace the stop_registers regcache instead of overriding it. Use
4010 regcache_xfree. Instead of calling free_inferior_status, xfree
4011 the buffer directly.
4012 (discard_inferior_status): Use regcache_xfree. Instead of calling
4013 free_inferior_status, xfree the buffer directly.
4014 (build_infrun): Use regcache_xmalloc.
4015 (_initialize_infrun): Delete redundant call to build_infrun.
4016
4017 * Makefile.in (infcmd.o): Add $(regcache_h).
4018
4019 * infcmd.c: Include "regcache.h".
4020 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4021 obtain the address of `stop_registers' register buffer.
4022 (print_return_value): Ditto.
4023
4024 * inferior.h (struct regcache): Add opaque declaration.
4025 (stop_registers): Change variable's declared type to ``struct
4026 regcache''.
4027
defc6f8c
TT
40282002-06-24 Tom Tromey <tromey@redhat.com>
4029
c0e624e7
TT
4030 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4031 * target.c (initialize_targets): Fixed typo in
4032 trust-readonly-sections `show' documentation.
4033
defc6f8c
TT
4034 * main.c: Marked all strings with _().
4035
2b236d82
DH
40362002-06-24 Don Howard <dhoward@redhat.com>
4037
4038 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4039 that means max CORE_ADDR+1.
4040 (lookup_mem_region): Ditto.
4041 (mem_info_command): Ditto.
4042
942dc0e9
GS
40432002-06-24 Grace Sainsbury <graces@redhat.com>
4044
4045 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4046 (REGISTER_BYTES_OK): Remove.
4047 (REGISTER_BYTES): Remove.
4048 (STORE_STRUCT_RETURN): Remove.
4049 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4050 (STORE_RETURN_VALUE): Remove.
4051 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4052 (FRAME_CHAIN): Remove.
4053 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4054 (FRAME_SAVED_PC): Remove.
4055 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4056 (m68k_store_struct_return): Add.
4057 (m68k_deprecated_extract_return_value): Add.
4058 (m68k_deprecated_extract_struct_value_address): Add.
4059 (m68k_store_return_value): Add.
4060 (m68k_frame_chain): Add.
4061 (m68k_frameless_function_invocation): Add.
4062 (m68k_frame_saved_pc): Add.
4063 (m68k_gdbarch_init): added set_gdbarch calls for new
4064 functions and deleted macros.
4065
03c30d4d
TT
40662002-06-23 Tom Tromey <tromey@redhat.com>
4067
4068 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4069 (ALLDEPFILES): Likewise.
4070 (udiheaders): Removed.
4071 (udip2soc.o): Likewise.
4072 (udi2go32.o): Likewise.
4073 (udr.o): Likewise.
4074 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4075
37e71372
AC
40762002-06-22 Andrew Cagney <ac131313@redhat.com>
4077
06a6ac57
AC
4078 * infrun.c (_initialize_infrun): Delete unnecessary call to
4079 build_infrun.
4080
37e71372
AC
4081 * regcache.h: Update comments describing the regcache_cpy family
4082 of functions.
4083 (regcache_save, regcache_restore): Delete declaration.
4084 (regcache_save_no_passthrough): Delete declaration.
4085 (regcache_restore_no_passthrough): Delete declaration.
4086 * regcache.c (regcache_save): Delete function.
4087 (regcache_save_no_passthrough): Delete function.
4088 (regcache_restore): Delete function.
4089 (regcache_restore_no_passthrough): Delete function.
4090
78f6d055
AC
40912002-06-21 Andrew Cagney <ac131313@redhat.com>
4092
4093 * config/m68k/tm-m68k.h: Fix typo.
4094 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4095 (m68k_frame_init_saved_regs): Declare.
4096
78b119cb
JB
40972002-06-21 Jim Blandy <jimb@redhat.com>
4098
4099 Remove some vestiges of Harris 88k support.
4100 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4101 register numbering quirk.
4102 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4103 odd symbols occurring in Harris 88k ELF targets.
4104
0fbb3da7
TT
41052002-06-21 Tom Tromey <tromey@redhat.com>
4106
4107 * gdb_locale.h: New file.
4108 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4109 (defs_h): Added gdb_locale.h.
4110 * configure, config.in: Rebuilt.
4111 * configure.in (PACKAGE): Define.
4112 * defs.h: Include gdb_locale.h.
4113 * main.c (captured_main): Call setlocale, bindtextdomain,
4114 textdomain.
4115
456f8b9d
DB
41162002-06-21 Dave Brolley <brolley@redhat.com>
4117
4118 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4119 * config/frv/frv.mt: New file.
4120 * config/frv/tm-frv.h: New file.
4121 * configure.tgt: Support frv-*-*.
4122 * Makefile.in (frv-tdep.o): New target.
4123 * frv-tdep.c: New file.
4124 * NEWS: Mention frv.
4125
cdd463f9
DB
41262002-06-21 Dave Brolley <brolley@redhat.com>
4127
4128 * MAINTAINERS: Add self to "Write After Approval" list.
4129
5d3ed2e3
GS
41302002-06-21 Grace Sainsbury <graces@redhat.com>
4131
4132 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4133 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4134 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4135 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4136 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4137
4138 * m68k-tdep.c: Include arch-utils.h
4139 (m68k_register_raw_size): Add.
4140 (m68k_register_virtual_size): Add.
4141 (m68k_register_virtual_type): Add.
4142 (m68k_register_name): Add.
4143 (m68k_stack_align): Add.
4144 (m68k_register_byte): Add.
4145 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4146 tm-m68k.h.
4147
7f8e7424
GS
41482002-06-21 Grace Sainsbury <graces@redhat.com>
4149
a2c6a6d5 4150 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4151 m68k_find_saved_regs.
4152 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4153 references to it with frame->saved_regs.
7f8e7424
GS
4154 (m68k_gdbarch_init): Added function calls to initialize the
4155 gdbarch structure.
a2c6a6d5
GS
4156 (m68k_fix_call_dummy): Add.
4157 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4158 (CALL_DUMMY): Remove.
4159 (CALL_DUMMY_LENGTH): Remove.
4160 (CALL_DUMMY_START_OFFSET): Remove.
4161 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4162 (FIX_CALL_DUMMY): Remove.
4163 (PUSH_DUMMY_FRAME): Remove.
4164 (POP_FRAME): Remove.
7f8e7424 4165
f461f5cf
PM
41662002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4167
4168 * parse.c (parse_fprintf): New function used to avoid calls to
4169 fprintf in bison parser generated debug code.
4170 * parser-defs.h: Declaration of new parse_fprintf function.
4171 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4172 Set YYDEBUG to 1 by default.
4173 Set YYFPRINTF as parse_fprintf.
4174
7f0c12ed
ML
41752002-06-21 Michal Ludvig <mludvig@suse.cz>
4176
4177 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4178 encoding anymore.
4179 (pointer_encoding, enum ptr_encoding): New.
4180 (execute_cfa_program): Take care about pointer encoding.
4181 (dwarf2_build_frame_info): Only call parse_frame_info for
4182 .debug_frame and .eh_frame.
4183 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4184 fixed augmentation handling, added relative addressing,
4185 ignore duplicate FDEs. Added comments.
19d833a2 4186 * dwarf2cfi.c: Reindented.
7f0c12ed 4187
87c4a039
EZ
41882002-06-20 Elena Zannoni <ezannoni@redhat.com>
4189
4190 * event-top.c (command_handler): Don't use space_at_cmd_start
4191 unless there is sbrk() on the host. Assign time and space data
4192 to union fields of the appropriate length.
4193
1cf877ad
ML
41942002-06-20 Michal Ludvig <mludvig@suse.cz>
4195
4196 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4197 x86_64_register_name. Return type changed to 'const char *'.
4198 (x86_64_register_name2nr): Rename to x86_64_register_number.
4199 (x86_64_gdbarch_init): Update to reflect the change.
4200 * x86-64-tdep.h: Ditto.
4201 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4202 (supply_fpregset): Ditto.
4203
3fadccb3
AC
42042002-06-19 Andrew Cagney <cagney@redhat.com>
4205
4206 * regcache.h: Update copyright.
4207 (struct regcache, struct gdbarch): Add opaque declarations.
4208 (current_regcache): Declare global variable.
4209 (regcache_read, regcache_write): Add gdbarch parameter.
4210 (regcache_save, regcache_save_no_passthrough)
4211 (regcache_restore, regcache_restore_no_passthrough)
4212 (regcache_dup, regcache_dup_no_passthrough)
4213 (regcache_cpy, regcache_cpy_no_passthrough)
4214 (deprecated_grub_regcache_for_registers)
4215 (deprecated_grub_regcache_for_register_valid)
4216 (regcache_valid_p): Add function declarations.
4217
4218 * regcache.c: Update copyright.
4219 (regcache_descr_handle): New global variable.
4220 (struct regcache_descr): Define.
4221 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4222 (regcache_descr, xfree_regcache_descr): New functions.
4223 (struct regcache): Define.
4224 (regcache_xmalloc, regcache_xfree): New functions.
4225 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4226 (regcache_dup, regcache_dup_no_passthrough): New functions.
4227 (regcache_valid_p, regcache_read_as_address): New functions.
4228 (deprecated_grub_regcache_for_registers): New function.
4229 (deprecated_grub_regcache_for_register_valid): New function.
4230 (current_regcache): New global variable.
4231 (register_buffer): Add regcache parameter. Update calls.
4232 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4233 (read_register_gen, write_register_gen): Update register_buffer
4234 call. Test for legacy_p instead of gdbarch_register_read_p or
4235 gdbarch_register_write_p.
4236 (regcache_collect): Update register_buffer call.
4237 (build_regcache): Rewrite. Use deprecated grub functions.
4238 (regcache_save, regcache_save_no_passthrough): New functions.
4239 (regcache_restore, regcache_restore_no_passthrough): New
4240 functions.
4241 (_initialize_regcache): Create the regcache_data_handle. Swap
4242 current_regcache global variable.
4243
4244 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4245 parameter to regcache_read and regcache_write calls.
4246 (sh4_register_read): Ditto.
4247 (sh64_pseudo_register_read): Ditto.
4248 (sh64_register_read): Ditto.
4249 (sh_pseudo_register_write): Ditto.
4250 (sh4_register_write): Ditto.
4251 (sh64_pseudo_register_write): Ditto.
4252 (sh64_register_write): Ditto.
4253
4254 * defs.h (XCALLOC): Define.
4255
152d9db6
GS
42562002-06-19 Grace Sainsbury <graces@redhat.com>
4257
4258 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4259 * m68k-tdep.c (m68k_gdbarch_init): Added.
4260 (m68k_dump_tdep): Added.
4261
170911c7
DJ
42622002-06-19 Daniel Jacobowitz <drow@mvista.com>
4263
4264 * ada-lang.c (fill_in_ada_prototype): Update comment.
4265
2e4ebe70
DJ
42662002-06-19 Daniel Jacobowitz <drow@mvista.com>
4267
4268 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4269 MIPS_ABI_LAST.
4270 (mips_abi_string, mips_abi_strings): New.
4271 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4272 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4273 tdep->mips_abi_string. Honor mips_abi_string. Default to
4274 O32 if no ABI is found.
4275 (mips_dump_tdep): Use mips_abi_strings.
4276 (mips_abi_update): New function.
4277 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4278 ``set mips abi'' and ``show mips abi''. Check the size of
4279 mips_abi_strings.
4280
16775908
AC
42812002-06-19 Andrew Cagney <cagney@redhat.com>
4282
4283 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4284 constant.
4285
5051bfa4 42862002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4287
5051bfa4
JB
4288 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4289 current frame using only the first stack size adjustment. All
4290 subsequent size adjustments are not considered to be part of
4291 the "static" part of the current frame.
4292 Compute the address of the saved registers relative to the
4293 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4294 in use in this frame.
4295
56468235
DH
42962002-06-18 Don Howard <dhoward@redhat.com>
4297
4298 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4299 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4300 suggesting this solution.
4301
0b624158
AC
43022002-06-18 Andrew Cagney <ac131313@redhat.com>
4303
4304 * config/romp/xm-rtbsd.h: Delete file.
4305 * config/romp/rtbsd.mh: Delete file.
4306
221ea385
KS
43072002-06-18 Keith Seitz <keiths@redhat.com>
4308
4309 * breakpoint.c (condition_command): Post breakpoint_modify
4310 when a condition is added to an existing breakpoint.
4311 (commands_command): Likewise for commands.
4312 (set_ignore_count): Likewise for ignore counts.
4313 If no tty, do not simply return, still need to send event
4314 notification.
4315 (ignore_command): Only print a newline if the command came
4316 from a tty.
4317 Don't call breakpoints_changed, since this is now properly
4318 handled by set_ignore_count.
4319
5402eed1
AC
43202002-06-18 Andrew Cagney <cagney@redhat.com>
4321
4322 * MAINTAINERS: Note that cris-elf target can be compiled with
4323 -Werror.
4324 * cris-tdep.c (cris_register_name): Make return type constant.
4325 (cris_breakpoint_from_pc): Ditto.
4326
cc22880b
ML
43272002-06-18 Michal Ludvig <mludvig@suse.cz>
4328
4329 * frame.h (struct frame_info): Change type of context to
4330 'struct context'.
4331
fa88f677
AC
43322002-06-17 Andrew Cagney <cagney@redhat.com>
4333
4334 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4335 pointer.
4336 * gdbarch.h, gdbarch.c: Regenerate.
4337 * config/mips/tm-mips.h (mips_register_name): Update.
4338 * i386-tdep.h (i386_register_name): Update.
4339 * mips-tdep.c (mips_register_name): Update
4340 * alpha-tdep.c (alpha_register_name): Update.
4341 * arch-utils.c (legacy_register_name): Update.
4342 * arch-utils.h (legacy_register_name): Update.
4343 * avr-tdep.c (avr_register_name): Update.
4344 * ia64-tdep.c (ia64_register_name): Update.
4345 * i386-tdep.c (i386_register_name): Update.
4346 * sparc-tdep.c (sparc32_register_name): Update.
4347 (sparc64_register_name): Update.
4348 (sparclite_register_name): Update.
4349 (sparclet_register_name): Update.
4350 * sh-tdep.c (sh_generic_register_name): Update.
4351 (sh_sh_register_name): Update.
4352 (sh_sh3_register_name): Update.
4353 (sh_sh3e_register_name): Update.
4354 (sh_sh_dsp_register_name): Update.
4355 (sh_sh3_dsp_register_name): Update.
4356 (sh_sh4_register_name): Update.
4357 (sh_sh64_register_name): Update.
4358 * s390-tdep.c (s390_register_name): Update.
4359 * rs6000-tdep.c (rs6000_register_name): Update.
4360 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4361 (ns32k_register_name_32382): Update.
4362 * d10v-tdep.c (d10v_ts2_register_name): Update.
4363 (d10v_ts3_register_name): Update.
4364 * xstormy16-tdep.c (xstormy16_register_name): Update.
4365 * vax-tdep.c (vax_register_name): Update.
4366 * v850-tdep.c (v850_register_name): Update.
4367 * m68hc11-tdep.c (m68hc11_register_name): Update.
4368 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4369 (am33_register_name): Update.
4370
ea1e7ef6
GS
43712002-06-17 Grace Sainsbury <graces@redhat.com>
4372
4373 * m68k-tdep.c: Reindented.
4374
9b02dd1b
AC
43752002-06-17 Andrew Cagney <ac131313@redhat.com>
4376
4377 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4378 list of predefined types.
4379
8758dec1
MK
43802002-06-16 Mark Kettenis <kettenis@gnu.org>
4381
b6197528
MK
4382 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4383 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4384 REGISTER_CONVERT_TO_RAW): Remove defines.
4385 (i386_register_virtual_type, i386_register_convertible,
4386 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4387 Remove prototypes.
4388 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4389 macros mentioned above.
4390
82b47e62
MK
4391 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4392 (i386lynx_saved_pc_after_call): Remove prototype.
4393 * i386ly-tdep.c: Include "i386-tdep.h".
4394 (i386lynx_saved_pc_after_call): Make static. Use
4395 read_memory_nobpt instead of read_memory. Use
4396 read_memory_unsigned_integer instead of read_memory_integer.
4397 (i386lynx_init_abi): New function.
4398 (i386lynx_coff_osabi_sniffer): New function.
4399 (_initialize_i386bsd_tdep): New function.
4400
8758dec1
MK
4401 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4402 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4403 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4404 (i386_fix_call_dummy): Remove prototype.
4405 * i386-tdep.c (i386_call_dummy_words): New variable.
4406 (i386_gdbarch_init): Adjust for removal of the
4407 macros mentioned above.
4408
e9e68a56
AC
44092002-06-15 Andrew Cagney <ac131313@redhat.com>
4410
4411 * command.h (add_setshow_auto_boolean_cmd): Replace
4412 add_set_auto_boolean_cmd.
4413 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4414 add_set_auto_boolean_cmd.
4415 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4416 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4417 mask-address'' command.
4418 (show_mask_address): Add cmd parameter.
4419 * remote.c (add_packet_config_cmd): Update. Change type of
4420 set_func and show_func to cmd_sfunc_ftype.
4421 (_initialize_remote): Update `set remote Z-packet'
4422 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4423 (show_remote_protocol_e_packet_cmd): Ditto.
4424 (show_remote_protocol_E_packet_cmd): Ditto.
4425 (show_remote_protocol_P_packet_cmd): Ditto.
4426 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4427 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4428 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4429 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4430 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4431 (show_remote_protocol_Z_packet_cmd): Ditto.
4432 (show_remote_protocol_binary_download_cmd): Ditto.
4433 (show_remote_cmd): Pass NULL to all of above.
4434
fc08ec52
MK
44352002-06-15 Mark Kettenis <kettenis@gnu.org>
4436
4437 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4438 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4439 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4440 POP_FRAME): Remove defines.
4441 (i386_push_arguments, i386_store_struct_return,
4442 i386_extract_return_value, i386_store_return_value,
4443 i386_extract_struct_value_address, i386_push_dummy_frame,
4444 i386_pop_frame): Renove prototypes.
4445 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4446 macros mentioned above.
4447
e707bbc2
AC
44482002-06-15 Andrew Cagney <ac131313@redhat.com>
4449
4450 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4451 add_set_boolean_cmd.
4452 (add_setshow_cmd): New function.
4453 * command.h (add_setshow_boolean_cmd): Replace
4454 add_set_boolean_cmd.
4455 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4456 and ``set rdiromatzero''.
4457 * maint.c (_initialize_maint_cmds): Update commented out code.
4458 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4459 * target.c (initialize_targets): Update `set
4460 trust-readonly-sections'.
4461 * remote.c (_initialize_remote): Update `set remotebreak'.
4462
42fdc8df
MK
44632002-06-15 Mark Kettenis <kettenis@gnu.org>
4464
93924b6b
MK
4465 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4466 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4467 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4468 fit into multi-arch framework.
4469 (i386_breakpoint_from_pc): New function.
4470 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4471 above.
4472
42fdc8df
MK
4473 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4474 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4475 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4476 (i386_frameless_function_invocation, i386_frame_num_args,
4477 i386_frame_init_saved_regs): Remove prototypes.
4478 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4479 macros mentioned above.
4480
9773a94b
AC
44812002-06-15 Andrew Cagney <ac131313@redhat.com>
4482
4483 * cli/cli-decode.c (set_cmd_cfunc): Update.
4484 (set_cmd_sfunc): Update.
4485 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4486 (set_cmd_sfunc, set_cmd_cfunc): Update.
4487 * cli/cli-decode.h: Update.
4488
6e157172
MK
44892002-06-15 Mark Kettenis <kettenis@gnu.org>
4490
4491 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4492 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4493
7f19b9a2
AC
44942002-06-15 Andrew Cagney <ac131313@redhat.com>
4495
4496 * defs.h (auto_boolean): Declare enum.
4497 * command.h (cmd_auto_boolean): Delete enum.
4498 * mips-tdep.c (mask_address_var): Update.
4499 (mips_mask_address_p): Update.
4500 (show_mask_address): Update.
4501 * remote.c (struct packet_config): Update.
4502 (update_packet_config): Update.
4503 (show_packet_config_cmd): Update.
4504 (packet_ok): Update.
4505 (add_packet_config_cmd): Update.
4506 (_initialize_remote):
4507 * command.h: Update.
4508 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4509 (do_setshow_command): Update.
4510 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4511 * cli/cli-decode.h: Update.
4512
1cf88de5
MK
45132002-06-15 Mark Kettenis <kettenis@gnu.org>
4514
22ba8cf2
MK
4515 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4516 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4517 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4518 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4519 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4520 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4521
762c5349
MK
4522 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4523 list of DJGPP COFF targets.
4524
091198bb
MK
4525 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4526 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4527 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4528 (FP0_REGNUM): Remove define.
4529 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4530 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4531 (i386_register_virtual_size): Remove protoype.
4532 * i386-tdep.c (i386_register_virtual_size): Removed.
4533 (i386_extract_return_value, i386_store_return_value): Use
4534 FP0_REGNUM instead of NUM_FREGS to determine whether the
4535 floating-point registers are available.
4536 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4537 Adjust for removal of macros mentioned above.
4538
45392002-06-15 Mark Kettenis <kettenis@gnu.org>
4540
fcc9bf01
MK
4541 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4542 comments.
4543 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4544 Remove prototypes.
4545 (supply_gregset, fill_gregset): Remove use of register keyword and
4546 remove declaration for regmap. Use I386_NUM_GREGS instead of
4547 NUM_REGS and NUM_FREGS.
4548 (FPREGSET_FSAVE_OFFSET): Remove.
4549 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4550 NUM_FREGS to determine whether the floating-point registers are
4551 available.
4552
65e78234
MK
4553 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4554 gnu_store_registers): Replace usage of NUM_GREGS with
4555 I386_NUM_GREGS.
4556
98df6387
MK
4557 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4558 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4559 usage of NUM_GREGS with I386_NUM_GREGS.
4560
099a9414
MK
4561 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4562
57976e88
MK
4563 * i386bsd-nat.c: Include "i386-tdep.h".
4564 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4565 I386_NUM_GREGS.
4566
b335f4a6
MK
4567 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4568 and associated comment. They no longer make any sense, since we
4569 don't use this file anymore on Linux.
4570
1cf88de5
MK
4571 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4572 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4573 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4574 elements in these arrays.
4575 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4576 MAX_NUM_REGS.
4577
daa66587
MK
45782002-06-15 Mark Kettenis <kettenis@gnu.org>
4579
4580 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4581 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4582
26e9b323
AC
45832002-06-14 Andrew Cagney <cagney@redhat.com>
4584
4585 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4586 EXTRACT_RETURN_VALUE.
4587 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4588 EXTRACT_STRUCT_VALUE_ADDRESS.
4589 * gdbarch.h, gdbarch.c: Regenerate.
4590
4591 * values.c (value_being_returned): Handle
4592 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4593 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4594
4595 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4596 * arm-tdep.c (arm_gdbarch_init): Update.
4597 * avr-tdep.c (avr_gdbarch_init): Update.
4598 * cris-tdep.c (cris_gdbarch_init): Update.
4599 * d10v-tdep.c (d10v_gdbarch_init): Update.
4600 * ia64-tdep.c (ia64_gdbarch_init): Update.
4601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4603 * s390-tdep.c (s390_gdbarch_init): Update.
4604 * sh-tdep.c (sh_gdbarch_init): Update.
4605 * s390-tdep.c (s390_gdbarch_init): Update.
4606 * sparc-tdep.c (sparc_gdbarch_init): Update.
4607 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4608 * v850-tdep.c (v850_gdbarch_init): Update.
4609 * vax-tdep.c (vax_gdbarch_init): Update.
4610 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4612
4613 * config/arc/tm-arc.h: Update.
4614 * config/d30v/tm-d30v.h: Update.
4615 * config/fr30/tm-fr30.h: Update.
4616 * config/h8300/tm-h8300.h: Update.
4617 * config/h8500/tm-h8500.h: Update.
4618 * config/i386/tm-i386.h: Update.
4619 * config/i386/tm-ptx.h: Update.
4620 * config/i386/tm-symmetry.h: Update.
4621 * config/i960/tm-i960.h: Update.
4622 * config/m32r/tm-m32r.h: Update.
4623 * config/m68k/tm-delta68.h: Update.
4624 * config/m68k/tm-linux.h: Update.
4625 * config/m68k/tm-m68k.h: Update.
4626 * config/m88k/tm-m88k.h: Update.
4627 * config/mcore/tm-mcore.h: Update.
4628 * config/mips/tm-mips.h: Update.
4629 * config/mn10200/tm-mn10200.h: Update.
4630 * config/pa/tm-hppa.h: Update.
4631 * config/pa/tm-hppa64.h: Update.
4632 * config/sparc/tm-sp64.h: Update.
4633 * config/sparc/tm-sparc.h: Update.
4634 * config/sparc/tm-sparclet.h: Update.
4635 * config/z8k/tm-z8k.h: Update.
4636
5179e78f
AC
46372002-06-14 Andrew Cagney <cagney@redhat.com>
4638
4639 * Makefile.in (i386_linux_tdep_h): Define.
4640 (i386_tdep_h, i387_tdep_h): Define.
4641 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4642 $(i386_tdep_h) and $(i387_tdep_h).
4643 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4644
8201327c
MK
46452002-06-14 Mark Kettenis <kettenis@gnu.org>
4646
edf393ac
MK
4647 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4648 Already covered by the default.
4649
896fb97d
MK
4650 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4651 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4652 (i386_gdbarch_init): Initialize long_double_format and long_double
4653 bit.
4654
8201327c
MK
4655 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4656 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4657 Move these to ...
4658 * config/i386/i386sol2.mh: ... here.
4659 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4660 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4661 (SIGCONTEXT_PC_OFFSET): Remove define.
4662 (IN_SIGTRAMP): Remove define.
4663 * i386-sol2-tdep.c: New file.
4664
4665 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4666 * config/i386/tm-i386nw.h: Removed.
4667
4668 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4669 USE_STRUCT_CONVENTION): Remove defines.
4670 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4671 (get_longjmp_target): Remove prototype.
4672 (IN_SIGTRAMP): Remove define.
4673 (i386bsd_in_sigtramp): Remove prototype.
4674 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4675 function. Update comment accordingly
4676 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4677 (FRAME_SAVED_PC): Remove define.
4678 (i386bsd_frame_saved_pc): Remove prototype.
4679 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4680 GET_LONGJMP_TARGET): Remove defines.
4681 (get_longjmp_target): Remove prototype.
4682 (IN_SIGTRAMP): Remove define.
4683 (i386bsd_in_sigtramp): Remove prototype.
4684 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4685 function. Update comment accordingly
4686 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4687 (FRAME_SAVED_PC): Remove define.
4688 (i386bsd_frame_saved_pc): Remove prototype.
4689 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4690 Remove prototype.
4691 (USE_STRUCT_CONVENTION): Remove prototype.
4692 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4693 declaration.
4694 (_initialize_i386bsd_nat): Revise logic to determine some
4695 constants at compile time when compiling a native GDB. Warn if
4696 things don't match up with what we expect.
4697 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4698 Remove variables.
4699 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4700 to use date stored in `struct gdbarch_tdep'.
4701 (i386bsd_sigcontext_offset): Remove varaible.
4702 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4703 stored in `struct gdbarch_tdep'.
4704 (i386bsd_frame_saved_pc): Make static.
4705 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4706 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4707 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4708 i386fbsd4_sc_pc_offset): New variables.
4709 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4710 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4711 functions.
4712 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4713 functions.
4714 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4715 Modify the value of i386fbsd_sigtramp_start and
4716 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4717 i386fbsd_sigtramp_end.
4718 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4719 function.
4720
4721 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4722 define to i386-linux-tdep.h.
4723 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4724 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4725 defines.
4726 (i386_linux_register_name, i386_linux_register_byte,
4727 i386_linux_register_raw_size): Remove prototypes.
4728 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4729 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4730 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4731 TARGET_WRITE_PC): Remove defines.
4732 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4733 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4734 i386_linux_write_pc): Remove prototypes.
4735 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4736 (get_longjmp_target): Remove prototype.
4737 * i386-linux-tdep.h: New file.
4738 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4739 * i386-linux-tdep.c: Include "i386-tdep.h" and
4740 "i386-linux-tdep.h".
4741 (i386_linux_register_name, i386_linux_register_byte,
4742 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4743 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4744 Make static.
4745 (i386_linux_init_abi): New function.
4746 (_initialize_i386_linux_tdep): New function.
4747
4748 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4749 (i386_saved_pc_after_call): Remove prototype.
4750 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4751 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4752 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4753 (i386_register_name, i386_stab_reg_to_regnum,
4754 i386_dwarf_reg_to_regnum): Remove prototypes.
4755 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4756 SIZEOF_SSE_REGS): Remove defines.
4757 (REGISTER_BYTES): Remove define.
4758 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4759 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4760 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4761 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4762 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4763 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4764 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4765 (get_longjmp_target): Remove prototype.
4766 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4767 (sigtramp_saved_pc): Remove define.
4768 (i386v4_sigtramp_saved_pc): Remove prototype.
4769 * config/i386/tm-go32.h (FRAME_CHAIN,
4770 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4771 (i386go32_frame_saved_pc): Remove prototype.
4772 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4773 (get_longjmp_target): Remove prototype.
4774 * i386-tdep.h: Include "osabi.h".
4775 (enum i386_abi): Removed.
4776 (enum struct_return): New enum.
4777 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4778 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4779 sc_pc_offset members.
4780 (i386_gdbarch_register_os_abi): Remove prototype.
4781 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4782 I386_SSE_NUM_REGS): New defines.
4783 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4784 I386_SSE_SIZEOF_REGS): New defines.
4785 (i386_register_name, i386_register_byte, i386_register_raw_size):
4786 New prototypes.
4787 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4788 (i386bsd_sigtramp_saved_pc): New prototype.
4789 * i386-tdep.c: Don't include "elf-bfd.h".
4790 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4791 i386_frame_chain, i386_saved_pc_after_call): Make static.
4792 (i386_frame_saved_pc): Rewrite to call architecture dependent
4793 function to deal with signal handlers. Make static.
4794 (i386go32_frame_saved_pc): Removed.
4795 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4796 Removed.
4797 (i386_get_longjmp_target): New function.
4798 (default_struct_convention, pcc_struct_convention,
4799 reg_struct_convention, valid_conventions, struct_convention): New
4800 variables.
4801 (i386_use_struct_convention): New function.
4802 (i386v4_sigtramp_saved_pc): Renamed to
4803 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4804 (i386_pc_in_sigtramp): New function.
4805 (i386_abi_names): Removed.
4806 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4807 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4808 Removed.
4809 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4810 i386_gdbarch_register_os_abi): Removed.
4811 (struct i386_abi_handler): Removed.
4812 (i386_abi_handler_list): Removed.
4813 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4814 functions.
4815 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4816 i386_nw_init_abi): New functions.
4817 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4818 Use set_gdbarch_xxx() calls instead of relying on macros for a
4819 number of calls.
4820 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4821 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4822 Register the various architecture variants defined in this file.
4823
ad2f7632
DJ
48242002-06-14 Daniel Jacobowitz <drow@mvista.com>
4825
4826 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4827 (struct main_type): Remove arg_types member. Update comments for
4828 struct field.
4829 (TYPE_ARG_TYPES): Remove.
4830 (TYPE_FN_FIELD_ARGS): Update.
4831 (smash_to_method_type): Update prototype.
4832
4833 * c-typeprint.c (cp_type_print_method_args): Take method type
4834 instead of argument list. Use new argument layout. Simplify.
4835 (c_type_print_args): Use new argument layout. Simplify.
4836 (c_type_print_base): Update call to cp_type_print_method_args.
4837 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4838 argument; use die->type instead. Update call to
4839 smash_to_method_type.
4840 (read_structure_scope): Update call to dwarf2_add_member_fn.
4841 * gdbtypes.c (allocate_stub_method): Update comment.
4842 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4843 Use new argument layout.
4844 (check_stub_method): Use new argument layout. Don't count
4845 void as an argument.
4846 (print_arg_types): Update comments. Use new argument layout.
4847 (recursive_dump_type): Don't print arg_types member.
4848 * hpread.c (hpread_read_struct_type): Use new argument layout.
4849 (fixup_class_method_type): Likewise.
4850 (hpread_type_lookup): Likewise.
4851 * stabsread.c (read_type): Update calls to read_args and
4852 smash_to_method_type.
4853 (read_args): Use new argument layout. Simplify.
4854 * valops.c (typecmp): Use new argument layout. Update parameters
4855 and comments. Simplify.
4856 (hand_function_call): Use new argument layout.
4857 (search_struct_method): Update call to typecmp.
4858 (find_overload_match): Use new argument layout.
4859
6da02953
DJ
48602002-06-13 Daniel Jacobowitz <drow@mvista.com>
4861
4862 * NEWS: Mention multithreaded debug support for gdbserver.
4863
519b2366
DJ
48642002-06-13 Daniel Jacobowitz <drow@mvista.com>
4865
4866 * MAINTAINERS: Mention NEWS.
4867
6c0d6680
DJ
48682002-06-13 Daniel Jacobowitz <drow@mvista.com>
4869
4870 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4871 (struct mips_objfile_private, compare_pdr_entries): New.
4872 (non_heuristic_proc_desc): Read the ".pdr" section if it
4873 is present.
4874
6529d2dd
AC
48752002-06-12 Andrew Cagney <ac131313@redhat.com>
4876
4877 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4878 (arm_debug): New static variable.
4879 (_initialize_arm_tdep): Add ``set debug arm'' command.
4880
26216b98
AC
48812002-06-12 Andrew Cagney <ac131313@redhat.com>
4882
4883 * Makefile.in (sim_arm_h): Define.
4884 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4885 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4886 (arm_register_sim_regno): New function, map an internal REGNUM
4887 onto a simulator register number.
4888 (arm_gdbarch_init): Set register_sim_regno.
4889
814b3ba0
AH
48902002-06-09 Aldy Hernandez <aldyh@redhat.com>
4891
4892 * MAINTAINERS: Add self.
4893
475b0867
JB
48942002-06-11 Jim Blandy <jimb@redhat.com>
4895
919d772c
JB
4896 * source.c (source_info): Mention whether the symtab has
4897 information about preprocessor macros.
4898
475b0867
JB
4899 Call the command `info macro', not `show macro'.
4900 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4901 Fix error message.
4902 (_initialize_macrocmd): Register `info_macro_command' in
4903 `infolist', not `showlist'.
4904
9e364162
DJ
49052002-06-11 Daniel Jacobowitz <drow@mvista.com>
4906
4907 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4908 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4909 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4910 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4911 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4912 unconditionally.
4913 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4914 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4915 (_initialize_mips_tdep): Remove dead code.
4916 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4917 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4918 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4919 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4920 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4921 MIPS_LAST_FP_ARG_REGNUM): Remove.
4922
23aa4c72
ML
49232002-06-11 Michal Ludvig <mludvig@suse.cz>
4924
4925 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4926 (unwind_tmp_obstack_free, parse_frame_info)
4927 (update_context, cfi_read_fp, cfi_write_fp)
4928 (cfi_frame_chain, cfi_init_extra_frame_info)
4929 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4930 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4931
70eb15a4
CV
49322002-06-11 Corinna Vinschen <vinschen@redhat.com>
4933
4934 * v850-tdep.c (v850_type_is_scalar): New function.
4935 (v850_use_struct_convention): Match current gcc implementation
4936 as close as possible.
4937 (v850_push_arguments): Fix stack_offset handling. Don't write
4938 struct_addr into register. This is done by v850_store_struct_return.
4939 (v850_extract_return_value): Care for structs.
4940 (v850_store_return_value): Ditto.
4941 (v850_store_struct_return): Actually write address.
4942
482a4d06
ML
49432002-06-11 Michal Ludvig <mludvig@suse.cz>
4944
4945 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4946 without debug information too.
4947
d855c300
AC
49482002-06-10 Andrew Cagney <ac131313@redhat.com>
4949
4950 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4951 Make multi-arch pure.
4952 * gdbarch.h, gdbarch.c: Re-generate.
4953 * arm-tdep.c (arm_print_float_info): Update.
4954 * arch-utils.h (default_print_float_info): Update.
4955 * arch-utils.c (default_print_float_info): Update.
4956 * infcmd.c (float_info): Update call.
4957
dd12a101
AC
49582002-06-10 Andrew Cagney <ac131313@redhat.com>
4959
4960 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4961 the front of the initialize list.
4962
101dcfbe
AC
49632002-06-10 Andrew Cagney <ac131313@redhat.com>
4964
4965 * infrun.c (struct inferior_status): Replace fields
4966 selected_frame_address and selected_level with field
4967 selected_frame_id.
4968 (save_inferior_status): Update. Use get_frame_id.
4969 (struct restore_selected_frame_args): Delete.
4970 (restore_selected_frame): Update. Use frame_find_by_id.
4971 (restore_inferior_status): Update.
4972
4973 * breakpoint.h (struct breakpoint): Change type of
4974 watchpoint_frame to frame_id.
4975 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4976 call to get_current_frame.
4977 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4978 get_current_frame.
4979 (watchpoint_check): Use frame_find_by_id.
4980
4981 * frame.h (record_selected_frame): Delete declaration.
4982 * stack.c (record_selected_frame): Delete function.
4983
4984 * frame.h (struct frame_id): Define.
4985 (get_frame_id): Declare.
4986 (frame_find_by_id): Declare.
4987 * frame.c (frame_find_by_id): New function.
4988 (get_frame_id): New function.
4989
304270b6
AV
49902002-06-10 Andrey Volkov <avolkov@transas.com>
4991
4992 * ser-e7kpc.c: Fix duplicated define and call of
4993 _initialize_ser_e7000pc
4994
2f2cf184
DJ
49952002-06-09 Daniel Jacobowitz <drow@mvista.com>
4996
4997 * signals/signals.c (target_signal_from_host): Fix #ifdef
4998 SIGRTMIN case.
4999 (do_target_signal_to_host): Likewise.
5000
caaa3122
DJ
50012002-06-09 Daniel Jacobowitz <drow@mvista.com>
5002
5003 * mips-tdep.c (mips_find_abi_section): New function.
5004 (mips_gdbarch_init): Call it.
5005
6ac5df3a
MK
50062002-06-09 Mark Kettenis <kettenis@gnu.org>
5007
5008 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5009 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5010 after Andrew's 2002-06-08 gdbarch change.
5011
82ea117a
MK
50122002-06-09 Mark Kettenis <kettenis@gnu.org>
5013
5014 * i386-linux-nat.c (suppy_gregset): Don't supply
5015 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5016 register cache.
5017 (fill_gregset): Don't fetch it under the same circumstances.
5018
3c25f8c7
AC
50192002-06-09 Andrew Cagney <cagney@redhat.com>
5020
5021 * Makefile.in (callback_h): Define.
5022 (remote_sim_h): Update path to remote-sim.h.
5023 (remote-rdp.o): Add $(callback_h).
5024 (remote-sim.o): Use $(callback_h).
5025 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5026 * remote-rdp.c: Include "gdb/callback.h".
5027
1029b7fa
MK
50282002-06-09 Mark Kettenis <kettenis@gnu.org>
5029
5030 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5031 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5032
616675d3
AC
50332002-06-08 Andrew Cagney <ac131313@redhat.com>
5034
a3efda28
AC
5035 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5036 * rdi-share/serpardr.c: Ditto.
5037 * rdi-share/unixcomm.c: Ditto.
5038 * rdi-share/serdrv.c: Ditto.
5039 * rdi-share/hostchan.h: Ditto.
5040 * rdi-share/hostchan.c: Ditto.
5041 * rdi-share/host.h: Ditto.
5042 * rdi-share/devsw.c: Ditto.
5043
c5f10366
AC
5044 * objfiles.h: Change type of obj_private to void pointer.
5045 * pa64solib.c: Update copyright. Don't include "assert.h", use
5046 strcmp instead of STREQ, use LONGEST, do not use PTR
5047 * somsolib.c: Ditto.
5048
616675d3
AC
5049 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5050 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5051 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5052
e4b415d9
AC
50532002-06-08 Andrew Cagney <ac131313@redhat.com>
5054
5055 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5056 (default_get_saved_register): Delete function.
5057 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5058 generic_unwind_get_saved_register.
5059 * gdbarch.h, gdbarch.c: Re-generate.
5060
ca0d0b52
AC
50612002-06-08 Andrew Cagney <ac131313@redhat.com>
5062
5063 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5064 generic_func_frame_chain_valid.
5065 * gdbarch.h, gdbarch.c: Re-generate.
5066 * blockframe.c (generic_func_frame_chain_valid): Only check
5067 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5068 passing FP to PC_IN_CALL_DUMMY.
5069 Fix PR gdb/360.
5070
76860b5f
AC
50712002-06-08 Andrew Cagney <ac131313@redhat.com>
5072
5073 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5074 (register_gdbarch_data): Initialize init_p.
5075 (gdbarch_data): Initialize data pointer using the init function.
5076 (init_gdbarch_data): Delete function.
5077 (gdbarch_update_p): Update.
5078 (initialize_non_multiarch): Update.
5079 (struct gdbarch): Add field initialized_p.
5080 * gdbarch.h, gdbarch.c: Re-generate.
5081
8dda9770
ML
50822002-06-07 Michal Ludvig <mludvig@suse.cz>
5083
5084 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5085 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5086 better do the things actually here.
5087 * x86-64-tdep.c (x86_64_register_name2nr): New.
5088 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5089 (x86_64_gdbarch_init): Respect the above change.
5090 * x86-64-tdep.h (x86_64_register_name2nr)
5091 (x86_64_register_nr2name): Add prototypes.
5092 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5093
3d79a47c
MS
50942002-06-06 Michael Snyder <msnyder@redhat.com>
5095
7bd91a28
MS
5096 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5097 Delete extra braces and re-indent.
5098 (d10v_store_return_value): Char return values
3d79a47c
MS
5099 must be shifted over by one byte in R0.
5100 (d10v_extract_return_value): Delete extra braces, re-indent.
5101
095a4c96
EZ
51022002-06-06 Elena Zannoni <ezannoni@redhat.com>
5103
5104 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5105 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5106 (d10v_integer_to_address): Rewrite.
5107 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5108 the d10v specific functions which take care of converting to the
5109 correct space.
5110
e8a77ca4
EZ
51112002-06-06 Elena Zannoni <ezannoni@redhat.com>
5112
5113 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5114 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5115
4f2e4a4f
AC
51162002-06-02 Andrew Cagney <ac131313@redhat.com>
5117
5118 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5119 includes.
5120 * config/tm-linux.h: Ditto.
5121 * config/alpha/tm-alphalinux.h: Ditto.
5122 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5123 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5124 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5125 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5126 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5127 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5128 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5129 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5130 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5131 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5132 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5133 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5134 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5135 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5136 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5137 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5138 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5139 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5140 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5141 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5142 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5143 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5144 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5145 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5146 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5147 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5148 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5149 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5150 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5151 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5152 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5153 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5154 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5155 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5156 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5157 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5158 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5159
ae2ab2ce
AS
51602002-05-04 Aidan Skinner <aidan@velvet.net>
5161
5162 * ada-exp.tab.c: New file
5163 * ada-exp.y: New file
5164 * ada-lang.c: New file
5165 * ada-lang.h: New file
5166 * ada-lex.c: New file
5167 * ada-lex.l: New file
5168 * ada-tasks.c: New file
5169 * ada-typeprint.c: New file
5170 * ada-valprint.c: New file
5171
0ddd0135
JT
51722002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5173
5174 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5175 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5176
750fbacc
JT
51772002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5178
5179 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5180 insetead of ppc-linux-tdep.o.
5181 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5182 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5183
df94e18a
AC
51842002-06-02 Andrew Cagney <ac131313@redhat.com>
5185
5186 2002-05-07 Christian Groessler <chris@groessler.org>
5187 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5188 bit register contents for little endian hosts.
5189
1a38ab75
AC
51902002-06-01 Andrew Cagney <ac131313@redhat.com>
5191
5192 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5193 any maintainer.
5194
8b1632ac
AC
51952002-06-01 Andrew Cagney <ac131313@redhat.com>
5196
5197 * gdbarch.h: Regenerate.
5198
627054c8
AC
51992002-06-01 Andrew Cagney <ac131313@redhat.com>
5200
5201 * MAINTAINERS: Add everyone to write-after-approval list.
5202
4f460812
AC
52032002-06-01 Andrew Cagney <ac131313@redhat.com>
5204
5205 * stack.c (frame_info): Use frame_register_unwind instead of
5206 saved_regs. Mention when the SP is on the stack or in a register.
5207
5208 * frame.h (frame_register_unwind_ftype): Define. Document.
5209 (struct frame_info): Add field register_unwind and
5210 register_unwind_cache.
5211 (frame_register_unwind): Declare.
5212 (generic_unwind_get_saved_register): Declare.
5213
5214 * frame.c (frame_register_unwind): New function.
5215 (generic_unwind_get_saved_register): New function.
5216
5217 * blockframe.c (generic_call_dummy_register_unwind): New function.
5218 (frame_saved_regs_register_unwind): New function.
5219 (set_unwind_by_pc): New function.
5220 (create_new_frame): New function.
5221 (get_prev_frame): New function.
5222
de888f76
AC
52232002-05-30 Andrew Cagney <ac131313@redhat.com>
5224
5225 * a29k-share/: Delete directory.
5226 * remote-vx29k.c: Delete file.
5227
2f2c3626
JT
52282002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5229
5230 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5231 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5232
9ce5c36a
JT
52332002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5234
5235 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5236 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5237 (sparc64nbsd-nat.o)
5238 (sparcnbsd-nat.o)
5239 (sparcnbsd-tdep.o): New dependency lists.
5240 * NEWS: Note new UltraSPARC NetBSD native configuration.
5241 * configure.host (sparc64-*-netbsd*): New host.
5242 * configure.tgt (sparc-*-netbsdelf*)
5243 (sparc-*-netbsd*): Set gdb_target to nbsd.
5244 (sparc64-*-netbsd*): New target.
5245 * sparc64nbsd-nat.c: New file.
5246 * sparcnbsd-nat.c: New file.
5247 * sparcnbsd-tdep.c: New file.
5248 * sparcnbsd-tdep.h: New file.
5249 * config/sparc/nbsd.mt: New file.
5250 * config/sparc/nbsd64.mh: New file.
5251 * config/sparc/nbsd64.mt: New file.
5252 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5253 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5254 (HOST_IPC): Remove.
5255 * config/sparc/nbsdaout.mt: Remove.
5256 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5257 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5258 (HOST_IPC): Remove.
5259 * config/sparc/nbsdelf.mt: Remove.
5260 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5261 sparc-nat.c compatiblity defines.
5262 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5263 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5264 * config/sparc/tm-nbsd64.h: New file.
5265 * config/sparc/tm-nbsdaout.h: Remove.
5266 * config/sparc/xm-nbsd.h: Remove.
5267
ef3cf062
JT
52682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5269
5270 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5271 * sparc-tdep.c: Include osabi.h.
5272 (gdbarch_tdep): Add osabi member.
5273 (_initialize_sparc_tdep): Use gdbarch_register.
5274 (sparc_gdbarch_init): Use generic OS ABI framework.
5275 (sparc_dump_tdep): New function.
5276
ee8ff470
KB
52772002-05-30 Kevin Buettner <kevinb@redhat.com>
5278
5279 * corefile.c (do_captured_read_memory_integer): Return non-zero
5280 result.
5281 (safe_read_memory_integer): Copy result of memory read when
5282 status is non-zero. Also, add comments.
5283
7b112f9c
JT
52842002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5285
5286 * Makefile.in (ppc_tdep_h): Define.
5287 (ppc-linux-nat.o)
5288 (ppc-linux-tdep.o)
5289 (rs6000-tdep.o): Use $(ppc_tdep_h).
5290 (ppc-sysv-tdep.o)
5291 (ppcnbsd-nat.o)
5292 (ppcnbsd-tdep.o): New dependency lists.
5293 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5294 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5295 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5296 (ppc_sysv_abi_broken_use_struct_convention)
5297 (ppc_sysv_abi_use_struct_convention)
5298 (ppc_sysv_abi_push_arguments): Move to...
5299 * ppc-sysv-tdep.c: ...here.
5300 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5301 * rs6000-tdep.c (process_note_abi_tag_sections)
5302 (get_elfosabi): Remove.
5303 (rs6000_gdbarch_init): Use generic OS ABI framework.
5304 (rs6000_dump_tdep): New function.
5305 (_initialize_rs6000_tdep): Use gdbarch_register.
5306 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5307 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5308 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5309 of ppc-linux-tdep.o.
5310 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5311 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5312 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5313 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5314 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5315 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5316
480dd42a
JB
53172002-05-29 Jim Blandy <jimb@redhat.com>
5318
5319 * macroscope.c (default_macro_scope): Put `void' in empty argument
5320 list.
5321
4182591f
AC
53222002-05-29 Andrew Cagney <ac131313@redhat.com>
5323
5324 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5325 * arch-utils.c: Include "sim-regno.h".
5326 * gdbarch.sh: Don't include "sim-regno.h".
5327 * gdbarch.h, gdbarch.c: Regenerate.
5328 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5329 here.
5330 * arch-utils.h (legacy_register_sim_regno): To here.
5331 * remote-sim.c (legacy_register_sim_regno): Move function from
5332 here.
5333 * arch-utils.c (legacy_register_sim_regno): To here.
5334
8238d0bf
AC
53352002-05-28 Andrew Cagney <ac131313@redhat.com>
5336
5337 * sim-regno.h: New file.
5338 * Makefile.in (sim_regno_h): Define.
5339 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5340 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5341 (legacy_register_sim_regno): New function.
5342 (one2one_register_sim_regno): New function.
5343 (gdbsim_fetch_register): Rewrite.
5344 (gdbsim_store_register): Only store a register when
5345 REGISTER_SIM_REGNO is valid.
5346 * d10v-tdep.c: Include "sim-regno.h".
5347 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5348 (d10v_ts3_register_sim_regno): Ditto.
5349 * gdbarch.sh: Include "sim-regno.h".
5350 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5351 * gdbarch.h, gdbarch.c: Regenerate.
5352 * arch-utils.h (default_register_sim_regno): Delete declaration.
5353 * arch-utils.c (default_register_sim_regno): Delete function.
5354
485721b1
JT
53552002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5356
5357 * ppcnbsd-nat.c: Rewrite.
5358 * ppcnbsd-tdep.c: New file.
5359 * ppcnbsd-tdep.h: New file.
5360 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5361 solib.o, and solib-svr4.o.
5362 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5363 nbsd-tdep.o, and corelow.o.
5364
697f244d
AC
53652002-05-28 Andrew Cagney <ac131313@redhat.com>
5366
5367 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5368 `tr' and `sed'. Mention that `broken' targets are not expected to
5369 build.
5370
f08caad1 53712002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5372
5373 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5374 Let PC point right after the prologue before looking up symbols.
5375
3139facc
MH
53762002-05-27 Martin M. Hunt <hunt@redhat.com>
5377
5378 * i386-tdep.c (i386_register_virtual_type): Return
5379 builtin_type_vec128i for SSE registers.
5380
5381 * gdbtypes.h (builtin_type_vec128i): Declare.
5382
5383 * gdbtypes.c (build_builtin_type_vec128i): New function.
5384 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5385 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5386 (build_gdbtypes): Initialize new builtin vector types.
5387 (_initialize_gdbtypes): Register new vector types with gdbarch.
5388
6e3ba3b8
JT
53892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5392 since it has been multi-arch'd.
5393 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5394 Move Alpha and VAX multi-arch news entries to same section
5395 as other multi-arch news.
5396
93d5585d
JT
53972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5398
5399 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5400 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5401 static. Rename some register numbers to put them in ns32k-tdep
5402 private namespace.
5403 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5404 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5405 functions.
5406 (_initialize_ns32k_tdep): Use gdbarch_register.
5407 * ns32k-tdep.h: New file.
5408 * ns32knbsd-tdep.c: New file.
5409 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5410 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5411 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5412 REGISTER_BYTES, REGISTER_BYTE): Remove.
5413 * config/ns32k/tm-ns32k.h: New file.
5414 * config/ns32k/tm-umax.h: Remove.
5415
efb2c70e
JT
54162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5417
5418 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5419 ns32k_store_struct_return, ns32k_extract_return_value,
5420 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5421 functions.
5422 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5423 ns32k_saved_pc_after_call.
5424 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5425 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5426 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5427 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5428 ns32k_extract_struct_value_address.
5429
7bcc927b
JT
54302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5431
5432 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5433 ns32k_fix_call_dummy): New.
5434 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5435 ns32k_call_dummy_words.
5436 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5437 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5438 CALL_DUMMY_NARGS): Remove.
5439 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5440
78f9d765
JT
54412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5442
5443 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5444 ns32k_frame_saved_pc, ns32k_frame_args_address,
5445 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5446 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5447 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5448 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5449 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5450 (BREAKPOINT): Remove..
5451 (FRAME_CHAIN): Define as ns32k_frame_chain.
5452 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5453 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5454 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5455 (FRAME_FIND_SAVED_REGS): Remove.
5456 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5457 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5458 (POP_FRAME): Define as ns32k_pop_frame.
5459
f2c762e0
JT
54602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5461
5462 * ns32k-tdep.c (ns32k_register_byte_32082,
5463 ns32k_register_byte_32382, ns32k_register_raw_size,
5464 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5465 functions.
5466 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5467 ns32k_register_byte_32382.
5468 * config/ns32k/tm-umax.h: Update copyright years.
5469 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5470 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5471 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5472 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5473 (ns32k_get_enter_addr): Fix prototype.
5474
af137673
JT
54752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5476
5477 * ns32k-tdep.c: Update copyright years.
5478 (ns32k_register_name_32082): New function.
5479 (ns32k_register_name_32382): Ditto.
5480 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5481 (REGISTER_NAME): Define as ns32k_register_name_32382.
5482 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5483 (REGISTER_NAME): Define as ns32k_register_name_32082.
5484
a8bc7b56
JB
54852002-05-24 Jim Blandy <jimb@redhat.com>
5486
5487 * dwarf2read.c (free_line_header): Use xfree, not free.
5488
83a45910
JT
54892002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5490
5491 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5492 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5493
0db71247
AC
54942002-05-23 Andrew Cagney <ac131313@redhat.com>
5495
5496 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5497
b9e5e4dd
AC
54982002-05-23 Andrew Cagney <ac131313@redhat.com>
5499
5500 From Ross Alexander at NEC Europe:
5501 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5502
de530e84
MS
55032002-05-23 Michael Snyder <msnyder@redhat.com>
5504
5505 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5506 for input, rather than parse_and_eval_address.
5507
b91b96f4
AC
55082002-05-23 Andrew Cagney <ac131313@redhat.com>
5509
5510 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5511 * Makefile.in (sim_d10v_h): Update definition.
5512
8b279e7a
AC
55132002-05-24 Andrew Cagney <cagney@redhat.com>
5514
5515 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5516 change `2002-05-22 Michael Snyder' below.
5517 (d10v_push_arguments): Ditto.
5518 (d10v_extract_return_value): Ditto.
5519
0a3d0425
JB
55202002-05-23 Jim Blandy <jimb@redhat.com>
5521
5522 * macrotab.c (check_for_redefinition): Don't complain if the new
5523 definition is the same as the previous one. Take more arguments
5524 to allow the comparison.
5525 (macro_define_object, macro_define_function): Pass more arguments
5526 to check_for_redefinition.
5527
78eac43e
MS
55282002-05-22 Michael Snyder <msnyder@redhat.com>
5529
5530 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5531 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5532 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5533 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5534 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5535 Add a temp variable to save a call (and a memory read).
5536 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5537 if possible (so that PC_IN_CALL_DUMMY will work).
5538
9bc1edb8
CV
55392002-05-22 Corinna Vinschen <vinschen@redhat.com>
5540
5541 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5542
005ef3d2
ML
55432002-05-22 Michal Ludvig <mludvig@suse.cz>
5544
5545 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5546 fde->cie_ptr.
5547 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5548 (dwarf2_build_frame_info): Add offset to fde->initial_location
5549 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5550 (execute_stack_op): Change type of 'result' from ULONGEST to
5551 CORE_ADDR.
005ef3d2 5552
fcf4f891
JT
55532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5554
5555 * config/alpha/tm-nbsd.h: Include solib.h.
5556
cfef91e4
JT
55572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5558
5559 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5560 assumptions about the host's byte order.
5561
9964235a
JT
55622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5563
5564 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5565 to dependency list.
5566 * alphanbsd-tdep.c: Include solib-svr4.h.
5567 * shnbsd-tdep.c: Ditto.
5568
9eeef8ef
JT
55692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5570
5571 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5572 nbsd-tdep.h to dependency list.
5573 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5574 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5575 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5576 nbsdaout.mh and nbsdelf.mh consistently.
5577 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5578 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5579 nbsdaout.mt and nbsdelf.mh consistently.
5580 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5581 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5582 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5583 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5584 a.out shared library stuff from here...
5585 * config/nm-nbsdaout.h: ...to here.
5586 * config/tm-nbsd.h: Remove.
5587 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5588 * config/arm/nbsd.mh: Remove.
5589 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5590 nbsd-tdep.o.
5591 * config/arm/nbsdaout.mh: New file.
5592 * config/arm/nbsdelf.mh: New file.
5593 * config/arm/nm-nbsdaout.h: New file.
5594 * config/i386/nbsd.mh: Remove.
5595 * config/i386/nbsd.mt: Remove.
5596 * config/i386/nbsdaout.mh: New file.
5597 * config/i386/nbsdaout.mt: New file.
5598 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5599 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5600 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5601 i386_register_u_addr): Remove.
5602 * config/i386/nm-nbsdaout.h: New file.
5603 * config/i386/nm-nbsdelf.h: Remove.
5604 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5605 (USE_STRUCT_CONVENTION): Remove.
5606 * config/i386/tm-nbsdaout.h: New file.
5607 * config/i386/tm-nbsdelf.h: Remove.
5608 * config/m68k/nbsd.mh: Remove.
5609 * config/m68k/nbsd.mt: Remove.
5610 * config/m68k/nbsdaout.mh: New file.
5611 * config/m68k/nbsdaout.mt: New file.
5612 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5613 * config/m68k/nm-nbsdaout.h: New file.
5614 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5615 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5616 * config/ns32k/nbsd.mh: Remove.
5617 * config/ns32k/nbsd.mt: Remove.
5618 * config/ns32k/nbsdaout.mh: New file.
5619 * config/ns32k/nbsdaout.mt: New file.
5620 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5621 * config/ns32k/nm-nbsdaout.h: New file.
5622 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5623 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5624 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5625 (SVR4_SHARED_LIBS): Remove.
5626 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5627 * config/sparc/nbsd.mh: Remove.
5628 * config/sparc/nbsd.mt: Remove.
5629 * config/sparc/nbsdaout.mh: New file.
5630 * config/sparc/nbsdaout.mt: New file.
5631 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5632 * config/sparc/nbsdelf.mt: New file.
5633 * config/sparc/nm-nbsdaout.h: New file.
5634 * config/sparc/nm-nbsdelf.h: Remove.
5635 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5636 * config/sparc/tm-nbsdaout.h: New file.
5637
257ce470
JT
56382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5639
5640 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5641 mipsnbsd-tdep.c
5642 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5643
76a6d5fe
JT
56442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5645
5646 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5647 shnbsd-nat.c.
5648 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5649
45888261
JT
56502002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * NEWS: Note new MIPS NetBSD native configuration.
5653 * configure.host (mips*-*-netbsd*): New host.
5654 * configure.tgt (mips*-*-netbsd*): New target.
5655 * mipsnbsd-nat.c: New file.
5656 * mipsnbsd-tdep.c: New file.
5657 * mipsnbsd-tdep.h: New file.
5658 * config/mips/nbsd.mh: New file.
5659 * config/mips/nbsd.mt: New file.
5660 * config/mips/nm-nbsd.h: New file.
5661 * config/mips/tm-nbsd.h: New file.
5662
70f80edf
JT
56632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5664
5665 * Makefile.in (SFILES): Add osabi.c.
5666 (COMMON_OBS): Add osabi.o.
5667 (osabi.o): New dependency list.
5668 * osabi.c: New file.
5669 * osabi.h: New file.
5670 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5671
5672 * Makefile.in (alpha_tdep_h): Define and use instead of
5673 alpha-tdep.h.
5674 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5675 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5676 Remove.
5677 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5678 * alpha-tdep.h: Include osabi.h.
5679 (alpha_abi): Remove.
5680 (gdbarch_tdep): Use generic OS ABI framework.
5681 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5682 gdbarch_register_osabi.
5683 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5684 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5685 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5686
5687 * Makefile.in (sh_tdep_h): Add osabi.h.
5688 * sh-tdep.h (sh_osabi): Remove.
5689 (gdbarch_tdep): Use generic OS ABI framework.
5690 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5691 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5692 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5693 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5694
5695 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5696 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5697 gdbarch_register_osabi.
5698 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5699 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5700 (get_elfosabi): Rename to...
5701 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5702 ABI framework support routines.
5703 (arm_gdbarch_init): Use generic OS ABI framework.
5704 (arm_dump_tdep): Likewise.
5705 (_initialize_arm_tdep): Likewise.
5706 * arm-tdep.h: Include osabi.h.
5707 (arm_abi): Remove.
5708 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5709 osabi member.
5710 (arm_gdbarch_register_os_abi): Remove prototype.
5711 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5712 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5713
5714 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5715 * mips-tdep.c: Include osabi.h.
5716 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5717 OS ABI framework.
5718
d194345b
KH
57192002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5720
5721 * h8300-tdep.c: Fix formatting.
5722
70c6b0d1
EZ
57232002-05-20 Elena Zannoni <ezannoni@redhat.com>
5724
5725 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5726 printing vector registers.
5727
165b8e33
AC
57282002-05-19 Andrew Cagney <ac131313@redhat.com>
5729
5730 From Fernando Nasser:
5731 * remote.c (remote_async_open_1): Re-throw the exception when the
5732 connection fails.
5733 (remote_cisco_open): Ditto.
5734 (remote_open_1): Ditto.
5735
36918e70
AC
57362002-05-19 Andrew Cagney <ac131313@redhat.com>
5737
5738 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5739 (remote_start_remote): Add uiout parameter. Pass through to
5740 remote_start_remote_dummy.
5741 (remote_open_1): Use catch_exception instead of catch_errors.
5742 (remote_async_open_1): Ditto.
5743 (remote_cisco_open): Ditto.
5744
ae44c0c4
AC
57452002-05-19 Andrew Cagney <ac131313@redhat.com>
5746
5747 * remote.c (remote_start_remote): Replace PTR with void pointer.
5748 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5749 static.
5750
8efe637d
AC
57512002-05-18 Andrew Cagney <ac131313@redhat.com>
5752
5753 * gdb_indent.sh: Allow the script to be run in the sim directory.
5754
2f1b5984
MK
57552002-05-18 Mark Kettenis <kettenis@gnu.org>
5756
f0f625e2
MK
5757 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5758 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5759
2f1b5984
MK
5760 * corelow.c (core_open): Only call set_gdbarch_from_file if
5761 exec_bfd is NULL.
5762
fc974602
AV
57632002-05-17 Andrey Volkov <avolkov@transas.com>
5764
5765 * h8300-tdep.c: Add support of EXR register
5766 * config/h8300/tm-h8300.h: Ditto.
5767
906709f4
AV
57682002-05-17 Andrey Volkov <avolkov@transas.com>
5769
5770 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5771
6e591d68
AV
57722002-05-17 Andrey Volkov <avolkov@transas.com>
5773
5774 * h8300-tdep.c: Change literal regnums to REGNO.
5775
84f0252a
JB
57762002-05-17 Jim Blandy <jimb@redhat.com>
5777
e0e9281e
JB
5778 * NEWS: Note addition of macro support.
5779
84f0252a
JB
5780 Expand preprocessor macros in C expressions.
5781 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5782 (scan_macro_expansion, scanning_macro_expansion,
5783 finished_macro_expansion): New function declarations.
5784 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5785 variable declarations.
5786 * parser-defs.h (expression_context_pc): New declaration.
5787 * parse.c (expression_context_pc): New variable.
5788 (parse_exp_1): Set expression_context_pc, as well as
5789 expression_context_block.
5790 * c-exp.y (yylex): If we're not already reading the result of a
5791 macro expansion, try to macro-expand the next token. When we're
5792 done scanning a macro expansion, switch back to the mainline text.
5793 Commas and `if's in a macro's expansion don't terminate the input.
5794 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5795 (macro_original_text, macro_expanded_text,
5796 expression_macro_lookup_func, expression_macro_lookup_baton): New
5797 variables.
5798 (scan_macro_expansion, scanning_macro_expansion,
5799 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5800 c_preprocess_and_parse): New functions.
5801 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5802 c_preprocess_and_parse, instead of c_parse.
5803 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5804 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5805
1c509ca8
JR
5806Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5807
5808 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5809 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5810 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5811
2250ee0c
CV
58122002-05-17 Corinna Vinschen <vinschen@redhat.com>
5813
5814 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5815
ab3b8126
JT
58162002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5817
5818 * Makefile.in (sh_tdep_h): Define and use.
5819 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5820 register enum): Move to...
5821 * * sh-tdep.h: ...here.
5822 * sh-tdep.c: Include sh-tdep.h.
5823 * sh3-rom.c: Likewise.
5824 * shnbsd-tdep.c: Likewise.
5825
ed9d4749
MS
58262002-05-16 Michael Snyder <msnyder@redhat.com>
5827
5828 * arm-tdep.c: Spelling fix in comment.
5829
2e276125
JB
58302002-05-16 Jim Blandy <jimb@redhat.com>
5831
6821892e
JB
5832 Add commands for manually expanding macros and showing their
5833 definitions.
5834 * macrocmd.c, macroscope.c, macroscope.h: New files.
5835 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5836 (macroscope_h): New variable.
5837 (HFILES_NO_SRCDIR): Add macroscope.h.
5838 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5839 (macroscope.o, macrocmd.o): New rules.
5840
2e276125
JB
5841 Teach the Dwarf 2 reader to read macro information.
5842 * dwarf2read.c: #include "macrotab.h".
5843 (dwarf_macinfo_buffer): New variable.
5844 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5845 dwarf_macinfo_size.
5846 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5847 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5848 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5849 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5850 dwarf2_macro_spaces_in_definition): New complaints.
5851 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5852 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5853 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5854 the partial symbol table.
5855 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5856 from what's recorded in the partial symbol table.
5857 (read_file_scope): If the compilation unit has a
5858 `DW_AT_macro_info' attribute, read its macro information.
5859 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5860
2f53fe6c
DJ
58612002-05-16 Daniel Jacobowitz <drow@mvista.com>
5862
5863 Fix PR gdb/546
5864 * ser-tcp.c: Don't include <netinet/udp.h>.
5865
2be99286
SC
58662002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5867
5868 * MAINTAINERS: Update my email address.
5869
c9af212b 58702002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5871
5872 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5873 include file of the same name.
5874
bf5f1a52
CV
58752002-05-16 Corinna Vinschen <vinschen@redhat.com>
5876
5877 * configure.tgt: Mark v850 as multi-arched.
5878 * config/v850/tm-v850.h: Remove file.
5879 * config/v850/v850.mt: Eliminate TM_FILE.
5880
435e042a
CV
58812002-05-16 Corinna Vinschen <vinschen@redhat.com>
5882
5883 * v850-tdep.c: Full multi-arch.
5884 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5885 Define GDB_MULTI_ARCH to 2.
5886
9819c6c8
PM
58872002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5888
5889 * p-exp.y (current_type): New static variable.
5890 Carries the type of the expression at the position that is parsed.
5891 (push_current_type, pop_current_type): Two new functions. Used
5892 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5893 (search_field): New static variable. Set to one after parsing a point
5894 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5895 (FIELDNAME): New token. After a point only a token belonging to
5896 current_type type definition is allowed.
5897 (all over token rules): reset and change current_type according
5898 to rules.
5899 (exp '[' rule): insert implicit array index field if
5900 exp is a pascal string type.
5901
3a06899a
CV
59022002-05-16 Corinna Vinschen <vinschen@redhat.com>
5903
5904 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5905 frame info. Use frame_info's saved_regs instead of matching member
5906 in extra_frame_info throughout.
5907 (v850_frame_init_saved_regs): New function.
5908 (v850_init_extra_frame_info): Move most functionality into
5909 v850_frame_init_saved_regs().
5910 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5911 (v850_frame_find_saved_regs): Remove declaration.
5912 (FRAME_FIND_SAVED_REGS): Remove definition.
5913 (v850_frame_init_saved_regs): Add declaration.
5914 (FRAME_INIT_SAVED_REGS): Add definition.
5915
6ed14b0e
CV
59162002-05-16 Corinna Vinschen <vinschen@redhat.com>
5917
5918 * v850-tdep.c: Begin multi-arch'ing v850.
5919 (v850_target_architecture_hook): Remove function.
5920 (v850_gdbarch_init): New function. Add code previously in
5921 v850_target_architecture_hook().
5922 (_initialize_v850_tdep): Don't set target_architecture_hook.
5923 Call register_gdbarch_init() instead.
5924
42725910
DJ
59252002-05-16 Daniel Jacobowitz <drow@mvista.com>
5926
5927 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5928 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5929 (fixup_class_method_type): Likewise.
5930
99d9066e
JB
59312002-05-15 Jim Blandy <jimb@redhat.com>
5932
5933 Add macro structures to GDB's symbol tables. Nobody puts anything
5934 in them yet.
5935 * symtab.h (struct symtab): New member: `macro_table'.
5936 * buildsym.h (pending_macros): New global variable.
5937 * buildsym.c: #include "macrotab.h".
5938 (buildsym_init): Initialize `pending_macros'.
5939 (end_symtab): If we found macro information while reading a CU's
5940 debugging info, do build a symtab structure for it. Make the
5941 symtab point to the macro information, and clear the
5942 `pending_macros' pointer which held it while we were reading the
5943 debug info.
5944 (really_free_pendings): Free any pending macro table.
5945 * objfiles.h (struct objfile): New member: `macro_cache'.
5946 * objfiles.c (allocate_objfile): Set allocate and free functions
5947 for the macro cache's objstack.
5948 (free_objfile): Empty the macro cache's obstack.
5949 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5950 set new allocate and free functions for it.
5951 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5952 free functions for the macro cache's objstack. (Why is this
5953 function building its own objfile?)
5954 * symmisc.c (print_objfile_statistics): Print statistics on the
5955 macro bcache.
5956 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5957
c899585b
RE
59582002-05-15 Richard Earnshaw <rearnsha@arm.com>
5959
5960 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5961 (REGISTER_U_ADDR): Delete definition.
5962 (arm_register_u_addr): Delete declaration.
5963
a6cdd8c5
RE
59642002-05-15 Richard Earnshaw <rearnsha@arm.com>
5965
5966 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5967 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5968
c97dcfc7
AC
59692002-05-14 Andrew Cagney <ac131313@redhat.com>
5970
5971 * regcache.c (register_valid): Revise comments refering to "Not
5972 available" and "unavailable".
5973 * frame.c (frame_register_read): Ditto.
5974 * findvar.c (value_of_register): Ditto.
5975
93021b7d
AC
59762002-05-15 Andrew Cagney <cagney@redhat.com>
5977
5978 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5979 (remote-sim.o): Update dependencies.
5980 (d10v-tdep.o): Specify dependencies.
5981 (sim_d10v_h): Define.
5982
a86bc61c
JB
59832002-05-14 Jim Blandy <jimb@redhat.com>
5984
5985 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5986 * macrotab.c (macro_lookup_inclusion, find_definition,
5987 new_macro_table): Same.
5988
5989 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5990 not `! strcmp ()'. This is a dubious improvement.
5991 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5992
5993 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5994 although it's not necessary, to avoid a warning.
5995
2fdde8f8
DJ
59962002-05-14 Daniel Jacobowitz <drow@mvista.com>
5997
5998 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5999 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6000 TYPE_INSTANCE_FLAGS.
6001 (struct main_type): New.
6002 (struct type): Move most members to struct main_type. Change
6003 cv_type and as_type to new type_chain member. Add instance_flags.
6004 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6005 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6006 (finish_cv_type): Remove prototype.
6007 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6008 Set TYPE_CHAIN.
6009 (alloc_type_instance): New function.
6010 (smash_type): New function.
6011 (make_pointer_type, make_reference_type, make_function_type)
6012 (smash_to_member_type, smash_to_method_type): Call smash_type.
6013 (make_qualified_type): New function.
6014 (make_type_with_address_space): Call make_qualified_type.
6015 (make_cv_type): Likewise.
6016 (finish_cv_type): Remove unnecessary function.
6017 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6018 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6019 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6020 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6021 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6022 * hpread.c (hpread_read_struct_type): Likewise.
6023 * stabsread.c (read_struct_type): Likewise.
6024
843fedf4
EZ
60252002-05-14 Elena Zannoni <ezannoni@redhat.com>
6026
6027 * configure.tgt: Add a catch all sh* target, for cases like
6028 sh[2,3,4]-elf and sh-hms.
6029
05a6c72c
KS
60302002-05-14 Keith Seitz <keiths@redhat.com>
6031
6032 * event-loop.c (create_file_handler): Don't do anything but
6033 update data when we are given a fd which we are already
6034 monitoring.
6035
5d085aaf
ML
60362002-05-14 Michal Ludvig <mludvig@suse.cz>
6037
6038 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6039 (update_context): Use __func__ in warnings.
6040
9db8d71f
DJ
60412002-05-14 Daniel Jacobowitz <drow@mvista.com>
6042
6043 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6044 and tcp_close to net_open and net_close.
6045 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6046 using UDP if requested. Don't try to disable Nagle on UDP
6047 sockets.
6048 * remote.c (remote_serial_open): New function. Warn about UDP.
6049 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6050
5dbc6baa
EZ
60512002-05-13 Elena Zannoni <ezannoni@redhat.com>
6052
6053 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6054
cc3023f7
EZ
60552002-05-13 Elena Zannoni <ezannoni@redhat.com>
6056
6057 * configure.tgt: Remove sh-hms target.
6058 * MAINTAINERS: Don't list sh-hms as a separate target.
6059
ec2bcbe7
JB
60602002-05-13 Jim Blandy <jimb@redhat.com>
6061
6062 Add first preprocessor macro-expansion files.
6063 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6064 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6065 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6066 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6067 (COMMON_OBS): Add macrotab.o, macroexp.o.
6068 (macroexp.o, macrotab.o): New rules.
6069
6d531722
AC
60702002-05-13 Andrew Cagney <ac131313@redhat.com>
6071
6072 * config/m88k/tm-m88k.h: Update copyright.
6073 (m88k_target_write_pc): Declare
6074 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6075 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6076 (SHIFT_INST_REGS): Update definition.
6077 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6078 using old definition of TARGET_WRITE_PC.
6079 * regcache.c (generic_target_write_pc): Delete code handling
6080 NNPC_REGNUM.
6081 * gdbarch.sh (NNPC_REGNUM): Delete.
6082 * gdbarch.h, gdbarch.c: Regenerate.
6083
3e3f2739
RE
60842002-05-13 Richard Earnshaw <rearnsha@arm.com>
6085
6086 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6087 builtin reg number.
6088
0004e5a2
DJ
60892002-05-13 Daniel Jacobowitz <drow@mvista.com>
6090
6091 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6092 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6093 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6094 access macros.
6095 * c-typeprint.c (cp_type_print_method_args): Likewise.
6096 (c_type_print_args): Likewise.
6097 * d10v-tdep.c (d10v_push_arguments): Likewise.
6098 (d10v_extract_return_value): Likewise.
6099 * expprint.c (print_subexp): Likewise.
6100 * gdbtypes.c (lookup_primitive_typename): Likewise.
6101 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6102 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6103 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6104 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6105 (TYPE_VECTOR): Likewise.
6106 * hpread.c (hpread_read_struct_type)
6107 (fix_static_member_physnames, fixup_class_method_type)
6108 (hpread_type_lookup): Likewise.
6109 * mdebugread.c (parse_symbol, parse_type): Likewise.
6110 * p-lang.c (is_pascal_string_type): Likewise.
6111 * valops.c (hand_function_call): Likewise.
6112 * x86-64-tdep.c (classify_argument): Likewise.
6113
6114 * hpread.c (hpread_read_function_type)
6115 (hpread_read_doc_function_type): Call replace_type.
6116 * dstread.c (create_new_type): Delete.
6117 (decode_dst_structure, process_dst_function): Call alloc_type.
6118 Use type access macros.
6119
dff95cc7
MK
61202002-05-12 Mark Kettenis <kettenis@gnu.org>
6121
6122 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6123 the're not supported by the current architecture.
6124 (i387_fill_fxsave): Likewise.
6125
bbcd32ad
FF
61262002-05-12 Fred Fish <fnf@redhat.com>
6127
6128 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6129 sect_index_xxx members to index the first slot in section_offsets
6130 if all of the section_offsets are zero.
6131
89cf4787
MK
61322002-05-12 Mark Kettenis <kettenis@gnu.org>
6133
6134 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6135 checked in with last change.
6136
1f77ffc5
MK
61372002-05-12 Mark Kettenis <kettenis@gnu.org>
6138
6139 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6140 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6141 config.sub.
6142
89b8b4a9
DJ
61432002-05-12 Daniel Jacobowitz <drow@mvista.com>
6144
6145 * Makefile.in: Update dependencies.
6146
14a5e767
AC
61472002-05-11 Andrew Cagney <ac131313@redhat.com>
6148
6149 * language.c (local_hex_string_custom): Simplify. Do not depend
6150 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6151
6152 * memattr.c (mem_info_command): Replace calls to
6153 longest_local_hex_string and longest_local_hex_string_custom.
6154 * buildsym.c (make_blockvector): Ditto.
6155 * solib.c (info_sharedlibrary_command): Ditto.
6156 * tracepoint.c (tracepoints_info): Ditto.
6157 * symtab.c (print_msymbol_info): Ditto.
6158
6159 * language.c (local_hex_string): Delete.
6160 (local_hex_string_custom): Delete.
6161 (longest_local_hex_string): Rename to local_hex_string.
6162 (longest_local_hex_string_custom): Rename to
6163 local_hex_string_custom.
6164 * language.h (local_hex_string): Change parameter type to LONGEST.
6165 (local_hex_string_custom): Ditto.
6166 (longest_local_hex_string): Delete declaration.
6167 (longest_local_hex_string_custom): Ditto.
6168
6169 * solib.c: Update copyright.
6170 * memattr.c: Update copyright.
6171
13d01224
AC
61722002-05-11 Andrew Cagney <ac131313@redhat.com>
6173
6174 * arch-utils.h (legacy_register_to_value): Declare.
6175 (legacy_value_to_register): Declare.
6176 (legacy_convert_register_p): Declare.
6177 * arch-utils.c (legacy_register_to_value): New function.
6178 (legacy_value_to_register): New function.
6179 (legacy_convert_register_p): New function.
6180
6181 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6182 (VALUE_TO_REGISTER): Define.
6183 (CONVERT_REGISTER_P): Define.
6184 * gdbarch.h, gdbarch.c: Regenerate.
6185
6186 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6187 VALUE_TO_REGISTER.
6188 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6189 CONVERT_REGISTER_P.
6190
4a1970e4
DJ
61912005-05-11 Daniel Jacobowitz <drow@mvista.com>
6192 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6193
6194 * Makefile.in: Update dependencies for valops.c.
6195 * valops.c: Include "gdb_assert.h".
6196 (typecmp): Skip THIS parameter to methods.
6197 (find_method_list): Remove static_memfuncp argument,
6198 update callers. Check for stub methods.
6199 (find_value_oload_method_list): Don't set *static_memfuncp.
6200 (find_overload_match): Don't check for stub methods. Assert
6201 that methods are not stubbed. Handle static methods.
6202 (value_find_oload_method_list): Remove static_memfuncp argument.
6203 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6204 to the argument list for static stub methods.
6205 * value.h (value_find_oload_method_list): Update prototype.
6206
b2e75d78
AC
62072002-05-11 Andrew Cagney <ac131313@redhat.com>
6208
6209 * arch-utils.h (generic_register_size): Declare.
6210 (generic_register_raw_size, generic_register_virtual_size): Delete
6211 declarations.
6212 * arch-utils.c (generic_register_raw_size): Delete.
6213 (generic_register_size): New function.
6214 (generic_register_virtual_size): Delete.
6215
6216 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6217 default generic_register_size.
6218 * gdbarch.h, gdbarch.c: Re-generate.
6219
6220 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6221 register_virtual_size.
6222 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6223 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6224
451fbdda
AC
62252002-05-11 Andrew Cagney <ac131313@redhat.com>
6226
6227 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6228 * gdbarch.h, gdbarch.c: Regenerate.
6229 * gnu-v3-abi.c: Update copyright.
6230 (vtable_address_point_offset): Update.
6231 (gnuv3_rtti_type): Update.
6232 (gnuv3_baseclass_offset): Update.
6233 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6234 (init_fetch_link_map_offsets): Update.
6235 * remote.c (get_remote_state): Update.
6236
6d2f5cea
DJ
62372002-05-11 Daniel Jacobowitz <drow@mvista.com>
6238
6239 * TODO: Remove value_headof/value_from_vtable_info comment.
6240 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6241 * values.c (value_headof, value_from_vtable_info): Delete.
6242 * value.h (value_from_vtable_info): Delete prototype.
6243
d2324da4
AC
62442002-05-11 Andrew Cagney <ac131313@redhat.com>
6245
6246 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6247 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6248 $(gdb_regex_h).
6249 (gdb_assert_h): Define.
6250 (gdb_wait_h): Define.
6251 (gdb_regex_h): Define.
6252
5c717440
DJ
62532002-05-11 Daniel Jacobowitz <drow@mvista.com>
6254
6255 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6256 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6257
6c7861b3
JT
62582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * nbsd-tdep.c: Fix comment.
6261
ea5bc2a6
JT
62622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6263
6264 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6265 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6266 (nbsd-tdep.o): New dependency list.
6267 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6268 nbsd-tdep.h.
6269 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6270 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6271 * nbsd-tdep.c: New file.
6272 * nbsd-tdep.h: New file.
6273 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6274 nbsd-tdep.h.
6275 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6276 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6277 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6278 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6279
b28da865
JT
62802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6281
6282 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6283 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6284 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6285 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6286 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6287 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6288
4b8ff1fa
JT
62892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6290
6291 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6292 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6293 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6294 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6295 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6296 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6297 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6298
dfe6eb1f
JT
62992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6300
6301 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6302 fetch_elfcore_registers to...
6303 * i386nbsd-tdep.c: ...here.
6304 (i386nbsd_use_struct_convention): Rename to...
6305 (i386nbsd_aout_use_struct_convention): ...this.
6306 (i386nbsd_supply_reg): New function.
6307 (i386nbsd_fill_reg): New function.
6308 (fetch_core_registers): Use i386nbsd_supply_reg.
6309 (fetch_elfcore_registers): Likewise.
6310 (_initialize_i386nbsd_tdep): New function.
6311 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6312 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6313 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6314 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6315 (i386nbsd_aout_use_struct_convention): ...this.
6316
20cb8cda
JT
63172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6318
6319 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6320 (store_inferior_registers): Use shnbsd_fill_reg.
6321 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6322 sh_nbsd_supply_register): Collapse into...
6323 (shnbsd_supply_reg): ...this.
6324 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6325 (shnbsd_fill_reg): ...this.
6326 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6327 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6328 (fetch_core_registers): Use shnbsd_supply_reg.
6329 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6330 (sh_nbsd_core_fns): Rename to...
6331 (shnbsd_core_fns): ...this.
6332 (sh_nbsd_elfcore_fns): Rename to...
6333 (shnbsd_elfcore_fns): ...this.
6334 (sh_nbsd_init_abi): Rename to...
6335 (shnbsd_init_abi): ...this.
6336 (_initialize_sh_nbsd_tdep): Rename to...
6337 (_initialize_shnbsd_tdep): ...this.
6338 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6339 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6340 sh_nbsd_fill_register): Remove prototypes.
6341 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6342
e750d25e
JT
63432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6344
6345 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6346 (i387-nat.o): Delete dependency list.
6347 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6348 (x86-64-linux-nat.o): Likewise.
6349 * i387-nat.c: Delete file, moving contents to...
6350 * i387-tdep.c: ...here.
6351 * i387-nat.h: Rename...
6352 * i387-tdep.h: ...to this.
6353 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6354 * i386-linux-nat.c: Likewise.
6355 * i386bsd-nat.c: Likewise.
6356 * i386gnu-nat.c: Likewise.
6357 * i386nbsd-nat.c: Likewise.
6358 * i386v4-nat.c: Likewise.
6359 * x86-64-linux-nat.c: Likewise.
6360 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6361 * config/i386/go32.mh (NATDEPFILES): Likewise.
6362 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6363 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6364 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6365 * config/i386/linux.mh (NATDEPFILES): Likewise.
6366 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6367 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6368 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6369 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6370
1aee598a
JT
63712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6372
6373 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6374 (alphanbsd-nat.o): Remove dependency list.
6375 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6376 * alphanbsd-nat.c: Delete. Contents moved to...
6377 * alphanbsd-tdep.c: ...here.
6378 (_initialize_alphanbsd_tdep): Register core functions.
6379 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6380
12bcb0fe
JT
63812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6382
6383 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6384 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6385 (alphanbsd-nat.o): Likewise.
6386 (alphabsd-tdep.o): New dependency list.
6387 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6388 (fill_gregset): Use alphabsd_fill_reg.
6389 (supply_fpregset): Use alphabsd_supply_fpreg.
6390 (fill_fpregset): Use alphabsd_fill_fpreg.
6391 (fetch_inferior_registers): Use struct reg and struct fpreg
6392 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6393 and alphabsd_supply_fpreg.
6394 (store_inferior_registers): Use struct reg and struct fpreg
6395 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6396 and alphabsd_fill_fpreg.
6397 * alphabsd-tdep.c: New file.
6398 * alphabsd-tdep.h: New file.
6399 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6400 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6401 alphabsd_supply_fpreg.
6402 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6403 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6404
361d1df0
EC
64052002-05-11 Eric Christopher <echristo@redhat.com>
6406
6407 * mips-tdep.c (mips_double_register_type): Fix thinko.
6408 (mips_single_register_type): Ditto.
6409 * MAINTAINERS: Add self.
6410
92dd7cee
MK
64112002-05-11 Mark Kettenis <kettenis@gnu.org>
6412
6413 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6414 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6415 right thing on architectures with different endianness and/or
6416 integer sizes.
6417
e27da16d
JT
64182002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6419
6420 From Christian Limpach <chris@Pin.LU>
6421 * configure.in: Change sed expression which comments out
6422 NATDEPFILES to also comment out continuation lines.
6423 * configure: Regenerate.
6424
ddde02bd
EZ
64252002-05-10 Elena Zannoni <ezannoni@redhat.com>
6426
6427 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6428 big patch.
6429
1c922164
EZ
64302002-05-10 Elena Zannoni <ezannoni@redhat.com>
6431
6432 * sh-tdep.c: Include correct file.
6433
283150cd
EZ
64342002-05-10 Elena Zannoni <ezannoni@redhat.com>
6435
6436 New support for sh64-elf (sh5) target.
6437
6438 * configure.tgt: For sh64-elf target, default to sh-elf.
6439
6440 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6441 (struct gdbarch_tdep): Add new fields for new registers and ABI
6442 info.
361d1df0 6443
283150cd
EZ
6444 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6445 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6446 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6447 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6448 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6449 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6450 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6451 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6452 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6453 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6454 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6455 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6456 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6457 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6458 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6459 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6460 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6461 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6462 sign_extend, sh64_nofp_frame_init_saved_regs,
6463 sh64_init_extra_frame_info, sh64_get_saved_register,
6464 sh64_extract_struct_value_address, sh64_pop_frame,
6465 sh64_push_arguments, sh64_extract_return_value,
6466 sh64_store_return_value, sh64_show_media_regs,
6467 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6468 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6469 sh_sh64_register_virtual_type,
6470 sh_sh64_register_convert_to_virtual,
6471 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6472 sh64_register_read, sh64_pseudo_register_write,
6473 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6474 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6475 sh64_do_pseudo_register, sh_compact_do_registers_info,
6476 sh64_do_registers_info, sh_gdbarch_init): New functions.
6477
3117ed25
EZ
64782002-05-10 Elena Zannoni <ezannoni@redhat.com>
6479
6480 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6481
2654e6d4
DJ
64822002-05-10 Daniel Jacobowitz <drow@mvista.com>
6483
6484 * linespec.c (decode_line_1): Check for a double quote after
6485 a filename correctly.
6486
9ab3e532
JB
64872002-05-10 Jim Blandy <jimb@redhat.com>
6488
6489 Properly track the size of the current objfile's .debug_line section.
6490 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6491 (DWARF_LINE_SIZE): New macro.
6492 (dwarf2_build_psymtabs_hard): Record the line section's size in
6493 the partial symbol table.
6494 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6495 symbol table.
6496
126fa72d
PS
64972002-05-10 Petr Sorfa <petrs@caldera.com>
6498
6499 * ia64-tdep.c: Handle breakpoints on L instruction type
6500 in MLX instruction bundle by moving the breakpoint to
6501 the third slot (X instruction type) as L holds only data.
6502
1f077a3e
KB
65032002-05-10 Kevin Buettner <kevinb@redhat.com>
6504
6505 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6506 (process_one_symbol): Complain about discarding local symbols
6507 due to a misplaced N_LBRAC entry.
6508
8120c9d5 65092002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6510
6511 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6512 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6513 decrease the depth we are at, in the case of templates.
361d1df0 6514
67b2c998
DJ
65152002-05-09 Daniel Jacobowitz <drow@mvista.com>
6516
6517 * mips-tdep.c (mips_float_register_type): New function.
6518 (mips_double_register_type): New function.
6519 (mips_print_register): Use them.
6520 (do_fp_register_row): Likewise.
6521
fd326606
DJ
65222002-05-09 Daniel Jacobowitz <drow@mvista.com>
6523
6609d9af 6524 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6525 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6526 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6527
bef35864
MS
65282002-05-09 Michael Snyder <msnyder@redhat.com>
6529
6530 * remote-rdp.c (remote_rdp_can_run): Remove.
6531
c55a3f73
TT
65322002-05-09 Tom Tromey <tromey@redhat.com>
6533
6534 * jv-valprint.c (java_val_print): Handle `char' as a special case
6535 of TYPE_CODE_INT.
6536
b8d5e71d
MS
65372002-05-09 Michael Snyder <msnyder@redhat.com>
6538
6539 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6540 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6541 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6542 str r(0123),[sp,#nn].
361d1df0 6543 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6544 order-independent by placing it in a loop.
6545
e2cd42dd
MS
65462002-05-06 Michael Snyder <msnyder@redhat.com>
6547
6548 * stabsread.c (read_type): Add recognition for new attribute:
6549 "@V;" means that an array type is actually a vector.
6550 This is analogous to the vector flag that's been added to dwarf2.
6551
3ce1502b
MK
65522002-05-09 Mark Kettenis <kettenis@gnu.org>
6553
6554 * i386-tdep.h (i386_abi): New enum.
6555 (struct gdbarch_tdep): Replace os_ident member with abi.
6556 (i386_gdbarch_register_os_abi): New prototype.
6557 * i386-tdep.c (i386_abi_names): New array.
6558 (process_note_abi_tag_sections): Removed.
6559 (process_note_sections): New function.
6560 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6561 (struct i386_abi_handler): New struct.
6562 (i386_abi_handler_list): New variable.
6563 (i386_gdbarch_register_os_abi): New function.
6564 (i386_gdbarch_init): Adapt for the changes given above.
6565
084c156a
DJ
65662002-05-08 Daniel Jacobowitz <drow@mvista.com>
6567
6568 * gregset.h: Say "GNU/Linux".
6569
6599f021
EZ
65702002-05-08 Elena Zannoni <ezannoni@redhat.com>
6571
6572 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6573 (build_gdbtypes): Build builtin_type_v2_float.
6574 (_initialize_gdbtypes): Register new builtin type.
6575
40af4b0c
AC
65762002-05-08 Andrew Cagney <ac131313@redhat.com>
6577
6578 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6579 (clear_gdbarch_swap): New function.
6580 (initialize_non_multiarch): Call.
6581 (gdbarch_update_p): Before calling init(), swap out and clear the
6582 existing architecture.
6583 * gdbarch.c: Regenerate.
6584
4fe84f46
JT
65852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6586
6587 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6588 alphanbsd-tdep.c.
6589
4015edd1
JT
65902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6591
6592 * sh-nbsd-nat.c: Rename to...
6593 * shnbsd-nat.c: ...this.
6594 * sh-nbsd-tdep.c: Rename to...
6595 * shnbsd-tdep.c: ...this.
6596 * sh-nbsd-tdep.h: Rename to...
6597 * shnbsd-tdep.h: ...this.
6598 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6599 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6600
0e2bd219
RE
66012002-05-08 Richard Earnshaw <rearnsha@arm.com>
6602
6603 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6604 concatenation for command help messages.
6605
13a38d45
JT
66062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * NEWS: Note new sh*-*-netbsdelf* configuration.
6609 * configure.host: Set gdb_host_cpu to sh for all sh*.
6610 (sh*-*-netbsdelf*): New host.
6611 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6612 (sh*-*-netbsdelf*): New target.
6613 * sh-nbsd-nat.c: New file.
6614 * sh-nbsd-tdep.c: New file.
6615 * sh-nbsd-tdep.h: New file.
6616 * config/sh/nbsd.mh: New file.
6617 * config/sh/nbsd.mt: New file.
6618 * config/sh/nm-nbsd.h: New file.
6619 * config/sh/tm-nbsd.h: New file.
6620
d658f924
JT
66212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * sh-tdep.c (sh_osabi_names): Declare.
6624 (process_note_abi_tag_sections): New function.
6625 (get_elfosabi): Ditto.
6626 (sh_gdbarch_register_os_abi): Ditto.
6627 (sh_dump_tdep): Ditto.
6628 _initialize_sh_tdep): Use gdbarch_register to register
6629 sh_gdbarch_init and sh_dump_tdep.
6630 * config/sh/tm-sh.h (sh_osabi): Declare.
6631 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6632
848cfffb
AC
66332002-05-07 Andrew Cagney <ac131313@redhat.com>
6634
6635 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6636 (thumb_scan_prologue): Ditto.
6637 (arm_find_callers_reg): Ditto.
6638 (arm_frame_chain): Ditto.
6639 (arm_init_extra_frame_info): Ditto.
6640 (arm_frame_saved_pc): Ditto.
6641 (arm_pop_frame): Ditto.
6642 (arm_push_return_address): New function.
6643 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6644 call_dummy_location, call_dummy_breakpoint_offset_p,
6645 call_dummy_breakpoint_offset, call_dummy_p,
6646 call_dummy_stack_adjust_p, call_dummy_words,
6647 sizeof_call_dummy_words, call_dummy_start_offset,
6648 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6649 call_dummy_address, push_return_address and push_dummy_frame for
6650 generic dummy frames.
6651
e7d717c0
JT
66522002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6655 size computation for alloca.
6656 (sh_fp_frame_init_saved_regs): Likewise.
6657
7bbcf283
RE
66582002-05-07 Richard Earnshaw <rearnsha@arm.com>
6659
6660 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6661 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6662 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6663 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6664 * remote-rdp.c (remote_rdp_fetch_register): Use
6665 ARM_MAX_REGISTER_RAW_SIZE.
6666 (remote_rdp_store_register): Likewise.
6667
4657573b
ML
66682002-05-07 Michal Ludvig <mludvig@suse.cz>
6669
361d1df0 6670 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6671 added default labels to switch {} statements.
6672 * x86-64-tdep.c: Ditto.
6673 * x86-64-linux-nat.c: Ditto.
6674
010f3b2f
JT
66752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6676
6677 * solib.h: Protect against multiple inclusion.
6678
debd256d
JB
66792002-05-06 Jim Blandy <jimb@redhat.com>
6680
9ab3e532
JB
6681 Add first preprocessor macro-expansion files.
6682 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6683 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6684 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6685 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6686 (COMMON_OBS): Add macrotab.o, macroexp.o.
6687 (macroexp.o, macrotab.o): New rules.
6688
debd256d
JB
6689 Separate the job of reading the line number info statement program
6690 header (...expialidocious) out into its own function.
6691 * dwarf2read.c (struct line_head, struct filenames, struct
6692 directories): Replace with...
6693 (struct line_header): New structure, containing the full
6694 contents of the statement program header, including the
6695 include directory and file name tables.
6696 (read_file_scope): If we have line number info, instead of just
6697 calling dwarf_decode_lines to do all the work, call
6698 dwarf_decode_line_header first to get a `struct line_header'
6699 containing the data in the statement program header, and then
6700 pass that to dwarf_decode_lines, which will pick up where that
6701 left off. Be sure to clean up the `struct line_header' object.
6702 (dwarf_decode_line_header, free_line_header, add_include_dir,
6703 add_file_name): New functions.
6704 (dwarf_decode_lines): Move all the code to read the statement
6705 program header into dwarf_decode_line_header. Take the line
6706 header it built as the first argument, instead of the offset to
6707 the compilation unit's line number info. Use the new `struct
6708 line_header' type instead of the old structures. No need to do
6709 cleanups here now, since we don't allocate anything.
6710 (dwarf2_statement_list_fits_in_line_number_section,
6711 dwarf2_line_header_too_long): New complaints.
6712
ac3aafc7
EZ
67132002-05-06 Elena Zannoni <ezannoni@redhat.com>
6714
6715 * gdbtypes.c (init_vector_type): New function.
6716 (build_builtin_type_vec128): Simplify the representation of SIMD
6717 registers.
6718 (build_gdbtypes): Initialize new builtin vector types.
6719 (_initialize_gdbtypes): Register new vector types with gdbarch.
6720 (builtin_type_v4_float, builtin_type_v4_int32,
6721 builtin_type_v8_int16, builtin_type_v16_int8,
6722 builtin_type_v2_int32, builtin_type_v4_int16,
6723 builtin_type_v8_int8): New (renamed) SIMD types.
6724
13e49980
MK
67252002-05-06 Mark Kettenis <kettenis@gnu.org>
6726
6727 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6728 (i387_fill_fxsave): Likewise.
6729
997b20b8
AO
67302002-05-05 Alexandre Oliva <aoliva@redhat.com>
6731
6732 * alpha-tdep.c (alpha_extract_return_value): Don't use
6733 non-constant array size in prototype.
6734
535c96ce
AC
67352002-05-04 Andrew Cagney <ac131313@redhat.com>
6736
6737 From Brian Taylor <briant at model dot com>:
6738 * ui-out.c (ui_out_field_core_addr): Use the function
6739 longest_local_hex_string_custom'to format addresses > 32 bits
6740 wide.
6741
6742 * ui-out.c (ui_out_field_core_addr): Update comment.
6743
bedfa57b
AC
67442002-05-04 Andrew Cagney <ac131313@redhat.com>
6745
6746 * stack.c (select_and_print_frame): Make static. Delete the
6747 parameter `level'.
6748 (func_command): Update call.
6749 (select_frame_command): Delete code computing the frame level.
6750 * frame.h (select_and_print_frame): Delete declaration.
6751
f621c63e
AC
67522002-05-04 Andrew Cagney <ac131313@redhat.com>
6753
6754 * sparc-tdep.c (sparc_get_saved_register): Comment why
6755 get_prev_frame call is safe.
6756
0f7d239c
AC
67572002-05-04 Andrew Cagney <ac131313@redhat.com>
6758
6759 * frame.h (select_frame): Delete level parameter.
6760 * stack.c (select_frame): Update. Use frame_relative_level to
6761 obtain the frame's level.
6762 (select_and_print_frame): Update call.
6763 (select_frame_command): Ditto.
6764 (up_silently_base): Ditto.
6765 (down_silently_base): Ditto.
6766 * ocd.c (ocd_start_remote): Ditto.
6767 * remote-rdp.c (remote_rdp_open): Ditto.
6768 * remote-mips.c (mips_initialize): Ditto.
6769 (common_open): Ditto.
6770 * remote-e7000.c (e7000_start_remote): Ditto.
6771 * m3-nat.c (select_thread): Ditto.
6772 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6773 (child_get_current_exception_event): Ditto.
6774 * varobj.c (varobj_create): Ditto.
6775 (varobj_update): Ditto.
6776 (c_value_of_root): Ditto.
6777 * tracepoint.c (finish_tfind_command): Ditto.
6778 * corelow.c (core_open): Ditto.
6779 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6780 * thread.c (info_threads_command): Ditto.
6781 (switch_to_thread): Ditto.
6782 * infrun.c (normal_stop): Ditto.
6783 (restore_selected_frame): Ditto.
6784 (restore_inferior_status): Ditto.
6785 * breakpoint.c (insert_breakpoints): Ditto.
6786 (watchpoint_check): Ditto.
6787 (bpstat_stop_status): Ditto.
6788 (do_enable_breakpoint): Ditto.
6789 * blockframe.c (flush_cached_frames): Ditto.
6790 (reinit_frame_cache): Ditto.
6791
71d6c7b1
AC
67922002-05-04 Andrew Cagney <ac131313@redhat.com>
6793
6794 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6795 maintainer.
6796
cda6c68a
JB
67972002-05-04 Jim Blandy <jimb@redhat.com>
6798
6799 * gdbtypes.c (replace_type): Doc fix.
6800
5c1c87f0
AC
68012002-05-04 Andrew Cagney <ac131313@redhat.com>
6802
6803 * valprint.c (strcat_longest): Delete commented out function.
6804 Update copyright.
6805
cd9bfe15
AC
68062002-05-04 Andrew Cagney <ac131313@redhat.com>
6807
6808 * MAINTAINERS: Mark a29k as deleted.
6809 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6810 Move new configurations to the top.
6811 * configure.tgt: Remove a29k.
6812 * config/a29k/tm-vx29k.h: Delete.
6813 * config/a29k/vx29k.mt: Delete.
6814 * config/a29k/tm-a29k.h: Delete.
6815 * config/a29k/a29k-udi.mt: Delete.
6816 * config/a29k/a29k.mt: Delete.
6817 * a29k-tdep.c: Delete.
6818 * remote-udi.c: Delete.
6819 * remote-mm.c: Delete.
6820 * remote-eb.c: Delete.
6821 * remote-adapt.c: Delete.
6822 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6823 * config/s390/s390x.mt: Ditto.
6824 * config/s390/s390.mt: Ditto.
6825 * config/sparc/sparclynx.mh: Ditto.
6826 * config/sparc/linux.mh: Ditto.
6827 * config/pa/hppaosf.mh: Ditto.
6828 * config/pa/hppabsd.mh: Ditto.
6829 * config/ns32k/nbsd.mt: Ditto.
6830 * config/mips/vr5000.mt: Ditto.
6831 * config/m68k/sun3os4.mh: Ditto.
6832 * config/m68k/nbsd.mt: Ditto.
6833 * config/m68k/m68klynx.mh: Ditto.
6834 * config/m32r/m32r.mt: Ditto.
6835 * config/i386/x86-64linux.mt: Ditto.
6836 * config/i386/nbsdelf.mt: Ditto.
6837 * config/i386/nbsd.mt: Ditto.
6838 * config/i386/i386lynx.mh: Ditto.
6839
bf0c5130
AC
68402002-05-04 Andrew Cagney <ac131313@redhat.com>
6841
6842 * target.c (debug_print_register): New function. Handle oversize
6843 registers.
6844 (debug_to_fetch_registers): Call.
6845 (debug_to_store_registers): Call.
6846
2ae1c2d2
JB
68472002-05-03 Jim Blandy <jimb@redhat.com>
6848
13a393b0
JB
6849 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6850 (read_type): Doc fix.
6851 * gdbtypes.c (replace_type): Doc fix.
6852
2ae1c2d2
JB
6853 * stabsread.c (multiply_defined_struct): New complaint.
6854 (read_struct_type): If the type we were passed isn't empty, or
6855 incomplete, don't read the new struct type into it; complain,
6856 and return the original type unchanged. Take a new `type_code'
6857 argument, which is the type code for the new type.
6858 (read_type): Rather than storing the type's type code here, pass
6859 it as an argument to read_struct_type, and let that take care of
6860 storing it. That way, we don't overwrite the original type code,
6861 so read_struct_type can use it to decide whether we're overwriting
6862 something we shouldn't.
6863 (complain_about_struct_wipeout): New function.
6864
8de9bdc4
AC
68652002-05-03 Andrew Cagney <ac131313@redhat.com>
6866
6867 * gdbarch.sh: Assert that gdbarch is non-NULL.
6868 * gdbarch.c: Regenerate.
6869
f773fdbb
JM
68702002-05-03 Jason Merrill <jason@redhat.com>
6871
6872 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6873 and return NULL.
6874
0e04a514
ML
68752002-05-03 Michal Ludvig <mludvig@suse.cz>
6876
6877 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6878 (x86_64_dwarf2gdb_regno_map_length),
6879 (x86_64_dwarf2_reg_to_regnum): Added.
6880 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6881 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6882 (_initialize_x86_64_tdep): Synced with the change above.
6883 (x86_64_skip_prologue): Reformulated message.
6884
065432a8
PM
68852002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6886
6887 * f-exp.y: Also use new prev_lexptr variable
6888 to improve error reporting. Based on Michael Snyder
6889 2002-04-24 dated patch to c-exp.y.
6890 * jv-exp.y: Likewise.
6891 * m2-exp.y: Likewise.
6892
a3162708
EZ
68932002-05-02 Elena Zannoni <ezannoni@redhat.com>
6894
6895 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6896 we are dealing with vectors.
6897
03620c38
PM
68982002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6899
6900 * config/m68k/tm-nbsd.h: Obvious fix,
6901 correct machine name.
6902
6604db2e
PM
69032002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6904
6905 * p-typeprint.c (pascal_type_print_base): Add support
6906 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6907
0906b739
PM
69082002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6909
6910 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6911 for fondamental pascal 'char' type.
6912
e2625b33
PM
69132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6914
6915 * p-lang.h (is_pascal_string_type): Declaration changed,
6916 new sixth argument of type char ** added.
361d1df0 6917 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6918 changed. Args length_pos, length_size, string_pos, char_size
6919 can now be NULL. New argument arrayname set to the field
6920 name of the char array. Return value set to char array
6921 field index plus one.
361d1df0 6922 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6923 is_pascal_string_type function.
6924
cf17c188
AC
69252002-05-02 Andrew Cagney <cagney@redhat.com>
6926
6927 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6928 <cagney@redhat.com> change.
6929 * gdbarch.c: Regenerate.
6930
52bca491
AC
69312002-05-02 Andrew Cagney <cagney@redhat.com>
6932
6933 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6934 before probing for a new one. Detect errorenous gdbarch_init
6935 functions.
6936 * gdbarch.c: Regenerate.
6937
d5e72505
AC
69382002-05-01 Andrew Cagney <cagney@redhat.com>
6939
6940 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6941 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6942 * config/v850/tm-v850.h: Ditto. Update copyright.
6943
af566d9f
AC
69442002-04-30 Andrew Cagney <ac131313@redhat.com>
6945
6946 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6947 current_gdbarch.
6948
880d85fa
MS
69492002-04-30 Michael Snyder <msnyder@redhat.com>
6950
94c30b78
MS
6951 * arm-tdep.c: Whitespace clean-ups.
6952 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6953 should have been removed as part of 4/24 change.
6954
6f5987a6
KB
69552002-04-30 Kevin Buettner <kevinb@redhat.com>
6956
6957 * rs6000-tdep.c: Added comment describing how fpscr register
6958 numbers were chosen.
6959
1a113c93
MS
69602002-04-30 Michael Snyder <msnyder@redhat.com>
6961
6962 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6963
9a6f53fe
EZ
69642002-04-29 Elena Zannoni <ezannoni@redhat.com>
6965
6966 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6967 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6968 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6969
11ed25ac
KB
69702002-04-29 Kevin Buettner <kevinb@redhat.com>
6971
6972 From Louis Hamilton <hamilton@redhat.com>:
6973 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6974 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6975 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6976 not bfd-private xcoff data, to determine wordsize.
6977 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6978
ae232405
AC
69792002-04-29 Andrew Cagney <ac131313@redhat.com>
6980
6981 GDB 5.2 released from 5.2 branch.
6982
91fd20f7
ML
69832002-04-29 Michal Ludvig <mludvig@suse.cz>
6984
6985 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6986 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6987 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6988
2dc5091b
EZ
69892002-04-29 Elena Zannoni <ezannoni@redhat.com>
6990
6991 * rs6000-tdep.c (rs6000_extract_return_value,
6992 rs6000_store_return_value): Handle returning vectors.
6993 (rs6000_gdbarch_init): Use
6994 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6995 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6996 New function.
6997 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6998 vectors.
6999 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7000 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7001
2b9848d8
PM
70022002-04-24 Pierre Muller <ics.u-strasbg.fr>
7003
7004 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7005 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7006 with fprintf_unfiltered (gdb_stderr,...).
7007
f8d17dc5
PM
70082002-04-24 Pierre Muller <ics.u-strasbg.fr>
7009
7010 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7011 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7012 Replace fprintf (stderr,...
7013 with fprintf_unfiltered (gdb_stderr,....
7014 * remote-es.c: Likewise.
7015 * remote-os9k.c: Likewise.
7016 * remote-st.c: Likewise.
7017
2f2f1ad1
AS
70182002-04-28 Andreas Schwab <schwab@suse.de>
7019
7020 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7021 linux-proc.o and gcore.o.
7022
b6779aa2
AC
70232002-04-26 Michal Ludvig <mludvig@suse.cz>
7024
7025 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7026 code without frame pointers.
7027
7e57f5f4
AC
70282002-04-26 Andrew Cagney <ac131313@redhat.com>
7029
7030 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7031 ON_STACK is needed.
7032
2ceb85d0
BE
70332002-04-26 Ben Elliston <bje@redhat.com>
7034
7035 * target.c (do_xfer_memory): Correct reference to the new option
7036 "trust-readonly-sections".
7037
f5f8a009
EZ
70382002-04-26 Elena Zannoni <ezannoni@redhat.com>
7039
7040 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7041 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7042 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7043 vectors.
7044 (read_array_type): Record the fact that this array type is really a
7045 vector (i.e. are passed in by value).
7046
5868c862
JT
70472002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7048
7049 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7050 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7051 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7052 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7053 * alpha-linux-tdep.c: Include frame.h.
7054 (alpha_linux_sigcontext_addr): New function.
7055 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7056 alpha_linux_sigcontext_addr.
7057 * alpha-osf1-tdep.c: Include gdbcore.h.
7058 (alpha_osf1_sigcontext_addr): New function.
7059 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7060 alpha_osf1_sigcontext_addr.
7061 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7062 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7063
bfb01f37
AC
70642002-04-26 Andrew Cagney <ac131313@redhat.com>
7065
361d1df0 7066 * stack.c (selected_frame_level):
bfb01f37
AC
7067 (select_frame): Do not set selected_frame_level.
7068 * frame.h (selected_frame_level): Delete declaration.
7069
15813d3f
AC
70702002-04-26 Andrew Cagney <ac131313@redhat.com>
7071
7072 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7073 convert_from_func_ptr-addr when AIX / PowerOpen.
7074
6096c27a
AC
70752002-04-25 Andrew Cagney <ac131313@redhat.com>
7076
7077 * valops.c (hand_function_call): Call
7078 generic_save_call_dummy_addr.
7079 * frame.h (generic_save_call_dummy_addr): Declare.
7080 * blockframe.c (struct dummy_frame): Add fields call_lo and
7081 call_hi.
7082 (generic_find_dummy_frame): Check for PC in range call_lo to
7083 call_hi instead of entry_point_address.
7084 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7085 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7086 (generic_save_call_dummy_addr): New function.
7087
f510d44e
DM
70882002-04-24 David S. Miller <davem@redhat.com>
7089
7090 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7091 sparc_skip_prologue.
7092 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7093 information to find prologue when possible.
7094 (sparc_prologue_frameless_p): Call examine_prologue directly.
7095 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7096 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7097 second argument.
7098 (SKIP_PROLOGUE): Likewise.
7099
15d72a92
JT
71002002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7101
7102 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7103 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7104 indicate that the condition it was testing is always true.
7105 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7106 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7107 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7108
accc6d1f
JT
71092002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7110
7111 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7112 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7113 tdep->jb_pc and tdep->jb_elt_size.
7114 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7115 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7116 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7117 * alpha-nat.c (get_longjmp_target): Remove.
7118 (JB_ELEMENT_SIZE): Ditto.
7119 (JB_PC): Ditto.
7120 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7121 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7122 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7123 to alpha_get_longjmp_target.
7124 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7125 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7126 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7127
1bfdc549
AC
71282002-04-25 Andrew Cagney <ac131313@redhat.com>
7129
7130 * README: Update to GDB 5.2.
7131
1bd316f0
AC
71322002-04-25 Andrew Cagney <ac131313@redhat.com>
7133
7134 * gdbarch.sh (LC_ALL): Set to `c'.
7135
2e5ff58c
TR
71362002-04-25 Theodore A. Roth <troth@verinet.com>
7137
7138 * avr-tdep.c: Ran through gdb_indent.sh.
7139
e33ce519
TR
71402002-04-25 Theodore A. Roth <troth@verinet.com>
7141
7142 * MAINTAINERS: Add myself as AVR maintainer.
7143 * NEWS: Note new target avr.
7144
8818c391
TR
71452002-04-25 Theodore A. Roth <troth@verinet.com>
7146
7147 * Makefile.in: Add support for AVR target.
7148 * configure.tgt: Add support for AVR target.
7149 * avr-tdep.c: New file
7150 * config/avr/avr.mt: New file.
7151
79509c2d
TR
71522002-04-25 Theodore A. Roth <troth@verinet.com>
7153
7154 * MAINTAINERS: Add myself to write-after-approval.
7155
dac8068e
PM
71562002-04-24 Pierre Muller <ics.u-strasbg.fr>
7157
7158 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7159 with fprintf_unfiltered (gdb_stderr,....
7160
25bf3106
PM
71612002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7162
7163 Fix PR gdb/508.
7164 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7165
24467a86
PM
71662002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7167
7168 * p-exp.y: Also use new prev_lexptr variable
7169 to improve error reporting. Based on Michael Snyder
7170 2002-04-24 dated patch to c-exp.y.
7171
95b80706
JT
71722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7173
7174 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7175 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7176 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7177 to 0.
7178 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7179 and struct value.
7180 (FUNCTION_START_OFFSET): Remove.
7181 (BREAKPOINT): Ditto.
7182
e90cc612
JT
71832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7184
7185 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7186 * NEWS: Ditto.
7187
6c72f9f9
JT
71882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7191 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7192 alpha_linux_pc_in_sigtramp.
7193 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7194 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7195 alpha_osf1_pc_in_sigtramp.
7196 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7197 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7198 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7199 alphafbsd_pc_in_sigtramp.
7200 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7201 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7202 alphanbsd_pc_in_sigtramp.
7203 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7204 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7205
5e4f3379
JT
72062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7207
7208 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7209
da8ca43d
JT
72102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7211
7212 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7213 alphanbsd-tdep.c.
7214 (alphanbsd-nat.o): New dependency list.
7215 (alphanbsd-tdep.o): Ditto.
7216 * NEWS: Note new native NetBSD/alpha configuration.
7217 * alphanbsd-nat.c: New file.
7218 * alphanbsd-tdep.c: Ditto.
7219 * configure.host (alpha*-*-netbsd*): New host.
7220 * configure.tgt (alpha*-*-netbsd*): New target.
7221 * config/alpha/nbsd.mh: New file.
7222 * config/alpha/nbsd.mt: Ditto.
7223 * config/alpha/nm-nbsd.h: Ditto.
7224 * config/alpha/tm-nbsd.h: Ditto.
7225
36a6271d
JT
72262002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7227
7228 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7229 (alpha-osf1-tdep.o): New dependency list.
7230 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7231 and skip_sigtramp_frame members.
7232 * alpha-linux-tdep.c: Include gdbcore.h.
7233 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7234 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7235 * alpha-osf1-tdep.c: New file.
7236 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7237 alpha-osf1-dep.c.
7238 (alpha_frame_past_sigtramp_frame): New function.
7239 (alpha_dynamic_sigtramp_offset): Ditto.
7240 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7241 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7242 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7243 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7244 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7245 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7246 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7247 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7248 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7249 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7250 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7251 to find_solib_trampoline_target.
7252 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7253 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7254 (SKIP_TRAMPOLINE_CODE): Remove.
7255 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7256 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7257 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7258 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7259 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7260 (PROC_SIGTRAMP_MAGIC): Ditto.
7261 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7262 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7263 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7264 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7265 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7266
2f4bc57b
JT
72672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * NEWS: Note that Alpha targets are now multi-arch.
7270
665132f9
MS
72712002-04-24 Michael Snyder <msnyder@redhat.com>
7272
7273 * parser-defs.h (prev_lexptr): New external variable.
7274 * parse.c (parse_exp_1): Set prev_lexptr to null before
7275 calling the language-specific parser.
7276 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7277 (yyerror): Use prev_lexptr in error reporting.
7278
32872fa7
DJ
72792002-04-24 Daniel Jacobowitz <drow@mvista.com>
7280
7281 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7282 * gregset.h: If FILL_FPXREGSET is defined, provide
7283 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7284 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7285 is defined, call fill_fpxregset.
7286
57e76fac
MS
72872002-04-24 Roland McGrath <roland@frob.com>
7288
7289 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7290 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7291 (supply_gregset, supply_fpregset): New functions.
7292
7293 * gnu-nat.c (gnu_find_memory_regions): New function.
7294 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7295 (gnu_xfer_memory): Add a cast.
7296
f43845b3
MS
72972002-04-24 Michael Snyder <msnyder@redhat.com>
7298
361d1df0 7299 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7300 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7301 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7302 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7303 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7304 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7305
a0abec03
AC
7306Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7307
7308 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7309 NUM_PSEUDO_REGS can be used.
7310
d7bd68ca
AC
73112002-04-24 Andrew Cagney <ac131313@redhat.com>
7312
7313 * arch-utils.h: Update copyright.
7314
7315 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317
7318 * inferior.h (IN_SIGTRAMP): Delete definition.
7319 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7320 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7321
7322 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7323 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7324 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7325 (find_proc_framesize): Ditto.
7326 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7327 (alpha_init_extra_frame_info): Ditto.
7328 * infrun.c (handle_inferior_event): Ditto.
7329 (handle_inferior_event): Ditto.
7330 (check_sigtramp2): Ditto.
7331 * blockframe.c (create_new_frame): Ditto.
7332 (get_prev_frame): Ditto.
7333 * ppc-linux-tdep.c: Update comments.
7334 * i386-linux-tdep.c: Update comments.
7335 * breakpoint.c (bpstat_what): Update comment.
7336
4867e41e
DM
73372002-04-24 David S. Miller <davem@redhat.com>
7338
21d83aa5
DM
7339 * i960-tdep.c (register_in_window_p): New function.
7340 (i960_find_saved_register): Use it instead of
7341 REGISTER_IN_WINDOW_P.
7342 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7343
4867e41e
DM
7344 * symtab.h (find_stab_function_addr): Kill extern.
7345 * minsyms.c (find_stab_function_addr): Remove from here...
7346 * dbxread.c: ... to here, and mark it static.
7347
69cdf6a2
DM
73482002-04-20 David S. Miller <davem@redhat.com>
7349
7350 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7351 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7352
5a595886
DM
73532002-04-21 David S. Miller <davem@redhat.com>
7354
7355 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7356 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7357 (vx_write_register): Likewise.
7358
1da1a192
JB
73592002-04-23 J. Brobecker <brobecker@gnat.com>
7360
7361 * source.c (is_regular_file): New function.
7362 (openp): Check wether file to open is a regular file
7363 to avoid opening directories.
7364
baa6f10b
JT
73652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7366
7367 * findvar.c (extract_signed_integer): Cast printf argument
7368 to suppress format warning.
7369 (extract_unsigned_integer): Likewise.
7370 * infcmd.c (registers_info): Likewise.
7371 * top.c (get_prompt_1): Likewise.
7372 * valops.c (value_assign): Likewise.
7373 * valprint.c (print_decimal): Likewise.
7374
b2c4da81
L
73752002-04-22 H.J. Lu (hjl@gnu.org)
7376
7377 * c-exp.y (typebase): Support
361d1df0 7378
b2c4da81
L
7379 [long|long long|short] [signed|unsigned] [int|]
7380
7381 and
7382
7383 signed [long|long long|short] int
7384
f267bd6a
JT
73852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7388 and vax-tdep.h.
7389 * vax-tdep.h: New file.
7390 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7391 Make several routines static.
7392 (vax_get_saved_register): New function.
7393 (vax_gdbarch_init): New function.
7394 (_initialize_vax_tdep): Register vax_gdbarch_init.
7395 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7396 Remove macros now under the control of gdbarch.
7397
da3c6d4a
MS
73982002-04-22 Michael Snyder <msnyder@redhat.com>
7399
11d3b27d
MS
7400 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7401 Some whitespace and coding standards tweaks.
da3c6d4a 7402
a33f7558
JT
74032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7404
7405 * vax-tdep.c: Include regcache.h.
7406 (vax_call_dummy_words): New.
7407 (sizeof_vax_call_dummy_words): New.
7408 (vax_fix_call_dummy): New function.
7409 (vax_saved_pc_after_call): Ditto.
7410 * config/vax/tm-vax.h: Don't include regcache.h.
7411 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7412 (CALL_DUMMY): Remove.
7413 (CALL_DUMMY_WORDS): Define.
7414 (SIZEOF_CALL_DUMMY_WORDS): Define.
7415 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7416
47a73475
MS
74172002-04-18 Michael Snyder <msnyder@redhat.com>
7418
7419 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7420
52efde73
JT
74212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7422
7423 * vax-tdep.c (vax_frame_chain): New function.
7424 (vax_push_dummy_frame): Ditto.
7425 (vax_pop_frame): Ditto.
7426 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7427 (FRAMELESS_FUNCTION_INVOCATION): Use
7428 generic_frameless_function_invocation_not.
7429 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7430 (POP_FRAME): Use vax_pop_frame.
7431
ea74468c
JT
74322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * vax-tdep.c (vax_store_struct_return): New function.
7435 (vax_extract_return_value): Ditto.
7436 (vax_store_return_value): Ditto.
7437 (vax_extract_struct_value_address): Ditto.
7438 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7439 vax_store_struct_return.
7440 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7441 (STORE_RETURN_VALUE): Use vax_store_return_value.
7442 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7443
5516aa92
JT
74442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7445
7446 * vax-tdep.c (vax_frame_saved_pc): New function.
7447 (vax_frame_args_address_correct): Ditto.
7448 (vax_frame_args_address): Ditto.
7449 (vax_frame_locals_address): Ditto.
7450 (vax_frame_num_args): Move code to be in proximity to
7451 other frame-related functions.
7452 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7453 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7454 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7455 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7456 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7457
36af0b35
L
74582002-04-22 H.J. Lu (hjl@gnu.org)
7459
7460 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7461 includedir.
7462
ab62c900
JT
74632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7464
7465 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7466 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7467 (FRAME_INIT_SAVED_REGS): New macro.
7468
7232b100
JT
74692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7470
7471 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7472
b70d2aee
JT
74732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7474
7475 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7476 where needed.
7477 (fetch_osf_core_registers): Likewise.
7478 (supply_gregset): Likewise.
7479
a0e8a2d1 74802002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7481
a0e8a2d1
JB
7482 * symfile.h (get_section_index): Define.
7483 * symfile.c (get_section_index): New function.
7484 * mdebugread.c (SC_IS_SBSS): New macro.
7485 (SC_IS_BSS): Return true for the scBss storage class only, as
7486 the scSBss storage class refers to the .sbss section.
7487 (parse_partial_symbols): Discard the symbols which associated
7488 section does not exist.
7489 Make sure to use the .sbss section index for symbols which
7490 storage class is scBss, rather than using the .bss section index.
7491
51eb8b08
JT
74922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7493
7494 * vax-tdep.c: Update copyright years.
7495 (vax_register_name): New function.
7496 (vax_register_byte): Ditto.
7497 (vax_register_raw_size): Ditto.
7498 (vax_register_virtual_size): Ditto.
7499 (vax_register_virtual_type): Ditto.
7500 * config/vax/tm-vax.h: Update copyright years.
7501 (REGISTER_NAMES): Remove.
7502 (REGISTER_NAME): Define.
7503 (REGISTER_BYTE): Use vax_register_byte.
7504 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7505 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7506 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7507
6cc1c0a8
AC
75082002-04-21 Andrew Cagney <ac131313@redhat.com>
7509
7510 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7511 declaration
7512 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7513
9319a2fe
DM
75142002-04-21 David S. Miller <davem@redhat.com>
7515
7516 * arch-utils.c (generic_prologue_frameless_p): Kill
7517 SKIP_PROLOGUE_FRAMELESS_P code.
7518 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7519 references.
7520 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7521 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7522 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7523 references.
7524 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7525 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7526 (sparc_gdbarch_init): Pass it to
7527 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7528
e9ed6d01
JT
75292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7530
7531 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7532 (alphabsd-nat.o): New dependency list.
7533
36012033
JT
75342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7535
7536 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7537 alphafbsd-tdep.c.
7538 (alpha-linux-tdep.o): New dependency list.
7539 (alphafbsd-tdep.o): Likewise.
7540
3379287a
JT
75412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7544 to here...
7545 * alpha-tdep.c: ...from here.
7546 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7547
4bcbd6cb
JT
75482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7551 prototype from here...
7552 * alpha-tdep.h: ...to here.
7553
b31da25e
AC
75542002-04-21 Andrew Cagney <ac131313@redhat.com>
7555
7556 * frame.h (selected_frame_level): Document as deprecated.
7557 (frame_relative_level): Declare.
7558 * stack.c (frame_relative_level): New function.
7559 (selected_frame_level): Document as deprecated.
7560 (select_frame): Do not set the selected_frame_level.
7561
7562 * stack.c (frame_info, record_selected_frame): Update.
7563 (frame_command, current_frame_command): Update.
7564 (up_silently_base, up_command, down_silently_base): Update.
7565 (down_command): Update.
7566 * inflow.c (kill_command): Update.
7567 * tracepoint.c (finish_tfind_command): Update.
7568 * corelow.c (core_open): Update.
7569 * thread.c (info_threads_command): Update.
7570 (do_captured_thread_select): Update.
7571 * infcmd.c (finish_command): Update.
7572 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7573
9c1d6fe5
JT
75742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7577
ab89facf
AC
75782002-04-21 Andrew Cagney <ac131313@redhat.com>
7579
7580 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7581 type const.
7582
82a4efa1
JT
75832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7584
7585 * alphafbsd-tdep.c: Update copyright years. Include
7586 alpha-tdep.h.
7587 (alphafbsd_use_struct_convention): Make static.
7588 (alphafbsd_init_abi): New function.
7589 (_initialize_alphafbsd_tdep): New function.
7590 * config/alpha/tm-fbsd.h: Update copyright years.
7591 (USE_STRUCT_CONVENTION): Remove.
7592
44dffaac
JT
75932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7594
7595 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7596 an Alpha ABI variant.
7597 (alpha_abi_handler_list): Declare.
7598 (alpha_gdbarch_register_os_abi): New function.
7599 (alpha_gdbarch_init): Give registered ABI variant handlers a
7600 chance to tweak the gdbarch once we have set up defaults.
7601 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7602
65585be4
JT
76032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7604
7605 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7606 to standard_coerce_float_to_double.
7607 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7608
d9b023cc
JT
76092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7612 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7613 from gdbarch_tdep rather than a constant.
7614 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7615 the default text address for all Alpha Unix ABIs.
7616 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7617 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7618
dc129d82
JT
76192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7620
7621 * alpha-tdep.h: New file. Includes several Alpha target constants
7622 taken from...
7623 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7624 let gdbarch deal with.
7625 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7626 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7627 to dependency list.
7628 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7629 Alpha target register names.
7630 * alphabsd-nat.c: Likewise.
7631 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7632 Alpha target register names. Make serveral routines static.
7633 (alpha_get_saved_register): New function.
7634 (alpha_abi_names): New.
7635 (process_note_abi_tag_sections): New function.
7636 (get_elfosabi): New function.
7637 (alpha_gdbarch_init): New function.
7638 (alpha_dump_tdep): New function.
7639 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7640
d49d1e0a
AC
76412002-04-21 Andrew Cagney <ac131313@redhat.com>
7642
7643 * frame.c (find_saved_register): Delete #ifdef
7644 HAVE_REGISTER_WINDOWS code.
7645 * config/sparc/tm-sparc.h: Update comments.
7646 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7647
92e8c9ed
AC
76482002-04-21 Andrew Cagney <ac131313@redhat.com>
7649
7650 * i960-tdep.c (i960_find_saved_register): New function.
7651 (i960_get_saved_register): New function.
7652 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7653 (i960_get_saved_register): Declare.
7654 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7655
e1925118
DM
76562002-04-20 David S. Miller <davem@redhat.com>
7657
7658 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7659
29673b29
AC
76602002-04-20 Andrew Cagney <ac131313@redhat.com>
7661
7662 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7663 instead of NUM_PSEUDO_REGS.
7664
6c86dcd5
DM
76652002-04-20 David S. Miller <davem@redhat.com>
7666
7667 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7668 GDB_MULTI_ARCH_PARTIAL
7669 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7670 define, let tm-sp64.h do it.
7671
aa40ec90
JT
76722002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7673
7674 * frame.c (find_saved_register): Avoid a NULL pointer
7675 dereference and actually walk the frame list.
7676
0f79675b
AC
76772002-04-20 Andrew Cagney <ac131313@redhat.com>
7678
7679 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7680 sorted in most most-recent-used order. Document.
7681 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7682
f91305dd 76832002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7684
7685 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7686 instead of ->prev.
7687 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7688 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7689 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7690 instead of ->prev.
7691
73d322b1
EZ
76922002-04-19 Elena Zannoni <ezannoni@redhat.com>
7693
7694 Fix PR gdb/471.
7695 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7696 (build_builtin_type_vec128): Ditto.
7697 (append_composite_type_field): Fix calculation of type length in
7698 union case.
7699
ccd9a834
EZ
77002002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7701
7702 * config/djgpp/README: Update.
7703
7704 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7705 compiler warnings.
7706
a57f9e49
JT
77072002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7710 (alpha_setup_arbitrary_frame): ...to this.
7711 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7712 for alpha_setup_arbitrary_frame.
7713
f4f9705a
AC
77142002-04-18 Andrew Cagney <cagney@redhat.com>
7715
7716 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7717 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7718
f4f9705a
AC
7719 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7720 * target.h (memory_breakpoint_from_pc): Update declaration.
7721 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7722
7723 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7724 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7725 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7726 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7727 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7728 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7729 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7730 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7731 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7732 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7733 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7734 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7735
7736 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7737 const pointer.
7738 * monitor.c (monitor_insert_breakpoint): Ditto.
7739 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7740
7741 * config/mcore/tm-mcore.h: Update copyright.
7742 * mem-break.c: Ditto.
7743 * xstormy16-tdep.c: Ditto.
7744
29f319b8
PM
77452002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7746
7747 * p-exp.y: Add precedence rule for '^' token.
7748 This removes the shift/reduce conflicts.
7749 Remove the comment concerning these shift/reduce conflicts.
7750
ebeac11a
EZ
77512002-04-18 Elena Zannoni <ezannoni@redhat.com>
7752
7753 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7754 (registers_powerpc_nofp): New register set for processors
7755 without floating point unit.
7756
27c31547
DM
77572002-04-18 David S. Miller <davem@redhat.com>
7758
7759 * MAINTAINERS: Add myself to write-after-approval.
7760
47a73475
MS
77612002-04-17 Michael Snyder <msnyder@redhat.com>
7762
7763 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7764
953836b2
AC
77652002-04-17 Andrew Cagney <ac131313@redhat.com>
7766
7767 * rs6000-tdep.c (frame_initial_stack_address): Use
7768 frame_register_read to read the alloca_reg.
7769
8b0d4340
AC
77702002-04-17 Andrew Cagney <ac131313@redhat.com>
7771
7772 * frame.c (find_saved_register): Find saved registers in the next
7773 not prev frame.
7774 Fix PR gdb/365.
7775
d8864532
AC
77762002-04-17 Andrew Cagney <ac131313@redhat.com>
7777
7778 * gdbarch.sh (LANG): Set to ``c''.
7779
36cc83a3 77802002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7781
36cc83a3 7782 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7783
2f4150cc 77842002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7785
7786 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7787 Update copyright.
7788
628703c6 7789 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7790 Also fix PR gdb/391.
361d1df0 7791
56157b4a
AC
77922002-04-14 Andrew Cagney <ac131313@redhat.com>
7793
7794 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7795 * aclocal.m4, configure: Re-generate.
7796 Fix PR gdb/391.
361d1df0 7797
6d1e3329
EZ
77982002-04-14 Elena Zannoni <ezannoni@redhat.com>
7799
7800 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7801 instead of tm_print_insn.
7802
cb06fa07
EZ
78032002-04-14 Elena Zannoni <ezannoni@redhat.com>
7804
7805 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7806
f208ba17
AC
78072002-04-14 Andrew Cagney <ac131313@redhat.com>
7808
7809 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7810 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7811 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7812
20f01a46
DH
78132002-04-12 Don Howard <dhoward@redhat.com>
7814
7815 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7816 max_user_call_depth.
7817 (init_cmd_lists): Initialize the new value;
7818 * cli/cli-script.c (execute_user_command): Limit the call depth of
7819 user defined commands. This avoids a core-dump when user commands
7820 are infinitly recursive.
7821
a88376a3
KB
78222002-04-12 Kevin Buettner <kevinb@redhat.com>
7823
7824 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7825 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7826 from tdep struct instead of DEFAULT_LR_SAVE.
7827 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7828 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7829 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7830
f2172603
MS
78312002-04-12 Michael Snyder <msnyder@redhat.com>
7832
694f61fb 7833 * Remote.c: Spelling fix.
20fe79c8
MS
7834 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7835 If no symbol found for "sbrk", try "_sbrk".
7836 (make_output_phdrs): Use bfd_section_name.
7837 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7838 * eval.c: Indentation fix-ups.
169a7369
MS
7839 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7840 in case it gets applied to an address that is already
7841 in the instruction space.
de74f71f
MS
7842 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7843 * symfile.c: Fix indentation, long lines.
f2172603
MS
7844 * source.c: White space fix-up.
7845
cda5a58a
AC
78462002-04-12 Andrew Cagney <cagney@redhat.com>
7847
7848 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7849 * frame.c (frame_register_read): New function. Return non-zero on
7850 success.
7851 (read_relative_register_raw_bytes_for_frame): Delete.
7852 (read_relative_register_raw_bytes): Delete.
7853 * frame.h (frame_register_read): Declare.
7854 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7855 * sh-tdep.c: Ditto.
7856 * infcmd.c (do_registers_info): Ditto.
7857 * hppa-tdep.c: Ditto.
7858 * rs6000-tdep.c: Ditto.
7859 * h8500-tdep.c: Ditto.
7860 * mips-tdep.c: Ditto.
7861 * h8300-tdep.c: Ditto.
7862 * z8k-tdep.c: Ditto.
7863
2ea5f656
KB
78642002-04-12 Kevin Buettner <kevinb@redhat.com>
7865
7866 From Jimi X <jimix@watson.ibm.com>:
7867 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7868 64-bit SysV ABI.
7869
27b15785
KB
78702002-04-12 Kevin Buettner <kevinb@redhat.com>
7871
7872 From Jimi X <jimix@watson.ibm.com>:
7873 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7874 bfd info.
7875
5d57ee30
KB
78762002-04-12 Kevin Buettner <kevinb@redhat.com>
7877
7878 From Jimi X <jimix@watson.ibm.com>:
7879 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7880 register sets for these processor variants.
7881
bc1e36ca
DJ
78822002-04-11 Daniel Jacobowitz <drow@mvista.com>
7883
bc1e36ca
DJ
7884 * regformats/reg-ppc.dat: Support FPSCR.
7885
e3f36dbd
KB
78862002-04-11 Kevin Buettner <kevinb@redhat.com>
7887
7888 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7889 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7890 Add fpscr as an invalid/unfetchable register.
7891 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7892 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7893 (fill_fpregset): Add support for register fpscr.
7894 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7895 (fill_gregset): Account for the fact that register ``mq'' might
7896 not exist.
7897 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7898 (registers_power): Add fpscr to register set at slot 71.
7899 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7900 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7901
943c9c25
MS
79022002-04-11 Michael Snyder <msnyder@redhat.com>
7903
7904 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7905 * configure: Regenerate.
7906 * config.in: Regenerate.
7907 * acconfig.h: Add define for _SYSCALL32.
7908 * core-sol2.c: Remove #define _SYSCALL32.
7909 * solib-legacy.c: Remove #define _SYSCALL32.
7910
d8c0a2e7
AC
79112002-04-10 Andrew Cagney <ac131313@redhat.com>
7912
7913 * stack.c (select_frame): Cleanup internal error message, do not
7914 use %p.
7915
7cc19214
AC
79162002-04-10 Andrew Cagney <ac131313@redhat.com>
7917
7918 * stack.c (select_frame): Check that selected_frame and the
7919 specified level are as expected.
7920 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7921 Update copyright.
7922 * frame.h (struct frame_info): Add field `level'. Update
7923 copyright.
7924 Work-in-progress PR gdb/464.
7925
67a2b77e
AC
79262002-04-10 Andrew Cagney <ac131313@redhat.com>
7927
7928 * maint.c (maint_print_section_info): Rename print_section_info.
7929 (print_bfd_section_info, print_objfile_section_info): Update.
7930 * inferior.h (struct gdbarch): Add opaque declaration.
7931 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7932 * gdbarch.h: Regenerate.
7933
8cfda98c
ML
79342002-04-10 Michal Ludvig <mludvig@suse.cz>
7935
7936 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7937 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7938 (kernel_u_size): Added.
7939 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7940 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7941
ca439ad2 79422002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7943
ca439ad2
JI
7944 * valarith.c (find_size_for_pointer_math): New function, either returns
7945 the size for a pointer's target, returns 1 for void *, or errors for
7946 incomplete types.
7947 (value_add, value_sub): use find_size_for_pointer_math.
7948
2f2893d9
DJ
79492002-04-09 Daniel Jacobowitz <drow@mvista.com>
7950
7951 * linux-low.c (linux_look_up_symbols): New hook.
7952 (linux_target_ops): Add linux_look_up_symbols.
7953 * remote-utils.c (decode_address): New function.
7954 (look_up_one_symbol): New function.
7955 * server.c (handle_query): Call target look_up_symbols hook.
7956 * server.h (look_up_one_symbol): Add prototype.
7957 * target.h (struct target_ops): Add look_up_symbols hook.
7958
96cb11df
AC
79592002-04-09 Andrew Cagney <ac131313@redhat.com>
7960
7961 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7962 override FP_REGNUM with frame->fp. Update copyright.
7963 * parse.c (num_std_regs, std_regs): Delete.
7964 (target_map_name_to_register): Do not search std_regs. Update
7965 function description.
7966 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7967 declarations. Update copyright.
7968 Fix PR gdb/251.
361d1df0 7969
97658e92
DJ
79702002-04-09 Daniel Jacobowitz <drow@mvista.com>
7971
7972 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7973 after the last symbol in a block.
7974
6044e3eb
PM
79752002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7976
7977 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7978 is non zero as a found symbol.
7979
0406ec40
AC
79802002-04-08 Andrew Cagney <ac131313@redhat.com>
7981
7982 * findvar.c: Include "builtin-regs.h".
7983 (value_of_register): Call value_of_builtin_reg when applicable.
7984 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7985 (target_map_name_to_register): Call
7986 builtin_reg_map_name_to_regnum.
7987 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7988 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7989 (builtin_regs_h): Define.
7990 (builtin-regs.o): New target.
7991 (findvar.o): Add $(builtin_regs_h).
7992 * builtin-regs.c, builtin-regs.h: New files.
7993 * std-regs.c: New file.
7994 Partial fix for PR gdb/251.
7995
56a6dfb9
KB
79962002-04-08 Kevin Buettner <kevinb@redhat.com>
7997
7998 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7999 it's no longer required.
8000
3a808432
AC
80012002-04-08 Andrew Cagney <ac131313@redhat.com>
8002
8003 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8004
7c40d541
KB
80052002-04-08 Kevin Buettner <kevinb@redhat.com>
8006
8007 From Jimi X <jimix@watson.ibm.com>:
8008 * rs6000-tdep.c (rs6000_software_single_step): Use
8009 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8010 and size. Use target_insert_breakpoint() and
8011 target_remove_breakpoint() to insert and remove breakpoints
8012 instead of explicit memory reads and writes.
8013
cc9836a8
KB
80142002-04-08 Kevin Buettner <kevinb@redhat.com>
8015
8016 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8017 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8018 ELF_OBJECT_FORMAT ifdef.
8019
7495d1dc
KB
80202002-04-08 Kevin Buettner <kevinb@redhat.com>
8021
8022 From Jimi X <jimix@watson.ibm.com>:
8023 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8024
4288e836
KB
80252002-04-08 Kevin Buettner <kevinb@redhat.com>
8026
8027 From Jimi X <jimix@watson.ibm.com>:
8028 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8029 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8030
a4e4e501
MK
80312002-04-07 Mark Kettenis <kettenis@gnu.org>
8032
8033 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8034 s/asprintf/xasprintf/.
8035 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8036
006defba
AC
80372002-04-07 Andrew Cagney <ac131313@redhat.com>
8038
8039 I believe Jeff Law denies responsability for this one:
8040 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8041 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8042 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8043 Work-around for PR gdb/366.
8044
7aa83cac
EZ
80452002-04-07 Elena Zannoni <ezannoni@redhat.com>
8046
8047 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8048 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8049 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8050
cf1fcca1
EZ
80512002-04-07 Elena Zannoni <ezannoni@redhat.com>
8052
8053 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8054 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8055 information.
8056
3f289e6f
AC
80572002-04-07 Andrew Cagney <ac131313@redhat.com>
8058
8059 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8060 maintainer.
8061
129188f6
AC
80622002-04-07 Andrew Cagney <ac131313@redhat.com>
8063
8064 * README (Reporting Bugs in GDB): Document the bug web page as the
8065 prefered way of submitting bugs.
8066 Fix PR gdb/402.
8067
1200cd6e
AC
80682002-04-06 Andrew Cagney <ac131313@redhat.com>
8069
8070 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8071 -1. Update comment.
8072 * gdbarch.h, gdbarch.c: Re-generate.
8073
2853c33c
AS
80742002-04-07 Andreas Schwab <schwab@suse.de>
8075
8076 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8077 buffer to regcache_collect.
8078
c2169756
AC
80792002-04-06 Andrew Cagney <ac131313@redhat.com>
8080
8081 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8082 * gdbarch.c, gdbarch.h: Re-generate.
8083
25f1b008
AC
80842002-04-06 Andrew Cagney <ac131313@redhat.com>
8085
8086 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8087 declaration. Fix -Werror.
8088
59263426
DJ
80892002-04-05 Daniel Jacobowitz <drow@mvista.com>
8090
8091 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8092 * gdbarch.c: Regenerate.
8093
f5db4da3
MS
80942002-04-05 Michael Snyder <msnyder@redhat.com>
8095
80f8a6eb
MS
8096 * breakpoint.c (clear_command): Rewrite middle section to
8097 combine two loops with identical control conditions.
8098 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8099 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8100
ad3dcc5c
L
81012002-04-05 H.J. Lu (hjl@gnu.org)
8102
8103 * solib-svr4.c (bkpt_names): Add "__start".
8104
f32e7a74
AC
81052002-04-04 Andrew Cagney <ac131313@redhat.com>
8106
8107 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8108 as test for 64 bit target.
8109
8227c0ff
AC
81102002-04-05 Andrew Cagney <ac131313@redhat.com>
8111
8112 * h8500-tdep.c (h8500_write_fp): Delete function.
8113 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8114 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8115 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8118 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8119 (s390_write_fp):
8120 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8121 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8122 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8123 (d10v_write_fp): Delete function.
8124 * inferior.h (write_fp, generic_target_write_fp): Delete
8125 declarations.
8126 * regcache.c (generic_target_write_fp): Delete function.
8127 (write_fp): Delete function.
8128 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8129 * gdbarch.h, gdbarch.c: Regenerate.
8130 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8131 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8132 (sparc64_write_fp): Delete declaration.
8133 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8134 (h8500_write_fp): Delete declaration.
8135
2757dd86
AC
81362002-04-04 Andrew Cagney <ac131313@redhat.com>
8137
8138 * sparc-tdep.c (sparc64_write_fp): Delete.
8139 (sparc_push_dummy_frame): Replace write_fp call with code to store
8140 the FP directly.
8141 (sparc_gdbarch_init): Do not initialize write_fp.
8142
c69255e1
KB
81432002-04-05 Kevin Buettner <kevinb@redhat.com>
8144
8145 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8146 clause.
8147
ae767bfb
JB
81482002-03-29 Jim Blandy <jimb@redhat.com>
8149
8150 * stack.c (get_selected_block): Add new argument `addr_in_block',
8151 used to return the exact code address we used to select the block,
8152 not just the block.
8153 * blockframe.c (get_frame_block, get_current_block): Same.
8154 * frame.h (get_frame_block, get_current_block,
8155 get_selected_block): Update declarations.
8156 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8157 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8158
84d2ac95
MS
81592002-04-05 Michael Snyder <msnyder@redhat.com>
8160
8161 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8162 warning message.
8163
596aa3bf
JB
81642002-04-05 J. Brobecker <brobecker@gnat.com>
8165
8166 * utils.c (xfullpath): New function.
8167 * defs.h (xfullpath): Add declaration.
8168 * source.c (openp): Use xfullpath in place of gdb_realpath to
8169 avoid resolving the basename part of filenames when the
8170 associated file is a symbolic link. This fixes a potential
8171 inconsistency between the filenames known to GDB and the
8172 filenames it prints in the annotations.
8173 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8174 to be able to match a filename with either the real filename, or
8175 the name of any symbolic link to this file.
8176 (lookup_partial_symtab): Ditto.
8177
c02f5703
MS
81782002-04-04 Michael Snyder <msnyder@redhat.com>
8179
8180 * breakpoint.c: Add support for hardware breakpoints in overlays.
8181 (overlay_events_enabled): New state variable.
8182 (insert_breakpoints): Use overlay_events_enabled to decide
8183 whether to attempt to set a breakpoint at the overlay load addr.
8184 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8185 (remove_breakpoint): Use overlay_events_enabled to decide
8186 whether breakpoints need to be removed from overlay load addr.
8187 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8188 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8189 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8190 disable_overlay_breakpoints): Update overlay_events_enabled.
8191
5fb290d7
DJ
81922002-04-04 Daniel Jacobowitz <drow@mvista.com>
8193
8194 * dwarf2read.c (struct function_range): New.
8195 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8196 (check_cu_functions): New.
8197 (read_file_scope): Initialize global function lists.
8198 Call dwarf_decode_line after processing children.
8199 (read_func_scope): Add to global function list.
8200 (dwarf_decode_lines): Call check_cu_functions everywhere
8201 record_line is called. Call record_line with a linenumber
8202 of 0 to mark sequence ends.
8203
7b3fabf0
ML
82042002-04-04 Michal Ludvig <mludvig@suse.cz>
8205
361d1df0 8206 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8207 change sync with glibc.
8208
bce58c09
JB
82092002-04-03 Jim Blandy <jimb@redhat.com>
8210
8211 * configure.in: Call AC_C_INLINE.
8212 * configure: Regenerated.
361d1df0 8213
2fccf04a
DJ
82142002-04-01 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8217 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8218
2d1bfe2e
MK
82192002-03-31 Mark Kettenis <kettenis@gnu.org>
8220
a5941fbf
MK
8221 * NEWS: Mention gcore support on FreeBSD/i386.
8222
a90cd31d
MK
8223 * fbsd-proc.c: New file.
8224 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8225 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8226
2d1bfe2e
MK
8227 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8228 while statement.
8229
9eb6e5a1
JB
82302002-03-29 Jim Blandy <jimb@redhat.com>
8231
8232 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8233 unescaped newlines in string literals, but newer ones don't. So
8234 escape them.
8235
f02df580
MS
82362002-03-26 Michael Snyder <msnyder@redhat.com>
8237 Andrew Cagney <cagney@redhat.com>
8238
361d1df0 8239 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8240 restore file to memory.
8241 * cli/cli-dump.h: New file.
8242 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8243 * NEWS: Mention new commands.
f02df580 8244
109f874e
MS
82452002-03-28 Michael Snyder <msnyder@redhat.com>
8246
8247 * symfile.c (symbol_file_add): Move test for null symbols to later.
8248
520f6ade
AC
82492002-03-27 Andrew Cagney <ac131313@redhat.com>
8250
8251 From veksler at il.ibm.com:
8252 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8253 the xstrduped original path.
8254 Fix PR gdb/417.
8255
d4654627
MS
82562002-03-27 Michael Snyder <msnyder@redhat.com>
8257
8258 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8259 * infcmd.c (_initialize_infcmd): Ditto.
8260 * language.c (_initialize_language): Ditto.
8261 * symfile.c (_initialize_symfile): Ditto.
8262 * top.c (_init_main): Ditto.
8263 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8264
6be8bc0c
EZ
82652002-03-27 Elena Zannoni <ezannoni@redhat.com>
8266
8267 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8268 vector registers handling.
8269 (skip_prologue): Handle new AltiVec instructions. Fill in new
8270 fields of frame data.
8271 (frame_get_saved_regs): Fill in information for AltiVec registers.
8272
12af6855
JB
82732002-03-27 Jim Blandy <jimb@redhat.com>
8274
8275 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8276 a function; leave this macro here to invoke that function.
8277 (symbol_init_mangled_name): Declaration for that function.
8278 * symtab.c (symbol_init_mangled_name): New function.
8279
dc672865
AC
82802002-03-27 Andrew Cagney <ac131313@redhat.com>
8281
8282 * valarith.c: Replace strerror with safe_strerror.
8283 * tracepoint.c: Ditto.
8284 * lin-lwp.c: Ditto.
8285 * go32-nat.c: Ditto.
8286 * inflow.c: Ditto.
8287 * gnu-nat.c: Ditto.
8288
d96429cd
AS
82892002-03-27 Andreas Schwab <schwab@suse.de>
8290
8291 * event-top.c (command_line_handler): Remove useless if.
8292
7e336ba1
AJ
82932002-03-27 Andreas Jaeger <aj@suse.de>
8294
8295 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8296 comment.
8297
de220d0f
ML
82982002-03-27 Michal Ludvig <mludvig@suse.cz>
8299
8300 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8301 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8302 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8303 (x86_64_linux_dr_get_status, supply_gregset),
8304 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8305 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8306 (x86_64_register_info_table): Add.
8307 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8308 (x86_64_register_raw_size, x86_64_register_virtual_type),
8309 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8310 general x86_64_register_info_table.
8311 (i386_gdbarch_init): gdbarch_register_bytes is now set
8312 dynamicaly during initialization.
8313 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8314 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8315
0e98d0a7
DJ
83162002-03-27 Daniel Jacobowitz <drow@mvista.com>
8317
8318 * gdbserver/server.c (main): Call target_signal_to_host_p
8319 and target_signal_to_host on signals received from the remote.
8320 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8321 target_signal_from_host on signals sent to the remote.
8322 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8323 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8324
3130066b
DJ
83252002-03-27 Daniel Jacobowitz <drow@mvista.com>
8326
8327 * signals/signals.c: Include "server.h" in gdbserver build.
8328 (target_signal_from_name): Don't use STREQ.
8329 (_initialize_signals): Likewise. Don't include function in
8330 gdbserver build.
8331
9aedf4f4
DJ
83322002-03-27 Daniel Jacobowitz <drow@mvista.com>
8333
8334 * signals.c: Moved to...
8335 * signals/signals.c: Here.
7e336ba1 8336 * Makefile (signals.o): Update.
9aedf4f4 8337
3fa41cdb
JL
83382002-03-26 Jeff Law (law@redhat.com)
8339
8340 * somread.c (som_symtab_read): Remove some commented out code and
8341 updated related comments. Do not set the minimal symbol table to
8342 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8343 in a dynamic executable.
8344 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8345 where we are unable to find the minimal symbol for the given
8346 PC value.
8347
ee677e8d
MS
83482002-03-25 Jeff Law (law@redhat.com)
8349
8350 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8351
e76e1718
ML
83522002-03-25 Michal Ludvig <mludvig@suse.cz>
8353
8354 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8355
18a642a1
AC
83562002-03-23 Andrew Cagney <ac131313@redhat.com>
8357
8358 * command.h: Update copyright.
8359 (struct cmd_list_element): Replace definition with opaque
8360 declaration.
8361 (enum cmd_types): Document that it will eventually be moved to
8362 cli/cli-decode.h
8363 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8364 (MALLOCED_REPLACEMENT): Delete macro.
8365 * Makefile.in (cli_decode_h): Add $(command_h).
8366 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8367 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8368 * completer.c: Include "cli/cli-decode.h".
8369 * maint.c: Include "cli/cli-decode.h".
8370 * cli/cli-decode.h: Include "command.h".
8371 (enum command_class): Delete.
8372 (enum cmd_types): Comment out.
8373 (enum cmd_auto_boolean): Delete.
8374 (enum var_types): Delete.
8375
b2875cc0
AC
83762002-03-23 Andrew Cagney <ac131313@redhat.com>
8377
8378 * cli/cli-decode.c: Include "gdb_assert.h".
8379 (add_set_or_show_cmd): New static function.
8380 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8381 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8382 all fields, such as func, from the set command.
8383
3b45974e
AC
83842002-03-23 Andrew Cagney <ac131313@redhat.com>
8385
8386 * MAINTAINERS (sh-elf): Change warning flag to -w.
8387
823ca731
AC
83882002-03-23 Andrew Cagney <cagney@redhat.com>
8389
8390 * defs.h (error): Add printf format attribute.
8391 * thread-db.c (thread_from_lwp): Fix error format string.
8392 * stack.c (parse_frame_specification): Ditto.
8393 * cli/cli-decode.c (undef_cmd_error): Ditto.
8394 * scm-lang.c (scm_lookup_name): Ditto.
8395 * tracepoint.c (trace_error): Ditto.
8396 * remote-utils.c (usage): Ditto.
8397 * remote.c (compare_sections_command): Ditto.
8398 Fix PR gdb/328.
8399
0e101458
AC
84002002-03-22 Andrew Cagney <ac131313@redhat.com>
8401
8402 * gdbtypes.c (append_composite_type_field): New function.
8403 (init_composite_type): New function.
8404 * gdbtypes.h (append_composite_type_field): Declare.
8405 (init_composite_type): Ditto.
8406
8e0662df
EZ
84072002-03-22 Elena Zannoni <ezannoni@redhat.com>
8408
8409 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8410 function.
8e0662df
EZ
8411 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8412 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8413 structure returning convention for SYSV ABI case, but not
8414 for GNU/Linux, FreeBSD, or NetBSD.
8415
3121eff0
DJ
84162002-03-22 Daniel Jacobowitz <drow@mvista.com>
8417
8418 * symtab.h (lookup_block_symbol): Add mangled_name argument
8419 to prototype.
8420
8421 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8422 with new mangled_name argument.
8423 * linespec.c (decode_line_1): Likewise.
8424 * valops (value_of_this): Likewise.
8425 * symtab.c (lookup_transparent_type): Likewise.
8426 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8427 (lookup_symbol): If we are given a mangled name, pass it down
8428 to lookup_symbol_aux.
8429 (lookup_block_symbol): If we are given a mangled name to check
8430 against, only return symbols which match it.
8431
349b409f
CF
84322002-03-22 Christopher Faylor <cgf@redhat.com>
8433
8434 * win32-nat.c (child_create_inferior): Check for proper shell to use
8435 here, in case the user changes it on the fly.
8436 (_initialize_inftarg): Remove shell path considerations.
8437
2a873819
EZ
84382002-03-21 Elena Zannoni <ezannoni@redhat.com>
8439
8440 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8441 for gdbarch_max_register_raw_size and max_register_virtual_size.
8442 Adjust copyright year.
8443
a1b9830c
DJ
84442002-03-21 Daniel Jacobowitz <drow@mvista.com>
8445
8446 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8447 in a function to cover the entire beginning of the function
8448 as well if it does not already.
8449
8b5790f2
TR
84502002-03-21 Tom Rix <trix@redhat.com>
8451
8452 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8453 (rs6000_ptrace64): Renamed from ptrace64.
8454
bdbe5747
MH
84552002-03-20 Martin M. Hunt <hunt@redhat.com>
8456
8457 * gdbserver/remote-utils.c (remote_open): Don't call
8458 getprotobyname, we're all using TCP here so just use
8459 IPPROTO_TCP.
7e336ba1 8460 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8461
84622002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8463
bdbe5747
MH
8464 * regcache.c (_initialize_regcache): No need to call
8465 build_regcache() at this time; it gets called whenever
8466 the gdbarch changes.
8467
7781cd62
DB
84682002-03-20 David O'Brien <obrien@FreeBSD.org>
8469
8470 * sparc-nat.c: Include sys/param.h where possible.
8471
f65ca430
DJ
84722002-03-20 Daniel Jacobowitz <drow@mvista.com>
8473
8474 Fix PR gdb/422.
8475 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8476 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8477 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8478 complex types.
8479 * stabsread.c (rs6000_builtin_type): Likewise.
8480 (read_sun_floating_type): Likewise.
8481
0c867556
PS
84822002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8483
8484 * stabsread.c (read_member_functions): Remove skip code for duplicate
8485 constructor/destructor methods. Use standard parsing for these
8486 methods and just do not chain them to the list of methods after
8487 parsing.
8488
12b9c64f
AO
84892002-03-19 Alexandre Oliva <aoliva@redhat.com>
8490
8491 * coffread.c: Remove redundant static declarations. Replace
8492 occurrences of `PTR' with `void *'.
8493 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8494 * top.h (quit_cover): Likewise.
8495 * defs.h (catch_errors): Likewise.
8496
349c5d5f
AC
84972002-03-18 Andrew Cagney <ac131313@redhat.com>
8498
8499 * defs.h (XMALLOC): Define.
8500 * gdb-events.sh (XMALLOC): Delete macro.
8501 * gdb-events.c, gdb-events.h: Regenerate.
8502 * gdbarch.sh (XMALLOC): Delete macro.
8503 * gdbarch.c: Regenerate.
8504 * serial.c (XMALLOC): Delete macro.
8505 * ui-file.c (XMALLOC): Ditto.
8506 * ser-unix.h (XMALLOC): Ditto.
8507 * sh-tdep.c (XMALLOC): Ditto.
8508 * ui-out.c (XMALLOC): Ditto.
8509 * utils.c (XMALLOC): Ditto.
8510 * i386-tdep.c (XMALLOC): Ditto.
8511 * gdb-events.c (XMALLOC): Ditto.
8512 * d10v-tdep.c (XMALLOC): Ditto.
8513 * cli-out.c (XMALLOC): Ditto.
8514
8515 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8516 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8517 * ui-file.c, ui-out.c: Ditto.
8518
7d0766f3
AC
85192002-03-18 Andrew Cagney <ac131313@redhat.com>
8520
8521 * command.h (struct cmd_list_element): Add field context.
8522 (set_cmd_context, get_cmd_context): Declare.
8523 * cli/cli-decode.h: Ditto.
8524 * cli/cli-decode.c (get_cmd_context): New function.
8525 (set_cmd_context): New function.
8526 (add_cmd): Initialize context.
8527 Part of fixing PR gdb/145 and PR gdb/146.
8528
5913bcb0
AC
85292002-03-17 Andrew Cagney <ac131313@redhat.com>
8530
1868c04e
AC
8531 * cli/cli-decode.c (cmd_type): New function.
8532 * command.h (cmd_type): Declare.
8533 * infrun.c (set_schedlock_func): Call function cmd_type.
8534 * kod.c (kod_set_os): Call cmd_type.
8535 * cris-tdep.c (cris_version_update): Use function cmd_type.
8536 (cris_mode_update, cris_abi_update): Ditto.
8537
5913bcb0
AC
8538 * command.h: (execute_cmd_post_hook): Declare.
8539 (execute_cmd_pre_hook): Declare.
8540 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8541 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8542 functions. Execute pre/post hook while ensuring that afterwords
8543 hook_in is cleared.
8544 * top.c (execute_command): Use execute_cmd_post_hook, and
8545 execute_cmd_pre_hook to execute pre/post commands.
8546 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8547 hook_stop_stub.
8548 (hook_stop_stub): Call execute_cmd_pre_hook.
8549
b51450c9
AC
85502002-03-17 Andrew Cagney <ac131313@redhat.com>
8551
8552 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8553 set'' and this leads to a core dump. Move xstrdup of
8554 operating_system to after check that it is not NULL.
8555
f66c9f11
AC
85562002-03-17 Andrew Cagney <ac131313@redhat.com>
8557
8e694ecf
AC
8558 * kod.c (kod_set_os): Remove unnecessary check that
8559 ``command->type'' is set_cmd.
8560
f66c9f11
AC
8561 * valprint.c (set_input_radix): Use input_radix.
8562 (set_output_radix): Use output_radix.
8563 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8564 isn't reverted.
8565
9d01611c
AC
85662002-03-16 Andrew Cagney <ac131313@redhat.com>
8567
8568 * value.h (struct value): Delete field ``substring_addr''. Change
8569 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8570 force_core_addr_align and force_pointer_aligh.
8571
8572 * value.h (struct value): Fix typo in above change.
9d01611c 8573
4156bb53
PS
85742002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8575
8576 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8577 to fix internal_error from ``maintenance print architecture''.
8578
0e5e3ea6
PS
85792002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8580
8581 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8582 for gcc versions after gcc-2.8.1.
8583
9b013045
PS
85842002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8585
8586 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8587 for method resolution. Restore adjustment of ``this'' pointer after
8588 calling value_struct_elt, which was accidentally removed during the
8589 HP merge.
8590
376c9600
AC
85912002-03-15 Andrew Cagney <ac131313@redhat.com>
8592
8593 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8594 value_of_register.
8595 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8596 get_saved_register.
8597 * value.h (value_of_register): Update.
8598
a4db0f07
RH
85992002-03-14 Richard Henderson <rth@redhat.com>
8600
8601 * configure.in: Detect declaration for canonicalize_file_name.
8602 * utils.c (canonicalize_file_name): Declare, if needed.
8603 (gdb_realpath): Prefer realpath if available and usable.
8604 * config.in, configure: Rebuild.
8605
96383835
RH
86062002-03-14 Richard Henderson <rth@redhat.com>
8607
8608 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8609 a constant array bound.
8610
8611 * MAINTAINERS: Add myself to write-after-approval.
8612
75245b24
MS
86132002-03-14 Michael Snyder <msnyder@redhat.com>
8614
8615 * symfile.c (syms_from_objfile): Return immediately if no syms.
8616 (symbol_file_add): Return immediately if no syms.
8617 (find_sym_fns): Return immediately if no syms.
8618
e641a1ca
ML
86192002-03-13 Michal Ludvig <mludvig@suse.cz>
8620
8621 * gdbserver/remote-util.c (remote_open): Print remote-side's
8622 IP address when remote debugging over the network.
7e336ba1 8623
df08bfec
DB
86242002-03-12 David O'Brien <obrien@FreeBSD.org>
8625
8626 * config/sparc/fbsd.mh: Fix copyright.
8627 * config/sparc/fbsd.mt: Likewise.
8628
9a57864f
RE
86292002-03-11 Richard Earnshaw <rearnsha@arm.com>
8630
8631 * MAINTAINERS: Fix typo in name of gdb warnings option.
8632 (x86-64): Fix formating so that this can be parsed by awk.
8633
dd7bf85e
DJ
86342002-03-10 Daniel Jacobowitz <drow@mvista.com>
8635
8636 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8637 * defs.h: Include "gdb/signals.h".
8638 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8639
33a0a2ac
ML
86402002-03-10 Michal Ludvig <mludvig@suse.cz>
8641
8642 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8643 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8644 from x86-64-tdep.h
8645
dd824b04
DJ
86462002-03-10 Daniel Jacobowitz <drow@mvista.com>
8647 Don Howard <dhoward@redhat.com>
8648
8649 * mips-tdep.c (ST0_FR): Define.
8650 (mips2_fp_compat): New function, temporarily disabled.
8651 (mips_read_fp_register_single): New function.
8652 (mips_read_fp_register_double): New function.
8653 (mips_print_register): Use them.
8654 (do_fp_register_row): Likewise.
8655
6a41ff59
AC
86562002-03-09 Andrew Cagney <ac131313@redhat.com>
8657
8658 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8659 approval''.
8660
4ea09c10
PS
86612002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8662
8663 * stabsread.c (read_member_functions): Fix is_stub test for
8664 static member functions, improve comment.
8665
6ccc741d
RE
86662002-03-07 Richard Earnshaw <rearnsha@arm.com>
8667
8668 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8669 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8670 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8671 commands that set boolean values.
8672 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8673 (arm_rdi_resume): Always initialize PC.
8674 (arm_rdi_open): Don't use rslt as a boolean.
8675 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8676 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8677 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8678 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8679
438013df
AO
86802002-03-06 Alexandre Oliva <aoliva@redhat.com>
8681
8682 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8683 * configure: Rebuilt.
8684
70ed8774
SC
86852002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8686
8687 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8688 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8689
5ba2abeb
AC
86902002-03-06 Andrew Cagney <ac131313@redhat.com>
8691
8692 * cli/cli-decode.c (set_cmd_completer): New function.
8693 * command.h (set_cmd_completer): Declare.
8694 * cli/cli-decode.h (set_cmd_completer): Ditto.
8695
8696 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8697 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8698 * win32-nat.c (_initialize_inftarg): Ditto.
8699 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8700 * proc-api.c (_initialize_proc_api): Ditto.
8701 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8702 * source.c (_initialize_source): Ditto.
8703 * exec.c (_initialize_exec): Ditto.
8704 * solib.c (_initialize_solib): Ditto.
8705 * top.c (init_main): Ditto.
8706 * tracepoint.c (_initialize_tracepoint): Ditto.
8707 * symfile.c (_initialize_symfile): Ditto.
8708 * printcmd.c (_initialize_printcmd): Ditto.
8709 * infcmd.c (_initialize_infcmd): Ditto.
8710 * corefile.c (_initialize_core): Ditto.
8711
f779ca99
AC
87122002-03-05 Andrew Cagney <ac131313@redhat.com>
8713
8714 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8715
01a3934b
AC
87162002-03-05 Andrew Cagney <ac131313@redhat.com>
8717
8718 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8719
37057839
AC
87202002-03-05 Andrew Cagney <ac131313@redhat.com>
8721
8722 * NEWS: Update headings, 5.2 has branched.
8723
c6ecbae5
DJ
87242002-03-04 Daniel Jacobowitz <drow@mvista.com>
8725
8726 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8727 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8728 (register_addr, REGISTER_RAW_SIZE): Likewise.
8729 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8730 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8731
e9f30c21
ML
87322002-03-03 Michal Ludvig <mludvig@suse.cz>
8733
8734 * MAINTAINERS (x86-64): Add myself.
8735 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8736 changed value_ptr -> struct value *
8737
54394ac3
DB
87382002-03-01 David O'Brien <obrien@FreeBSD.org>
8739
8740 * configure.host (sparc64-*-freebsd): Add.
8741 * configure.tgt: Likewise.
8742 * config/sparc/fbsd.mh: New file.
8743 * config/sparc/fbsd.mt: Likewise.
8744 * config/sparc/nm-fbsd.h: Likewise.
8745 * config/sparc/tm-fbsd.h: Likewise.
8746
bfe95955
DJ
87472002-03-01 Daniel Jacobowitz <drow@mvista.com>
8748
8749 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8750 regformats/reg-s390x.dat.
8751
f33c6cbf
AC
87522002-03-01 Andrew Cagney <ac131313@redhat.com>
8753
8754 * utils.c: Add FIXME explaining true/false problem.
8755
5ecaa7dd
AC
87562002-02-28 Andrew Cagney <ac131313@redhat.com>
8757
8758 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8759
2a251cc2
MC
87602002-02-28 Michael Chastain <mec@shout.net>
8761
8762 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8763
6a8031a3 87642002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8765
8766 * gdbserver/linux-s390-low.c: New file.
8767 * regformats/reg-s390.dat: New file.
8768 * regformats/reg-s390x.dat: New file.
8769 * gdbserver/configure.srv: Add S/390.
8770 * gdbserver/Makefile.in: Add S/390.
8771 * configure.tgt: Enable gdbserver for S/390.
8772
ac469903
EZ
87732002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8774
8775 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8776 first line of the doc string for "info dos", except at the end of
8777 the sentence, since the short help stops at the first period.
8778
985cb1a3
JM
87792002-02-28 Jason Merrill <jason@redhat.com>
8780
8781 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8782
c570663e
FF
87832002-02-27 Fred Fish <fnf@redhat.com>
8784
8785 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8786 comment (dumy -> dummy).
8787
43630227
PS
87882002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8789
8790 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8791
b84911e8
RB
87922002-02-27 Rodney Brown <rbrown64@csc.com.au>
8793
8794 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8795
58caa3dc
DJ
87962002-02-27 Daniel Jacobowitz <drow@mvista.com>
8797
8798 * gdbserver/acconfig.h: New file.
8799 * gdbserver/i387-fp.c: New file.
8800 * gdbserver/i387-fp.h: New file.
8801 * gdbserver/linux-x86-64.c: New file.
8802 * regformats/reg-x86-64.dat: New file.
8803 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8804 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8805 * gdbserver/configure.in: Add support for regsets.
8806 * gdbserver/config.in: Regenerate.
8807 * gdbserver/configure: Regenerate.
8808 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8809 * gdbserver/linux-low.h: New file.
8810 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8811 for regsets.
8812 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8813 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8814 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8815 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8816 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8817 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8818 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8819 "i387-fp.h". Add PTRACE_GETREGS and friends.
8820 * gdbserver/regcache.c (supply_register): New function.
8821 (supply_register_by_name): New function.
8822 (collect_register): New function.
8823 (collect_register_by_name): New function.
8824
93652174
DJ
88252002-02-27 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8828 (config.status): Add configure.srv dependency.
8829 (server_h): Add config.h dependency.
8830
a02e4a61
DJ
88312002-02-27 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8834 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8835 * gdbserver/configure.srv: Change i386-*-linux* to use
8836 reg-i386-linux.o.
8837
ce0eebec
AC
88382002-02-26 Andrew Cagney <ac131313@redhat.com>
8839
8840 * x86-64-tdep.c: Re-indent. Update copyright date.
8841
82dbc5f7
AC
88422002-02-26 Andrew Cagney <ac131313@redhat.com>
8843
8844 From Michal Ludvig <mludvig@suse.cz>:
8845 * x86-64-tdep.c (value.h): Delete.
8846 (gdb_assert.h): Include.
8847 (x86_64_register_convert_to_virtual,
8848 x86_64_register_convert_to_raw ): Add check which lets only
8849 floating-point values to be converted.
8850 (value_push): Delete.
8851 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8852 (i386_gdbarch_init): Number of register_bytes fixed.
8853
e4621584
AC
88542002-02-26 Andrew Cagney <ac131313@redhat.com>
8855
8856 * MAINTAINERS: Add x86-64 target.
8857
81a9a963
AC
88582002-02-26 Andrew Cagney <ac131313@redhat.com>
8859
8860 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8861 * osfsolib.c (solib_map_sections): Ditto.
8862 * irix5-nat.c (solib_map_sections): Ditto.
8863 * corelow.c (gdb_check_format): Ditto.
8864 * symfile.c (symfile_bfd_open): Ditto.
8865 * solib.c (solib_map_sections): Ditto.
8866 Fix PR gdb/354.
7e336ba1 8867
0f017ab9
AC
88682002-02-26 Andrew Cagney <ac131313@redhat.com>
8869
8870 * remote.c (_initialize_remote): By default, disable ``e'' and
8871 ``E'' step out-of-range packets.
8872
75738c29
AS
88732002-02-26 Andreas Schwab <schwab@suse.de>
8874
8875 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8876 m68k_linux_frame_saved_pc.
8877 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8878 in_sigtramp.
8879 (SIGCONTEXT_PC_OFFSET): Remove.
8880 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8881 m68k_linux_sigtramp_saved_pc): New functions.
8882 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8883 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8884 (UCONTEXT_PC_OFFSET): Define.
8885 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8886 non-RT and RT signal trampolines.
8887
7e8ed687
RE
88882002-02-26 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8891 (TARGET_NBPG, STACK_END_ADDR): Delete
8892 (VARIABLES_INSIDE_BLOCK): Delete.
8893
6972bc8b
AC
88942002-02-25 Andrew Cagney <ac131313@redhat.com>
8895
8896 * utils.c (perror_with_name): Make string parameter constant.
8897 (print_sys_errmsg): Ditto.
8898 (query): Ditto.
8899 * defs.h (perror_with_name): Update.
8900 (print_sys_errmsg): Update.
8901 (query): Update.
8902
aa32f823
DJ
89032002-02-25 Daniel Jacobowitz <drow@mvista.com>
8904
8905 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8906 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8907
19caaa45
PS
89082002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8909
8910 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8911 if it already matches the current architecture from the exec file.
8912 Include arch-utils.h for gdbarch_info_init prototype.
8913 * Makefile.in (rs6000-nat.o): Update dependencies.
8914
d951901f
EZ
89152002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8916
8917 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8918 list of exported variables.
8919
7ea81414
DJ
89202002-02-24 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * gdbserver/configure.srv: New file.
8923 * gdbserver/configure.in: Use configure.srv instead
8924 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8925 from it.
8926 * gdbserver/configure: Regenerated.
8927 * gdbserver/terminal.h: New file.
8928 * gdbserver/Makefile.in: Update for configure changes. Remove
8929 more unneeded include paths.
8930
080fe24b
AC
89312002-02-24 Andrew Cagney <ac131313@redhat.com>
8932
8933 From wiz at danbala:
8934 * config/sparc/tm-sp64.h: Fix grammar and typos.
8935 Fix PR gdb/287.
8936
8605d56e
AC
89372002-02-24 Andrew Cagney <ac131313@redhat.com>
8938
8939 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8940 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8941 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8942 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8943 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8944 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8945 * s390-tdep.c: Ditto.
92362027
AC
8946 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8947 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8948 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8949 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8950 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8951 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8952 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8953 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8954 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8955 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8956 Fix PR gdb/378.
7e336ba1 8957
8ed32cc0
AC
89582002-02-23 Andrew Cagney <ac131313@redhat.com>
8959
a3007b6f
AC
8960 * lin-thread.c: Delete file.
8961 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8962 to gdb_proc_service.h.
8963 * configure: Re-generate.
8964
50a9e2f1
AC
8965 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8966 * serial.c (serial_open): Delete check for "ocd".
8967 Fix PR gdb/349.
8968
8b6e7932
AC
8969 * Makefile.in (linux-thread.o): Delete target.
8970 * linux-thread.c: Delete file.
8971
d155c46b
AC
8972 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8973 renamed SH files to be consistent.
8974
8ed32cc0
AC
8975 * symtab.c (sort_search_symbols): Use xfree.
8976
0e18d038
RE
89772002-02-23 Richard Earnshaw <rearnsha@arm.com>
8978
8979 * arm-linux-tdep.c (arm_linux_init_abi): Register
8980 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8981 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8982 definition with undef, since we don't want the sysvr4 definition.
8983 (SKIP_TRAMPOLINE_CODE): Likewise.
8984
27aac7ff
AC
89852002-02-23 Andrew Cagney <ac131313@redhat.com>
8986
8987 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8988
8989 * configure.in: (AC_CHECK_FUNCS) Added test for
8990 canonicalize_file_name Regenerated.
8991 * config.in, configure: Regenerated.
8992 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8993 defined use canonicalize_file_name.
7e336ba1 8994
65a6e0ee
MC
89952002-02-23 Michael Chastain <mec@shout.net>
8996
8997 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8998
47b95330
AC
89992002-02-23 Andrew Cagney <ac131313@redhat.com>
9000
9001 * README: Remove references to cygnus.com.
9002 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9003 dot com'' form. Remove references to cygnus.com and sourceware.
9004
696f451b
AC
90052002-02-23 Andrew Cagney <ac131313@redhat.com>
9006
9007 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9008 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9009 1003.1-2001 no longer allows "head -1".
9010 * gdb/Makefile.in (version.c): Likewise.
9011 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9012 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9013 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9014
bbaca940
AC
90152002-02-23 Andrew Cagney <ac131313@redhat.com>
9016
9017 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9018 * command.h (cmd_cfunc_eq): Declare.
9019 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9020
9021 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9022 ``struct cmd_list_element *''.
9023 * cli/cli-cmds.c (is_complete_command): Update. Use
9024 cmd_cfunc_eq.
9025 * top.c (execute_command): Pass the command to
9026 is_complete_command.
9027 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9028
b8b8b047
AC
90292002-02-23 Andrew Cagney <ac131313@redhat.com>
9030
9031 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9032 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9033 architecture defines.
9034 * s390-tdep.c (s390_gdbarch_init): Likewise.
9035
19d3fc80
RE
90362002-02-23 Richard Earnshaw <rearnsha@arm.com>
9037
9038 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9039 (arm_linux_push_arguments): Likewise.
9040 (arm_linux_init_abi): Register them. Also register linux-specific
9041 call_dummy_words.
9042 (find_minsym_and_objfile): Use strcmp, not STREQ.
9043 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9044 (arm_linux_call_dummy_words): Delete declaration.
9045 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9046 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9047 declarations.
9048 (LOWEST_PC): Delete.
9049
3ab13650
PS
90502002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9051
9052 * maint.c (print_section_info): Do not prepend `0x' to filepos
9053 output, it will be handled by local_hex_string_custom.
9054
19d3fc80 90552002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9056
9057 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9058 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9059 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9060
d85a5daf
JB
90612002-02-22 Jim Blandy <jimb@redhat.com>
9062
9063 Indicate that the bcache functions don't change the strings
9064 they're passed.
9065 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9066 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9067
eeb25b8a
PM
90682002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9069
9070 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9071
6badb179
CF
90722002-02-21 Christopher Faylor <cgf@redhat.com>
9073
9074 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9075 find the complete path to a loaded DLL.
9076
e8717518
FF
90772002-02-21 Fred Fish <fnf@redhat.com>
9078
9079 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9080 that marks the end of the range of a function, enter a line number
9081 entry that has a line number of zero and a PC offset that matches
9082 the end of the function. This starts a range of PC's for which no
9083 line number information is known.
9084 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9085 PC's for which no line number info is found (line number is zero)
9086 then we didn't find any valid line information.
9087 * symtab.h: Document use of zero line number entry.
9088
9abe5450
EZ
90892002-02-21 Elena Zannoni <ezannoni@redhat.com>
9090
9091 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9092 (have_ptrace_getvrregs): Define for run time checks.
9093 (gdb_vrregset_t): New type for Altivec register handling.
9094 (fetch_register, store_register): Fetch/store altivec register
9095 when needed.
9096 (fetch_altivec_register, store_altivec_register): New functions.
9097 (supply_vrregset, fill_vrregset): New functions.
9098 (fetch_altivec_registers, store_altivec_registers): New functions.
9099 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9100 registers as well.
9101
aaa38bb5
AJ
91022002-02-21 Jiri Smid <smid@suse.cz>
9103
9104 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9105
b34db576
RE
91062002-02-21 Richard Earnshaw <rearnsha@arm.com>
9107
9108 * Makefile.in (armnbsd-nat.o): Update dependencies.
9109 * armnbsd-nat.c (supply_gregset): New function. Common code to
9110 supply the integer register set.
9111 (supply_fparegset): New function. Similar for FPA registers.
9112 (fetch_regs, fetch_fp_regs): Use them.
9113 (fetch_core_registers): Likewise.
9114 (fetch_elfcore_registers): New function.
9115 (arm_netbsd_elfcore_fns): New core-file type specification.
9116 (_initialize_arm_netbsd_nat): Register it.
9117
3e56fc4b
RE
91182002-02-21 Richard Earnshaw <rearnsha@arm.com>
9119
9120 * armnbsd-nat.c: Include gdbcore.h.
9121 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9122 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9123 'void' to declaration, to shut up ARI.
9124 (fetch_core_registers): Make static. Rewrite using supply_register.
9125 (arm_netbsd_core_fns): New core-file type specification.
9126 (_initialize_arm_netbsd_nat): New function.
9127
097f6b0b
CF
91282002-02-21 Christopher Faylor <cgf@redhat.com>
9129
9130 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9131 value.
9132
c914e0cc
CF
91332002-02-20 Christopher Faylor <cgf@redhat.com>
9134
9135 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9136 fails.
9137
385fa495
DJ
91382002-02-20 Daniel Jacobowitz <drow@mvista.com>
9139
9140 * jv-exp.y (parse_number): Change type of implicit longs
9141 to builtin_type_uint64.
9142
e5f1222d
DJ
91432002-02-20 Daniel Jacobowitz <drow@mvista.com>
9144
9145 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9146 to be an integer instead of a `union wait'.
9147
75c9abc6
DJ
91482002-02-20 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * mips-linux-nat.c: Call the operating system GNU/Linux.
9151 * mips-linux-tdep.c: Likewise.
9152 * mips-tdep.c: Likewise.
9153
551792a5
DJ
91542002-02-20 Daniel Jacobowitz <drow@mvista.com>
9155
9156 Fix PR gdb/265.
9157 * jv-exp.y (parse_number): Handle 64-bit integers.
9158
ee6e2b82
DJ
91592002-02-20 Daniel Jacobowitz <drow@mvista.com>
9160
9161 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9162 AC_STDC_HEADERS to AC_HEADER_STDC.
9163 * gdbserver/configure: Regenerated.
9164
a48442a0
RE
91652002-02-20 Richard Earnshaw <rearnsha@arm.com>
9166
9167 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9168 is defined.
9169 * sparc-tdep.c (get_longjmp_target): Likewise.
9170
fe419ffc
RE
91712002-02-20 Richard Earnshaw <rearnsha@arm.com>
9172
9173 * News: Add news about ARM and Multi-arch. Mention the new target
9174 arm*-*-netbsd*.
9175
5832ed7e
JB
91762002-02-19 Jim Blandy <jimb@redhat.com>
9177
9178 * stabsread.c (error_type_complaint): Improve error message.
9179
84563040
DJ
91802002-02-19 Daniel Jacobowitz <drow@mvista.com>
9181
9182 * gdbserver/README: Update documentation.
9183 * gdbserver/configure.in: Update configury to match documentation.
9184 * gdbserver/Makefile.in: Likewise.
9185 * gdbserver/configure: Regenerated.
9186 * gdbserver/aclocal.m4: New file, generated by aclocal.
9187 * gdbserver/config.in: New file, generated by autoheader.
9188
375fd65b
RE
91892002-02-19 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9192 armnbsd-nat.c.
9193
08216dd7
RE
91942002-02-19 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * arm-tdep.h (enum arm_float_model): New enum.
9197 (struct gdbarch_tdep): Add fp_model.
9198 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9199 up floating-point conversions until we know the floating-point model
9200 in use by the inferior. Don't complain about being unable to
9201 determine the ABI of the inferior when we don't have one.
9202 (arm_extract_return_value): Support different floating-point models.
9203 (arm_store_return_value): Likewise.
aaa38bb5 9204 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9205 ARM_FLOAT_SOFT.
9206 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9207
65d6d66a
PS
92082002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9209
9210 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9211 of ``current_gdbarch''.
9212
47221191
RE
92132002-02-19 Richard Earnshaw <rearnsha@arm.com>
9214
9215 * armnbsd-nat.c : ANSIfy all function declarations.
9216 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9217 (fetch_inferior_registers): Re-implement in terms of above.
9218 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9219 (store_inferior_registers): Re-implement in terms of above.
9220
fdf39c9a
RE
92212002-02-19 Richard Earnshaw <rearnsha@arm.com>
9222
aaa38bb5 9223 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9224 kernel.
9225 * arm-linux-tdep.c: Likewise.
9226 * config/arm/tm-linux.h: Likewise.
9227
93247f88
RE
92282002-02-19 Richard Earnshaw <rearnsha@arm.com>
9229
9230 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9231 * config/arm/nbsd.mt (TM_FILE): Delete.
9232 * config/arm/tm-nbsd.h: Delete.
9233
d7b486e7
RE
92342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9235
9236 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9237 Initialize CALL_DUMMY_LENGTH.
9238
41d39a95
RE
92392002-02-19 Richard Earnshaw <rearnsha@arm.com>
9240
9241 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9242 function.
9243 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9244 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9245 defines one thing and that is incorrect for this port.
9246 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9247
e1195560
PM
92482002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9249
9250 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9251
c1748f97
PM
92522002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9253
9254 * win32-nat.c (display_selector): New function. Displays information
9255 about the information returned by GetThreadSelectorEntry API function.
9256 (display_selectors): New function. Displays the infomation of
9257 the selector given as argument, or of CS, DS ans FS selectors
9258 if no argument is given.
9259 ( _initialize_inftarg): Add "w32" as info prefix command.
9260 Add "info w32 selector" as command calling display_selectors.
9261
e41e6bbf
PM
92622002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9263
9264 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9265 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9266 if not defined.
9267
0d3a9f48
RE
92682002-02-18 Richard Earnshaw <rearnsha@arm.com>
9269
9270 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9271
3fb4b924
RE
92722002-02-18 Richard Earnshaw <rearnsha@arm.com>
9273
9274 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9275 (arm_fix_call_dummy): Call it.
9276 (arm_call_dummy_breakpoint_offset): Delete.
9277 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9278 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9279
7f55af32
AC
92802002-02-18 Andrew Cagney <ac131313@redhat.com>
9281
9282 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9283 Default to func_frame_chain_valid.
9284 * gdbarch.h, gdbarch.c: Re-generate.
9285 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9286
05f13b9c
EZ
92872002-02-18 Elena Zannoni <ezannoni@redhat.com>
9288
9289 * ppc-linux-nat.c: Update copyright.
9290 (fetch_register, store_register): Add tid parameter, don't compute
9291 tid here.
9292 (fetch_ppc_registers, store_ppc_registers): Add tid
9293 parameter. Pass it along to callees.
9294 (fetch_inferior_registers, store_inferior_registers): Compute tid
9295 here, and pass it to calleed functions.
9296 (fill_gregset, supply_fpregset): Clean up formatting.
9297
d7afb4c9
RE
92982002-02-18 Richard Earnshaw <rearnsha@arm.com>
9299
9300 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9301 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9302
9df628e0
RE
93032002-02-18 Richard Earnshaw <rearnsha@arm.com>
9304
9305 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9306 * gdbarch.c gdbarch.h: Regenerate.
9307 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9308 function.
9309 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9310 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9311 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9312
9313 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9314 * arm-tdep.c (arm_get_longjmp_target): New function.
9315 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9316 this to a positive value register arm_get_longjmp_target as the
9317 longjmp handler.
9318 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9319 (arm_linux_init_abi): Set up longjmp description in tdep.
9320 * armnbsd-nat.c (get_longjmp_target): Delete.
9321 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9322 description in tdep.
9323 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9324 (get_longjmp_target): Delete declaration.
9325 (GET_LONGJMP_TARGET): Delete.
9326 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9327 (GET_LONGJMP_TARGET): Delete.
9328
57bc8964
KB
93292002-02-17 Kevin Buettner <kevinb@redhat.com>
9330
9331 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9332 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9333 of ``current_gdbarch''.
9334
83d31a92
TT
93352002-02-17 Tom Tromey <tromey@redhat.com>
9336
9337 * cli/cli-cmds.c (compare_strings): New function.
9338 (complete_command): Only print each unique item once.
9339 * completer.h (complete_line): Declare.
9340 * completer.c (complete_line): New function.
9341 (line_completion_function): Use it.
9342
17ef5d92
AC
93432002-02-16 Andrew Cagney <ac131313@redhat.com>
9344
9345 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9346 * gdbarch.h, gdbarch.c: Re-generate.
9347
491b8946
DJ
93482002-02-16 Daniel Jacobowitz <drow@mvista.com>
9349
9350 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9351
93522002-02-16 Daniel Jacobowitz <drow@mvista.com>
9353
9354 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9355 * valops.c (value_arg_coerce): Don't take the address of a reference
9356 to convert an argument to a reference.
9357
dfe7f3ac
CF
93582002-02-15 Christopher Faylor <cgf@redhat.com>
9359
9360 * win32-nat.c (get_image_name): New function.
9361 (handle_load_dll): Use get_image_name function.
9362 (get_child_debug_event): Avoid registering debug events until possibly
9363 execed process is started.
9364 (child_create_inferior): Allow invocation via shell so that command
9365 line redirection, etc. works ok.
9366 (_initialize_inftarg): Add new command: "set shell" to control whether
9367 a shell is used to start a process.
9368
1d33e73a
DJ
93692002-02-15 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9372 instead of find_register_by_number.
9373 (cannot_store_register): Likewise.
9374
48cd0caa
PM
93752002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9376
aaa38bb5 9377 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9378 fprintf_unfiltered (gdb_stderr, ...).
9379
8656e7d8
DJ
93802002-02-15 Daniel Jacobowitz <drow@mvista.com>
9381
9382 * gdbserver/gdbserver.1: Document --attach.
9383
66e810cd
RE
93842002-02-15 Richard Earnshaw <rearnsha@arm.com>
9385
9386 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9387 descriptions.
9388 * arm-tdep.c (arm_default_arm_le_breakpoint)
9389 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9390 (arm_default_thumb_be_breakpoint): New. Initialize them from
9391 traditional breakpoint defines.
9392 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9393 (arm_gdbarch_init): Initialize new breakpoint variables.
9394 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9395 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9396 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9397 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9398 code out to ...
9399 (arm_netbsd_init_abi_common): ... here; new function.
9400 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9401 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9402 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9403 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9404
97e03143
RE
94052002-02-15 Richard Earnshaw <rearnsha@arm.com>
9406
9407 * arm-tdep.h (enum arm_abi): New enum.
9408 (struct gdbarch_tdep): New structure.
9409 (LOWEST_PC): Provide a default.
9410 (arm_gdbarch_register_os_abi): Declare new function.
9411 * arm-tdep.c (arm_abi_names): New array.
9412 (process_note_abi_tag_sections): New function.
9413 (get_elfosabi): New function.
9414 (arm_gdbarch_register_os_abi): New function.
9415 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9416 support for that ABI has been built in, then call the appropriate
9417 configuration routine. Use gdbarch_num_regs() to get the number
9418 of registers.
9419 (arm_dump_tdep): New function.
9420 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9421 place-holder functions.
9422 (_initialize_arm_tdep): Register them.
9423 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9424
9425 * armnbsd-tdep.c: New file.
9426 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9427 * config/arm/nbsd.mt (TDEPFILES): Add it.
9428 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9429
9430 * armnbsd-nat.c: Include regcache.h.
9431 * Makefile.in (armnbsd-nat.o): Update dependency list.
9432
9433 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9434
ad68be46
DJ
94352002-02-14 Daniel Jacobowitz <drow@mvista.com>
9436
9437 * gdbserver/Makefile.in: Fix typos in target rules.
9438
003d6d1d
DJ
94392002-02-14 Daniel Jacobowitz <drow@mvista.com>
9440
aaa38bb5 9441 Fix part of PR gdb/267.
003d6d1d
DJ
9442 * linespec.c (find_methods): Handle constructors specially for now.
9443
6b230f1b
CV
94442002-02-14 Corinna Vinschen <vinschen@redhat.com>
9445
9446 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9447 handling.
9448 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9449 standard_coerce_float_to_double().
9450
1ea98d12
CF
94512002-02-14 Christopher Faylor <cgf@redhat.com>
9452
9453 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9454 GDBINIT_FILENAME.
9455
dd47e6fd
EZ
94562002-02-14 Elena Zannoni <ezannoni@redhat.com>
9457
9458 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9459 find_variant_by_name, because it confuses the multiarch
9460 framework. Return NULL if there isn't an architecture with the
9461 user supplied name, instead of forcing a different one without
9462 recording the change with the multiarch machinery.
9463 (find_variant_by_name): Delete.
9464
d7e39b9e
PS
94652002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9466
9467 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9468 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9469
76e42a4f
MH
94702002-02-13 Martin M. Hunt <hunt@redhat.com>
9471
aaa38bb5 9472 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9473 print_frame_info_listing_hook, set current_source_symtab.
9474
0a30fbc4
DJ
94752002-02-14 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9478 and remove unused $(INCLUDE_DIR).
9479 Add regcache.c to OBS.
9480 Add generated register protocol files to clean target.
9481 Update dependencies for new objects, obsolete old target code.
9482
9483 * gdbserver/linux-low.c: Remove all platform-specific code to
9484 new files. Remove various dead code. Update to use regcache
9485 functionality.
9486 * gdbserver/remote-utils.c (fromhex): Add return statement
9487 to quiet warning.
9488 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9489 constant.
9490 (input_interrupt): Add integer parameter to match prototype
9491 of a signal handler.
9492 (outreg): Use register_data ().
9493 (prepare_resume_reply): Use gdbserver_expedite_regs.
9494 * gdbserver/server.c (main): Dynamically allocate own_buf because
9495 PBUFSIZ is no longer constant. Use registers_to_string () and
9496 registers_from_string ().
9497 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9498 for error (), fatal (), and warning (). Update definition of
9499 PBUFSIZ to use regcache functionality. Add include guard.
9500 * gdbserver/utils.c (fatal): Add missing ``const''.
9501 (warning): New function.
9502
9503 * regformats/regdat.sh: Include "regcache.h" in generated files.
9504 Provide init_registers () function.
9505 * regformats/regdef.h: Add prototype for set_register_cache ().
9506 Add include guard.
9507
9508 * gdbserver/linux-arm-low.c: New file.
9509 * gdbserver/linux-i386-low.c: New file.
9510 * gdbserver/linux-ia64-low.c: New file.
9511 * gdbserver/linux-m68k-low.c: New file.
9512 * gdbserver/linux-mips-low.c: New file.
9513 * gdbserver/linux-ppc-low.c: New file.
9514 * gdbserver/linux-sh-low.c: New file.
9515
9516 * gdbserver/regcache.c: New file.
9517 * gdbserver/regcache.h: New file.
9518
9519 * gdbserver/low-linux.c: Removed obsolete file.
9520
4cc841d0
DJ
95212002-02-14 Daniel Jacobowitz <drow@mvista.com>
9522
9523 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9524 * config/i386/linux.mt: Likewise.
9525 * config/ia64/linux.mt: Likewise.
9526 * config/m68k/linux.mh: Likewise.
9527 * config/powerpc/linux.mh: Likewise.
9528 * config/mips/linux.mt: Likewise.
9529
9530 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9531
9532 * config/i386/i386lynx.mh: Mark gdbserver variables
9533 as (currently) obsolete for this target.
9534 * config/i386/nbsd.mt: Likewise.
9535 * config/i386/nbsdelf.mt: Likewise.
9536 * config/m32r/m32r.mt: Likewise.
9537 * config/m68k/m68klynx.mh: Likewise.
9538 * config/m68k/nbsd.mt: Likewise.
9539 * config/m68k/sun3os4.mh: Likewise.
9540 * config/mips/vr5000.mt: Likewise.
9541 * config/ns32k/nbsd.mt: Likewise.
9542 * config/pa/hppabsd.mh: Likewise.
9543 * config/pa/hppaosf.mh: Likewise.
9544 * config/powerpc/nbsd.mt: Likewise.
9545 * config/rs6000/rs6000lynx.mh: Likewise.
9546 * config/s390/s390.mt: Likewise.
9547 * config/s390/s390x.mt: Likewise.
9548 * config/sparc/sparclynx.mh: Likewise.
9549 * config/sparc/sun4os4.mh: Likewise.
9550 * config/i386/x86-64linux.mt: Likewise.
9551 * config/sparc/linux.mh: Likewise.
9552
a85f51e7
DJ
95532002-02-14 Daniel Jacobowitz <drow@mvista.com>
9554
9555 * configure.tgt: Configure gdbserver only for known working
9556 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9557 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9558 SUBDIRS if it is configured. Update comment for ${nativefile}.
9559 * configure: Regenerated.
9560
65554fef
MS
95612002-02-13 Michael Snyder <msnyder@redhat.com>
9562
670a52db
MS
9563 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9564
6dbdc4a3
MS
9565 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9566 (default_gcore_mach): Just return 0, work around a problem in bfd.
9567 (default_gcore_target): OK to return NULL if exec_bfd is null.
9568 (make_mem_sec): Use a cast, avoid a warning.
9569
9570 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9571 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9572 sizeof (host pointer) != sizeof (target pointer)).
9573 (procfs_make_note_section): Avoid overflow in psargs string.
9574
aaa38bb5 9575 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9576 implementation return an error.
9577
95782002-02-13 Rodney Brown <rbrown64@csc.com.au>
9579
9580 * procfs.c (procfs_make_note_section): Provide a default definition
9581 (for alpha-dec-osf4.0f). Fix typos.
9582
1e4d76e7
EZ
95832002-02-13 Elena Zannoni <ezannoni@redhat.com>
9584
9585 * linux-proc.c: Add include of regcache.h.
9586 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9587
b6d1a1d5
AC
95882002-02-13 Andrew Cagney <ac131313@redhat.com>
9589
9590 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9591 * memattr.c (create_mem_region): Disallow useless empty region.
9592 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9593 non-overlapping.
b6d1a1d5 9594
6c6ea35e
MC
95952002-02-13 Michael Chastain <mec@shout.net>
9596
9597 * defs.h: Kill CONST_PTR.
9598 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9599 * c-lang.c (c_builtin_types): Likewise.
9600 * ch-lang.c (ch_builtin_types): Likewise.
9601 * f-lang.c (f_builtin_types): Likewise.
9602 * language.c (unknown_builtin_types): Likewise.
9603 * m2-lang.c (m2_builtin_types): Likewise.
9604 * p-lang.c (pascal_builtin_types): Likewise.
9605 * scm-lang.c (c_builtin_types): Likewise.
9606
3e0b0f48
KS
96072002-02-13 Keith Seitz <keiths@redhat.com>
9608
9609 * arm-tdep.h (arm_get_next_pc): Add declaration.
9610
67255d04
RE
96112002-02-13 Richard Earnshaw <rearnsha@arm.com>
9612
9613 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9614 with other related struct-returning functions.
9615 (arm_extract_struct_value_address): New function.
9616 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9617 initialize float_format, double_format and long_double_format as
9618 appropriate to the endianness of the target.
9619 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9620 (arm_use_struct_convention): Delete declaration.
9621 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9622
079777f6
KS
96232002-02-13 Keith Seitz <keiths@redhat.com>
9624
9625 * defs.h (core_addr_to_string_nz): New function.
9626
34588f23
MK
96272002-02-13 Mark Kettenis <kettenis@gnu.org>
9628
9629 Apply missing bits of 2002-01-15 patch.
9630 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9631 (fill_fpregset): Use i387_fill_fsave.
9632
49b563f9
KS
96332002-02-12 Keith Seitz <keiths@redhat.com>
9634
49b563f9
KS
9635 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9636 (core_addr_to_string_nz): New function.
9637
aeb98c60
RE
96382002-02-11 Richard Earnshaw <rearnsha@arm.com>
9639
9640 * arm-linux-nat.c: Really include arm-tdep.h.
9641 * config/arm/tm-linux.h (struct type, struct value): Declare.
9642
65554fef
MS
96432002-02-11 Michael Snyder <msnyder@redhat.com>
9644
9645 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9646 (gcore section): Ifdef for Solaris and Unixware only.
9647 (procfs_do_thread_registers): Unixware needs one lwpstatus
9648 per thread (not one prstatus or pstatus).
9649 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9650 not over all gdb threads. For unixware, call elfcore_write_pstatus
9651 once before iterating over threads.
9652
34e8f22d
RE
96532002-02-11 Richard Earnshaw <rearnsha@arm.com>
9654
9655 * arm-tdep.h: New file.
9656 * arm-tdep.c: Include arm-tdep.h.
9657 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9658 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9659 (arm_print_float_info, arm_register_type, convert_to_extended)
9660 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9661 (arm_extract_return_value, arm_register_name): Make static.
9662 (arm_software_single_step): Similarly. Fix types in declaration.
9663 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9664 (arm_store_return_value, arm_store_struct_return): New functions.
9665 (arm_gdbarch_init): Register the above functions. Also register
9666 call_dummy_start_offset, sizeof_call_dummy_words,
9667 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9668 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9669 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9670 prologue_cache.saved_regs here, rather than ...
9671 (_initialize_arm_tdep): ... here.
9672 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9673 declarations.
9674 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9675 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9676 (arm_print_float_info, arm_register_type, convert_to_extended)
9677 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9678 (arm_extract_return_value, arm_register_name): Delete declarations.
9679 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9680 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9681 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9682 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9683 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9684 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9685 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9686 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9687 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9688 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9689 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9690 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9691 interface.
9692 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9693 * remote-rdi.c remote-rdp.c: Likewise.
9694 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9695 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9696 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9697 definition.
9698
9699 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9700 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9701 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9702 from non-ARM_ prefixed definitions.
9703 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9704 all uses of above.
9705 * remote-rdi.c remote-rdp.c: Likewise.
9706 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9707
148754e5
RE
97082002-02-11 Richard Earnshaw <rearnsha@arm.com>
9709
9710 * arm-tdep.c (arm_frameless_function_invocation)
9711 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9712 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9713 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9714 (arm_pop_frame, arm_get_next_pc): Make static.
9715 (arm_gdbarch_init): Register above in gdbarch structure.
9716 (arm_read_fp): Renamed from arm_target_read_fp.
9717 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9718 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9719 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9720 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9721 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9722 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9723 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9724 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9725 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9726 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9727 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9728
434d2d4f
DJ
97292002-02-10 Daniel Jacobowitz <drow@mvista.com>
9730
9731 * symtab.c (compare_search_syms): New function.
9732 (sort_search_symbols): New function.
9733 (search_symbols): Sort symbols after searching rather than
9734 before.
9735
55241689
AC
97362002-02-10 Andrew Cagney <ac131313@redhat.com>
9737
9738 * NEWS: Linux -> GNU/Linux.
9739
028c194b
AC
97402002-02-10 Andrew Cagney <ac131313@redhat.com>
9741
9742 * gdbarch.sh: For for level one methods, disallow a definition
9743 when partially multi-arched. Add comments explaining rationale.
9744 * gdbarch.h: Re-generate.
9745
6acf50cd
AC
97462002-02-10 Andrew Cagney <ac131313@redhat.com>
9747
9748 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9749 multi-arch partial.
aaa38bb5 9750
50248794
AC
97512002-02-10 Andrew Cagney <ac131313@redhat.com>
9752
9753 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9754 field. Use diff -u.
9755 * gdbarch.c: Re-generate.
9756
c30e0066
AC
97572002-02-10 Andrew Cagney <ac131313@redhat.com>
9758
9b56c5f3 9759 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9760 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9761 partial.
9762
6e6d6484
AC
97632002-02-10 Andrew Cagney <ac131313@redhat.com>
9764
9765 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9766 multi-arch partial.
9767 (PUSH_ARGUMENTS): Switch to using predefault.
9768 * gdbarch.c: Regenerate.
9769
c203844d
AC
97702002-02-10 Andrew Cagney <ac131313@redhat.com>
9771
9772 * valops.c (PUSH_ARGUMENTS): Delete definition.
9773 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9774 partial. Default to default_push_arguments.
9775 * gdbarch.h, gdbarch.c: Regenerate.
9776
b5a2688f
AC
97772002-02-09 Andrew Cagney <ac131313@redhat.com>
9778
9779 * defs.h (throw_exception): Rename return_to_top_level. Update
9780 comments.
9781 * utils.c (error_stream, internal_verror, quit): Ditto.
9782 * top.c (throw_exception, catcher): Ditto.
9783 * sparclet-rom.c (sparclet_load): Ditto.
9784 * remote.c (interrupt_query, minitelnet): Ditto.
9785 * remote-sds.c (interrupt_query): Ditto.
9786 * remote-mips.c (mips_error, mips_kill): Ditto.
9787 * ocd.c (interrupt_query): Ditto.
9788 * monitor.c (monitor_interrupt_query): Ditto.
9789 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9790 * target.h: Update comment.
aaa38bb5 9791
b5a2688f 9792 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9793
2fa5c1e0
AC
97942002-02-09 Andrew Cagney <ac131313@redhat.com>
9795
9796 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9797 default_double_format.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799 * findvar.c (floatformat_unknown): Delete variable definition.
9800 * doublest.h (floatformat_unknown): Delete variable declaration.
9801
da966255
JB
98022002-02-09 Jim Blandy <jimb@redhat.com>
9803
9804 * stabsread.c (read_type): Add code to parse Sun's syntax for
9805 prototyped function types.
9806
123a4891
AC
98072002-02-09 Andrew Cagney <ac131313@redhat.com>
9808
9809 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9810 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9811
fb39c8f3
PS
98122002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9813
9814 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9815 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9816 now _initialize_xcoffsolib gets called again and overrides the
9817 commands from solib.c in a native configuration.
9818
0b87a11d
MK
98192002-02-09 Mark Kettenis <kettenis@gnu.org>
9820
9821 * doublest.c (store_typed_floating): Don't try to return a value.
9822 Fixes PR gdb/290.
9823
bdc2fc72
JB
98242002-02-08 Jim Blandy <jimb@redhat.com>
9825
9826 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9827 is prototyped and has no arguments, print its argument list as
9828 `(void)'.
9829
da69bbcf
CD
98302002-02-08 Chris Demetriou <cgd@broadcom.com>
9831
9832 * MAINTAINERS (write-after-approval): Add myself.
9833 (paper-trail): I've escaped!
aaa38bb5 9834
b69571f5
CF
98352002-02-08 Christopher Faylor <cgf@redhat.com>
9836
9837 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9838 changes.
9839 (_initialize_check_for_gdb_ini): Ditto.
9840
f6871398
MH
98412002-02-08 Martin M. Hunt <hunt@redhat.com>
9842
9843 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9844 xaprintf -> xasprintf.
9845
4e52d31c
PM
98462002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9847
9848 * win32-nat.c: Remove use of printf and sprintf functions.
9849
39bbf761
RE
98502002-02-08 Richard Earnshaw <rearnsha@arm.com>
9851
9852 * arm-tdep.c (arm_frame_chain_valid): Make static.
9853 (arm_push_arguments): Likewise.
9854 (arm_gdbarch_init): New function.
9855 (_initialize_arm_tdep): Call it.
9856 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9857 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9858 (FRAME_CHAIN_VALID): Delete.
9859 (arm_frame_chain_valid): Delete declaration.
9860 (PUSH_ARGUMENTS): Delete.
9861 (arm_push_arguments): Delete declaration.
9862 (CALL_DUMMY_P): Delete.
9863
9c9532c9
CV
98642002-02-08 Andrew Cagney <ac131313@redhat.com>
9865 Corinna Vinschen <vinschen@redhat.com>
9866
9867 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9868 on builtin float types.
9869
4e8f7a8b
DJ
98702002-02-08 Daniel Jacobowitz <drow@mvista.com>
9871
9872 * utils.c: Include <curses.h> before "bfd.h".
9873 * tui/tui-hooks.c: Likewise.
9874 * tui/tui.c: Likewise.
9875 * tui/tuiCommand.c: Likewise.
9876 * tui/tuiData.c: Likewise.
9877 * tui/tuiDataWin.c: Likewise.
9878 * tui/tuiDisassem.c: Likewise.
9879 * tui/tuiGeneralWin.c: Likewise.
9880 * tui/tuiIO.c: Likewise.
9881 * tui/tuiLayout.c: Likewise.
9882 * tui/tuiRegs.c: Likewise.
9883 * tui/tuiSource.c: Likewise.
9884 * tui/tuiSourceWin.c: Likewise.
9885 * tui/tuiStack.c: Likewise.
9886 * tui/tuiWin.c: Likewise.
9887
cd4bffcf
EZ
98882002-02-07 Elena Zannoni <ezannoni@redhat.com>
9889
9890 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9891 to include space for pseudoregs as well. Update loops accordingly.
9892 (sh_fp_frame_init_saved_regs): Ditto.
9893 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9894
26806ce2
AC
98952002-02-07 Andrew Cagney <ac131313@redhat.com>
9896
9897 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9898 Add Richard Earnshaw to Arm maintainers.
9899
97fdab62
AC
99002002-02-07 Andrew Cagney <ac131313@redhat.com>
9901
a6b98203
AC
9902 * defs.h (warning_begin): Delete declaration.
9903
97fdab62
AC
9904 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9905 Delete macro.
9906
78b29b40
MS
99072002-02-07 Michael Snyder <msnyder@redhat.com>
9908
aaa38bb5 9909 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9910 Logic bug, remove misplaced else.
9911
d8849953
KD
99122002-02-07 Klee Dienes <klee@apple.com>
9913
9914 * fork-inferior.c (fork_inferior): Add '!' to the list of
9915 characters that need to be quoted when building a string for the
9916 shell. Quote '!' specifically with a backslash, since CSH chokes
9917 when trying to evaluate "str!str".
aaa38bb5 9918
095778a0
NC
99192002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9920
9921 * rdi-share/host.h: Only provide a typedef for bool if it is not
9922 defined.
9923
1900040c
MS
99242002-02-04 Michael Snyder <msnyder@redhat.com>
9925
9926 * breakpoint.h (enum bptype): Add new overlay event bp type.
9927 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9928
1900040c
MS
9929 * breakpoint.c (create_internal_breakpoint): New function.
9930 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9931 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9932 (create_thread_event_breakpoint): Ditto.
9933 (create_solib_event_breakpoint): Ditto.
9934 (create_overlay_event_breakpoint): New function.
9935 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9936 (update_breakpoints_after_exec): Delete and re-initialize
9937 overlay event breakpoints after an exec. Add FIXME comment
9938 about longjmp breakpoint.
9939 (print_it_typical): Ignore overlay event breakpoints.
9940 (print_one_breakpoint): Ditto.
9941 (mention): Ditto.
9942 (bpstat_what): Do not stop for overlay event breakpoints.
9943 (delete_breakpoint): Don't delete overlay event breakpoints.
9944 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9945 (breakpoint_re_set): Re-create overlay event breakpoint.
9946
9947 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9948 (overlay_manual_command): Disable overlay breakpoints.
9949 (overlay_off_command): Disable overlay breakpoints.
9950
082fc60d
RE
99512002-02-06 Richard Earnshaw <rearnsha@arm.com>
9952
9953 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9954 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9955 to here from config/tm-arm.h.
9956 (coff_sym_is_thumb): Make static.
9957 (arm_elf_make_msymbol_special): New function.
9958 (arm_coff_make_msymbol_special): New function.
9959 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9960 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9961 (coff_sym_is_thumb): Delete declaration.
9962 (arm_elf_make_msymbol_special): Declare.
9963 (arm_coff_make_msymbol_special): Declare.
9964 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9965 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9966
039c5766
RE
99672002-02-06 Richard Earnshaw <rearnsha@arm.com>
9968
9969 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9970
99712002-02-06 Richard Earnshaw <rearnsha@arm.com>
9972
9973 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9974 * gdbarch.c gdbarch.h: Regenerate.
9975 * arch-utils.c (default_print_float_info): New function.
9976 * arch-utils.h (default_print_float_info): Prototype it.
9977 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9978 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9979 (PRINT_FLOAT_INFO): Document it.
9980
9981 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9982 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9983 (PRINT_FLOAT_INFO): Define.
9984
58fa08f0
PM
99852002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9986
aaa38bb5 9987 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9988 Add typecast to sprintf argument to suppress a warning.
9989
7393af7c
PM
99902002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9991
58fa08f0 9992 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9993 to allow easier handling of pass state.
9994 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9995 that gives exception name and address.
9996 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9997 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9998 exceptions added.
aaa38bb5
AJ
9999 (child_continue): Correctly report continue_status.
10000 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10001 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10002 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10003 the exception should be passed to debuggee or not.
10004
6af4589c
MS
100052002-02-05 Michael Snyder <msnyder@redhat.com>
10006
10007 * regcache.c (fetch_register): Call target_fetch_register
10008 only if we don't call FETCH_PSEUDO_REGISTER.
10009 (store_register): Call target_store_register only if we
10010 don't call STORE_PSEUDO_REGISTER.
10011
a2cf933a
EZ
100122002-02-05 Elena Zannoni <ezannoni@redhat.com>
10013
10014 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10015 ELF_MAKE_MSYMBOL_SPECIAL.
10016 * gdbarch.c, gdbarch.h: Regenerate.
10017 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10018 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10019 * elfread.c (elf_symtab_read): Compile use of
10020 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10021 multiarched.
10022 * coffread.c (coff_symtab_read): Ditto, for
10023 COFF_MAKE_MSYMBOL_SPECIAL.
10024
6bb7be43
JB
100252002-02-05 Jim Blandy <jimb@redhat.com>
10026
10027 * solib-svr4.c (svr4_truncate_ptr): New function.
10028 (svr4_relocate_section_addresses): Do the address arithmetic with
10029 the appropriate truncation for target addresses, even when
10030 CORE_ADDR is larger than a target address.
10031
e18651ec
DJ
100322002-02-05 Daniel Jacobowitz <drow@mvista.com>
10033
10034 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10035 to (int *).
10036
6b2725be
DJ
100372002-02-05 Daniel Jacobowitz <drow@mvista.com>
10038
10039 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10040 code.
10041
fca9e603
DJ
100422002-02-05 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10045
6c537a52
DJ
100462002-02-05 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * gdbserver/linux-low.c: Remove unused include files.
10049
d844cde6
DJ
100502002-02-05 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10053 (read_inferior_memory): Use it.
10054 (write_inferior_memory): Likewise.
10055
d07c63e7
DJ
100562002-02-05 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10059 grubbing through sys_errlist.
10060
da6d8c04
DJ
100612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10062
10063 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10064
5b421780
PM
100652002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10066 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10067
9f60d481
AC
100682002-02-04 Andrew Cagney <ac131313@redhat.com>
10069
10070 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10071 (do_sfunc, set_cmd_sfunc): New functions.
10072
10073 * command.h (struct cmd_list_element): Add field func.
10074 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10075 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10076 * cli/cli-decode.h: Ditto.
10077
10078 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10079 (help_all, help_cmd_list): Ditto.
10080 (find_cmd, complete_on_cmdlist): Ditto.
10081 * top.c (execute_command): Ditto.
10082
10083 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10084 function.sfunc.
10085
10086 * infcmd.c (notice_args_read): Fix function signature.
10087
10088 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10089 * cli/cli-decode.c (add_set_cmd): Ditto.
10090 * utils.c (initialize_utils): Ditto.
10091 * maint.c (_initialize_maint_cmds): Ditto.
10092 * infrun.c (_initialize_infrun): Ditto.
10093 * demangle.c (_initialize_demangler): Ditto.
10094 * remote.c (add_packet_config_cmd): Ditto.
10095 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10096 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10097 * proc-api.c (_initialize_proc_api): Ditto.
10098 * kod.c (_initialize_kod): Ditto.
10099 * valprint.c (_initialize_valprint): Ditto.
10100 * top.c (init_main): Ditto.
10101 * infcmd.c (_initialize_infcmd): Ditto.
10102 * corefile.c (_initialize_core): Ditto.
10103 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10104 * arch-utils.c (initialize_current_architecture): Ditto.
10105 (_initialize_gdbarch_utils): Ditto.
10106 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10107
10108 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10109 * wince.c (_initialize_inftarg): Ditto.
10110 * symfile.c (_initialize_symfile): Ditto.
10111 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10112 * language.c (_initialize_language): Ditto.
10113 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10114
f9ba0717
MS
101152002-02-04 Michael Snyder <msnyder@redhat.com>
10116
10117 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10118
0c74b2a7
DJ
101192002-02-04 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10122 Add rules for building the register data files.
10123
c638789f
DJ
101242002-02-04 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * regformats/regdat.sh: Add braces to the definition of
10127 expedite_regs_${arch}.
10128
db253027
DJ
101292002-02-04 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * regformats/regdef.h (struct reg): Add comment describing the
10132 requirements for offset and size fields.
10133
206be19c
AS
101342002-02-04 Andreas Schwab <schwab@suse.de>
10135
10136 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10137 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10138
181c1381
RE
101392002-02-04 Richard Earnshaw <rearnsha@arm.com>
10140
10141 * gdbarch.sh (copyright): Update years in generated header.
10142 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10143 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10144 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10145 * dbxread.c: Likewise.
10146 * dwarfread.c: Likewise.
10147 * elfread.c: Likewise.
10148 * somread.c: Likewise.
10149
10150 * arm-tdep.c (arm_smash_text_address): New function.
10151 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10152
fa4ba8da
PM
101532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10154
10155 Add support for hardware watchpoints on win32 native.
aaa38bb5 10156 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10157 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10158 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10159 of debug registers.
10160 (debug_registers_changed): New variable. Reflects when debug registers
10161 are changed and need to be written to inferior.
aaa38bb5 10162 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10163 was set, used when new threads are created.
10164 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10165 i386-nat code.
10166 (thread_rec): Set dr array if id is the thread of current_event .
10167 (child_continue, child_resume): Change the debug registers for all
10168 threads if debug_registers_changed.
10169 (child_add_thread): Change the debug registers if debug_registers_used.
10170 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10171 Link nm.h to new nm-cygwin.h file.
10172 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10173 of hardware registers.
10174
a73c86fb
AC
101752002-02-03 Andrew Cagney <ac131313@redhat.com>
10176
10177 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10178 Restore behavour broken by 2002-01-20 Andrew Cagney
10179 <ac131313@redhat.com> IEEE_FLOAT removal.
10180
acf5ed49
DJ
101812002-02-03 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * c-valprint.c (c_val_print): Pass a proper valaddr to
10184 cp_print_class_method.
10185 * valops.c (search_struct_method): If there is only one method
10186 and args is NULL, return that method.
10187
493d28d5
DJ
101882002-02-03 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10191 accessing tag_name directly.
10192
7495dfdb
DJ
101932002-02-03 Daniel Jacobowitz <drow@mvista.com>
10194
10195 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10196 of accessing tag_name directly.
10197
dd6bda65
DJ
101982002-02-03 Daniel Jacobowitz <drow@mvista.com>
10199
10200 PR gdb/280
10201 * gdbtypes.c (replace_type): New function.
10202 * gdbtypes.h (replace_type): Add prototype.
10203 * stabsread.c (read_type): Use replace_type.
10204
88fe217c
RE
102052002-02-03 Richard Earnshaw <rearnsha@arm.com>
10206
10207 * Makefile.in (memattr.o): Add missing dependencies rule.
10208
e5d66720
PS
102092002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10210
10211 * breakpoint.c (break_at_finish_command): Really export.
10212 (break_at_finish_at_depth_command): Ditto.
10213 (tbreak_at_finish_command): Ditto.
10214 * hppa-tdep.c: Include completer.h.
10215 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10216 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10217
fffee0be
AC
102182002-02-01 Andrew Cagney <ac131313@redhat.com>
10219
10220 * utils.c (do_write): New function.
10221 (error_stream): Rewrite combining the code from error_begin and
10222 verror.
10223 (verror): Rewrite using error_stream.
10224 (error_begin): Delete function.
10225
255e7dbf
AC
102262002-02-01 Andrew Cagney <ac131313@redhat.com>
10227
10228 * utils.c (error_begin): Make static.
10229 * defs.h (error_begin): Delete declaration.
10230
10231 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10232 (decode_line_1): Use cplusplus_error instead of error_begin,
10233 cplusplus_hint and return_to_top_level.
10234 * coffread.c (coff_symfile_read): Use error instead of error_begin
10235 and return_to_top_level.
10236 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10237
ddfe3c15
AC
102382002-02-01 Andrew Cagney <ac131313@redhat.com>
10239
10240 * language.h (type_error, range_error): Make string parameter
10241 constant.
10242 * language.c (warning_pre_print): Delete extern declaration.
10243 * dwarfread.c (warning_pre_print): Ditto.
10244 * language.c (type_error, range_error): Rewrite to use verror and
10245 vwarning instead of warning_begin.
10246
03ac34d5
MS
102472002-02-01 Michael Snyder <msnyder@redhat.com>
10248
261c4ca2
MS
10249 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10250 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10251
e00d1dc8
AC
102522002-02-01 Andrew Cagney <ac131313@redhat.com>
10253
10254 * command.h (NO_FUNCTION): Delete macro.
10255 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10256 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10257 * tracepoint.c (_initialize_tracepoint): Ditto.
10258 * cli/cli-decode.c (add_set_cmd): Ditto.
10259 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10260
76b79d6e
DJ
102612002-02-01 Daniel Jacobowitz <drow@mvista.com>
10262
10263 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10264 Update ``this'' pointer when calling virtual functions.
10265
799f9e91
MS
102662002-02-01 Michael Snyder <msnyder@redhat.com>
10267
c7bd442c 10268 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10269 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10270
3cf384d4
DJ
102712002-02-01 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * regformats/reg-arm.dat: New file.
10274 * regformats/reg-i386.dat: New file.
10275 * regformats/reg-ia64.dat: New file.
10276 * regformats/reg-m68k.dat: New file.
10277 * regformats/reg-mips.dat: New file.
10278 * regformats/reg-ppc.dat: New file.
10279 * regformats/reg-sh.dat: New file.
10280 * regformats/regdef.h: New file.
10281 * regformats/regdat.sh: New file.
10282
0defa245
RE
102832002-02-01 Richard Earnshaw <reanrsha@arm.com>
10284
10285 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10286 (arm_frame_args_address, arm_frame_locals_address): New functions.
10287 (arm_frame_num_args): New function.
10288 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10289 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10290 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10291
405f26e6
MS
102922002-01-31 Michael Snyder <msnyder@redhat.com>
10293
502fd408
MS
10294 * breakpoint.c (break_at_finish_command): Export.
10295 (break_at_finish_at_depth_command): Export.
10296 (tbreak_at_finish_command): Export.
10297 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10298 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10299 "tbreak" commands, which are HPPA specific.
10300
7d35e135
MS
10301 * printcmd.c (disassemble_command): Remove an ancient
10302 artifact of an old merge.
10303
aaa38bb5 10304 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10305 Define enum constant values for overlay mode.
10306 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10307 (overlay_is_mapped, overlay_auto_command,
10308 overlay_manual_command): Ditto.
d874f1e2 10309
aaa38bb5
AJ
10310 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10311 breakpoint_here_p, breakpoint_inserted_here_p,
10312 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10313 describe_other_breakpoints, check_duplicates, clear_command):
10314 Coding standard fixes.
10315
8add0441 10316 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10317 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10318 code: check bfd SEC_READONLY flag for section.
10319
e351066e
AC
103202002-01-31 Andrew Cagney <ac131313@redhat.com>
10321
7d35e135 10322 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10323
8a48e967
DJ
103242002-01-30 Daniel Jacobowitz <drow@mvista.com>
10325
10326 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10327 data symbols, since we search based on textlow and texthigh.
10328 (find_pc_sect_symtab): Likewise.
10329
f5a96129
AC
103302002-01-30 Andrew Cagney <ac131313@redhat.com>
10331
10332 * defs.h (vwarning): Declare.
f5a96129
AC
10333 * utils.c (vwarning): New function.
10334 (warning): Call vwarning.
10335 (warning_begin): Delete function.
10336
10337 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10338 the warning message.
10339 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10340 warning_begin.
10341
cefd4ef5
MS
103422002-01-30 Michael Snyder <msnyder@redhat.com>
10343
1a703748
MS
10344 * NEWS: Mention "set trust-readonly-sections" command.
10345 Mention generate-core-file command.
cefd4ef5 10346
3a11626d
MS
103472002-01-15 Michael Snyder <msnyder@redhat.com>
10348
10349 * target.c: New command, "set trust-readonly-sections on".
10350 (do_xfer_memory): Honor the suggestion to trust readonly sections
10351 by reading them from the object file instead of from the target.
10352 (initialize_targets): Register command "set trust-readonly-sections".
10353
d1c7e53b
AC
103542002-01-29 Andrew Cagney <ac131313@redhat.com>
10355
10356 * parse.c (target_map_name_to_register): Simplify, search regs and
10357 pseudo-regs using a single loop.
10358
e2c9a72c
AC
103592002-01-30 Andrew Cagney <ac131313@redhat.com>
10360
10361 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10362
69824b4e
MK
103632002-01-15 Rodney Brown <rbrown64@csc.com.au>
10364
10365 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10366 * config/i386/i386v42mp.mh: Add i387-nat.o .
10367 * i386v4-nat.c: Include i387-nat.h.
10368 (supply_fpregset): Use i387_supply_fsave.
10369 (fill_fpregset): Use i387_fill_fsave.
10370
6eb69eab
RE
103712002-01-30 Richard Earnshaw <rearnsha@arm.com>
10372
10373 * arm-tdep.c (arm_call_dummy_words): Define.
10374 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10375 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10376 (CALL_DUMMY_WORDS): Define.
10377 (arm_call_dummy_words): Declare.
10378 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10379 (arm_linux_call_dummy_words): Declare.
10380
9852326a
AS
103812002-01-30 Andreas Schwab <schwab@suse.de>
10382
10383 * m68klinux-nat.c: Fix last change to use regcache_collect
10384 instead of referencing registers[] directly.
10385
977a3030
AC
103862002-01-29 Andrew Cagney <ac131313@redhat.com>
10387
10388 * parse.c (target_map_name_to_register): Delete code wrapped in
10389 #ifdef REGISTER_NAME_ALIAS_HOOK.
10390
2076c72b
MS
103912002-01-28 Michael Snyder <msnyder@redhat.com>
10392
10393 * regcache.c (legacy_read_register_gen): Need to be able to
10394 read pseudo-register as well as real register.
10395 (legacy_write_register_gen): Ditto.
10396
8fcc723b
AC
103972002-01-28 Andrew Cagney <ac131313@redhat.com>
10398
10399 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10400 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10401 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10402 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10403 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10404 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10405 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10406 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10407 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10408 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10409 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10410 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10411 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10412 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10413 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10414 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10415 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10416 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10417 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10418 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10419
afe64c1a
AC
104202002-01-28 Andrew Cagney <ac131313@redhat.com>
10421
10422 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10423 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10424 (initialize_current_architecture): Update target_byte_order using
10425 information from BFD.
aaa38bb5 10426 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10427 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10428
75bc7ddf
AC
104292002-01-28 Andrew Cagney <ac131313@redhat.com>
10430
10431 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10432 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10433
10434 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10435 #ifdef INVALID_FLOAT.
10436 * infcmd.c (do_registers_info): Ditto.
10437 * values.c (unpack_double): Ditto. Add comment.
10438
10439 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10440 already commented out.
10441
0280a90a
AS
104422002-01-26 Andreas Schwab <schwab@suse.de>
10443
10444 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10445 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10446 registers and add support for PTRACE_GETREGS.
10447
7072a954
AC
104482002-01-24 Andrew Cagney <ac131313@redhat.com>
10449
10450 GDB 5.1.1 released from 5.1 branch.
10451 * NEWS: Add 5.1.1 news.
10452 * README: Sync with 5.1 branch.
10453
86f902e0
FF
104542002-01-23 Fred Fish <fnf@redhat.com>
10455
10456 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10457 stabstring on initial malloc. Reallocing will copy it for us,
10458 if necessary.
10459
8af51c36
EZ
104602002-01-23 Elena Zannoni <ezannoni@redhat.com>
10461
aaa38bb5 10462 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10463 (HFILES_NO_SRCDIR): Remove hpread.h.
10464 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10465 (hpread.o): Update dependencies.
10466 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10467
10468 * hp-psymtab-read.c: Remove file.
10469 * hp-symtab-read.c: Remove file.
10470 * hpread.h: Remove file.
10471
10472 * hpread.c: Merge all contents of hp-psymtab-read.c,
10473 hp-symtab-read.c and hpread.h into this file, as it was prior to
10474 January 1999.
10475
10476 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10477 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10478 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10479 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10480
dc5cfeb6
EZ
104812002-01-23 Elena Zannoni <ezannoni@redhat.com>
10482
10483 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10484 fill_gregset): Call gdbarch_tdep() just once, assign result to
10485 variable and use that, instead of calling the function several
10486 times.
10487
ea87b71b
AO
104882002-01-24 Alexandre Oliva <aoliva@redhat.com>
10489
10490 * configure.host: Accept sparcv9 as alias for sparc64.
10491 * configure.tgt: Likewise.
10492
13fc0c2f
KB
104932002-01-22 Kevin Buettner <kevinb@redhat.com>
10494
10495 * solib-aix5.c (build_so_list_from_mapfile)
10496 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10497 arguments is not reversed.
10498 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10499 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10500
7bd872fe
EZ
105012002-01-22 Elena Zannoni <ezannoni@redhat.com>
10502
10503 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10504 modified version of obsolete sh_fetch_pseudo_register.
10505 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10506 (sh4_register_read): New function.
10507 (sh_pseudo_register_write): New function. Renamed and modified
10508 version of obsolete sh_store_pseudo_register.
10509 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10510 (sh4_register_write): New function.
10511 (sh_gdbarch_init): Remove setting of gdbarch function
10512 fetch_pseudo_register and store_pseudo_register. Remove setting of
10513 register_convert_to_raw, register_convert_to_virtual,
10514 register_convertible.
10515 (sh_sh4_register_convertible): Delete. No longer needed. All is
10516 taken care by architecture specific functions
10517 register_read/register_write.
10518 (sh_sh4_register_convert_to_virtual): Make static.
10519 (sh_sh4_register_convert_to_raw): Ditto.
10520
069e84fd
AC
105212002-01-22 Andrew Cagney <ac131313@redhat.com>
10522
10523 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10524 (floatformat_is_nan, floatformat_mantissa): Ditto.
10525
10526 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10527 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10528 builtin_type_ieee_double_little,
10529 builtin_type_ieee_double_littlebyte_bigword,
10530 builtin_type_m68881_ext, builtin_type_i960_ext,
10531 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10532 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10533 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10534 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10535
211a4f69
CV
105362002-01-22 Corinna Vinschen <vinschen@redhat.com>
10537
10538 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10539 parameter. Set frameless flag if it exists and depended of
10540 whether the scanned function is frameless or not.
10541 (xstormy16_skip_prologue): If function is frameless, return
10542 result of xstormy16_scan_prologue().
10543 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10544 call.
10545
f81353e4
EZ
105462002-01-21 Elena Zannoni <ezannoni@redhat.com>
10547
10548 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10549 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10550 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10551 sh_sh4_register_byte, sh_sh4_register_raw_size,
10552 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10553 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10554 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10555 sh_store_pseudo_register, sh_do_pseudo_register): Call
10556 gdbarch_tdep() just once, assign result to variable and use that,
10557 instead of calling the function several times.
10558
63c73a17
MK
105592002-01-20 Mark Kettenis <kettenis@gnu.org>
10560
10561 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10562 macros instead of LAST_FPU_CTRL_REGNUM.
10563 (store_register): Likewise.
10564
39ad761d
JB
105652002-01-21 Jim Blandy <jimb@redhat.com>
10566
10567 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10568 is up-to-date before running the program, not just when a program
10569 exits.
10570
3d74b771
FF
105712002-01-21 Fred Fish <fnf@redhat.com>
10572
10573 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10574 when we have found all instructions we are looking for.
10575
966fbf70
RE
105762002-01-21 Richard Earnshaw <rearnsha@arm.com>
10577
10578 * arm-tdep.c (arm_register_name): New function.
10579 (arm_registers_names): Make static.
10580 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10581 (arm_register_name): Declare.
10582 (REGISTER_NAME): Use it.
10583
c3b4394c
RE
105842002-01-21 Richard Earnshaw <rearnsha@arm.com>
10585 Kevin Buettner <kevinb@redhat.com>
10586
10587 Convert arm targets to new FRAME interface.
10588 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10589 (arm_frame_find_save_regs): Delete.
10590 (arm_frame_init_saved_regs): New.
10591 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10592 Allocate extra_info as required. Convert all uses of fsr.regs
10593 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10594 to use extra_info.
10595 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10596 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10597 (check_prologue_cache, save_prologue_cache): Likewise.
10598 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10599 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10600 (FRAME_FIND_SAVED_REGS): Delete.
10601 (arm_frame_find_saved_regs): Delete prototype.
10602 (arm_frame_init_saved_regs): New prototype.
10603 (FRAME_INIT_SAVED_REGS): Define.
10604
61d99182
AC
106052002-01-20 Andrew Cagney <ac131313@redhat.com>
10606
10607 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10608
6aaea291
AC
106092002-01-20 Andrew Cagney <ac131313@redhat.com>
10610
10611 From Jeff Law <law@redhat.com>:
10612 * infttrace.c: Include <sys/pstat.h>.
10613 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10614 exec file if the ttrace equivalent fails.
10615
15f698d2
AC
106162002-01-20 Andrew Cagney <ac131313@redhat.com>
10617
10618 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10619 (closeLogFile): Ditto.
10620
f86ddd7c
MC
106212002-01-20 Michael Chastain <mec@shout.net>
10622
10623 * top.c (print_gdb_version): Bump copyright year to 2002.
10624
904507ce
AC
106252002-01-20 Andrew Cagney <ac131313@redhat.com>
10626
10627 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10628 Zannoni and Eli Zaretskii.
10629
d7f0b9ce
DJ
106302002-01-20 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * buildsym.c: Update copyright years.
10633 * c-typeprint.c: Likewise.
10634 * dwarf2read.c: Likewise.
10635 * f-typeprint.c: Likewise.
10636 * gdbtypes.c: Likewise.
10637 * gdbtypes.h: Likewise.
10638 * hp-symtab-read.c: Likewise.
10639 * hpread.c: Likewise.
10640 * mdebugread.c: Likewise.
10641 * p-typeprint.c: Likewise.
10642
3fd3d7d2
AC
106432002-01-20 Andrew Cagney <ac131313@redhat.com>
10644
10645 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10646 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10647 byte-order selectable.
10648 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10649 * arch-utils.c: Ditto.
10650 (set_endian): Ditto.
10651 (set_endian_from_file): Ditto.
10652 * gdbserver/low-sim.c (create_inferior): Ditto.
10653 * gdbarch.sh: Ditto.
10654 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10655 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10656 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10657 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10658 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10659 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10660 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10661 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10662 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10663 macro definition.
10664 * config/mips/tm-wince.h: Remove #undef of macro
10665 TARGET_BYTE_ORDER_SELECTABLE.
10666 * config/sh/tm-wince.h: Ditto.
10667
b02dede2
DJ
106682002-01-20 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10671 member function fields. Add accessor macro
10672 TYPE_FN_FIELD_ARTIFICIAL.
10673 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10674 * c-typeprint.c (c_type_print_base): Skip artificial member
10675 functions.
10676
c3643761
DJ
106772002-01-20 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * f-typeprint.c: Delete unused function f_type_print_args.
10680 * p-typeprint.c: Delete unused function pascal_type_print_args.
10681
8176bb6d
DJ
106822002-01-20 Daniel Jacobowitz <drow@mvista.com>
10683
10684 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10685 comment. Add ``artificial'' to ``union field_location''.
10686
10687 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10688
10689 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10690 * mdebugread.c (parse_symbol): Likewise.
10691 * stabsread.c (define_symbol): Likewise.
10692 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10693 initializing TYPE_FIELD_BITPOS to n (obsolete).
10694 (hpread_doc_function_type): Likewise.
10695 * hpread.c (hpread_function_type): Likewise.
10696
7fd60527
AC
106972002-01-20 Andrew Cagney <ac131313@redhat.com>
10698
10699 * configure.in (host_makefile_frag): Only require a host makefile
10700 fragment when a native build.
10701 * configure: Re-generate.
10702
c2f05ac9
AC
107032002-01-20 Andrew Cagney <ac131313@redhat.com>
10704
10705 * doublest.h (floatformat_from_type): Declare.
10706 * doublest.c (floatformat_from_type): New function.
10707 (convert_typed_floating): Use.
10708
10709 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10710 call to function floatformat_from_type.
10711
10712 * gdbarch.sh (IEEE_FLOAT): Delete.
10713 * gdbarch.h, gdbarch.c: Re-generate.
10714 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10715 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10716 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10717 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10718 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10719 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10720 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10721 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10722 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10723 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10724 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10725 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10726
10727 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10728 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10730 * sh-tdep.c (sh_gdbarch_init): Ditto.
10731 * mips-tdep.c (mips_gdbarch_init): Ditto.
10732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10733 * cris-tdep.c (cris_gdbarch_init): Ditto.
10734
abf22e64
AJ
107352002-01-20 Jiri Smid <smid@suse.cz>
10736
10737 * configure.host, configure.tgt: Support x86-64.
10738 * NEWS: Note new target x86-64.
10739
b7c4cbf8
AJ
10740 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10741 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10742 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10743 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10744 x86-64-linux-nat.o): Fix dependencies.
10745
82600034
AC
107462002-01-19 Andrew Cagney <ac131313@redhat.com>
10747
10748 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10749 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10750 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10751 * config/sparc/xm-sun4os4.h: Delete file.
10752 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10753
bbe5c628
AC
107542002-01-19 Andrew Cagney <ac131313@redhat.com>
10755
10756 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10757 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10758 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10759 * config/i386/i386lynx.mh (XM_FILE): Delete.
10760 * config/rs6000/xm-rs6000ly.h: Delete file.
10761 * config/sparc/xm-sparclynx.h: Delete file.
10762 * config/m68k/xm-m68klynx.h: Delete file.
10763 * config/i386/xm-i386lynx.h: Delete file.
10764 * config/xm-lynx.h: Delete file.
10765 * config/djgpp/fnchange.lst: Update.
10766
f8453e34
JT
107672002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10768
10769 * alpha-tdep.c (alpha_register_byte): New function.
10770 (alpha_register_raw_size): Ditto.
10771 (alpha_register_virtual_size): Ditto.
10772 (alpha_skip_prologue_internal): Renamed from
10773 alpha_skip_prologue.
10774 (alpha_skip_prologue): New version that calls
10775 alpha_skip_prologue_internal.
10776 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10777 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10778 second argument from alpha_skip_prologue.
10779 (REGISTER_BYTE): Use alpha_register_byte.
10780 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10781 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10782 (FRAMELESS_FUNCTION_INVOCATION): Use
10783 generic_frameless_function_invocation_not.
10784 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10785 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10786
52d9e613
AC
107872002-01-19 Andrew Cagney <ac131313@redhat.com>
10788
10789 * config/mips/xm-news-mips.h: Delete file.
10790 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10791
10792 * config/m88k/xm-m88k.h: Delete file.
10793 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10794 * config/m88k/xm-delta88v4.h: Ditto.
10795 * config/m88k/xm-delta88.h: Ditto.
10796
10797 * config/alpha/xm-fbsd.h: Delete file.
10798 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10799
10800 * config/sparc/xm-sparc.h: Delete file.
10801 * Makefile.in (xm-sun4os4.h): Delete dependency.
10802 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10803 * config/sparc/xm-sun4os4.h: Ditto.
10804 * config/sparc/xm-linux.h: Ditto.
10805
10806 * config/i386/xm-windows.h: Delete file.
10807
2d1b2124
AC
108082002-01-19 Andrew Cagney <ac131313@redhat.com>
10809
10810 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10811 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10812
ee1f65f0
JT
108132002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10814
10815 * alpha-tdep.c (alpha_call_dummy_words): New.
10816 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10817 (CALL_DUMMY_P): Define.
10818 (CALL_DUMMY_WORDS): Define.
10819 (SIZEOF_CALL_DUMMY_WORDS): Define.
10820
98081e55
PB
108212002-01-19 Per Bothner <per@bothner.com>
10822
10823 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10824 isn't NULL, which can happen with some gcj-3.x-produced code.
10825
0d056799
JT
108262002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10827
10828 * alpha-tdep.c (alpha_register_virtual_type): New function.
10829 (alpha_init_frame_pc_first): Ditto.
10830 (alpha_fix_call_dummy): Ditto.
10831 (alpha_store_struct_return): Ditto.
10832 (alpha_extract_struct_value_address): Ditto.
10833 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10834 alpha_register_virtual_type.
10835 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10836 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10837 alpha_extract_struct_value_address.
10838 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10839 (INIT_FRAME_PC): Use init_frame_pc_noop.
10840 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10841
4604bcad
MK
108422002-01-19 Mark Kettenis <kettenis@gnu.org>
10843
10844 * i386gnu-nat.c: Include "i386-tdep.h".
10845 (fetch_fpregs): Simplify code dealing with uninitialized floating
10846 point states such that it doesn't require FP7_REGNUM.
10847
140f9984
JT
108482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10849
abf22e64
AJ
10850 * alpha-tdep.c (frame_extra_info): New.
10851 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10852 frame->extra_info.
10853 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10854 (alpha_frame_saved_pc): Use frame->extra_info.
10855 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10856 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10857 (init_extra_frame_info): Rename to...
10858 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10859 (alpha_print_extra_frame_info): New function.
140f9984
JT
10860 (alpha_frame_locals_address): Ditto.
10861 (alpha_frame_args_address): Ditto.
abf22e64 10862 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10863 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10864 alpha_frame_args_address.
abf22e64 10865 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10866 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10867 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10868 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10869 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10870 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10871
d734c450
JT
108722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10873
10874 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10875 (alpha_cannot_fetch_register): Ditto.
10876 (alpha_cannot_store_register): Ditto.
10877 (alpha_register_convertible): Ditto.
10878 (alpha_use_struct_convention): Ditto.
10879 * config/alpha/tm-alpha.h: Update copyright years.
10880 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10881 (INNER_THAN): Use core_addr_lessthan.
10882 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10883 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10884 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10885 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10886 (FRAME_CHAIN): Remove unnecessary cast.
10887
b4ceaee6
AC
108882002-01-18 Andrew Cagney <ac131313@redhat.com>
10889
10890 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10891 obsolete.
10892
0a65a603
AC
108932002-01-18 Andrew Cagney <ac131313@redhat.com>
10894
10895 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10896 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10897 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10898 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10899 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10900 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10901 * x86-64-linux-nat.c: Ditto.
10902
636a6dfc
JT
109032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10904
abf22e64 10905 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10906 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10907 (REGISTER_NAME): Define.
10908
acceddb6
JT
109092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10910
10911 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10912
ec32e4be
JT
109132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10914
10915 * alpha-tdep.c: Update copyright years.
10916 (alpha_next_pc): New function.
10917 (alpha_software_single_step): Ditto.
10918 * config/alpha/tm-alpha.h: Add prototype for
10919 alpha_software_single_step.
10920
e771a871
JT
109212002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10922
10923 * alphabsd-nat.c: Update copyright years.
10924 (fill_gregset): Use regcache_collect.
10925 (fill_fpregset): Likewise.
10926 (fetch_inferior_registers): Only fetch integer registers
10927 if requested to do so.
10928 (store_inferior_registers): Only store integer registers
10929 if requested to do so.
10930
7708fa01
AC
109312002-01-17 Andrew Cagney <ac131313@redhat.com>
10932
10933 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10934 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10935 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10936 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10937 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10938 * config/arm/linux.mh (XDEPFILES): Delete.
10939 * config/arm/nbsd.mh (XDEPFILES): Delete.
10940 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10941 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10942 * config/i386/i386m3.mh (XDEPFILES): Delete.
10943 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10944 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10945 * config/i386/fbsd.mh (XDEPFILES): Delete.
10946 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10947 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10948 * config/i386/i386v4.mh (XDEPFILES): Delete.
10949 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10950 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10951 * config/i386/i386aix.mh (XDEPFILES): Delete.
10952 * config/i386/go32.mh (XDEPFILES): Delete.
10953 * config/i386/cygwin.mh (XDEPFILES): Delete.
10954 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10955 * config/i386/i386mach.mh (XDEPFILES): Delete.
10956 * config/i386/i386v32.mh (XDEPFILES): Delete.
10957 * config/i386/linux.mh (XDEPFILES): Delete.
10958 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10959 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10960 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10961 * config/i386/i386sco.mh (XDEPFILES): Delete.
10962 * config/i386/i386v.mh (XDEPFILES): Delete.
10963 * config/i386/nbsd.mh (XDEPFILES): Delete.
10964 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10965 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10966 * config/i386/symmetry.mh (XDEPFILES): Delete.
10967 * config/i386/obsd.mh (XDEPFILES): Delete.
10968 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10969 * config/ia64/linux.mh (XDEPFILES): Delete.
10970 * config/ia64/aix.mh (XDEPFILES): Delete.
10971 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10972 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10973 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10974 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10975 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10976 * config/m68k/linux.mh (XDEPFILES): Delete.
10977 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10978 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10979 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10980 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10981 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10982 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10983 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10984 * config/m88k/delta88.mh (XDEPFILES): Delete.
10985 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10986 * config/m88k/m88k.mh (XDEPFILES): Delete.
10987 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10988 * config/mips/linux.mh (XDEPFILES): Delete.
10989 * config/mips/irix6.mh (XDEPFILES): Delete.
10990 * config/mips/irix5.mh (XDEPFILES): Delete.
10991 * config/mips/irix4.mh (XDEPFILES): Delete.
10992 * config/mips/irix3.mh (XDEPFILES): Delete.
10993 * config/mips/decstation.mh (XDEPFILES): Delete.
10994 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10995 (NATDEPFILES): Move core-aout.o to here.
10996 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10997 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10998 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10999 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11000 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11001 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11002 * config/pa/hpux11.mh (XDEPFILES): Delete.
11003 * config/powerpc/aix.mh (XDEPFILES): Delete.
11004 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11005 * config/powerpc/linux.mh (XDEPFILES): Delete.
11006 * config/romp/rtbsd.mh: Rename XDEPFILES.
11007 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11008 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11009 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11010 * config/s390/s390.mh (XDEPFILES): Delete.
11011 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11012 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11013 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11014 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11015 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11016 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11017 * config/sparc/linux.mh (XDEPFILES): Delete.
11018 * config/vax/vaxult.mh (XDEPFILES): Delete.
11019 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11020 * Makefile.in (DEPFILES): Remove XDEPFILES.
11021
375fc983
AC
110222002-01-17 Andrew Cagney <ac131313@redhat.com>
11023
11024 * utils.c (internal_verror): Fix comments, default is yes not no.
11025 Update queries to match. Default to quit and dump core.
11026
8926118c
AC
110272002-01-17 Andrew Cagney <ac131313@redhat.com>
11028
11029 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11030 copyright.
11031 * defs.h, event-top.c, gdbcmd.h: Ditto.
11032 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11033 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11034 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11035 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11036 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11037 * mi/mi-main.c:Ditto.
11038
11039 * stack.c, symfile.c: Update copyright.
11040
45b7b345
DJ
110412002-01-17 Daniel Jacobowitz <drow@mvista.com>
11042
db728ff7
DJ
11043 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11044 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11045 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11046 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11047
db728ff7
DJ
110482002-01-17 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11051 * gdbserver/low-lynx.c (myattach): Likewise.
11052 * gdbserver/low-nbsd.c (myattach): Likewise.
11053 * gdbserver/low-sim.c (myattach): Likewise.
11054 * gdbserver/low-sparc.c (myattach): Likewise.
11055 * gdbserver/low-sun3.c (myattach): Likewise.
11056
11057 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11058
db728ff7 11059 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11060 (main): Handle "--attach".
11061
8de3c354
AC
110622002-01-16 Andrew Cagney <ac131313@redhat.com>
11063
11064 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11065 maintainer.
11066
b0129042
DJ
110672002-01-15 Daniel Jacobowitz <drow@mvista.com>
11068
11069 * c-typeprint.c (is_type_conversion_operator): Add additional
11070 check for non-conversion operators.
11071
ba8679fb 110722002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11073
11074 * linux-proc.c: Add "info proc" command, a la procfs.c.
11075 (read_mapping): New function, abstract and re-use code.
11076 (linux_find_memory_regions): Use new func read_mapping.
11077 (linux_info_proc_cmd): New function, implement "info proc".
11078 (_initialize_linux_proc): Add new command "info proc".
11079
e4f9b4d5
MS
110802002-01-15 Michael Snyder <msnyder@redhat.com>
11081
11082 * symfile.c (generic_load): Use bfd_map_over_sections method
11083 instead of manipulating bfd structure members directly.
11084 (add_section_size_callback): New function, bfd sections callback
11085 used by generic_load.
11086 (load_sections_callback): New function, bfd sections callback
11087 used by generic_load.
11088
08cf96df
EZ
110892002-01-15 Elena Zannoni <ezannoni@redhat.com>
11090
abf22e64 11091 [Based on work by Jim Blandy]
08cf96df
EZ
11092 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11093 (builtin_type_vec128): Export.
11094 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11095 types.
11096 (builtin_type_vec128): New builtin type for 128 bit vector
11097 registers.
11098 (build_gdbtypes): Initialize builtin_type_v16qi and
11099 builtin_type_v8hi. Create the vec128 register builtin type
11100 structure.
11101 (build_builtin_type_vec128): New function.
abf22e64 11102 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11103 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11104 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11105 AltiVec register to new builtin type.
11106
d7242108
DJ
111072001-01-15 Daniel Jacobowitz <drow@mvista.com>
11108
11109 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11110 to make_cv_type.
11111
4ee3352d
AC
111122002-01-14 Andrew Cagney <ac131313@redhat.com>
11113
11114 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11115 CLEAN_UP_REGISTER_VALUE.
11116 * regcache.c (supply_register): Update only call.
11117
f015b2e7
AC
111182002-01-14 Andrew Cagney <ac131313@redhat.com>
11119
11120 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11121 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11122 a29k-*-vxworks* targets as obsolete.
11123
356ae49d
MS
111242002-01-14 Michael Snyder <msnyder@redhat.com>
11125
11126 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11127 until we can resolve portability issues.
11128 * gregset.h: Remove references to fpxregs.
11129 * gcore.c (gcore_command): Initialize note_sec to NULL.
11130
ade8f45e
AC
111312002-01-13 Andrew Cagney <ac131313@redhat.com>
11132
11133 * signals.c (target_signal_to_name): Rewrite. Only use
11134 signals[].name when in bounds and non-NULL.
abf22e64 11135
89c49e7a
AC
111362002-01-13 Andrew Cagney <ac131313@redhat.com>
11137
11138 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11139 * signals.c (target_signal_to_name): Verify that SIG is within the
11140 bounds of the signals array.
11141
4daa9f9f
AC
111422002-01-13 Andrew Cagney <ac131313@redhat.com>
11143
11144 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11145
ba4bbdcb
KS
111462002-01-13 Keith Seitz <keiths@redhat.com>
11147
11148 * stack.c (print_frame_info_base): Print the frame's pc
11149 only if when print_frame_info_listing_hook is not defined.
11150
575bbeb6
KS
111512002-01-13 Keith Seitz <keiths@redhat.com>
11152
11153 * varobj.c (varobj_set_value): Make sure that there were no
11154 errors evaluating the object before attempting to set its
11155 value.
11156 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11157 so this offset adjustment is no longer necessary.
11158 (create_child): Don't set the error flag if the child is
11159 a CPLUS_FAKE_CHILD.
11160 (value_of_child): If value_fetch_lazy fails, return NULL
11161 so that callers will be notified that an error occurred.
11162 (c_value_of_variable): Delay check of variable's validity
11163 until later. We actually want all structs and unions to have
11164 the value "{...}".
11165 Do not return "???" for variables which could not be evaluated.
11166 This error condition must be returned to the caller so that it
11167 can get the error condition from gdb.
11168 (cplus_name_of_child): Adjust index for vptr before figuring
11169 out the name of the child.
11170 (cplus_value_of_child): If a child's (real) parent is not valid,
11171 don't even bother trying to give a value for it. Just return
11172 an error. Change all instances in this function.
11173 (cplus_type_of_child): If our parent is one of the "fake"
11174 parents, we need to get at the type of the real parent, and
11175 derive the child's true type using this information.
11176
b76898ab
AC
111772002-01-13 Andrew Cagney <ac131313@redhat.com>
11178
11179 From 2002-01-09 John Marshall <johnm@falch.net>:
11180 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11181 sources.redhat.com, and tweak some related URLs which had
11182 suffered from linkrot.
11183
b6649e88
AC
111842002-01-13 Andrew Cagney <ac131313@redhat.com>
11185
11186 From Jeff law:
11187 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11188 structures passed in registers.
11189
82cc5033
EZ
111902002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11191
11192 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11193 white space which prevented compilation. Reported by DSK
11194 <dsk@student.unsw.edu.au>.
11195
ba5f2f8a
MS
111962002-01-11 Michael Snyder <msnyder@redhat.com>
11197
fbd35540
MS
11198 * symfile.c (build_section_addr_info_from_section_tab):
11199 Use bfd access method instead of manipulating bfd directly.
11200 (syms_from_objfile): Ditto.
11201 (simple_overlay_update_1): Ditto.
11202 (simple_overlay_update): Ditto.
11203 (generic_load): Ditto.
11204 (overlay_unmapped_address): FIXME comment, bfd access methods.
11205 (sections_overlap): FIXME comment, bfd access methods.
11206 (pc_in_mapped_range): FIXME comment, bfd access methods.
11207 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11208 (section_is_mapped): FIXME comment, bfd access methods.
11209 (section_is_overlay): FIXME comment, bfd access methods.
11210
ba5f2f8a
MS
11211 * symfile.c (generic_load): Whitespace and long line cleanups.
11212 Remove duplicate variable, change several local variables to
11213 more appropriate data types.
11214 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11215
17df2af6
AC
112162002-01-12 Andrew Cagney <ac131313@redhat.com>
11217
11218 From Peter Schauer:
11219 * language.c (longest_local_hex_string_custom): Use phex_nz to
11220 convert NUM to a hex string.
11221
ec920329
EZ
112222002-01-12 Elena Zannoni <ezannoni@redhat.com>
11223
11224 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11225 the function.
538a76d6 11226 Update Copyright year.
ec920329 11227
3abd2e01
AC
112282002-01-12 Andrew Cagney <ac131313@redhat.com>
11229
11230 * language.c (longest_raw_hex_string): Delete unused function.
11231
b21b22e0
PS
112322002-01-11 Petr Sorfa <petrs@caldera.com>
11233
11234 * MAINTAINERS (write-after-approval): Add myself.
11235 * dwarf2read.c (read_tag_string_type): Handling of
11236 DW_AT_byte_size.
11237 (read_tag_string_type): FORTRAN fix to prevent propagation of
11238 first string size.
11239 (set_cu_language): Handling of DW_LANG_Fortran95
11240
747fe712
RE
112412002-01-11 Richard Earnshaw <rearnsha@arm.com>
11242
11243 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11244 GETPID(inferior_ptid).
11245 (store_inferior_registers): Likewise.
11246
f1bea926
JM
112472002-01-10 Jason Merrill <jason@redhat.com>
11248
11249 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11250 Fix DW_OP_minus.
11251
ae940673
AC
112522002-01-10 Andrew Cagney <ac131313@redhat.com>
11253
11254 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11255 and bfd/elf32-sh-nbsd.c.
11256
00546b04
MS
112572002-01-10 Michael Snyder <msnyder@redhat.com>
11258
352ed7b4
MS
11259 * NEWS: Mention --pid and corefile/proc-id behavior change.
11260
c18be923
MS
11261 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11262 * gcore.c: Include cli/cli-decode.h instead of command.h.
11263
00546b04
MS
11264 * main.c (captured_main): Add new command line option "--pid".
11265 If the second command line argument (following the symbol-file)
11266 begins with a digit, try to attach to it before trying to open
11267 it as a corefile.
11268 (print_gdb_help): Document the "--pid" argument.
11269
db60ec62
EZ
112702002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11271
11272 * completer.c (command_completer): New function.
11273
11274 * completer.h <command_completer>: Add prototype.
11275
11276 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11277 completer for the "help" command.
11278
39c22d1a
JM
112792002-01-09 Jason Merrill <jason@redhat.com>
11280
11281 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11282
c564377f
MS
112832002-01-09 Michael Snyder <msnyder@redhat.com>
11284
975aec09
MS
11285 * i386-linux-nat.c (fill_fpxregset): Make global.
11286 (store_fpxregset): Ditto.
11287
db4a10fa
MS
11288 * gregset.h (gdb_fpxregset_t): Define.
11289 (supply_fpxregset): Prototype.
11290 (fill_fpxregset): Prototype.
11291
c564377f
MS
11292 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11293
c3d45d70
RE
112942002-01-09 Richard Earnshaw <rearnsha@arm.com>
11295
11296 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11297 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11298 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11299
fcc87af1
AC
113002002-01-09 Andrew Cagney <ac131313@redhat.com>
11301
11302 * MAINTAINERS: Update target maintainer rules so that any
11303 Maintainer can approve a tested patch for a maintenance-only
11304 target.
11305
dd96c05b
RE
113062002-01-09 Richard Earnshaw <rearnsha@arm.com>
11307
d4297db9 11308 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11309
d4297db9 11310 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11311 IN_SIGTRAMP.
11312
145fdc6e
MS
113132002-01-08 Michael Snyder <msnyder@redhat.com>
11314
11315 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11316 real name of the executable, rather than the /proc name.
11317
be4d1333
MS
113182002-01-03 Michael Snyder <msnyder@redhat.com>
11319
11320 Implement a "generate-core-file" command in gdb, save target state.
11321 * gcore.c: New file. Implement new command 'generate-core-file'.
11322 Save a corefile image of the current state of the inferior.
11323 * linux-proc.c: Add linux-specific code for saving corefiles.
11324 * target.h (struct target_ops): Add new target vectors for saving
11325 corefiles; to_find_memory_regions and to_make_corefile_notes.
11326 (target_find_memory_regions): New macro.
11327 (target_make_corefile_notes): New macro.
11328 * target.c (update_current_target): Inherit new target methods.
11329 (dummy_find_memory_regions): New place-holder method.
11330 (dummy_make_corefile_notes): New place-holder method.
11331 (init_dummy_target): Initialize new dummy target vectors.
11332 * exec.c (exec_set_find_memory_regions): New function.
11333 Allow the exec_ops vector for memory regions to be taken over.
11334 (exec_make_note_section): New function, target vector method.
11335 * defs.h (exec_set_find_memory_regions): Export prototype.
11336 * procfs.c (proc_find_memory_regions): New function, corefile method.
11337 (procfs_make_note_section): New function, corefile method.
11338 (init_procfs_ops): Set new target vector pointers.
11339 (find_memory_regions_callback): New function.
11340 (procfs_do_thread_registers): New function.
11341 (procfs_corefile_thread_callback): New function.
11342 * sol-thread.c (sol_find_memory_regions): New function.
11343 (sol_make_note_section): New function.
11344 (init_sol_thread_ops): Initialize new target vectors.
11345 * inftarg.c (inftarg_set_find_memory_regions): New function.
11346 Allow to_find_memory_regions vector to be taken over.
11347 (inftarg_set_make_corefile_notes): New function.
11348 Allow to_make_corefile_notes vector to be taken over.
11349 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11350 interface layer if not target_has_execution (may be a corefile).
11351 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11352 * config/sparc/sun4sol2.mh: Ditto.
11353 * config/alpha/alpha-linux.mh: Ditto.
11354 * config/arm/linux.mh: Ditto.
11355 * config/i386/x86-64linux.mh: Ditto.
11356 * config/ia64/linux.mh: Ditto.
11357 * config/m68k/linux.mh: Ditto.
11358 * config/mips/linux.mh: Ditto.
11359 * config/powerpc/linux.mh: Ditto.
11360 * config/sparc/linux.mh: Ditto.
11361
c6b92abd
MS
113622002-01-07 Michael Snyder <msnyder@redhat.com>
11363
11364 * arm-linux-nat.c: Remove references to regcache.c internal data
11365 (registers[] and register_valid[]).
11366
4b09dc8c
MS
113672002-01-07 Michael Snyder <msnyder@redhat.com>
11368
abf22e64
AJ
11369 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11370 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11371 symbol file and shlibs.
11372 * Makefile.in: Add rule for linux-proc.o.
11373 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11374 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11375 * config/arm/linux.mh: Ditto.
11376 * config/i386/linux.mh: Ditto.
11377 * config/i386/x86-64linux.mh: Ditto.
11378 * config/ia64/linux.mh: Ditto.
11379 * config/m68k/linux.mh: Ditto.
11380 * config/mips/linux.mh: Ditto.
11381 * config/powerpc/linux.mh: Ditto.
11382 * config/sparc/linux.mh: Ditto.
11383
c25b74ac
PM
113842002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11385
11386 * win32-nat.c: Add i386-tdep.h dependency.
11387
94cd915f
MS
113882002-01-07 Michael Snyder <msnyder@redhat.com>
11389
c7cccb76
MS
11390 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11391 instead of bfd_get_arch_size. Don't bail out just because
11392 there's no exec_bfd.
abf22e64 11393
34c0bd93
MS
11394 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11395 * p-valprint.c (pascal_object_print_value): Ditto.
11396 * somread.c (som_symtab_read): Ditto.
11397 * symfile.c (simple_free_overlay_region_table): Ditto.
11398 * valops.c (value_assign): Ditto.
11399
21c1c920
MS
11400 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11401 use tilde_expand and strerror for opening save-tracepoints file.
11402
5bbd998e
MS
11403 * thread-db.c (thread_db_new_objfile): Indendation fix.
11404
94cd915f
MS
11405 * infptrace.c (GDB_MAX_ALLOCA): New define.
11406 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11407 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11408 can be overridden with whatever value is appropriate to the host).
11409 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11410 alloca to allocate potentially large buffer.
11411 * rs6000-nat.c (child_xfer_memory): Ditto.
11412 * symm-nat.c (child_xfer_memory): Ditto.
11413 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11414
494e8a93
JSC
114152002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11416
11417 From Nick Clifton <nickc@redhat.com>
11418 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11419
d0e1d48e
MS
114202002-01-07 Michael Snyder <msnyder@redhat.com>
11421
abf22e64 11422 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11423 Don't use exec_bfd if it's NULL.
11424
290b2c7a
MK
114252002-01-06 Mark Kettenis <kettenis@gnu.org>
11426
abf22e64 11427 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11428
aef21287
AC
114292002-01-06 Andrew Cagney <ac131313@redhat.com>
11430
11431 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11432 * gnu-nat.c: Ditto.
11433
30efa627
AC
114342002-01-06 Andrew Cagney <ac131313@redhat.com>
11435
11436 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11437 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11438 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11439 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11440 z8k-coff have not been multi-arched. Update z8k-coff build
11441 status.
11442
9b4ff276
AC
114432002-01-06 Andrew Cagney <ac131313@redhat.com>
11444
11445 * MAINTAINERS: Mark a29k target as obsolete.
11446 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11447 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11448 comments.
11449 * NEWS: Note that a29k targets are obsolete.
11450 * a29k-tdep.c: Mark as obsolete.
11451 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11452 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11453 a29k-*-vxworks* targets as obsolete.
11454 * remote-adapt.c: Obsolete.
11455 * remote-eb.c: Obsolete.
11456 * remote-mm.c: Obsolete.
11457 * remote-udi.c: Obsolete.
11458 * config/a29k/a29k-udi.mt: Obsolete.
11459 * config/a29k/a29k.mt: Obsolete.
11460 * config/a29k/tm-a29k.h: Obsolete.
11461 * config/a29k/tm-vx29k.h: Obsolete.
11462 * config/a29k/vx29k.mt: Obsolete.
11463
a9011d31
AC
114642002-01-05 Andrew Cagney <ac131313@redhat.com>
11465
11466 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11467 with BFD_ENDIAN_BIG.
11468
9299404e
AC
114692002-01-05 Andrew Cagney <ac131313@redhat.com>
11470
11471 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11472 * configure, config.in: Re-generate.
11473 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11474 * defs.h: Do not include <endian.h>.
11475
7e89e357
JT
114762002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11477
11478 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11479 * config.in: Regenerate.
11480 * configure.in: Update copyright years.
11481 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11482 * configure: Regenerate.
11483 * i386bsd-nat.c: Update copyright years.
11484 (fill_gregset): Use regcache_collect.
11485 (fetch_inferior_registers): Only fetch integer registers
11486 if requested to do so. Add support for XMM registers
11487 using PT_GETXMMREGS.
11488 (store_inferior_registers): Only store integer registers
11489 if requested to do so. Add support for XMM registers
11490 using PT_SETXMMREGS.
11491 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11492 (store_inferior_registers): Remove.
11493 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11494 (fetch_elfcore_registers): New function.
11495 (i386nbsd_elfcore_fns): New.
11496 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11497 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11498 i386bsd-nat.o.
11499 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11500 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11501 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11502 * config/i386/tm-nbsd.h: Update copyright years.
11503 (HAVE_SSE_REGS): Define.
11504 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11505 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11506 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11507 (SIGCONTEXT_PC_OFFSET): Remove.
11508 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11509
a752853e
AC
115102002-01-05 Andrew Cagney <ac131313@redhat.com>
11511
11512 * configure.tgt: Remove powerpc-*-macos* target.
11513 * config/m68k/xm-mpw.h: Delete file.
11514 * config/xm-mpw.h: Delete file.
11515 * ser-mac.c: Delete file.
11516 * mpw-make.sed: Delete file.
11517 * mpw-config.in: Delete file.
11518 * mac-xdep.c: Delete file.
11519 * mac-gdb.r: Delete file.
11520 * mac-defs.h: Delete file.
11521 * mac-nat.c: Delete file.
11522 * config/powerpc/macos.mh: Delete file.
11523 * config/powerpc/macos.mt: Delete file.
11524 * config/powerpc/nm-macos.h: Delete file.
11525 * config/powerpc/tm-macos.h: Delete file.
11526 * source.c (openp, open_source_file): Remove obsolete code.
11527 * top.c (gdb_readline): Ditto.
11528 * utils.c (query): Ditto.
11529 * event-top.c (display_gdb_prompt): Ditto.
11530 * Makefile.in (ser-mac.o): Delete obsolete target.
11531 * NEWS: Update.
11532
d7449b42
AC
115332002-01-04 Andrew Cagney <ac131313@redhat.com>
11534
11535 * defs.h (BIG_ENDIAN): Delete macro definition.
11536 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11537 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11538 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11539 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11540 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11541 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11542 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11543 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11544 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11545 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11546 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11547 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11548 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11549 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11550 * gdbarch.c: Re-generate.
11551
356374e8
DJ
115522002-01-04 Daniel Jacobowitz <drow@mvista.com>
11553
11554 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11555 for core files.
11556
a2b8f8f8
JT
115572002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11558
11559 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11560
12466af9
AC
115612002-01-04 Andrew Cagney <ac131313@redhat.com>
11562
11563 * value.h (value_ptr): Delete typedef.
11564
3549ab40
JT
115652002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11566
11567 * i386nbsd-nat.c: Update copyright years.
11568 Include i386-tdep.h.
11569
fedbd091
EZ
115702002-01-04 Elena Zannoni <ezannoni@redhat.com>
11571
11572 * stabsread.c: Update copyright years.
11573
11574 From Debashis Mahata <debashis.mahata@wipro.com>:
11575 (read_struct_fields): Deal with Sun C compiler erroneous stab
11576 output for structs and unions.
fec8b34f 11577 Fix PR gdb/269.
fedbd091 11578
eb43544b
DJ
115792002-01-04 Daniel Jacobowitz <drow@mvista.com>
11580
11581 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11582 prototype.
11583
1514d34e
DJ
115842002-01-04 Daniel Jacobowitz <drow@mvista.com>
11585
11586 * cp-abi.c: Fix whitespace.
11587 (baseclass_offset): New wrapper function.
11588 * cp-abi.h (baseclass_offset): Add prototype.
11589 (struct cp_abi_ops): Add baseclass_offset pointer.
11590
11591 * valops.c (vb_match): Move to...
11592 * gnu-v2-abi.c (vb_match): here.
11593 * valops.c (baseclass_offset): Move to...
11594 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11595
11596 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11597
11598 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11599 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11600 * hpacc-abi.c (init_hpacc_ops): Likewise.
11601
7f8c9282
DJ
116022002-01-04 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * valops.c (find_overload_match): Accept obj as a
11605 reference parameter. Update it before returning.
11606 * value.h (find_overload_match): Update prototype.
11607 * eval.c (evaluate_subexp_standard): Pass object to
11608 find_overload_match by reference.
11609
f23631e4
AC
116102002-01-03 Andrew Cagney <ac131313@redhat.com>
11611
11612 * valarith.c: Replace value_ptr with struct value pointer. Remove
11613 register attribute from value declarations.
11614 * valops.c: Ditto.
11615 * value.h: Ditto.
11616 * scm-lang.c (scm_lookup_name): Ditto.
11617
79e10fab 116182002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11619
79e10fab
AC
11620 Abstract the functionality of iterating over mapped memory
11621 regions into a general purpose iterator function.
abf22e64 11622 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11623 iterator for memory sections.
11624 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11625 (solib_mappings_callback): New function, callback for above.
11626 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11627 (info_mappings_callback): New function, callback for above.
11628
11629 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11630
c5ad026a
MK
116312002-01-01 Mark Kettenis <kettenis@gnu.org>
11632
d2a7c97a
MK
11633 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11634 * i386-tdep.c: Include "elf-bfd.h".
11635 (process_note_abi_tag_sections): New function.
11636 (i386_gdbarch_init): Add code to recognize various OS/ABI
11637 combinations.
11638
c5ad026a
MK
11639 * maint.c (_initialize_maint_cmds): Add missing \ in
11640 string-literal.
11641
a1a5b71e 11642For older changes see ChangeLog-2001
c906108c
SS
11643\f
11644Local Variables:
11645mode: change-log
11646left-margin: 8
11647fill-column: 74
11648version-control: never
11649End:
This page took 0.823913 seconds and 4 git commands to generate.