2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ui-out.h (ui_out_field_fmt_int): New prototype.
4 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
5 of field width and alignment.
6 * stack.c (print_frame_info_base): When printing frame level, use
7 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
8 PR gdb/192
9
10 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
11
12 * MAINTAINERS: Add self to Write After Approval list.
13
14 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
15
16 * infcmd.c (interrupt_target_command_wrapper): Delete.
17 (interrupt_target_command): Make non static.
18 (nofp_registers_info): Make static.
19 * stack.c (return_command_wrapper): Delete.
20 (return_command): Make non static.
21
22 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
23
24 * event-top.c (gdb_setup_readline): New function. Code moved from
25 _initialize_event_loop().
26 (_initialize_event_loop): Call gdb_setup_readline().
27
28 2002-10-02 Andrew Cagney <ac131313@redhat.com>
29
30 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
31 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
32 * gdbarch.h, gdbarch.c: Re-generate.
33
34 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
35
36 Fix PR gdb/778
37 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
38 before recursing.
39 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
40 of fill_in_vptr_fieldno.
41
42 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
43
44 * inferior.h (registers_info, stepi_command, nexti_command,
45 continue_command, interrupt_target_command): Export from infcmd.c.
46 * frame.h (args_info, selected_frame_level_changed_hook,
47 return_command): Export from stack.c.
48 * v850ice.c (stepi_command, nexti_command, continue_command): use
49 prototypes from inferior.h.
50 * tracepoint.c (registers_info, args_info, locals_info): Use
51 prototypes from frame.h and inferior.h.
52 * Makefile.in (mi-main.o): Add dependency on frame.h.
53
54 2002-10-02 Andrew Cagney <ac131313@redhat.com>
55
56 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
57 value in register 3 adjusted by ppc_gp0_regnum.
58
59 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
60
61 2002-10-02 Marko Mlinar <markom@opencores.org>
62
63 * MAINTAINERS: Add myself to the Write After Approval list.
64
65 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
66
67 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
68 of the section for the N64 ABI, fixed.
69
70 * config/mips/tm-irix6.h: Include solib.h.
71
72 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
73
74 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
75 GNU operators.
76
77 2002-10-01 Andrew Cagney <ac131313@redhat.com>
78
79 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
80 and that "mi0" syntax has been removed.
81
82 2002-09-30 David Carlton <carlton@math.stanford.edu>
83
84 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
85 * ppc-sysv-tdep.c: #include "gdb_string.h".
86 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
87 pacify GCC.
88
89 2002-10-01 Andrew Cagney <ac131313@redhat.com>
90
91 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
92 "vrsave"'s register number.
93
94 2002-09-30 Andrew Cagney <ac131313@redhat.com>
95
96 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
97 use frame_unwind_signed_register to obtain the PC.
98 (mips_frame_chain): Handle a generic dummy frame.
99 (mips_init_extra_frame_info): When a generic dummy frame, don't
100 re-compute the frame base.
101 (mips_pop_frame): Handle generic dummy frames.
102 (mips_gdbarch_init): When generic dummy frames, set
103 use_generic_dummy_frames, push_dummy_frame to
104 generic_push_dummy_frame, pc_in_call_dummy to
105 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
106 generic_save_dummy_frame_tos.
107
108 2002-09-30 Andrew Cagney <ac131313@redhat.com>
109
110 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
111 against TOP when TOP was explictly set.
112 (generic_push_dummy_frame): Set TOP to zero.
113
114 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
115
116 * event-loop.c (start_event_loop): Rename variable 'result' to
117 'gdb_result', to avoid conflicts with upcoming intepreters changes.
118
119 2002-09-30 Keith Seitz <keiths@redhat.com>
120
121 * gdb-events.sh (selected_thread_changed): New event.
122 * gdb-events.c: Regenerated.
123 * gdb-events.h: Regenerated.
124
125 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
126
127 * MAINTAINERS: Add self to Write After Approval list.
128
129 2002-09-30 Fernando Nasser <fnasser@redhat.com>
130
131 * disasm.c: New file.
132 * disasm.h: New file.
133 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
134 (compare_lines): Ditto.
135 (dump_insns): Ditto.
136 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
137 argument.
138 (do_assembly_only): Ditto.
139 (do_disassembly): Renamed to gdb_disassembly and moved to
140 disasm.c. Sdded uiout argument.
141 * Makefile.in: Add new files. Reorder SFILES list. Update
142 dependencies. Include libgdb.a later in the insight executable.
143
144 2002-09-29 Andrew Cagney <ac131313@redhat.com>
145
146 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
147 bfd/elf64-alpha-fbsd.c.
148
149 2002-09-29 Andrew Cagney <ac131313@redhat.com>
150
151 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
152 i386gnu-tdep.c.
153
154 2002-09-29 Andrew Cagney <ac131313@redhat.com>
155
156 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
157 __FUNCTION__.
158 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
159 function name.
160 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
161 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
162 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
163 (S_msg_sig_post_reply): Ditto.
164
165 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
166
167 * sh-tdep.c (sh_use_struct_convention): Use definition according
168 to ABI.
169 (sh_push_arguments): Store in register with correct endianess.
170 (sh_default_store_return_value): Ditto.
171 (sh_gdbarch_init): Set sizeof long double to 8.
172
173 2002-09-27 Mark Kettenis <kettenis@gnu.org>
174
175 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
176 Fix some whitespace problems.
177
178 2002-09-27 David Carlton <carlton@math.stanford.edu>
179
180 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
181 (mcore-tdep.o): Ditto.
182 (ns32k-tdep.o): Ditto.
183 (ns32knbsd-tdep.o): Ditto.
184 (sh3-rom.o): Ditto.
185 (vax-tdep.o): Ditto.
186 * cris-tdep.c: #include "gdb_string.h"
187 * mcore-tdep.c: Ditto.
188 * ns32k-tdep.c: Ditto.
189 * ns32knbsd-tdep.c: Ditto.
190 * sh3-rom.c: Ditto.
191 * vax-tdep.c: Ditto.
192
193 2002-09-27 David Carlton <carlton@math.stanford.edu>
194
195 * config/djgpp/fnchange.lst: Add entries for
196 gdb/testsuite/gdb.c++/m-static files.
197
198 2002-09-27 Jim Wilson <wilson@redhat.com>
199
200 * MAINTAINERS: Add myself to the Write After Approval list.
201
202 2002-09-26 Martin M. Hunt <hunt@redhat.com>
203
204 * mips-tdep.c (find_proc_desc): Initialize startaddr.
205
206
207 2002-09-26 Andrew Cagney <ac131313@redhat.com>
208
209 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
210 frame.
211
212 2002-09-26 Andrew Cagney <ac131313@redhat.com>
213
214 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
215 (rs6000_struct_return_address): Delete variable.
216 (rs6000_store_struct_return): Update.
217 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
218 deprecated_extract_struct_value_address.
219 (rs6000_frame_align): New function.
220 (rs6000_gdbarch_init): Set frame_align.
221
222 2002-09-26 Andrew Cagney <ac131313@redhat.com>
223
224 From Grace Sainsbury <graces@redhat.com>:
225 * Makefile.in (gdbtk-main.o): New target.
226 (gdb.o): New target.
227 (main_h): Define.
228 (main.o): Update dependencies.
229 (gdb$(EXEEXT)): Add gdb.o.
230 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
231 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
232 (SUBDIR_GDBTK_CLEAN): Set.
233 (install-gdbtk): Install the insight binary.
234 (uninstall-gdbtk): New target.
235 (all-gdbtk, clean-gdbtk): New rule.
236 * top.c (use_windows): Default to zero.
237 * main.c: Include "main.h".
238 (main): Delete.
239 (struct captured_main_args): Delete.
240 (gdb_main): New function.
241 * main.h: New file.
242 * gdb.c: New File.
243
244 2002-09-25 Andrew Cagney <cagney@redhat.com>
245
246 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
247 (frame_map_regnum_to_name): New function.
248 (frame_map_name_to_regnum): New function.
249 * frame.h (frame_map_name_to_regnum): Declare.
250 (frame_map_regnum_to_name): Declare.
251 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
252 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
253 * parse.c: Do not include "builtin-regs.h".
254 (target_map_name_to_register): Delete function.
255 (write_dollar_variable): Use frame_map_name_to_regnum.
256 * parser-defs.h (target_map_name_to_register): Delete declaration.
257 * expprint.c: Include "frame.h".
258 (print_subexp): Use frame_map_regnum_to_name.
259 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
260 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
261
262 2002-09-25 Andrew Cagney <ac131313@redhat.com>
263
264 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
265 wasn't saved, and the next innermost frame is a dummy, return the
266 dummy frame's link register.
267
268 2002-09-24 Jim Blandy <jimb@redhat.com>
269
270 Fix from Paul Breed:
271 * main.c (captured_main): Add a `break' after the case for 'b'.
272
273 2002-09-24 Keith Seitz <keiths@redhat.com>
274
275 * varobj.c (c_type_of_child): Use get_target_type instead
276 of TYPE_TARGET_TYPE.
277
278 2002-09-22 Fernando Nasser <fnasser@redhat.com>
279
280 * source.c (get_current_or_default_source_symtab_and_line): Remove
281 function.
282 (set_default_source_symtab_and_line): New function. Attempts to
283 determine a source file to list lines from if one is not currently
284 defined.
285 (get_current_source_symtab_and_line): Initialize sal.pc and
286 sal.end fields.
287 (set_current_source_symtab_and_line): Mark argument as const.
288 * source.h: Update declarations and comments.
289 * linespec.c (decode_line_1): Replace call to removed routine above.
290 * stack.c (print_frame_info_base): Ditto.
291 * cli/cli-cmds.c (edit_command): Ditto.
292 (list_command): Ditto.
293
294 2002-09-22 Fernando Nasser <fnasser@redhat.com>
295
296 * source.c (get_current__or_default_source_symtab_and_line): Initialize
297 sal.pc and sal.end fields.
298 (get_current_or_default_source_symtab_and_line): Ditto.
299 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
300 so we do not cause a new source symtab to be searched for (reverting an
301 unintentional change from the 2002-09-20 patch).
302 * scm-lang.c (scm_unpac): Ditto.
303
304 2002-09-21 Andrew Cagney <cagney@redhat.com>
305
306 * complaints.c (symfile_explanations): Remove new-line from
307 ``isolated_message''.
308 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
309 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
310
311 2002-09-20 Nick Clifton <nickc@redhat.com>
312
313 * NEWS: Announce that V850EA ISA is no longer supported.
314 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
315
316 2002-09-20 David Carlton <carlton@math.stanford.edu>
317
318 * Makefile.in (c-lang.o): Correct dependencies.
319 (utils.o): Gather dependencies.
320 (charset.o): Move.
321 * c-lang.c: #include "gdb_string.h"
322
323 2002-09-20 Fernando Nasser <fnasser@redhat.com>
324
325 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
326 * cli/cli-cmds.c (list_command): New function. Implements the new
327 cli edit command.
328 (_init_cli_cmds): Add new command definition.
329 * gdb.1: Document edit command.
330 * doc/gdb.texinfo: Document edit command.
331
332 2002-09-20 Fernando Nasser <fnasser@redhat.com>
333
334 * source.c: Make global variables current_source_symtab and
335 current_source_line static.
336 (list_command): Moved to cli/cli-cmds.c.
337 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
338 (get_first_line_listed): New accessor function.
339 (get_lines_to_list): New accessor function.
340 (get_current_source_symtab_and_line): New function. Retrieves the
341 position in the source code that we consider current.
342 (get_current_or_default_source_symtab_and_line): New function.
343 Like the above but attempts to determine a default position if one
344 is not currently defined.
345 (set_current_source_symtab_and_line): New function. Sets the source
346 code position considered current and returns the previously set one.
347 (clear_current_source_symtab_and_line): Reset stored information about
348 a current source line.
349 (_initialize_source): Remove registration for the "list" command and
350 its alias.
351 * source.h: Add declarations for the new functions above.
352 * symtab.h: Remove declarations for the global variables mentioned
353 above.
354 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
355 obtain current source line.
356 * linespec.c (decode_line_1): Ditto.
357 * macroscope.c (default_macro_scope): Ditto.
358 * scm-lang.c (scm_unpac): Ditto.
359 * stack.c (print_frame_info_base): Ditto.
360 * symfile.c (clear_symtab_users): Ditto.
361 * symtab.c (decode_line_spec): Ditto.
362 * cli/cli-cmds.c (list_command): Moved here from source.c.
363 (ambiguous_line_spec): Moved here from source.c.
364 (_init_cli_cmds): Add definition for "list" and its alias.
365 * Makefile.in: Update dependencies.
366
367 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
368
369 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
370 with what gcc thinks is correct.
371
372 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
373
374 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
375 multiple register push instruction.
376
377 2002-09-19 Jim Blandy <jimb@redhat.com>
378
379 Add support for distinct host and target character sets.
380 * charset.c, charset.h: New files.
381 * c-exp.y: #include "charset.h".
382 (yylex): Convert character and string literals to the target
383 character set, before returning them as the semantic value of the
384 token.
385 * c-lang.c: #include "charset.h".
386 (c_emit_char): Use charset-specific methods to recognize
387 characters with backslash escape forms, to decide which characters
388 to print literally and which to print using numeric escape
389 sequences, and to convert target characters to host characters
390 before printing.
391 * utils.c: #include "charset.h".
392 (no_control_char_error): New function.
393 (parse_escape): Use charset-specific methods to recognize
394 backslash escapes, parse `control character' notation, and convert
395 characters from the host character set to the target character set.
396 * configure.in: Set the default host character set.
397 Check where to find iconv, and what its argument types might be.
398 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
399 * Makefile.in (SFILES): List charset.c.
400 (COMMON_OBS): List charset.o.
401 (charset.o): New rule.
402 (charset_h): New header dependency variable.
403 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
404 (LIBICONV): New variable, set by configure.
405 (CLIBS): Include $(LIBICONV) here.
406 * aclocal.m4, config.in, configure: Regenerated.
407
408 2002-09-19 Joel Brobecker <brobecker@gnat.com>
409
410 * ada-exp.y: Add missing semicolons to end rules. Fixes a
411 bison 1.35 warning.
412
413 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
414
415 * gdb_mbuild.sh: New file.
416
417 2002-09-19 Andrew Cagney <ac131313@redhat.com>
418
419 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
420
421 2002-09-18 Andrew Cagney <ac131313@redhat.com>
422
423 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
424 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
425 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
426 valops.c, value.h: Revert previous change.
427
428 2002-09-18 Michael Snyder <msnyder@redhat.com>
429
430 Preliminary support for Objective-C:
431 * defs.h (language_objc): New enum value.
432 (puts_filtered_tabular): Declaration only, exported from utils.c.
433 (skip_quoted): Delete, declared in completer.h.
434 * c-exp.y: Include completer.h.
435 * p-exp.y: Ditto.
436 * jv-exp.y: Ditto.
437 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
438 New operator enum values.
439 * language.h (CAST_IS_CONVERSION): Test for language_objc.
440 * language.c (binop_result_type): Handle language_objc case.
441 (integral_type, character_type, string_type, boolean_type,
442 structured_type, binop_type_check): Ditto.
443 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
444 (struct objc_specific): Add to general_symbol_info.
445 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
446 (SYMBOL_DEMANGLED_NAME): Handle objc case.
447 * parser-defs.h (struct objc_class_str): New struct type.
448 (start_msglist, end_msglist, add_msglist): Declaration only,
449 exported from objc-lang.c.
450 * value.h (value_of_local, value_nsstring,
451 call_function_by_hand_expecting_type): Exported from valops.c.
452 * valops.c (find_function_addr): Export.
453 (call_function_by_hand_expecting_type): New function.
454 (value_of_local): New function.
455 * symfile.c (init_filename_language_table): Add ".m" extension
456 for Objective-C.
457 * utils.c (puts_filtered_tabular): New function.
458 (fprintf_symbol_filtered): Add objc demangling support (disabled).
459 (set/show demangle): Extend help-string to refer to ObjC.
460 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
461 * stabsread.c (symbol_reference_defined): Objective-C symbols
462 may contain colons: make allowances when scanning stabs strings
463 for colons.
464 (objc_find_colon): New function.
465 * printcmd.c (address_info): If language == objc then print
466 "self" instead of "this".
467 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
468 OP_NSSTRING, and OP_SELF.
469 (prefixify_subexp): Ditto.
470 * source.c (print_source_lines): Mention objc in comment.
471 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
472 method names.
473
474 2002-09-18 Andrew Cagney <ac131313@redhat.com>
475
476 * complaints.h: Update copyright.
477 (struct complaints): Declare.
478 (struct complaint): Make `message' constant.
479 (internal_complaint): Declare.
480 (complaint): Declare.
481 (complaint_root): Delete declaration.
482 (symfile_complaints): Delete declaration.
483 (struct complaints): Add opaque declaration.
484 (clear_complaints): Add a complaints parameter.
485 * complaints.c: Update copyright.
486 (enum complaint_series): Define.
487 (complaint_root): Delete.
488 (struct complaints): Define.
489 (complaint_sentinel, symfile_complaint_book): New variables.
490 (symfile_explanations, symfile_complaints): New variables.
491 New variables.
492 (get_complaints): New function.
493 (vcomplaint): New function.
494 (complaint): New function.
495 (internal_complaint): New function.
496 (complain): Call vcomplain with symfile_complaint.
497 (clear_complaints): Rewrite.
498 (_initialize_complaints): Use add_setshow_command.
499 * Makefile.in (complaints.o): Update dependencies.
500 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
501 to call to clear_complaints.
502 (new_symfile_objfile, reread_symbols): Ditto.
503 (oldsyms_complaint): Delete.
504 (empty_symtab_complaint, unknown_option_complaint): Delete.
505 (free_named_symtabs): Use complaint instead of complain.
506
507 2002-09-18 Michael Snyder <msnyder@redhat.com>
508
509 Contributed by Apple Computer, Inc. Merged with current sources
510 by Adam Fedor <fedor@doc.com> [cagney].
511
512 * objc-lang.c: First clean-up round: comments, indentation.
513 * objc-lang.h: Ditto.
514 * objc-lang.y: Ditto.
515
516 2002-09-18 Andrew Cagney <ac131313@redhat.com>
517
518 * maint.c (maintenance_internal_error): Print the parameter as the
519 error message.
520 (maintenance_internal_warning): New function.
521 (_initialize_maint_cmds): Add command `maint internal-warning'.
522
523 * defs.h (internal_warning, internal_vwarning): Declare.
524 * utils.c (struct internal_problem): Define.
525 (internal_vproblem): New function.
526 (internal_warning): New function.
527 (internal_vwarning): New function.
528 (internal_warning_problem, internal_error_problem): New variables.
529 (internal_verror): Just call internal_vproblem.
530
531 2002-09-18 Michael Snyder <msnyder@redhat.com>
532
533 * objc-lang.c: New file, support for Objective-C.
534 Preliminary check-in, not yet integrated into gdb.
535 * objc-lang.h: New file.
536 * objc-exp.y: New file.
537
538 2002-09-18 Andrew Cagney <ac131313@redhat.com>
539
540 * infrun.c (signal_stop_update): Convert definition to ISO C.
541 (signal_print_update): Ditto.
542 (signal_pass_update): Ditto.
543 * inflow.c (terminal_save_ours): Ditto.
544
545 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
546 comments.
547
548 * config/djgpp/fnchange.lst: Handle name clashes between
549 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
550 bfd/coff-tic80.c.
551
552 * i386-linux-tdep.h: Fix tipo.
553
554 2002-09-18 Adam Fedor <fedor@gnu.org>
555
556 * MAINTAINERS: Add myself to the Write After Approval list.
557
558 2002-09-18 Jim Blandy <jimb@redhat.com>
559
560 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
561 texthigh and textlow to reader-specific structs caused
562 objfile_relocate to miss them. This is fixable, but the work that
563 the change was supposed to prepare GDB for never got done anyway.
564
565 2002-09-18 David Carlton <carlton@math.stanford.edu>
566
567 * MAINTAINERS: Alphabetize Write After Approval list.
568
569 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
570
571 Fix PR gdb/709
572 * values.c (value_static_field): Call read_var_value.
573
574 2002-09-18 Andrew Cagney <ac131313@redhat.com>
575
576 * valops.c (hand_function_call): Align the initial stack pointer
577 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
578 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
579 return value.
580 * mips-tdep.c (mips_frame_align): New function.
581 (mips_gdbarch_init): Set frame_align.
582 * gdbarch.sh (FRAME_ALIGN): New method.
583 * gdbarch.h, gdbarch.c: Re-generate.
584
585 2002-09-18 Michal Ludvig <mludvig@suse.cz>
586
587 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
588 registers.
589
590 2002-09-17 Andrew Cagney <ac131313@redhat.com>
591
592 * NEWS: Mention that MIPS $fp behavior changed.
593 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
594 reference to FP_REGNUM.
595 (mipsnbsd_cannot_store_register): Ditto.
596 * mips-linux-nat.c: Update copyright.
597 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
598 (mips_linux_cannot_store_register): Ditto.
599 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
600 * config/mips/tm-mips.h: Update copyright.
601 (FP_REGNUM): Delete macro.
602 (MIPS_REGISTER_NAMES): Replace "fp" with "".
603 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
604 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
605 (mips_r3041_reg_names, mips_r3051_reg_names)
606 (mips_r3081_reg_names): Replace "fp" with "".
607 Fix PR gdb/480.
608
609 2002-09-17 Theodore A. Roth <troth@verinet.com>
610
611 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
612 generic_read_register_dummy() (PR gdb/703).
613 (avr_push_return_address): #if 0 out unused vars.
614 (avr_gdbarch_init): Enable use of avr_push_return_address().
615
616 2002-09-17 Michael Snyder <msnyder@redhat.com>
617
618 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
619 RTE will take care of it.
620
621 2002-09-17 Andrew Cagney <ac131313@redhat.com>
622
623 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
624 invalid, return SP_REGNUM.
625
626 2002-09-17 Michael Snyder <msnyder@redhat.com>
627
628 * mips-tdep.c (mips_pop_frame): Read saved values of floating
629 point registers without sign extension.
630
631 2002-09-17 Andrew Cagney <cagney@redhat.com>
632
633 * blockframe.c (deprecated_read_register_dummy): Rename
634 generic_read_register_dummy.
635 * frame.c (frame_unwind_signed_register): New function.
636 (frame_unwind_unsigned_register): New function.
637 * frame.h (frame_unwind_signed_register): Declare.
638 (frame_unwind_unsigned_register): Declare.
639 (deprecated_read_register_dummy): Rename
640 generic_read_register_dummy.
641
642 * h8300-tdep.c (h8300_frame_chain): Update.
643 (h8300_frame_saved_pc): Update.
644 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
645 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
646 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
647 (s390_frame_chain): Update.
648 * v850-tdep.c (v850_find_callers_reg): Update.
649 (v850_frame_saved_pc): Update.
650 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
651 (m32r_find_callers_reg): Update.
652 (m32r_frame_saved_pc): Update.
653 * sh-tdep.c (sh_find_callers_reg): Update.
654 (sh64_get_saved_pr): Update.
655 (sh_init_extra_frame_info): Update.
656 (sh_init_extra_frame_info): Update.
657 (sh64_init_extra_frame_info): Update.
658 (sh64_init_extra_frame_info): Update.
659 * mcore-tdep.c (mcore_find_callers_reg): Update.
660 (mcore_frame_saved_pc): Update.
661 (mcore_init_extra_frame_info): Update.
662 * i386-tdep.c (i386_frame_saved_pc): Update.
663 * ia64-tdep.c (ia64_frame_saved_pc): Update.
664 (ia64_init_extra_frame_info): Update.
665 (ia64_init_extra_frame_info): Update.
666 * d10v-tdep.c (d10v_frame_saved_pc): Update.
667 * cris-tdep.c (cris_init_extra_frame_info): Update.
668 * avr-tdep.c (avr_frame_chain): Update.
669 (avr_init_extra_frame_info): Update.
670 (avr_frame_saved_pc): Update.
671 * arm-tdep.c (arm_find_callers_reg): Update.
672 (arm_init_extra_frame_info): Update.
673 (arm_frame_saved_pc): Update.
674
675 2002-09-17 Tom Tromey <tromey@redhat.com>
676
677 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
678 is "'".
679
680 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
681
682 * MAINTAINERS: Remove "non multi-arched" text from h8300.
683 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
684 NEXT_PROLOGUE_INSN.
685 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
686 NEXT_PROLOGUE_INSN.
687
688 2002-09-16 Joel Brobecker <brobecker@gnat.com>
689
690 * osfsolib.c: Remove file, replaced by solib-osf.c.
691 * Makefile.in: Remove compilation rules for osfsolib.c.
692
693 2002-09-16 David Carlton <carlton@math.stanford.edu>
694
695 * cp-valprint.c (cp_print_class_method): Correct args to
696 check_stub_method_group.
697
698 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
699
700 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
701 `set architecture'. Unify naming convention of functions.
702 (h8300_skip_prologue): Improve prologue analysis.
703 (h8300_push_arguments): Rewritten to more closely match GCC's
704 bizarre argument-passing behavior, along with the comment describing
705 said behavior.
706 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
707 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
708 sim, remote-e7000.c, remote-hms.c and remote.c
709
710 2002-09-15 Mark Kettenis <kettenis@gnu.org>
711
712 * i386-tdep.c (gdb_print_insn_i386): Removed.
713 (i386_print_insn): New function.
714 (i386_gdbarch_init): Set print_insn to i386_print_insns.
715 (_initialize_i386_tdep): Don't initialize tm_print_insn and
716 tm_print_insn_info.
717
718 2002-09-14 Mark Kettenis <kettenis@gnu.org>
719
720 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
721 zero.
722
723 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
724
725 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
726 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
727 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
728
729 2002-09-13 Christopher Faylor <cgf@redhat.com>
730
731 * win32-nat.c (child_create_inferior): Honor 'tty' command.
732
733 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
734
735 * gdbtypes.c (check_stub_method): Make static.
736 (check_stub_method_group): New function.
737 * gdbtypes.h: Update prototypes.
738 * cp-support.c: New file.
739 * cp-support.h: New file.
740
741 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
742 (update_method_name_from_physname): New function.
743 (read_member_functions): Correct method names for operators
744 and v3 constructors/destructors. Separate v2 constructors and
745 destructors.
746 * Makefile.in (stabsread.o): Update dependencies.
747 (SFILES): Add cp-support.c.
748 (COMMON_OBS): Add cp-support.o.
749 (cp_support_h, cp-support.o): Add.
750
751 * cp-valprint.c (cp_print_class_method): Call
752 check_stub_method_group instead of check_stub_method. Remove
753 extraneous QUITs.
754 * p-valprint.c (pascal_object_print_class_method): Likewise.
755 * valops.c (search_struct_method): Likewise.
756 (find_method_list, value_struct_elt_for_reference): Likewise.
757
758 2002-09-13 Andrew Cagney <cagney@redhat.com>
759
760 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
761 * gdbarch.h, gdbarch.c: Regenerate.
762
763 2002-09-13 Andrew Cagney <ac131313@redhat.com>
764
765 * frame.c (find_saved_register): Delete function.
766 * frame.h (find_saved_register): Delete declaration.
767 Fix PR gdb/631.
768
769 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
770
771 * mips-tdep.c (read_next_frame_reg): Re-hack using
772 frame_register_unwind.
773
774 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
775
776 * mips-tdep.c (mips_get_saved_register): Re-hack using
777 frame_register_unwind.
778
779 2002-09-12 Joel Brobecker <brobecker@gnat.com>
780
781 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
782 vector. Will be useful for Interix.
783 * gdbarch.h, gdbarch.c: Regenerate.
784
785 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
786 name of the malloc function by NAME_OF_MALLOC.
787
788 2002-09-12 Joel Brobecker <brobecker@gnat.com>
789
790 * value.h (find_function_in_inferior): Add const keyword to
791 one of the parameters. Allows us to invoke this function with
792 a const char *.
793 * valops.c (find_function_in_inferior): Likewise.
794
795 2002-09-12 Joel Brobecker <brobecker@gnat.com>
796
797 * exec.c (xfer_memory): Fix compilation warning with old versions
798 of GCC.
799 * tracepoint.c (trace_find_tracepoint_command): Likewise.
800
801 2002-09-12 David Carlton <carlton@math.stanford.edu>
802
803 * symtab.h: Run through gdb_indent.h.
804 Add 2002 to Copyright year list.
805
806 2002-09-12 Alan Modra <amodra@bigpond.net.au>
807
808 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
809 mach constants.
810 * MAINTAINERS: Add myself to write after approval list.
811
812 2002-09-11 J. Brobecker <brobecker@gnat.com>
813
814 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
815
816 2002-09-11 J. Brobecker <brobecker@gnat.com>
817
818 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
819 Interix.
820
821 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
822
823 * procfs.c (do_detach): Clear current signal, not just fault.
824 Corrects problem with breakpoint trap signal leaking to detached
825 process on Tru64.
826
827 2002-09-10 Michael Snyder <msnyder@redhat.com>
828
829 * buildsym.c (finish_block): Protect against null pointer.
830
831 2002-09-10 Andrew Cagney <cagney@redhat.com>
832
833 * infcmd.c (default_print_registers_info): Send all output to
834 ``file'' instead of ``gdb_stdout''.
835
836 2002-09-10 Michael Snyder <msnyder@redhat.com>
837
838 * mips-tdep.c (mips_extract_struct_value_address): Make val a
839 LONGEST, and use signed register read (addresses are sign-
840 extended for mips).
841
842 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
843
844 * event-loop.c (gdb_do_one_event): Make public.
845 * event-loop.h (gdb_do_one_event): Declare.
846
847 2002-09-10 Jeff Law <law@redhat.com>
848
849 * infttrace.c (child_resume): Simplify and rework to avoid
850 TT_PROC_CONTINUE.
851
852 2002-09-09 Fred Fish <fnf@intrinsity.com>
853
854 * printcmd.c (print_scalar_formatted): "len" is the number of
855 target bytes, NOT the number of target bits.
856
857 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
858
859 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
860 * top.c (init_main): Set rl_terminal_name.
861
862 2002-09-08 Aidan Skinner <aidan@velvet.net>
863
864 * ada-lang.c (ada_array_bound, ada_type_match,
865 _initialize_ada_language): Fix K&R definitions.
866 * ada-tasks.c (get_current_task): Fix K&R definitions.
867 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
868
869 2002-09-07 Christopher Faylor <cgf@redhat.com>
870
871 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
872 Add XP.
873
874 2002-09-06 Mark Kettenis <kettenis@gnu.org>
875
876 * i386-tdep.c (i386_register_virtual_type,
877 i386_register_convertible, i386_register_convert_to_virtual,
878 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
879 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
880 (i386_gdbarch_init): Fix comment. Add comments on calls that set
881 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
882 Don't set push_arguments twice.
883
884 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
885 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
886 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
887 sigtramp_end to NULL.
888 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
889 defines.
890 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
891
892 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
893 whitespace.
894
895 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
896 * gdbarch.h, gdbarch.c: Re-generate.
897 * blockframe.c (find_pc_sect_partial_function): Convert to use
898 SIGTRAMP_START_P predicate.
899
900 2002-09-05 Michael Snyder <msnyder@redhat.com>
901
902 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
903 generic_dummy_frame method and old method. Also distinguish
904 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
905 (arm_extract_return_value): Use new regcache method.
906
907 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
908 adjustment that doesn't conform to the ABI.
909 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
910 saved regcache, not from current regcache.
911
912 2002-09-05 Andrew Cagney <ac131313@redhat.com>
913
914 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
915 * README: Update.
916
917 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
918
919 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
920 if arm_apcs_32 is false.
921
922 2002-09-04 Andrew Cagney <ac131313@redhat.com>
923
924 GDB 5.3 branch created.
925
926 2002-09-03 Theodore A. Roth <troth@verinet.com>
927
928 * gdb/avr-tdep.c (avr_gdbarch_init): Use
929 generic_unwind_get_saved_register.
930
931 2002-09-03 David Carlton <carlton@math.stanford.edu>
932
933 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
934 argument (PR gdb/653). Update call to smash_to_method_type.
935 (read_structure_scope): Update call to dwarf2_add_member_fn.
936
937 2002-09-03 Michal Ludvig <mludvig@suse.cz>
938
939 * x86-64-linux-tdep.c: Include gdb_string.h
940 * x86-64-linux-nat.c: Ditto.
941
942 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
943
944 * ada-exp.y (yyname, yyrule): Remap global variables that appear
945 when YYDEBUG is set to 1.
946 * c-exp.y: Likewise.
947 * f-exp.y: Likewise.
948 * jv-exp.y: Likewise.
949 * m2-exp.y: Likewise.
950 * p-exp.y: Likewise.
951
952 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
953
954 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
955 dependency list.
956 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
957 solib_svr4_fetch_link_map_offsets to
958 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
959 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
960 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
961 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
962 solib-svr4.o, and solib-legacy.o.
963 * config/i386/tm-nbsd.h: Include solib.h.
964
965 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
966
967 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
968 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
969 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
970 comment noting that this needs its own target configuration.
971 * config/i386/nbsd.mt: New file.
972 * config/i386/nbsdaout.mt: Remove.
973 * config/i386/nbsdelf.mt: Ditto.
974 * config/i386/tm-nbsdaout.h: Ditto.
975
976 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
977
978 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
979 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
980 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
981 tdep->sigtramp_end.
982 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
983 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
984 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
985
986 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
987
988 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
989 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
990 * i386-tdep.h (i386bsd_init_abi): New prototype.
991 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
992 function declaration.
993 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
994 for NetBSD-a.out or NetBSD-ELF.
995 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
996 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
997 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
998 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
999 and nbsd-tdep.h.
1000 (i386nbsd_pc_in_sigtramp): New function.
1001 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1002 i386nbsd_pc_in_sigtramp.
1003 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1004 and i386nbsdelf_init_abi OS ABI handlers.
1005 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1006 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1007
1008 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1009
1010 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1011 registers if the target really has them.
1012
1013 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1014
1015 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1016 than nbsd-tdep.h.
1017
1018 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1019
1020 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1021 list.
1022 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1023 (alphanbsd_skip_sigtramp_frame): New functions.
1024 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1025 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1026 to alphanbsd_sigcontext_addr.
1027
1028 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1029
1030 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1031 list.
1032 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1033 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1034 nbsd_pc_in_sigtramp.
1035 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1036 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1037 * nbsd-tdep.c: Include gdb_string.h.
1038 (nbsd_pc_in_sigtramp): New function.
1039 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1040 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1041 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1042 ppcnbsd_pc_in_sigtramp.
1043 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1044 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1045 shnbsd_pc_in_sigtramp.
1046 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1047 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1048 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1049
1050 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1051
1052 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1053 watchpoints to NULL.
1054 (insert_breakpoints): set val field of watchpoints if NULL.
1055
1056
1057 2002-08-29 Jim Blandy <jimb@redhat.com>
1058
1059 * symtab.c (lookup_symbol_aux): In the cases where we find a
1060 minimal symbol of an appropriate name and use its address to
1061 select a symtab to read and search, use `name' (as passed to us)
1062 as the demangled name when searching the symtab's global and
1063 static blocks, not the minsym's name.
1064
1065 2002-08-29 Keith Seitz <keiths@redhat.com>
1066
1067 * stack.c (print_frame_info_base): Always set current_source_symtab
1068 and current_source_line.
1069
1070 2002-08-29 Donn Terry <donnte@microsoft.com>
1071
1072 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1073
1074 2002-08-28 Keith Seitz <keiths@redhat.com>
1075
1076 * stack.c (select_frame): Add FIXME concerning selected-frame
1077 events.
1078 (select_frame_command): Send selected-frame-level-changed
1079 event notification, but only if the level actually changed.
1080 (up_silently_base): Add selected-frame-level-changed event
1081 notification.
1082 (down_silently_base): Likewise.
1083
1084 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1085
1086 * Makefile.in: Update dependencies for all gdb/*.c files.
1087
1088 2002-08-27 Tom Tromey <tromey@redhat.com>
1089
1090 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1091 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1092 Update dependencies.
1093 * i387-tdep.c: Include gdb_string.h.
1094 * osabi.c: Likewise.
1095 * i386-linux-nat.c: Likewise.
1096 * lin-lwp.c: Likewise.
1097 * ax-gdb.c: Likewise.
1098 * signals/signals.c: Likewise.
1099 * jv-valprint.c: Likewise.
1100 * p-lang.c: Likewise.
1101 * c-valprint.c: Likewise.
1102 * cp-abi.c: Likewise.
1103
1104 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1105
1106 * cli/cli-script.h (copy_command_lines): Export.
1107 * breakpoint.c: Include cli/cli-script.h.
1108 * Makefile.in (breakpoint.o): Update dependencies.
1109
1110 2002-08-26 Michael Snyder <msnyder@redhat.com>
1111
1112 * breakpoint.c (insert_breakpoints): Protect all references
1113 to 'process_warning'. Shorten long lines.
1114
1115 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1116
1117 * cli/cli-script.c (copy_command_lines): New function.
1118 * defs.h (copy_command_lines): Export.
1119 * testsuite/gdb.base/commands.exp: New tests for commands
1120 attached to a temporary breakpoint, and for commands that
1121 delete the breakpoint they are attached to.
1122
1123 2002-08-26 Michael Snyder <msnyder@redhat.com>
1124
1125 * breakpoint.c (bpstat_stop_status): Instead of copying the
1126 pointer to the breakpoint commands struct, make a new copy
1127 of the struct and point to that.
1128 (bpstat_clear): Free the commands struct.
1129 (bpstat_clear_actions): Free the commands struct.
1130 (bpstat_do_actions): Free the command actions. Also execute
1131 the local cleanups, instead of deleting them.
1132 (delete_breakpoint): Leave the commands field of the bpstat
1133 chain alone -- it will be freed later.
1134
1135 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1136
1137 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1138 deleted in 2002-08-20 commit. This function is still used by
1139 ppc-linux-nat.c.
1140
1141 2002-08-26 Keith Seitz <keiths@redhat.com>
1142
1143 * gdb-events.sh: Add selected-frame-level-changed event.
1144 * gdb-events.c: Regenerated.
1145 * gdb-events.h: Regenerated.
1146
1147 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1148
1149 Fix PR gdb/393:
1150 * inflow.c (terminal_save_ours): New function to save terminal
1151 settings.
1152 * inferior.h (terminal_save_ours): Declare.
1153 * target.c (debug_to_terminal_save_ours): New function.
1154 (cleanup_target): Defaults to_terminal_save_ours.
1155 (update_current_target): Inherit to_terminal_save_ours.
1156 (setup_target_debug): Set to_terminal_save_ours.
1157 * target.h (target_terminal_save_ours): New to save terminal settings.
1158 (target_ops): New member to_terminal_save_ours.
1159 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1160 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1161 * inftarg.c (init_child_ops): Likewise.
1162 * m3-nat.c (init_m3_ops): Likewise.
1163 * procfs.c (init_procfs_ops): Likewise.
1164 * wince.c (init_child_ops): Likewise.
1165 * win32-nat.c (init_child_ops): Likewise.
1166 * sol-thread.c (init_sol_thread_ops): Likewise.
1167
1168 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1169
1170 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1171 use regcache_* functions.
1172 (i386_gdbarch_init): Set store_return_value instead of
1173 deprecated_store_return_value.
1174
1175 * regcache.c (regcache_raw_write_signed,
1176 regcache_raw_write_unsigned): New functions.
1177 * regcache.h (regcache_raw_write_signed,
1178 regcache_raw_write_unsigned): New prototypes.
1179
1180 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1181
1182 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1183 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1184 source file dependencies. Cleanup corresponding generator rules.
1185
1186 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1187
1188 * regcache.h (register_offset_hack): Declare.
1189 (regcache_cooked_read_using_offset_hack): Declare.
1190 (regcache_cooked_write_using_offset_hack): Declare.
1191
1192 * regcache.c (register_offset_hack): New function.
1193 (regcache_cooked_read_using_offset_hack): New function.
1194 (regcache_cooked_write_using_offset_hack): New function.
1195 (regcache_dump): Check that the registers, according to their
1196 offset, are packed hard against each other.
1197 (cooked_xfer_using_offset_hack): New function.
1198
1199 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1200
1201 * regcache.c (struct regcache_descr): Add field register_type.
1202 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1203 in as a parameter
1204 (init_regcache_descr): Initialize register_type. Pass the descr
1205 to init_legacy_regcache_descr. Use register_type instead of
1206 REGISTER_VIRTUAL_TYPE.
1207 (register_type): New function.
1208 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1209 * regcache.h (register_type): Declare.
1210
1211 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1212
1213 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1214 instead of deprecated_store_return_value. Fix fallout from
1215 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1216
1217 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1218
1219 * regcache.c (max_register_size): New function.
1220 (init_legacy_regcache_descr): Ensure that max_register_size is
1221 large enough for REGISTER_VIRTUAL_SIZE.
1222 * regcache.h (max_register_size): Declare.
1223
1224 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1225
1226 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1227 store_return_value.
1228 (e500_extract_return_value): Change type of valbuf pointer to
1229 void.
1230
1231 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1232
1233 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1234 workaround.
1235
1236 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1237 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1238 long long) to prevent compiler warning on 64-bit systems.
1239
1240 2002-08-23 Andrew Cagney <cagney@redhat.com>
1241
1242 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1243 (DEPRECATED_STORE_RETURN_VALUE): New method.
1244 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1245 * gdbarch.h, gdbarch.c: Re-generate.
1246
1247 * values.c (set_return_value): Pass current_regcache to
1248 STORE_RETURN_VALUE.
1249 * arch-utils.h (legacy_store_return_value): Declare.
1250 * arch-utils.c (legacy_store_return_value): New function.
1251 (legacy_extract_return_value): Update parameters.
1252
1253 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1254 STORE_RETURN_VALUE.
1255 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1256 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1257 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1258 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1259 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1260 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1261 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1262 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1263 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1264 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1265
1266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1267 * i386-tdep.c (i386_extract_return_value): Update.
1268 * arch-utils.c (legacy_extract_return_value): Update.
1269 * frv-tdep.c (frv_gdbarch_init): Update.
1270 * cris-tdep.c (cris_gdbarch_init): Update.
1271 * d10v-tdep.c (d10v_gdbarch_init): Update.
1272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1273 * m68k-tdep.c (m68k_gdbarch_init): Update.
1274 * mcore-tdep.c (mcore_gdbarch_init): Update.
1275 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1276 * s390-tdep.c (s390_gdbarch_init): Update.
1277 * sparc-tdep.c (sparc_gdbarch_init): Update.
1278 * sh-tdep.c (sh_gdbarch_init): Update.
1279 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1280 * v850-tdep.c (v850_gdbarch_init): Update.
1281 * avr-tdep.c (avr_gdbarch_init): Update.
1282 * ia64-tdep.c (ia64_gdbarch_init): Update.
1283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1284 * vax-tdep.c (vax_gdbarch_init): Update.
1285 * alpha-tdep.c (alpha_gdbarch_init): Update.
1286 * arm-tdep.c (arm_gdbarch_init): Update.
1287 * mips-tdep.c (mips_gdbarch_init): Update.
1288 * i386-tdep.c (i386_gdbarch_init): Update.
1289
1290 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1291
1292 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1293 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1294
1295 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1296
1297 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1298 problems.
1299
1300 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1301
1302 * infrun.c (handle_inferior_event): Move a comment outside of a
1303 function call, in order to avoid indent reformatting this part
1304 of the code in an unreadable way.
1305
1306 2002-08-23 Grace Sainsbury <graces@redhat.com>
1307
1308 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1309 when breakpoints fail. Move general breakpoint error messages to
1310 insert_breakpoints.
1311 * breakpoint.c (insert_breakpoints): Change warnings when
1312 breakpoints are nto inserted to specify the type. Remove call to
1313 memory_error when hardware breakpoints can't be inserted. Remove
1314 multiple calls to warning so all messages are sent to the user at
1315 once.
1316 (delete_breakpoints): Make insert error messsages more explicit.
1317
1318 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1319
1320 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1321 gdbserver/ChangeLog.
1322
1323 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1324
1325 * i386-tdep.c: Include "objfiles.h".
1326 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1327 skip_trampoline_code.
1328 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1329 (CPLUS_MARKER): Define to '.'.
1330
1331 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1332 member.
1333 (linux_corefile_thread_callback): Increase args->num_notes.
1334 (linux_make_note_section): Initialize thread_args.num_notes, and
1335 use it to determine whether notes for any threads were created.
1336
1337 2002-08-23 Donn Terry <donnte@microsoft.com>
1338
1339 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1340 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1341 and PCUNKILL.
1342 (write_with_trace): Conditionalize out the switch branch handling
1343 PCSHOLD if the corresponding macro is not defined. Likewise for
1344 PRSABORT and PRSTOP.
1345 This change will be needed by the Interix port.
1346
1347 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1348
1349 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1350 write_register wherever possible instead of manipulating the
1351 register bytes directly.
1352 Assign VALUE_CONTENTS to a variable and use that.
1353 The GPR numbers are now dependent on the architecture.
1354
1355 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1356
1357 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1358 ev_offset fields.
1359 (skip_prologue): Add support for BookE/e500 instructions.
1360 (e500_extract_return_value): New function.
1361 (frame_get_saved_regs): Add support for saving ev registers and
1362 pseudo gpr's.
1363 (e500_store_return_value): New function.
1364 (rs6000_gdbarch_init): Move up default intializations of
1365 deprecated_extract_return_value and store_return_value. Overwrite
1366 init of store_return_value with e500 specific version.
1367 Set extract_return_value for e500.
1368
1369 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1370
1371 * blockframe.c (generic_call_dummy_register_unwind): Use
1372 regcache_cooked_read to catch cases in which the variable is
1373 stored in a pseudo register.
1374
1375 2002-08-22 Andrew Cagney <cagney@redhat.com>
1376
1377 * NEWS: Mention that the i960 has been made obsolete.
1378 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1379 i960-tdep.c
1380 (remote-nrom.o): Obsolete target.
1381 (remote-nindy.o, i960-tdep.o): Ditto.
1382 * remote-nrom.c: Make file obsolete.
1383 * remote-nindy.c, remote-vx960.c: Ditto.
1384 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1385 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1386 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1387 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1388 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1389 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1390 i960-*-vxworks* obsolete.
1391 * MAINTAINERS: Note that the i960 is obsolete.
1392
1393 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1394
1395 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1396 detach to allow reinitialization.
1397
1398 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1399
1400 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1401 attempt).
1402
1403 2002-08-22 Jim Blandy <jimb@redhat.com>
1404
1405 * coffread.c (coff_symfile_read): Don't try to read the line
1406 number table from disk if the image file doesn't have a symbol
1407 table; we'll never actually look at the info anyway, and Windows
1408 ships DLL's with bogus file offsets for the line number data.
1409
1410 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1411
1412 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1413 an e500 executable.
1414
1415 2002-08-21 Michael Snyder <msnyder@redhat.com>
1416
1417 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1418 (MSYMBOL_SIZE): Replace macro with function.
1419 (DEFAULT_MIPS_TYPE): Delete unused macro.
1420 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1421 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1422
1423 2002-08-21 Jim Blandy <jimb@redhat.com>
1424
1425 * valops.c (value_cast): Simplify and correct logic for doing a
1426 static cast from a pointer to a base class to a pointer to a
1427 derived class.
1428
1429 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1430
1431 * infcmd.c (default_print_registers_info): Replace
1432 do_registers_info.
1433 (registers_info): Use gdbarch_print_registers_info instead of
1434 DO_REGISTERS_INFO.
1435 * inferior.h (default_print_registers_info): Replace
1436 do_registers_info.
1437 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1438 (DO_REGISTERS_INFO): Change to a predicate function.
1439 * gdbarch.h, gdbarch.c: Regenerate.
1440
1441 2002-08-21 Keith Seitz <keiths@redhat.com>
1442
1443 * gdb-events.sh: Add target-changed event.
1444 * gdb-events.c: Regenerated.
1445 * gdb-events.c: Regenerated.
1446 * valops.c (value_assign): Add target-changed event notification
1447 to inlval_register, lval_memory, and lval_reg_frame_relative.
1448
1449 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1450
1451 * NEWS: Add an entry regarding the improvement of the next/step
1452 operation on Alpha Tru64 multi-processor machines.
1453
1454 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1455
1456 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1457 directores.
1458 * Makefile.in: Update all _h macro definitions.
1459 * Makefile.in (install-gdbtk): Move to install section.
1460 (rdi-share/libangsd.a): Move to end of file.
1461
1462 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1463
1464 * frame.c (frame_register_unwind): When a register, set addrp to
1465 the register's byte.
1466
1467 2002-08-20 Michael Snyder <msnyder@redhat.com>
1468
1469 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1470 used locally, so move them from the target machine header to here.
1471 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1472 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1473 Make static.
1474 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1475
1476 2002-08-20 Andrew Cagney <cagney@redhat.com>
1477
1478 * NEWS: Mention that the Apollo line was made obsolete.
1479 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1480 m68*-hp-hpux* obsolete.
1481 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1482 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1483 * buildsym.c (make_blockvector): Make static.
1484 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1485 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1486 (ALLDEPFILES): Remove dstread.c.
1487 (dstread.o): Obsolete make rule.
1488 * dstread.c: Makefile obsolete.
1489 * dst.h: Ditto.
1490 * config/m68k/hp300hpux.mt: Ditto.
1491 * config/m68k/hp300hpux.mh: Ditto.
1492 * config/m68k/hp300bsd.mt: Ditto.
1493 * config/m68k/hp300bsd.mh: Ditto.
1494 * config/m68k/apollo68b.mt: Ditto.
1495 * config/m68k/apollo68v.mh: Ditto.
1496 * config/m68k/apollo68b.mh: Ditto.
1497
1498 2002-08-20 Michael Snyder <msnyder@redhat.com>
1499
1500 * mips-tdep.c (mips_in_return_stub): Make static.
1501 (mips_gdbarch_init): Set in_solib_return_trampoline.
1502 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1503
1504 2002-08-20 Michael Snyder <msnyder@redhat.com>
1505
1506 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1507 * gdbarch.c, gdbarch.h: Regenerate.
1508 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1509 Add.
1510 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1511
1512 2002-08-20 Michael Snyder <msnyder@redhat.com>
1513
1514 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1515 (mips_gdbarch_init): Set skip_trampoline_code,
1516 in_solib_call_trampoline.
1517 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1518 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1519
1520 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1521
1522 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1523
1524 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1525 vector type for ev registers.
1526 (e500_pseudo_register_read): New function.
1527 (e500_pseudo_register_write): New function.
1528 (e500_dwarf2_reg_to_regnum): New function.
1529 (PPC_UISA_NOFP_SPRS): New macro.
1530 (PPC_EV_REGS): New macro.
1531 (PPC_GPRS_PSEUDO_REGS): New macro.
1532 (registers_e500): New register set for e500.
1533 (variants): Add e500 variant.
1534 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1535 before setting architectural dependent variations. Initialize ev
1536 registers numbers. Add case for e500 architecture. Set the
1537 number of pseudo registers.
1538
1539 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1540
1541 * rs6000-tdep.c: Clean up comments.
1542
1543 2002-08-20 Andrew Cagney <cagney@redhat.com>
1544
1545 * h8300-tdep.c: Re-indent file.
1546
1547 2002-08-20 Jim Blandy <jimb@redhat.com>
1548
1549 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1550 default for this.
1551
1552 2002-08-20 Keith Seitz <keiths@redhat.com>
1553
1554 * breakpoints.c (watch_command_1): Use internal breakpoint
1555 when setting a watchpoint_scope breakpoint.
1556
1557 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1558
1559 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1560 (build_builtin_type_vec64i): Ditto.
1561 (build_builtin_type_vec128): Ditto.
1562 (build_builtin_type_vec128i): Ditto.
1563
1564 2002-08-19 Michael Snyder <msnyder@redhat.com>
1565
1566 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1567 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1568 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1569 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1570 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1571 CALL_DUMMY_ADDRESS): Delete.
1572 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1573 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1574 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1575 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1576 push_return_address.
1577 (mips_register_raw_size, mips_eabi_use_struct_convention,
1578 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1579 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1580 mips_init_extra_frame_info, mips_eabi_push_arguments,
1581 mips_n32n64_push_arguments, mips_push_return_address,
1582 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1583 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1584
1585 2002-08-19 Michael Snyder <msnyder@redhat.com>
1586
1587 * mips-tdep.c (mips_frame_num_args): New function.
1588 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1589 frame_saved_pc, frame_args_address, frame_locals_address,
1590 frame_num_args, and frame_args_skip.
1591 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1592 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1593 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1594 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1595
1596 2002-08-20 Michael Snyder <msnyder@redhat.com>
1597
1598 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1599 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1600 * mips-tdep.c (mips_store_struct_return): New function.
1601 (mips_extract_struct_value_address): New function.
1602 (mips_gdbarch_init): Set store_struct_return and
1603 extract_struct_value_address.
1604
1605 2002-08-20 David Carlton <carlton@math.stanford.edu>
1606
1607 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1608 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1609 (read_file_scope): Check that line_header is nonzero before
1610 decoding macro information.
1611
1612 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1613
1614 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1615 flag the general-purpose registers as floating-point on targets
1616 that don't support the floating-point registers.
1617
1618 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1619
1620 * rs6000-tdep.c (altivec_register_p): Delete.
1621 (rs6000_do_altivec_registers): Delete.
1622 (rs6000_altivec_registers_info): Delete.
1623 (rs6000_do_registers_info): Delete.
1624 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1625 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1626
1627 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1628
1629 * infcmd.c (do_registers_info): Print vector registers in hex
1630 format only.
1631 (print_vector_info): Check that printing registers
1632 makes sense.
1633 (print_float_info): Ditto.
1634
1635 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1636
1637 * mips-tdep.c (mips_gdbarch_init): Update.
1638 (mips_o32_extract_return_value): Rewrite.
1639 (mips_o32_store_return_value): Rewrite.
1640 (mips_o32_xfer_return_value): New function.
1641 (mips_xfer_register): Tweak debug print message. Allow for
1642 buf_offset when dumping the value transfered.
1643
1644 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1645
1646 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1647 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1648 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1649 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1650 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1651
1652 2002-08-14 Michael Snyder <msnyder@redhat.com>
1653
1654 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1655
1656 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1657
1658 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1659 register.
1660 (P): New macro to define a register as a pseudo register.
1661 (R, R4, R8, R16, FR32, R64, R0): Updated.
1662 (struct variant): Add new fields for number of pseudo registers
1663 and number of total registers.
1664 (tot_num_registers): New macro replacing....
1665 (num_registers): ...deleted macro.
1666 (num_registers): New function.
1667 (num_pseudo_registers): New function.
1668 (variants): Update all variants to intialize new fields correctly.
1669 Postpone initialization of number of pseudo regs and real regs.
1670 (init_variants): New function.
1671 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1672 registers offsets.
1673
1674 2002-08-19 David Carlton <carlton@math.stanford.edu>
1675
1676 * valops.c (search_struct_field): Change error message to treat
1677 return value of 0 from value_static_field as meaning that field is
1678 optimized out.
1679 (value_struct_elt_for_reference): Ditto.
1680 * values.c (value_static_field): Treat an unresolved location the
1681 same as a nonexistent symbol. Fix PR gdb/635.
1682 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1683 enclosed. Fix PR gdb/574.
1684 * MAINTAINERS: Add self to Write After Approval list.
1685
1686 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1687
1688 * mips-tdep.c (mips_xfer_register): New function.
1689 (mips_n32n64_extract_return_value): Rewrite.
1690 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1691 instead of deprecated_extract_return_value.
1692
1693 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1694
1695 * rs6000-tdep.c (TDEP): Delete macro.
1696 (branch_dest): Replace use of TDEP macro with its body.
1697 (rs6000_pop_frame): Ditto.
1698 (rs6000_push_arguments): Ditto.
1699 (rs6000_skip_trampoline_code): Ditto.
1700 (rs6000_frame_saved_pc): Ditto.
1701 (rs6000_frame_chain): Ditto.
1702 (rs6000_register_name): Ditto.
1703 (rs6000_register_byte): Ditto.
1704 (rs6000_register_raw_size): Ditto.
1705 (rs6000_register_virtual_type): Ditto.
1706 (rs6000_register_convertible): Ditto.
1707 (rs6000_convert_from_func_ptr_addr): Ditto.
1708
1709 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1710
1711 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1712 conditionally.
1713 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1714 MIPS_LINUX_JB_ELEMENT_SIZE.
1715 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1716 for MAX_REGISTER_RAW_SIZE arrays.
1717 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1718 MIPS_LINUX_JB_ELEMENT_SIZE.
1719
1720 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1721
1722 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1723
1724 2002-08-19 Aidan Skinner <aidan@velvet.net>
1725
1726 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1727 ada-valprint.c ada-tasks.c.
1728 (YYFILES): Add ada-exp.y.
1729 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1730 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1731 (ada-exp.tab.o): New target.
1732
1733 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1734
1735 * regcache.c (regcache_xfer_part): New function.
1736 (regcache_raw_read_part): New function.
1737 (regcache_raw_write_part): New function.
1738 (regcache_cooked_read_part): New function.
1739 (regcache_cooked_write_part): New function.
1740 * regcache.h (regcache_raw_read_part): Declare.
1741 (regcache_raw_write_part): Declare.
1742 (regcache_cooked_read_part): Declare.
1743 (regcache_cooked_write_part): Declare.
1744
1745 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1746
1747 * remote.c (remote_open_1): Add async_p.
1748 (remote_async_open_1): Delete.
1749 (open_remote_target): Delete.
1750 (remote_open, extended_remote_open): Update calls to remote_open_1.
1751 (remote_async_open, extended_remote_async_open): Call
1752 remote_open_1 instead of remote_async_open_1.
1753
1754 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1755
1756 * blockframe.c: Fix a few coding standard violations.
1757
1758 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1759
1760 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1761 here from ...
1762 * config/i386/tm-i386sco5.h: ... here. File removed.
1763 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1764
1765 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1766 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1767 (TM_FILE): Set to tm-i386.h.
1768 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1769 * config/i386/tm-i386v.h: Remove file.
1770 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1771 instead of "i386/tm-i386v.h".
1772 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1773 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1774 "i386/tm-i386v.h".
1775 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1776 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1777 "i386/tm-i386.h".
1778
1779 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1780
1781 * config/i386/nm-i386v.h: Add protection against
1782 multiple-inclusion.
1783 (i386_register_u_addr): Remove prototype.
1784 (register_u_addr): New prototype.
1785 (REGISTER_U_ADDR): Redefine accordingly.
1786 * i386v-nat.c: Improve several comments.
1787 (i386_register_u_addr): Change signature and rename to
1788 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1789 ubase variable.
1790
1791 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1792
1793 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1794 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1795 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1796 deprecated_extract_return_value.
1797 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1798 rename mips_o32o64_push_arguments.
1799 (mips_gdbarch_init): Update.
1800 (mips_extract_return_value): Delete.
1801 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1802 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1803 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1804 (mips_n32n64_extract_return_value): Clone
1805 mips_extract_return_value.
1806 (mips_store_return_value): Delete.
1807 (mips_o32_store_return_value): Clone mips_store_return_value.
1808 (mips_o64_store_return_value): Clone mips_store_return_value.
1809 (mips_eabi_store_return_value): Clone mips_store_return_value.
1810 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1811
1812 2002-08-18 Aidan Skinner <aidan@velvet.net>
1813
1814 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1815 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1816
1817 2002-08-18 Aidan Skinner <aidan@velvet.net>
1818
1819 * ada-lang.c: Run through gdb_indent.sh.
1820 * ada-lang.h: Run through gdb_indent.sh.
1821 * ada-tasks.c: Run through gdb_indent.sh.
1822 * ada-typeprint.c: Run through gdb_indent.sh.
1823 * ada-valprint.c: Run through gdb_indent.sh.
1824
1825 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1826
1827 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1828 ABI.
1829
1830 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1831
1832 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1833
1834 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1835 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1836
1837 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1838 write_register_gen instead of write_register_bytes.
1839
1840 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1841 i[3456]-*-osf1mk* configurations have been made obsolete.
1842 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1843 i[3456]86-*-osf1mk* hosts obsolete.
1844 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1845 targets obsolete.
1846 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1847 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1848 config/i386/i386m3.mt, config/i386/nm-m3.h,
1849 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1850 config/i386/i386mk.mh, config/i386/i386mk.mt,
1851 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1852 obsolete.
1853 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1854 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1855 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1856
1857 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1858
1859 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1860 (hppa_value_returned_from_stack): Declare.
1861 (hppa_extract_return_value): Declare.
1862 * config/pa/hppa.mt: New file.
1863 * configure.tgt: Recognize hppa*-*-*.
1864 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1865
1866 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1867
1868 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1869 comment.
1870
1871 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1872
1873 * top.c (gdb_rl_operate_and_get_next): Make sure
1874 operate-and-get-next functions correctly even when the history
1875 list is completely filled.
1876
1877 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1878
1879 * MAINTAINERS (Target Instruction Set Architectures): Rename
1880 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1881 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1882 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1883 already listed under Host/Native.
1884
1885 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1886 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1887 mips*-*-*.
1888
1889 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1890
1891 * config/ia64/ia64.mt: New file.
1892 * config/alpha/alpha.mt: New file.
1893 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1894 ia64-linux-gnu. Mention that ia64-elf is broken.
1895 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1896
1897 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1898
1899 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1900 generic_func_frame_valid instead of func_frame_valid.
1901
1902 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1903
1904 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1905 procfs appears to be broken when debugging on multi-processor
1906 machines. So enable software single stepping in order to avoid
1907 using the procfs interface to do next/step operations, using
1908 internal breakpoints instead.
1909
1910 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1911 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1912 make this pc address equal to the value it would have if the
1913 system stepping capability was used. Also set a new flag used
1914 to ensure that we don't readjust the PC one more time later.
1915
1916 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1917 address by DECR_PC_AFTER_BREAK when software single step is
1918 in use for this architecture, as this has already been taken
1919 care of in handle_inferior_event().
1920
1921 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1922
1923 * infrun.c (handle_inferior_event): Minor reformatting, to make
1924 a rather long condition expression easier to read.
1925
1926 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1927
1928 * Makefile.in (gdbtk.o): Move to end of file.
1929 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1930 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1931 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1932 (gdbtk-wrapper.o, gdbres.o): Ditto.
1933
1934 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1935
1936 * Makefile.in (copying.o): Separate out compile rule.
1937 (hpux-thread.o, procfs.o, signals.o): Ditto.
1938 (v850ice.o, z8k-tdep.o): Ditto.
1939 (tui-file.o): Move to TUI section.
1940 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1941 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1942
1943 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1944
1945 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1946 skip_trampoline_code, for better namespace-proofing.
1947
1948 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1949
1950 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1951
1952 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1953
1954 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1955
1956 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1957 signal, check whether we hit a breakpoint before checking for a
1958 single step breakpoint. Otherwise, GDB fails to notice that a
1959 breakpoint has been hit when stepping onto a breakpoint.
1960
1961 2002-08-16 Keith Seitz <keiths@redhat.com>
1962
1963 * gdb-events.sh (clear_gdb_event_hooks): New function.
1964 * gdb-events.c: Regenerate.
1965 * gdb-events.h: Regenerate.
1966
1967 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1968
1969 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1970 not_a_sw_breakpoint.
1971 * breakpoint.h (bpstat_stop_status): Add parameter names.
1972
1973 2002-08-16 Grace Sainsbury <graces@redhat.com>
1974
1975 * remote.c (remote_insert_hw_breakpoint)
1976 (remote_remove_hw_breakpoint): Fix calculation of length field
1977 for Z-packet.
1978
1979 2002-08-15 Michael Snyder <msnyder@redhat.com>
1980
1981 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1982 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1983 (supply_fpregset): Ditto.
1984
1985 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1986 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1987 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1988 (TARGET_READ_SP): Delete.
1989 (DO_REGISTERS_INFO): Delete.
1990 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1991 Delete.
1992 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1993 from macros to functions.
1994
1995 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1996 (mips_register_convertible, mips_register_convert_to_virtual,
1997 mips_register_convert_to_raw): Make static.
1998 (mips_read_sp): New function.
1999 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2000 (mips_do_registers_info): Make static.
2001 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2002 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2003 (mips_register_convert_from_type, mips_register_convert_to_type):
2004 New functions.
2005 (mips_gdbarch_init): Set up function_start_offset,
2006 register_virtual_size, pc_in_sigtramp.
2007
2008 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2009
2010 * infcmd.c (vector_info): New function.
2011 (_initialize_infcmd): Add command "info vector".
2012 (print_vector_info): New function.
2013
2014 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2015 * gdbarch.h, gdbarch.c: Regenerate.
2016
2017 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2018
2019 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2020 ``print_all''. Only print vector registers when ``print_all''.
2021
2022 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2023
2024 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2025 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2026
2027 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2028 Add `args' parameter.
2029 * gdbarch.h, gdbarch.c: Regenerate.
2030
2031 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2032
2033 * infcmd.c (float_info): Call print_float_info.
2034 (print_float_info): New function. By default, print the
2035 floating-point registers.
2036
2037 * arch-utils.h (default_print_float_info): Delete declaration.
2038 * arch-utils.c (default_print_float_info): Delete function.
2039
2040 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2041
2042 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2043 out define.
2044
2045 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2046 FRAME.
2047
2048 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2049 * configure.host: Make i[3456]86-*-aix host obsolete.
2050 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2051 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2052 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2053 config/i386/xm-i386aix.h: Make files obsolete.
2054 * i386aix-nat.c: Make file obsolete.
2055 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2056 (i386aix-nat.o): Make target obsolete.
2057
2058 * config/i386/nm-gnu.h: Removed.
2059 * config/i386/nm-i386gnu.h: New file.
2060 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2061 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2062 Moved here from ...
2063 * config/i386/tm-i386gnu.h: ... here. Removed.
2064 * config/i386/xm-i386gnu.h: Removed.
2065 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2066 (NAT_FILE): Set to nm-i386gnu.h.
2067 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2068 * i386-tdep.c: New file.
2069 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2070 (i386gnu-tdep.o): Specify dependencies.
2071
2072 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2073
2074 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2075 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2076 Adjust a few comments to reflect reality a bit closer.
2077 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2078 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2079 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2080 target_insert_watchpoint, target_remove_watchpoint):
2081 Move defines to ...
2082 * config/i386/nm-i386sco5.h: ... here.
2083 (kernel_u_size): Add prototype. Improve a few comments and add
2084 protection against multiple inclusion.
2085
2086 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2087 out define.
2088
2089 * uw-thread.c (SP_ARG0): Define if not already defined.
2090 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2091
2092 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2093
2094 * config/i386/tm-i386.h: Don't include "regcache.h".
2095
2096 * i387-tdep.h (i387_print_float_info): New prototype.
2097 * i387-tdep.c (print_i387_value, print_i387_ext,
2098 print_i387_status_word, print_i387_control_word): Add `struct
2099 ui_file *' argument and use it for output.
2100 (i387_print_float_info): Renamed from i387_float_info. Add
2101 `struct gdbarch *' and `struct ui_file *' arguments and use the
2102 latter for output.
2103 * i386-tdep.c: Include "i387-tdep.h".
2104 (i386_gdbarch_init): Set print_float_info.
2105 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2106 (FLOAT_INFO): Remove define.
2107
2108 2002-08-13 Michael Snyder <msnyder@redhat.com>
2109
2110 * mips-tdep.c (mips_push_arguments): Rename to
2111 mips_eabi_push_arguments, and tune for EABI.
2112 (MIPS_REGS_HAVE_HOME_P): Delete.
2113 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2114 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2115 Delete references to mips_regs_have_home_p.
2116
2117 2002-08-14 Keith Seitz <keiths@redhat.com>
2118
2119 * Makefile.in (install-gdbtk): Create insight plugin directory.
2120 Install plugins.tcl file.
2121
2122 2002-08-14 Keith Seitz <keiths@redhat.com>
2123
2124 * configure.in: Move SUBDIRS to near top of the file so that
2125 --enable options may add things to it.
2126 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2127 * configure: Regenerate.
2128
2129 2002-08-13 Michael Snyder <msnyder@redhat.com>
2130
2131 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2132 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2133 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2134
2135 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2136
2137 * vax-tdep.c (vax_get_saved_register): Delete function.
2138 (vax_gdbarch_init): Update.
2139 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2140 (ns32k_gdbarch_init): Update.
2141 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2142 (alpha_gdbarch_init): Update.
2143
2144 2002-08-13 Andrew Cagney <cagney@redhat.com>
2145
2146 * regcache.c (init_regcache_descr): Overallocate the
2147 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2148 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2149 nr_raw_registers.
2150 (set_register_cached): Add range checking assertions. Use
2151 current_regcache.
2152
2153 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2154
2155 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2156 numbers for MMX registers.
2157
2158 2002-08-13 Andrew Cagney <cagney@redhat.com>
2159
2160 * i386-tdep.c (i386_gdbarch_init): Use
2161 generic_unwind_get_saved_register.
2162
2163 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2164
2165 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2166 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2167 target vector.
2168 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2169 Delete. Add comment regarding this now-deleted target method.
2170
2171 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2172
2173 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2174 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2175 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2176 real PC and the page number (if it's within the memory bank window).
2177 (m68hc11_pseudo_register_write): Likewise when saving.
2178 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2179 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2180 (m68hc11_register_raw_size): And use 32-bit for it.
2181 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2182 16K memory bank is used by the prog; also use the virtual pc.
2183
2184 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2185
2186 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2187 (m68hc11_gdbarch_init): Install it in gdbarch.
2188 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2189 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2190 (MSYMBOL_SIZE): New for documentation.
2191 (insn_return_kind): Enum to specify how a function returns.
2192 (frame_extra_info): Cleanup and record the return mode.
2193 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2194 register in address computation.
2195 (m68hc11_get_return_insn): New to obtain the return instruction used
2196 by the function.
2197 (m68hc11_frame_init_saved_regs): Take into account the return
2198 instruction used by the function for far and interrupt functions.
2199 (m68hc11_init_extra_frame_info): Take into account page register.
2200 (m68hc11_frame_args_address): Adjust according to the return mode.
2201 (show_regs): Print page register only when it's used.
2202
2203 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2204
2205 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2206 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2207 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2208 registers.
2209 (m68hc11_register_raw_size): Likewise.
2210
2211 2002-08-13 Andrew Cagney <cagney@redhat.com>
2212
2213 * i386-tdep.c (i386_register_name): Handle mmx registers.
2214 (mmx_regnum_p): New function.
2215 (i386_mmx_names): New array.
2216 (mmx_num_regs): New variable.
2217 (i386_pseudo_register_read): New function.
2218 (i386_pseudo_register_write): New function.
2219 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2220
2221 * regcache.c (regcache_raw_read_unsigned): New function.
2222 (regcache_raw_read_signed): New function.
2223 * regcache.h (regcache_raw_read_unsigned): Declare.
2224 (regcache_raw_read_signed): Declare.
2225
2226 2002-08-13 Andrew Cagney <cagney@redhat.com>
2227
2228 * regcache.c (regcache_raw_read_as_address): Delete function.
2229 (regcache_cooked_read_signed): New function.
2230 (regcache_cooked_read_unsigned): New function.
2231 * regcache.h (regcache_cooked_read_signed): Declare.
2232 (regcache_cooked_read_unsigned): Declare.
2233 (regcache_raw_read_as_address): Delete declaration.
2234
2235 * blockframe.c (generic_read_register_dummy): Use
2236 regcache_cooked_read_unsigned.
2237 * i386-tdep.c (i386_extract_struct_value_address): Use
2238 regcache_cooked_read_unsigned.
2239
2240 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2241
2242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2243 double sizes according to ELF ABI flags.
2244 (gdbarch_tdep): Record elf_flags.
2245
2246 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2247
2248 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2249 (m6812_prolog): They can appear in 68HC12 function prologue.
2250 (m68hc11_frame_chain): Cleanup.
2251
2252 2002-08-12 Andrew Cagney <cagney@redhat.com>
2253
2254 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2255 declarations.
2256 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2257 (i386_linux_register_raw_size): Delete function.
2258 (i386_linux_init_abi): Update.
2259 * i386-tdep.c (i386_register_raw_size): Delete function.
2260 (i386_register_byte): Delete function.
2261 (i386_gdbarch_init): Update.
2262 (i386_register_size): Delete array.
2263 (i386_register_offset): Delete array.
2264
2265 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2266 (REGISTER_RAW_SIZE): Delete macro.
2267 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2268 (REGISTER_BYTE): Delete macro.
2269
2270 2002-08-11 Aidan Skinner <aidan@velvet.net>
2271
2272 * ada-lang.c (ada_lookup_partial_symbol)
2273 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2274 prototype names so that grep ^func works properly.
2275
2276 * ada-lang.c (ada_array_element_type)
2277 (ada_lookup_partial_symbol): Fix typos in parameter list.
2278
2279 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2280 Fix prototype names so that grep ^func works properly.
2281
2282 2002-08-10 Andrew Cagney <cagney@redhat.com>
2283 Elena Zannoni <ezannoni@redhat.com>
2284 Martin M. Hunt <hunt@redhat.com>
2285
2286 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2287 (build_builtin_type_vec128i): Set the vector bit.
2288 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2289 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2290 (build_builtin_type_vec64): New function.
2291 (build_builtin_type_vec64i): New function.
2292 (build_gdbtypes): Initialize builtin_type_vec64 and
2293 builtin_type_vec64i.
2294
2295 2002-08-09 Andrew Cagney <cagney@redhat.com>
2296
2297 * regcache.c (regcache_dump): Compare the register offset
2298 with REGISTER_BYTE.
2299 * arch-utils.c (generic_register_byte): New function.
2300 * arch-utils.h (generic_register_byte): Declare.
2301 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2302 * gdbarch.h, gdbarch.c: Regenerate.
2303
2304 2002-08-09 Andrew Cagney <cagney@redhat.com>
2305
2306 * regcache.c: Include "gdbcmd.h"
2307 (_initialize_regcache): Add commands "maintenance print
2308 registers", "maintenance print raw-registers" and "maintenance
2309 print cooked-registers".
2310 (enum regcache_dump_what): Define.
2311 (dump_endian_bytes): New function.
2312 (regcache_dump): New function.
2313 (regcache_print): New function.
2314 (maintenance_print_registers): New function.
2315 (maintenance_print_raw_registers): New function.
2316 (maintenance_print_cooked_registers): New function.
2317 * Makefile.in (regcache.o): Update dependencies.
2318
2319 2002-08-09 Michael Snyder <msnyder@redhat.com>
2320
2321 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2322 (mips_push_arguments): Correct some comments. Use paddr_nz
2323 for printing addresses in debug output. Replace static
2324 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2325 (mips_n32n64_push_arguments): New function, cloned from
2326 mips_push_arguments and tuned for the n32/n64 ABI.
2327 (mips_push_register): Buffer needs dynamic allocation.
2328 (mips_print_register): Ditto.
2329 (do_gp_register_row): Ditto.
2330 (mips_store_return_value): Ditto.
2331 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2332
2333 2002-08-09 Don Howard <dhoward@redhat.com>
2334
2335 * memattr.c (mem_info_command): Print special case of upper bound
2336 as max CORE_ADDR + 1.
2337
2338 2002-08-08 Michael Snyder <msnyder@redhat.com>
2339
2340 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2341 returns structs by ref if they're too big to fit in two registers.
2342
2343 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2344
2345 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2346 saved regs value.
2347 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2348 mips_find_saved_regs().
2349 (mips_pop_frame): Likewise.
2350
2351 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2352
2353 * blockframe.c (frame_saved_regs_register_unwind): Revise
2354 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2355 frames are in use.
2356
2357 2002-08-09 Grace Sainsbury <graces@redhat.com>
2358
2359 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2360 T-packets; the 'a' is not taken as a register number.
2361 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2362 (remote_stopped_data_address): New functions; add to target
2363 vector.
2364 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2365 prototypes to match other implementations of this
2366 function. replace integer argument with pointer -- the length
2367 field in the Z-packet is the length of what is pointed to or 1 if
2368 pointer is null. Add to target vector.
2369 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2370 target vector.
2371
2372 From Mark Salter:
2373 * remote.c (remote_wait): Add support to extract optional
2374 watchpoint information from T-packet. Ignore unrecognized
2375 optional info in T-packet.
2376 (remote_async_wait): Ditto.
2377
2378 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2379
2380 * cli/cli-dump.c: Change fopen modes to use binary open modes
2381 as defined in include/fopen-bin.h throughout.
2382
2383 2002-08-08 Michael Snyder <msnyder@redhat.com>
2384
2385 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2386
2387 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2388
2389 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2390 assertion failure by returning early after a warning.
2391
2392 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2393
2394 * mips-tdep.c (mips_find_saved_regs): Make static.
2395 (mips_frame_init_saved_regs): New function.
2396 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2397 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2398 (mips_find_saved_regs): Delete declaration.
2399
2400 2002-08-08 Grace Sainsbury <graces@redhat.com>
2401
2402 * remote.c (remote_wait, remote_async_wait): Change
2403 thread_num from int to ULONGEST.
2404 (unpack_varlen_hex): Change result parameter from
2405 int * to ULONGEST *.
2406
2407 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2408
2409 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2410 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2411 powerpc*-*-*.
2412 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2413
2414 2002-08-08 Andrew Cagney <cagney@redhat.com>
2415
2416 * gcore.c (override_derive_stack_segment): Delete variable.
2417 (preempt_derive_stack_segment): Delete function.
2418 (derive_stack_segment): Delete function.
2419 (default_derive_stack_segment): Renamed to derive_stack_segment.
2420 (override_derive_heap_segment): Delete variable.
2421 (preempt_derive_heap_segment): Delete function.
2422 (derive_heap_segment): Delete function.
2423 (default_derive_heap_segment): Rename to derive_heap_segment.
2424
2425 2002-08-06 Michael Snyder <msnyder@redhat.com>
2426
2427 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2428 * mips-tdep.c (mips_EABI_use_struct_convention,
2429 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2430 New functions. (mips_use_struct_convention): Delete.
2431 (mips_gdbarch_init): set use_gdbarch_convention.
2432
2433 2002-08-06 Michael Snyder <msnyder@redhat.com>
2434
2435 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2436 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2437 mips_o32_reg_struct_has_addr): New functions.
2438 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2439
2440 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2441
2442 * regcache.c (pseudo_register): Delete function.
2443 (fetch_register): Delete function.
2444 (store_register): Delete function.
2445 (regcache_raw_read, legacy_read_register_gen): Use
2446 target_fetch_registers instead of fetch_register.
2447 (legacy_write_register_gen, regcache_raw_write): Use
2448 target_store_register instead of store_register.
2449 (write_register_bytes): Ditto.
2450
2451 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2452 (STORE_PSEUDO_REGISTER): Delete.
2453 * gdbarch.h, gdbarch.c: Regenerate.
2454
2455 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2456
2457 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2458 write dump file binary.
2459
2460 2002-08-05 Michael Snyder <msnyder@redhat.com>
2461
2462 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2463 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2464 (mips_gdbarch_init): Set N32 target to be mips64.
2465
2466 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2467
2468 * frame.c (find_saved_register): Break out of loop once saved
2469 register address is found. Don't mention sparc in loop comment
2470 anymore.
2471
2472 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2473
2474 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2475 mips_default_saved_regsize to 8.
2476
2477 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2478
2479 * gcore.c: Do not include <sys/procfs.h>.
2480 * Makefile.in (gcore.o): Update dependencies.
2481
2482 2002-08-06 Andrew Cagney <cagney@redhat.com>
2483
2484 * configure.tgt: Make arc-*-* obsolete.
2485 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2486 * MAINTAINERS: Make arc-elf obsolete.
2487 * arc-tdep.c: Make file obsolete.
2488 * config/arc/arc.mt: Ditto.
2489 * config/arc/tm-arc.h: Ditto.
2490
2491 2002-08-05 Theodore A. Roth <troth@verinet.com>
2492
2493 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2494
2495 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2496
2497 * mcore-tdep.c (mcore_gdbarch_init): Use
2498 generic_unwind_get_saved_register instead of
2499 generic_get_saved_register.
2500 * v850-tdep.c (v850_gdbarch_init): Ditto.
2501 * frv-tdep.c (frv_gdbarch_init): Ditto.
2502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2503 * s390-tdep.c (s390_gdbarch_init): Ditto.
2504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2505 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2506 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2507
2508 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2509
2510 * objfiles.h: Add missing #include "symfile.h"
2511
2512 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2513
2514 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2515
2516 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2517 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2518 of FIELD_BITSIZE.
2519
2520 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2521
2522 * NEWS: Cleanup and nitpick.
2523
2524 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2525
2526 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2527
2528 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2529
2530 * Makefile.in (gdbtk-bp.o): Update dependencies.
2531 (gdbtk-register.o): Ditto.
2532 (gdbtk-varobj.o): Ditto.
2533
2534 2002-08-03 Andrew Cagney <cagney@redhat.com>
2535
2536 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2537 m68hc11_fetch_pseudo_register.
2538 (m68hc11_pseudo_register_write): Replace
2539 m68hc11_store_pseudo_register.
2540 (m68hc11_gdbarch_init): Update.
2541
2542 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2543
2544 * gdbarch.sh: Include "gdb_string.h".
2545 * gdbarch.c: Regenerate.
2546
2547 * regcache.c: Include "gdb_string.h".
2548 * ax-general.c: Ditto.
2549 * varobj.c: Ditto.
2550 * std-regs.c: Ditto.
2551 * fbsd-proc.c: Ditto.
2552 * thread.c: Ditto.
2553
2554 * Makefile.in (regcache.o): Update dependencies.
2555 (thread.o, gdbarch.o): Ditto.
2556 (ax-general.o, gdbarch.o): Ditto.
2557 (varobj.o, std-regs.o): Ditto.
2558 (fbsd-proc.o): Specify dependencies.
2559
2560 2002-08-02 Andrew Cagney <cagney@redhat.com>
2561
2562 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2563 regnum.
2564 (regcache_cooked_write): Ditto.
2565
2566 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2567
2568 * regcache.c (regcache_cooked_read): New function.
2569 (regcache_cooked_write): New function.
2570 (read_register_gen): Rewrite using regcache_cooked_read.
2571 (write_register_gen): Rewrite using regcache_cooked_write.
2572
2573 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2574 Declare.
2575
2576 2002-08-02 Andrew Cagney <cagney@redhat.com>
2577
2578 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2579 Replace the architecture methods register_read and register_write.
2580 * gdbarch.h, gdbarch.c: Regenerate.
2581 * regcache.c (init_regcache_descr): Update.
2582 (read_register_gen): Update.
2583 (write_register_gen): Update.
2584 (supply_register): Update comment.
2585
2586 * sh-tdep.c (sh_gdbarch_init): Update.
2587 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2588 `regcache' and `gdbarch' parameters. Make `buffer' a void
2589 pointer. Update code.
2590 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2591 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2592 void pointer. Update code.
2593 (sh64_register_write): Delete.
2594 (sh4_register_read): Delete.
2595 (sh64_register_read): Delete.
2596 (sh4_register_write): Delete.
2597 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2598 void pointer, `to' parameter a void pointer.
2599 (sh_sh64_register_convert_to_raw): Ditto.
2600
2601 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2602
2603 * mips-tdep.c (mips_register_virtual_type): Use architecture
2604 invariant return values.
2605
2606 2002-08-01 Andrew Cagney <cagney@redhat.com>
2607
2608 * linux-proc.c: Include "gdb_string.h".
2609 * Makefile.in (linux-proc.o): Update dependency list.
2610
2611 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2612
2613 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2614 comment.
2615
2616 2002-08-01 Grace Sainsbury <graces@redhat.com>
2617
2618 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2619 to_insert_watchpoint, to_remove_watchpoint,
2620 to_stopped_by_watchpoint, to_stopped_data_address,
2621 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2622 target vecctor. Define their corresponding macros so they call
2623 them.
2624
2625 * target.c: Add default and debug versions of for
2626 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2627 to_insert_watchpoint, to_remove_watchpoint,
2628 to_stopped_by_watchpoint, to_stopped_data_address,
2629 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2630
2631 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2632
2633 * mips-tdep.c (mips_register_virtual_type): New function.
2634 (mips_gdbarch_init): Register mips_register_virtual_type()
2635 with gdbarch machinery.
2636 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2637 this file instead of tm-bigmips.h.
2638 (MIPS_REGSIZE): Delete this macro.
2639 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2640 multiarch version in mips-tdep.c will be found.
2641
2642 2002-08-01 Andrew Cagney <cagney@redhat.com>
2643
2644 * NEWS: Menion that CHILL has been made obsolete.
2645
2646 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2647 * stabsread.c (read_range_type): Ditto.
2648 * gdbtypes.h: Ditto.
2649 * language.c (binop_type_check): Ditto.
2650 (binop_result_type): Ditto.
2651 (integral_type): Ditto.
2652 (character_type): Ditto.
2653 (string_type): Ditto.
2654 (boolean_type): Ditto.
2655 (structured_type): Ditto.
2656 (lang_bool_type): Ditto.
2657 (binop_type_check): Ditto.
2658 * language.h (_LANG_chill): Ditto.
2659 * dwarfread.c (set_cu_language): Ditto.
2660 * dwarfread.c (CHILL_PRODUCER): Ditto.
2661 * dwarfread.c (handle_producer): Ditto.
2662 * expression.h (enum exp_opcode): Ditto.
2663 * eval.c: Ditto for comments.
2664 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2665 * expprint.c (print_subexp): Ditto.
2666 (print_subexp): Ditto.
2667 * valops.c (value_cast): Ditto.
2668 (search_struct_field): Ditto.
2669 * value.h (COERCE_VARYING_ARRAY): Ditto.
2670 * symfile.c (init_filename_language_table): Ditto.
2671 (add_psymbol_with_dem_name_to_list): Ditto.
2672 * valarith.c (value_binop): Ditto.
2673 (value_neg): Ditto.
2674 * valops.c (value_slice): Ditto.
2675 * symtab.h (union language_specific): Ditto.
2676 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2677 (SYMBOL_DEMANGLED_NAME): Ditto.
2678 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2679 * defs.h (enum language): Ditto.
2680 * symtab.c (got_symtab): Ditto.
2681 * utils.c (fprintf_symbol_filtered): Ditto.
2682
2683 * ch-typeprint.c: Make file obsolete.
2684 * ch-valprint.c: Make file obsolete.
2685 * ch-lang.h: Make file obsolete.
2686 * ch-exp.c: Make file obsolete.
2687 * ch-lang.c: Make file obsolete.
2688
2689 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2690 CHILL_LIB.
2691 (TARGET_FLAGS_TO_PASS): Ditto.
2692 (CHILLFLAGS): Obsolete.
2693 (CHILL): Obsolete.
2694 (CHILL_FOR_TARGET): Obsolete.
2695 (CHILL_LIB): Obsolete.
2696 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2697 ch-valprint.c.
2698 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2699 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2700 ch-lang.o.
2701 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2702 targets.
2703
2704 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2705
2706 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2707 This does not change anything at the moment, but will be helpful
2708 later when full Ada support is integrated.
2709
2710 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2711
2712 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2713 help message.
2714
2715 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2716
2717 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2718 and save it in a local variable. Use variable in later test.
2719
2720 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2721
2722 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2723 test. (Thanks to Daniel Jacobowitz.)
2724
2725 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2726
2727 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2728 (mips_abi_strings): Add "n64".
2729 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2730
2731 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2732
2733 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2734 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2735
2736 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2737
2738 * utils.c (host_pointer_to_address, address_to_host_pointer):
2739 Use gdb_assert() instead of explicit call to internal_error().
2740
2741 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2742
2743 * Makefile.in (rs6000-nat.o): Update dependencies.
2744
2745 From Nicholas Duffek:
2746 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2747 (aix-thread.o): New rule.
2748 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2749 * config/powerpc/aix432.mh: New file.
2750
2751 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2752
2753 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2754 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2755 (fetch_core_registers, ppc_linux_supply_gregset)
2756 (ppc_linux_supply_fpregset): New functions.
2757 (ppc_linux_regset_core_fns): New.
2758 (_initialize_ppc_linux_tdep): Call add_core_fns.
2759 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2760 and ppc_linux_supply_gregset.
2761 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2762 (supply_fpregset): Call ppc_linux_supply_fpregset.
2763 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2764 corelow.o.
2765 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2766
2767 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2768
2769 * symtab.c (lookup_symbol): Demangle before lowercasing.
2770
2771 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2772
2773 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2774 declaration.
2775 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2776 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2777 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2778 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2779 "gdb_string.h".
2780 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2781 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2782 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2783 (avr-tdep.o, mon960-rom.o): Ditto.
2784 (aout_stabs_gnu_h): Define.
2785 (symtab_h): Remove $(gdb_obstack_h).
2786
2787 2002-07-30 Jim Blandy <jimb@redhat.com>
2788
2789 Patch from David Carlton <carlton@math.stanford.edu>:
2790 * gdbinit.in: Move the `dir' commands that add GDB's own source
2791 directory to the search path to the end, so that the `gdb' source
2792 directory will be searched first.
2793
2794 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2795
2796 * gdb_obstack.h: New file.
2797 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2798 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2799 * objfiles.h: Include "gdb_obstack.h".
2800 * Makefile.in (gdb_obstack_h): Define.
2801 (symtab_h): Add $(gdb_obstack_h).
2802 (objfiles_h): Add $(gdb_obstack_h).
2803
2804 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2805 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2806 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2807 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2808 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2809 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2810 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2811 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2812
2813 * Makefile.in (bcache.o): Update dependencies.
2814 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2815 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2816 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2817 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2818 (stabsread.o, symfile.o, symmisc.o): Ditto.
2819 (symtab.o, typeprint.o, macroexp.o): Ditto.
2820 (macrotab.o, mdebugread.o): Ditto.
2821 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2822 (coff_ecoff_h, aout_aout64_h): Define.
2823 (aout_stabs_gnu_h, libaout_h): Define.
2824
2825 2002-07-29 Andrew Cagney <cagney@redhat.com>
2826
2827 * regcache.c (struct regcache_descr): Rename nr_registers to
2828 nr_cooked_registers. Revise comments describing the structure
2829 member fields.
2830 (init_regcache_descr): Update.
2831 (init_legacy_regcache_descr): Update.
2832 (read_register_gen, write_register_gen): When a cooked register in
2833 the raw register range, directly access the value from the raw
2834 register cache.
2835
2836 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2837
2838 * z8k-tdep.c: Do not include "obstack.h".
2839 * h8300-tdep.c, h8500-tdep.c: Ditto.
2840 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2841 * valprint.c, v850-tdep.c: Ditto.
2842 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2843 * mn10200-tdep.c: Ditto.
2844
2845 * Makefile.in (z8k-tdep.o): Update dependencies.
2846 (m68hc11-tdep.o, valprint.o): Ditto.
2847 (v850-tdep.o, d10v-tdep.o): Ditto.
2848 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2849 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2850 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2851 (sh_opc_h, gdb_sim_sh_h): Define.
2852 (elf_sh_h, elf_bfd_h): Define.
2853 (opcode_m68hc11_h): Define.
2854 (OPCODES_SRC, OPCODES_DIR): define.
2855 (OPCODES): Use $(OPCODES_DIR).
2856 (gdb_sim_d10v_h): Rename sim_d10v_h.
2857 (gdb_sim_arm_h): Rename sim_arm_h.
2858
2859 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2860
2861 * utils.c (host_pointer_to_address, address_to_host_pointer):
2862 Change internal_error() message to indicate function responsible
2863 for the error.
2864
2865 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2866
2867 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2868 calls to local_hex_string_custom().
2869
2870 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2871
2872 * irix5-nat.c: Move IRIX shared library support from here...
2873 * solib-irix.c: ...to here. Revised substantially to work with
2874 generic solib framework.
2875
2876 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2877 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2878 * mips-irix-tdep.c: New file.
2879
2880 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2881 (mips-irix-tdep.o, solib-irix.o): New rules.
2882 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2883 solib-irix.o.
2884 * config/mips/irix6.mt (TDEPFILES): Likewise.
2885 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2886
2887 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2888
2889 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2890 disabled (via ``#if 0'') includes.
2891
2892 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2893
2894 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2895 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2896 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2897 Add support for the fpscr register.
2898 * rs6000-nat.c (regmap, fetch_inferior_registers)
2899 (store_inferior_registers, fetch_core_registers): Likewise.
2900
2901 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2902
2903 * rs6000-nat.c (language.h): Include.
2904 (special_regs): Delete this array.
2905 (regmap): New function.
2906 (fetch_register, store_register): Use regmap() to map gdb
2907 register numbers to ptrace register numbers. Also, use
2908 outputs from regmap() to make decisions regarding type of
2909 ptrace() call to make. In particular, don't compare against
2910 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2911 (fetch_inferior_registers, store_inferior_registers): Where
2912 possible, obtain register numbers from tdep struct. Don't
2913 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2914 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2915 (LAST_UISA_SP_REGNUM): Delete.
2916
2917 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2918
2919 * rs6000-nat.c (ppc-tdep.h): Include.
2920 (fetch_registers, store_register, fetch_core_registers): Don't
2921 access registers[] directly. Instead, use supply_register() or
2922 regcache_collect() as appropriate.
2923 (find_toc_address): Format hex address with local_hex_string().
2924
2925 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2926
2927 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2928 bfd/elf32-frv.c.
2929
2930 2002-07-24 Tom Tromey <tromey@redhat.com>
2931
2932 * jv-exp.y: Marked all strings with _().
2933 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2934 internal_error.
2935 (MethodInvocation, CastExpression, parse_number, yyerror,
2936 java_type_from_name, push_expression_name, yylex): Typo fixes.
2937
2938 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2939
2940 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2941 (tee_file_flush, tee_file_write, tee_file_fputs)
2942 (tee_file_isatty): New.
2943 * ui-file.h (tee_file_new): Add prototype.
2944
2945 2002-07-24 Aidan Skinner <aidan@velvet.net>
2946
2947 * ada-lang.c: Change k&r style function definitions to prototyped
2948 form.
2949 * ada-typeprint.c: Change k&r style function definitions to prototyped
2950 form.
2951 * ada-valprint.c: Change k&r style function definitions to prototyped
2952 form.
2953
2954 2002-07-24 Andrew Cagney <cagney@redhat.com>
2955
2956 * README: Remove reference to remote-bug.
2957 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2958 remote-bug.c.
2959 (m88k-nat.o): Delete rule.
2960 (m88k-tdep.o): Delete rule.
2961 (remote-bug.o): Delete rule.
2962 * MAINTAINERS: Mark as obsolete.
2963 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2964 * m88k-tdep.c: Make file obsolete.
2965 * config/m88k/m88k.mh: Ditto.
2966 * config/m88k/delta88v4.mh: Ditto.
2967 * config/m88k/delta88v4.mt: Ditto.
2968 * config/m88k/delta88.mt: Ditto.
2969 * config/m88k/delta88.mh: Ditto.
2970 * remote-bug.c: Ditto.
2971 * config/m88k/tm-delta88.h: Ditto.
2972 * config/m88k/nm-delta88v4.h: Ditto.
2973 * config/m88k/xm-delta88.h: Ditto.
2974 * config/m88k/xm-dgux.h: Ditto.
2975 * config/m88k/tm-m88k.h: Ditto.
2976 * config/m88k/nm-m88k.h: Ditto.
2977 * config/m88k/tm-delta88v4.h: Ditto.
2978 * m88k-nat.c: Ditto.
2979 * cxux-nat.c: Ditto.
2980 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2981 and m88*-*-* obsolete.
2982 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2983 m88*-*-* obsolete.
2984
2985 2002-07-24 Andrew Cagney <cagney@redhat.com>
2986
2987 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2988 constant. Same for local pointer variables.
2989 (extract_signed_integer): Ditto.
2990 * defs.h (extract_unsigned_integer): Update.
2991 (extract_signed_integer): Update.
2992
2993 2002-07-24 Andrew Cagney <cagney@redhat.com>
2994
2995 * regcache.c (regcache_raw_write): Change buf parameter to a
2996 constant void pointer.
2997 (regcache_raw_read): Change buf parameter to a void pointer.
2998 (legacy_write_register_gen): Change myaddr parameter a constant
2999 void pointer.
3000 (supply_register): Change val parameter to a const void pointer.
3001 * regcache.h (regcache_raw_write): Update declaration.
3002 (regcache_raw_read): Update declaration.
3003 (supply_register): Update declaration.
3004
3005 2002-07-24 Tom Tromey <tromey@redhat.com>
3006
3007 * defs.h (gdb_readline_wrapper): Declare.
3008 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3009 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3010 * top.c (gdb_readline_wrapper): New function.
3011 (command_line_input): Use it.
3012
3013 2002-07-24 Andrew Cagney <cagney@redhat.com>
3014
3015 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3016 regcache_read and regcache_write.
3017 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3018 * regcache.c: Update.
3019 * sh-tdep.c (sh64_push_arguments): Update comment.
3020 (sh_pseudo_register_read): Update.
3021 (sh_pseudo_register_write): Update.
3022 (sh4_register_read): Update.
3023 (sh4_register_write): Update.
3024 (sh64_pseudo_register_read): Update.
3025 (sh64_pseudo_register_write): Update.
3026 (sh64_register_read): Update.
3027 (sh64_register_write): Update.
3028 * i386-tdep.c (i386_extract_return_value): Update.
3029 (i386_extract_struct_value_address): Update.
3030 (i386_extract_return_value): Update.
3031 * blockframe.c (generic_read_register_dummy): Update.
3032 (generic_call_dummy_register_unwind): Update
3033 * infrun.c (write_inferior_status_register): Update.
3034
3035 2002-07-23 Jim Blandy <jimb@redhat.com>
3036
3037 * parser-defs.h (expression_context_pc): Make this extern.
3038 (Thanks to Michael Snyder.)
3039
3040 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3041
3042 GDB 5.2.1 released from 5.2 branch.
3043 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3044 * README: Update to mention 5.2.1.
3045
3046 2002-07-23 Mark Salter <msalter@redhat.com>
3047
3048 * remote.c (remote_read_bytes): Fix check for error.
3049
3050 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3051
3052 * aix-thread.c (language.h): Include.
3053 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3054 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3055 Print newlines at end of debug messages.
3056 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3057 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3058
3059 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3060
3061 * aix-thread.c (ppc-tdep.h): Include.
3062 (special_register_p): New function.
3063 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3064 (store_regs_user_thread): Use register number information from
3065 gdbarch_tdep struct instead of hardcoded offsets relative to
3066 FIRST_UISA_SP_REGNUM.
3067 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3068 special_register_p() instead of using FPLAST_REGNUM and
3069 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3070 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3071 will be MQ's register number.
3072
3073 2002-07-22 Michael Snyder <msnyder@redhat.com>
3074
3075 * aix-thread.c (ops): Rename to aix_thread_ops.
3076 (base_ops): Rename to base_target.
3077 (ops_attach): Rename to aix_thread_attach.
3078 (ops_detach): Rename to aix_thread_detach.
3079 (ops_resume): Rename to aix_thread_detach.
3080 (ops_wait): Rename to aix_thread_wait.
3081 (ops_kill): Rename to aix_thread_kill.
3082 (init_ops): Rename to init_aix_thread_ops.
3083 (ops_fetch_register): Rename to aix_thread_fetch_register.
3084 (ops_store_register): Rename to aix_thread_store_register.
3085 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3086 (ops_thread_alive): Rename to aix_thread_thread_alive.
3087 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3088 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3089 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3090 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3091 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3092 (store_regs_lib): Rename to store_regs_user_thread.
3093 (store_regs_kern): Rename to store_regs_kernel_thread.
3094
3095 2002-07-22 Michael Snyder <msnyder@redhat.com>
3096
3097 * aix-thread.c (ops_prepare_to_store): Eliminate.
3098 (init_ops): Don't initialize ops.prepare_to_store.
3099 (store_regs_kern): Pre-fetch register buffers from child,
3100 because some registers may not be in the cache. Copy
3101 regs from register cache only if they are cached.
3102 (store_regs_lib): Copy regs from register cache only
3103 if they are cached.
3104 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3105 fill_gprs64): Ditto.
3106
3107 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3108
3109 * aix-thread.c (gdb_assert.h): Include.
3110 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3111 register sizes (from register cache) match size of buffer holding
3112 register data.
3113 (fill_sprs32): Change parameter types to match those in the ptrace()
3114 buffer.
3115 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3116 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3117
3118 2002-07-22 Michael Snyder <msnyder@redhat.com>
3119
3120 * aix-thread.c (supply_sprs64): Cosmetic change.
3121 (supply_sprs32): Cosmetic change.
3122 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3123 (fill_sprs64): Use regcache_collect instead of read_register.
3124 (store_regs_lib): Use regcache_collect instead of
3125 read_register. Use fill_sprs32 instead of fill_sprs64,
3126 if debugging a 32-bit architecture.
3127 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3128 out of the register cache, instead of passing a pointer into
3129 the register cache directly to ptrace. Use regcache_collect
3130 insteaad of read_register.
3131 (ops_prepare_to_store): Use target_read_registers instead
3132 of read_register_bytes.
3133
3134 2002-07-20 Aidan Skinner <aidan@velvet.net>
3135
3136 * MAINTAINERS: Add self under write after approval.
3137
3138 2002-07-20 Aidan Skinner <aidan@velvet.net>
3139
3140 * ada-tasks.c: Change k&r style function definitions to prototyped
3141 form.
3142
3143 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3144
3145 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3146 * x86-64-tdep.c: Include "objfiles.h".
3147 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3148 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3149
3150 2002-07-17 Michal Ludvig <michal@suse.cz>
3151
3152 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3153 (update_context): Initialise cfa variable.
3154
3155 2002-07-17 Michael Snyder <msnyder@redhat.com>
3156
3157 * aix-thread.c: Shorten some long lines.
3158 Bring comments into line with code spec.
3159
3160 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3161
3162 * infrun.c: Re-indent using gdb_indent.sh.
3163
3164 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3165
3166 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3167 Leave the indentation temporarily untouched, to minimize the diffs.
3168
3169 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3170
3171 * stabsread.c: Make os9k sections of the code obsolete,
3172 for real this time.
3173 * stabsread.h: Make os9k sections of the code obsolete.
3174
3175 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3176
3177 * linux-low.c (regsets_store_inferior_registers): Add free()
3178 at the end of a loop to prevent memory leak.
3179 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3180 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3181 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3182 line a comment.
3183 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3184
3185 2002-07-17 Jim Blandy <jimb@redhat.com>
3186
3187 * macrocmd.c (info_macro_command): Remove newline from error
3188 message.
3189
3190 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3191
3192 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3193 (sh_gdbarch_init): Use it for sh-dsp.
3194
3195 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3196
3197 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3198 64-bit DWARF2 format.
3199
3200 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3201
3202 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3203 <sys/proc.h> when not available.
3204
3205 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3206
3207 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3208 * stabsread.c: Make os9k sections of the code obsolete.
3209 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3210 * config/i386/i386os9k.mt: Make file obsolete.
3211 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3212 (COMMON_OBS): Remove os9kread.o
3213 (SFILES): Remove os9kread.c.
3214 (os9kread.o, remote-os9k.o): Make target obsolete.
3215 * remote-os9k.c: Make file obsolete.
3216 * os9kread.c: Make file obsolete.
3217 * Makefile.in
3218
3219 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3220
3221 * NEWS: Mention that the FR30 has been made obsolete.
3222 * fr30-tdep.c: Make file obsolete.
3223 * config/fr30/tm-fr30.h: Ditto.
3224 * config/fr30/fr30.mt: Ditto.
3225 * configure.tgt: Make fr30-*-elf obsolete.
3226 * MAINTAINERS: Make fr30-elf obsolete.
3227
3228 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3229
3230 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3231 found is not inside a section.
3232
3233 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3234
3235 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3236 strerror().
3237 (pdc_realloc): Use xrealloc() instead of realloc().
3238
3239 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3240
3241 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3242 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3243 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3244 macros.
3245
3246 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3247
3248 * aix-thread.c (ptrace_check): Eliminate goto.
3249 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3250 problem.
3251
3252 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3253
3254 * aix-thread.c (gdbcmd.h): Include.
3255 (DEBUG, DBG, DBG2, dbg): Eliminate.
3256 (debug_aix_thread): New static global.
3257 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3258 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3259 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3260 invocations to DBG and DBG2 macros to test against
3261 ``debug_aix_thread'' and call fprintf_unfiltered().
3262 (_initialize_aix_thread): Add new command "set debug aix-thread".
3263
3264 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3265
3266 From Gerhard Tonn <TON@de.ibm.com>:
3267 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3268 instead of supply_register.
3269
3270 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3271
3272 * dwarf2cfi.c: Include "gdb_assert.h".
3273 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3274 non-NULL.
3275 (update_context): Do not use __func__. Add missing ``break''.
3276 (update_context): Do not use __func__.
3277
3278 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3279
3280 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3281 and its setting. Set gdbarch instruction printing functions
3282 directly. For non-rs6000 case use new function
3283 gdb_print_insn_powerpc.
3284 (gdb_print_insn_powerpc): New function.
3285
3286 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3287
3288 * NEWS: Mention that the d30v has been marked obsolete.
3289 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3290 * configure.tgt: Mark d30v-*-* as obsolete.
3291 * d30v-tdep.c: Mark file as obsolete.
3292 * config/d30v/d30v.mt: Ditto.
3293 * config/d30v/tm-d30v.h: Ditto.
3294
3295 2002-07-13 Aidan Skinner <aidan@velvet.net>
3296
3297 * ada-tasks.c (add_task_entry): replace calls to
3298 malloc() with xmalloc
3299 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3300
3301 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3302 ada_finish_decode_line_1, all_sals_for_line
3303 ada_breakpoint_rewrite): replace calls to free() with xfree()
3304
3305 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3306
3307 From Nicholas Duffek (with minor changes by Martin Hunt,
3308 Louis Hamilton, and Kevin Buettner):
3309 * aix-thread.c: New file.
3310
3311 2002-07-12 Petr Sorfa <petrs@caldera.com>
3312
3313 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3314 complaint for invalid attribute class or form.
3315 (read_func_scope): DW_AT_frame_base
3316 better handling of DW_AT_block*.
3317 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3318 better handling of DW_AT_block*.
3319 (read_common_block): DW_AT_location
3320 better handling of DW_AT_block*.
3321 (read_partial_die): DW_AT_location better handling
3322 of DW_AT_block*.
3323 (new_symbol): DW_AT_external better handling of
3324 DW_AT_block*. Proper initialization of variable
3325 "addr".
3326 (attr_form_is_block): New function that returns true
3327 if the attribute's form is of DW_FORM_block*.
3328
3329 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3330
3331 * valops.c (find_method_list): Remove comment about
3332 removed STATIC_MEMFUNCP argument.
3333 (value_find_oload_method_list): Likewise.
3334
3335 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3336
3337 From Nicholas Duffek:
3338 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3339 target_new_objfile_hook.
3340
3341 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3342
3343 From Nicholas Duffek:
3344 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3345 csect.
3346
3347 2002-07-12 Andrew Cagney <cagney@redhat.com>
3348
3349 * MAINTAINERS: Mention --enable-sim-build-warnings.
3350 (m68hc11-elf): Disable sim build warnings.
3351 (m32r-elf): Mark as broken obsolete candidate.
3352 (x86_64-linux-gnu): Mark as buildable with -Werror.
3353 (arm-elf): Change -w to ``,'' which enables warnings but not
3354 -Werror.
3355
3356 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3357
3358 * bcache.h: Update copyright.
3359 (struct bstring, struct bcache): Move definition to "bcache.c".
3360 Replaced by opaque declaration.
3361 (bcache_xfree): Replace free_bcache.
3362 (bcache_xmalloc, bcache_memory_used): Declare.
3363
3364 * bcache.c: Update copyright.
3365 (struct bstring, struct bcache): Moved to here from "bcache.h".
3366 Update comments.
3367 (bcache_xmalloc, bcache_memory_used): New functions.
3368 (bcache_xfree): Replace function free_bcache.
3369
3370 * Makefile.in (objfiles.o): Add $(bcache_h).
3371 (objfiles_h): Remove $(bcache_h).
3372 (symfile.o): Add $(bcache_h).
3373
3374 * symmisc.c: Update copyright.
3375 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3376 (print_objfile_statistics): Use bcache_memory_used.
3377
3378 * symfile.c: Include "bcache.h".
3379 (reread_symbols): Use bcache_xfree.
3380 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3381 (add_psymbol_to_list): Pass psymbol_cache by value.
3382 (add_psymbol_with_dem_name_to_list): Ditto.
3383
3384 * objfiles.h: Update copyright.
3385 (struct bcache): Declare opaque. Do not include "bcache.h".
3386 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3387 bcache'' pointers.
3388 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3389
3390 * objfiles.c: Include "bcache.h". Update copyright.
3391 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3392 macro_cache.
3393 (free_objfile): Use bcache_xfree.
3394
3395 2002-07-11 Grace Sainsbury <graces@redhat.com>
3396
3397 * monitor.c (monitor_fetch_register): Make name a constant.
3398 (monitor_store_register): Same.
3399
3400 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3401
3402 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3403 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3404 (finish_block) For non-function blocks, hash the symbol table. For
3405 function blocks, mark the symbol table as unhashed.
3406 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3407 (msymbol_hash_iw): Likewise.
3408 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3409 value.
3410 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3411 (lookup_minimal_symbol): Likewise for both.
3412 * symtab.h (struct block): Add `hashtable' flag. Comment the
3413 hashtable.
3414 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3415 (ALL_BLOCK_SYMBOLS): Update.
3416 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3417 (struct symbol): Add `hash_next' pointer.
3418 * symtab.c (lookup_block_symbol): Search using the hash table when
3419 possible.
3420 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3421 (search_symbols, find_addr_symbol): Likewise.
3422
3423 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3424 (read_dst_symtab): Likewise.
3425 * jv-lang.c (get_java_class_symtab): Likewise.
3426 * mdebugread.c: Include "gdb_assert.h".
3427 (shrink_block): Assert that the block being modified is not hashed.
3428 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3429 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3430 symbols.
3431 (dump_symtab): Recognize hashed blocks.
3432 * printcmd.c (print_frame_args): Assert that function blocks do not
3433 have hashed symbol tables.
3434 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3435 (fill_in_ada_prototype, debug_print_block): Likewise.
3436 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3437
3438 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3439
3440 * stack.c (print_frame): Use result of frame_address_in_block()
3441 instead of fi->pc when evaluating symbols.
3442 (backtrace_command_1): Ditto.
3443
3444 2002-07-11 Andrew Cagney <cagney@redhat.com>
3445
3446 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3447 Make static.
3448
3449 * arm-tdep.c (arm_register_name): Make return type constant.
3450
3451 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3452
3453 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3454 prototype.
3455 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3456 * s390-tdep.c (s390_fp_regnum): Ditto.
3457 (s390_read_fp): Ditto.
3458 (s390_pop_frame): Ditto.
3459 (_initialize_s390_tdep): Ditto.
3460 * remote.c (get_remote_state): Ditto.
3461 * procfs.c (mappingflags): Ditto.
3462 * memattr.c (_initialize_mem): Ditto.
3463 * mcore-tdep.c (mcore_pop_frame): Ditto.
3464 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3465 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3466 * language.c (set_case_str): Ditto.
3467 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3468 * frv-tdep.c (new_variant): Ditto.
3469 (frv_stopped_data_address): Ditto.
3470 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3471 (context_alloc): Ditto.
3472 (frame_state_alloc): Ditto.
3473 (unwind_tmp_obstack_init): Ditto.
3474 (unwind_tmp_obstack_free): Ditto.
3475 (cfi_read_fp): Ditto.
3476 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3477 (cris_pop_frame): Ditto.
3478 * c-lang.c (scanning_macro_expansion): Ditto.
3479 (finished_macro_expansion): Ditto.
3480 (c_preprocess_and_parse): Ditto.
3481 * gdbarch.sh: Ditto.
3482 * gdbarch.h, gdbarch.c: Regenerate.
3483 * config/mn10200/tm-mn10200.h: Adjust indentation.
3484 * target.c: Adjust indentation.
3485 * symtab.h: Adjust indentation.
3486 * stabsread.h: Adjust indentation.
3487 * remote-es.c: Adjust indentation.
3488 * os9kread.c: Adjust indentation.
3489
3490 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3491
3492 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3493 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3494
3495 2002-07-10 Grace Sainsbury <graces@redhat.com>
3496
3497 * NEWS: Mention m68k, mcore multi-arching.
3498 * MAINTAINERS: Change status of m68k, mcore to reflect
3499 multi-arching.
3500
3501 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3502
3503 * valops.c (find_overload_match): Free oload_syms.
3504
3505 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3506
3507 Define HAVE_SYS_PROC_H if sys/proc.h exists
3508 * configure.in: Add check for sys/proc.h
3509 * config.in: Regenerate.
3510 * configure: Regenerate.
3511
3512 2002-07-09 Grace Sainsbury <graces@redhat.com>
3513
3514 * config/m68k/tm-m68k.h: Remove macros wrapped in
3515 #if !GDB_MULTI_ARCH.
3516
3517 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3518
3519 * config.in, configure: Regenerate.
3520
3521 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3522
3523 * dwarf2cfi.c: Include "gcore.h".
3524 (execute_stack_op): Fix implementation of the
3525 DW_OP_deref and DW_OP_deref_size operators by letting do their
3526 lookup in the target.
3527
3528 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3529
3530 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3531 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3532 tdep->sc_sp_offset.
3533
3534 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3535
3536 Fix PR gdb/595, gdb/602
3537 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3538 Don't call value_cast, just read the vtable pointer; update comments
3539 to match.
3540
3541 2002-07-05 Grace Sainsbury <graces@redhat.com>
3542
3543 * config/mcore/tm-mcore.h: Remove file.
3544 * config/mcore/mcore.mt: Remove definition of TM_FILE
3545 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3546
3547 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3548
3549 * i386bsd-tdep.c: Include "gdb_string.h".
3550
3551 2002-07-04 Grace Sainsbury <graces@redhat.com>
3552
3553 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3554 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3555 mcore-tdep.
3556 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3557 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3558 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3559 (RETVAL_REGNUM): Move macros from tm-mcore.h
3560 (mcore_reg_struct_has_addr): New function.
3561 (mcore_gdbarch_init): Added initializations for the macros removed
3562 from tm-mcore.h.
3563
3564 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3565
3566 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3567 traditonal string branding within the ELF header.
3568
3569 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3570
3571 * symtab.c (remove_params): New function.
3572 (make_symbol_overload_list): Use it instead of cplus_demangle.
3573 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3574
3575 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3576
3577 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3578
3579 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3580 New variables.
3581 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3582 and tdep->sigtramp_end.
3583 * i386obsd-nat.c: New file.
3584 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3585
3586 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3587 Don't call get_current_frame().
3588
3589 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3590
3591 * i386-nat.c (child_post_startup_inferior): New function
3592 calling i386_cleanup_dregs if
3593 I386_USE_GENERIC_WATCHPOINTS is defined.
3594 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3595 conditional to acknowledge that i386-nat.c has its
3596 own child_post_startup_inferior function.
3597
3598 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3599
3600 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3601 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3602 instead of MAX_REGISTER_RAW_SIZE.
3603 (i386_extract_return_value, i386_extract_struct_value_address):
3604 Convert to use regcache.
3605 (i386_gdbarch_init): Set max_register_raw_size and
3606 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3607 Set extract_return_value and extract_struct_value_address instead
3608 of their deprecated variants.
3609
3610 Convert i386 target to generic dummy frames.
3611 * i386-tdep.c: Include "symfile.h".
3612 (i386_frameless_signal_p): Consider a function to be frameless if
3613 the pc points at the first instruction of the function.
3614 (i386_frame_chain): Handle (generic) call dummies.
3615 (i386_frame_saved_pc): Likewise.
3616 (i386_frame_init_saved_regs): Remove code dealing with call
3617 dummies on the stack.
3618 (i386_push_dummy_frame): Removed.
3619 (i386_call_dummy_words): Removed.
3620 (i386_fix_call_dummy): Removed.
3621 (i386_push_return_address): New function.
3622 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3623 parameter, and don't call get_current_frame.
3624 (i386_pop_frame): New function.
3625 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3626 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3627 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3628 call_dummy_length to 0, set call_dummy_words to NULL, set
3629 sizeof_call_dummy_words to 0, set fix_call_dummy to
3630 generic_fix_call_dummy, set pc_in_call_dummy to
3631 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3632 generic_push_dummy_frame, set push_return_address to
3633 i386_push_return_address and set frame_chain_valid to
3634 generic_file_frame_chain_valid.
3635
3636 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3637
3638 * gdbarch.sh (struct regcache): Add opaque declaration.
3639 (EXTRACT_RETURN_VALUE): New architecture method.
3640 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3641 * gdbarch.h, gdbarch.c: Regenerate.
3642 * arch-utils.c (legacy_extract_return_value): New function.
3643 * arch-utils.h (legacy_extract_return_value): Declare.
3644 * values.c (value_being_returned): Re-enable code handling
3645 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3646 deprecated_grub_regcache_for_registers call to block handling
3647 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3648 (EXTRACT_RETURN_VALUE): Do not define.
3649
3650 2002-07-03 Grace Sainsbury <graces@redhat.com>
3651
3652 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3653 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3654 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3655 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3656 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3657 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3658 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3659 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3660 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3661 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3662 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3663 argument so the function fits the prototype in the architecture
3664 vector.
3665 (mcore_pop_frame): Remove argument so the function fits the
3666 prototype. Use get_current_frame instead of the argument.
3667 (mcore_push_arguments): Change type of struct_return so the
3668 function can be used in the architecture vector.
3669 (mcore_store_struct_return): Add.
3670 (mcore_frame_init_saved_regs): Add.
3671 (mcore_gdbarch_init): Add function calls to replace the macros
3672 removed from tm-mcore.h
3673
3674 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3675
3676 * infcmd.c (print_return_value): Remove compatibility code calling
3677 deprecated_grub_regcache_for_registers.
3678
3679 * values.c: Include "regcache.h".
3680 (value_being_returned): Update. Use
3681 deprecated_grub_regcache_for_registers to extract the register
3682 buffer address.
3683 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3684 ``struct regcache''.
3685 * Makefile.in (values.o): Add dependency on $(regcache_h).
3686
3687 * inferior.h (run_stack_dummy): Change type of second parameter to
3688 a ``struct regcache''.
3689 * valops.c (hand_function_call): Change type of retbuf to ``struct
3690 regcache''. Allocate using regcache_xmalloc, clean using
3691 make_cleanup_regcache_xfree.
3692 * infcmd.c (run_stack_dummy): Update. Use
3693 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3694
3695 * regcache.c (do_regcache_xfree): New function.
3696 (make_cleanup_regcache_xfree): New function.
3697 * regcache.h (make_cleanup_regcache_xfree): Declare.
3698
3699 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3700
3701 * event-top.c (command_line_handler): Don't read past
3702 beginning of buffer.
3703
3704 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3705
3706 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3707 struct frame_id.
3708 (varobj_create): Store frame_id for root.
3709 (varobj_gen_name): Use xasprintf.
3710 (varobj_update): Save and restore frame using get_frame_id() and
3711 frame_find_by_id().
3712 (create_child): Use xasprintf.
3713 (new_root_variable): Initialize frame_id.
3714 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3715 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3716 to prevent memory leak.
3717
3718 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3719
3720 * valops.c (hand_function_call): Move declaration of retbuf to
3721 start of function, allocate using malloc, add a cleanup but before
3722 the inf_status cleanup, cleanup the buffer. Rename local variable
3723 old_chain to inf_status_cleanup.
3724
3725 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3726
3727 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3728
3729 * cli/cli-decode.c (cmd_func_p): New function.
3730 (cmd_func): New function.
3731
3732 * command.h: Add cmd_func() and cmd_func_p().
3733
3734 2002-07-03 Grace Sainsbury <graces@redhat.com>
3735
3736 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3737 (REGISTER_SIZE): Remove.
3738 (MAX_REGISTER_RAW_SIZE): Remove.
3739 (REGISTER_VIRTUAL_TYPE): Remove.
3740 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3741 (REGISTER_NAME): Remove.
3742 (USE_GENERIC_DUMMY_FRAMES): Remove.
3743 (CALL_DUMMY): Remove.
3744 (CALL_DUMMY_START_OFFSET): Remove.
3745 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3746 (CALL_DUMMY_LOCATION): Remove.
3747 (FIX_CALL_DUMMY): Remove.
3748 (CALL_DUMMY_ADDRESS): Remove.
3749 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3750 (SAVE_DUMMY_FRAME_TOS): Remove.
3751 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3752 (mcore_register_virtual_type): New function.
3753 (mcore_register_byte): New function.
3754 (mcore_register_size): New function.
3755 (mcore_register_name): New function.
3756 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3757 macros removed from tm-mcore.h.
3758 (mcore_dump_tdep): Add.
3759 (_initialize_mcore_tdep): Add gdbarch_register call.
3760
3761 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3762
3763 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3764 frameless_look_for_prologue, such that we actually call this
3765 function.
3766
3767 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3768
3769 * frame.h (frame_address_in_block): New function.
3770
3771 * blockframe.c (frame_address_in_block): New function extracted
3772 from get_frame_block().
3773 (get_frame_block): Use frame_address_in_block().
3774 (block_innermost_frame): Use frame_address_in_block() to match
3775 the frame pc address against the block boundaries rather than
3776 the frame pc directly. This prevents a failure when a frame pc
3777 is actually a return-address pointing immediately after the end
3778 of the given block.
3779
3780 2002-07-02 Grace Sainsbury <graces@redhat.com>
3781
3782 * MAINTAINERS: Add self under write after approval.
3783
3784 2002-07-02 Grace Sainsbury <graces@redhat.com>
3785
3786 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3787 used in architecture vector. The default is
3788 m68k_local_breakpoint_from_pc.
3789 (m68k_local_breakpoint_from_pc): Add.
3790 (enum): Add register numbers from tm-m68k.h.
3791 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3792 vector.
3793 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3794 GDB_MULTI_ARCH_PARTIAL.
3795 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3796 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3797 m68k-tdep.c.
3798 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3799 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3800 to enum in m68k-tdep.c
3801
3802 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3803
3804 * solib-osf.c (open_map): Compute the list of shared libraries
3805 loaded by the inferior, rather than the list of libraries loaded
3806 by GDB itself. Otherwise, GDB ends up reading the symbols from
3807 the wrong shared libraries...
3808
3809 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3810
3811 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3812 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3813 macros.
3814 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3815 Remove functions.
3816 (FRAMELESS_SIGNAL): Remove function.
3817 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3818 i386_linux_saved_pc_after_call): Removed.
3819 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3820 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3821 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3822
3823 * i386-tdep.c (i386_frameless_signal_p): New function.
3824 (i386_frame_chain): Deal with frameless signals.
3825 (i386_sigtramp_saved_sp): New function.
3826 (i386_frame_saved_pc): Deal with frameless signals.
3827 (i386_saved_pc_after_call): Make sure the correct value is
3828 returned just after entry into a sigtramp.
3829 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3830 i386fbsd4_sc_sp_offset): New variables.
3831 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3832 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3833 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3834 similiar to what we already did for sc_pc_offset.
3835 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3836 tdep->sc_sp_offset.
3837
3838 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3839
3840 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3841
3842 * config/i386/tm-x86-64linux.h: New.
3843 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3844 definitions.
3845 * config/i386/nm-x86-64.h: Rename to ...
3846 * config/i386/nm-x86-64linux.h: ... this one.
3847 * config/i386/x86-64linux.mh: Reflect the above change.
3848
3849 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3850
3851 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3852 with sigcontext_addr. Add sc_sp_offset.
3853 (i386bsd_sigtramp_saved_pc): Remove prototype.
3854 (i386bsd_sicontext_addr): Add prototype.
3855 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3856 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3857 (i386_svr4_sigtramp_saved_pc): Removed.
3858 (i386_svr4_sigcontext_addr): New function.
3859 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3860 Initialize tdep->sigcontext_addr instead. Initialize
3861 tdep->sc_pc_offset and tdep->sc_sp_offset.
3862 (i386_gdbarch_init): Likewise.
3863 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3864 any more.
3865 (i386bsd_sigtramp_saved_pc): Remove function.
3866 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3867 Initialize tdep->sigcontext_addr instead. Initialize
3868 tdep->sc_pc_offset.
3869 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3870 of tdep->sigtramp_saved_pc.
3871 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3872 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3873 instead.
3874
3875 * i386-tdep.c (i386_frameless_function_invocation,
3876 i386_frame_num_args, i386_frame_init_saved_regs,
3877 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3878 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3879 i386_extract_return_value, i386_store_return_value,
3880 i386_extract_struct_value_address, i386_register_virtual_type,
3881 i386_register_convertible, i386_register_convert_to_virtual,
3882 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3883 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3884 static.
3885
3886 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3887
3888 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3889
3890 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3891 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3892 this macro. Include "value.h".
3893
3894 2002-06-30 Aidan Skinner <aidan@velvet.net>
3895
3896 * ada-exp.tab.c: remove as it's a generated file
3897 * ada-lex.c: remove as it's a generated file
3898
3899 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3900
3901 * config/i386/tm-i386.h (struct frame_info, struct
3902 frame_saved_regs, struct value, struct type): Remove forward
3903 declarations.
3904
3905 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3906 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3907 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3908 (FILL_FPXREGSET): Define.
3909
3910 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3911
3912 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3913 i[3456]86-*-netbsd* case.
3914 * config/i386/tm-obsd.h: Removed.
3915 * config/i386/obsd.mt: Removed.
3916 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3917 core-aout.o.
3918 (MH_CFLAGS): Add -DYYDEBUG=0.
3919
3920 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3921 i386nbsd_sc_pc_offset on OpenBSD too.
3922
3923 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3924 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3925 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3926 define.
3927 * i386bsd-tdep.c: Include "arch-utils.h".
3928 (i386bsd_aout_in_solib_call_trampoline): New function.
3929 (i386bsd_init_abi): Set in_solib_call_trampoline to
3930 i386bsd_aout_in_solib_call_trampoline.
3931 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3932 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3933
3934 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3935
3936 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3937 (struct obstack, struct bcache): Add opaque declarations.
3938 * Makefile.in (macrotab_h): Update
3939
3940 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3941
3942 * blockframe.c (generic_find_dummy_frame): Change return type to
3943 ``struct regcache''.
3944 (struct dummy_frame): Replace field ``registers'' with regcache, a
3945 struct regcache object.
3946 (generic_find_dummy_frame): Update.
3947 (generic_push_dummy_frame): Update. Use regcache_xfree,
3948 regcache_xmalloc and regcache_cpy.
3949 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3950 regcache_xfree.
3951 (deprecated_generic_find_dummy_frame): Update.
3952 (generic_read_register_dummy): Update. Use
3953 regcache_read_as_address.
3954 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3955 (generic_get_saved_register): Update. Use regcache_read.
3956
3957 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3958
3959 * Makefile.in (objfiles_h): Add $(bcache_h).
3960 * objfiles.h: Include "bcache.h".
3961
3962 * Makefile.in (symtab_h): Remove $(bcache_h).
3963 * symtab.h: Do not include "bcache.h".
3964
3965 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3966
3967 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3968 generic_func_frame_chain_valid.
3969
3970 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3971
3972 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3973 * config/i386/tm-fbsd.h: Likewise.
3974
3975 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3976
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3978 generic_unwind_get_saved_register.
3979
3980 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3981
3982 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3983 * regcache.c (supply_register): Add missing argument to
3984 register_buffer call.
3985
3986 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3987
3988 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3989 Solaris /bin/grep does not not like it. From Peter Schauer.
3990
3991 2002-06-26 Tom Tromey <tromey@redhat.com>
3992
3993 * command.h (add_setshow_cmd): Declare.
3994 (add_setshow_cmd_full): Declare.
3995 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3996 returns void. Use add_setshow_cmd_full.
3997 (add_setshow_cmd_full): New function.
3998 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3999 (add_setshow_boolean_cmd): Likewise.
4000
4001 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4002
4003 * config/vax/tm-vax.h: Protect from multiple inclusion.
4004 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4005 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4006 * config/vax/tm-vaxbsd.h: ...here. New file.
4007 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4008
4009 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4010
4011 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4012 (BELIEVE_PCC_PROMOTION): Remove.
4013 (AP_REGNUM): Move to...
4014 * config/vax/nm-vax.h: ...here.
4015 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4016 (vax_breakpoint_from_pc): New function.
4017 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4018 and gdbarch_believe_pcc_promotion.
4019
4020 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4021
4022 * Makefile.in (vax_tdep_h): Define.
4023 (vax-tdep.o): Use $(vax_tdep_h).
4024 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4025 (vax_dump_tdep): New function.
4026 (_initialize_vax_tdep): Register vax_dump_tdep.
4027 * vax-tdep.h: Include osabi.h.
4028 (struct gdbarch_tdep): New.
4029
4030 2002-06-26 Andrew Cagney <cagney@redhat.com>
4031
4032 * frame.h (deprecated_generic_find_dummy_frame): Rename
4033 generic_find_dummy_frame.
4034 * blockframe.c (generic_find_dummy_frame): Make static.
4035 (deprecated_generic_find_dummy_frame): New function.
4036 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4037 generic_find_dummy_frame with deprecated_find_dummy_frame.
4038 (sh64_nofp_frame_init_saved_regs): Ditto.
4039 (sh_fp_frame_init_saved_regs): Ditto.
4040 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4041 (s390_frame_chain): Ditto.
4042 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4043
4044 2002-06-26 Grace Sainsbury <graces@redhat.com>
4045
4046 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4047 gdbarch vector are at the top.
4048 (NUM_REGS): Remove.
4049 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4050 (FRAME_ARGS_ADDRESS): Remove.
4051 (FRAME_LOCALS_ADDRESS): Remove.
4052 (FRAME_NUM_ARGS): Remove.
4053 (FRAME_ARGS_SKIP): Remove.
4054 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4055 (m68k_gdbarch_init): Add gdbarch initializations for macros
4056 undefined in tm-m68k.h
4057
4058 2002-06-26 Grace Sainsbury <graces@redhat.com>
4059
4060 * monitor.h: Add the function regname to monitor_ops
4061 structure. This way NUM_REGS does not have to be a constant.
4062 * monitor.c (monitor_fetch_register): Added support for regname
4063 function. The function is called if the array regnames is NULL.
4064 (monitor_store_register): Same.
4065 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4066 regnames array.
4067 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4068 cpu32bug_cmds.regname to point to new function.
4069 * abug-rom.c (abug_regname): Same as above.
4070 (init_abug_cmds): Same.
4071 * dbug-rom.c (dbug_regname): Same as above.
4072 (init_dbug_cmds): Same.
4073 * remote-est.c (est_regname): Same.
4074 (init_est_cmds): Same.
4075 * rom68k-rom.c (rom68k_regname): Same.
4076 (init_rom68k_cmds): Same.
4077
4078 2002-06-25 Tom Tromey <tromey@redhat.com>
4079
4080 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4081
4082 2002-06-25 Andrew Cagney <cagney@redhat.com>
4083
4084 * infrun.c (stop_registers): Change variable's type to ``struct
4085 regcache'''.
4086 (xmalloc_inferior_status): Delete function.
4087 (free_inferior_status): Delete function.
4088 (normal_stop): Use regcache_cpy.
4089 (struct inferior_status): Change type of fields ``stop_registers''
4090 and ``registers'' to ``struct regcache''.
4091 (write_inferior_status_register): Use regcache_write.
4092 (save_inferior_status): Instead of calling
4093 xmalloc_inferior_status, allocate the inf_status buffer directly.
4094 Use regcache_dup_no_passthrough and regcache_dup to save the
4095 buffers.
4096 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4097 Replace the stop_registers regcache instead of overriding it. Use
4098 regcache_xfree. Instead of calling free_inferior_status, xfree
4099 the buffer directly.
4100 (discard_inferior_status): Use regcache_xfree. Instead of calling
4101 free_inferior_status, xfree the buffer directly.
4102 (build_infrun): Use regcache_xmalloc.
4103 (_initialize_infrun): Delete redundant call to build_infrun.
4104
4105 * Makefile.in (infcmd.o): Add $(regcache_h).
4106
4107 * infcmd.c: Include "regcache.h".
4108 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4109 obtain the address of `stop_registers' register buffer.
4110 (print_return_value): Ditto.
4111
4112 * inferior.h (struct regcache): Add opaque declaration.
4113 (stop_registers): Change variable's declared type to ``struct
4114 regcache''.
4115
4116 2002-06-24 Tom Tromey <tromey@redhat.com>
4117
4118 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4119 * target.c (initialize_targets): Fixed typo in
4120 trust-readonly-sections `show' documentation.
4121
4122 * main.c: Marked all strings with _().
4123
4124 2002-06-24 Don Howard <dhoward@redhat.com>
4125
4126 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4127 that means max CORE_ADDR+1.
4128 (lookup_mem_region): Ditto.
4129 (mem_info_command): Ditto.
4130
4131 2002-06-24 Grace Sainsbury <graces@redhat.com>
4132
4133 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4134 (REGISTER_BYTES_OK): Remove.
4135 (REGISTER_BYTES): Remove.
4136 (STORE_STRUCT_RETURN): Remove.
4137 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4138 (STORE_RETURN_VALUE): Remove.
4139 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4140 (FRAME_CHAIN): Remove.
4141 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4142 (FRAME_SAVED_PC): Remove.
4143 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4144 (m68k_store_struct_return): Add.
4145 (m68k_deprecated_extract_return_value): Add.
4146 (m68k_deprecated_extract_struct_value_address): Add.
4147 (m68k_store_return_value): Add.
4148 (m68k_frame_chain): Add.
4149 (m68k_frameless_function_invocation): Add.
4150 (m68k_frame_saved_pc): Add.
4151 (m68k_gdbarch_init): added set_gdbarch calls for new
4152 functions and deleted macros.
4153
4154 2002-06-23 Tom Tromey <tromey@redhat.com>
4155
4156 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4157 (ALLDEPFILES): Likewise.
4158 (udiheaders): Removed.
4159 (udip2soc.o): Likewise.
4160 (udi2go32.o): Likewise.
4161 (udr.o): Likewise.
4162 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4163
4164 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4165
4166 * infrun.c (_initialize_infrun): Delete unnecessary call to
4167 build_infrun.
4168
4169 * regcache.h: Update comments describing the regcache_cpy family
4170 of functions.
4171 (regcache_save, regcache_restore): Delete declaration.
4172 (regcache_save_no_passthrough): Delete declaration.
4173 (regcache_restore_no_passthrough): Delete declaration.
4174 * regcache.c (regcache_save): Delete function.
4175 (regcache_save_no_passthrough): Delete function.
4176 (regcache_restore): Delete function.
4177 (regcache_restore_no_passthrough): Delete function.
4178
4179 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4180
4181 * config/m68k/tm-m68k.h: Fix typo.
4182 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4183 (m68k_frame_init_saved_regs): Declare.
4184
4185 2002-06-21 Jim Blandy <jimb@redhat.com>
4186
4187 Remove some vestiges of Harris 88k support.
4188 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4189 register numbering quirk.
4190 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4191 odd symbols occurring in Harris 88k ELF targets.
4192
4193 2002-06-21 Tom Tromey <tromey@redhat.com>
4194
4195 * gdb_locale.h: New file.
4196 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4197 (defs_h): Added gdb_locale.h.
4198 * configure, config.in: Rebuilt.
4199 * configure.in (PACKAGE): Define.
4200 * defs.h: Include gdb_locale.h.
4201 * main.c (captured_main): Call setlocale, bindtextdomain,
4202 textdomain.
4203
4204 2002-06-21 Dave Brolley <brolley@redhat.com>
4205
4206 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4207 * config/frv/frv.mt: New file.
4208 * config/frv/tm-frv.h: New file.
4209 * configure.tgt: Support frv-*-*.
4210 * Makefile.in (frv-tdep.o): New target.
4211 * frv-tdep.c: New file.
4212 * NEWS: Mention frv.
4213
4214 2002-06-21 Dave Brolley <brolley@redhat.com>
4215
4216 * MAINTAINERS: Add self to "Write After Approval" list.
4217
4218 2002-06-21 Grace Sainsbury <graces@redhat.com>
4219
4220 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4221 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4222 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4223 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4224 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4225
4226 * m68k-tdep.c: Include arch-utils.h
4227 (m68k_register_raw_size): Add.
4228 (m68k_register_virtual_size): Add.
4229 (m68k_register_virtual_type): Add.
4230 (m68k_register_name): Add.
4231 (m68k_stack_align): Add.
4232 (m68k_register_byte): Add.
4233 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4234 tm-m68k.h.
4235
4236 2002-06-21 Grace Sainsbury <graces@redhat.com>
4237
4238 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4239 m68k_find_saved_regs.
4240 (m68k_pop_frame): Removed saved_regs structure, and replaced
4241 references to it with frame->saved_regs.
4242 (m68k_gdbarch_init): Added function calls to initialize the
4243 gdbarch structure.
4244 (m68k_fix_call_dummy): Add.
4245 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4246 (CALL_DUMMY): Remove.
4247 (CALL_DUMMY_LENGTH): Remove.
4248 (CALL_DUMMY_START_OFFSET): Remove.
4249 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4250 (FIX_CALL_DUMMY): Remove.
4251 (PUSH_DUMMY_FRAME): Remove.
4252 (POP_FRAME): Remove.
4253
4254 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4255
4256 * parse.c (parse_fprintf): New function used to avoid calls to
4257 fprintf in bison parser generated debug code.
4258 * parser-defs.h: Declaration of new parse_fprintf function.
4259 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4260 Set YYDEBUG to 1 by default.
4261 Set YYFPRINTF as parse_fprintf.
4262
4263 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4264
4265 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4266 encoding anymore.
4267 (pointer_encoding, enum ptr_encoding): New.
4268 (execute_cfa_program): Take care about pointer encoding.
4269 (dwarf2_build_frame_info): Only call parse_frame_info for
4270 .debug_frame and .eh_frame.
4271 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4272 fixed augmentation handling, added relative addressing,
4273 ignore duplicate FDEs. Added comments.
4274 * dwarf2cfi.c: Reindented.
4275
4276 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4277
4278 * event-top.c (command_handler): Don't use space_at_cmd_start
4279 unless there is sbrk() on the host. Assign time and space data
4280 to union fields of the appropriate length.
4281
4282 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4283
4284 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4285 x86_64_register_name. Return type changed to 'const char *'.
4286 (x86_64_register_name2nr): Rename to x86_64_register_number.
4287 (x86_64_gdbarch_init): Update to reflect the change.
4288 * x86-64-tdep.h: Ditto.
4289 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4290 (supply_fpregset): Ditto.
4291
4292 2002-06-19 Andrew Cagney <cagney@redhat.com>
4293
4294 * regcache.h: Update copyright.
4295 (struct regcache, struct gdbarch): Add opaque declarations.
4296 (current_regcache): Declare global variable.
4297 (regcache_read, regcache_write): Add gdbarch parameter.
4298 (regcache_save, regcache_save_no_passthrough)
4299 (regcache_restore, regcache_restore_no_passthrough)
4300 (regcache_dup, regcache_dup_no_passthrough)
4301 (regcache_cpy, regcache_cpy_no_passthrough)
4302 (deprecated_grub_regcache_for_registers)
4303 (deprecated_grub_regcache_for_register_valid)
4304 (regcache_valid_p): Add function declarations.
4305
4306 * regcache.c: Update copyright.
4307 (regcache_descr_handle): New global variable.
4308 (struct regcache_descr): Define.
4309 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4310 (regcache_descr, xfree_regcache_descr): New functions.
4311 (struct regcache): Define.
4312 (regcache_xmalloc, regcache_xfree): New functions.
4313 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4314 (regcache_dup, regcache_dup_no_passthrough): New functions.
4315 (regcache_valid_p, regcache_read_as_address): New functions.
4316 (deprecated_grub_regcache_for_registers): New function.
4317 (deprecated_grub_regcache_for_register_valid): New function.
4318 (current_regcache): New global variable.
4319 (register_buffer): Add regcache parameter. Update calls.
4320 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4321 (read_register_gen, write_register_gen): Update register_buffer
4322 call. Test for legacy_p instead of gdbarch_register_read_p or
4323 gdbarch_register_write_p.
4324 (regcache_collect): Update register_buffer call.
4325 (build_regcache): Rewrite. Use deprecated grub functions.
4326 (regcache_save, regcache_save_no_passthrough): New functions.
4327 (regcache_restore, regcache_restore_no_passthrough): New
4328 functions.
4329 (_initialize_regcache): Create the regcache_data_handle. Swap
4330 current_regcache global variable.
4331
4332 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4333 parameter to regcache_read and regcache_write calls.
4334 (sh4_register_read): Ditto.
4335 (sh64_pseudo_register_read): Ditto.
4336 (sh64_register_read): Ditto.
4337 (sh_pseudo_register_write): Ditto.
4338 (sh4_register_write): Ditto.
4339 (sh64_pseudo_register_write): Ditto.
4340 (sh64_register_write): Ditto.
4341
4342 * defs.h (XCALLOC): Define.
4343
4344 2002-06-19 Grace Sainsbury <graces@redhat.com>
4345
4346 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4347 * m68k-tdep.c (m68k_gdbarch_init): Added.
4348 (m68k_dump_tdep): Added.
4349
4350 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4351
4352 * ada-lang.c (fill_in_ada_prototype): Update comment.
4353
4354 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4355
4356 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4357 MIPS_ABI_LAST.
4358 (mips_abi_string, mips_abi_strings): New.
4359 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4360 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4361 tdep->mips_abi_string. Honor mips_abi_string. Default to
4362 O32 if no ABI is found.
4363 (mips_dump_tdep): Use mips_abi_strings.
4364 (mips_abi_update): New function.
4365 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4366 ``set mips abi'' and ``show mips abi''. Check the size of
4367 mips_abi_strings.
4368
4369 2002-06-19 Andrew Cagney <cagney@redhat.com>
4370
4371 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4372 constant.
4373
4374 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4375
4376 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4377 current frame using only the first stack size adjustment. All
4378 subsequent size adjustments are not considered to be part of
4379 the "static" part of the current frame.
4380 Compute the address of the saved registers relative to the
4381 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4382 in use in this frame.
4383
4384 2002-06-18 Don Howard <dhoward@redhat.com>
4385
4386 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4387 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4388 suggesting this solution.
4389
4390 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4391
4392 * config/romp/xm-rtbsd.h: Delete file.
4393 * config/romp/rtbsd.mh: Delete file.
4394
4395 2002-06-18 Keith Seitz <keiths@redhat.com>
4396
4397 * breakpoint.c (condition_command): Post breakpoint_modify
4398 when a condition is added to an existing breakpoint.
4399 (commands_command): Likewise for commands.
4400 (set_ignore_count): Likewise for ignore counts.
4401 If no tty, do not simply return, still need to send event
4402 notification.
4403 (ignore_command): Only print a newline if the command came
4404 from a tty.
4405 Don't call breakpoints_changed, since this is now properly
4406 handled by set_ignore_count.
4407
4408 2002-06-18 Andrew Cagney <cagney@redhat.com>
4409
4410 * MAINTAINERS: Note that cris-elf target can be compiled with
4411 -Werror.
4412 * cris-tdep.c (cris_register_name): Make return type constant.
4413 (cris_breakpoint_from_pc): Ditto.
4414
4415 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4416
4417 * frame.h (struct frame_info): Change type of context to
4418 'struct context'.
4419
4420 2002-06-17 Andrew Cagney <cagney@redhat.com>
4421
4422 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4423 pointer.
4424 * gdbarch.h, gdbarch.c: Regenerate.
4425 * config/mips/tm-mips.h (mips_register_name): Update.
4426 * i386-tdep.h (i386_register_name): Update.
4427 * mips-tdep.c (mips_register_name): Update
4428 * alpha-tdep.c (alpha_register_name): Update.
4429 * arch-utils.c (legacy_register_name): Update.
4430 * arch-utils.h (legacy_register_name): Update.
4431 * avr-tdep.c (avr_register_name): Update.
4432 * ia64-tdep.c (ia64_register_name): Update.
4433 * i386-tdep.c (i386_register_name): Update.
4434 * sparc-tdep.c (sparc32_register_name): Update.
4435 (sparc64_register_name): Update.
4436 (sparclite_register_name): Update.
4437 (sparclet_register_name): Update.
4438 * sh-tdep.c (sh_generic_register_name): Update.
4439 (sh_sh_register_name): Update.
4440 (sh_sh3_register_name): Update.
4441 (sh_sh3e_register_name): Update.
4442 (sh_sh_dsp_register_name): Update.
4443 (sh_sh3_dsp_register_name): Update.
4444 (sh_sh4_register_name): Update.
4445 (sh_sh64_register_name): Update.
4446 * s390-tdep.c (s390_register_name): Update.
4447 * rs6000-tdep.c (rs6000_register_name): Update.
4448 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4449 (ns32k_register_name_32382): Update.
4450 * d10v-tdep.c (d10v_ts2_register_name): Update.
4451 (d10v_ts3_register_name): Update.
4452 * xstormy16-tdep.c (xstormy16_register_name): Update.
4453 * vax-tdep.c (vax_register_name): Update.
4454 * v850-tdep.c (v850_register_name): Update.
4455 * m68hc11-tdep.c (m68hc11_register_name): Update.
4456 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4457 (am33_register_name): Update.
4458
4459 2002-06-17 Grace Sainsbury <graces@redhat.com>
4460
4461 * m68k-tdep.c: Reindented.
4462
4463 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4464
4465 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4466 list of predefined types.
4467
4468 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4469
4470 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4471 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4472 REGISTER_CONVERT_TO_RAW): Remove defines.
4473 (i386_register_virtual_type, i386_register_convertible,
4474 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4475 Remove prototypes.
4476 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4477 macros mentioned above.
4478
4479 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4480 (i386lynx_saved_pc_after_call): Remove prototype.
4481 * i386ly-tdep.c: Include "i386-tdep.h".
4482 (i386lynx_saved_pc_after_call): Make static. Use
4483 read_memory_nobpt instead of read_memory. Use
4484 read_memory_unsigned_integer instead of read_memory_integer.
4485 (i386lynx_init_abi): New function.
4486 (i386lynx_coff_osabi_sniffer): New function.
4487 (_initialize_i386bsd_tdep): New function.
4488
4489 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4490 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4491 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4492 (i386_fix_call_dummy): Remove prototype.
4493 * i386-tdep.c (i386_call_dummy_words): New variable.
4494 (i386_gdbarch_init): Adjust for removal of the
4495 macros mentioned above.
4496
4497 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4498
4499 * command.h (add_setshow_auto_boolean_cmd): Replace
4500 add_set_auto_boolean_cmd.
4501 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4502 add_set_auto_boolean_cmd.
4503 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4504 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4505 mask-address'' command.
4506 (show_mask_address): Add cmd parameter.
4507 * remote.c (add_packet_config_cmd): Update. Change type of
4508 set_func and show_func to cmd_sfunc_ftype.
4509 (_initialize_remote): Update `set remote Z-packet'
4510 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4511 (show_remote_protocol_e_packet_cmd): Ditto.
4512 (show_remote_protocol_E_packet_cmd): Ditto.
4513 (show_remote_protocol_P_packet_cmd): Ditto.
4514 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4515 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4516 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4517 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4518 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4519 (show_remote_protocol_Z_packet_cmd): Ditto.
4520 (show_remote_protocol_binary_download_cmd): Ditto.
4521 (show_remote_cmd): Pass NULL to all of above.
4522
4523 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4524
4525 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4526 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4527 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4528 POP_FRAME): Remove defines.
4529 (i386_push_arguments, i386_store_struct_return,
4530 i386_extract_return_value, i386_store_return_value,
4531 i386_extract_struct_value_address, i386_push_dummy_frame,
4532 i386_pop_frame): Renove prototypes.
4533 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4534 macros mentioned above.
4535
4536 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4537
4538 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4539 add_set_boolean_cmd.
4540 (add_setshow_cmd): New function.
4541 * command.h (add_setshow_boolean_cmd): Replace
4542 add_set_boolean_cmd.
4543 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4544 and ``set rdiromatzero''.
4545 * maint.c (_initialize_maint_cmds): Update commented out code.
4546 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4547 * target.c (initialize_targets): Update `set
4548 trust-readonly-sections'.
4549 * remote.c (_initialize_remote): Update `set remotebreak'.
4550
4551 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4552
4553 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4554 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4555 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4556 fit into multi-arch framework.
4557 (i386_breakpoint_from_pc): New function.
4558 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4559 above.
4560
4561 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4562 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4563 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4564 (i386_frameless_function_invocation, i386_frame_num_args,
4565 i386_frame_init_saved_regs): Remove prototypes.
4566 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4567 macros mentioned above.
4568
4569 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4570
4571 * cli/cli-decode.c (set_cmd_cfunc): Update.
4572 (set_cmd_sfunc): Update.
4573 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4574 (set_cmd_sfunc, set_cmd_cfunc): Update.
4575 * cli/cli-decode.h: Update.
4576
4577 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4578
4579 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4580 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4581
4582 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4583
4584 * defs.h (auto_boolean): Declare enum.
4585 * command.h (cmd_auto_boolean): Delete enum.
4586 * mips-tdep.c (mask_address_var): Update.
4587 (mips_mask_address_p): Update.
4588 (show_mask_address): Update.
4589 * remote.c (struct packet_config): Update.
4590 (update_packet_config): Update.
4591 (show_packet_config_cmd): Update.
4592 (packet_ok): Update.
4593 (add_packet_config_cmd): Update.
4594 (_initialize_remote):
4595 * command.h: Update.
4596 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4597 (do_setshow_command): Update.
4598 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4599 * cli/cli-decode.h: Update.
4600
4601 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4602
4603 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4604 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4605 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4606 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4607 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4608 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4609
4610 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4611 list of DJGPP COFF targets.
4612
4613 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4614 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4615 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4616 (FP0_REGNUM): Remove define.
4617 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4618 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4619 (i386_register_virtual_size): Remove protoype.
4620 * i386-tdep.c (i386_register_virtual_size): Removed.
4621 (i386_extract_return_value, i386_store_return_value): Use
4622 FP0_REGNUM instead of NUM_FREGS to determine whether the
4623 floating-point registers are available.
4624 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4625 Adjust for removal of macros mentioned above.
4626
4627 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4628
4629 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4630 comments.
4631 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4632 Remove prototypes.
4633 (supply_gregset, fill_gregset): Remove use of register keyword and
4634 remove declaration for regmap. Use I386_NUM_GREGS instead of
4635 NUM_REGS and NUM_FREGS.
4636 (FPREGSET_FSAVE_OFFSET): Remove.
4637 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4638 NUM_FREGS to determine whether the floating-point registers are
4639 available.
4640
4641 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4642 gnu_store_registers): Replace usage of NUM_GREGS with
4643 I386_NUM_GREGS.
4644
4645 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4646 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4647 usage of NUM_GREGS with I386_NUM_GREGS.
4648
4649 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4650
4651 * i386bsd-nat.c: Include "i386-tdep.h".
4652 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4653 I386_NUM_GREGS.
4654
4655 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4656 and associated comment. They no longer make any sense, since we
4657 don't use this file anymore on Linux.
4658
4659 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4660 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4661 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4662 elements in these arrays.
4663 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4664 MAX_NUM_REGS.
4665
4666 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4667
4668 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4669 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4670
4671 2002-06-14 Andrew Cagney <cagney@redhat.com>
4672
4673 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4674 EXTRACT_RETURN_VALUE.
4675 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4676 EXTRACT_STRUCT_VALUE_ADDRESS.
4677 * gdbarch.h, gdbarch.c: Regenerate.
4678
4679 * values.c (value_being_returned): Handle
4680 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4681 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4682
4683 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4684 * arm-tdep.c (arm_gdbarch_init): Update.
4685 * avr-tdep.c (avr_gdbarch_init): Update.
4686 * cris-tdep.c (cris_gdbarch_init): Update.
4687 * d10v-tdep.c (d10v_gdbarch_init): Update.
4688 * ia64-tdep.c (ia64_gdbarch_init): Update.
4689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4691 * s390-tdep.c (s390_gdbarch_init): Update.
4692 * sh-tdep.c (sh_gdbarch_init): Update.
4693 * s390-tdep.c (s390_gdbarch_init): Update.
4694 * sparc-tdep.c (sparc_gdbarch_init): Update.
4695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4696 * v850-tdep.c (v850_gdbarch_init): Update.
4697 * vax-tdep.c (vax_gdbarch_init): Update.
4698 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4700
4701 * config/arc/tm-arc.h: Update.
4702 * config/d30v/tm-d30v.h: Update.
4703 * config/fr30/tm-fr30.h: Update.
4704 * config/h8300/tm-h8300.h: Update.
4705 * config/h8500/tm-h8500.h: Update.
4706 * config/i386/tm-i386.h: Update.
4707 * config/i386/tm-ptx.h: Update.
4708 * config/i386/tm-symmetry.h: Update.
4709 * config/i960/tm-i960.h: Update.
4710 * config/m32r/tm-m32r.h: Update.
4711 * config/m68k/tm-delta68.h: Update.
4712 * config/m68k/tm-linux.h: Update.
4713 * config/m68k/tm-m68k.h: Update.
4714 * config/m88k/tm-m88k.h: Update.
4715 * config/mcore/tm-mcore.h: Update.
4716 * config/mips/tm-mips.h: Update.
4717 * config/mn10200/tm-mn10200.h: Update.
4718 * config/pa/tm-hppa.h: Update.
4719 * config/pa/tm-hppa64.h: Update.
4720 * config/sparc/tm-sp64.h: Update.
4721 * config/sparc/tm-sparc.h: Update.
4722 * config/sparc/tm-sparclet.h: Update.
4723 * config/z8k/tm-z8k.h: Update.
4724
4725 2002-06-14 Andrew Cagney <cagney@redhat.com>
4726
4727 * Makefile.in (i386_linux_tdep_h): Define.
4728 (i386_tdep_h, i387_tdep_h): Define.
4729 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4730 $(i386_tdep_h) and $(i387_tdep_h).
4731 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4732
4733 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4734
4735 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4736 Already covered by the default.
4737
4738 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4739 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4740 (i386_gdbarch_init): Initialize long_double_format and long_double
4741 bit.
4742
4743 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4744 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4745 Move these to ...
4746 * config/i386/i386sol2.mh: ... here.
4747 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4748 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4749 (SIGCONTEXT_PC_OFFSET): Remove define.
4750 (IN_SIGTRAMP): Remove define.
4751 * i386-sol2-tdep.c: New file.
4752
4753 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4754 * config/i386/tm-i386nw.h: Removed.
4755
4756 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4757 USE_STRUCT_CONVENTION): Remove defines.
4758 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4759 (get_longjmp_target): Remove prototype.
4760 (IN_SIGTRAMP): Remove define.
4761 (i386bsd_in_sigtramp): Remove prototype.
4762 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4763 function. Update comment accordingly
4764 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4765 (FRAME_SAVED_PC): Remove define.
4766 (i386bsd_frame_saved_pc): Remove prototype.
4767 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4768 GET_LONGJMP_TARGET): Remove defines.
4769 (get_longjmp_target): Remove prototype.
4770 (IN_SIGTRAMP): Remove define.
4771 (i386bsd_in_sigtramp): Remove prototype.
4772 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4773 function. Update comment accordingly
4774 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4775 (FRAME_SAVED_PC): Remove define.
4776 (i386bsd_frame_saved_pc): Remove prototype.
4777 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4778 Remove prototype.
4779 (USE_STRUCT_CONVENTION): Remove prototype.
4780 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4781 declaration.
4782 (_initialize_i386bsd_nat): Revise logic to determine some
4783 constants at compile time when compiling a native GDB. Warn if
4784 things don't match up with what we expect.
4785 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4786 Remove variables.
4787 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4788 to use date stored in `struct gdbarch_tdep'.
4789 (i386bsd_sigcontext_offset): Remove varaible.
4790 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4791 stored in `struct gdbarch_tdep'.
4792 (i386bsd_frame_saved_pc): Make static.
4793 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4794 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4795 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4796 i386fbsd4_sc_pc_offset): New variables.
4797 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4798 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4799 functions.
4800 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4801 functions.
4802 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4803 Modify the value of i386fbsd_sigtramp_start and
4804 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4805 i386fbsd_sigtramp_end.
4806 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4807 function.
4808
4809 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4810 define to i386-linux-tdep.h.
4811 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4812 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4813 defines.
4814 (i386_linux_register_name, i386_linux_register_byte,
4815 i386_linux_register_raw_size): Remove prototypes.
4816 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4817 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4818 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4819 TARGET_WRITE_PC): Remove defines.
4820 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4821 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4822 i386_linux_write_pc): Remove prototypes.
4823 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4824 (get_longjmp_target): Remove prototype.
4825 * i386-linux-tdep.h: New file.
4826 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4827 * i386-linux-tdep.c: Include "i386-tdep.h" and
4828 "i386-linux-tdep.h".
4829 (i386_linux_register_name, i386_linux_register_byte,
4830 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4831 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4832 Make static.
4833 (i386_linux_init_abi): New function.
4834 (_initialize_i386_linux_tdep): New function.
4835
4836 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4837 (i386_saved_pc_after_call): Remove prototype.
4838 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4839 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4840 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4841 (i386_register_name, i386_stab_reg_to_regnum,
4842 i386_dwarf_reg_to_regnum): Remove prototypes.
4843 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4844 SIZEOF_SSE_REGS): Remove defines.
4845 (REGISTER_BYTES): Remove define.
4846 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4847 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4848 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4849 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4850 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4851 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4852 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4853 (get_longjmp_target): Remove prototype.
4854 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4855 (sigtramp_saved_pc): Remove define.
4856 (i386v4_sigtramp_saved_pc): Remove prototype.
4857 * config/i386/tm-go32.h (FRAME_CHAIN,
4858 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4859 (i386go32_frame_saved_pc): Remove prototype.
4860 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4861 (get_longjmp_target): Remove prototype.
4862 * i386-tdep.h: Include "osabi.h".
4863 (enum i386_abi): Removed.
4864 (enum struct_return): New enum.
4865 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4866 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4867 sc_pc_offset members.
4868 (i386_gdbarch_register_os_abi): Remove prototype.
4869 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4870 I386_SSE_NUM_REGS): New defines.
4871 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4872 I386_SSE_SIZEOF_REGS): New defines.
4873 (i386_register_name, i386_register_byte, i386_register_raw_size):
4874 New prototypes.
4875 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4876 (i386bsd_sigtramp_saved_pc): New prototype.
4877 * i386-tdep.c: Don't include "elf-bfd.h".
4878 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4879 i386_frame_chain, i386_saved_pc_after_call): Make static.
4880 (i386_frame_saved_pc): Rewrite to call architecture dependent
4881 function to deal with signal handlers. Make static.
4882 (i386go32_frame_saved_pc): Removed.
4883 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4884 Removed.
4885 (i386_get_longjmp_target): New function.
4886 (default_struct_convention, pcc_struct_convention,
4887 reg_struct_convention, valid_conventions, struct_convention): New
4888 variables.
4889 (i386_use_struct_convention): New function.
4890 (i386v4_sigtramp_saved_pc): Renamed to
4891 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4892 (i386_pc_in_sigtramp): New function.
4893 (i386_abi_names): Removed.
4894 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4895 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4896 Removed.
4897 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4898 i386_gdbarch_register_os_abi): Removed.
4899 (struct i386_abi_handler): Removed.
4900 (i386_abi_handler_list): Removed.
4901 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4902 functions.
4903 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4904 i386_nw_init_abi): New functions.
4905 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4906 Use set_gdbarch_xxx() calls instead of relying on macros for a
4907 number of calls.
4908 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4909 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4910 Register the various architecture variants defined in this file.
4911
4912 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4913
4914 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4915 (struct main_type): Remove arg_types member. Update comments for
4916 struct field.
4917 (TYPE_ARG_TYPES): Remove.
4918 (TYPE_FN_FIELD_ARGS): Update.
4919 (smash_to_method_type): Update prototype.
4920
4921 * c-typeprint.c (cp_type_print_method_args): Take method type
4922 instead of argument list. Use new argument layout. Simplify.
4923 (c_type_print_args): Use new argument layout. Simplify.
4924 (c_type_print_base): Update call to cp_type_print_method_args.
4925 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4926 argument; use die->type instead. Update call to
4927 smash_to_method_type.
4928 (read_structure_scope): Update call to dwarf2_add_member_fn.
4929 * gdbtypes.c (allocate_stub_method): Update comment.
4930 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4931 Use new argument layout.
4932 (check_stub_method): Use new argument layout. Don't count
4933 void as an argument.
4934 (print_arg_types): Update comments. Use new argument layout.
4935 (recursive_dump_type): Don't print arg_types member.
4936 * hpread.c (hpread_read_struct_type): Use new argument layout.
4937 (fixup_class_method_type): Likewise.
4938 (hpread_type_lookup): Likewise.
4939 * stabsread.c (read_type): Update calls to read_args and
4940 smash_to_method_type.
4941 (read_args): Use new argument layout. Simplify.
4942 * valops.c (typecmp): Use new argument layout. Update parameters
4943 and comments. Simplify.
4944 (hand_function_call): Use new argument layout.
4945 (search_struct_method): Update call to typecmp.
4946 (find_overload_match): Use new argument layout.
4947
4948 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4949
4950 * NEWS: Mention multithreaded debug support for gdbserver.
4951
4952 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4953
4954 * MAINTAINERS: Mention NEWS.
4955
4956 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4957
4958 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4959 (struct mips_objfile_private, compare_pdr_entries): New.
4960 (non_heuristic_proc_desc): Read the ".pdr" section if it
4961 is present.
4962
4963 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4964
4965 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4966 (arm_debug): New static variable.
4967 (_initialize_arm_tdep): Add ``set debug arm'' command.
4968
4969 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4970
4971 * Makefile.in (sim_arm_h): Define.
4972 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4973 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4974 (arm_register_sim_regno): New function, map an internal REGNUM
4975 onto a simulator register number.
4976 (arm_gdbarch_init): Set register_sim_regno.
4977
4978 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4979
4980 * MAINTAINERS: Add self.
4981
4982 2002-06-11 Jim Blandy <jimb@redhat.com>
4983
4984 * source.c (source_info): Mention whether the symtab has
4985 information about preprocessor macros.
4986
4987 Call the command `info macro', not `show macro'.
4988 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4989 Fix error message.
4990 (_initialize_macrocmd): Register `info_macro_command' in
4991 `infolist', not `showlist'.
4992
4993 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4994
4995 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4996 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4997 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4998 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4999 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5000 unconditionally.
5001 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5002 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5003 (_initialize_mips_tdep): Remove dead code.
5004 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5005 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5006 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5007 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5008 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5009 MIPS_LAST_FP_ARG_REGNUM): Remove.
5010
5011 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5012
5013 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5014 (unwind_tmp_obstack_free, parse_frame_info)
5015 (update_context, cfi_read_fp, cfi_write_fp)
5016 (cfi_frame_chain, cfi_init_extra_frame_info)
5017 (cfi_virtual_frame_pointer): Use the above function.
5018 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5019
5020 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5021
5022 * v850-tdep.c (v850_type_is_scalar): New function.
5023 (v850_use_struct_convention): Match current gcc implementation
5024 as close as possible.
5025 (v850_push_arguments): Fix stack_offset handling. Don't write
5026 struct_addr into register. This is done by v850_store_struct_return.
5027 (v850_extract_return_value): Care for structs.
5028 (v850_store_return_value): Ditto.
5029 (v850_store_struct_return): Actually write address.
5030
5031 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5032
5033 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5034 without debug information too.
5035
5036 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5037
5038 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5039 Make multi-arch pure.
5040 * gdbarch.h, gdbarch.c: Re-generate.
5041 * arm-tdep.c (arm_print_float_info): Update.
5042 * arch-utils.h (default_print_float_info): Update.
5043 * arch-utils.c (default_print_float_info): Update.
5044 * infcmd.c (float_info): Update call.
5045
5046 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5047
5048 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5049 the front of the initialize list.
5050
5051 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5052
5053 * infrun.c (struct inferior_status): Replace fields
5054 selected_frame_address and selected_level with field
5055 selected_frame_id.
5056 (save_inferior_status): Update. Use get_frame_id.
5057 (struct restore_selected_frame_args): Delete.
5058 (restore_selected_frame): Update. Use frame_find_by_id.
5059 (restore_inferior_status): Update.
5060
5061 * breakpoint.h (struct breakpoint): Change type of
5062 watchpoint_frame to frame_id.
5063 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5064 call to get_current_frame.
5065 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5066 get_current_frame.
5067 (watchpoint_check): Use frame_find_by_id.
5068
5069 * frame.h (record_selected_frame): Delete declaration.
5070 * stack.c (record_selected_frame): Delete function.
5071
5072 * frame.h (struct frame_id): Define.
5073 (get_frame_id): Declare.
5074 (frame_find_by_id): Declare.
5075 * frame.c (frame_find_by_id): New function.
5076 (get_frame_id): New function.
5077
5078 2002-06-10 Andrey Volkov <avolkov@transas.com>
5079
5080 * ser-e7kpc.c: Fix duplicated define and call of
5081 _initialize_ser_e7000pc
5082
5083 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5084
5085 * signals/signals.c (target_signal_from_host): Fix #ifdef
5086 SIGRTMIN case.
5087 (do_target_signal_to_host): Likewise.
5088
5089 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5090
5091 * mips-tdep.c (mips_find_abi_section): New function.
5092 (mips_gdbarch_init): Call it.
5093
5094 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5095
5096 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5097 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5098 after Andrew's 2002-06-08 gdbarch change.
5099
5100 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5101
5102 * i386-linux-nat.c (suppy_gregset): Don't supply
5103 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5104 register cache.
5105 (fill_gregset): Don't fetch it under the same circumstances.
5106
5107 2002-06-09 Andrew Cagney <cagney@redhat.com>
5108
5109 * Makefile.in (callback_h): Define.
5110 (remote_sim_h): Update path to remote-sim.h.
5111 (remote-rdp.o): Add $(callback_h).
5112 (remote-sim.o): Use $(callback_h).
5113 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5114 * remote-rdp.c: Include "gdb/callback.h".
5115
5116 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5117
5118 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5119 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5120
5121 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5122
5123 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5124 * rdi-share/serpardr.c: Ditto.
5125 * rdi-share/unixcomm.c: Ditto.
5126 * rdi-share/serdrv.c: Ditto.
5127 * rdi-share/hostchan.h: Ditto.
5128 * rdi-share/hostchan.c: Ditto.
5129 * rdi-share/host.h: Ditto.
5130 * rdi-share/devsw.c: Ditto.
5131
5132 * objfiles.h: Change type of obj_private to void pointer.
5133 * pa64solib.c: Update copyright. Don't include "assert.h", use
5134 strcmp instead of STREQ, use LONGEST, do not use PTR
5135 * somsolib.c: Ditto.
5136
5137 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5138 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5139 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5140
5141 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5142
5143 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5144 (default_get_saved_register): Delete function.
5145 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5146 generic_unwind_get_saved_register.
5147 * gdbarch.h, gdbarch.c: Re-generate.
5148
5149 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5150
5151 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5152 generic_func_frame_chain_valid.
5153 * gdbarch.h, gdbarch.c: Re-generate.
5154 * blockframe.c (generic_func_frame_chain_valid): Only check
5155 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5156 passing FP to PC_IN_CALL_DUMMY.
5157 Fix PR gdb/360.
5158
5159 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5160
5161 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5162 (register_gdbarch_data): Initialize init_p.
5163 (gdbarch_data): Initialize data pointer using the init function.
5164 (init_gdbarch_data): Delete function.
5165 (gdbarch_update_p): Update.
5166 (initialize_non_multiarch): Update.
5167 (struct gdbarch): Add field initialized_p.
5168 * gdbarch.h, gdbarch.c: Re-generate.
5169
5170 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5171
5172 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5173 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5174 better do the things actually here.
5175 * x86-64-tdep.c (x86_64_register_name2nr): New.
5176 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5177 (x86_64_gdbarch_init): Respect the above change.
5178 * x86-64-tdep.h (x86_64_register_name2nr)
5179 (x86_64_register_nr2name): Add prototypes.
5180 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5181
5182 2002-06-06 Michael Snyder <msnyder@redhat.com>
5183
5184 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5185 Delete extra braces and re-indent.
5186 (d10v_store_return_value): Char return values
5187 must be shifted over by one byte in R0.
5188 (d10v_extract_return_value): Delete extra braces, re-indent.
5189
5190 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5191
5192 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5193 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5194 (d10v_integer_to_address): Rewrite.
5195 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5196 the d10v specific functions which take care of converting to the
5197 correct space.
5198
5199 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5200
5201 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5202 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5203
5204 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5205
5206 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5207 includes.
5208 * config/tm-linux.h: Ditto.
5209 * config/alpha/tm-alphalinux.h: Ditto.
5210 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5211 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5212 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5213 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5214 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5215 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5216 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5217 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5218 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5219 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5220 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5221 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5222 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5223 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5224 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5225 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5226 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5227 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5228 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5229 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5230 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5231 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5232 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5233 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5234 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5235 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5236 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5237 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5238 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5239 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5240 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5241 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5242 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5243 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5244 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5245 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5246 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5247
5248 2002-05-04 Aidan Skinner <aidan@velvet.net>
5249
5250 * ada-exp.tab.c: New file
5251 * ada-exp.y: New file
5252 * ada-lang.c: New file
5253 * ada-lang.h: New file
5254 * ada-lex.c: New file
5255 * ada-lex.l: New file
5256 * ada-tasks.c: New file
5257 * ada-typeprint.c: New file
5258 * ada-valprint.c: New file
5259
5260 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5261
5262 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5263 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5264
5265 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5266
5267 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5268 insetead of ppc-linux-tdep.o.
5269 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5270 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5271
5272 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5273
5274 2002-05-07 Christian Groessler <chris@groessler.org>
5275 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5276 bit register contents for little endian hosts.
5277
5278 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5279
5280 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5281 any maintainer.
5282
5283 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5284
5285 * gdbarch.h: Regenerate.
5286
5287 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5288
5289 * MAINTAINERS: Add everyone to write-after-approval list.
5290
5291 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5292
5293 * stack.c (frame_info): Use frame_register_unwind instead of
5294 saved_regs. Mention when the SP is on the stack or in a register.
5295
5296 * frame.h (frame_register_unwind_ftype): Define. Document.
5297 (struct frame_info): Add field register_unwind and
5298 register_unwind_cache.
5299 (frame_register_unwind): Declare.
5300 (generic_unwind_get_saved_register): Declare.
5301
5302 * frame.c (frame_register_unwind): New function.
5303 (generic_unwind_get_saved_register): New function.
5304
5305 * blockframe.c (generic_call_dummy_register_unwind): New function.
5306 (frame_saved_regs_register_unwind): New function.
5307 (set_unwind_by_pc): New function.
5308 (create_new_frame): New function.
5309 (get_prev_frame): New function.
5310
5311 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5312
5313 * a29k-share/: Delete directory.
5314 * remote-vx29k.c: Delete file.
5315
5316 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5317
5318 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5319 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5320
5321 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5322
5323 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5324 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5325 (sparc64nbsd-nat.o)
5326 (sparcnbsd-nat.o)
5327 (sparcnbsd-tdep.o): New dependency lists.
5328 * NEWS: Note new UltraSPARC NetBSD native configuration.
5329 * configure.host (sparc64-*-netbsd*): New host.
5330 * configure.tgt (sparc-*-netbsdelf*)
5331 (sparc-*-netbsd*): Set gdb_target to nbsd.
5332 (sparc64-*-netbsd*): New target.
5333 * sparc64nbsd-nat.c: New file.
5334 * sparcnbsd-nat.c: New file.
5335 * sparcnbsd-tdep.c: New file.
5336 * sparcnbsd-tdep.h: New file.
5337 * config/sparc/nbsd.mt: New file.
5338 * config/sparc/nbsd64.mh: New file.
5339 * config/sparc/nbsd64.mt: New file.
5340 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5341 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5342 (HOST_IPC): Remove.
5343 * config/sparc/nbsdaout.mt: Remove.
5344 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5345 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5346 (HOST_IPC): Remove.
5347 * config/sparc/nbsdelf.mt: Remove.
5348 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5349 sparc-nat.c compatiblity defines.
5350 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5351 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5352 * config/sparc/tm-nbsd64.h: New file.
5353 * config/sparc/tm-nbsdaout.h: Remove.
5354 * config/sparc/xm-nbsd.h: Remove.
5355
5356 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5357
5358 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5359 * sparc-tdep.c: Include osabi.h.
5360 (gdbarch_tdep): Add osabi member.
5361 (_initialize_sparc_tdep): Use gdbarch_register.
5362 (sparc_gdbarch_init): Use generic OS ABI framework.
5363 (sparc_dump_tdep): New function.
5364
5365 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5366
5367 * corefile.c (do_captured_read_memory_integer): Return non-zero
5368 result.
5369 (safe_read_memory_integer): Copy result of memory read when
5370 status is non-zero. Also, add comments.
5371
5372 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5373
5374 * Makefile.in (ppc_tdep_h): Define.
5375 (ppc-linux-nat.o)
5376 (ppc-linux-tdep.o)
5377 (rs6000-tdep.o): Use $(ppc_tdep_h).
5378 (ppc-sysv-tdep.o)
5379 (ppcnbsd-nat.o)
5380 (ppcnbsd-tdep.o): New dependency lists.
5381 * ppc-tdep.h: Use generic OS ABI framework.
5382 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5383 (ppc_linux_init_abi): New functions.
5384 (ppc_sysv_abi_broken_use_struct_convention)
5385 (ppc_sysv_abi_use_struct_convention)
5386 (ppc_sysv_abi_push_arguments): Move to...
5387 * ppc-sysv-tdep.c: ...here.
5388 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5389 * rs6000-tdep.c (process_note_abi_tag_sections)
5390 (get_elfosabi): Remove.
5391 (rs6000_gdbarch_init): Use generic OS ABI framework.
5392 (rs6000_dump_tdep): New function.
5393 (_initialize_rs6000_tdep): Use gdbarch_register.
5394 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5395 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5396 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5397 of ppc-linux-tdep.o.
5398 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5399 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5400 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5401 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5402 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5403 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5404
5405 2002-05-29 Jim Blandy <jimb@redhat.com>
5406
5407 * macroscope.c (default_macro_scope): Put `void' in empty argument
5408 list.
5409
5410 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5411
5412 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5413 * arch-utils.c: Include "sim-regno.h".
5414 * gdbarch.sh: Don't include "sim-regno.h".
5415 * gdbarch.h, gdbarch.c: Regenerate.
5416 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5417 here.
5418 * arch-utils.h (legacy_register_sim_regno): To here.
5419 * remote-sim.c (legacy_register_sim_regno): Move function from
5420 here.
5421 * arch-utils.c (legacy_register_sim_regno): To here.
5422
5423 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5424
5425 * sim-regno.h: New file.
5426 * Makefile.in (sim_regno_h): Define.
5427 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5428 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5429 (legacy_register_sim_regno): New function.
5430 (one2one_register_sim_regno): New function.
5431 (gdbsim_fetch_register): Rewrite.
5432 (gdbsim_store_register): Only store a register when
5433 REGISTER_SIM_REGNO is valid.
5434 * d10v-tdep.c: Include "sim-regno.h".
5435 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5436 (d10v_ts3_register_sim_regno): Ditto.
5437 * gdbarch.sh: Include "sim-regno.h".
5438 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5439 * gdbarch.h, gdbarch.c: Regenerate.
5440 * arch-utils.h (default_register_sim_regno): Delete declaration.
5441 * arch-utils.c (default_register_sim_regno): Delete function.
5442
5443 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5444
5445 * ppcnbsd-nat.c: Rewrite.
5446 * ppcnbsd-tdep.c: New file.
5447 * ppcnbsd-tdep.h: New file.
5448 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5449 solib.o, and solib-svr4.o.
5450 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5451 nbsd-tdep.o, and corelow.o.
5452
5453 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5454
5455 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5456 `tr' and `sed'. Mention that `broken' targets are not expected to
5457 build.
5458
5459 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5460
5461 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5462 Let PC point right after the prologue before looking up symbols.
5463
5464 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5465
5466 * i386-tdep.c (i386_register_virtual_type): Return
5467 builtin_type_vec128i for SSE registers.
5468
5469 * gdbtypes.h (builtin_type_vec128i): Declare.
5470
5471 * gdbtypes.c (build_builtin_type_vec128i): New function.
5472 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5473 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5474 (build_gdbtypes): Initialize new builtin vector types.
5475 (_initialize_gdbtypes): Register new vector types with gdbarch.
5476
5477 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5478
5479 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5480 since it has been multi-arch'd.
5481 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5482 Move Alpha and VAX multi-arch news entries to same section
5483 as other multi-arch news.
5484
5485 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5486
5487 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5488 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5489 static. Rename some register numbers to put them in ns32k-tdep
5490 private namespace.
5491 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5492 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5493 functions.
5494 (_initialize_ns32k_tdep): Use gdbarch_register.
5495 * ns32k-tdep.h: New file.
5496 * ns32knbsd-tdep.c: New file.
5497 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5498 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5499 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5500 REGISTER_BYTES, REGISTER_BYTE): Remove.
5501 * config/ns32k/tm-ns32k.h: New file.
5502 * config/ns32k/tm-umax.h: Remove.
5503
5504 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5505
5506 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5507 ns32k_store_struct_return, ns32k_extract_return_value,
5508 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5509 functions.
5510 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5511 ns32k_saved_pc_after_call.
5512 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5513 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5514 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5515 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5516 ns32k_extract_struct_value_address.
5517
5518 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5519
5520 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5521 ns32k_fix_call_dummy): New.
5522 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5523 ns32k_call_dummy_words.
5524 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5525 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5526 CALL_DUMMY_NARGS): Remove.
5527 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5528
5529 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5530
5531 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5532 ns32k_frame_saved_pc, ns32k_frame_args_address,
5533 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5534 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5535 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5536 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5537 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5538 (BREAKPOINT): Remove..
5539 (FRAME_CHAIN): Define as ns32k_frame_chain.
5540 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5541 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5542 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5543 (FRAME_FIND_SAVED_REGS): Remove.
5544 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5545 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5546 (POP_FRAME): Define as ns32k_pop_frame.
5547
5548 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5549
5550 * ns32k-tdep.c (ns32k_register_byte_32082,
5551 ns32k_register_byte_32382, ns32k_register_raw_size,
5552 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5553 functions.
5554 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5555 ns32k_register_byte_32382.
5556 * config/ns32k/tm-umax.h: Update copyright years.
5557 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5558 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5559 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5560 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5561 (ns32k_get_enter_addr): Fix prototype.
5562
5563 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5564
5565 * ns32k-tdep.c: Update copyright years.
5566 (ns32k_register_name_32082): New function.
5567 (ns32k_register_name_32382): Ditto.
5568 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5569 (REGISTER_NAME): Define as ns32k_register_name_32382.
5570 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5571 (REGISTER_NAME): Define as ns32k_register_name_32082.
5572
5573 2002-05-24 Jim Blandy <jimb@redhat.com>
5574
5575 * dwarf2read.c (free_line_header): Use xfree, not free.
5576
5577 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5578
5579 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5580 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5581
5582 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5583
5584 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5585
5586 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5587
5588 From Ross Alexander at NEC Europe:
5589 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5590
5591 2002-05-23 Michael Snyder <msnyder@redhat.com>
5592
5593 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5594 for input, rather than parse_and_eval_address.
5595
5596 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5597
5598 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5599 * Makefile.in (sim_d10v_h): Update definition.
5600
5601 2002-05-24 Andrew Cagney <cagney@redhat.com>
5602
5603 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5604 change `2002-05-22 Michael Snyder' below.
5605 (d10v_push_arguments): Ditto.
5606 (d10v_extract_return_value): Ditto.
5607
5608 2002-05-23 Jim Blandy <jimb@redhat.com>
5609
5610 * macrotab.c (check_for_redefinition): Don't complain if the new
5611 definition is the same as the previous one. Take more arguments
5612 to allow the comparison.
5613 (macro_define_object, macro_define_function): Pass more arguments
5614 to check_for_redefinition.
5615
5616 2002-05-22 Michael Snyder <msnyder@redhat.com>
5617
5618 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5619 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5620 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5621 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5622 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5623 Add a temp variable to save a call (and a memory read).
5624 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5625 if possible (so that PC_IN_CALL_DUMMY will work).
5626
5627 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5628
5629 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5630
5631 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5632
5633 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5634 fde->cie_ptr.
5635 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5636 (dwarf2_build_frame_info): Add offset to fde->initial_location
5637 so that frames of shared libraries are mapped correctly.
5638 (execute_stack_op): Change type of 'result' from ULONGEST to
5639 CORE_ADDR.
5640
5641 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5642
5643 * config/alpha/tm-nbsd.h: Include solib.h.
5644
5645 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5646
5647 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5648 assumptions about the host's byte order.
5649
5650 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5653 to dependency list.
5654 * alphanbsd-tdep.c: Include solib-svr4.h.
5655 * shnbsd-tdep.c: Ditto.
5656
5657 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5660 nbsd-tdep.h to dependency list.
5661 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5662 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5663 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5664 nbsdaout.mh and nbsdelf.mh consistently.
5665 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5666 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5667 nbsdaout.mt and nbsdelf.mh consistently.
5668 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5669 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5670 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5671 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5672 a.out shared library stuff from here...
5673 * config/nm-nbsdaout.h: ...to here.
5674 * config/tm-nbsd.h: Remove.
5675 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5676 * config/arm/nbsd.mh: Remove.
5677 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5678 nbsd-tdep.o.
5679 * config/arm/nbsdaout.mh: New file.
5680 * config/arm/nbsdelf.mh: New file.
5681 * config/arm/nm-nbsdaout.h: New file.
5682 * config/i386/nbsd.mh: Remove.
5683 * config/i386/nbsd.mt: Remove.
5684 * config/i386/nbsdaout.mh: New file.
5685 * config/i386/nbsdaout.mt: New file.
5686 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5687 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5688 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5689 i386_register_u_addr): Remove.
5690 * config/i386/nm-nbsdaout.h: New file.
5691 * config/i386/nm-nbsdelf.h: Remove.
5692 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5693 (USE_STRUCT_CONVENTION): Remove.
5694 * config/i386/tm-nbsdaout.h: New file.
5695 * config/i386/tm-nbsdelf.h: Remove.
5696 * config/m68k/nbsd.mh: Remove.
5697 * config/m68k/nbsd.mt: Remove.
5698 * config/m68k/nbsdaout.mh: New file.
5699 * config/m68k/nbsdaout.mt: New file.
5700 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5701 * config/m68k/nm-nbsdaout.h: New file.
5702 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5703 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5704 * config/ns32k/nbsd.mh: Remove.
5705 * config/ns32k/nbsd.mt: Remove.
5706 * config/ns32k/nbsdaout.mh: New file.
5707 * config/ns32k/nbsdaout.mt: New file.
5708 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5709 * config/ns32k/nm-nbsdaout.h: New file.
5710 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5711 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5712 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5713 (SVR4_SHARED_LIBS): Remove.
5714 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5715 * config/sparc/nbsd.mh: Remove.
5716 * config/sparc/nbsd.mt: Remove.
5717 * config/sparc/nbsdaout.mh: New file.
5718 * config/sparc/nbsdaout.mt: New file.
5719 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5720 * config/sparc/nbsdelf.mt: New file.
5721 * config/sparc/nm-nbsdaout.h: New file.
5722 * config/sparc/nm-nbsdelf.h: Remove.
5723 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5724 * config/sparc/tm-nbsdaout.h: New file.
5725
5726 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5727
5728 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5729 mipsnbsd-tdep.c
5730 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5731
5732 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5733
5734 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5735 shnbsd-nat.c.
5736 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5737
5738 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5739
5740 * NEWS: Note new MIPS NetBSD native configuration.
5741 * configure.host (mips*-*-netbsd*): New host.
5742 * configure.tgt (mips*-*-netbsd*): New target.
5743 * mipsnbsd-nat.c: New file.
5744 * mipsnbsd-tdep.c: New file.
5745 * mipsnbsd-tdep.h: New file.
5746 * config/mips/nbsd.mh: New file.
5747 * config/mips/nbsd.mt: New file.
5748 * config/mips/nm-nbsd.h: New file.
5749 * config/mips/tm-nbsd.h: New file.
5750
5751 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5752
5753 * Makefile.in (SFILES): Add osabi.c.
5754 (COMMON_OBS): Add osabi.o.
5755 (osabi.o): New dependency list.
5756 * osabi.c: New file.
5757 * osabi.h: New file.
5758 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5759
5760 * Makefile.in (alpha_tdep_h): Define and use instead of
5761 alpha-tdep.h.
5762 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5763 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5764 Remove.
5765 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5766 * alpha-tdep.h: Include osabi.h.
5767 (alpha_abi): Remove.
5768 (gdbarch_tdep): Use generic OS ABI framework.
5769 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5770 gdbarch_register_osabi.
5771 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5772 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5773 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5774
5775 * Makefile.in (sh_tdep_h): Add osabi.h.
5776 * sh-tdep.h (sh_osabi): Remove.
5777 (gdbarch_tdep): Use generic OS ABI framework.
5778 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5779 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5780 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5781 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5782
5783 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5784 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5785 gdbarch_register_osabi.
5786 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5787 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5788 (get_elfosabi): Rename to...
5789 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5790 ABI framework support routines.
5791 (arm_gdbarch_init): Use generic OS ABI framework.
5792 (arm_dump_tdep): Likewise.
5793 (_initialize_arm_tdep): Likewise.
5794 * arm-tdep.h: Include osabi.h.
5795 (arm_abi): Remove.
5796 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5797 osabi member.
5798 (arm_gdbarch_register_os_abi): Remove prototype.
5799 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5800 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5801
5802 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5803 * mips-tdep.c: Include osabi.h.
5804 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5805 OS ABI framework.
5806
5807 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5808
5809 * h8300-tdep.c: Fix formatting.
5810
5811 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5812
5813 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5814 printing vector registers.
5815
5816 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5817
5818 From Fernando Nasser:
5819 * remote.c (remote_async_open_1): Re-throw the exception when the
5820 connection fails.
5821 (remote_cisco_open): Ditto.
5822 (remote_open_1): Ditto.
5823
5824 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5825
5826 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5827 (remote_start_remote): Add uiout parameter. Pass through to
5828 remote_start_remote_dummy.
5829 (remote_open_1): Use catch_exception instead of catch_errors.
5830 (remote_async_open_1): Ditto.
5831 (remote_cisco_open): Ditto.
5832
5833 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5834
5835 * remote.c (remote_start_remote): Replace PTR with void pointer.
5836 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5837 static.
5838
5839 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5840
5841 * gdb_indent.sh: Allow the script to be run in the sim directory.
5842
5843 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5844
5845 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5846 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5847
5848 * corelow.c (core_open): Only call set_gdbarch_from_file if
5849 exec_bfd is NULL.
5850
5851 2002-05-17 Andrey Volkov <avolkov@transas.com>
5852
5853 * h8300-tdep.c: Add support of EXR register
5854 * config/h8300/tm-h8300.h: Ditto.
5855
5856 2002-05-17 Andrey Volkov <avolkov@transas.com>
5857
5858 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5859
5860 2002-05-17 Andrey Volkov <avolkov@transas.com>
5861
5862 * h8300-tdep.c: Change literal regnums to REGNO.
5863
5864 2002-05-17 Jim Blandy <jimb@redhat.com>
5865
5866 * NEWS: Note addition of macro support.
5867
5868 Expand preprocessor macros in C expressions.
5869 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5870 (scan_macro_expansion, scanning_macro_expansion,
5871 finished_macro_expansion): New function declarations.
5872 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5873 variable declarations.
5874 * parser-defs.h (expression_context_pc): New declaration.
5875 * parse.c (expression_context_pc): New variable.
5876 (parse_exp_1): Set expression_context_pc, as well as
5877 expression_context_block.
5878 * c-exp.y (yylex): If we're not already reading the result of a
5879 macro expansion, try to macro-expand the next token. When we're
5880 done scanning a macro expansion, switch back to the mainline text.
5881 Commas and `if's in a macro's expansion don't terminate the input.
5882 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5883 (macro_original_text, macro_expanded_text,
5884 expression_macro_lookup_func, expression_macro_lookup_baton): New
5885 variables.
5886 (scan_macro_expansion, scanning_macro_expansion,
5887 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5888 c_preprocess_and_parse): New functions.
5889 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5890 c_preprocess_and_parse, instead of c_parse.
5891 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5892 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5893
5894 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5895
5896 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5897 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5898 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5899
5900 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5901
5902 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5903
5904 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5905
5906 * Makefile.in (sh_tdep_h): Define and use.
5907 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5908 register enum): Move to...
5909 * * sh-tdep.h: ...here.
5910 * sh-tdep.c: Include sh-tdep.h.
5911 * sh3-rom.c: Likewise.
5912 * shnbsd-tdep.c: Likewise.
5913
5914 2002-05-16 Michael Snyder <msnyder@redhat.com>
5915
5916 * arm-tdep.c: Spelling fix in comment.
5917
5918 2002-05-16 Jim Blandy <jimb@redhat.com>
5919
5920 Add commands for manually expanding macros and showing their
5921 definitions.
5922 * macrocmd.c, macroscope.c, macroscope.h: New files.
5923 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5924 (macroscope_h): New variable.
5925 (HFILES_NO_SRCDIR): Add macroscope.h.
5926 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5927 (macroscope.o, macrocmd.o): New rules.
5928
5929 Teach the Dwarf 2 reader to read macro information.
5930 * dwarf2read.c: #include "macrotab.h".
5931 (dwarf_macinfo_buffer): New variable.
5932 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5933 dwarf_macinfo_size.
5934 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5935 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5936 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5937 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5938 dwarf2_macro_spaces_in_definition): New complaints.
5939 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5940 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5941 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5942 the partial symbol table.
5943 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5944 from what's recorded in the partial symbol table.
5945 (read_file_scope): If the compilation unit has a
5946 `DW_AT_macro_info' attribute, read its macro information.
5947 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5948
5949 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5950
5951 Fix PR gdb/546
5952 * ser-tcp.c: Don't include <netinet/udp.h>.
5953
5954 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5955
5956 * MAINTAINERS: Update my email address.
5957
5958 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5959
5960 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5961 include file of the same name.
5962
5963 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5964
5965 * configure.tgt: Mark v850 as multi-arched.
5966 * config/v850/tm-v850.h: Remove file.
5967 * config/v850/v850.mt: Eliminate TM_FILE.
5968
5969 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5970
5971 * v850-tdep.c: Full multi-arch.
5972 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5973 Define GDB_MULTI_ARCH to 2.
5974
5975 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5976
5977 * p-exp.y (current_type): New static variable.
5978 Carries the type of the expression at the position that is parsed.
5979 (push_current_type, pop_current_type): Two new functions. Used
5980 to store/restore current_type in expression on specific tokens.
5981 (search_field): New static variable. Set to one after parsing a point
5982 as at that point only a FIELDNAME token should be searched.
5983 (FIELDNAME): New token. After a point only a token belonging to
5984 current_type type definition is allowed.
5985 (all over token rules): reset and change current_type according
5986 to rules.
5987 (exp '[' rule): insert implicit array index field if
5988 exp is a pascal string type.
5989
5990 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5991
5992 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5993 frame info. Use frame_info's saved_regs instead of matching member
5994 in extra_frame_info throughout.
5995 (v850_frame_init_saved_regs): New function.
5996 (v850_init_extra_frame_info): Move most functionality into
5997 v850_frame_init_saved_regs().
5998 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5999 (v850_frame_find_saved_regs): Remove declaration.
6000 (FRAME_FIND_SAVED_REGS): Remove definition.
6001 (v850_frame_init_saved_regs): Add declaration.
6002 (FRAME_INIT_SAVED_REGS): Add definition.
6003
6004 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6005
6006 * v850-tdep.c: Begin multi-arch'ing v850.
6007 (v850_target_architecture_hook): Remove function.
6008 (v850_gdbarch_init): New function. Add code previously in
6009 v850_target_architecture_hook().
6010 (_initialize_v850_tdep): Don't set target_architecture_hook.
6011 Call register_gdbarch_init() instead.
6012
6013 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6014
6015 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6016 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6017 (fixup_class_method_type): Likewise.
6018
6019 2002-05-15 Jim Blandy <jimb@redhat.com>
6020
6021 Add macro structures to GDB's symbol tables. Nobody puts anything
6022 in them yet.
6023 * symtab.h (struct symtab): New member: `macro_table'.
6024 * buildsym.h (pending_macros): New global variable.
6025 * buildsym.c: #include "macrotab.h".
6026 (buildsym_init): Initialize `pending_macros'.
6027 (end_symtab): If we found macro information while reading a CU's
6028 debugging info, do build a symtab structure for it. Make the
6029 symtab point to the macro information, and clear the
6030 `pending_macros' pointer which held it while we were reading the
6031 debug info.
6032 (really_free_pendings): Free any pending macro table.
6033 * objfiles.h (struct objfile): New member: `macro_cache'.
6034 * objfiles.c (allocate_objfile): Set allocate and free functions
6035 for the macro cache's objstack.
6036 (free_objfile): Empty the macro cache's obstack.
6037 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6038 set new allocate and free functions for it.
6039 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6040 free functions for the macro cache's objstack. (Why is this
6041 function building its own objfile?)
6042 * symmisc.c (print_objfile_statistics): Print statistics on the
6043 macro bcache.
6044 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6045
6046 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6047
6048 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6049 (REGISTER_U_ADDR): Delete definition.
6050 (arm_register_u_addr): Delete declaration.
6051
6052 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6053
6054 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6055 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6056
6057 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6058
6059 * regcache.c (register_valid): Revise comments refering to "Not
6060 available" and "unavailable".
6061 * frame.c (frame_register_read): Ditto.
6062 * findvar.c (value_of_register): Ditto.
6063
6064 2002-05-15 Andrew Cagney <cagney@redhat.com>
6065
6066 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6067 (remote-sim.o): Update dependencies.
6068 (d10v-tdep.o): Specify dependencies.
6069 (sim_d10v_h): Define.
6070
6071 2002-05-14 Jim Blandy <jimb@redhat.com>
6072
6073 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6074 * macrotab.c (macro_lookup_inclusion, find_definition,
6075 new_macro_table): Same.
6076
6077 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6078 not `! strcmp ()'. This is a dubious improvement.
6079 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6080
6081 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6082 although it's not necessary, to avoid a warning.
6083
6084 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6087 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6088 TYPE_INSTANCE_FLAGS.
6089 (struct main_type): New.
6090 (struct type): Move most members to struct main_type. Change
6091 cv_type and as_type to new type_chain member. Add instance_flags.
6092 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6093 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6094 (finish_cv_type): Remove prototype.
6095 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6096 Set TYPE_CHAIN.
6097 (alloc_type_instance): New function.
6098 (smash_type): New function.
6099 (make_pointer_type, make_reference_type, make_function_type)
6100 (smash_to_member_type, smash_to_method_type): Call smash_type.
6101 (make_qualified_type): New function.
6102 (make_type_with_address_space): Call make_qualified_type.
6103 (make_cv_type): Likewise.
6104 (finish_cv_type): Remove unnecessary function.
6105 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6106 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6107 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6108 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6109 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6110 * hpread.c (hpread_read_struct_type): Likewise.
6111 * stabsread.c (read_struct_type): Likewise.
6112
6113 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6114
6115 * configure.tgt: Add a catch all sh* target, for cases like
6116 sh[2,3,4]-elf and sh-hms.
6117
6118 2002-05-14 Keith Seitz <keiths@redhat.com>
6119
6120 * event-loop.c (create_file_handler): Don't do anything but
6121 update data when we are given a fd which we are already
6122 monitoring.
6123
6124 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6125
6126 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6127 (update_context): Use __func__ in warnings.
6128
6129 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6130
6131 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6132 and tcp_close to net_open and net_close.
6133 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6134 using UDP if requested. Don't try to disable Nagle on UDP
6135 sockets.
6136 * remote.c (remote_serial_open): New function. Warn about UDP.
6137 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6138
6139 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6140
6141 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6142
6143 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6144
6145 * configure.tgt: Remove sh-hms target.
6146 * MAINTAINERS: Don't list sh-hms as a separate target.
6147
6148 2002-05-13 Jim Blandy <jimb@redhat.com>
6149
6150 Add first preprocessor macro-expansion files.
6151 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6152 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6153 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6154 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6155 (COMMON_OBS): Add macrotab.o, macroexp.o.
6156 (macroexp.o, macrotab.o): New rules.
6157
6158 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6159
6160 * config/m88k/tm-m88k.h: Update copyright.
6161 (m88k_target_write_pc): Declare
6162 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6163 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6164 (SHIFT_INST_REGS): Update definition.
6165 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6166 using old definition of TARGET_WRITE_PC.
6167 * regcache.c (generic_target_write_pc): Delete code handling
6168 NNPC_REGNUM.
6169 * gdbarch.sh (NNPC_REGNUM): Delete.
6170 * gdbarch.h, gdbarch.c: Regenerate.
6171
6172 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6173
6174 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6175 builtin reg number.
6176
6177 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6178
6179 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6180 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6181 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6182 access macros.
6183 * c-typeprint.c (cp_type_print_method_args): Likewise.
6184 (c_type_print_args): Likewise.
6185 * d10v-tdep.c (d10v_push_arguments): Likewise.
6186 (d10v_extract_return_value): Likewise.
6187 * expprint.c (print_subexp): Likewise.
6188 * gdbtypes.c (lookup_primitive_typename): Likewise.
6189 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6190 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6191 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6192 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6193 (TYPE_VECTOR): Likewise.
6194 * hpread.c (hpread_read_struct_type)
6195 (fix_static_member_physnames, fixup_class_method_type)
6196 (hpread_type_lookup): Likewise.
6197 * mdebugread.c (parse_symbol, parse_type): Likewise.
6198 * p-lang.c (is_pascal_string_type): Likewise.
6199 * valops.c (hand_function_call): Likewise.
6200 * x86-64-tdep.c (classify_argument): Likewise.
6201
6202 * hpread.c (hpread_read_function_type)
6203 (hpread_read_doc_function_type): Call replace_type.
6204 * dstread.c (create_new_type): Delete.
6205 (decode_dst_structure, process_dst_function): Call alloc_type.
6206 Use type access macros.
6207
6208 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6209
6210 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6211 the're not supported by the current architecture.
6212 (i387_fill_fxsave): Likewise.
6213
6214 2002-05-12 Fred Fish <fnf@redhat.com>
6215
6216 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6217 sect_index_xxx members to index the first slot in section_offsets
6218 if all of the section_offsets are zero.
6219
6220 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6221
6222 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6223 checked in with last change.
6224
6225 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6226
6227 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6228 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6229 config.sub.
6230
6231 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6232
6233 * Makefile.in: Update dependencies.
6234
6235 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6236
6237 * language.c (local_hex_string_custom): Simplify. Do not depend
6238 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6239
6240 * memattr.c (mem_info_command): Replace calls to
6241 longest_local_hex_string and longest_local_hex_string_custom.
6242 * buildsym.c (make_blockvector): Ditto.
6243 * solib.c (info_sharedlibrary_command): Ditto.
6244 * tracepoint.c (tracepoints_info): Ditto.
6245 * symtab.c (print_msymbol_info): Ditto.
6246
6247 * language.c (local_hex_string): Delete.
6248 (local_hex_string_custom): Delete.
6249 (longest_local_hex_string): Rename to local_hex_string.
6250 (longest_local_hex_string_custom): Rename to
6251 local_hex_string_custom.
6252 * language.h (local_hex_string): Change parameter type to LONGEST.
6253 (local_hex_string_custom): Ditto.
6254 (longest_local_hex_string): Delete declaration.
6255 (longest_local_hex_string_custom): Ditto.
6256
6257 * solib.c: Update copyright.
6258 * memattr.c: Update copyright.
6259
6260 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6261
6262 * arch-utils.h (legacy_register_to_value): Declare.
6263 (legacy_value_to_register): Declare.
6264 (legacy_convert_register_p): Declare.
6265 * arch-utils.c (legacy_register_to_value): New function.
6266 (legacy_value_to_register): New function.
6267 (legacy_convert_register_p): New function.
6268
6269 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6270 (VALUE_TO_REGISTER): Define.
6271 (CONVERT_REGISTER_P): Define.
6272 * gdbarch.h, gdbarch.c: Regenerate.
6273
6274 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6275 VALUE_TO_REGISTER.
6276 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6277 CONVERT_REGISTER_P.
6278
6279 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6280 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6281
6282 * Makefile.in: Update dependencies for valops.c.
6283 * valops.c: Include "gdb_assert.h".
6284 (typecmp): Skip THIS parameter to methods.
6285 (find_method_list): Remove static_memfuncp argument,
6286 update callers. Check for stub methods.
6287 (find_value_oload_method_list): Don't set *static_memfuncp.
6288 (find_overload_match): Don't check for stub methods. Assert
6289 that methods are not stubbed. Handle static methods.
6290 (value_find_oload_method_list): Remove static_memfuncp argument.
6291 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6292 to the argument list for static stub methods.
6293 * value.h (value_find_oload_method_list): Update prototype.
6294
6295 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6296
6297 * arch-utils.h (generic_register_size): Declare.
6298 (generic_register_raw_size, generic_register_virtual_size): Delete
6299 declarations.
6300 * arch-utils.c (generic_register_raw_size): Delete.
6301 (generic_register_size): New function.
6302 (generic_register_virtual_size): Delete.
6303
6304 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6305 default generic_register_size.
6306 * gdbarch.h, gdbarch.c: Re-generate.
6307
6308 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6309 register_virtual_size.
6310 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6311 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6312
6313 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6314
6315 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6316 * gdbarch.h, gdbarch.c: Regenerate.
6317 * gnu-v3-abi.c: Update copyright.
6318 (vtable_address_point_offset): Update.
6319 (gnuv3_rtti_type): Update.
6320 (gnuv3_baseclass_offset): Update.
6321 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6322 (init_fetch_link_map_offsets): Update.
6323 * remote.c (get_remote_state): Update.
6324
6325 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6326
6327 * TODO: Remove value_headof/value_from_vtable_info comment.
6328 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6329 * values.c (value_headof, value_from_vtable_info): Delete.
6330 * value.h (value_from_vtable_info): Delete prototype.
6331
6332 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6333
6334 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6335 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6336 $(gdb_regex_h).
6337 (gdb_assert_h): Define.
6338 (gdb_wait_h): Define.
6339 (gdb_regex_h): Define.
6340
6341 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6342
6343 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6344 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6345
6346 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6347
6348 * nbsd-tdep.c: Fix comment.
6349
6350 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6351
6352 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6353 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6354 (nbsd-tdep.o): New dependency list.
6355 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6356 nbsd-tdep.h.
6357 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6358 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6359 * nbsd-tdep.c: New file.
6360 * nbsd-tdep.h: New file.
6361 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6362 nbsd-tdep.h.
6363 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6364 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6365 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6366 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6367
6368 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6369
6370 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6371 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6372 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6373 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6374 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6375 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6376
6377 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6378
6379 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6380 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6381 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6382 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6383 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6384 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6385 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6386
6387 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6390 fetch_elfcore_registers to...
6391 * i386nbsd-tdep.c: ...here.
6392 (i386nbsd_use_struct_convention): Rename to...
6393 (i386nbsd_aout_use_struct_convention): ...this.
6394 (i386nbsd_supply_reg): New function.
6395 (i386nbsd_fill_reg): New function.
6396 (fetch_core_registers): Use i386nbsd_supply_reg.
6397 (fetch_elfcore_registers): Likewise.
6398 (_initialize_i386nbsd_tdep): New function.
6399 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6400 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6401 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6402 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6403 (i386nbsd_aout_use_struct_convention): ...this.
6404
6405 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6406
6407 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6408 (store_inferior_registers): Use shnbsd_fill_reg.
6409 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6410 sh_nbsd_supply_register): Collapse into...
6411 (shnbsd_supply_reg): ...this.
6412 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6413 (shnbsd_fill_reg): ...this.
6414 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6415 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6416 (fetch_core_registers): Use shnbsd_supply_reg.
6417 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6418 (sh_nbsd_core_fns): Rename to...
6419 (shnbsd_core_fns): ...this.
6420 (sh_nbsd_elfcore_fns): Rename to...
6421 (shnbsd_elfcore_fns): ...this.
6422 (sh_nbsd_init_abi): Rename to...
6423 (shnbsd_init_abi): ...this.
6424 (_initialize_sh_nbsd_tdep): Rename to...
6425 (_initialize_shnbsd_tdep): ...this.
6426 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6427 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6428 sh_nbsd_fill_register): Remove prototypes.
6429 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6430
6431 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6432
6433 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6434 (i387-nat.o): Delete dependency list.
6435 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6436 (x86-64-linux-nat.o): Likewise.
6437 * i387-nat.c: Delete file, moving contents to...
6438 * i387-tdep.c: ...here.
6439 * i387-nat.h: Rename...
6440 * i387-tdep.h: ...to this.
6441 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6442 * i386-linux-nat.c: Likewise.
6443 * i386bsd-nat.c: Likewise.
6444 * i386gnu-nat.c: Likewise.
6445 * i386nbsd-nat.c: Likewise.
6446 * i386v4-nat.c: Likewise.
6447 * x86-64-linux-nat.c: Likewise.
6448 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6449 * config/i386/go32.mh (NATDEPFILES): Likewise.
6450 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6451 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6452 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6453 * config/i386/linux.mh (NATDEPFILES): Likewise.
6454 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6455 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6456 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6457 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6458
6459 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6460
6461 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6462 (alphanbsd-nat.o): Remove dependency list.
6463 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6464 * alphanbsd-nat.c: Delete. Contents moved to...
6465 * alphanbsd-tdep.c: ...here.
6466 (_initialize_alphanbsd_tdep): Register core functions.
6467 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6468
6469 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6470
6471 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6472 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6473 (alphanbsd-nat.o): Likewise.
6474 (alphabsd-tdep.o): New dependency list.
6475 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6476 (fill_gregset): Use alphabsd_fill_reg.
6477 (supply_fpregset): Use alphabsd_supply_fpreg.
6478 (fill_fpregset): Use alphabsd_fill_fpreg.
6479 (fetch_inferior_registers): Use struct reg and struct fpreg
6480 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6481 and alphabsd_supply_fpreg.
6482 (store_inferior_registers): Use struct reg and struct fpreg
6483 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6484 and alphabsd_fill_fpreg.
6485 * alphabsd-tdep.c: New file.
6486 * alphabsd-tdep.h: New file.
6487 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6488 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6489 alphabsd_supply_fpreg.
6490 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6491 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6492
6493 2002-05-11 Eric Christopher <echristo@redhat.com>
6494
6495 * mips-tdep.c (mips_double_register_type): Fix thinko.
6496 (mips_single_register_type): Ditto.
6497 * MAINTAINERS: Add self.
6498
6499 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6500
6501 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6502 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6503 right thing on architectures with different endianness and/or
6504 integer sizes.
6505
6506 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6507
6508 From Christian Limpach <chris@Pin.LU>
6509 * configure.in: Change sed expression which comments out
6510 NATDEPFILES to also comment out continuation lines.
6511 * configure: Regenerate.
6512
6513 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6514
6515 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6516 big patch.
6517
6518 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * sh-tdep.c: Include correct file.
6521
6522 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6523
6524 New support for sh64-elf (sh5) target.
6525
6526 * configure.tgt: For sh64-elf target, default to sh-elf.
6527
6528 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6529 (struct gdbarch_tdep): Add new fields for new registers and ABI
6530 info.
6531
6532 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6533 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6534 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6535 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6536 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6537 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6538 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6539 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6540 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6541 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6542 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6543 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6544 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6545 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6546 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6547 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6548 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6549 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6550 sign_extend, sh64_nofp_frame_init_saved_regs,
6551 sh64_init_extra_frame_info, sh64_get_saved_register,
6552 sh64_extract_struct_value_address, sh64_pop_frame,
6553 sh64_push_arguments, sh64_extract_return_value,
6554 sh64_store_return_value, sh64_show_media_regs,
6555 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6556 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6557 sh_sh64_register_virtual_type,
6558 sh_sh64_register_convert_to_virtual,
6559 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6560 sh64_register_read, sh64_pseudo_register_write,
6561 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6562 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6563 sh64_do_pseudo_register, sh_compact_do_registers_info,
6564 sh64_do_registers_info, sh_gdbarch_init): New functions.
6565
6566 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6567
6568 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6569
6570 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6571
6572 * linespec.c (decode_line_1): Check for a double quote after
6573 a filename correctly.
6574
6575 2002-05-10 Jim Blandy <jimb@redhat.com>
6576
6577 Properly track the size of the current objfile's .debug_line section.
6578 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6579 (DWARF_LINE_SIZE): New macro.
6580 (dwarf2_build_psymtabs_hard): Record the line section's size in
6581 the partial symbol table.
6582 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6583 symbol table.
6584
6585 2002-05-10 Petr Sorfa <petrs@caldera.com>
6586
6587 * ia64-tdep.c: Handle breakpoints on L instruction type
6588 in MLX instruction bundle by moving the breakpoint to
6589 the third slot (X instruction type) as L holds only data.
6590
6591 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6592
6593 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6594 (process_one_symbol): Complain about discarding local symbols
6595 due to a misplaced N_LBRAC entry.
6596
6597 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6598
6599 From Daniel Berlin <dan@cgsoftware.com>
6600 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6601 decrease the depth we are at, in the case of templates.
6602
6603 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6604
6605 * mips-tdep.c (mips_float_register_type): New function.
6606 (mips_double_register_type): New function.
6607 (mips_print_register): Use them.
6608 (do_fp_register_row): Likewise.
6609
6610 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6611
6612 * signals/signals.c (signals): Remove conditional compilation around
6613 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6614 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6615
6616 2002-05-09 Michael Snyder <msnyder@redhat.com>
6617
6618 * remote-rdp.c (remote_rdp_can_run): Remove.
6619
6620 2002-05-09 Tom Tromey <tromey@redhat.com>
6621
6622 * jv-valprint.c (java_val_print): Handle `char' as a special case
6623 of TYPE_CODE_INT.
6624
6625 2002-05-09 Michael Snyder <msnyder@redhat.com>
6626
6627 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6628 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6629 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6630 str r(0123),[sp,#nn].
6631 (arm_skip_prologue): Ditto. Also make disassembly
6632 order-independent by placing it in a loop.
6633
6634 2002-05-06 Michael Snyder <msnyder@redhat.com>
6635
6636 * stabsread.c (read_type): Add recognition for new attribute:
6637 "@V;" means that an array type is actually a vector.
6638 This is analogous to the vector flag that's been added to dwarf2.
6639
6640 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6641
6642 * i386-tdep.h (i386_abi): New enum.
6643 (struct gdbarch_tdep): Replace os_ident member with abi.
6644 (i386_gdbarch_register_os_abi): New prototype.
6645 * i386-tdep.c (i386_abi_names): New array.
6646 (process_note_abi_tag_sections): Removed.
6647 (process_note_sections): New function.
6648 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6649 (struct i386_abi_handler): New struct.
6650 (i386_abi_handler_list): New variable.
6651 (i386_gdbarch_register_os_abi): New function.
6652 (i386_gdbarch_init): Adapt for the changes given above.
6653
6654 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6655
6656 * gregset.h: Say "GNU/Linux".
6657
6658 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6659
6660 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6661 (build_gdbtypes): Build builtin_type_v2_float.
6662 (_initialize_gdbtypes): Register new builtin type.
6663
6664 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6665
6666 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6667 (clear_gdbarch_swap): New function.
6668 (initialize_non_multiarch): Call.
6669 (gdbarch_update_p): Before calling init(), swap out and clear the
6670 existing architecture.
6671 * gdbarch.c: Regenerate.
6672
6673 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6674
6675 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6676 alphanbsd-tdep.c.
6677
6678 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6679
6680 * sh-nbsd-nat.c: Rename to...
6681 * shnbsd-nat.c: ...this.
6682 * sh-nbsd-tdep.c: Rename to...
6683 * shnbsd-tdep.c: ...this.
6684 * sh-nbsd-tdep.h: Rename to...
6685 * shnbsd-tdep.h: ...this.
6686 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6687 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6688
6689 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6690
6691 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6692 concatenation for command help messages.
6693
6694 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6695
6696 * NEWS: Note new sh*-*-netbsdelf* configuration.
6697 * configure.host: Set gdb_host_cpu to sh for all sh*.
6698 (sh*-*-netbsdelf*): New host.
6699 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6700 (sh*-*-netbsdelf*): New target.
6701 * sh-nbsd-nat.c: New file.
6702 * sh-nbsd-tdep.c: New file.
6703 * sh-nbsd-tdep.h: New file.
6704 * config/sh/nbsd.mh: New file.
6705 * config/sh/nbsd.mt: New file.
6706 * config/sh/nm-nbsd.h: New file.
6707 * config/sh/tm-nbsd.h: New file.
6708
6709 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6710
6711 * sh-tdep.c (sh_osabi_names): Declare.
6712 (process_note_abi_tag_sections): New function.
6713 (get_elfosabi): Ditto.
6714 (sh_gdbarch_register_os_abi): Ditto.
6715 (sh_dump_tdep): Ditto.
6716 _initialize_sh_tdep): Use gdbarch_register to register
6717 sh_gdbarch_init and sh_dump_tdep.
6718 * config/sh/tm-sh.h (sh_osabi): Declare.
6719 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6720
6721 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6722
6723 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6724 (thumb_scan_prologue): Ditto.
6725 (arm_find_callers_reg): Ditto.
6726 (arm_frame_chain): Ditto.
6727 (arm_init_extra_frame_info): Ditto.
6728 (arm_frame_saved_pc): Ditto.
6729 (arm_pop_frame): Ditto.
6730 (arm_push_return_address): New function.
6731 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6732 call_dummy_location, call_dummy_breakpoint_offset_p,
6733 call_dummy_breakpoint_offset, call_dummy_p,
6734 call_dummy_stack_adjust_p, call_dummy_words,
6735 sizeof_call_dummy_words, call_dummy_start_offset,
6736 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6737 call_dummy_address, push_return_address and push_dummy_frame for
6738 generic dummy frames.
6739
6740 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6741
6742 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6743 size computation for alloca.
6744 (sh_fp_frame_init_saved_regs): Likewise.
6745
6746 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6747
6748 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6749 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6750 * arm-tdep.c (arm_store_return_value): Use them.
6751 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6752 * remote-rdp.c (remote_rdp_fetch_register): Use
6753 ARM_MAX_REGISTER_RAW_SIZE.
6754 (remote_rdp_store_register): Likewise.
6755
6756 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6757
6758 * dwarf2cfi.c: Code cleanup, removed unused variables,
6759 added default labels to switch {} statements.
6760 * x86-64-tdep.c: Ditto.
6761 * x86-64-linux-nat.c: Ditto.
6762
6763 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6764
6765 * solib.h: Protect against multiple inclusion.
6766
6767 2002-05-06 Jim Blandy <jimb@redhat.com>
6768
6769 Add first preprocessor macro-expansion files.
6770 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6771 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6772 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6773 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6774 (COMMON_OBS): Add macrotab.o, macroexp.o.
6775 (macroexp.o, macrotab.o): New rules.
6776
6777 Separate the job of reading the line number info statement program
6778 header (...expialidocious) out into its own function.
6779 * dwarf2read.c (struct line_head, struct filenames, struct
6780 directories): Replace with...
6781 (struct line_header): New structure, containing the full
6782 contents of the statement program header, including the
6783 include directory and file name tables.
6784 (read_file_scope): If we have line number info, instead of just
6785 calling dwarf_decode_lines to do all the work, call
6786 dwarf_decode_line_header first to get a `struct line_header'
6787 containing the data in the statement program header, and then
6788 pass that to dwarf_decode_lines, which will pick up where that
6789 left off. Be sure to clean up the `struct line_header' object.
6790 (dwarf_decode_line_header, free_line_header, add_include_dir,
6791 add_file_name): New functions.
6792 (dwarf_decode_lines): Move all the code to read the statement
6793 program header into dwarf_decode_line_header. Take the line
6794 header it built as the first argument, instead of the offset to
6795 the compilation unit's line number info. Use the new `struct
6796 line_header' type instead of the old structures. No need to do
6797 cleanups here now, since we don't allocate anything.
6798 (dwarf2_statement_list_fits_in_line_number_section,
6799 dwarf2_line_header_too_long): New complaints.
6800
6801 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6802
6803 * gdbtypes.c (init_vector_type): New function.
6804 (build_builtin_type_vec128): Simplify the representation of SIMD
6805 registers.
6806 (build_gdbtypes): Initialize new builtin vector types.
6807 (_initialize_gdbtypes): Register new vector types with gdbarch.
6808 (builtin_type_v4_float, builtin_type_v4_int32,
6809 builtin_type_v8_int16, builtin_type_v16_int8,
6810 builtin_type_v2_int32, builtin_type_v4_int16,
6811 builtin_type_v8_int8): New (renamed) SIMD types.
6812
6813 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6814
6815 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6816 (i387_fill_fxsave): Likewise.
6817
6818 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6819
6820 * alpha-tdep.c (alpha_extract_return_value): Don't use
6821 non-constant array size in prototype.
6822
6823 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6824
6825 From Brian Taylor <briant at model dot com>:
6826 * ui-out.c (ui_out_field_core_addr): Use the function
6827 longest_local_hex_string_custom'to format addresses > 32 bits
6828 wide.
6829
6830 * ui-out.c (ui_out_field_core_addr): Update comment.
6831
6832 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6833
6834 * stack.c (select_and_print_frame): Make static. Delete the
6835 parameter `level'.
6836 (func_command): Update call.
6837 (select_frame_command): Delete code computing the frame level.
6838 * frame.h (select_and_print_frame): Delete declaration.
6839
6840 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6841
6842 * sparc-tdep.c (sparc_get_saved_register): Comment why
6843 get_prev_frame call is safe.
6844
6845 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6846
6847 * frame.h (select_frame): Delete level parameter.
6848 * stack.c (select_frame): Update. Use frame_relative_level to
6849 obtain the frame's level.
6850 (select_and_print_frame): Update call.
6851 (select_frame_command): Ditto.
6852 (up_silently_base): Ditto.
6853 (down_silently_base): Ditto.
6854 * ocd.c (ocd_start_remote): Ditto.
6855 * remote-rdp.c (remote_rdp_open): Ditto.
6856 * remote-mips.c (mips_initialize): Ditto.
6857 (common_open): Ditto.
6858 * remote-e7000.c (e7000_start_remote): Ditto.
6859 * m3-nat.c (select_thread): Ditto.
6860 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6861 (child_get_current_exception_event): Ditto.
6862 * varobj.c (varobj_create): Ditto.
6863 (varobj_update): Ditto.
6864 (c_value_of_root): Ditto.
6865 * tracepoint.c (finish_tfind_command): Ditto.
6866 * corelow.c (core_open): Ditto.
6867 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6868 * thread.c (info_threads_command): Ditto.
6869 (switch_to_thread): Ditto.
6870 * infrun.c (normal_stop): Ditto.
6871 (restore_selected_frame): Ditto.
6872 (restore_inferior_status): Ditto.
6873 * breakpoint.c (insert_breakpoints): Ditto.
6874 (watchpoint_check): Ditto.
6875 (bpstat_stop_status): Ditto.
6876 (do_enable_breakpoint): Ditto.
6877 * blockframe.c (flush_cached_frames): Ditto.
6878 (reinit_frame_cache): Ditto.
6879
6880 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6881
6882 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6883 maintainer.
6884
6885 2002-05-04 Jim Blandy <jimb@redhat.com>
6886
6887 * gdbtypes.c (replace_type): Doc fix.
6888
6889 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6890
6891 * valprint.c (strcat_longest): Delete commented out function.
6892 Update copyright.
6893
6894 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6895
6896 * MAINTAINERS: Mark a29k as deleted.
6897 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6898 Move new configurations to the top.
6899 * configure.tgt: Remove a29k.
6900 * config/a29k/tm-vx29k.h: Delete.
6901 * config/a29k/vx29k.mt: Delete.
6902 * config/a29k/tm-a29k.h: Delete.
6903 * config/a29k/a29k-udi.mt: Delete.
6904 * config/a29k/a29k.mt: Delete.
6905 * a29k-tdep.c: Delete.
6906 * remote-udi.c: Delete.
6907 * remote-mm.c: Delete.
6908 * remote-eb.c: Delete.
6909 * remote-adapt.c: Delete.
6910 * Makefile.in: Remove obsolete code.
6911 * config/s390/s390x.mt: Ditto.
6912 * config/s390/s390.mt: Ditto.
6913 * config/sparc/sparclynx.mh: Ditto.
6914 * config/sparc/linux.mh: Ditto.
6915 * config/pa/hppaosf.mh: Ditto.
6916 * config/pa/hppabsd.mh: Ditto.
6917 * config/ns32k/nbsd.mt: Ditto.
6918 * config/mips/vr5000.mt: Ditto.
6919 * config/m68k/sun3os4.mh: Ditto.
6920 * config/m68k/nbsd.mt: Ditto.
6921 * config/m68k/m68klynx.mh: Ditto.
6922 * config/m32r/m32r.mt: Ditto.
6923 * config/i386/x86-64linux.mt: Ditto.
6924 * config/i386/nbsdelf.mt: Ditto.
6925 * config/i386/nbsd.mt: Ditto.
6926 * config/i386/i386lynx.mh: Ditto.
6927
6928 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6929
6930 * target.c (debug_print_register): New function. Handle oversize
6931 registers.
6932 (debug_to_fetch_registers): Call.
6933 (debug_to_store_registers): Call.
6934
6935 2002-05-03 Jim Blandy <jimb@redhat.com>
6936
6937 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6938 (read_type): Doc fix.
6939 * gdbtypes.c (replace_type): Doc fix.
6940
6941 * stabsread.c (multiply_defined_struct): New complaint.
6942 (read_struct_type): If the type we were passed isn't empty, or
6943 incomplete, don't read the new struct type into it; complain,
6944 and return the original type unchanged. Take a new `type_code'
6945 argument, which is the type code for the new type.
6946 (read_type): Rather than storing the type's type code here, pass
6947 it as an argument to read_struct_type, and let that take care of
6948 storing it. That way, we don't overwrite the original type code,
6949 so read_struct_type can use it to decide whether we're overwriting
6950 something we shouldn't.
6951 (complain_about_struct_wipeout): New function.
6952
6953 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6954
6955 * gdbarch.sh: Assert that gdbarch is non-NULL.
6956 * gdbarch.c: Regenerate.
6957
6958 2002-05-03 Jason Merrill <jason@redhat.com>
6959
6960 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6961 and return NULL.
6962
6963 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6964
6965 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6966 (x86_64_dwarf2gdb_regno_map_length),
6967 (x86_64_dwarf2_reg_to_regnum): Added.
6968 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6969 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6970 (_initialize_x86_64_tdep): Synced with the change above.
6971 (x86_64_skip_prologue): Reformulated message.
6972
6973 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6974
6975 * f-exp.y: Also use new prev_lexptr variable
6976 to improve error reporting. Based on Michael Snyder
6977 2002-04-24 dated patch to c-exp.y.
6978 * jv-exp.y: Likewise.
6979 * m2-exp.y: Likewise.
6980
6981 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6982
6983 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6984 we are dealing with vectors.
6985
6986 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6987
6988 * config/m68k/tm-nbsd.h: Obvious fix,
6989 correct machine name.
6990
6991 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6992
6993 * p-typeprint.c (pascal_type_print_base): Add support
6994 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6995
6996 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6997
6998 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6999 for fondamental pascal 'char' type.
7000
7001 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7002
7003 * p-lang.h (is_pascal_string_type): Declaration changed,
7004 new sixth argument of type char ** added.
7005 * p-lang.c (is_pascal_string_type): Implementation
7006 changed. Args length_pos, length_size, string_pos, char_size
7007 can now be NULL. New argument arrayname set to the field
7008 name of the char array. Return value set to char array
7009 field index plus one.
7010 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7011 is_pascal_string_type function.
7012
7013 2002-05-02 Andrew Cagney <cagney@redhat.com>
7014
7015 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7016 <cagney@redhat.com> change.
7017 * gdbarch.c: Regenerate.
7018
7019 2002-05-02 Andrew Cagney <cagney@redhat.com>
7020
7021 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7022 before probing for a new one. Detect errorenous gdbarch_init
7023 functions.
7024 * gdbarch.c: Regenerate.
7025
7026 2002-05-01 Andrew Cagney <cagney@redhat.com>
7027
7028 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7029 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7030 * config/v850/tm-v850.h: Ditto. Update copyright.
7031
7032 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7033
7034 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7035 current_gdbarch.
7036
7037 2002-04-30 Michael Snyder <msnyder@redhat.com>
7038
7039 * arm-tdep.c: Whitespace clean-ups.
7040 (arm_skip_prologue): Fix thinko; two lines
7041 should have been removed as part of 4/24 change.
7042
7043 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7044
7045 * rs6000-tdep.c: Added comment describing how fpscr register
7046 numbers were chosen.
7047
7048 2002-04-30 Michael Snyder <msnyder@redhat.com>
7049
7050 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7051
7052 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7053
7054 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7055 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7056 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7057
7058 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7059
7060 From Louis Hamilton <hamilton@redhat.com>:
7061 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7062 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7064 not bfd-private xcoff data, to determine wordsize.
7065 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7066
7067 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7068
7069 GDB 5.2 released from 5.2 branch.
7070
7071 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7072
7073 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7074 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7075 (x86_64_register_info_table): Added comments with register numbers.
7076
7077 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7078
7079 * rs6000-tdep.c (rs6000_extract_return_value,
7080 rs6000_store_return_value): Handle returning vectors.
7081 (rs6000_gdbarch_init): Use
7082 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7083 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7084 New function.
7085 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7086 vectors.
7087 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7088 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7089
7090 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7091
7092 * hpread.c (hpread_psymtab_to_symtab_1,
7093 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7094 with fprintf_unfiltered (gdb_stderr,...).
7095
7096 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7097
7098 * remote-array.c (printf_monitor, write_monitor,
7099 array_insert_breakpoint, array_remove_breakpoint ):
7100 Replace fprintf (stderr,...
7101 with fprintf_unfiltered (gdb_stderr,....
7102 * remote-es.c: Likewise.
7103 * remote-os9k.c: Likewise.
7104 * remote-st.c: Likewise.
7105
7106 2002-04-28 Andreas Schwab <schwab@suse.de>
7107
7108 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7109 linux-proc.o and gcore.o.
7110
7111 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7112
7113 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7114 code without frame pointers.
7115
7116 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7117
7118 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7119 ON_STACK is needed.
7120
7121 2002-04-26 Ben Elliston <bje@redhat.com>
7122
7123 * target.c (do_xfer_memory): Correct reference to the new option
7124 "trust-readonly-sections".
7125
7126 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7127
7128 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7129 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7130 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7131 vectors.
7132 (read_array_type): Record the fact that this array type is really a
7133 vector (i.e. are passed in by value).
7134
7135 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7138 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7139 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7140 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7141 * alpha-linux-tdep.c: Include frame.h.
7142 (alpha_linux_sigcontext_addr): New function.
7143 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7144 alpha_linux_sigcontext_addr.
7145 * alpha-osf1-tdep.c: Include gdbcore.h.
7146 (alpha_osf1_sigcontext_addr): New function.
7147 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7148 alpha_osf1_sigcontext_addr.
7149 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7150 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7151
7152 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7153
7154 * stack.c (selected_frame_level):
7155 (select_frame): Do not set selected_frame_level.
7156 * frame.h (selected_frame_level): Delete declaration.
7157
7158 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7159
7160 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7161 convert_from_func_ptr-addr when AIX / PowerOpen.
7162
7163 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7164
7165 * valops.c (hand_function_call): Call
7166 generic_save_call_dummy_addr.
7167 * frame.h (generic_save_call_dummy_addr): Declare.
7168 * blockframe.c (struct dummy_frame): Add fields call_lo and
7169 call_hi.
7170 (generic_find_dummy_frame): Check for PC in range call_lo to
7171 call_hi instead of entry_point_address.
7172 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7173 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7174 (generic_save_call_dummy_addr): New function.
7175
7176 2002-04-24 David S. Miller <davem@redhat.com>
7177
7178 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7179 sparc_skip_prologue.
7180 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7181 information to find prologue when possible.
7182 (sparc_prologue_frameless_p): Call examine_prologue directly.
7183 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7184 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7185 second argument.
7186 (SKIP_PROLOGUE): Likewise.
7187
7188 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7191 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7192 indicate that the condition it was testing is always true.
7193 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7194 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7195 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7196
7197 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7198
7199 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7200 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7201 tdep->jb_pc and tdep->jb_elt_size.
7202 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7203 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7204 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7205 * alpha-nat.c (get_longjmp_target): Remove.
7206 (JB_ELEMENT_SIZE): Ditto.
7207 (JB_PC): Ditto.
7208 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7209 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7210 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7211 to alpha_get_longjmp_target.
7212 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7213 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7214 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7215
7216 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7217
7218 * README: Update to GDB 5.2.
7219
7220 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7221
7222 * gdbarch.sh (LC_ALL): Set to `c'.
7223
7224 2002-04-25 Theodore A. Roth <troth@verinet.com>
7225
7226 * avr-tdep.c: Ran through gdb_indent.sh.
7227
7228 2002-04-25 Theodore A. Roth <troth@verinet.com>
7229
7230 * MAINTAINERS: Add myself as AVR maintainer.
7231 * NEWS: Note new target avr.
7232
7233 2002-04-25 Theodore A. Roth <troth@verinet.com>
7234
7235 * Makefile.in: Add support for AVR target.
7236 * configure.tgt: Add support for AVR target.
7237 * avr-tdep.c: New file
7238 * config/avr/avr.mt: New file.
7239
7240 2002-04-25 Theodore A. Roth <troth@verinet.com>
7241
7242 * MAINTAINERS: Add myself to write-after-approval.
7243
7244 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7245
7246 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7247 with fprintf_unfiltered (gdb_stderr,....
7248
7249 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7250
7251 Fix PR gdb/508.
7252 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7253
7254 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7255
7256 * p-exp.y: Also use new prev_lexptr variable
7257 to improve error reporting. Based on Michael Snyder
7258 2002-04-24 dated patch to c-exp.y.
7259
7260 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7261
7262 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7263 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7264 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7265 to 0.
7266 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7267 and struct value.
7268 (FUNCTION_START_OFFSET): Remove.
7269 (BREAKPOINT): Ditto.
7270
7271 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7274 * NEWS: Ditto.
7275
7276 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7279 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7280 alpha_linux_pc_in_sigtramp.
7281 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7282 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7283 alpha_osf1_pc_in_sigtramp.
7284 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7285 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7286 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7287 alphafbsd_pc_in_sigtramp.
7288 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7289 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7290 alphanbsd_pc_in_sigtramp.
7291 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7292 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7293
7294 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7295
7296 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7297
7298 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7299
7300 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7301 alphanbsd-tdep.c.
7302 (alphanbsd-nat.o): New dependency list.
7303 (alphanbsd-tdep.o): Ditto.
7304 * NEWS: Note new native NetBSD/alpha configuration.
7305 * alphanbsd-nat.c: New file.
7306 * alphanbsd-tdep.c: Ditto.
7307 * configure.host (alpha*-*-netbsd*): New host.
7308 * configure.tgt (alpha*-*-netbsd*): New target.
7309 * config/alpha/nbsd.mh: New file.
7310 * config/alpha/nbsd.mt: Ditto.
7311 * config/alpha/nm-nbsd.h: Ditto.
7312 * config/alpha/tm-nbsd.h: Ditto.
7313
7314 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7317 (alpha-osf1-tdep.o): New dependency list.
7318 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7319 and skip_sigtramp_frame members.
7320 * alpha-linux-tdep.c: Include gdbcore.h.
7321 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7322 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7323 * alpha-osf1-tdep.c: New file.
7324 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7325 alpha-osf1-dep.c.
7326 (alpha_frame_past_sigtramp_frame): New function.
7327 (alpha_dynamic_sigtramp_offset): Ditto.
7328 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7329 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7330 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7331 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7332 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7333 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7334 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7335 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7336 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7337 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7338 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7339 to find_solib_trampoline_target.
7340 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7341 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7342 (SKIP_TRAMPOLINE_CODE): Remove.
7343 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7344 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7345 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7346 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7347 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7348 (PROC_SIGTRAMP_MAGIC): Ditto.
7349 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7350 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7351 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7352 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7353 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7354
7355 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7356
7357 * NEWS: Note that Alpha targets are now multi-arch.
7358
7359 2002-04-24 Michael Snyder <msnyder@redhat.com>
7360
7361 * parser-defs.h (prev_lexptr): New external variable.
7362 * parse.c (parse_exp_1): Set prev_lexptr to null before
7363 calling the language-specific parser.
7364 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7365 (yyerror): Use prev_lexptr in error reporting.
7366
7367 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7368
7369 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7370 * gregset.h: If FILL_FPXREGSET is defined, provide
7371 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7372 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7373 is defined, call fill_fpxregset.
7374
7375 2002-04-24 Roland McGrath <roland@frob.com>
7376
7377 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7378 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7379 (supply_gregset, supply_fpregset): New functions.
7380
7381 * gnu-nat.c (gnu_find_memory_regions): New function.
7382 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7383 (gnu_xfer_memory): Add a cast.
7384
7385 2002-04-24 Michael Snyder <msnyder@redhat.com>
7386
7387 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7388 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7389 of argument regs ("str r(0123), [r11, #-nn"]).
7390 (arm_skip_prologue): Better handling for frameless functions.
7391 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7392 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7393
7394 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7395
7396 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7397 NUM_PSEUDO_REGS can be used.
7398
7399 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7400
7401 * arch-utils.h: Update copyright.
7402
7403 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7404 * gdbarch.h, gdbarch.c: Re-generate.
7405
7406 * inferior.h (IN_SIGTRAMP): Delete definition.
7407 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7408 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7409
7410 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7411 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7412 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7413 (find_proc_framesize): Ditto.
7414 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7415 (alpha_init_extra_frame_info): Ditto.
7416 * infrun.c (handle_inferior_event): Ditto.
7417 (handle_inferior_event): Ditto.
7418 (check_sigtramp2): Ditto.
7419 * blockframe.c (create_new_frame): Ditto.
7420 (get_prev_frame): Ditto.
7421 * ppc-linux-tdep.c: Update comments.
7422 * i386-linux-tdep.c: Update comments.
7423 * breakpoint.c (bpstat_what): Update comment.
7424
7425 2002-04-24 David S. Miller <davem@redhat.com>
7426
7427 * i960-tdep.c (register_in_window_p): New function.
7428 (i960_find_saved_register): Use it instead of
7429 REGISTER_IN_WINDOW_P.
7430 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7431
7432 * symtab.h (find_stab_function_addr): Kill extern.
7433 * minsyms.c (find_stab_function_addr): Remove from here...
7434 * dbxread.c: ... to here, and mark it static.
7435
7436 2002-04-20 David S. Miller <davem@redhat.com>
7437
7438 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7439 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7440
7441 2002-04-21 David S. Miller <davem@redhat.com>
7442
7443 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7444 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7445 (vx_write_register): Likewise.
7446
7447 2002-04-23 J. Brobecker <brobecker@gnat.com>
7448
7449 * source.c (is_regular_file): New function.
7450 (openp): Check wether file to open is a regular file
7451 to avoid opening directories.
7452
7453 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7454
7455 * findvar.c (extract_signed_integer): Cast printf argument
7456 to suppress format warning.
7457 (extract_unsigned_integer): Likewise.
7458 * infcmd.c (registers_info): Likewise.
7459 * top.c (get_prompt_1): Likewise.
7460 * valops.c (value_assign): Likewise.
7461 * valprint.c (print_decimal): Likewise.
7462
7463 2002-04-22 H.J. Lu (hjl@gnu.org)
7464
7465 * c-exp.y (typebase): Support
7466
7467 [long|long long|short] [signed|unsigned] [int|]
7468
7469 and
7470
7471 signed [long|long long|short] int
7472
7473 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7474
7475 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7476 and vax-tdep.h.
7477 * vax-tdep.h: New file.
7478 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7479 Make several routines static.
7480 (vax_get_saved_register): New function.
7481 (vax_gdbarch_init): New function.
7482 (_initialize_vax_tdep): Register vax_gdbarch_init.
7483 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7484 Remove macros now under the control of gdbarch.
7485
7486 2002-04-22 Michael Snyder <msnyder@redhat.com>
7487
7488 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7489 Some whitespace and coding standards tweaks.
7490
7491 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7492
7493 * vax-tdep.c: Include regcache.h.
7494 (vax_call_dummy_words): New.
7495 (sizeof_vax_call_dummy_words): New.
7496 (vax_fix_call_dummy): New function.
7497 (vax_saved_pc_after_call): Ditto.
7498 * config/vax/tm-vax.h: Don't include regcache.h.
7499 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7500 (CALL_DUMMY): Remove.
7501 (CALL_DUMMY_WORDS): Define.
7502 (SIZEOF_CALL_DUMMY_WORDS): Define.
7503 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7504
7505 2002-04-18 Michael Snyder <msnyder@redhat.com>
7506
7507 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7508
7509 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7510
7511 * vax-tdep.c (vax_frame_chain): New function.
7512 (vax_push_dummy_frame): Ditto.
7513 (vax_pop_frame): Ditto.
7514 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7515 (FRAMELESS_FUNCTION_INVOCATION): Use
7516 generic_frameless_function_invocation_not.
7517 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7518 (POP_FRAME): Use vax_pop_frame.
7519
7520 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7521
7522 * vax-tdep.c (vax_store_struct_return): New function.
7523 (vax_extract_return_value): Ditto.
7524 (vax_store_return_value): Ditto.
7525 (vax_extract_struct_value_address): Ditto.
7526 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7527 vax_store_struct_return.
7528 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7529 (STORE_RETURN_VALUE): Use vax_store_return_value.
7530 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7531
7532 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * vax-tdep.c (vax_frame_saved_pc): New function.
7535 (vax_frame_args_address_correct): Ditto.
7536 (vax_frame_args_address): Ditto.
7537 (vax_frame_locals_address): Ditto.
7538 (vax_frame_num_args): Move code to be in proximity to
7539 other frame-related functions.
7540 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7541 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7542 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7543 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7544 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7545
7546 2002-04-22 H.J. Lu (hjl@gnu.org)
7547
7548 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7549 includedir.
7550
7551 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7552
7553 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7554 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7555 (FRAME_INIT_SAVED_REGS): New macro.
7556
7557 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7558
7559 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7560
7561 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7562
7563 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7564 where needed.
7565 (fetch_osf_core_registers): Likewise.
7566 (supply_gregset): Likewise.
7567
7568 2002-04-22 J. Brobecker <brobecker@gnat.com>
7569
7570 * symfile.h (get_section_index): Define.
7571 * symfile.c (get_section_index): New function.
7572 * mdebugread.c (SC_IS_SBSS): New macro.
7573 (SC_IS_BSS): Return true for the scBss storage class only, as
7574 the scSBss storage class refers to the .sbss section.
7575 (parse_partial_symbols): Discard the symbols which associated
7576 section does not exist.
7577 Make sure to use the .sbss section index for symbols which
7578 storage class is scBss, rather than using the .bss section index.
7579
7580 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7581
7582 * vax-tdep.c: Update copyright years.
7583 (vax_register_name): New function.
7584 (vax_register_byte): Ditto.
7585 (vax_register_raw_size): Ditto.
7586 (vax_register_virtual_size): Ditto.
7587 (vax_register_virtual_type): Ditto.
7588 * config/vax/tm-vax.h: Update copyright years.
7589 (REGISTER_NAMES): Remove.
7590 (REGISTER_NAME): Define.
7591 (REGISTER_BYTE): Use vax_register_byte.
7592 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7593 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7594 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7595
7596 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7597
7598 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7599 declaration
7600 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7601
7602 2002-04-21 David S. Miller <davem@redhat.com>
7603
7604 * arch-utils.c (generic_prologue_frameless_p): Kill
7605 SKIP_PROLOGUE_FRAMELESS_P code.
7606 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7607 references.
7608 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7609 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7610 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7611 references.
7612 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7613 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7614 (sparc_gdbarch_init): Pass it to
7615 set_gdbarch_prologue_frameless_p.
7616
7617 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7620 (alphabsd-nat.o): New dependency list.
7621
7622 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7623
7624 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7625 alphafbsd-tdep.c.
7626 (alpha-linux-tdep.o): New dependency list.
7627 (alphafbsd-tdep.o): Likewise.
7628
7629 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7630
7631 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7632 to here...
7633 * alpha-tdep.c: ...from here.
7634 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7635
7636 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7637
7638 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7639 prototype from here...
7640 * alpha-tdep.h: ...to here.
7641
7642 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7643
7644 * frame.h (selected_frame_level): Document as deprecated.
7645 (frame_relative_level): Declare.
7646 * stack.c (frame_relative_level): New function.
7647 (selected_frame_level): Document as deprecated.
7648 (select_frame): Do not set the selected_frame_level.
7649
7650 * stack.c (frame_info, record_selected_frame): Update.
7651 (frame_command, current_frame_command): Update.
7652 (up_silently_base, up_command, down_silently_base): Update.
7653 (down_command): Update.
7654 * inflow.c (kill_command): Update.
7655 * tracepoint.c (finish_tfind_command): Update.
7656 * corelow.c (core_open): Update.
7657 * thread.c (info_threads_command): Update.
7658 (do_captured_thread_select): Update.
7659 * infcmd.c (finish_command): Update.
7660 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7661
7662 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7665
7666 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7667
7668 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7669 type const.
7670
7671 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7672
7673 * alphafbsd-tdep.c: Update copyright years. Include
7674 alpha-tdep.h.
7675 (alphafbsd_use_struct_convention): Make static.
7676 (alphafbsd_init_abi): New function.
7677 (_initialize_alphafbsd_tdep): New function.
7678 * config/alpha/tm-fbsd.h: Update copyright years.
7679 (USE_STRUCT_CONVENTION): Remove.
7680
7681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7682
7683 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7684 an Alpha ABI variant.
7685 (alpha_abi_handler_list): Declare.
7686 (alpha_gdbarch_register_os_abi): New function.
7687 (alpha_gdbarch_init): Give registered ABI variant handlers a
7688 chance to tweak the gdbarch once we have set up defaults.
7689 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7690
7691 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7692
7693 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7694 to standard_coerce_float_to_double.
7695 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7696
7697 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7698
7699 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7700 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7701 from gdbarch_tdep rather than a constant.
7702 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7703 the default text address for all Alpha Unix ABIs.
7704 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7705 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7706
7707 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * alpha-tdep.h: New file. Includes several Alpha target constants
7710 taken from...
7711 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7712 let gdbarch deal with.
7713 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7714 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7715 to dependency list.
7716 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7717 Alpha target register names.
7718 * alphabsd-nat.c: Likewise.
7719 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7720 Alpha target register names. Make serveral routines static.
7721 (alpha_get_saved_register): New function.
7722 (alpha_abi_names): New.
7723 (process_note_abi_tag_sections): New function.
7724 (get_elfosabi): New function.
7725 (alpha_gdbarch_init): New function.
7726 (alpha_dump_tdep): New function.
7727 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7728
7729 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7730
7731 * frame.c (find_saved_register): Delete #ifdef
7732 HAVE_REGISTER_WINDOWS code.
7733 * config/sparc/tm-sparc.h: Update comments.
7734 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7735
7736 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7737
7738 * i960-tdep.c (i960_find_saved_register): New function.
7739 (i960_get_saved_register): New function.
7740 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7741 (i960_get_saved_register): Declare.
7742 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7743
7744 2002-04-20 David S. Miller <davem@redhat.com>
7745
7746 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7747
7748 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7749
7750 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7751 instead of NUM_PSEUDO_REGS.
7752
7753 2002-04-20 David S. Miller <davem@redhat.com>
7754
7755 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7756 GDB_MULTI_ARCH_PARTIAL
7757 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7758 define, let tm-sp64.h do it.
7759
7760 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * frame.c (find_saved_register): Avoid a NULL pointer
7763 dereference and actually walk the frame list.
7764
7765 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7766
7767 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7768 sorted in most most-recent-used order. Document.
7769 * gdbarch.h, gdbarch.c: Regenerate.
7770
7771 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7772
7773 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7774 instead of ->prev.
7775 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7776 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7777 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7778 instead of ->prev.
7779
7780 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7781
7782 Fix PR gdb/471.
7783 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7784 (build_builtin_type_vec128): Ditto.
7785 (append_composite_type_field): Fix calculation of type length in
7786 union case.
7787
7788 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7789
7790 * config/djgpp/README: Update.
7791
7792 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7793 compiler warnings.
7794
7795 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7796
7797 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7798 (alpha_setup_arbitrary_frame): ...to this.
7799 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7800 for alpha_setup_arbitrary_frame.
7801
7802 2002-04-18 Andrew Cagney <cagney@redhat.com>
7803
7804 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7805 * gdbarch.h, gdbarch.c: Regenerate.
7806
7807 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7808 * target.h (memory_breakpoint_from_pc): Update declaration.
7809 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7810
7811 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7812 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7813 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7814 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7815 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7816 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7817 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7818 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7819 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7820 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7821 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7822 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7823
7824 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7825 const pointer.
7826 * monitor.c (monitor_insert_breakpoint): Ditto.
7827 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7828
7829 * config/mcore/tm-mcore.h: Update copyright.
7830 * mem-break.c: Ditto.
7831 * xstormy16-tdep.c: Ditto.
7832
7833 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7834
7835 * p-exp.y: Add precedence rule for '^' token.
7836 This removes the shift/reduce conflicts.
7837 Remove the comment concerning these shift/reduce conflicts.
7838
7839 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7840
7841 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7842 (registers_powerpc_nofp): New register set for processors
7843 without floating point unit.
7844
7845 2002-04-18 David S. Miller <davem@redhat.com>
7846
7847 * MAINTAINERS: Add myself to write-after-approval.
7848
7849 2002-04-17 Michael Snyder <msnyder@redhat.com>
7850
7851 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7852
7853 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7854
7855 * rs6000-tdep.c (frame_initial_stack_address): Use
7856 frame_register_read to read the alloca_reg.
7857
7858 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7859
7860 * frame.c (find_saved_register): Find saved registers in the next
7861 not prev frame.
7862 Fix PR gdb/365.
7863
7864 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7865
7866 * gdbarch.sh (LANG): Set to ``c''.
7867
7868 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7869
7870 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7871
7872 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7873
7874 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7875 Update copyright.
7876
7877 * hpread.c (hpread_get_lntt): Add declaration.
7878 Also fix PR gdb/391.
7879
7880 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7881
7882 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7883 * aclocal.m4, configure: Re-generate.
7884 Fix PR gdb/391.
7885
7886 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7887
7888 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7889 instead of tm_print_insn.
7890
7891 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7892
7893 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7894
7895 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7896
7897 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7898 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7899 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7900
7901 2002-04-12 Don Howard <dhoward@redhat.com>
7902
7903 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7904 max_user_call_depth.
7905 (init_cmd_lists): Initialize the new value;
7906 * cli/cli-script.c (execute_user_command): Limit the call depth of
7907 user defined commands. This avoids a core-dump when user commands
7908 are infinitly recursive.
7909
7910 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7911
7912 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7913 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7914 from tdep struct instead of DEFAULT_LR_SAVE.
7915 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7916 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7917 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7918
7919 2002-04-12 Michael Snyder <msnyder@redhat.com>
7920
7921 * Remote.c: Spelling fix.
7922 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7923 If no symbol found for "sbrk", try "_sbrk".
7924 (make_output_phdrs): Use bfd_section_name.
7925 (gcore_copy_callback): Use bfd_section_name.
7926 * eval.c: Indentation fix-ups.
7927 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7928 in case it gets applied to an address that is already
7929 in the instruction space.
7930 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7931 * symfile.c: Fix indentation, long lines.
7932 * source.c: White space fix-up.
7933
7934 2002-04-12 Andrew Cagney <cagney@redhat.com>
7935
7936 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7937 * frame.c (frame_register_read): New function. Return non-zero on
7938 success.
7939 (read_relative_register_raw_bytes_for_frame): Delete.
7940 (read_relative_register_raw_bytes): Delete.
7941 * frame.h (frame_register_read): Declare.
7942 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7943 * sh-tdep.c: Ditto.
7944 * infcmd.c (do_registers_info): Ditto.
7945 * hppa-tdep.c: Ditto.
7946 * rs6000-tdep.c: Ditto.
7947 * h8500-tdep.c: Ditto.
7948 * mips-tdep.c: Ditto.
7949 * h8300-tdep.c: Ditto.
7950 * z8k-tdep.c: Ditto.
7951
7952 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7953
7954 From Jimi X <jimix@watson.ibm.com>:
7955 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7956 64-bit SysV ABI.
7957
7958 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7959
7960 From Jimi X <jimix@watson.ibm.com>:
7961 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7962 bfd info.
7963
7964 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7965
7966 From Jimi X <jimix@watson.ibm.com>:
7967 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7968 register sets for these processor variants.
7969
7970 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7971
7972 * regformats/reg-ppc.dat: Support FPSCR.
7973
7974 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7975
7976 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7977 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7978 Add fpscr as an invalid/unfetchable register.
7979 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7980 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7981 (fill_fpregset): Add support for register fpscr.
7982 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7983 (fill_gregset): Account for the fact that register ``mq'' might
7984 not exist.
7985 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7986 (registers_power): Add fpscr to register set at slot 71.
7987 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7988 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7989
7990 2002-04-11 Michael Snyder <msnyder@redhat.com>
7991
7992 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7993 * configure: Regenerate.
7994 * config.in: Regenerate.
7995 * acconfig.h: Add define for _SYSCALL32.
7996 * core-sol2.c: Remove #define _SYSCALL32.
7997 * solib-legacy.c: Remove #define _SYSCALL32.
7998
7999 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8000
8001 * stack.c (select_frame): Cleanup internal error message, do not
8002 use %p.
8003
8004 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8005
8006 * stack.c (select_frame): Check that selected_frame and the
8007 specified level are as expected.
8008 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8009 Update copyright.
8010 * frame.h (struct frame_info): Add field `level'. Update
8011 copyright.
8012 Work-in-progress PR gdb/464.
8013
8014 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8015
8016 * maint.c (maint_print_section_info): Rename print_section_info.
8017 (print_bfd_section_info, print_objfile_section_info): Update.
8018 * inferior.h (struct gdbarch): Add opaque declaration.
8019 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8020 * gdbarch.h: Regenerate.
8021
8022 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8023
8024 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8025 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8026 (kernel_u_size): Added.
8027 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8028 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8029
8030 2002-04-04 Jim Ingham <jingham@apple.com>
8031
8032 * valarith.c (find_size_for_pointer_math): New function, either returns
8033 the size for a pointer's target, returns 1 for void *, or errors for
8034 incomplete types.
8035 (value_add, value_sub): use find_size_for_pointer_math.
8036
8037 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * linux-low.c (linux_look_up_symbols): New hook.
8040 (linux_target_ops): Add linux_look_up_symbols.
8041 * remote-utils.c (decode_address): New function.
8042 (look_up_one_symbol): New function.
8043 * server.c (handle_query): Call target look_up_symbols hook.
8044 * server.h (look_up_one_symbol): Add prototype.
8045 * target.h (struct target_ops): Add look_up_symbols hook.
8046
8047 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8048
8049 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8050 override FP_REGNUM with frame->fp. Update copyright.
8051 * parse.c (num_std_regs, std_regs): Delete.
8052 (target_map_name_to_register): Do not search std_regs. Update
8053 function description.
8054 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8055 declarations. Update copyright.
8056 Fix PR gdb/251.
8057
8058 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8059
8060 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8061 after the last symbol in a block.
8062
8063 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8064
8065 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8066 is non zero as a found symbol.
8067
8068 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8069
8070 * findvar.c: Include "builtin-regs.h".
8071 (value_of_register): Call value_of_builtin_reg when applicable.
8072 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8073 (target_map_name_to_register): Call
8074 builtin_reg_map_name_to_regnum.
8075 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8076 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8077 (builtin_regs_h): Define.
8078 (builtin-regs.o): New target.
8079 (findvar.o): Add $(builtin_regs_h).
8080 * builtin-regs.c, builtin-regs.h: New files.
8081 * std-regs.c: New file.
8082 Partial fix for PR gdb/251.
8083
8084 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8085
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8087 it's no longer required.
8088
8089 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8090
8091 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8092
8093 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8094
8095 From Jimi X <jimix@watson.ibm.com>:
8096 * rs6000-tdep.c (rs6000_software_single_step): Use
8097 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8098 and size. Use target_insert_breakpoint() and
8099 target_remove_breakpoint() to insert and remove breakpoints
8100 instead of explicit memory reads and writes.
8101
8102 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8103
8104 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8105 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8106 ELF_OBJECT_FORMAT ifdef.
8107
8108 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8109
8110 From Jimi X <jimix@watson.ibm.com>:
8111 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8112
8113 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8114
8115 From Jimi X <jimix@watson.ibm.com>:
8116 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8117 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8118
8119 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8120
8121 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8122 s/asprintf/xasprintf/.
8123 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8124
8125 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8126
8127 I believe Jeff Law denies responsability for this one:
8128 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8129 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8130 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8131 Work-around for PR gdb/366.
8132
8133 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8134
8135 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8136 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8137 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8138
8139 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8140
8141 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8142 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8143 information.
8144
8145 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8146
8147 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8148 maintainer.
8149
8150 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8151
8152 * README (Reporting Bugs in GDB): Document the bug web page as the
8153 prefered way of submitting bugs.
8154 Fix PR gdb/402.
8155
8156 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8157
8158 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8159 -1. Update comment.
8160 * gdbarch.h, gdbarch.c: Re-generate.
8161
8162 2002-04-07 Andreas Schwab <schwab@suse.de>
8163
8164 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8165 buffer to regcache_collect.
8166
8167 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8168
8169 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8170 * gdbarch.c, gdbarch.h: Re-generate.
8171
8172 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8173
8174 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8175 declaration. Fix -Werror.
8176
8177 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8178
8179 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8180 * gdbarch.c: Regenerate.
8181
8182 2002-04-05 Michael Snyder <msnyder@redhat.com>
8183
8184 * breakpoint.c (clear_command): Rewrite middle section to
8185 combine two loops with identical control conditions.
8186 Add a cleanup to eliminate a memory leak.
8187 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8188
8189 2002-04-05 H.J. Lu (hjl@gnu.org)
8190
8191 * solib-svr4.c (bkpt_names): Add "__start".
8192
8193 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8194
8195 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8196 as test for 64 bit target.
8197
8198 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8199
8200 * h8500-tdep.c (h8500_write_fp): Delete function.
8201 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8202 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8203 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8205 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8206 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8207 (s390_write_fp):
8208 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8209 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8210 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8211 (d10v_write_fp): Delete function.
8212 * inferior.h (write_fp, generic_target_write_fp): Delete
8213 declarations.
8214 * regcache.c (generic_target_write_fp): Delete function.
8215 (write_fp): Delete function.
8216 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8217 * gdbarch.h, gdbarch.c: Regenerate.
8218 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8219 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8220 (sparc64_write_fp): Delete declaration.
8221 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8222 (h8500_write_fp): Delete declaration.
8223
8224 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8225
8226 * sparc-tdep.c (sparc64_write_fp): Delete.
8227 (sparc_push_dummy_frame): Replace write_fp call with code to store
8228 the FP directly.
8229 (sparc_gdbarch_init): Do not initialize write_fp.
8230
8231 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8232
8233 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8234 clause.
8235
8236 2002-03-29 Jim Blandy <jimb@redhat.com>
8237
8238 * stack.c (get_selected_block): Add new argument `addr_in_block',
8239 used to return the exact code address we used to select the block,
8240 not just the block.
8241 * blockframe.c (get_frame_block, get_current_block): Same.
8242 * frame.h (get_frame_block, get_current_block,
8243 get_selected_block): Update declarations.
8244 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8245 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8246
8247 2002-04-05 Michael Snyder <msnyder@redhat.com>
8248
8249 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8250 warning message.
8251
8252 2002-04-05 J. Brobecker <brobecker@gnat.com>
8253
8254 * utils.c (xfullpath): New function.
8255 * defs.h (xfullpath): Add declaration.
8256 * source.c (openp): Use xfullpath in place of gdb_realpath to
8257 avoid resolving the basename part of filenames when the
8258 associated file is a symbolic link. This fixes a potential
8259 inconsistency between the filenames known to GDB and the
8260 filenames it prints in the annotations.
8261 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8262 to be able to match a filename with either the real filename, or
8263 the name of any symbolic link to this file.
8264 (lookup_partial_symtab): Ditto.
8265
8266 2002-04-04 Michael Snyder <msnyder@redhat.com>
8267
8268 * breakpoint.c: Add support for hardware breakpoints in overlays.
8269 (overlay_events_enabled): New state variable.
8270 (insert_breakpoints): Use overlay_events_enabled to decide
8271 whether to attempt to set a breakpoint at the overlay load addr.
8272 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8273 (remove_breakpoint): Use overlay_events_enabled to decide
8274 whether breakpoints need to be removed from overlay load addr.
8275 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8276 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8277 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8278 disable_overlay_breakpoints): Update overlay_events_enabled.
8279
8280 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * dwarf2read.c (struct function_range): New.
8283 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8284 (check_cu_functions): New.
8285 (read_file_scope): Initialize global function lists.
8286 Call dwarf_decode_line after processing children.
8287 (read_func_scope): Add to global function list.
8288 (dwarf_decode_lines): Call check_cu_functions everywhere
8289 record_line is called. Call record_line with a linenumber
8290 of 0 to mark sequence ends.
8291
8292 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8293
8294 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8295 change sync with glibc.
8296
8297 2002-04-03 Jim Blandy <jimb@redhat.com>
8298
8299 * configure.in: Call AC_C_INLINE.
8300 * configure: Regenerated.
8301
8302 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8303
8304 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8305 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8306
8307 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8308
8309 * NEWS: Mention gcore support on FreeBSD/i386.
8310
8311 * fbsd-proc.c: New file.
8312 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8313 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8314
8315 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8316 while statement.
8317
8318 2002-03-29 Jim Blandy <jimb@redhat.com>
8319
8320 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8321 unescaped newlines in string literals, but newer ones don't. So
8322 escape them.
8323
8324 2002-03-26 Michael Snyder <msnyder@redhat.com>
8325 Andrew Cagney <cagney@redhat.com>
8326
8327 * cli/cli-dump.c: New file. Dump memory to file,
8328 restore file to memory.
8329 * cli/cli-dump.h: New file.
8330 * Makefile.in: Add rules, dependencies for cli-dump.o.
8331 * NEWS: Mention new commands.
8332
8333 2002-03-28 Michael Snyder <msnyder@redhat.com>
8334
8335 * symfile.c (symbol_file_add): Move test for null symbols to later.
8336
8337 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8338
8339 From veksler at il.ibm.com:
8340 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8341 the xstrduped original path.
8342 Fix PR gdb/417.
8343
8344 2002-03-27 Michael Snyder <msnyder@redhat.com>
8345
8346 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8347 * infcmd.c (_initialize_infcmd): Ditto.
8348 * language.c (_initialize_language): Ditto.
8349 * symfile.c (_initialize_symfile): Ditto.
8350 * top.c (_init_main): Ditto.
8351 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8352
8353 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8354
8355 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8356 vector registers handling.
8357 (skip_prologue): Handle new AltiVec instructions. Fill in new
8358 fields of frame data.
8359 (frame_get_saved_regs): Fill in information for AltiVec registers.
8360
8361 2002-03-27 Jim Blandy <jimb@redhat.com>
8362
8363 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8364 a function; leave this macro here to invoke that function.
8365 (symbol_init_mangled_name): Declaration for that function.
8366 * symtab.c (symbol_init_mangled_name): New function.
8367
8368 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8369
8370 * valarith.c: Replace strerror with safe_strerror.
8371 * tracepoint.c: Ditto.
8372 * lin-lwp.c: Ditto.
8373 * go32-nat.c: Ditto.
8374 * inflow.c: Ditto.
8375 * gnu-nat.c: Ditto.
8376
8377 2002-03-27 Andreas Schwab <schwab@suse.de>
8378
8379 * event-top.c (command_line_handler): Remove useless if.
8380
8381 2002-03-27 Andreas Jaeger <aj@suse.de>
8382
8383 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8384 comment.
8385
8386 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8387
8388 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8389 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8390 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8391 (x86_64_linux_dr_get_status, supply_gregset),
8392 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8393 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8394 (x86_64_register_info_table): Add.
8395 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8396 (x86_64_register_raw_size, x86_64_register_virtual_type),
8397 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8398 general x86_64_register_info_table.
8399 (i386_gdbarch_init): gdbarch_register_bytes is now set
8400 dynamicaly during initialization.
8401 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8402 * gdbserver/linux-x86-64-low.c: Ditto.
8403
8404 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8405
8406 * gdbserver/server.c (main): Call target_signal_to_host_p
8407 and target_signal_to_host on signals received from the remote.
8408 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8409 target_signal_from_host on signals sent to the remote.
8410 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8411 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8412
8413 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8414
8415 * signals/signals.c: Include "server.h" in gdbserver build.
8416 (target_signal_from_name): Don't use STREQ.
8417 (_initialize_signals): Likewise. Don't include function in
8418 gdbserver build.
8419
8420 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8421
8422 * signals.c: Moved to...
8423 * signals/signals.c: Here.
8424 * Makefile (signals.o): Update.
8425
8426 2002-03-26 Jeff Law (law@redhat.com)
8427
8428 * somread.c (som_symtab_read): Remove some commented out code and
8429 updated related comments. Do not set the minimal symbol table to
8430 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8431 in a dynamic executable.
8432 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8433 where we are unable to find the minimal symbol for the given
8434 PC value.
8435
8436 2002-03-25 Jeff Law (law@redhat.com)
8437
8438 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8439
8440 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8441
8442 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8443
8444 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8445
8446 * command.h: Update copyright.
8447 (struct cmd_list_element): Replace definition with opaque
8448 declaration.
8449 (enum cmd_types): Document that it will eventually be moved to
8450 cli/cli-decode.h
8451 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8452 (MALLOCED_REPLACEMENT): Delete macro.
8453 * Makefile.in (cli_decode_h): Add $(command_h).
8454 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8455 * top.c: Include "cli/cli-decode.h".
8456 * completer.c: Include "cli/cli-decode.h".
8457 * maint.c: Include "cli/cli-decode.h".
8458 * cli/cli-decode.h: Include "command.h".
8459 (enum command_class): Delete.
8460 (enum cmd_types): Comment out.
8461 (enum cmd_auto_boolean): Delete.
8462 (enum var_types): Delete.
8463
8464 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8465
8466 * cli/cli-decode.c: Include "gdb_assert.h".
8467 (add_set_or_show_cmd): New static function.
8468 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8469 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8470 all fields, such as func, from the set command.
8471
8472 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8473
8474 * MAINTAINERS (sh-elf): Change warning flag to -w.
8475
8476 2002-03-23 Andrew Cagney <cagney@redhat.com>
8477
8478 * defs.h (error): Add printf format attribute.
8479 * thread-db.c (thread_from_lwp): Fix error format string.
8480 * stack.c (parse_frame_specification): Ditto.
8481 * cli/cli-decode.c (undef_cmd_error): Ditto.
8482 * scm-lang.c (scm_lookup_name): Ditto.
8483 * tracepoint.c (trace_error): Ditto.
8484 * remote-utils.c (usage): Ditto.
8485 * remote.c (compare_sections_command): Ditto.
8486 Fix PR gdb/328.
8487
8488 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8489
8490 * gdbtypes.c (append_composite_type_field): New function.
8491 (init_composite_type): New function.
8492 * gdbtypes.h (append_composite_type_field): Declare.
8493 (init_composite_type): Ditto.
8494
8495 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8496
8497 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8498 function.
8499 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8500 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8501 structure returning convention for SYSV ABI case, but not
8502 for GNU/Linux, FreeBSD, or NetBSD.
8503
8504 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8505
8506 * symtab.h (lookup_block_symbol): Add mangled_name argument
8507 to prototype.
8508
8509 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8510 with new mangled_name argument.
8511 * linespec.c (decode_line_1): Likewise.
8512 * valops (value_of_this): Likewise.
8513 * symtab.c (lookup_transparent_type): Likewise.
8514 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8515 (lookup_symbol): If we are given a mangled name, pass it down
8516 to lookup_symbol_aux.
8517 (lookup_block_symbol): If we are given a mangled name to check
8518 against, only return symbols which match it.
8519
8520 2002-03-22 Christopher Faylor <cgf@redhat.com>
8521
8522 * win32-nat.c (child_create_inferior): Check for proper shell to use
8523 here, in case the user changes it on the fly.
8524 (_initialize_inftarg): Remove shell path considerations.
8525
8526 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8527
8528 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8529 for gdbarch_max_register_raw_size and max_register_virtual_size.
8530 Adjust copyright year.
8531
8532 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8535 in a function to cover the entire beginning of the function
8536 as well if it does not already.
8537
8538 2002-03-21 Tom Rix <trix@redhat.com>
8539
8540 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8541 (rs6000_ptrace64): Renamed from ptrace64.
8542
8543 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8544
8545 * gdbserver/remote-utils.c (remote_open): Don't call
8546 getprotobyname, we're all using TCP here so just use
8547 IPPROTO_TCP.
8548 * gdbserver/gdbreplay.c (remote_open): Ditto.
8549
8550 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8551
8552 * regcache.c (_initialize_regcache): No need to call
8553 build_regcache() at this time; it gets called whenever
8554 the gdbarch changes.
8555
8556 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8557
8558 * sparc-nat.c: Include sys/param.h where possible.
8559
8560 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8561
8562 Fix PR gdb/422.
8563 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8564 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8565 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8566 complex types.
8567 * stabsread.c (rs6000_builtin_type): Likewise.
8568 (read_sun_floating_type): Likewise.
8569
8570 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8571
8572 * stabsread.c (read_member_functions): Remove skip code for duplicate
8573 constructor/destructor methods. Use standard parsing for these
8574 methods and just do not chain them to the list of methods after
8575 parsing.
8576
8577 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8578
8579 * coffread.c: Remove redundant static declarations. Replace
8580 occurrences of `PTR' with `void *'.
8581 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8582 * top.h (quit_cover): Likewise.
8583 * defs.h (catch_errors): Likewise.
8584
8585 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8586
8587 * defs.h (XMALLOC): Define.
8588 * gdb-events.sh (XMALLOC): Delete macro.
8589 * gdb-events.c, gdb-events.h: Regenerate.
8590 * gdbarch.sh (XMALLOC): Delete macro.
8591 * gdbarch.c: Regenerate.
8592 * serial.c (XMALLOC): Delete macro.
8593 * ui-file.c (XMALLOC): Ditto.
8594 * ser-unix.h (XMALLOC): Ditto.
8595 * sh-tdep.c (XMALLOC): Ditto.
8596 * ui-out.c (XMALLOC): Ditto.
8597 * utils.c (XMALLOC): Ditto.
8598 * i386-tdep.c (XMALLOC): Ditto.
8599 * gdb-events.c (XMALLOC): Ditto.
8600 * d10v-tdep.c (XMALLOC): Ditto.
8601 * cli-out.c (XMALLOC): Ditto.
8602
8603 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8604 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8605 * ui-file.c, ui-out.c: Ditto.
8606
8607 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8608
8609 * command.h (struct cmd_list_element): Add field context.
8610 (set_cmd_context, get_cmd_context): Declare.
8611 * cli/cli-decode.h: Ditto.
8612 * cli/cli-decode.c (get_cmd_context): New function.
8613 (set_cmd_context): New function.
8614 (add_cmd): Initialize context.
8615 Part of fixing PR gdb/145 and PR gdb/146.
8616
8617 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8618
8619 * cli/cli-decode.c (cmd_type): New function.
8620 * command.h (cmd_type): Declare.
8621 * infrun.c (set_schedlock_func): Call function cmd_type.
8622 * kod.c (kod_set_os): Call cmd_type.
8623 * cris-tdep.c (cris_version_update): Use function cmd_type.
8624 (cris_mode_update, cris_abi_update): Ditto.
8625
8626 * command.h: (execute_cmd_post_hook): Declare.
8627 (execute_cmd_pre_hook): Declare.
8628 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8629 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8630 functions. Execute pre/post hook while ensuring that afterwords
8631 hook_in is cleared.
8632 * top.c (execute_command): Use execute_cmd_post_hook, and
8633 execute_cmd_pre_hook to execute pre/post commands.
8634 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8635 hook_stop_stub.
8636 (hook_stop_stub): Call execute_cmd_pre_hook.
8637
8638 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8639
8640 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8641 set'' and this leads to a core dump. Move xstrdup of
8642 operating_system to after check that it is not NULL.
8643
8644 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8645
8646 * kod.c (kod_set_os): Remove unnecessary check that
8647 ``command->type'' is set_cmd.
8648
8649 * valprint.c (set_input_radix): Use input_radix.
8650 (set_output_radix): Use output_radix.
8651 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8652 isn't reverted.
8653
8654 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8655
8656 * value.h (struct value): Delete field ``substring_addr''. Change
8657 aligner fields to force_doublest_align, force_longest_align,
8658 force_core_addr_align and force_pointer_aligh.
8659
8660 * value.h (struct value): Fix typo in above change.
8661
8662 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8663
8664 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8665 to fix internal_error from ``maintenance print architecture''.
8666
8667 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8668
8669 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8670 for gcc versions after gcc-2.8.1.
8671
8672 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8673
8674 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8675 for method resolution. Restore adjustment of ``this'' pointer after
8676 calling value_struct_elt, which was accidentally removed during the
8677 HP merge.
8678
8679 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8680
8681 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8682 value_of_register.
8683 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8684 get_saved_register.
8685 * value.h (value_of_register): Update.
8686
8687 2002-03-14 Richard Henderson <rth@redhat.com>
8688
8689 * configure.in: Detect declaration for canonicalize_file_name.
8690 * utils.c (canonicalize_file_name): Declare, if needed.
8691 (gdb_realpath): Prefer realpath if available and usable.
8692 * config.in, configure: Rebuild.
8693
8694 2002-03-14 Richard Henderson <rth@redhat.com>
8695
8696 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8697 a constant array bound.
8698
8699 * MAINTAINERS: Add myself to write-after-approval.
8700
8701 2002-03-14 Michael Snyder <msnyder@redhat.com>
8702
8703 * symfile.c (syms_from_objfile): Return immediately if no syms.
8704 (symbol_file_add): Return immediately if no syms.
8705 (find_sym_fns): Return immediately if no syms.
8706
8707 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8708
8709 * gdbserver/remote-util.c (remote_open): Print remote-side's
8710 IP address when remote debugging over the network.
8711
8712 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8713
8714 * config/sparc/fbsd.mh: Fix copyright.
8715 * config/sparc/fbsd.mt: Likewise.
8716
8717 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8718
8719 * MAINTAINERS: Fix typo in name of gdb warnings option.
8720 (x86-64): Fix formating so that this can be parsed by awk.
8721
8722 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8725 * defs.h: Include "gdb/signals.h".
8726 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8727
8728 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8729
8730 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8731 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8732 from x86-64-tdep.h
8733
8734 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8735 Don Howard <dhoward@redhat.com>
8736
8737 * mips-tdep.c (ST0_FR): Define.
8738 (mips2_fp_compat): New function, temporarily disabled.
8739 (mips_read_fp_register_single): New function.
8740 (mips_read_fp_register_double): New function.
8741 (mips_print_register): Use them.
8742 (do_fp_register_row): Likewise.
8743
8744 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8745
8746 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8747 approval''.
8748
8749 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8750
8751 * stabsread.c (read_member_functions): Fix is_stub test for
8752 static member functions, improve comment.
8753
8754 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8755
8756 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8757 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8758 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8759 commands that set boolean values.
8760 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8761 (arm_rdi_resume): Always initialize PC.
8762 (arm_rdi_open): Don't use rslt as a boolean.
8763 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8764 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8765 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8766 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8767
8768 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8769
8770 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8771 * configure: Rebuilt.
8772
8773 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8774
8775 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8776 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8777
8778 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8779
8780 * cli/cli-decode.c (set_cmd_completer): New function.
8781 * command.h (set_cmd_completer): Declare.
8782 * cli/cli-decode.h (set_cmd_completer): Ditto.
8783
8784 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8785 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8786 * win32-nat.c (_initialize_inftarg): Ditto.
8787 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8788 * proc-api.c (_initialize_proc_api): Ditto.
8789 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8790 * source.c (_initialize_source): Ditto.
8791 * exec.c (_initialize_exec): Ditto.
8792 * solib.c (_initialize_solib): Ditto.
8793 * top.c (init_main): Ditto.
8794 * tracepoint.c (_initialize_tracepoint): Ditto.
8795 * symfile.c (_initialize_symfile): Ditto.
8796 * printcmd.c (_initialize_printcmd): Ditto.
8797 * infcmd.c (_initialize_infcmd): Ditto.
8798 * corefile.c (_initialize_core): Ditto.
8799
8800 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8801
8802 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8803
8804 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8805
8806 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8807
8808 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8809
8810 * NEWS: Update headings, 5.2 has branched.
8811
8812 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8813
8814 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8815 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8816 (register_addr, REGISTER_RAW_SIZE): Likewise.
8817 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8818 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8819
8820 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8821
8822 * MAINTAINERS (x86-64): Add myself.
8823 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8824 changed value_ptr -> struct value *
8825
8826 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8827
8828 * configure.host (sparc64-*-freebsd): Add.
8829 * configure.tgt: Likewise.
8830 * config/sparc/fbsd.mh: New file.
8831 * config/sparc/fbsd.mt: Likewise.
8832 * config/sparc/nm-fbsd.h: Likewise.
8833 * config/sparc/tm-fbsd.h: Likewise.
8834
8835 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8836
8837 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8838 regformats/reg-s390x.dat.
8839
8840 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8841
8842 * utils.c: Add FIXME explaining true/false problem.
8843
8844 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8845
8846 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8847
8848 2002-02-28 Michael Chastain <mec@shout.net>
8849
8850 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8851
8852 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8853
8854 * gdbserver/linux-s390-low.c: New file.
8855 * regformats/reg-s390.dat: New file.
8856 * regformats/reg-s390x.dat: New file.
8857 * gdbserver/configure.srv: Add S/390.
8858 * gdbserver/Makefile.in: Add S/390.
8859 * configure.tgt: Enable gdbserver for S/390.
8860
8861 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8862
8863 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8864 first line of the doc string for "info dos", except at the end of
8865 the sentence, since the short help stops at the first period.
8866
8867 2002-02-28 Jason Merrill <jason@redhat.com>
8868
8869 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8870
8871 2002-02-27 Fred Fish <fnf@redhat.com>
8872
8873 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8874 comment (dumy -> dummy).
8875
8876 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8877
8878 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8879
8880 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8881
8882 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8883
8884 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * gdbserver/acconfig.h: New file.
8887 * gdbserver/i387-fp.c: New file.
8888 * gdbserver/i387-fp.h: New file.
8889 * gdbserver/linux-x86-64.c: New file.
8890 * regformats/reg-x86-64.dat: New file.
8891 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8892 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8893 * gdbserver/configure.in: Add support for regsets.
8894 * gdbserver/config.in: Regenerate.
8895 * gdbserver/configure: Regenerate.
8896 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8897 * gdbserver/linux-low.h: New file.
8898 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8899 for regsets.
8900 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8901 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8902 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8903 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8904 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8905 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8906 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8907 "i387-fp.h". Add PTRACE_GETREGS and friends.
8908 * gdbserver/regcache.c (supply_register): New function.
8909 (supply_register_by_name): New function.
8910 (collect_register): New function.
8911 (collect_register_by_name): New function.
8912
8913 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8916 (config.status): Add configure.srv dependency.
8917 (server_h): Add config.h dependency.
8918
8919 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8920
8921 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8922 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8923 * gdbserver/configure.srv: Change i386-*-linux* to use
8924 reg-i386-linux.o.
8925
8926 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8927
8928 * x86-64-tdep.c: Re-indent. Update copyright date.
8929
8930 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8931
8932 From Michal Ludvig <mludvig@suse.cz>:
8933 * x86-64-tdep.c (value.h): Delete.
8934 (gdb_assert.h): Include.
8935 (x86_64_register_convert_to_virtual,
8936 x86_64_register_convert_to_raw ): Add check which lets only
8937 floating-point values to be converted.
8938 (value_push): Delete.
8939 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8940 (i386_gdbarch_init): Number of register_bytes fixed.
8941
8942 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8943
8944 * MAINTAINERS: Add x86-64 target.
8945
8946 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8947
8948 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8949 * osfsolib.c (solib_map_sections): Ditto.
8950 * irix5-nat.c (solib_map_sections): Ditto.
8951 * corelow.c (gdb_check_format): Ditto.
8952 * symfile.c (symfile_bfd_open): Ditto.
8953 * solib.c (solib_map_sections): Ditto.
8954 Fix PR gdb/354.
8955
8956 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8957
8958 * remote.c (_initialize_remote): By default, disable ``e'' and
8959 ``E'' step out-of-range packets.
8960
8961 2002-02-26 Andreas Schwab <schwab@suse.de>
8962
8963 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8964 m68k_linux_frame_saved_pc.
8965 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8966 in_sigtramp.
8967 (SIGCONTEXT_PC_OFFSET): Remove.
8968 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8969 m68k_linux_sigtramp_saved_pc): New functions.
8970 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8971 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8972 (UCONTEXT_PC_OFFSET): Define.
8973 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8974 non-RT and RT signal trampolines.
8975
8976 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8977
8978 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8979 (TARGET_NBPG, STACK_END_ADDR): Delete
8980 (VARIABLES_INSIDE_BLOCK): Delete.
8981
8982 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8983
8984 * utils.c (perror_with_name): Make string parameter constant.
8985 (print_sys_errmsg): Ditto.
8986 (query): Ditto.
8987 * defs.h (perror_with_name): Update.
8988 (print_sys_errmsg): Update.
8989 (query): Update.
8990
8991 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8992
8993 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8994 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8995
8996 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8997
8998 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8999 if it already matches the current architecture from the exec file.
9000 Include arch-utils.h for gdbarch_info_init prototype.
9001 * Makefile.in (rs6000-nat.o): Update dependencies.
9002
9003 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9004
9005 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9006 list of exported variables.
9007
9008 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9009
9010 * gdbserver/configure.srv: New file.
9011 * gdbserver/configure.in: Use configure.srv instead
9012 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9013 from it.
9014 * gdbserver/configure: Regenerated.
9015 * gdbserver/terminal.h: New file.
9016 * gdbserver/Makefile.in: Update for configure changes. Remove
9017 more unneeded include paths.
9018
9019 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9020
9021 From wiz at danbala:
9022 * config/sparc/tm-sp64.h: Fix grammar and typos.
9023 Fix PR gdb/287.
9024
9025 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9026
9027 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9028 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9029 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9030 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9031 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9032 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9033 * s390-tdep.c: Ditto.
9034 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9035 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9036 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9037 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9038 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9039 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9040 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9041 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9042 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9043 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9044 Fix PR gdb/378.
9045
9046 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9047
9048 * lin-thread.c: Delete file.
9049 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9050 to gdb_proc_service.h.
9051 * configure: Re-generate.
9052
9053 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9054 * serial.c (serial_open): Delete check for "ocd".
9055 Fix PR gdb/349.
9056
9057 * Makefile.in (linux-thread.o): Delete target.
9058 * linux-thread.c: Delete file.
9059
9060 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9061 renamed SH files to be consistent.
9062
9063 * symtab.c (sort_search_symbols): Use xfree.
9064
9065 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9066
9067 * arm-linux-tdep.c (arm_linux_init_abi): Register
9068 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9069 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9070 definition with undef, since we don't want the sysvr4 definition.
9071 (SKIP_TRAMPOLINE_CODE): Likewise.
9072
9073 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9074
9075 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9076
9077 * configure.in: (AC_CHECK_FUNCS) Added test for
9078 canonicalize_file_name Regenerated.
9079 * config.in, configure: Regenerated.
9080 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9081 defined use canonicalize_file_name.
9082
9083 2002-02-23 Michael Chastain <mec@shout.net>
9084
9085 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9086
9087 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9088
9089 * README: Remove references to cygnus.com.
9090 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9091 dot com'' form. Remove references to cygnus.com and sourceware.
9092
9093 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9094
9095 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9096 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9097 1003.1-2001 no longer allows "head -1".
9098 * gdb/Makefile.in (version.c): Likewise.
9099 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9100 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9101 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9102
9103 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9104
9105 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9106 * command.h (cmd_cfunc_eq): Declare.
9107 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9108
9109 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9110 ``struct cmd_list_element *''.
9111 * cli/cli-cmds.c (is_complete_command): Update. Use
9112 cmd_cfunc_eq.
9113 * top.c (execute_command): Pass the command to
9114 is_complete_command.
9115 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9116
9117 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9118
9119 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9120 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9121 architecture defines.
9122 * s390-tdep.c (s390_gdbarch_init): Likewise.
9123
9124 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9125
9126 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9127 (arm_linux_push_arguments): Likewise.
9128 (arm_linux_init_abi): Register them. Also register linux-specific
9129 call_dummy_words.
9130 (find_minsym_and_objfile): Use strcmp, not STREQ.
9131 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9132 (arm_linux_call_dummy_words): Delete declaration.
9133 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9134 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9135 declarations.
9136 (LOWEST_PC): Delete.
9137
9138 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9139
9140 * maint.c (print_section_info): Do not prepend `0x' to filepos
9141 output, it will be handled by local_hex_string_custom.
9142
9143 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9144
9145 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9146 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9147 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9148
9149 2002-02-22 Jim Blandy <jimb@redhat.com>
9150
9151 Indicate that the bcache functions don't change the strings
9152 they're passed.
9153 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9154 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9155
9156 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9157
9158 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9159
9160 2002-02-21 Christopher Faylor <cgf@redhat.com>
9161
9162 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9163 find the complete path to a loaded DLL.
9164
9165 2002-02-21 Fred Fish <fnf@redhat.com>
9166
9167 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9168 that marks the end of the range of a function, enter a line number
9169 entry that has a line number of zero and a PC offset that matches
9170 the end of the function. This starts a range of PC's for which no
9171 line number information is known.
9172 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9173 PC's for which no line number info is found (line number is zero)
9174 then we didn't find any valid line information.
9175 * symtab.h: Document use of zero line number entry.
9176
9177 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9180 (have_ptrace_getvrregs): Define for run time checks.
9181 (gdb_vrregset_t): New type for Altivec register handling.
9182 (fetch_register, store_register): Fetch/store altivec register
9183 when needed.
9184 (fetch_altivec_register, store_altivec_register): New functions.
9185 (supply_vrregset, fill_vrregset): New functions.
9186 (fetch_altivec_registers, store_altivec_registers): New functions.
9187 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9188 registers as well.
9189
9190 2002-02-21 Jiri Smid <smid@suse.cz>
9191
9192 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9193
9194 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * Makefile.in (armnbsd-nat.o): Update dependencies.
9197 * armnbsd-nat.c (supply_gregset): New function. Common code to
9198 supply the integer register set.
9199 (supply_fparegset): New function. Similar for FPA registers.
9200 (fetch_regs, fetch_fp_regs): Use them.
9201 (fetch_core_registers): Likewise.
9202 (fetch_elfcore_registers): New function.
9203 (arm_netbsd_elfcore_fns): New core-file type specification.
9204 (_initialize_arm_netbsd_nat): Register it.
9205
9206 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9207
9208 * armnbsd-nat.c: Include gdbcore.h.
9209 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9210 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9211 'void' to declaration, to shut up ARI.
9212 (fetch_core_registers): Make static. Rewrite using supply_register.
9213 (arm_netbsd_core_fns): New core-file type specification.
9214 (_initialize_arm_netbsd_nat): New function.
9215
9216 2002-02-21 Christopher Faylor <cgf@redhat.com>
9217
9218 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9219 value.
9220
9221 2002-02-20 Christopher Faylor <cgf@redhat.com>
9222
9223 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9224 fails.
9225
9226 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9227
9228 * jv-exp.y (parse_number): Change type of implicit longs
9229 to builtin_type_uint64.
9230
9231 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9232
9233 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9234 to be an integer instead of a `union wait'.
9235
9236 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9237
9238 * mips-linux-nat.c: Call the operating system GNU/Linux.
9239 * mips-linux-tdep.c: Likewise.
9240 * mips-tdep.c: Likewise.
9241
9242 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9243
9244 Fix PR gdb/265.
9245 * jv-exp.y (parse_number): Handle 64-bit integers.
9246
9247 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9248
9249 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9250 AC_STDC_HEADERS to AC_HEADER_STDC.
9251 * gdbserver/configure: Regenerated.
9252
9253 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9254
9255 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9256 is defined.
9257 * sparc-tdep.c (get_longjmp_target): Likewise.
9258
9259 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9260
9261 * News: Add news about ARM and Multi-arch. Mention the new target
9262 arm*-*-netbsd*.
9263
9264 2002-02-19 Jim Blandy <jimb@redhat.com>
9265
9266 * stabsread.c (error_type_complaint): Improve error message.
9267
9268 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9269
9270 * gdbserver/README: Update documentation.
9271 * gdbserver/configure.in: Update configury to match documentation.
9272 * gdbserver/Makefile.in: Likewise.
9273 * gdbserver/configure: Regenerated.
9274 * gdbserver/aclocal.m4: New file, generated by aclocal.
9275 * gdbserver/config.in: New file, generated by autoheader.
9276
9277 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9278
9279 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9280 armnbsd-nat.c.
9281
9282 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9283
9284 * arm-tdep.h (enum arm_float_model): New enum.
9285 (struct gdbarch_tdep): Add fp_model.
9286 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9287 up floating-point conversions until we know the floating-point model
9288 in use by the inferior. Don't complain about being unable to
9289 determine the ABI of the inferior when we don't have one.
9290 (arm_extract_return_value): Support different floating-point models.
9291 (arm_store_return_value): Likewise.
9292 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9293 ARM_FLOAT_SOFT.
9294 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9295
9296 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9297
9298 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9299 of ``current_gdbarch''.
9300
9301 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9302
9303 * armnbsd-nat.c : ANSIfy all function declarations.
9304 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9305 (fetch_inferior_registers): Re-implement in terms of above.
9306 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9307 (store_inferior_registers): Re-implement in terms of above.
9308
9309 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9312 kernel.
9313 * arm-linux-tdep.c: Likewise.
9314 * config/arm/tm-linux.h: Likewise.
9315
9316 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9317
9318 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9319 * config/arm/nbsd.mt (TM_FILE): Delete.
9320 * config/arm/tm-nbsd.h: Delete.
9321
9322 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9323
9324 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9325 Initialize CALL_DUMMY_LENGTH.
9326
9327 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9328
9329 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9330 function.
9331 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9332 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9333 defines one thing and that is incorrect for this port.
9334 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9335
9336 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9337
9338 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9339
9340 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9341
9342 * win32-nat.c (display_selector): New function. Displays information
9343 about the information returned by GetThreadSelectorEntry API function.
9344 (display_selectors): New function. Displays the infomation of
9345 the selector given as argument, or of CS, DS ans FS selectors
9346 if no argument is given.
9347 ( _initialize_inftarg): Add "w32" as info prefix command.
9348 Add "info w32 selector" as command calling display_selectors.
9349
9350 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9351
9352 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9353 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9354 if not defined.
9355
9356 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9357
9358 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9359
9360 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9361
9362 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9363 (arm_fix_call_dummy): Call it.
9364 (arm_call_dummy_breakpoint_offset): Delete.
9365 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9366 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9367
9368 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9369
9370 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9371 Default to func_frame_chain_valid.
9372 * gdbarch.h, gdbarch.c: Re-generate.
9373 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9374
9375 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9376
9377 * ppc-linux-nat.c: Update copyright.
9378 (fetch_register, store_register): Add tid parameter, don't compute
9379 tid here.
9380 (fetch_ppc_registers, store_ppc_registers): Add tid
9381 parameter. Pass it along to callees.
9382 (fetch_inferior_registers, store_inferior_registers): Compute tid
9383 here, and pass it to calleed functions.
9384 (fill_gregset, supply_fpregset): Clean up formatting.
9385
9386 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9387
9388 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9389 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9390
9391 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9394 * gdbarch.c gdbarch.h: Regenerate.
9395 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9396 function.
9397 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9398 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9399 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9400
9401 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9402 * arm-tdep.c (arm_get_longjmp_target): New function.
9403 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9404 this to a positive value register arm_get_longjmp_target as the
9405 longjmp handler.
9406 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9407 (arm_linux_init_abi): Set up longjmp description in tdep.
9408 * armnbsd-nat.c (get_longjmp_target): Delete.
9409 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9410 description in tdep.
9411 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9412 (get_longjmp_target): Delete declaration.
9413 (GET_LONGJMP_TARGET): Delete.
9414 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9415 (GET_LONGJMP_TARGET): Delete.
9416
9417 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9418
9419 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9420 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9421 of ``current_gdbarch''.
9422
9423 2002-02-17 Tom Tromey <tromey@redhat.com>
9424
9425 * cli/cli-cmds.c (compare_strings): New function.
9426 (complete_command): Only print each unique item once.
9427 * completer.h (complete_line): Declare.
9428 * completer.c (complete_line): New function.
9429 (line_completion_function): Use it.
9430
9431 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9432
9433 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9434 * gdbarch.h, gdbarch.c: Re-generate.
9435
9436 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9437
9438 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9439
9440 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9441
9442 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9443 * valops.c (value_arg_coerce): Don't take the address of a reference
9444 to convert an argument to a reference.
9445
9446 2002-02-15 Christopher Faylor <cgf@redhat.com>
9447
9448 * win32-nat.c (get_image_name): New function.
9449 (handle_load_dll): Use get_image_name function.
9450 (get_child_debug_event): Avoid registering debug events until possibly
9451 execed process is started.
9452 (child_create_inferior): Allow invocation via shell so that command
9453 line redirection, etc. works ok.
9454 (_initialize_inftarg): Add new command: "set shell" to control whether
9455 a shell is used to start a process.
9456
9457 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9460 instead of find_register_by_number.
9461 (cannot_store_register): Likewise.
9462
9463 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9464
9465 * dwarf2read.c: Replace fprintf (stderr, ...) by
9466 fprintf_unfiltered (gdb_stderr, ...).
9467
9468 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * gdbserver/gdbserver.1: Document --attach.
9471
9472 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9475 descriptions.
9476 * arm-tdep.c (arm_default_arm_le_breakpoint)
9477 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9478 (arm_default_thumb_be_breakpoint): New. Initialize them from
9479 traditional breakpoint defines.
9480 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9481 (arm_gdbarch_init): Initialize new breakpoint variables.
9482 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9483 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9484 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9485 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9486 code out to ...
9487 (arm_netbsd_init_abi_common): ... here; new function.
9488 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9489 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9490 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9491 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9492
9493 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9494
9495 * arm-tdep.h (enum arm_abi): New enum.
9496 (struct gdbarch_tdep): New structure.
9497 (LOWEST_PC): Provide a default.
9498 (arm_gdbarch_register_os_abi): Declare new function.
9499 * arm-tdep.c (arm_abi_names): New array.
9500 (process_note_abi_tag_sections): New function.
9501 (get_elfosabi): New function.
9502 (arm_gdbarch_register_os_abi): New function.
9503 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9504 support for that ABI has been built in, then call the appropriate
9505 configuration routine. Use gdbarch_num_regs() to get the number
9506 of registers.
9507 (arm_dump_tdep): New function.
9508 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9509 place-holder functions.
9510 (_initialize_arm_tdep): Register them.
9511 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9512
9513 * armnbsd-tdep.c: New file.
9514 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9515 * config/arm/nbsd.mt (TDEPFILES): Add it.
9516 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9517
9518 * armnbsd-nat.c: Include regcache.h.
9519 * Makefile.in (armnbsd-nat.o): Update dependency list.
9520
9521 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9522
9523 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbserver/Makefile.in: Fix typos in target rules.
9526
9527 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9528
9529 Fix part of PR gdb/267.
9530 * linespec.c (find_methods): Handle constructors specially for now.
9531
9532 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9533
9534 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9535 handling.
9536 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9537 standard_coerce_float_to_double().
9538
9539 2002-02-14 Christopher Faylor <cgf@redhat.com>
9540
9541 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9542 GDBINIT_FILENAME.
9543
9544 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9545
9546 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9547 find_variant_by_name, because it confuses the multiarch
9548 framework. Return NULL if there isn't an architecture with the
9549 user supplied name, instead of forcing a different one without
9550 recording the change with the multiarch machinery.
9551 (find_variant_by_name): Delete.
9552
9553 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9554
9555 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9556 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9557
9558 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9559
9560 * stack.c (print_frame_info_base): When calling
9561 print_frame_info_listing_hook, set current_source_symtab.
9562
9563 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9564
9565 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9566 and remove unused $(INCLUDE_DIR).
9567 Add regcache.c to OBS.
9568 Add generated register protocol files to clean target.
9569 Update dependencies for new objects, obsolete old target code.
9570
9571 * gdbserver/linux-low.c: Remove all platform-specific code to
9572 new files. Remove various dead code. Update to use regcache
9573 functionality.
9574 * gdbserver/remote-utils.c (fromhex): Add return statement
9575 to quiet warning.
9576 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9577 constant.
9578 (input_interrupt): Add integer parameter to match prototype
9579 of a signal handler.
9580 (outreg): Use register_data ().
9581 (prepare_resume_reply): Use gdbserver_expedite_regs.
9582 * gdbserver/server.c (main): Dynamically allocate own_buf because
9583 PBUFSIZ is no longer constant. Use registers_to_string () and
9584 registers_from_string ().
9585 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9586 for error (), fatal (), and warning (). Update definition of
9587 PBUFSIZ to use regcache functionality. Add include guard.
9588 * gdbserver/utils.c (fatal): Add missing ``const''.
9589 (warning): New function.
9590
9591 * regformats/regdat.sh: Include "regcache.h" in generated files.
9592 Provide init_registers () function.
9593 * regformats/regdef.h: Add prototype for set_register_cache ().
9594 Add include guard.
9595
9596 * gdbserver/linux-arm-low.c: New file.
9597 * gdbserver/linux-i386-low.c: New file.
9598 * gdbserver/linux-ia64-low.c: New file.
9599 * gdbserver/linux-m68k-low.c: New file.
9600 * gdbserver/linux-mips-low.c: New file.
9601 * gdbserver/linux-ppc-low.c: New file.
9602 * gdbserver/linux-sh-low.c: New file.
9603
9604 * gdbserver/regcache.c: New file.
9605 * gdbserver/regcache.h: New file.
9606
9607 * gdbserver/low-linux.c: Removed obsolete file.
9608
9609 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9610
9611 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9612 * config/i386/linux.mt: Likewise.
9613 * config/ia64/linux.mt: Likewise.
9614 * config/m68k/linux.mh: Likewise.
9615 * config/powerpc/linux.mh: Likewise.
9616 * config/mips/linux.mt: Likewise.
9617
9618 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9619
9620 * config/i386/i386lynx.mh: Mark gdbserver variables
9621 as (currently) obsolete for this target.
9622 * config/i386/nbsd.mt: Likewise.
9623 * config/i386/nbsdelf.mt: Likewise.
9624 * config/m32r/m32r.mt: Likewise.
9625 * config/m68k/m68klynx.mh: Likewise.
9626 * config/m68k/nbsd.mt: Likewise.
9627 * config/m68k/sun3os4.mh: Likewise.
9628 * config/mips/vr5000.mt: Likewise.
9629 * config/ns32k/nbsd.mt: Likewise.
9630 * config/pa/hppabsd.mh: Likewise.
9631 * config/pa/hppaosf.mh: Likewise.
9632 * config/powerpc/nbsd.mt: Likewise.
9633 * config/rs6000/rs6000lynx.mh: Likewise.
9634 * config/s390/s390.mt: Likewise.
9635 * config/s390/s390x.mt: Likewise.
9636 * config/sparc/sparclynx.mh: Likewise.
9637 * config/sparc/sun4os4.mh: Likewise.
9638 * config/i386/x86-64linux.mt: Likewise.
9639 * config/sparc/linux.mh: Likewise.
9640
9641 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9642
9643 * configure.tgt: Configure gdbserver only for known working
9644 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9645 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9646 SUBDIRS if it is configured. Update comment for ${nativefile}.
9647 * configure: Regenerated.
9648
9649 2002-02-13 Michael Snyder <msnyder@redhat.com>
9650
9651 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9652
9653 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9654 (default_gcore_mach): Just return 0, work around a problem in bfd.
9655 (default_gcore_target): OK to return NULL if exec_bfd is null.
9656 (make_mem_sec): Use a cast, avoid a warning.
9657
9658 * procfs.c (find_memory_regions_callback): Use a cast instead of
9659 calling host_pointer_to_address (which complains if
9660 sizeof (host pointer) != sizeof (target pointer)).
9661 (procfs_make_note_section): Avoid overflow in psargs string.
9662
9663 * procfs.c (procfs_make_note_section): Make the default
9664 implementation return an error.
9665
9666 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9667
9668 * procfs.c (procfs_make_note_section): Provide a default definition
9669 (for alpha-dec-osf4.0f). Fix typos.
9670
9671 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9672
9673 * linux-proc.c: Add include of regcache.h.
9674 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9675
9676 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9677
9678 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9679 * memattr.c (create_mem_region): Disallow useless empty region.
9680 Regions are half-open intervals, so allow [A..B) [B..C) as
9681 non-overlapping.
9682
9683 2002-02-13 Michael Chastain <mec@shout.net>
9684
9685 * defs.h: Kill CONST_PTR.
9686 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9687 * c-lang.c (c_builtin_types): Likewise.
9688 * ch-lang.c (ch_builtin_types): Likewise.
9689 * f-lang.c (f_builtin_types): Likewise.
9690 * language.c (unknown_builtin_types): Likewise.
9691 * m2-lang.c (m2_builtin_types): Likewise.
9692 * p-lang.c (pascal_builtin_types): Likewise.
9693 * scm-lang.c (c_builtin_types): Likewise.
9694
9695 2002-02-13 Keith Seitz <keiths@redhat.com>
9696
9697 * arm-tdep.h (arm_get_next_pc): Add declaration.
9698
9699 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9700
9701 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9702 with other related struct-returning functions.
9703 (arm_extract_struct_value_address): New function.
9704 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9705 initialize float_format, double_format and long_double_format as
9706 appropriate to the endianness of the target.
9707 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9708 (arm_use_struct_convention): Delete declaration.
9709 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9710
9711 2002-02-13 Keith Seitz <keiths@redhat.com>
9712
9713 * defs.h (core_addr_to_string_nz): New function.
9714
9715 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9716
9717 Apply missing bits of 2002-01-15 patch.
9718 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9719 (fill_fpregset): Use i387_fill_fsave.
9720
9721 2002-02-12 Keith Seitz <keiths@redhat.com>
9722
9723 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9724 (core_addr_to_string_nz): New function.
9725
9726 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9727
9728 * arm-linux-nat.c: Really include arm-tdep.h.
9729 * config/arm/tm-linux.h (struct type, struct value): Declare.
9730
9731 2002-02-11 Michael Snyder <msnyder@redhat.com>
9732
9733 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9734 (gcore section): Ifdef for Solaris and Unixware only.
9735 (procfs_do_thread_registers): Unixware needs one lwpstatus
9736 per thread (not one prstatus or pstatus).
9737 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9738 not over all gdb threads. For unixware, call elfcore_write_pstatus
9739 once before iterating over threads.
9740
9741 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * arm-tdep.h: New file.
9744 * arm-tdep.c: Include arm-tdep.h.
9745 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9746 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9747 (arm_print_float_info, arm_register_type, convert_to_extended)
9748 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9749 (arm_extract_return_value, arm_register_name): Make static.
9750 (arm_software_single_step): Similarly. Fix types in declaration.
9751 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9752 (arm_store_return_value, arm_store_struct_return): New functions.
9753 (arm_gdbarch_init): Register the above functions. Also register
9754 call_dummy_start_offset, sizeof_call_dummy_words,
9755 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9756 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9757 max_register_virtual_size, register_size. Set up
9758 prologue_cache.saved_regs here, rather than ...
9759 (_initialize_arm_tdep): ... here.
9760 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9761 declarations.
9762 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9763 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9764 (arm_print_float_info, arm_register_type, convert_to_extended)
9765 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9766 (arm_extract_return_value, arm_register_name): Delete declarations.
9767 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9768 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9769 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9770 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9771 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9772 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9773 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9774 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9775 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9776 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9777 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9778 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9779 interface.
9780 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9781 * remote-rdi.c remote-rdp.c: Likewise.
9782 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9783 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9784 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9785 definition.
9786
9787 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9788 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9789 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9790 from non-ARM_ prefixed definitions.
9791 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9792 all uses of above.
9793 * remote-rdi.c remote-rdp.c: Likewise.
9794 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9795
9796 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9797
9798 * arm-tdep.c (arm_frameless_function_invocation)
9799 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9800 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9801 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9802 (arm_pop_frame, arm_get_next_pc): Make static.
9803 (arm_gdbarch_init): Register above in gdbarch structure.
9804 (arm_read_fp): Renamed from arm_target_read_fp.
9805 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9806 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9807 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9808 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9809 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9810 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9811 (arm_pc_is_thumb_dummy): Delete declarations.
9812 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9813 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9814 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9815 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9816
9817 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9818
9819 * symtab.c (compare_search_syms): New function.
9820 (sort_search_symbols): New function.
9821 (search_symbols): Sort symbols after searching rather than
9822 before.
9823
9824 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9825
9826 * NEWS: Linux -> GNU/Linux.
9827
9828 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9829
9830 * gdbarch.sh: For for level one methods, disallow a definition
9831 when partially multi-arched. Add comments explaining rationale.
9832 * gdbarch.h: Re-generate.
9833
9834 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9835
9836 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9837 multi-arch partial.
9838
9839 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9840
9841 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9842 field. Use diff -u.
9843 * gdbarch.c: Re-generate.
9844
9845 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9846
9847 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9848 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9849 partial.
9850
9851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9852
9853 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9854 multi-arch partial.
9855 (PUSH_ARGUMENTS): Switch to using predefault.
9856 * gdbarch.c: Regenerate.
9857
9858 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9859
9860 * valops.c (PUSH_ARGUMENTS): Delete definition.
9861 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9862 partial. Default to default_push_arguments.
9863 * gdbarch.h, gdbarch.c: Regenerate.
9864
9865 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9866
9867 * defs.h (throw_exception): Rename return_to_top_level. Update
9868 comments.
9869 * utils.c (error_stream, internal_verror, quit): Ditto.
9870 * top.c (throw_exception, catcher): Ditto.
9871 * sparclet-rom.c (sparclet_load): Ditto.
9872 * remote.c (interrupt_query, minitelnet): Ditto.
9873 * remote-sds.c (interrupt_query): Ditto.
9874 * remote-mips.c (mips_error, mips_kill): Ditto.
9875 * ocd.c (interrupt_query): Ditto.
9876 * monitor.c (monitor_interrupt_query): Ditto.
9877 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9878 * target.h: Update comment.
9879
9880 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9881
9882 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9883
9884 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9885 default_double_format.
9886 * gdbarch.h, gdbarch.c: Re-generate.
9887 * findvar.c (floatformat_unknown): Delete variable definition.
9888 * doublest.h (floatformat_unknown): Delete variable declaration.
9889
9890 2002-02-09 Jim Blandy <jimb@redhat.com>
9891
9892 * stabsread.c (read_type): Add code to parse Sun's syntax for
9893 prototyped function types.
9894
9895 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9896
9897 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9898 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9899
9900 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9901
9902 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9903 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9904 now _initialize_xcoffsolib gets called again and overrides the
9905 commands from solib.c in a native configuration.
9906
9907 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9908
9909 * doublest.c (store_typed_floating): Don't try to return a value.
9910 Fixes PR gdb/290.
9911
9912 2002-02-08 Jim Blandy <jimb@redhat.com>
9913
9914 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9915 is prototyped and has no arguments, print its argument list as
9916 `(void)'.
9917
9918 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9919
9920 * MAINTAINERS (write-after-approval): Add myself.
9921 (paper-trail): I've escaped!
9922
9923 2002-02-08 Christopher Faylor <cgf@redhat.com>
9924
9925 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9926 changes.
9927 (_initialize_check_for_gdb_ini): Ditto.
9928
9929 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9930
9931 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9932 xaprintf -> xasprintf.
9933
9934 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9935
9936 * win32-nat.c: Remove use of printf and sprintf functions.
9937
9938 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9939
9940 * arm-tdep.c (arm_frame_chain_valid): Make static.
9941 (arm_push_arguments): Likewise.
9942 (arm_gdbarch_init): New function.
9943 (_initialize_arm_tdep): Call it.
9944 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9945 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9946 (FRAME_CHAIN_VALID): Delete.
9947 (arm_frame_chain_valid): Delete declaration.
9948 (PUSH_ARGUMENTS): Delete.
9949 (arm_push_arguments): Delete declaration.
9950 (CALL_DUMMY_P): Delete.
9951
9952 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9953 Corinna Vinschen <vinschen@redhat.com>
9954
9955 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9956 on builtin float types.
9957
9958 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * utils.c: Include <curses.h> before "bfd.h".
9961 * tui/tui-hooks.c: Likewise.
9962 * tui/tui.c: Likewise.
9963 * tui/tuiCommand.c: Likewise.
9964 * tui/tuiData.c: Likewise.
9965 * tui/tuiDataWin.c: Likewise.
9966 * tui/tuiDisassem.c: Likewise.
9967 * tui/tuiGeneralWin.c: Likewise.
9968 * tui/tuiIO.c: Likewise.
9969 * tui/tuiLayout.c: Likewise.
9970 * tui/tuiRegs.c: Likewise.
9971 * tui/tuiSource.c: Likewise.
9972 * tui/tuiSourceWin.c: Likewise.
9973 * tui/tuiStack.c: Likewise.
9974 * tui/tuiWin.c: Likewise.
9975
9976 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9977
9978 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9979 to include space for pseudoregs as well. Update loops accordingly.
9980 (sh_fp_frame_init_saved_regs): Ditto.
9981 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9982
9983 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9984
9985 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9986 Add Richard Earnshaw to Arm maintainers.
9987
9988 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9989
9990 * defs.h (warning_begin): Delete declaration.
9991
9992 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9993 Delete macro.
9994
9995 2002-02-07 Michael Snyder <msnyder@redhat.com>
9996
9997 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9998 Logic bug, remove misplaced else.
9999
10000 2002-02-07 Klee Dienes <klee@apple.com>
10001
10002 * fork-inferior.c (fork_inferior): Add '!' to the list of
10003 characters that need to be quoted when building a string for the
10004 shell. Quote '!' specifically with a backslash, since CSH chokes
10005 when trying to evaluate "str!str".
10006
10007 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10008
10009 * rdi-share/host.h: Only provide a typedef for bool if it is not
10010 defined.
10011
10012 2002-02-04 Michael Snyder <msnyder@redhat.com>
10013
10014 * breakpoint.h (enum bptype): Add new overlay event bp type.
10015 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10016
10017 * breakpoint.c (create_internal_breakpoint): New function.
10018 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10019 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10020 (create_thread_event_breakpoint): Ditto.
10021 (create_solib_event_breakpoint): Ditto.
10022 (create_overlay_event_breakpoint): New function.
10023 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10024 (update_breakpoints_after_exec): Delete and re-initialize
10025 overlay event breakpoints after an exec. Add FIXME comment
10026 about longjmp breakpoint.
10027 (print_it_typical): Ignore overlay event breakpoints.
10028 (print_one_breakpoint): Ditto.
10029 (mention): Ditto.
10030 (bpstat_what): Do not stop for overlay event breakpoints.
10031 (delete_breakpoint): Don't delete overlay event breakpoints.
10032 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10033 (breakpoint_re_set): Re-create overlay event breakpoint.
10034
10035 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10036 (overlay_manual_command): Disable overlay breakpoints.
10037 (overlay_off_command): Disable overlay breakpoints.
10038
10039 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10040
10041 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10042 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10043 to here from config/tm-arm.h.
10044 (coff_sym_is_thumb): Make static.
10045 (arm_elf_make_msymbol_special): New function.
10046 (arm_coff_make_msymbol_special): New function.
10047 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10048 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10049 (coff_sym_is_thumb): Delete declaration.
10050 (arm_elf_make_msymbol_special): Declare.
10051 (arm_coff_make_msymbol_special): Declare.
10052 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10053 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10054
10055 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10056
10057 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10058
10059 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10060
10061 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10062 * gdbarch.c gdbarch.h: Regenerate.
10063 * arch-utils.c (default_print_float_info): New function.
10064 * arch-utils.h (default_print_float_info): Prototype it.
10065 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10066 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10067 (PRINT_FLOAT_INFO): Document it.
10068
10069 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10070 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10071 (PRINT_FLOAT_INFO): Define.
10072
10073 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10074
10075 * win32-nat.c (_initialize_check_for_gdb_ini):
10076 Add typecast to sprintf argument to suppress a warning.
10077
10078 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10079
10080 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10081 to allow easier handling of pass state.
10082 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10083 that gives exception name and address.
10084 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10085 and set last_sig value to ourstatus->value.sig. Some missing
10086 exceptions added.
10087 (child_continue): Correctly report continue_status.
10088 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10089 TARGET_SIGNAL_0 (new default value).
10090 (child_resume): consider sig argument passed to decide if
10091 the exception should be passed to debuggee or not.
10092
10093 2002-02-05 Michael Snyder <msnyder@redhat.com>
10094
10095 * regcache.c (fetch_register): Call target_fetch_register
10096 only if we don't call FETCH_PSEUDO_REGISTER.
10097 (store_register): Call target_store_register only if we
10098 don't call STORE_PSEUDO_REGISTER.
10099
10100 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10101
10102 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10103 ELF_MAKE_MSYMBOL_SPECIAL.
10104 * gdbarch.c, gdbarch.h: Regenerate.
10105 * arch-utils.c (default_make_msymbol_special): New function.
10106 * arch-utils.h (default_make_msymbol_special): Export.
10107 * elfread.c (elf_symtab_read): Compile use of
10108 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10109 multiarched.
10110 * coffread.c (coff_symtab_read): Ditto, for
10111 COFF_MAKE_MSYMBOL_SPECIAL.
10112
10113 2002-02-05 Jim Blandy <jimb@redhat.com>
10114
10115 * solib-svr4.c (svr4_truncate_ptr): New function.
10116 (svr4_relocate_section_addresses): Do the address arithmetic with
10117 the appropriate truncation for target addresses, even when
10118 CORE_ADDR is larger than a target address.
10119
10120 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10121
10122 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10123 to (int *).
10124
10125 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10126
10127 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10128 code.
10129
10130 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10131
10132 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10133
10134 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10135
10136 * gdbserver/linux-low.c: Remove unused include files.
10137
10138 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10139
10140 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10141 (read_inferior_memory): Use it.
10142 (write_inferior_memory): Likewise.
10143
10144 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10145
10146 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10147 grubbing through sys_errlist.
10148
10149 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10152
10153 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10154 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10155
10156 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10157
10158 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10159 (do_sfunc, set_cmd_sfunc): New functions.
10160
10161 * command.h (struct cmd_list_element): Add field func.
10162 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10163 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10164 * cli/cli-decode.h: Ditto.
10165
10166 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10167 (help_all, help_cmd_list): Ditto.
10168 (find_cmd, complete_on_cmdlist): Ditto.
10169 * top.c (execute_command): Ditto.
10170
10171 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10172 function.sfunc.
10173
10174 * infcmd.c (notice_args_read): Fix function signature.
10175
10176 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10177 * cli/cli-decode.c (add_set_cmd): Ditto.
10178 * utils.c (initialize_utils): Ditto.
10179 * maint.c (_initialize_maint_cmds): Ditto.
10180 * infrun.c (_initialize_infrun): Ditto.
10181 * demangle.c (_initialize_demangler): Ditto.
10182 * remote.c (add_packet_config_cmd): Ditto.
10183 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10184 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10185 * proc-api.c (_initialize_proc_api): Ditto.
10186 * kod.c (_initialize_kod): Ditto.
10187 * valprint.c (_initialize_valprint): Ditto.
10188 * top.c (init_main): Ditto.
10189 * infcmd.c (_initialize_infcmd): Ditto.
10190 * corefile.c (_initialize_core): Ditto.
10191 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10192 * arch-utils.c (initialize_current_architecture): Ditto.
10193 (_initialize_gdbarch_utils): Ditto.
10194 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10195
10196 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10197 * wince.c (_initialize_inftarg): Ditto.
10198 * symfile.c (_initialize_symfile): Ditto.
10199 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10200 * language.c (_initialize_language): Ditto.
10201 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10202
10203 2002-02-04 Michael Snyder <msnyder@redhat.com>
10204
10205 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10206
10207 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10208
10209 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10210 Add rules for building the register data files.
10211
10212 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * regformats/regdat.sh: Add braces to the definition of
10215 expedite_regs_${arch}.
10216
10217 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * regformats/regdef.h (struct reg): Add comment describing the
10220 requirements for offset and size fields.
10221
10222 2002-02-04 Andreas Schwab <schwab@suse.de>
10223
10224 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10225 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10226
10227 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10228
10229 * gdbarch.sh (copyright): Update years in generated header.
10230 (SMASH_TEXT_ADDRESS): Add rule.
10231 * gdbarch.h, gdbarch.c: Re-generate.
10232 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10233 * dbxread.c: Likewise.
10234 * dwarfread.c: Likewise.
10235 * elfread.c: Likewise.
10236 * somread.c: Likewise.
10237
10238 * arm-tdep.c (arm_smash_text_address): New function.
10239 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10240
10241 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10242
10243 Add support for hardware watchpoints on win32 native.
10244 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10245 CONTEXT_DEBUG_REGISTERS.
10246 (dr variable): New variable. Static array containing a local copy
10247 of debug registers.
10248 (debug_registers_changed): New variable. Reflects when debug registers
10249 are changed and need to be written to inferior.
10250 (debug_registers_used): New variable. Reflects when any debug register
10251 was set, used when new threads are created.
10252 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10253 i386-nat code.
10254 (thread_rec): Set dr array if id is the thread of current_event .
10255 (child_continue, child_resume): Change the debug registers for all
10256 threads if debug_registers_changed.
10257 (child_add_thread): Change the debug registers if debug_registers_used.
10258 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10259 Link nm.h to new nm-cygwin.h file.
10260 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10261 of hardware registers.
10262
10263 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10264
10265 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10266 Restore behavour broken by 2002-01-20 Andrew Cagney
10267 <ac131313@redhat.com> IEEE_FLOAT removal.
10268
10269 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10270
10271 * c-valprint.c (c_val_print): Pass a proper valaddr to
10272 cp_print_class_method.
10273 * valops.c (search_struct_method): If there is only one method
10274 and args is NULL, return that method.
10275
10276 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10279 accessing tag_name directly.
10280
10281 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10282
10283 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10284 of accessing tag_name directly.
10285
10286 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10287
10288 PR gdb/280
10289 * gdbtypes.c (replace_type): New function.
10290 * gdbtypes.h (replace_type): Add prototype.
10291 * stabsread.c (read_type): Use replace_type.
10292
10293 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10294
10295 * Makefile.in (memattr.o): Add missing dependencies rule.
10296
10297 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10298
10299 * breakpoint.c (break_at_finish_command): Really export.
10300 (break_at_finish_at_depth_command): Ditto.
10301 (tbreak_at_finish_command): Ditto.
10302 * hppa-tdep.c: Include completer.h.
10303 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10304 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10305
10306 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10307
10308 * utils.c (do_write): New function.
10309 (error_stream): Rewrite combining the code from error_begin and
10310 verror.
10311 (verror): Rewrite using error_stream.
10312 (error_begin): Delete function.
10313
10314 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10315
10316 * utils.c (error_begin): Make static.
10317 * defs.h (error_begin): Delete declaration.
10318
10319 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10320 (decode_line_1): Use cplusplus_error instead of error_begin,
10321 cplusplus_hint and return_to_top_level.
10322 * coffread.c (coff_symfile_read): Use error instead of error_begin
10323 and return_to_top_level.
10324 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10325
10326 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10327
10328 * language.h (type_error, range_error): Make string parameter
10329 constant.
10330 * language.c (warning_pre_print): Delete extern declaration.
10331 * dwarfread.c (warning_pre_print): Ditto.
10332 * language.c (type_error, range_error): Rewrite to use verror and
10333 vwarning instead of warning_begin.
10334
10335 2002-02-01 Michael Snyder <msnyder@redhat.com>
10336
10337 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10338 (set_ignore_count): Move misplaced comment back where it belongs.
10339
10340 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10341
10342 * command.h (NO_FUNCTION): Delete macro.
10343 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10344 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10345 * tracepoint.c (_initialize_tracepoint): Ditto.
10346 * cli/cli-decode.c (add_set_cmd): Ditto.
10347 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10348
10349 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10352 Update ``this'' pointer when calling virtual functions.
10353
10354 2002-02-01 Michael Snyder <msnyder@redhat.com>
10355
10356 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10357 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10358
10359 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10360
10361 * regformats/reg-arm.dat: New file.
10362 * regformats/reg-i386.dat: New file.
10363 * regformats/reg-ia64.dat: New file.
10364 * regformats/reg-m68k.dat: New file.
10365 * regformats/reg-mips.dat: New file.
10366 * regformats/reg-ppc.dat: New file.
10367 * regformats/reg-sh.dat: New file.
10368 * regformats/regdef.h: New file.
10369 * regformats/regdat.sh: New file.
10370
10371 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10372
10373 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10374 (arm_frame_args_address, arm_frame_locals_address): New functions.
10375 (arm_frame_num_args): New function.
10376 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10377 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10378 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10379
10380 2002-01-31 Michael Snyder <msnyder@redhat.com>
10381
10382 * breakpoint.c (break_at_finish_command): Export.
10383 (break_at_finish_at_depth_command): Export.
10384 (tbreak_at_finish_command): Export.
10385 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10386 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10387 "tbreak" commands, which are HPPA specific.
10388
10389 * printcmd.c (disassemble_command): Remove an ancient
10390 artifact of an old merge.
10391
10392 * symfile.h (enum overlay_debugging_state):
10393 Define enum constant values for overlay mode.
10394 * symfile.c (overlay_debugging): Use enums instead of literals.
10395 (overlay_is_mapped, overlay_auto_command,
10396 overlay_manual_command): Ditto.
10397
10398 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10399 breakpoint_here_p, breakpoint_inserted_here_p,
10400 breakpoint_thread_match, bpstat_stop_status,
10401 describe_other_breakpoints, check_duplicates, clear_command):
10402 Coding standard fixes.
10403
10404 * target.c (target_xfer_memory): Add spaces, coding standard.
10405 (do_xfer_memory): Add missing line to trust-readonly
10406 code: check bfd SEC_READONLY flag for section.
10407
10408 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10409
10410 * PROBLEMS: Fix typo, 5.1->5.1.1.
10411
10412 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10413
10414 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10415 data symbols, since we search based on textlow and texthigh.
10416 (find_pc_sect_symtab): Likewise.
10417
10418 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10419
10420 * defs.h (vwarning): Declare.
10421 * utils.c (vwarning): New function.
10422 (warning): Call vwarning.
10423 (warning_begin): Delete function.
10424
10425 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10426 the warning message.
10427 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10428 warning_begin.
10429
10430 2002-01-30 Michael Snyder <msnyder@redhat.com>
10431
10432 * NEWS: Mention "set trust-readonly-sections" command.
10433 Mention generate-core-file command.
10434
10435 2002-01-15 Michael Snyder <msnyder@redhat.com>
10436
10437 * target.c: New command, "set trust-readonly-sections on".
10438 (do_xfer_memory): Honor the suggestion to trust readonly sections
10439 by reading them from the object file instead of from the target.
10440 (initialize_targets): Register command "set trust-readonly-sections".
10441
10442 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10443
10444 * parse.c (target_map_name_to_register): Simplify, search regs and
10445 pseudo-regs using a single loop.
10446
10447 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10448
10449 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10450
10451 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10452
10453 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10454 * config/i386/i386v42mp.mh: Add i387-nat.o .
10455 * i386v4-nat.c: Include i387-nat.h.
10456 (supply_fpregset): Use i387_supply_fsave.
10457 (fill_fpregset): Use i387_fill_fsave.
10458
10459 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10460
10461 * arm-tdep.c (arm_call_dummy_words): Define.
10462 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10463 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10464 (CALL_DUMMY_WORDS): Define.
10465 (arm_call_dummy_words): Declare.
10466 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10467 (arm_linux_call_dummy_words): Declare.
10468
10469 2002-01-30 Andreas Schwab <schwab@suse.de>
10470
10471 * m68klinux-nat.c: Fix last change to use regcache_collect
10472 instead of referencing registers[] directly.
10473
10474 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10475
10476 * parse.c (target_map_name_to_register): Delete code wrapped in
10477 #ifdef REGISTER_NAME_ALIAS_HOOK.
10478
10479 2002-01-28 Michael Snyder <msnyder@redhat.com>
10480
10481 * regcache.c (legacy_read_register_gen): Need to be able to
10482 read pseudo-register as well as real register.
10483 (legacy_write_register_gen): Ditto.
10484
10485 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10486
10487 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10488 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10489 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10490 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10491 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10492 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10493 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10494 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10495 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10496 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10497 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10498 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10499 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10500 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10501 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10502 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10503 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10504 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10505 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10506 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10507
10508 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10509
10510 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10511 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10512 (initialize_current_architecture): Update target_byte_order using
10513 information from BFD.
10514 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10515 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10516
10517 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10518
10519 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10520 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10521
10522 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10523 #ifdef INVALID_FLOAT.
10524 * infcmd.c (do_registers_info): Ditto.
10525 * values.c (unpack_double): Ditto. Add comment.
10526
10527 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10528 already commented out.
10529
10530 2002-01-26 Andreas Schwab <schwab@suse.de>
10531
10532 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10533 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10534 registers and add support for PTRACE_GETREGS.
10535
10536 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10537
10538 GDB 5.1.1 released from 5.1 branch.
10539 * NEWS: Add 5.1.1 news.
10540 * README: Sync with 5.1 branch.
10541
10542 2002-01-23 Fred Fish <fnf@redhat.com>
10543
10544 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10545 stabstring on initial malloc. Reallocing will copy it for us,
10546 if necessary.
10547
10548 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10549
10550 * Makefile.in (hpread_h): Delete.
10551 (HFILES_NO_SRCDIR): Remove hpread.h.
10552 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10553 (hpread.o): Update dependencies.
10554 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10555
10556 * hp-psymtab-read.c: Remove file.
10557 * hp-symtab-read.c: Remove file.
10558 * hpread.h: Remove file.
10559
10560 * hpread.c: Merge all contents of hp-psymtab-read.c,
10561 hp-symtab-read.c and hpread.h into this file, as it was prior to
10562 January 1999.
10563
10564 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10565 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10566 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10567 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10568
10569 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10572 fill_gregset): Call gdbarch_tdep() just once, assign result to
10573 variable and use that, instead of calling the function several
10574 times.
10575
10576 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10577
10578 * configure.host: Accept sparcv9 as alias for sparc64.
10579 * configure.tgt: Likewise.
10580
10581 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10582
10583 * solib-aix5.c (build_so_list_from_mapfile)
10584 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10585 arguments is not reversed.
10586 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10587 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10588
10589 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10590
10591 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10592 modified version of obsolete sh_fetch_pseudo_register.
10593 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10594 (sh4_register_read): New function.
10595 (sh_pseudo_register_write): New function. Renamed and modified
10596 version of obsolete sh_store_pseudo_register.
10597 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10598 (sh4_register_write): New function.
10599 (sh_gdbarch_init): Remove setting of gdbarch function
10600 fetch_pseudo_register and store_pseudo_register. Remove setting of
10601 register_convert_to_raw, register_convert_to_virtual,
10602 register_convertible.
10603 (sh_sh4_register_convertible): Delete. No longer needed. All is
10604 taken care by architecture specific functions
10605 register_read/register_write.
10606 (sh_sh4_register_convert_to_virtual): Make static.
10607 (sh_sh4_register_convert_to_raw): Ditto.
10608
10609 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10610
10611 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10612 (floatformat_is_nan, floatformat_mantissa): Ditto.
10613
10614 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10615 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10616 builtin_type_ieee_double_little,
10617 builtin_type_ieee_double_littlebyte_bigword,
10618 builtin_type_m68881_ext, builtin_type_i960_ext,
10619 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10620 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10621 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10622 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10623
10624 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10625
10626 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10627 parameter. Set frameless flag if it exists and depended of
10628 whether the scanned function is frameless or not.
10629 (xstormy16_skip_prologue): If function is frameless, return
10630 result of xstormy16_scan_prologue().
10631 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10632 call.
10633
10634 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10635
10636 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10637 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10638 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10639 sh_sh4_register_byte, sh_sh4_register_raw_size,
10640 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10641 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10642 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10643 sh_store_pseudo_register, sh_do_pseudo_register): Call
10644 gdbarch_tdep() just once, assign result to variable and use that,
10645 instead of calling the function several times.
10646
10647 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10648
10649 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10650 macros instead of LAST_FPU_CTRL_REGNUM.
10651 (store_register): Likewise.
10652
10653 2002-01-21 Jim Blandy <jimb@redhat.com>
10654
10655 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10656 is up-to-date before running the program, not just when a program
10657 exits.
10658
10659 2002-01-21 Fred Fish <fnf@redhat.com>
10660
10661 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10662 when we have found all instructions we are looking for.
10663
10664 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10665
10666 * arm-tdep.c (arm_register_name): New function.
10667 (arm_registers_names): Make static.
10668 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10669 (arm_register_name): Declare.
10670 (REGISTER_NAME): Use it.
10671
10672 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10673 Kevin Buettner <kevinb@redhat.com>
10674
10675 Convert arm targets to new FRAME interface.
10676 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10677 (arm_frame_find_save_regs): Delete.
10678 (arm_frame_init_saved_regs): New.
10679 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10680 Allocate extra_info as required. Convert all uses of fsr.regs
10681 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10682 to use extra_info.
10683 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10684 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10685 (check_prologue_cache, save_prologue_cache): Likewise.
10686 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10687 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10688 (FRAME_FIND_SAVED_REGS): Delete.
10689 (arm_frame_find_saved_regs): Delete prototype.
10690 (arm_frame_init_saved_regs): New prototype.
10691 (FRAME_INIT_SAVED_REGS): Define.
10692
10693 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10694
10695 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10696
10697 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10698
10699 From Jeff Law <law@redhat.com>:
10700 * infttrace.c: Include <sys/pstat.h>.
10701 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10702 exec file if the ttrace equivalent fails.
10703
10704 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10705
10706 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10707 (closeLogFile): Ditto.
10708
10709 2002-01-20 Michael Chastain <mec@shout.net>
10710
10711 * top.c (print_gdb_version): Bump copyright year to 2002.
10712
10713 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10714
10715 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10716 Zannoni and Eli Zaretskii.
10717
10718 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * buildsym.c: Update copyright years.
10721 * c-typeprint.c: Likewise.
10722 * dwarf2read.c: Likewise.
10723 * f-typeprint.c: Likewise.
10724 * gdbtypes.c: Likewise.
10725 * gdbtypes.h: Likewise.
10726 * hp-symtab-read.c: Likewise.
10727 * hpread.c: Likewise.
10728 * mdebugread.c: Likewise.
10729 * p-typeprint.c: Likewise.
10730
10731 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10732
10733 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10734 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10735 byte-order selectable.
10736 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10737 * arch-utils.c: Ditto.
10738 (set_endian): Ditto.
10739 (set_endian_from_file): Ditto.
10740 * gdbserver/low-sim.c (create_inferior): Ditto.
10741 * gdbarch.sh: Ditto.
10742 * gdbarch.h: Re-generate.
10743 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10744 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10745 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10746 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10747 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10748 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10749 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10750 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10751 macro definition.
10752 * config/mips/tm-wince.h: Remove #undef of macro
10753 TARGET_BYTE_ORDER_SELECTABLE.
10754 * config/sh/tm-wince.h: Ditto.
10755
10756 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10757
10758 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10759 member function fields. Add accessor macro
10760 TYPE_FN_FIELD_ARTIFICIAL.
10761 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10762 * c-typeprint.c (c_type_print_base): Skip artificial member
10763 functions.
10764
10765 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * f-typeprint.c: Delete unused function f_type_print_args.
10768 * p-typeprint.c: Delete unused function pascal_type_print_args.
10769
10770 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10771
10772 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10773 comment. Add ``artificial'' to ``union field_location''.
10774
10775 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10776
10777 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10778 * mdebugread.c (parse_symbol): Likewise.
10779 * stabsread.c (define_symbol): Likewise.
10780 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10781 initializing TYPE_FIELD_BITPOS to n (obsolete).
10782 (hpread_doc_function_type): Likewise.
10783 * hpread.c (hpread_function_type): Likewise.
10784
10785 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10786
10787 * configure.in (host_makefile_frag): Only require a host makefile
10788 fragment when a native build.
10789 * configure: Re-generate.
10790
10791 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10792
10793 * doublest.h (floatformat_from_type): Declare.
10794 * doublest.c (floatformat_from_type): New function.
10795 (convert_typed_floating): Use.
10796
10797 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10798 call to function floatformat_from_type.
10799
10800 * gdbarch.sh (IEEE_FLOAT): Delete.
10801 * gdbarch.h, gdbarch.c: Re-generate.
10802 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10803 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10804 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10805 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10806 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10807 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10808 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10809 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10810 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10811 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10812 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10813 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10814
10815 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10816 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10817 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10818 * sh-tdep.c (sh_gdbarch_init): Ditto.
10819 * mips-tdep.c (mips_gdbarch_init): Ditto.
10820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10821 * cris-tdep.c (cris_gdbarch_init): Ditto.
10822
10823 2002-01-20 Jiri Smid <smid@suse.cz>
10824
10825 * configure.host, configure.tgt: Support x86-64.
10826 * NEWS: Note new target x86-64.
10827
10828 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10829 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10830 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10831 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10832 x86-64-linux-nat.o): Fix dependencies.
10833
10834 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10835
10836 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10837 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10838 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10839 * config/sparc/xm-sun4os4.h: Delete file.
10840 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10841
10842 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10843
10844 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10845 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10846 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10847 * config/i386/i386lynx.mh (XM_FILE): Delete.
10848 * config/rs6000/xm-rs6000ly.h: Delete file.
10849 * config/sparc/xm-sparclynx.h: Delete file.
10850 * config/m68k/xm-m68klynx.h: Delete file.
10851 * config/i386/xm-i386lynx.h: Delete file.
10852 * config/xm-lynx.h: Delete file.
10853 * config/djgpp/fnchange.lst: Update.
10854
10855 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10856
10857 * alpha-tdep.c (alpha_register_byte): New function.
10858 (alpha_register_raw_size): Ditto.
10859 (alpha_register_virtual_size): Ditto.
10860 (alpha_skip_prologue_internal): Renamed from
10861 alpha_skip_prologue.
10862 (alpha_skip_prologue): New version that calls
10863 alpha_skip_prologue_internal.
10864 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10865 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10866 second argument from alpha_skip_prologue.
10867 (REGISTER_BYTE): Use alpha_register_byte.
10868 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10869 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10870 (FRAMELESS_FUNCTION_INVOCATION): Use
10871 generic_frameless_function_invocation_not.
10872 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10873 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10874
10875 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10876
10877 * config/mips/xm-news-mips.h: Delete file.
10878 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10879
10880 * config/m88k/xm-m88k.h: Delete file.
10881 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10882 * config/m88k/xm-delta88v4.h: Ditto.
10883 * config/m88k/xm-delta88.h: Ditto.
10884
10885 * config/alpha/xm-fbsd.h: Delete file.
10886 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10887
10888 * config/sparc/xm-sparc.h: Delete file.
10889 * Makefile.in (xm-sun4os4.h): Delete dependency.
10890 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10891 * config/sparc/xm-sun4os4.h: Ditto.
10892 * config/sparc/xm-linux.h: Ditto.
10893
10894 * config/i386/xm-windows.h: Delete file.
10895
10896 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10897
10898 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10899 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10900
10901 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10902
10903 * alpha-tdep.c (alpha_call_dummy_words): New.
10904 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10905 (CALL_DUMMY_P): Define.
10906 (CALL_DUMMY_WORDS): Define.
10907 (SIZEOF_CALL_DUMMY_WORDS): Define.
10908
10909 2002-01-19 Per Bothner <per@bothner.com>
10910
10911 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10912 isn't NULL, which can happen with some gcj-3.x-produced code.
10913
10914 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10915
10916 * alpha-tdep.c (alpha_register_virtual_type): New function.
10917 (alpha_init_frame_pc_first): Ditto.
10918 (alpha_fix_call_dummy): Ditto.
10919 (alpha_store_struct_return): Ditto.
10920 (alpha_extract_struct_value_address): Ditto.
10921 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10922 alpha_register_virtual_type.
10923 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10924 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10925 alpha_extract_struct_value_address.
10926 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10927 (INIT_FRAME_PC): Use init_frame_pc_noop.
10928 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10929
10930 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10931
10932 * i386gnu-nat.c: Include "i386-tdep.h".
10933 (fetch_fpregs): Simplify code dealing with uninitialized floating
10934 point states such that it doesn't require FP7_REGNUM.
10935
10936 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10937
10938 * alpha-tdep.c (frame_extra_info): New.
10939 (alpha_find_saved_regs): Make static. Use
10940 frame->extra_info.
10941 (alpha_frame_init_saved_regs): New function.
10942 (alpha_frame_saved_pc): Use frame->extra_info.
10943 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10944 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10945 (init_extra_frame_info): Rename to...
10946 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10947 (alpha_print_extra_frame_info): New function.
10948 (alpha_frame_locals_address): Ditto.
10949 (alpha_frame_args_address): Ditto.
10950 (alpha_pop_frame): Use frame->extra_info.
10951 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10952 alpha_frame_args_address.
10953 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10954 (alpha_find_saved_regs): Remove prototype.
10955 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10956 (EXTRA_FRAME_INFO): Remove.
10957 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10958 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10959
10960 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10961
10962 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10963 (alpha_cannot_fetch_register): Ditto.
10964 (alpha_cannot_store_register): Ditto.
10965 (alpha_register_convertible): Ditto.
10966 (alpha_use_struct_convention): Ditto.
10967 * config/alpha/tm-alpha.h: Update copyright years.
10968 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10969 (INNER_THAN): Use core_addr_lessthan.
10970 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10971 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10972 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10973 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10974 (FRAME_CHAIN): Remove unnecessary cast.
10975
10976 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10977
10978 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10979 obsolete.
10980
10981 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10982
10983 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10984 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10985 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10986 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10987 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10988 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10989 * x86-64-linux-nat.c: Ditto.
10990
10991 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10992
10993 * alpha-tdep.c (alpha_register_name): New function.
10994 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10995 (REGISTER_NAME): Define.
10996
10997 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10998
10999 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11000
11001 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11002
11003 * alpha-tdep.c: Update copyright years.
11004 (alpha_next_pc): New function.
11005 (alpha_software_single_step): Ditto.
11006 * config/alpha/tm-alpha.h: Add prototype for
11007 alpha_software_single_step.
11008
11009 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11010
11011 * alphabsd-nat.c: Update copyright years.
11012 (fill_gregset): Use regcache_collect.
11013 (fill_fpregset): Likewise.
11014 (fetch_inferior_registers): Only fetch integer registers
11015 if requested to do so.
11016 (store_inferior_registers): Only store integer registers
11017 if requested to do so.
11018
11019 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11020
11021 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11022 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11023 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11024 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11025 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11026 * config/arm/linux.mh (XDEPFILES): Delete.
11027 * config/arm/nbsd.mh (XDEPFILES): Delete.
11028 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11029 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11030 * config/i386/i386m3.mh (XDEPFILES): Delete.
11031 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11032 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11033 * config/i386/fbsd.mh (XDEPFILES): Delete.
11034 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11035 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11036 * config/i386/i386v4.mh (XDEPFILES): Delete.
11037 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11038 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11039 * config/i386/i386aix.mh (XDEPFILES): Delete.
11040 * config/i386/go32.mh (XDEPFILES): Delete.
11041 * config/i386/cygwin.mh (XDEPFILES): Delete.
11042 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11043 * config/i386/i386mach.mh (XDEPFILES): Delete.
11044 * config/i386/i386v32.mh (XDEPFILES): Delete.
11045 * config/i386/linux.mh (XDEPFILES): Delete.
11046 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11047 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11048 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11049 * config/i386/i386sco.mh (XDEPFILES): Delete.
11050 * config/i386/i386v.mh (XDEPFILES): Delete.
11051 * config/i386/nbsd.mh (XDEPFILES): Delete.
11052 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11053 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11054 * config/i386/symmetry.mh (XDEPFILES): Delete.
11055 * config/i386/obsd.mh (XDEPFILES): Delete.
11056 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11057 * config/ia64/linux.mh (XDEPFILES): Delete.
11058 * config/ia64/aix.mh (XDEPFILES): Delete.
11059 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11060 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11061 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11062 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11063 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11064 * config/m68k/linux.mh (XDEPFILES): Delete.
11065 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11066 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11067 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11068 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11069 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11070 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11071 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11072 * config/m88k/delta88.mh (XDEPFILES): Delete.
11073 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11074 * config/m88k/m88k.mh (XDEPFILES): Delete.
11075 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11076 * config/mips/linux.mh (XDEPFILES): Delete.
11077 * config/mips/irix6.mh (XDEPFILES): Delete.
11078 * config/mips/irix5.mh (XDEPFILES): Delete.
11079 * config/mips/irix4.mh (XDEPFILES): Delete.
11080 * config/mips/irix3.mh (XDEPFILES): Delete.
11081 * config/mips/decstation.mh (XDEPFILES): Delete.
11082 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11083 (NATDEPFILES): Move core-aout.o to here.
11084 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11085 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11086 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11087 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11088 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11089 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11090 * config/pa/hpux11.mh (XDEPFILES): Delete.
11091 * config/powerpc/aix.mh (XDEPFILES): Delete.
11092 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11093 * config/powerpc/linux.mh (XDEPFILES): Delete.
11094 * config/romp/rtbsd.mh: Rename XDEPFILES.
11095 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11096 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11097 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11098 * config/s390/s390.mh (XDEPFILES): Delete.
11099 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11100 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11101 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11102 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11103 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11104 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11105 * config/sparc/linux.mh (XDEPFILES): Delete.
11106 * config/vax/vaxult.mh (XDEPFILES): Delete.
11107 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11108 * Makefile.in (DEPFILES): Remove XDEPFILES.
11109
11110 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11111
11112 * utils.c (internal_verror): Fix comments, default is yes not no.
11113 Update queries to match. Default to quit and dump core.
11114
11115 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11116
11117 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11118 copyright.
11119 * defs.h, event-top.c, gdbcmd.h: Ditto.
11120 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11121 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11122 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11123 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11124 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11125 * mi/mi-main.c:Ditto.
11126
11127 * stack.c, symfile.c: Update copyright.
11128
11129 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11132 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11133 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11134 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11135
11136 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11137
11138 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11139 * gdbserver/low-lynx.c (myattach): Likewise.
11140 * gdbserver/low-nbsd.c (myattach): Likewise.
11141 * gdbserver/low-sim.c (myattach): Likewise.
11142 * gdbserver/low-sparc.c (myattach): Likewise.
11143 * gdbserver/low-sun3.c (myattach): Likewise.
11144
11145 * gdbserver/low-linux.c (myattach): New function.
11146
11147 * gdbserver/server.c (attach_inferior): New function.
11148 (main): Handle "--attach".
11149
11150 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11151
11152 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11153 maintainer.
11154
11155 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * c-typeprint.c (is_type_conversion_operator): Add additional
11158 check for non-conversion operators.
11159
11160 2002-01-15 Michael Snyder <msnyder@redhat.com>
11161
11162 * linux-proc.c: Add "info proc" command, a la procfs.c.
11163 (read_mapping): New function, abstract and re-use code.
11164 (linux_find_memory_regions): Use new func read_mapping.
11165 (linux_info_proc_cmd): New function, implement "info proc".
11166 (_initialize_linux_proc): Add new command "info proc".
11167
11168 2002-01-15 Michael Snyder <msnyder@redhat.com>
11169
11170 * symfile.c (generic_load): Use bfd_map_over_sections method
11171 instead of manipulating bfd structure members directly.
11172 (add_section_size_callback): New function, bfd sections callback
11173 used by generic_load.
11174 (load_sections_callback): New function, bfd sections callback
11175 used by generic_load.
11176
11177 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11178
11179 [Based on work by Jim Blandy]
11180 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11181 (builtin_type_vec128): Export.
11182 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11183 types.
11184 (builtin_type_vec128): New builtin type for 128 bit vector
11185 registers.
11186 (build_gdbtypes): Initialize builtin_type_v16qi and
11187 builtin_type_v8hi. Create the vec128 register builtin type
11188 structure.
11189 (build_builtin_type_vec128): New function.
11190 (_initialize_gdbtypes): Register builtin_type_v16qi and
11191 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11192 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11193 AltiVec register to new builtin type.
11194
11195 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11198 to make_cv_type.
11199
11200 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11201
11202 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11203 CLEAN_UP_REGISTER_VALUE.
11204 * regcache.c (supply_register): Update only call.
11205
11206 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11207
11208 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11209 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11210 a29k-*-vxworks* targets as obsolete.
11211
11212 2002-01-14 Michael Snyder <msnyder@redhat.com>
11213
11214 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11215 until we can resolve portability issues.
11216 * gregset.h: Remove references to fpxregs.
11217 * gcore.c (gcore_command): Initialize note_sec to NULL.
11218
11219 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11220
11221 * signals.c (target_signal_to_name): Rewrite. Only use
11222 signals[].name when in bounds and non-NULL.
11223
11224 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11225
11226 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11227 * signals.c (target_signal_to_name): Verify that SIG is within the
11228 bounds of the signals array.
11229
11230 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11231
11232 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11233
11234 2002-01-13 Keith Seitz <keiths@redhat.com>
11235
11236 * stack.c (print_frame_info_base): Print the frame's pc
11237 only if when print_frame_info_listing_hook is not defined.
11238
11239 2002-01-13 Keith Seitz <keiths@redhat.com>
11240
11241 * varobj.c (varobj_set_value): Make sure that there were no
11242 errors evaluating the object before attempting to set its
11243 value.
11244 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11245 so this offset adjustment is no longer necessary.
11246 (create_child): Don't set the error flag if the child is
11247 a CPLUS_FAKE_CHILD.
11248 (value_of_child): If value_fetch_lazy fails, return NULL
11249 so that callers will be notified that an error occurred.
11250 (c_value_of_variable): Delay check of variable's validity
11251 until later. We actually want all structs and unions to have
11252 the value "{...}".
11253 Do not return "???" for variables which could not be evaluated.
11254 This error condition must be returned to the caller so that it
11255 can get the error condition from gdb.
11256 (cplus_name_of_child): Adjust index for vptr before figuring
11257 out the name of the child.
11258 (cplus_value_of_child): If a child's (real) parent is not valid,
11259 don't even bother trying to give a value for it. Just return
11260 an error. Change all instances in this function.
11261 (cplus_type_of_child): If our parent is one of the "fake"
11262 parents, we need to get at the type of the real parent, and
11263 derive the child's true type using this information.
11264
11265 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11266
11267 From 2002-01-09 John Marshall <johnm@falch.net>:
11268 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11269 sources.redhat.com, and tweak some related URLs which had
11270 suffered from linkrot.
11271
11272 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11273
11274 From Jeff law:
11275 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11276 structures passed in registers.
11277
11278 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11279
11280 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11281 white space which prevented compilation. Reported by DSK
11282 <dsk@student.unsw.edu.au>.
11283
11284 2002-01-11 Michael Snyder <msnyder@redhat.com>
11285
11286 * symfile.c (build_section_addr_info_from_section_tab):
11287 Use bfd access method instead of manipulating bfd directly.
11288 (syms_from_objfile): Ditto.
11289 (simple_overlay_update_1): Ditto.
11290 (simple_overlay_update): Ditto.
11291 (generic_load): Ditto.
11292 (overlay_unmapped_address): FIXME comment, bfd access methods.
11293 (sections_overlap): FIXME comment, bfd access methods.
11294 (pc_in_mapped_range): FIXME comment, bfd access methods.
11295 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11296 (section_is_mapped): FIXME comment, bfd access methods.
11297 (section_is_overlay): FIXME comment, bfd access methods.
11298
11299 * symfile.c (generic_load): Whitespace and long line cleanups.
11300 Remove duplicate variable, change several local variables to
11301 more appropriate data types.
11302 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11303
11304 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11305
11306 From Peter Schauer:
11307 * language.c (longest_local_hex_string_custom): Use phex_nz to
11308 convert NUM to a hex string.
11309
11310 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11311
11312 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11313 the function.
11314 Update Copyright year.
11315
11316 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11317
11318 * language.c (longest_raw_hex_string): Delete unused function.
11319
11320 2002-01-11 Petr Sorfa <petrs@caldera.com>
11321
11322 * MAINTAINERS (write-after-approval): Add myself.
11323 * dwarf2read.c (read_tag_string_type): Handling of
11324 DW_AT_byte_size.
11325 (read_tag_string_type): FORTRAN fix to prevent propagation of
11326 first string size.
11327 (set_cu_language): Handling of DW_LANG_Fortran95
11328
11329 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11330
11331 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11332 GETPID(inferior_ptid).
11333 (store_inferior_registers): Likewise.
11334
11335 2002-01-10 Jason Merrill <jason@redhat.com>
11336
11337 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11338 Fix DW_OP_minus.
11339
11340 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11341
11342 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11343 and bfd/elf32-sh-nbsd.c.
11344
11345 2002-01-10 Michael Snyder <msnyder@redhat.com>
11346
11347 * NEWS: Mention --pid and corefile/proc-id behavior change.
11348
11349 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11350 * gcore.c: Include cli/cli-decode.h instead of command.h.
11351
11352 * main.c (captured_main): Add new command line option "--pid".
11353 If the second command line argument (following the symbol-file)
11354 begins with a digit, try to attach to it before trying to open
11355 it as a corefile.
11356 (print_gdb_help): Document the "--pid" argument.
11357
11358 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11359
11360 * completer.c (command_completer): New function.
11361
11362 * completer.h <command_completer>: Add prototype.
11363
11364 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11365 completer for the "help" command.
11366
11367 2002-01-09 Jason Merrill <jason@redhat.com>
11368
11369 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11370
11371 2002-01-09 Michael Snyder <msnyder@redhat.com>
11372
11373 * i386-linux-nat.c (fill_fpxregset): Make global.
11374 (store_fpxregset): Ditto.
11375
11376 * gregset.h (gdb_fpxregset_t): Define.
11377 (supply_fpxregset): Prototype.
11378 (fill_fpxregset): Prototype.
11379
11380 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11381
11382 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11383
11384 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11385 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11386 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11387
11388 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11389
11390 * MAINTAINERS: Update target maintainer rules so that any
11391 Maintainer can approve a tested patch for a maintenance-only
11392 target.
11393
11394 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11395
11396 * MAINTAINERS (write-after-approval): Add myself.
11397
11398 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11399 IN_SIGTRAMP.
11400
11401 2002-01-08 Michael Snyder <msnyder@redhat.com>
11402
11403 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11404 real name of the executable, rather than the /proc name.
11405
11406 2002-01-03 Michael Snyder <msnyder@redhat.com>
11407
11408 Implement a "generate-core-file" command in gdb, save target state.
11409 * gcore.c: New file. Implement new command 'generate-core-file'.
11410 Save a corefile image of the current state of the inferior.
11411 * linux-proc.c: Add linux-specific code for saving corefiles.
11412 * target.h (struct target_ops): Add new target vectors for saving
11413 corefiles; to_find_memory_regions and to_make_corefile_notes.
11414 (target_find_memory_regions): New macro.
11415 (target_make_corefile_notes): New macro.
11416 * target.c (update_current_target): Inherit new target methods.
11417 (dummy_find_memory_regions): New place-holder method.
11418 (dummy_make_corefile_notes): New place-holder method.
11419 (init_dummy_target): Initialize new dummy target vectors.
11420 * exec.c (exec_set_find_memory_regions): New function.
11421 Allow the exec_ops vector for memory regions to be taken over.
11422 (exec_make_note_section): New function, target vector method.
11423 * defs.h (exec_set_find_memory_regions): Export prototype.
11424 * procfs.c (proc_find_memory_regions): New function, corefile method.
11425 (procfs_make_note_section): New function, corefile method.
11426 (init_procfs_ops): Set new target vector pointers.
11427 (find_memory_regions_callback): New function.
11428 (procfs_do_thread_registers): New function.
11429 (procfs_corefile_thread_callback): New function.
11430 * sol-thread.c (sol_find_memory_regions): New function.
11431 (sol_make_note_section): New function.
11432 (init_sol_thread_ops): Initialize new target vectors.
11433 * inftarg.c (inftarg_set_find_memory_regions): New function.
11434 Allow to_find_memory_regions vector to be taken over.
11435 (inftarg_set_make_corefile_notes): New function.
11436 Allow to_make_corefile_notes vector to be taken over.
11437 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11438 interface layer if not target_has_execution (may be a corefile).
11439 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11440 * config/sparc/sun4sol2.mh: Ditto.
11441 * config/alpha/alpha-linux.mh: Ditto.
11442 * config/arm/linux.mh: Ditto.
11443 * config/i386/x86-64linux.mh: Ditto.
11444 * config/ia64/linux.mh: Ditto.
11445 * config/m68k/linux.mh: Ditto.
11446 * config/mips/linux.mh: Ditto.
11447 * config/powerpc/linux.mh: Ditto.
11448 * config/sparc/linux.mh: Ditto.
11449
11450 2002-01-07 Michael Snyder <msnyder@redhat.com>
11451
11452 * arm-linux-nat.c: Remove references to regcache.c internal data
11453 (registers[] and register_valid[]).
11454
11455 2002-01-07 Michael Snyder <msnyder@redhat.com>
11456
11457 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11458 so that attaching to a pid will automatically read the process's
11459 symbol file and shlibs.
11460 * Makefile.in: Add rule for linux-proc.o.
11461 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11462 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11463 * config/arm/linux.mh: Ditto.
11464 * config/i386/linux.mh: Ditto.
11465 * config/i386/x86-64linux.mh: Ditto.
11466 * config/ia64/linux.mh: Ditto.
11467 * config/m68k/linux.mh: Ditto.
11468 * config/mips/linux.mh: Ditto.
11469 * config/powerpc/linux.mh: Ditto.
11470 * config/sparc/linux.mh: Ditto.
11471
11472 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11473
11474 * win32-nat.c: Add i386-tdep.h dependency.
11475
11476 2002-01-07 Michael Snyder <msnyder@redhat.com>
11477
11478 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11479 instead of bfd_get_arch_size. Don't bail out just because
11480 there's no exec_bfd.
11481
11482 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11483 * p-valprint.c (pascal_object_print_value): Ditto.
11484 * somread.c (som_symtab_read): Ditto.
11485 * symfile.c (simple_free_overlay_region_table): Ditto.
11486 * valops.c (value_assign): Ditto.
11487
11488 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11489 use tilde_expand and strerror for opening save-tracepoints file.
11490
11491 * thread-db.c (thread_db_new_objfile): Indendation fix.
11492
11493 * infptrace.c (GDB_MAX_ALLOCA): New define.
11494 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11495 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11496 can be overridden with whatever value is appropriate to the host).
11497 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11498 alloca to allocate potentially large buffer.
11499 * rs6000-nat.c (child_xfer_memory): Ditto.
11500 * symm-nat.c (child_xfer_memory): Ditto.
11501 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11502
11503 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11504
11505 From Nick Clifton <nickc@redhat.com>
11506 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11507
11508 2002-01-07 Michael Snyder <msnyder@redhat.com>
11509
11510 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11511 Don't use exec_bfd if it's NULL.
11512
11513 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11514
11515 * valops.c (value_arg_coerce): Fix formatting.
11516
11517 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11518
11519 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11520 * gnu-nat.c: Ditto.
11521
11522 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11523
11524 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11525 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11526 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11527 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11528 z8k-coff have not been multi-arched. Update z8k-coff build
11529 status.
11530
11531 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11532
11533 * MAINTAINERS: Mark a29k target as obsolete.
11534 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11535 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11536 comments.
11537 * NEWS: Note that a29k targets are obsolete.
11538 * a29k-tdep.c: Mark as obsolete.
11539 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11540 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11541 a29k-*-vxworks* targets as obsolete.
11542 * remote-adapt.c: Obsolete.
11543 * remote-eb.c: Obsolete.
11544 * remote-mm.c: Obsolete.
11545 * remote-udi.c: Obsolete.
11546 * config/a29k/a29k-udi.mt: Obsolete.
11547 * config/a29k/a29k.mt: Obsolete.
11548 * config/a29k/tm-a29k.h: Obsolete.
11549 * config/a29k/tm-vx29k.h: Obsolete.
11550 * config/a29k/vx29k.mt: Obsolete.
11551
11552 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11553
11554 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11555 with BFD_ENDIAN_BIG.
11556
11557 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11558
11559 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11560 * configure, config.in: Re-generate.
11561 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11562 * defs.h: Do not include <endian.h>.
11563
11564 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11565
11566 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11567 * config.in: Regenerate.
11568 * configure.in: Update copyright years.
11569 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11570 * configure: Regenerate.
11571 * i386bsd-nat.c: Update copyright years.
11572 (fill_gregset): Use regcache_collect.
11573 (fetch_inferior_registers): Only fetch integer registers
11574 if requested to do so. Add support for XMM registers
11575 using PT_GETXMMREGS.
11576 (store_inferior_registers): Only store integer registers
11577 if requested to do so. Add support for XMM registers
11578 using PT_SETXMMREGS.
11579 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11580 (store_inferior_registers): Remove.
11581 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11582 (fetch_elfcore_registers): New function.
11583 (i386nbsd_elfcore_fns): New.
11584 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11585 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11586 i386bsd-nat.o.
11587 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11588 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11589 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11590 * config/i386/tm-nbsd.h: Update copyright years.
11591 (HAVE_SSE_REGS): Define.
11592 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11593 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11594 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11595 (SIGCONTEXT_PC_OFFSET): Remove.
11596 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11597
11598 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11599
11600 * configure.tgt: Remove powerpc-*-macos* target.
11601 * config/m68k/xm-mpw.h: Delete file.
11602 * config/xm-mpw.h: Delete file.
11603 * ser-mac.c: Delete file.
11604 * mpw-make.sed: Delete file.
11605 * mpw-config.in: Delete file.
11606 * mac-xdep.c: Delete file.
11607 * mac-gdb.r: Delete file.
11608 * mac-defs.h: Delete file.
11609 * mac-nat.c: Delete file.
11610 * config/powerpc/macos.mh: Delete file.
11611 * config/powerpc/macos.mt: Delete file.
11612 * config/powerpc/nm-macos.h: Delete file.
11613 * config/powerpc/tm-macos.h: Delete file.
11614 * source.c (openp, open_source_file): Remove obsolete code.
11615 * top.c (gdb_readline): Ditto.
11616 * utils.c (query): Ditto.
11617 * event-top.c (display_gdb_prompt): Ditto.
11618 * Makefile.in (ser-mac.o): Delete obsolete target.
11619 * NEWS: Update.
11620
11621 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11622
11623 * defs.h (BIG_ENDIAN): Delete macro definition.
11624 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11625 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11626 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11627 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11628 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11629 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11630 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11631 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11632 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11633 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11634 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11635 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11636 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11637 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11638 * gdbarch.c: Re-generate.
11639
11640 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11641
11642 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11643 for core files.
11644
11645 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11646
11647 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11648
11649 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11650
11651 * value.h (value_ptr): Delete typedef.
11652
11653 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11654
11655 * i386nbsd-nat.c: Update copyright years.
11656 Include i386-tdep.h.
11657
11658 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11659
11660 * stabsread.c: Update copyright years.
11661
11662 From Debashis Mahata <debashis.mahata@wipro.com>:
11663 (read_struct_fields): Deal with Sun C compiler erroneous stab
11664 output for structs and unions.
11665 Fix PR gdb/269.
11666
11667 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11668
11669 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11670 prototype.
11671
11672 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11673
11674 * cp-abi.c: Fix whitespace.
11675 (baseclass_offset): New wrapper function.
11676 * cp-abi.h (baseclass_offset): Add prototype.
11677 (struct cp_abi_ops): Add baseclass_offset pointer.
11678
11679 * valops.c (vb_match): Move to...
11680 * gnu-v2-abi.c (vb_match): here.
11681 * valops.c (baseclass_offset): Move to...
11682 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11683
11684 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11685
11686 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11687 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11688 * hpacc-abi.c (init_hpacc_ops): Likewise.
11689
11690 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * valops.c (find_overload_match): Accept obj as a
11693 reference parameter. Update it before returning.
11694 * value.h (find_overload_match): Update prototype.
11695 * eval.c (evaluate_subexp_standard): Pass object to
11696 find_overload_match by reference.
11697
11698 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11699
11700 * valarith.c: Replace value_ptr with struct value pointer. Remove
11701 register attribute from value declarations.
11702 * valops.c: Ditto.
11703 * value.h: Ditto.
11704 * scm-lang.c (scm_lookup_name): Ditto.
11705
11706 2002-01-03 Michael Snyder <msnyder@redhat.com>
11707
11708 Abstract the functionality of iterating over mapped memory
11709 regions into a general purpose iterator function.
11710 * procfs.c (iterate_over_mappings): New function, general purpose
11711 iterator for memory sections.
11712 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11713 (solib_mappings_callback): New function, callback for above.
11714 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11715 (info_mappings_callback): New function, callback for above.
11716
11717 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11718
11719 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11720
11721 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11722 * i386-tdep.c: Include "elf-bfd.h".
11723 (process_note_abi_tag_sections): New function.
11724 (i386_gdbarch_init): Add code to recognize various OS/ABI
11725 combinations.
11726
11727 * maint.c (_initialize_maint_cmds): Add missing \ in
11728 string-literal.
11729
11730 For older changes see ChangeLog-2001
11731 \f
11732 Local Variables:
11733 mode: change-log
11734 left-margin: 8
11735 fill-column: 74
11736 version-control: never
11737 End: