2002-09-30 David Carlton <carlton@math.stanford.edu>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-09-30 David Carlton <carlton@math.stanford.edu>
2
3 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4 * ppc-sysv-tdep.c: #include "gdb_string.h".
5 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
6 pacify GCC.
7
8 2002-10-01 Andrew Cagney <ac131313@redhat.com>
9
10 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
11 "vrsave"'s register number.
12
13 2002-09-30 Andrew Cagney <ac131313@redhat.com>
14
15 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
16 use frame_unwind_signed_register to obtain the PC.
17 (mips_frame_chain): Handle a generic dummy frame.
18 (mips_init_extra_frame_info): When a generic dummy frame, don't
19 re-compute the frame base.
20 (mips_pop_frame): Handle generic dummy frames.
21 (mips_gdbarch_init): When generic dummy frames, set
22 use_generic_dummy_frames, push_dummy_frame to
23 generic_push_dummy_frame, pc_in_call_dummy to
24 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
25 generic_save_dummy_frame_tos.
26
27 2002-09-30 Andrew Cagney <ac131313@redhat.com>
28
29 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
30 against TOP when TOP was explictly set.
31 (generic_push_dummy_frame): Set TOP to zero.
32
33 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
34
35 * event-loop.c (start_event_loop): Rename variable 'result' to
36 'gdb_result', to avoid conflicts with upcoming intepreters changes.
37
38 2002-09-30 Keith Seitz <keiths@redhat.com>
39
40 * gdb-events.sh (selected_thread_changed): New event.
41 * gdb-events.c: Regenerated.
42 * gdb-events.h: Regenerated.
43
44 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
45
46 * MAINTAINERS: Add self to Write After Approval list.
47
48 2002-09-30 Fernando Nasser <fnasser@redhat.com>
49
50 * disasm.c: New file.
51 * disasm.h: New file.
52 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
53 (compare_lines): Ditto.
54 (dump_insns): Ditto.
55 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
56 argument.
57 (do_assembly_only): Ditto.
58 (do_disassembly): Renamed to gdb_disassembly and moved to
59 disasm.c. Sdded uiout argument.
60 * Makefile.in: Add new files. Reorder SFILES list. Update
61 dependencies. Include libgdb.a later in the insight executable.
62
63 2002-09-29 Andrew Cagney <ac131313@redhat.com>
64
65 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
66 bfd/elf64-alpha-fbsd.c.
67
68 2002-09-29 Andrew Cagney <ac131313@redhat.com>
69
70 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
71 i386gnu-tdep.c.
72
73 2002-09-29 Andrew Cagney <ac131313@redhat.com>
74
75 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
76 __FUNCTION__.
77 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
78 function name.
79 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
80 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
81 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
82 (S_msg_sig_post_reply): Ditto.
83
84 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
85
86 * sh-tdep.c (sh_use_struct_convention): Use definition according
87 to ABI.
88 (sh_push_arguments): Store in register with correct endianess.
89 (sh_default_store_return_value): Ditto.
90 (sh_gdbarch_init): Set sizeof long double to 8.
91
92 2002-09-27 Mark Kettenis <kettenis@gnu.org>
93
94 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
95 Fix some whitespace problems.
96
97 2002-09-27 David Carlton <carlton@math.stanford.edu>
98
99 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
100 (mcore-tdep.o): Ditto.
101 (ns32k-tdep.o): Ditto.
102 (ns32knbsd-tdep.o): Ditto.
103 (sh3-rom.o): Ditto.
104 (vax-tdep.o): Ditto.
105 * cris-tdep.c: #include "gdb_string.h"
106 * mcore-tdep.c: Ditto.
107 * ns32k-tdep.c: Ditto.
108 * ns32knbsd-tdep.c: Ditto.
109 * sh3-rom.c: Ditto.
110 * vax-tdep.c: Ditto.
111
112 2002-09-27 David Carlton <carlton@math.stanford.edu>
113
114 * config/djgpp/fnchange.lst: Add entries for
115 gdb/testsuite/gdb.c++/m-static files.
116
117 2002-09-27 Jim Wilson <wilson@redhat.com>
118
119 * MAINTAINERS: Add myself to the Write After Approval list.
120
121 2002-09-26 Martin M. Hunt <hunt@redhat.com>
122
123 * mips-tdep.c (find_proc_desc): Initialize startaddr.
124
125
126 2002-09-26 Andrew Cagney <ac131313@redhat.com>
127
128 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
129 frame.
130
131 2002-09-26 Andrew Cagney <ac131313@redhat.com>
132
133 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
134 (rs6000_struct_return_address): Delete variable.
135 (rs6000_store_struct_return): Update.
136 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
137 deprecated_extract_struct_value_address.
138 (rs6000_frame_align): New function.
139 (rs6000_gdbarch_init): Set frame_align.
140
141 2002-09-26 Andrew Cagney <ac131313@redhat.com>
142
143 From Grace Sainsbury <graces@redhat.com>:
144 * Makefile.in (gdbtk-main.o): New target.
145 (gdb.o): New target.
146 (main_h): Define.
147 (main.o): Update dependencies.
148 (gdb$(EXEEXT)): Add gdb.o.
149 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
150 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
151 (SUBDIR_GDBTK_CLEAN): Set.
152 (install-gdbtk): Install the insight binary.
153 (uninstall-gdbtk): New target.
154 (all-gdbtk, clean-gdbtk): New rule.
155 * top.c (use_windows): Default to zero.
156 * main.c: Include "main.h".
157 (main): Delete.
158 (struct captured_main_args): Delete.
159 (gdb_main): New function.
160 * main.h: New file.
161 * gdb.c: New File.
162
163 2002-09-25 Andrew Cagney <cagney@redhat.com>
164
165 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
166 (frame_map_regnum_to_name): New function.
167 (frame_map_name_to_regnum): New function.
168 * frame.h (frame_map_name_to_regnum): Declare.
169 (frame_map_regnum_to_name): Declare.
170 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
171 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
172 * parse.c: Do not include "builtin-regs.h".
173 (target_map_name_to_register): Delete function.
174 (write_dollar_variable): Use frame_map_name_to_regnum.
175 * parser-defs.h (target_map_name_to_register): Delete declaration.
176 * expprint.c: Include "frame.h".
177 (print_subexp): Use frame_map_regnum_to_name.
178 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
179 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
180
181 2002-09-25 Andrew Cagney <ac131313@redhat.com>
182
183 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
184 wasn't saved, and the next innermost frame is a dummy, return the
185 dummy frame's link register.
186
187 2002-09-24 Jim Blandy <jimb@redhat.com>
188
189 Fix from Paul Breed:
190 * main.c (captured_main): Add a `break' after the case for 'b'.
191
192 2002-09-24 Keith Seitz <keiths@redhat.com>
193
194 * varobj.c (c_type_of_child): Use get_target_type instead
195 of TYPE_TARGET_TYPE.
196
197 2002-09-22 Fernando Nasser <fnasser@redhat.com>
198
199 * source.c (get_current_or_default_source_symtab_and_line): Remove
200 function.
201 (set_default_source_symtab_and_line): New function. Attempts to
202 determine a source file to list lines from if one is not currently
203 defined.
204 (get_current_source_symtab_and_line): Initialize sal.pc and
205 sal.end fields.
206 (set_current_source_symtab_and_line): Mark argument as const.
207 * source.h: Update declarations and comments.
208 * linespec.c (decode_line_1): Replace call to removed routine above.
209 * stack.c (print_frame_info_base): Ditto.
210 * cli/cli-cmds.c (edit_command): Ditto.
211 (list_command): Ditto.
212
213 2002-09-22 Fernando Nasser <fnasser@redhat.com>
214
215 * source.c (get_current__or_default_source_symtab_and_line): Initialize
216 sal.pc and sal.end fields.
217 (get_current_or_default_source_symtab_and_line): Ditto.
218 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
219 so we do not cause a new source symtab to be searched for (reverting an
220 unintentional change from the 2002-09-20 patch).
221 * scm-lang.c (scm_unpac): Ditto.
222
223 2002-09-21 Andrew Cagney <cagney@redhat.com>
224
225 * complaints.c (symfile_explanations): Remove new-line from
226 ``isolated_message''.
227 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
228 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
229
230 2002-09-20 Nick Clifton <nickc@redhat.com>
231
232 * NEWS: Announce that V850EA ISA is no longer supported.
233 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
234
235 2002-09-20 David Carlton <carlton@math.stanford.edu>
236
237 * Makefile.in (c-lang.o): Correct dependencies.
238 (utils.o): Gather dependencies.
239 (charset.o): Move.
240 * c-lang.c: #include "gdb_string.h"
241
242 2002-09-20 Fernando Nasser <fnasser@redhat.com>
243
244 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
245 * cli/cli-cmds.c (list_command): New function. Implements the new
246 cli edit command.
247 (_init_cli_cmds): Add new command definition.
248 * gdb.1: Document edit command.
249 * doc/gdb.texinfo: Document edit command.
250
251 2002-09-20 Fernando Nasser <fnasser@redhat.com>
252
253 * source.c: Make global variables current_source_symtab and
254 current_source_line static.
255 (list_command): Moved to cli/cli-cmds.c.
256 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
257 (get_first_line_listed): New accessor function.
258 (get_lines_to_list): New accessor function.
259 (get_current_source_symtab_and_line): New function. Retrieves the
260 position in the source code that we consider current.
261 (get_current_or_default_source_symtab_and_line): New function.
262 Like the above but attempts to determine a default position if one
263 is not currently defined.
264 (set_current_source_symtab_and_line): New function. Sets the source
265 code position considered current and returns the previously set one.
266 (clear_current_source_symtab_and_line): Reset stored information about
267 a current source line.
268 (_initialize_source): Remove registration for the "list" command and
269 its alias.
270 * source.h: Add declarations for the new functions above.
271 * symtab.h: Remove declarations for the global variables mentioned
272 above.
273 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
274 obtain current source line.
275 * linespec.c (decode_line_1): Ditto.
276 * macroscope.c (default_macro_scope): Ditto.
277 * scm-lang.c (scm_unpac): Ditto.
278 * stack.c (print_frame_info_base): Ditto.
279 * symfile.c (clear_symtab_users): Ditto.
280 * symtab.c (decode_line_spec): Ditto.
281 * cli/cli-cmds.c (list_command): Moved here from source.c.
282 (ambiguous_line_spec): Moved here from source.c.
283 (_init_cli_cmds): Add definition for "list" and its alias.
284 * Makefile.in: Update dependencies.
285
286 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
287
288 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
289 with what gcc thinks is correct.
290
291 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
292
293 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
294 multiple register push instruction.
295
296 2002-09-19 Jim Blandy <jimb@redhat.com>
297
298 Add support for distinct host and target character sets.
299 * charset.c, charset.h: New files.
300 * c-exp.y: #include "charset.h".
301 (yylex): Convert character and string literals to the target
302 character set, before returning them as the semantic value of the
303 token.
304 * c-lang.c: #include "charset.h".
305 (c_emit_char): Use charset-specific methods to recognize
306 characters with backslash escape forms, to decide which characters
307 to print literally and which to print using numeric escape
308 sequences, and to convert target characters to host characters
309 before printing.
310 * utils.c: #include "charset.h".
311 (no_control_char_error): New function.
312 (parse_escape): Use charset-specific methods to recognize
313 backslash escapes, parse `control character' notation, and convert
314 characters from the host character set to the target character set.
315 * configure.in: Set the default host character set.
316 Check where to find iconv, and what its argument types might be.
317 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
318 * Makefile.in (SFILES): List charset.c.
319 (COMMON_OBS): List charset.o.
320 (charset.o): New rule.
321 (charset_h): New header dependency variable.
322 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
323 (LIBICONV): New variable, set by configure.
324 (CLIBS): Include $(LIBICONV) here.
325 * aclocal.m4, config.in, configure: Regenerated.
326
327 2002-09-19 Joel Brobecker <brobecker@gnat.com>
328
329 * ada-exp.y: Add missing semicolons to end rules. Fixes a
330 bison 1.35 warning.
331
332 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
333
334 * gdb_mbuild.sh: New file.
335
336 2002-09-19 Andrew Cagney <ac131313@redhat.com>
337
338 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
339
340 2002-09-18 Andrew Cagney <ac131313@redhat.com>
341
342 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
343 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
344 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
345 valops.c, value.h: Revert previous change.
346
347 2002-09-18 Michael Snyder <msnyder@redhat.com>
348
349 Preliminary support for Objective-C:
350 * defs.h (language_objc): New enum value.
351 (puts_filtered_tabular): Declaration only, exported from utils.c.
352 (skip_quoted): Delete, declared in completer.h.
353 * c-exp.y: Include completer.h.
354 * p-exp.y: Ditto.
355 * jv-exp.y: Ditto.
356 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
357 New operator enum values.
358 * language.h (CAST_IS_CONVERSION): Test for language_objc.
359 * language.c (binop_result_type): Handle language_objc case.
360 (integral_type, character_type, string_type, boolean_type,
361 structured_type, binop_type_check): Ditto.
362 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
363 (struct objc_specific): Add to general_symbol_info.
364 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
365 (SYMBOL_DEMANGLED_NAME): Handle objc case.
366 * parser-defs.h (struct objc_class_str): New struct type.
367 (start_msglist, end_msglist, add_msglist): Declaration only,
368 exported from objc-lang.c.
369 * value.h (value_of_local, value_nsstring,
370 call_function_by_hand_expecting_type): Exported from valops.c.
371 * valops.c (find_function_addr): Export.
372 (call_function_by_hand_expecting_type): New function.
373 (value_of_local): New function.
374 * symfile.c (init_filename_language_table): Add ".m" extension
375 for Objective-C.
376 * utils.c (puts_filtered_tabular): New function.
377 (fprintf_symbol_filtered): Add objc demangling support (disabled).
378 (set/show demangle): Extend help-string to refer to ObjC.
379 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
380 * stabsread.c (symbol_reference_defined): Objective-C symbols
381 may contain colons: make allowances when scanning stabs strings
382 for colons.
383 (objc_find_colon): New function.
384 * printcmd.c (address_info): If language == objc then print
385 "self" instead of "this".
386 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
387 OP_NSSTRING, and OP_SELF.
388 (prefixify_subexp): Ditto.
389 * source.c (print_source_lines): Mention objc in comment.
390 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
391 method names.
392
393 2002-09-18 Andrew Cagney <ac131313@redhat.com>
394
395 * complaints.h: Update copyright.
396 (struct complaints): Declare.
397 (struct complaint): Make `message' constant.
398 (internal_complaint): Declare.
399 (complaint): Declare.
400 (complaint_root): Delete declaration.
401 (symfile_complaints): Delete declaration.
402 (struct complaints): Add opaque declaration.
403 (clear_complaints): Add a complaints parameter.
404 * complaints.c: Update copyright.
405 (enum complaint_series): Define.
406 (complaint_root): Delete.
407 (struct complaints): Define.
408 (complaint_sentinel, symfile_complaint_book): New variables.
409 (symfile_explanations, symfile_complaints): New variables.
410 New variables.
411 (get_complaints): New function.
412 (vcomplaint): New function.
413 (complaint): New function.
414 (internal_complaint): New function.
415 (complain): Call vcomplain with symfile_complaint.
416 (clear_complaints): Rewrite.
417 (_initialize_complaints): Use add_setshow_command.
418 * Makefile.in (complaints.o): Update dependencies.
419 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
420 to call to clear_complaints.
421 (new_symfile_objfile, reread_symbols): Ditto.
422 (oldsyms_complaint): Delete.
423 (empty_symtab_complaint, unknown_option_complaint): Delete.
424 (free_named_symtabs): Use complaint instead of complain.
425
426 2002-09-18 Michael Snyder <msnyder@redhat.com>
427
428 Contributed by Apple Computer, Inc. Merged with current sources
429 by Adam Fedor <fedor@doc.com> [cagney].
430
431 * objc-lang.c: First clean-up round: comments, indentation.
432 * objc-lang.h: Ditto.
433 * objc-lang.y: Ditto.
434
435 2002-09-18 Andrew Cagney <ac131313@redhat.com>
436
437 * maint.c (maintenance_internal_error): Print the parameter as the
438 error message.
439 (maintenance_internal_warning): New function.
440 (_initialize_maint_cmds): Add command `maint internal-warning'.
441
442 * defs.h (internal_warning, internal_vwarning): Declare.
443 * utils.c (struct internal_problem): Define.
444 (internal_vproblem): New function.
445 (internal_warning): New function.
446 (internal_vwarning): New function.
447 (internal_warning_problem, internal_error_problem): New variables.
448 (internal_verror): Just call internal_vproblem.
449
450 2002-09-18 Michael Snyder <msnyder@redhat.com>
451
452 * objc-lang.c: New file, support for Objective-C.
453 Preliminary check-in, not yet integrated into gdb.
454 * objc-lang.h: New file.
455 * objc-exp.y: New file.
456
457 2002-09-18 Andrew Cagney <ac131313@redhat.com>
458
459 * infrun.c (signal_stop_update): Convert definition to ISO C.
460 (signal_print_update): Ditto.
461 (signal_pass_update): Ditto.
462 * inflow.c (terminal_save_ours): Ditto.
463
464 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
465 comments.
466
467 * config/djgpp/fnchange.lst: Handle name clashes between
468 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
469 bfd/coff-tic80.c.
470
471 * i386-linux-tdep.h: Fix tipo.
472
473 2002-09-18 Adam Fedor <fedor@gnu.org>
474
475 * MAINTAINERS: Add myself to the Write After Approval list.
476
477 2002-09-18 Jim Blandy <jimb@redhat.com>
478
479 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
480 texthigh and textlow to reader-specific structs caused
481 objfile_relocate to miss them. This is fixable, but the work that
482 the change was supposed to prepare GDB for never got done anyway.
483
484 2002-09-18 David Carlton <carlton@math.stanford.edu>
485
486 * MAINTAINERS: Alphabetize Write After Approval list.
487
488 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
489
490 Fix PR gdb/709
491 * values.c (value_static_field): Call read_var_value.
492
493 2002-09-18 Andrew Cagney <ac131313@redhat.com>
494
495 * valops.c (hand_function_call): Align the initial stack pointer
496 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
497 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
498 return value.
499 * mips-tdep.c (mips_frame_align): New function.
500 (mips_gdbarch_init): Set frame_align.
501 * gdbarch.sh (FRAME_ALIGN): New method.
502 * gdbarch.h, gdbarch.c: Re-generate.
503
504 2002-09-18 Michal Ludvig <mludvig@suse.cz>
505
506 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
507 registers.
508
509 2002-09-17 Andrew Cagney <ac131313@redhat.com>
510
511 * NEWS: Mention that MIPS $fp behavior changed.
512 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
513 reference to FP_REGNUM.
514 (mipsnbsd_cannot_store_register): Ditto.
515 * mips-linux-nat.c: Update copyright.
516 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
517 (mips_linux_cannot_store_register): Ditto.
518 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
519 * config/mips/tm-mips.h: Update copyright.
520 (FP_REGNUM): Delete macro.
521 (MIPS_REGISTER_NAMES): Replace "fp" with "".
522 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
523 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
524 (mips_r3041_reg_names, mips_r3051_reg_names)
525 (mips_r3081_reg_names): Replace "fp" with "".
526 Fix PR gdb/480.
527
528 2002-09-17 Theodore A. Roth <troth@verinet.com>
529
530 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
531 generic_read_register_dummy() (PR gdb/703).
532 (avr_push_return_address): #if 0 out unused vars.
533 (avr_gdbarch_init): Enable use of avr_push_return_address().
534
535 2002-09-17 Michael Snyder <msnyder@redhat.com>
536
537 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
538 RTE will take care of it.
539
540 2002-09-17 Andrew Cagney <ac131313@redhat.com>
541
542 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
543 invalid, return SP_REGNUM.
544
545 2002-09-17 Michael Snyder <msnyder@redhat.com>
546
547 * mips-tdep.c (mips_pop_frame): Read saved values of floating
548 point registers without sign extension.
549
550 2002-09-17 Andrew Cagney <cagney@redhat.com>
551
552 * blockframe.c (deprecated_read_register_dummy): Rename
553 generic_read_register_dummy.
554 * frame.c (frame_unwind_signed_register): New function.
555 (frame_unwind_unsigned_register): New function.
556 * frame.h (frame_unwind_signed_register): Declare.
557 (frame_unwind_unsigned_register): Declare.
558 (deprecated_read_register_dummy): Rename
559 generic_read_register_dummy.
560
561 * h8300-tdep.c (h8300_frame_chain): Update.
562 (h8300_frame_saved_pc): Update.
563 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
564 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
565 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
566 (s390_frame_chain): Update.
567 * v850-tdep.c (v850_find_callers_reg): Update.
568 (v850_frame_saved_pc): Update.
569 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
570 (m32r_find_callers_reg): Update.
571 (m32r_frame_saved_pc): Update.
572 * sh-tdep.c (sh_find_callers_reg): Update.
573 (sh64_get_saved_pr): Update.
574 (sh_init_extra_frame_info): Update.
575 (sh_init_extra_frame_info): Update.
576 (sh64_init_extra_frame_info): Update.
577 (sh64_init_extra_frame_info): Update.
578 * mcore-tdep.c (mcore_find_callers_reg): Update.
579 (mcore_frame_saved_pc): Update.
580 (mcore_init_extra_frame_info): Update.
581 * i386-tdep.c (i386_frame_saved_pc): Update.
582 * ia64-tdep.c (ia64_frame_saved_pc): Update.
583 (ia64_init_extra_frame_info): Update.
584 (ia64_init_extra_frame_info): Update.
585 * d10v-tdep.c (d10v_frame_saved_pc): Update.
586 * cris-tdep.c (cris_init_extra_frame_info): Update.
587 * avr-tdep.c (avr_frame_chain): Update.
588 (avr_init_extra_frame_info): Update.
589 (avr_frame_saved_pc): Update.
590 * arm-tdep.c (arm_find_callers_reg): Update.
591 (arm_init_extra_frame_info): Update.
592 (arm_frame_saved_pc): Update.
593
594 2002-09-17 Tom Tromey <tromey@redhat.com>
595
596 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
597 is "'".
598
599 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
600
601 * MAINTAINERS: Remove "non multi-arched" text from h8300.
602 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
603 NEXT_PROLOGUE_INSN.
604 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
605 NEXT_PROLOGUE_INSN.
606
607 2002-09-16 Joel Brobecker <brobecker@gnat.com>
608
609 * osfsolib.c: Remove file, replaced by solib-osf.c.
610 * Makefile.in: Remove compilation rules for osfsolib.c.
611
612 2002-09-16 David Carlton <carlton@math.stanford.edu>
613
614 * cp-valprint.c (cp_print_class_method): Correct args to
615 check_stub_method_group.
616
617 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
618
619 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
620 `set architecture'. Unify naming convention of functions.
621 (h8300_skip_prologue): Improve prologue analysis.
622 (h8300_push_arguments): Rewritten to more closely match GCC's
623 bizarre argument-passing behavior, along with the comment describing
624 said behavior.
625 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
626 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
627 sim, remote-e7000.c, remote-hms.c and remote.c
628
629 2002-09-15 Mark Kettenis <kettenis@gnu.org>
630
631 * i386-tdep.c (gdb_print_insn_i386): Removed.
632 (i386_print_insn): New function.
633 (i386_gdbarch_init): Set print_insn to i386_print_insns.
634 (_initialize_i386_tdep): Don't initialize tm_print_insn and
635 tm_print_insn_info.
636
637 2002-09-14 Mark Kettenis <kettenis@gnu.org>
638
639 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
640 zero.
641
642 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
643
644 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
645 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
646 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
647
648 2002-09-13 Christopher Faylor <cgf@redhat.com>
649
650 * win32-nat.c (child_create_inferior): Honor 'tty' command.
651
652 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
653
654 * gdbtypes.c (check_stub_method): Make static.
655 (check_stub_method_group): New function.
656 * gdbtypes.h: Update prototypes.
657 * cp-support.c: New file.
658 * cp-support.h: New file.
659
660 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
661 (update_method_name_from_physname): New function.
662 (read_member_functions): Correct method names for operators
663 and v3 constructors/destructors. Separate v2 constructors and
664 destructors.
665 * Makefile.in (stabsread.o): Update dependencies.
666 (SFILES): Add cp-support.c.
667 (COMMON_OBS): Add cp-support.o.
668 (cp_support_h, cp-support.o): Add.
669
670 * cp-valprint.c (cp_print_class_method): Call
671 check_stub_method_group instead of check_stub_method. Remove
672 extraneous QUITs.
673 * p-valprint.c (pascal_object_print_class_method): Likewise.
674 * valops.c (search_struct_method): Likewise.
675 (find_method_list, value_struct_elt_for_reference): Likewise.
676
677 2002-09-13 Andrew Cagney <cagney@redhat.com>
678
679 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
680 * gdbarch.h, gdbarch.c: Regenerate.
681
682 2002-09-13 Andrew Cagney <ac131313@redhat.com>
683
684 * frame.c (find_saved_register): Delete function.
685 * frame.h (find_saved_register): Delete declaration.
686 Fix PR gdb/631.
687
688 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
689
690 * mips-tdep.c (read_next_frame_reg): Re-hack using
691 frame_register_unwind.
692
693 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
694
695 * mips-tdep.c (mips_get_saved_register): Re-hack using
696 frame_register_unwind.
697
698 2002-09-12 Joel Brobecker <brobecker@gnat.com>
699
700 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
701 vector. Will be useful for Interix.
702 * gdbarch.h, gdbarch.c: Regenerate.
703
704 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
705 name of the malloc function by NAME_OF_MALLOC.
706
707 2002-09-12 Joel Brobecker <brobecker@gnat.com>
708
709 * value.h (find_function_in_inferior): Add const keyword to
710 one of the parameters. Allows us to invoke this function with
711 a const char *.
712 * valops.c (find_function_in_inferior): Likewise.
713
714 2002-09-12 Joel Brobecker <brobecker@gnat.com>
715
716 * exec.c (xfer_memory): Fix compilation warning with old versions
717 of GCC.
718 * tracepoint.c (trace_find_tracepoint_command): Likewise.
719
720 2002-09-12 David Carlton <carlton@math.stanford.edu>
721
722 * symtab.h: Run through gdb_indent.h.
723 Add 2002 to Copyright year list.
724
725 2002-09-12 Alan Modra <amodra@bigpond.net.au>
726
727 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
728 mach constants.
729 * MAINTAINERS: Add myself to write after approval list.
730
731 2002-09-11 J. Brobecker <brobecker@gnat.com>
732
733 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
734
735 2002-09-11 J. Brobecker <brobecker@gnat.com>
736
737 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
738 Interix.
739
740 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
741
742 * procfs.c (do_detach): Clear current signal, not just fault.
743 Corrects problem with breakpoint trap signal leaking to detached
744 process on Tru64.
745
746 2002-09-10 Michael Snyder <msnyder@redhat.com>
747
748 * buildsym.c (finish_block): Protect against null pointer.
749
750 2002-09-10 Andrew Cagney <cagney@redhat.com>
751
752 * infcmd.c (default_print_registers_info): Send all output to
753 ``file'' instead of ``gdb_stdout''.
754
755 2002-09-10 Michael Snyder <msnyder@redhat.com>
756
757 * mips-tdep.c (mips_extract_struct_value_address): Make val a
758 LONGEST, and use signed register read (addresses are sign-
759 extended for mips).
760
761 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
762
763 * event-loop.c (gdb_do_one_event): Make public.
764 * event-loop.h (gdb_do_one_event): Declare.
765
766 2002-09-10 Jeff Law <law@redhat.com>
767
768 * infttrace.c (child_resume): Simplify and rework to avoid
769 TT_PROC_CONTINUE.
770
771 2002-09-09 Fred Fish <fnf@intrinsity.com>
772
773 * printcmd.c (print_scalar_formatted): "len" is the number of
774 target bytes, NOT the number of target bits.
775
776 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
777
778 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
779 * top.c (init_main): Set rl_terminal_name.
780
781 2002-09-08 Aidan Skinner <aidan@velvet.net>
782
783 * ada-lang.c (ada_array_bound, ada_type_match,
784 _initialize_ada_language): Fix K&R definitions.
785 * ada-tasks.c (get_current_task): Fix K&R definitions.
786 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
787
788 2002-09-07 Christopher Faylor <cgf@redhat.com>
789
790 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
791 Add XP.
792
793 2002-09-06 Mark Kettenis <kettenis@gnu.org>
794
795 * i386-tdep.c (i386_register_virtual_type,
796 i386_register_convertible, i386_register_convert_to_virtual,
797 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
798 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
799 (i386_gdbarch_init): Fix comment. Add comments on calls that set
800 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
801 Don't set push_arguments twice.
802
803 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
804 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
805 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
806 sigtramp_end to NULL.
807 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
808 defines.
809 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
810
811 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
812 whitespace.
813
814 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
815 * gdbarch.h, gdbarch.c: Re-generate.
816 * blockframe.c (find_pc_sect_partial_function): Convert to use
817 SIGTRAMP_START_P predicate.
818
819 2002-09-05 Michael Snyder <msnyder@redhat.com>
820
821 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
822 generic_dummy_frame method and old method. Also distinguish
823 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
824 (arm_extract_return_value): Use new regcache method.
825
826 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
827 adjustment that doesn't conform to the ABI.
828 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
829 saved regcache, not from current regcache.
830
831 2002-09-05 Andrew Cagney <ac131313@redhat.com>
832
833 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
834 * README: Update.
835
836 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
837
838 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
839 if arm_apcs_32 is false.
840
841 2002-09-04 Andrew Cagney <ac131313@redhat.com>
842
843 GDB 5.3 branch created.
844
845 2002-09-03 Theodore A. Roth <troth@verinet.com>
846
847 * gdb/avr-tdep.c (avr_gdbarch_init): Use
848 generic_unwind_get_saved_register.
849
850 2002-09-03 David Carlton <carlton@math.stanford.edu>
851
852 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
853 argument (PR gdb/653). Update call to smash_to_method_type.
854 (read_structure_scope): Update call to dwarf2_add_member_fn.
855
856 2002-09-03 Michal Ludvig <mludvig@suse.cz>
857
858 * x86-64-linux-tdep.c: Include gdb_string.h
859 * x86-64-linux-nat.c: Ditto.
860
861 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
862
863 * ada-exp.y (yyname, yyrule): Remap global variables that appear
864 when YYDEBUG is set to 1.
865 * c-exp.y: Likewise.
866 * f-exp.y: Likewise.
867 * jv-exp.y: Likewise.
868 * m2-exp.y: Likewise.
869 * p-exp.y: Likewise.
870
871 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
872
873 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
874 dependency list.
875 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
876 solib_svr4_fetch_link_map_offsets to
877 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
878 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
879 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
880 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
881 solib-svr4.o, and solib-legacy.o.
882 * config/i386/tm-nbsd.h: Include solib.h.
883
884 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
885
886 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
887 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
888 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
889 comment noting that this needs its own target configuration.
890 * config/i386/nbsd.mt: New file.
891 * config/i386/nbsdaout.mt: Remove.
892 * config/i386/nbsdelf.mt: Ditto.
893 * config/i386/tm-nbsdaout.h: Ditto.
894
895 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
896
897 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
898 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
899 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
900 tdep->sigtramp_end.
901 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
902 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
904
905 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
906
907 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
908 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
909 * i386-tdep.h (i386bsd_init_abi): New prototype.
910 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
911 function declaration.
912 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
913 for NetBSD-a.out or NetBSD-ELF.
914 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
915 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
916 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
917 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
918 and nbsd-tdep.h.
919 (i386nbsd_pc_in_sigtramp): New function.
920 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
921 i386nbsd_pc_in_sigtramp.
922 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
923 and i386nbsdelf_init_abi OS ABI handlers.
924 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
925 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
926
927 2002-09-02 Mark Kettenis <kettenis@gnu.org>
928
929 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
930 registers if the target really has them.
931
932 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
933
934 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
935 than nbsd-tdep.h.
936
937 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
938
939 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
940 list.
941 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
942 (alphanbsd_skip_sigtramp_frame): New functions.
943 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
944 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
945 to alphanbsd_sigcontext_addr.
946
947 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
948
949 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
950 list.
951 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
952 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
953 nbsd_pc_in_sigtramp.
954 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
955 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
956 * nbsd-tdep.c: Include gdb_string.h.
957 (nbsd_pc_in_sigtramp): New function.
958 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
959 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
960 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
961 ppcnbsd_pc_in_sigtramp.
962 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
963 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
964 shnbsd_pc_in_sigtramp.
965 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
966 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
967 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
968
969 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
970
971 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
972 watchpoints to NULL.
973 (insert_breakpoints): set val field of watchpoints if NULL.
974
975
976 2002-08-29 Jim Blandy <jimb@redhat.com>
977
978 * symtab.c (lookup_symbol_aux): In the cases where we find a
979 minimal symbol of an appropriate name and use its address to
980 select a symtab to read and search, use `name' (as passed to us)
981 as the demangled name when searching the symtab's global and
982 static blocks, not the minsym's name.
983
984 2002-08-29 Keith Seitz <keiths@redhat.com>
985
986 * stack.c (print_frame_info_base): Always set current_source_symtab
987 and current_source_line.
988
989 2002-08-29 Donn Terry <donnte@microsoft.com>
990
991 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
992
993 2002-08-28 Keith Seitz <keiths@redhat.com>
994
995 * stack.c (select_frame): Add FIXME concerning selected-frame
996 events.
997 (select_frame_command): Send selected-frame-level-changed
998 event notification, but only if the level actually changed.
999 (up_silently_base): Add selected-frame-level-changed event
1000 notification.
1001 (down_silently_base): Likewise.
1002
1003 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1004
1005 * Makefile.in: Update dependencies for all gdb/*.c files.
1006
1007 2002-08-27 Tom Tromey <tromey@redhat.com>
1008
1009 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1010 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1011 Update dependencies.
1012 * i387-tdep.c: Include gdb_string.h.
1013 * osabi.c: Likewise.
1014 * i386-linux-nat.c: Likewise.
1015 * lin-lwp.c: Likewise.
1016 * ax-gdb.c: Likewise.
1017 * signals/signals.c: Likewise.
1018 * jv-valprint.c: Likewise.
1019 * p-lang.c: Likewise.
1020 * c-valprint.c: Likewise.
1021 * cp-abi.c: Likewise.
1022
1023 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1024
1025 * cli/cli-script.h (copy_command_lines): Export.
1026 * breakpoint.c: Include cli/cli-script.h.
1027 * Makefile.in (breakpoint.o): Update dependencies.
1028
1029 2002-08-26 Michael Snyder <msnyder@redhat.com>
1030
1031 * breakpoint.c (insert_breakpoints): Protect all references
1032 to 'process_warning'. Shorten long lines.
1033
1034 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1035
1036 * cli/cli-script.c (copy_command_lines): New function.
1037 * defs.h (copy_command_lines): Export.
1038 * testsuite/gdb.base/commands.exp: New tests for commands
1039 attached to a temporary breakpoint, and for commands that
1040 delete the breakpoint they are attached to.
1041
1042 2002-08-26 Michael Snyder <msnyder@redhat.com>
1043
1044 * breakpoint.c (bpstat_stop_status): Instead of copying the
1045 pointer to the breakpoint commands struct, make a new copy
1046 of the struct and point to that.
1047 (bpstat_clear): Free the commands struct.
1048 (bpstat_clear_actions): Free the commands struct.
1049 (bpstat_do_actions): Free the command actions. Also execute
1050 the local cleanups, instead of deleting them.
1051 (delete_breakpoint): Leave the commands field of the bpstat
1052 chain alone -- it will be freed later.
1053
1054 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1055
1056 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1057 deleted in 2002-08-20 commit. This function is still used by
1058 ppc-linux-nat.c.
1059
1060 2002-08-26 Keith Seitz <keiths@redhat.com>
1061
1062 * gdb-events.sh: Add selected-frame-level-changed event.
1063 * gdb-events.c: Regenerated.
1064 * gdb-events.h: Regenerated.
1065
1066 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1067
1068 Fix PR gdb/393:
1069 * inflow.c (terminal_save_ours): New function to save terminal
1070 settings.
1071 * inferior.h (terminal_save_ours): Declare.
1072 * target.c (debug_to_terminal_save_ours): New function.
1073 (cleanup_target): Defaults to_terminal_save_ours.
1074 (update_current_target): Inherit to_terminal_save_ours.
1075 (setup_target_debug): Set to_terminal_save_ours.
1076 * target.h (target_terminal_save_ours): New to save terminal settings.
1077 (target_ops): New member to_terminal_save_ours.
1078 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1079 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1080 * inftarg.c (init_child_ops): Likewise.
1081 * m3-nat.c (init_m3_ops): Likewise.
1082 * procfs.c (init_procfs_ops): Likewise.
1083 * wince.c (init_child_ops): Likewise.
1084 * win32-nat.c (init_child_ops): Likewise.
1085 * sol-thread.c (init_sol_thread_ops): Likewise.
1086
1087 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1088
1089 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1090 use regcache_* functions.
1091 (i386_gdbarch_init): Set store_return_value instead of
1092 deprecated_store_return_value.
1093
1094 * regcache.c (regcache_raw_write_signed,
1095 regcache_raw_write_unsigned): New functions.
1096 * regcache.h (regcache_raw_write_signed,
1097 regcache_raw_write_unsigned): New prototypes.
1098
1099 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1100
1101 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1102 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1103 source file dependencies. Cleanup corresponding generator rules.
1104
1105 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1106
1107 * regcache.h (register_offset_hack): Declare.
1108 (regcache_cooked_read_using_offset_hack): Declare.
1109 (regcache_cooked_write_using_offset_hack): Declare.
1110
1111 * regcache.c (register_offset_hack): New function.
1112 (regcache_cooked_read_using_offset_hack): New function.
1113 (regcache_cooked_write_using_offset_hack): New function.
1114 (regcache_dump): Check that the registers, according to their
1115 offset, are packed hard against each other.
1116 (cooked_xfer_using_offset_hack): New function.
1117
1118 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1119
1120 * regcache.c (struct regcache_descr): Add field register_type.
1121 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1122 in as a parameter
1123 (init_regcache_descr): Initialize register_type. Pass the descr
1124 to init_legacy_regcache_descr. Use register_type instead of
1125 REGISTER_VIRTUAL_TYPE.
1126 (register_type): New function.
1127 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1128 * regcache.h (register_type): Declare.
1129
1130 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1131
1132 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1133 instead of deprecated_store_return_value. Fix fallout from
1134 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1135
1136 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1137
1138 * regcache.c (max_register_size): New function.
1139 (init_legacy_regcache_descr): Ensure that max_register_size is
1140 large enough for REGISTER_VIRTUAL_SIZE.
1141 * regcache.h (max_register_size): Declare.
1142
1143 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1144
1145 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1146 store_return_value.
1147 (e500_extract_return_value): Change type of valbuf pointer to
1148 void.
1149
1150 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1151
1152 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1153 workaround.
1154
1155 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1156 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1157 long long) to prevent compiler warning on 64-bit systems.
1158
1159 2002-08-23 Andrew Cagney <cagney@redhat.com>
1160
1161 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1162 (DEPRECATED_STORE_RETURN_VALUE): New method.
1163 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1164 * gdbarch.h, gdbarch.c: Re-generate.
1165
1166 * values.c (set_return_value): Pass current_regcache to
1167 STORE_RETURN_VALUE.
1168 * arch-utils.h (legacy_store_return_value): Declare.
1169 * arch-utils.c (legacy_store_return_value): New function.
1170 (legacy_extract_return_value): Update parameters.
1171
1172 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1173 STORE_RETURN_VALUE.
1174 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1175 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1176 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1177 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1178 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1179 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1180 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1181 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1182 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1183 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1184
1185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1186 * i386-tdep.c (i386_extract_return_value): Update.
1187 * arch-utils.c (legacy_extract_return_value): Update.
1188 * frv-tdep.c (frv_gdbarch_init): Update.
1189 * cris-tdep.c (cris_gdbarch_init): Update.
1190 * d10v-tdep.c (d10v_gdbarch_init): Update.
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1192 * m68k-tdep.c (m68k_gdbarch_init): Update.
1193 * mcore-tdep.c (mcore_gdbarch_init): Update.
1194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1195 * s390-tdep.c (s390_gdbarch_init): Update.
1196 * sparc-tdep.c (sparc_gdbarch_init): Update.
1197 * sh-tdep.c (sh_gdbarch_init): Update.
1198 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1199 * v850-tdep.c (v850_gdbarch_init): Update.
1200 * avr-tdep.c (avr_gdbarch_init): Update.
1201 * ia64-tdep.c (ia64_gdbarch_init): Update.
1202 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1203 * vax-tdep.c (vax_gdbarch_init): Update.
1204 * alpha-tdep.c (alpha_gdbarch_init): Update.
1205 * arm-tdep.c (arm_gdbarch_init): Update.
1206 * mips-tdep.c (mips_gdbarch_init): Update.
1207 * i386-tdep.c (i386_gdbarch_init): Update.
1208
1209 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1210
1211 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1212 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1213
1214 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1215
1216 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1217 problems.
1218
1219 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1220
1221 * infrun.c (handle_inferior_event): Move a comment outside of a
1222 function call, in order to avoid indent reformatting this part
1223 of the code in an unreadable way.
1224
1225 2002-08-23 Grace Sainsbury <graces@redhat.com>
1226
1227 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1228 when breakpoints fail. Move general breakpoint error messages to
1229 insert_breakpoints.
1230 * breakpoint.c (insert_breakpoints): Change warnings when
1231 breakpoints are nto inserted to specify the type. Remove call to
1232 memory_error when hardware breakpoints can't be inserted. Remove
1233 multiple calls to warning so all messages are sent to the user at
1234 once.
1235 (delete_breakpoints): Make insert error messsages more explicit.
1236
1237 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1240 gdbserver/ChangeLog.
1241
1242 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1243
1244 * i386-tdep.c: Include "objfiles.h".
1245 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1246 skip_trampoline_code.
1247 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1248 (CPLUS_MARKER): Define to '.'.
1249
1250 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1251 member.
1252 (linux_corefile_thread_callback): Increase args->num_notes.
1253 (linux_make_note_section): Initialize thread_args.num_notes, and
1254 use it to determine whether notes for any threads were created.
1255
1256 2002-08-23 Donn Terry <donnte@microsoft.com>
1257
1258 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1259 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1260 and PCUNKILL.
1261 (write_with_trace): Conditionalize out the switch branch handling
1262 PCSHOLD if the corresponding macro is not defined. Likewise for
1263 PRSABORT and PRSTOP.
1264 This change will be needed by the Interix port.
1265
1266 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1267
1268 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1269 write_register wherever possible instead of manipulating the
1270 register bytes directly.
1271 Assign VALUE_CONTENTS to a variable and use that.
1272 The GPR numbers are now dependent on the architecture.
1273
1274 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1275
1276 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1277 ev_offset fields.
1278 (skip_prologue): Add support for BookE/e500 instructions.
1279 (e500_extract_return_value): New function.
1280 (frame_get_saved_regs): Add support for saving ev registers and
1281 pseudo gpr's.
1282 (e500_store_return_value): New function.
1283 (rs6000_gdbarch_init): Move up default intializations of
1284 deprecated_extract_return_value and store_return_value. Overwrite
1285 init of store_return_value with e500 specific version.
1286 Set extract_return_value for e500.
1287
1288 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1289
1290 * blockframe.c (generic_call_dummy_register_unwind): Use
1291 regcache_cooked_read to catch cases in which the variable is
1292 stored in a pseudo register.
1293
1294 2002-08-22 Andrew Cagney <cagney@redhat.com>
1295
1296 * NEWS: Mention that the i960 has been made obsolete.
1297 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1298 i960-tdep.c
1299 (remote-nrom.o): Obsolete target.
1300 (remote-nindy.o, i960-tdep.o): Ditto.
1301 * remote-nrom.c: Make file obsolete.
1302 * remote-nindy.c, remote-vx960.c: Ditto.
1303 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1304 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1305 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1306 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1307 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1308 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1309 i960-*-vxworks* obsolete.
1310 * MAINTAINERS: Note that the i960 is obsolete.
1311
1312 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1313
1314 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1315 detach to allow reinitialization.
1316
1317 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1318
1319 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1320 attempt).
1321
1322 2002-08-22 Jim Blandy <jimb@redhat.com>
1323
1324 * coffread.c (coff_symfile_read): Don't try to read the line
1325 number table from disk if the image file doesn't have a symbol
1326 table; we'll never actually look at the info anyway, and Windows
1327 ships DLL's with bogus file offsets for the line number data.
1328
1329 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1330
1331 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1332 an e500 executable.
1333
1334 2002-08-21 Michael Snyder <msnyder@redhat.com>
1335
1336 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1337 (MSYMBOL_SIZE): Replace macro with function.
1338 (DEFAULT_MIPS_TYPE): Delete unused macro.
1339 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1340 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1341
1342 2002-08-21 Jim Blandy <jimb@redhat.com>
1343
1344 * valops.c (value_cast): Simplify and correct logic for doing a
1345 static cast from a pointer to a base class to a pointer to a
1346 derived class.
1347
1348 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1349
1350 * infcmd.c (default_print_registers_info): Replace
1351 do_registers_info.
1352 (registers_info): Use gdbarch_print_registers_info instead of
1353 DO_REGISTERS_INFO.
1354 * inferior.h (default_print_registers_info): Replace
1355 do_registers_info.
1356 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1357 (DO_REGISTERS_INFO): Change to a predicate function.
1358 * gdbarch.h, gdbarch.c: Regenerate.
1359
1360 2002-08-21 Keith Seitz <keiths@redhat.com>
1361
1362 * gdb-events.sh: Add target-changed event.
1363 * gdb-events.c: Regenerated.
1364 * gdb-events.c: Regenerated.
1365 * valops.c (value_assign): Add target-changed event notification
1366 to inlval_register, lval_memory, and lval_reg_frame_relative.
1367
1368 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1369
1370 * NEWS: Add an entry regarding the improvement of the next/step
1371 operation on Alpha Tru64 multi-processor machines.
1372
1373 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1374
1375 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1376 directores.
1377 * Makefile.in: Update all _h macro definitions.
1378 * Makefile.in (install-gdbtk): Move to install section.
1379 (rdi-share/libangsd.a): Move to end of file.
1380
1381 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1382
1383 * frame.c (frame_register_unwind): When a register, set addrp to
1384 the register's byte.
1385
1386 2002-08-20 Michael Snyder <msnyder@redhat.com>
1387
1388 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1389 used locally, so move them from the target machine header to here.
1390 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1391 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1392 Make static.
1393 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1394
1395 2002-08-20 Andrew Cagney <cagney@redhat.com>
1396
1397 * NEWS: Mention that the Apollo line was made obsolete.
1398 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1399 m68*-hp-hpux* obsolete.
1400 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1401 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1402 * buildsym.c (make_blockvector): Make static.
1403 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1404 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1405 (ALLDEPFILES): Remove dstread.c.
1406 (dstread.o): Obsolete make rule.
1407 * dstread.c: Makefile obsolete.
1408 * dst.h: Ditto.
1409 * config/m68k/hp300hpux.mt: Ditto.
1410 * config/m68k/hp300hpux.mh: Ditto.
1411 * config/m68k/hp300bsd.mt: Ditto.
1412 * config/m68k/hp300bsd.mh: Ditto.
1413 * config/m68k/apollo68b.mt: Ditto.
1414 * config/m68k/apollo68v.mh: Ditto.
1415 * config/m68k/apollo68b.mh: Ditto.
1416
1417 2002-08-20 Michael Snyder <msnyder@redhat.com>
1418
1419 * mips-tdep.c (mips_in_return_stub): Make static.
1420 (mips_gdbarch_init): Set in_solib_return_trampoline.
1421 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1422
1423 2002-08-20 Michael Snyder <msnyder@redhat.com>
1424
1425 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1426 * gdbarch.c, gdbarch.h: Regenerate.
1427 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1428 Add.
1429 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1430
1431 2002-08-20 Michael Snyder <msnyder@redhat.com>
1432
1433 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1434 (mips_gdbarch_init): Set skip_trampoline_code,
1435 in_solib_call_trampoline.
1436 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1437 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1438
1439 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1440
1441 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1442
1443 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1444 vector type for ev registers.
1445 (e500_pseudo_register_read): New function.
1446 (e500_pseudo_register_write): New function.
1447 (e500_dwarf2_reg_to_regnum): New function.
1448 (PPC_UISA_NOFP_SPRS): New macro.
1449 (PPC_EV_REGS): New macro.
1450 (PPC_GPRS_PSEUDO_REGS): New macro.
1451 (registers_e500): New register set for e500.
1452 (variants): Add e500 variant.
1453 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1454 before setting architectural dependent variations. Initialize ev
1455 registers numbers. Add case for e500 architecture. Set the
1456 number of pseudo registers.
1457
1458 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1459
1460 * rs6000-tdep.c: Clean up comments.
1461
1462 2002-08-20 Andrew Cagney <cagney@redhat.com>
1463
1464 * h8300-tdep.c: Re-indent file.
1465
1466 2002-08-20 Jim Blandy <jimb@redhat.com>
1467
1468 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1469 default for this.
1470
1471 2002-08-20 Keith Seitz <keiths@redhat.com>
1472
1473 * breakpoints.c (watch_command_1): Use internal breakpoint
1474 when setting a watchpoint_scope breakpoint.
1475
1476 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1477
1478 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1479 (build_builtin_type_vec64i): Ditto.
1480 (build_builtin_type_vec128): Ditto.
1481 (build_builtin_type_vec128i): Ditto.
1482
1483 2002-08-19 Michael Snyder <msnyder@redhat.com>
1484
1485 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1486 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1487 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1488 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1489 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1490 CALL_DUMMY_ADDRESS): Delete.
1491 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1492 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1493 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1494 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1495 push_return_address.
1496 (mips_register_raw_size, mips_eabi_use_struct_convention,
1497 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1498 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1499 mips_init_extra_frame_info, mips_eabi_push_arguments,
1500 mips_n32n64_push_arguments, mips_push_return_address,
1501 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1502 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1503
1504 2002-08-19 Michael Snyder <msnyder@redhat.com>
1505
1506 * mips-tdep.c (mips_frame_num_args): New function.
1507 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1508 frame_saved_pc, frame_args_address, frame_locals_address,
1509 frame_num_args, and frame_args_skip.
1510 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1511 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1512 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1513 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1514
1515 2002-08-20 Michael Snyder <msnyder@redhat.com>
1516
1517 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1518 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1519 * mips-tdep.c (mips_store_struct_return): New function.
1520 (mips_extract_struct_value_address): New function.
1521 (mips_gdbarch_init): Set store_struct_return and
1522 extract_struct_value_address.
1523
1524 2002-08-20 David Carlton <carlton@math.stanford.edu>
1525
1526 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1527 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1528 (read_file_scope): Check that line_header is nonzero before
1529 decoding macro information.
1530
1531 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1532
1533 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1534 flag the general-purpose registers as floating-point on targets
1535 that don't support the floating-point registers.
1536
1537 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1538
1539 * rs6000-tdep.c (altivec_register_p): Delete.
1540 (rs6000_do_altivec_registers): Delete.
1541 (rs6000_altivec_registers_info): Delete.
1542 (rs6000_do_registers_info): Delete.
1543 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1544 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1545
1546 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1547
1548 * infcmd.c (do_registers_info): Print vector registers in hex
1549 format only.
1550 (print_vector_info): Check that printing registers
1551 makes sense.
1552 (print_float_info): Ditto.
1553
1554 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1555
1556 * mips-tdep.c (mips_gdbarch_init): Update.
1557 (mips_o32_extract_return_value): Rewrite.
1558 (mips_o32_store_return_value): Rewrite.
1559 (mips_o32_xfer_return_value): New function.
1560 (mips_xfer_register): Tweak debug print message. Allow for
1561 buf_offset when dumping the value transfered.
1562
1563 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1564
1565 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1566 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1567 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1568 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1569 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1570
1571 2002-08-14 Michael Snyder <msnyder@redhat.com>
1572
1573 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1574
1575 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1576
1577 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1578 register.
1579 (P): New macro to define a register as a pseudo register.
1580 (R, R4, R8, R16, FR32, R64, R0): Updated.
1581 (struct variant): Add new fields for number of pseudo registers
1582 and number of total registers.
1583 (tot_num_registers): New macro replacing....
1584 (num_registers): ...deleted macro.
1585 (num_registers): New function.
1586 (num_pseudo_registers): New function.
1587 (variants): Update all variants to intialize new fields correctly.
1588 Postpone initialization of number of pseudo regs and real regs.
1589 (init_variants): New function.
1590 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1591 registers offsets.
1592
1593 2002-08-19 David Carlton <carlton@math.stanford.edu>
1594
1595 * valops.c (search_struct_field): Change error message to treat
1596 return value of 0 from value_static_field as meaning that field is
1597 optimized out.
1598 (value_struct_elt_for_reference): Ditto.
1599 * values.c (value_static_field): Treat an unresolved location the
1600 same as a nonexistent symbol. Fix PR gdb/635.
1601 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1602 enclosed. Fix PR gdb/574.
1603 * MAINTAINERS: Add self to Write After Approval list.
1604
1605 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1606
1607 * mips-tdep.c (mips_xfer_register): New function.
1608 (mips_n32n64_extract_return_value): Rewrite.
1609 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1610 instead of deprecated_extract_return_value.
1611
1612 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1613
1614 * rs6000-tdep.c (TDEP): Delete macro.
1615 (branch_dest): Replace use of TDEP macro with its body.
1616 (rs6000_pop_frame): Ditto.
1617 (rs6000_push_arguments): Ditto.
1618 (rs6000_skip_trampoline_code): Ditto.
1619 (rs6000_frame_saved_pc): Ditto.
1620 (rs6000_frame_chain): Ditto.
1621 (rs6000_register_name): Ditto.
1622 (rs6000_register_byte): Ditto.
1623 (rs6000_register_raw_size): Ditto.
1624 (rs6000_register_virtual_type): Ditto.
1625 (rs6000_register_convertible): Ditto.
1626 (rs6000_convert_from_func_ptr_addr): Ditto.
1627
1628 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1631 conditionally.
1632 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1633 MIPS_LINUX_JB_ELEMENT_SIZE.
1634 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1635 for MAX_REGISTER_RAW_SIZE arrays.
1636 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1637 MIPS_LINUX_JB_ELEMENT_SIZE.
1638
1639 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1640
1641 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1642
1643 2002-08-19 Aidan Skinner <aidan@velvet.net>
1644
1645 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1646 ada-valprint.c ada-tasks.c.
1647 (YYFILES): Add ada-exp.y.
1648 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1649 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1650 (ada-exp.tab.o): New target.
1651
1652 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1653
1654 * regcache.c (regcache_xfer_part): New function.
1655 (regcache_raw_read_part): New function.
1656 (regcache_raw_write_part): New function.
1657 (regcache_cooked_read_part): New function.
1658 (regcache_cooked_write_part): New function.
1659 * regcache.h (regcache_raw_read_part): Declare.
1660 (regcache_raw_write_part): Declare.
1661 (regcache_cooked_read_part): Declare.
1662 (regcache_cooked_write_part): Declare.
1663
1664 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1665
1666 * remote.c (remote_open_1): Add async_p.
1667 (remote_async_open_1): Delete.
1668 (open_remote_target): Delete.
1669 (remote_open, extended_remote_open): Update calls to remote_open_1.
1670 (remote_async_open, extended_remote_async_open): Call
1671 remote_open_1 instead of remote_async_open_1.
1672
1673 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1674
1675 * blockframe.c: Fix a few coding standard violations.
1676
1677 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1678
1679 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1680 here from ...
1681 * config/i386/tm-i386sco5.h: ... here. File removed.
1682 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1683
1684 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1685 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1686 (TM_FILE): Set to tm-i386.h.
1687 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1688 * config/i386/tm-i386v.h: Remove file.
1689 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1690 instead of "i386/tm-i386v.h".
1691 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1692 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1693 "i386/tm-i386v.h".
1694 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1695 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1696 "i386/tm-i386.h".
1697
1698 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1699
1700 * config/i386/nm-i386v.h: Add protection against
1701 multiple-inclusion.
1702 (i386_register_u_addr): Remove prototype.
1703 (register_u_addr): New prototype.
1704 (REGISTER_U_ADDR): Redefine accordingly.
1705 * i386v-nat.c: Improve several comments.
1706 (i386_register_u_addr): Change signature and rename to
1707 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1708 ubase variable.
1709
1710 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1711
1712 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1713 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1714 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1715 deprecated_extract_return_value.
1716 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1717 rename mips_o32o64_push_arguments.
1718 (mips_gdbarch_init): Update.
1719 (mips_extract_return_value): Delete.
1720 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1721 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1722 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1723 (mips_n32n64_extract_return_value): Clone
1724 mips_extract_return_value.
1725 (mips_store_return_value): Delete.
1726 (mips_o32_store_return_value): Clone mips_store_return_value.
1727 (mips_o64_store_return_value): Clone mips_store_return_value.
1728 (mips_eabi_store_return_value): Clone mips_store_return_value.
1729 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1730
1731 2002-08-18 Aidan Skinner <aidan@velvet.net>
1732
1733 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1734 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1735
1736 2002-08-18 Aidan Skinner <aidan@velvet.net>
1737
1738 * ada-lang.c: Run through gdb_indent.sh.
1739 * ada-lang.h: Run through gdb_indent.sh.
1740 * ada-tasks.c: Run through gdb_indent.sh.
1741 * ada-typeprint.c: Run through gdb_indent.sh.
1742 * ada-valprint.c: Run through gdb_indent.sh.
1743
1744 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1745
1746 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1747 ABI.
1748
1749 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1750
1751 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1752
1753 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1754 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1755
1756 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1757 write_register_gen instead of write_register_bytes.
1758
1759 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1760 i[3456]-*-osf1mk* configurations have been made obsolete.
1761 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1762 i[3456]86-*-osf1mk* hosts obsolete.
1763 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1764 targets obsolete.
1765 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1766 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1767 config/i386/i386m3.mt, config/i386/nm-m3.h,
1768 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1769 config/i386/i386mk.mh, config/i386/i386mk.mt,
1770 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1771 obsolete.
1772 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1773 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1774 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1775
1776 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1777
1778 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1779 (hppa_value_returned_from_stack): Declare.
1780 (hppa_extract_return_value): Declare.
1781 * config/pa/hppa.mt: New file.
1782 * configure.tgt: Recognize hppa*-*-*.
1783 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1784
1785 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1786
1787 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1788 comment.
1789
1790 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1791
1792 * top.c (gdb_rl_operate_and_get_next): Make sure
1793 operate-and-get-next functions correctly even when the history
1794 list is completely filled.
1795
1796 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1797
1798 * MAINTAINERS (Target Instruction Set Architectures): Rename
1799 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1800 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1801 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1802 already listed under Host/Native.
1803
1804 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1805 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1806 mips*-*-*.
1807
1808 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1809
1810 * config/ia64/ia64.mt: New file.
1811 * config/alpha/alpha.mt: New file.
1812 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1813 ia64-linux-gnu. Mention that ia64-elf is broken.
1814 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1815
1816 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1817
1818 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1819 generic_func_frame_valid instead of func_frame_valid.
1820
1821 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1822
1823 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1824 procfs appears to be broken when debugging on multi-processor
1825 machines. So enable software single stepping in order to avoid
1826 using the procfs interface to do next/step operations, using
1827 internal breakpoints instead.
1828
1829 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1830 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1831 make this pc address equal to the value it would have if the
1832 system stepping capability was used. Also set a new flag used
1833 to ensure that we don't readjust the PC one more time later.
1834
1835 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1836 address by DECR_PC_AFTER_BREAK when software single step is
1837 in use for this architecture, as this has already been taken
1838 care of in handle_inferior_event().
1839
1840 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1841
1842 * infrun.c (handle_inferior_event): Minor reformatting, to make
1843 a rather long condition expression easier to read.
1844
1845 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1846
1847 * Makefile.in (gdbtk.o): Move to end of file.
1848 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1849 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1850 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1851 (gdbtk-wrapper.o, gdbres.o): Ditto.
1852
1853 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1854
1855 * Makefile.in (copying.o): Separate out compile rule.
1856 (hpux-thread.o, procfs.o, signals.o): Ditto.
1857 (v850ice.o, z8k-tdep.o): Ditto.
1858 (tui-file.o): Move to TUI section.
1859 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1860 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1861
1862 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1863
1864 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1865 skip_trampoline_code, for better namespace-proofing.
1866
1867 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1868
1869 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1870
1871 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1872
1873 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1874
1875 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1876 signal, check whether we hit a breakpoint before checking for a
1877 single step breakpoint. Otherwise, GDB fails to notice that a
1878 breakpoint has been hit when stepping onto a breakpoint.
1879
1880 2002-08-16 Keith Seitz <keiths@redhat.com>
1881
1882 * gdb-events.sh (clear_gdb_event_hooks): New function.
1883 * gdb-events.c: Regenerate.
1884 * gdb-events.h: Regenerate.
1885
1886 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1887
1888 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1889 not_a_sw_breakpoint.
1890 * breakpoint.h (bpstat_stop_status): Add parameter names.
1891
1892 2002-08-16 Grace Sainsbury <graces@redhat.com>
1893
1894 * remote.c (remote_insert_hw_breakpoint)
1895 (remote_remove_hw_breakpoint): Fix calculation of length field
1896 for Z-packet.
1897
1898 2002-08-15 Michael Snyder <msnyder@redhat.com>
1899
1900 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1901 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1902 (supply_fpregset): Ditto.
1903
1904 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1905 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1906 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1907 (TARGET_READ_SP): Delete.
1908 (DO_REGISTERS_INFO): Delete.
1909 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1910 Delete.
1911 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1912 from macros to functions.
1913
1914 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1915 (mips_register_convertible, mips_register_convert_to_virtual,
1916 mips_register_convert_to_raw): Make static.
1917 (mips_read_sp): New function.
1918 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1919 (mips_do_registers_info): Make static.
1920 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1921 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1922 (mips_register_convert_from_type, mips_register_convert_to_type):
1923 New functions.
1924 (mips_gdbarch_init): Set up function_start_offset,
1925 register_virtual_size, pc_in_sigtramp.
1926
1927 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1928
1929 * infcmd.c (vector_info): New function.
1930 (_initialize_infcmd): Add command "info vector".
1931 (print_vector_info): New function.
1932
1933 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1934 * gdbarch.h, gdbarch.c: Regenerate.
1935
1936 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1937
1938 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1939 ``print_all''. Only print vector registers when ``print_all''.
1940
1941 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1942
1943 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1944 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1945
1946 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1947 Add `args' parameter.
1948 * gdbarch.h, gdbarch.c: Regenerate.
1949
1950 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1951
1952 * infcmd.c (float_info): Call print_float_info.
1953 (print_float_info): New function. By default, print the
1954 floating-point registers.
1955
1956 * arch-utils.h (default_print_float_info): Delete declaration.
1957 * arch-utils.c (default_print_float_info): Delete function.
1958
1959 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1960
1961 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1962 out define.
1963
1964 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1965 FRAME.
1966
1967 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1968 * configure.host: Make i[3456]86-*-aix host obsolete.
1969 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1970 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1971 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1972 config/i386/xm-i386aix.h: Make files obsolete.
1973 * i386aix-nat.c: Make file obsolete.
1974 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1975 (i386aix-nat.o): Make target obsolete.
1976
1977 * config/i386/nm-gnu.h: Removed.
1978 * config/i386/nm-i386gnu.h: New file.
1979 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1980 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1981 Moved here from ...
1982 * config/i386/tm-i386gnu.h: ... here. Removed.
1983 * config/i386/xm-i386gnu.h: Removed.
1984 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1985 (NAT_FILE): Set to nm-i386gnu.h.
1986 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1987 * i386-tdep.c: New file.
1988 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1989 (i386gnu-tdep.o): Specify dependencies.
1990
1991 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1992
1993 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1994 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1995 Adjust a few comments to reflect reality a bit closer.
1996 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1997 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1998 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1999 target_insert_watchpoint, target_remove_watchpoint):
2000 Move defines to ...
2001 * config/i386/nm-i386sco5.h: ... here.
2002 (kernel_u_size): Add prototype. Improve a few comments and add
2003 protection against multiple inclusion.
2004
2005 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2006 out define.
2007
2008 * uw-thread.c (SP_ARG0): Define if not already defined.
2009 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2010
2011 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2012
2013 * config/i386/tm-i386.h: Don't include "regcache.h".
2014
2015 * i387-tdep.h (i387_print_float_info): New prototype.
2016 * i387-tdep.c (print_i387_value, print_i387_ext,
2017 print_i387_status_word, print_i387_control_word): Add `struct
2018 ui_file *' argument and use it for output.
2019 (i387_print_float_info): Renamed from i387_float_info. Add
2020 `struct gdbarch *' and `struct ui_file *' arguments and use the
2021 latter for output.
2022 * i386-tdep.c: Include "i387-tdep.h".
2023 (i386_gdbarch_init): Set print_float_info.
2024 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2025 (FLOAT_INFO): Remove define.
2026
2027 2002-08-13 Michael Snyder <msnyder@redhat.com>
2028
2029 * mips-tdep.c (mips_push_arguments): Rename to
2030 mips_eabi_push_arguments, and tune for EABI.
2031 (MIPS_REGS_HAVE_HOME_P): Delete.
2032 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2033 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2034 Delete references to mips_regs_have_home_p.
2035
2036 2002-08-14 Keith Seitz <keiths@redhat.com>
2037
2038 * Makefile.in (install-gdbtk): Create insight plugin directory.
2039 Install plugins.tcl file.
2040
2041 2002-08-14 Keith Seitz <keiths@redhat.com>
2042
2043 * configure.in: Move SUBDIRS to near top of the file so that
2044 --enable options may add things to it.
2045 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2046 * configure: Regenerate.
2047
2048 2002-08-13 Michael Snyder <msnyder@redhat.com>
2049
2050 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2051 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2052 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2053
2054 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2055
2056 * vax-tdep.c (vax_get_saved_register): Delete function.
2057 (vax_gdbarch_init): Update.
2058 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2059 (ns32k_gdbarch_init): Update.
2060 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2061 (alpha_gdbarch_init): Update.
2062
2063 2002-08-13 Andrew Cagney <cagney@redhat.com>
2064
2065 * regcache.c (init_regcache_descr): Overallocate the
2066 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2067 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2068 nr_raw_registers.
2069 (set_register_cached): Add range checking assertions. Use
2070 current_regcache.
2071
2072 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2073
2074 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2075 numbers for MMX registers.
2076
2077 2002-08-13 Andrew Cagney <cagney@redhat.com>
2078
2079 * i386-tdep.c (i386_gdbarch_init): Use
2080 generic_unwind_get_saved_register.
2081
2082 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2083
2084 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2085 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2086 target vector.
2087 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2088 Delete. Add comment regarding this now-deleted target method.
2089
2090 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2091
2092 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2093 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2094 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2095 real PC and the page number (if it's within the memory bank window).
2096 (m68hc11_pseudo_register_write): Likewise when saving.
2097 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2098 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2099 (m68hc11_register_raw_size): And use 32-bit for it.
2100 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2101 16K memory bank is used by the prog; also use the virtual pc.
2102
2103 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2104
2105 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2106 (m68hc11_gdbarch_init): Install it in gdbarch.
2107 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2108 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2109 (MSYMBOL_SIZE): New for documentation.
2110 (insn_return_kind): Enum to specify how a function returns.
2111 (frame_extra_info): Cleanup and record the return mode.
2112 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2113 register in address computation.
2114 (m68hc11_get_return_insn): New to obtain the return instruction used
2115 by the function.
2116 (m68hc11_frame_init_saved_regs): Take into account the return
2117 instruction used by the function for far and interrupt functions.
2118 (m68hc11_init_extra_frame_info): Take into account page register.
2119 (m68hc11_frame_args_address): Adjust according to the return mode.
2120 (show_regs): Print page register only when it's used.
2121
2122 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2123
2124 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2125 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2126 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2127 registers.
2128 (m68hc11_register_raw_size): Likewise.
2129
2130 2002-08-13 Andrew Cagney <cagney@redhat.com>
2131
2132 * i386-tdep.c (i386_register_name): Handle mmx registers.
2133 (mmx_regnum_p): New function.
2134 (i386_mmx_names): New array.
2135 (mmx_num_regs): New variable.
2136 (i386_pseudo_register_read): New function.
2137 (i386_pseudo_register_write): New function.
2138 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2139
2140 * regcache.c (regcache_raw_read_unsigned): New function.
2141 (regcache_raw_read_signed): New function.
2142 * regcache.h (regcache_raw_read_unsigned): Declare.
2143 (regcache_raw_read_signed): Declare.
2144
2145 2002-08-13 Andrew Cagney <cagney@redhat.com>
2146
2147 * regcache.c (regcache_raw_read_as_address): Delete function.
2148 (regcache_cooked_read_signed): New function.
2149 (regcache_cooked_read_unsigned): New function.
2150 * regcache.h (regcache_cooked_read_signed): Declare.
2151 (regcache_cooked_read_unsigned): Declare.
2152 (regcache_raw_read_as_address): Delete declaration.
2153
2154 * blockframe.c (generic_read_register_dummy): Use
2155 regcache_cooked_read_unsigned.
2156 * i386-tdep.c (i386_extract_struct_value_address): Use
2157 regcache_cooked_read_unsigned.
2158
2159 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2160
2161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2162 double sizes according to ELF ABI flags.
2163 (gdbarch_tdep): Record elf_flags.
2164
2165 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2166
2167 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2168 (m6812_prolog): They can appear in 68HC12 function prologue.
2169 (m68hc11_frame_chain): Cleanup.
2170
2171 2002-08-12 Andrew Cagney <cagney@redhat.com>
2172
2173 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2174 declarations.
2175 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2176 (i386_linux_register_raw_size): Delete function.
2177 (i386_linux_init_abi): Update.
2178 * i386-tdep.c (i386_register_raw_size): Delete function.
2179 (i386_register_byte): Delete function.
2180 (i386_gdbarch_init): Update.
2181 (i386_register_size): Delete array.
2182 (i386_register_offset): Delete array.
2183
2184 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2185 (REGISTER_RAW_SIZE): Delete macro.
2186 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2187 (REGISTER_BYTE): Delete macro.
2188
2189 2002-08-11 Aidan Skinner <aidan@velvet.net>
2190
2191 * ada-lang.c (ada_lookup_partial_symbol)
2192 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2193 prototype names so that grep ^func works properly.
2194
2195 * ada-lang.c (ada_array_element_type)
2196 (ada_lookup_partial_symbol): Fix typos in parameter list.
2197
2198 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2199 Fix prototype names so that grep ^func works properly.
2200
2201 2002-08-10 Andrew Cagney <cagney@redhat.com>
2202 Elena Zannoni <ezannoni@redhat.com>
2203 Martin M. Hunt <hunt@redhat.com>
2204
2205 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2206 (build_builtin_type_vec128i): Set the vector bit.
2207 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2208 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2209 (build_builtin_type_vec64): New function.
2210 (build_builtin_type_vec64i): New function.
2211 (build_gdbtypes): Initialize builtin_type_vec64 and
2212 builtin_type_vec64i.
2213
2214 2002-08-09 Andrew Cagney <cagney@redhat.com>
2215
2216 * regcache.c (regcache_dump): Compare the register offset
2217 with REGISTER_BYTE.
2218 * arch-utils.c (generic_register_byte): New function.
2219 * arch-utils.h (generic_register_byte): Declare.
2220 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2222
2223 2002-08-09 Andrew Cagney <cagney@redhat.com>
2224
2225 * regcache.c: Include "gdbcmd.h"
2226 (_initialize_regcache): Add commands "maintenance print
2227 registers", "maintenance print raw-registers" and "maintenance
2228 print cooked-registers".
2229 (enum regcache_dump_what): Define.
2230 (dump_endian_bytes): New function.
2231 (regcache_dump): New function.
2232 (regcache_print): New function.
2233 (maintenance_print_registers): New function.
2234 (maintenance_print_raw_registers): New function.
2235 (maintenance_print_cooked_registers): New function.
2236 * Makefile.in (regcache.o): Update dependencies.
2237
2238 2002-08-09 Michael Snyder <msnyder@redhat.com>
2239
2240 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2241 (mips_push_arguments): Correct some comments. Use paddr_nz
2242 for printing addresses in debug output. Replace static
2243 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2244 (mips_n32n64_push_arguments): New function, cloned from
2245 mips_push_arguments and tuned for the n32/n64 ABI.
2246 (mips_push_register): Buffer needs dynamic allocation.
2247 (mips_print_register): Ditto.
2248 (do_gp_register_row): Ditto.
2249 (mips_store_return_value): Ditto.
2250 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2251
2252 2002-08-09 Don Howard <dhoward@redhat.com>
2253
2254 * memattr.c (mem_info_command): Print special case of upper bound
2255 as max CORE_ADDR + 1.
2256
2257 2002-08-08 Michael Snyder <msnyder@redhat.com>
2258
2259 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2260 returns structs by ref if they're too big to fit in two registers.
2261
2262 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2263
2264 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2265 saved regs value.
2266 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2267 mips_find_saved_regs().
2268 (mips_pop_frame): Likewise.
2269
2270 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2271
2272 * blockframe.c (frame_saved_regs_register_unwind): Revise
2273 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2274 frames are in use.
2275
2276 2002-08-09 Grace Sainsbury <graces@redhat.com>
2277
2278 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2279 T-packets; the 'a' is not taken as a register number.
2280 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2281 (remote_stopped_data_address): New functions; add to target
2282 vector.
2283 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2284 prototypes to match other implementations of this
2285 function. replace integer argument with pointer -- the length
2286 field in the Z-packet is the length of what is pointed to or 1 if
2287 pointer is null. Add to target vector.
2288 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2289 target vector.
2290
2291 From Mark Salter:
2292 * remote.c (remote_wait): Add support to extract optional
2293 watchpoint information from T-packet. Ignore unrecognized
2294 optional info in T-packet.
2295 (remote_async_wait): Ditto.
2296
2297 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2298
2299 * cli/cli-dump.c: Change fopen modes to use binary open modes
2300 as defined in include/fopen-bin.h throughout.
2301
2302 2002-08-08 Michael Snyder <msnyder@redhat.com>
2303
2304 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2305
2306 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2307
2308 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2309 assertion failure by returning early after a warning.
2310
2311 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2312
2313 * mips-tdep.c (mips_find_saved_regs): Make static.
2314 (mips_frame_init_saved_regs): New function.
2315 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2316 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2317 (mips_find_saved_regs): Delete declaration.
2318
2319 2002-08-08 Grace Sainsbury <graces@redhat.com>
2320
2321 * remote.c (remote_wait, remote_async_wait): Change
2322 thread_num from int to ULONGEST.
2323 (unpack_varlen_hex): Change result parameter from
2324 int * to ULONGEST *.
2325
2326 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2327
2328 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2329 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2330 powerpc*-*-*.
2331 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2332
2333 2002-08-08 Andrew Cagney <cagney@redhat.com>
2334
2335 * gcore.c (override_derive_stack_segment): Delete variable.
2336 (preempt_derive_stack_segment): Delete function.
2337 (derive_stack_segment): Delete function.
2338 (default_derive_stack_segment): Renamed to derive_stack_segment.
2339 (override_derive_heap_segment): Delete variable.
2340 (preempt_derive_heap_segment): Delete function.
2341 (derive_heap_segment): Delete function.
2342 (default_derive_heap_segment): Rename to derive_heap_segment.
2343
2344 2002-08-06 Michael Snyder <msnyder@redhat.com>
2345
2346 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2347 * mips-tdep.c (mips_EABI_use_struct_convention,
2348 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2349 New functions. (mips_use_struct_convention): Delete.
2350 (mips_gdbarch_init): set use_gdbarch_convention.
2351
2352 2002-08-06 Michael Snyder <msnyder@redhat.com>
2353
2354 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2355 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2356 mips_o32_reg_struct_has_addr): New functions.
2357 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2358
2359 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2360
2361 * regcache.c (pseudo_register): Delete function.
2362 (fetch_register): Delete function.
2363 (store_register): Delete function.
2364 (regcache_raw_read, legacy_read_register_gen): Use
2365 target_fetch_registers instead of fetch_register.
2366 (legacy_write_register_gen, regcache_raw_write): Use
2367 target_store_register instead of store_register.
2368 (write_register_bytes): Ditto.
2369
2370 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2371 (STORE_PSEUDO_REGISTER): Delete.
2372 * gdbarch.h, gdbarch.c: Regenerate.
2373
2374 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2375
2376 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2377 write dump file binary.
2378
2379 2002-08-05 Michael Snyder <msnyder@redhat.com>
2380
2381 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2382 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2383 (mips_gdbarch_init): Set N32 target to be mips64.
2384
2385 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2386
2387 * frame.c (find_saved_register): Break out of loop once saved
2388 register address is found. Don't mention sparc in loop comment
2389 anymore.
2390
2391 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2392
2393 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2394 mips_default_saved_regsize to 8.
2395
2396 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2397
2398 * gcore.c: Do not include <sys/procfs.h>.
2399 * Makefile.in (gcore.o): Update dependencies.
2400
2401 2002-08-06 Andrew Cagney <cagney@redhat.com>
2402
2403 * configure.tgt: Make arc-*-* obsolete.
2404 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2405 * MAINTAINERS: Make arc-elf obsolete.
2406 * arc-tdep.c: Make file obsolete.
2407 * config/arc/arc.mt: Ditto.
2408 * config/arc/tm-arc.h: Ditto.
2409
2410 2002-08-05 Theodore A. Roth <troth@verinet.com>
2411
2412 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2413
2414 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2415
2416 * mcore-tdep.c (mcore_gdbarch_init): Use
2417 generic_unwind_get_saved_register instead of
2418 generic_get_saved_register.
2419 * v850-tdep.c (v850_gdbarch_init): Ditto.
2420 * frv-tdep.c (frv_gdbarch_init): Ditto.
2421 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2422 * s390-tdep.c (s390_gdbarch_init): Ditto.
2423 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2424 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2425 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2426
2427 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2428
2429 * objfiles.h: Add missing #include "symfile.h"
2430
2431 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2432
2433 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2434
2435 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2436 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2437 of FIELD_BITSIZE.
2438
2439 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2440
2441 * NEWS: Cleanup and nitpick.
2442
2443 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2444
2445 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2446
2447 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2448
2449 * Makefile.in (gdbtk-bp.o): Update dependencies.
2450 (gdbtk-register.o): Ditto.
2451 (gdbtk-varobj.o): Ditto.
2452
2453 2002-08-03 Andrew Cagney <cagney@redhat.com>
2454
2455 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2456 m68hc11_fetch_pseudo_register.
2457 (m68hc11_pseudo_register_write): Replace
2458 m68hc11_store_pseudo_register.
2459 (m68hc11_gdbarch_init): Update.
2460
2461 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2462
2463 * gdbarch.sh: Include "gdb_string.h".
2464 * gdbarch.c: Regenerate.
2465
2466 * regcache.c: Include "gdb_string.h".
2467 * ax-general.c: Ditto.
2468 * varobj.c: Ditto.
2469 * std-regs.c: Ditto.
2470 * fbsd-proc.c: Ditto.
2471 * thread.c: Ditto.
2472
2473 * Makefile.in (regcache.o): Update dependencies.
2474 (thread.o, gdbarch.o): Ditto.
2475 (ax-general.o, gdbarch.o): Ditto.
2476 (varobj.o, std-regs.o): Ditto.
2477 (fbsd-proc.o): Specify dependencies.
2478
2479 2002-08-02 Andrew Cagney <cagney@redhat.com>
2480
2481 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2482 regnum.
2483 (regcache_cooked_write): Ditto.
2484
2485 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2486
2487 * regcache.c (regcache_cooked_read): New function.
2488 (regcache_cooked_write): New function.
2489 (read_register_gen): Rewrite using regcache_cooked_read.
2490 (write_register_gen): Rewrite using regcache_cooked_write.
2491
2492 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2493 Declare.
2494
2495 2002-08-02 Andrew Cagney <cagney@redhat.com>
2496
2497 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2498 Replace the architecture methods register_read and register_write.
2499 * gdbarch.h, gdbarch.c: Regenerate.
2500 * regcache.c (init_regcache_descr): Update.
2501 (read_register_gen): Update.
2502 (write_register_gen): Update.
2503 (supply_register): Update comment.
2504
2505 * sh-tdep.c (sh_gdbarch_init): Update.
2506 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2507 `regcache' and `gdbarch' parameters. Make `buffer' a void
2508 pointer. Update code.
2509 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2510 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2511 void pointer. Update code.
2512 (sh64_register_write): Delete.
2513 (sh4_register_read): Delete.
2514 (sh64_register_read): Delete.
2515 (sh4_register_write): Delete.
2516 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2517 void pointer, `to' parameter a void pointer.
2518 (sh_sh64_register_convert_to_raw): Ditto.
2519
2520 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2521
2522 * mips-tdep.c (mips_register_virtual_type): Use architecture
2523 invariant return values.
2524
2525 2002-08-01 Andrew Cagney <cagney@redhat.com>
2526
2527 * linux-proc.c: Include "gdb_string.h".
2528 * Makefile.in (linux-proc.o): Update dependency list.
2529
2530 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2531
2532 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2533 comment.
2534
2535 2002-08-01 Grace Sainsbury <graces@redhat.com>
2536
2537 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2538 to_insert_watchpoint, to_remove_watchpoint,
2539 to_stopped_by_watchpoint, to_stopped_data_address,
2540 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2541 target vecctor. Define their corresponding macros so they call
2542 them.
2543
2544 * target.c: Add default and debug versions of for
2545 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2546 to_insert_watchpoint, to_remove_watchpoint,
2547 to_stopped_by_watchpoint, to_stopped_data_address,
2548 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2549
2550 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2551
2552 * mips-tdep.c (mips_register_virtual_type): New function.
2553 (mips_gdbarch_init): Register mips_register_virtual_type()
2554 with gdbarch machinery.
2555 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2556 this file instead of tm-bigmips.h.
2557 (MIPS_REGSIZE): Delete this macro.
2558 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2559 multiarch version in mips-tdep.c will be found.
2560
2561 2002-08-01 Andrew Cagney <cagney@redhat.com>
2562
2563 * NEWS: Menion that CHILL has been made obsolete.
2564
2565 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2566 * stabsread.c (read_range_type): Ditto.
2567 * gdbtypes.h: Ditto.
2568 * language.c (binop_type_check): Ditto.
2569 (binop_result_type): Ditto.
2570 (integral_type): Ditto.
2571 (character_type): Ditto.
2572 (string_type): Ditto.
2573 (boolean_type): Ditto.
2574 (structured_type): Ditto.
2575 (lang_bool_type): Ditto.
2576 (binop_type_check): Ditto.
2577 * language.h (_LANG_chill): Ditto.
2578 * dwarfread.c (set_cu_language): Ditto.
2579 * dwarfread.c (CHILL_PRODUCER): Ditto.
2580 * dwarfread.c (handle_producer): Ditto.
2581 * expression.h (enum exp_opcode): Ditto.
2582 * eval.c: Ditto for comments.
2583 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2584 * expprint.c (print_subexp): Ditto.
2585 (print_subexp): Ditto.
2586 * valops.c (value_cast): Ditto.
2587 (search_struct_field): Ditto.
2588 * value.h (COERCE_VARYING_ARRAY): Ditto.
2589 * symfile.c (init_filename_language_table): Ditto.
2590 (add_psymbol_with_dem_name_to_list): Ditto.
2591 * valarith.c (value_binop): Ditto.
2592 (value_neg): Ditto.
2593 * valops.c (value_slice): Ditto.
2594 * symtab.h (union language_specific): Ditto.
2595 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2596 (SYMBOL_DEMANGLED_NAME): Ditto.
2597 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2598 * defs.h (enum language): Ditto.
2599 * symtab.c (got_symtab): Ditto.
2600 * utils.c (fprintf_symbol_filtered): Ditto.
2601
2602 * ch-typeprint.c: Make file obsolete.
2603 * ch-valprint.c: Make file obsolete.
2604 * ch-lang.h: Make file obsolete.
2605 * ch-exp.c: Make file obsolete.
2606 * ch-lang.c: Make file obsolete.
2607
2608 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2609 CHILL_LIB.
2610 (TARGET_FLAGS_TO_PASS): Ditto.
2611 (CHILLFLAGS): Obsolete.
2612 (CHILL): Obsolete.
2613 (CHILL_FOR_TARGET): Obsolete.
2614 (CHILL_LIB): Obsolete.
2615 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2616 ch-valprint.c.
2617 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2618 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2619 ch-lang.o.
2620 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2621 targets.
2622
2623 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2624
2625 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2626 This does not change anything at the moment, but will be helpful
2627 later when full Ada support is integrated.
2628
2629 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2630
2631 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2632 help message.
2633
2634 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2635
2636 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2637 and save it in a local variable. Use variable in later test.
2638
2639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2640
2641 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2642 test. (Thanks to Daniel Jacobowitz.)
2643
2644 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2645
2646 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2647 (mips_abi_strings): Add "n64".
2648 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2649
2650 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2651
2652 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2653 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2654
2655 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2656
2657 * utils.c (host_pointer_to_address, address_to_host_pointer):
2658 Use gdb_assert() instead of explicit call to internal_error().
2659
2660 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2661
2662 * Makefile.in (rs6000-nat.o): Update dependencies.
2663
2664 From Nicholas Duffek:
2665 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2666 (aix-thread.o): New rule.
2667 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2668 * config/powerpc/aix432.mh: New file.
2669
2670 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2671
2672 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2673 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2674 (fetch_core_registers, ppc_linux_supply_gregset)
2675 (ppc_linux_supply_fpregset): New functions.
2676 (ppc_linux_regset_core_fns): New.
2677 (_initialize_ppc_linux_tdep): Call add_core_fns.
2678 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2679 and ppc_linux_supply_gregset.
2680 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2681 (supply_fpregset): Call ppc_linux_supply_fpregset.
2682 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2683 corelow.o.
2684 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2685
2686 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2687
2688 * symtab.c (lookup_symbol): Demangle before lowercasing.
2689
2690 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2691
2692 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2693 declaration.
2694 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2695 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2696 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2697 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2698 "gdb_string.h".
2699 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2700 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2701 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2702 (avr-tdep.o, mon960-rom.o): Ditto.
2703 (aout_stabs_gnu_h): Define.
2704 (symtab_h): Remove $(gdb_obstack_h).
2705
2706 2002-07-30 Jim Blandy <jimb@redhat.com>
2707
2708 Patch from David Carlton <carlton@math.stanford.edu>:
2709 * gdbinit.in: Move the `dir' commands that add GDB's own source
2710 directory to the search path to the end, so that the `gdb' source
2711 directory will be searched first.
2712
2713 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2714
2715 * gdb_obstack.h: New file.
2716 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2717 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2718 * objfiles.h: Include "gdb_obstack.h".
2719 * Makefile.in (gdb_obstack_h): Define.
2720 (symtab_h): Add $(gdb_obstack_h).
2721 (objfiles_h): Add $(gdb_obstack_h).
2722
2723 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2724 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2725 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2726 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2727 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2728 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2729 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2730 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2731
2732 * Makefile.in (bcache.o): Update dependencies.
2733 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2734 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2735 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2736 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2737 (stabsread.o, symfile.o, symmisc.o): Ditto.
2738 (symtab.o, typeprint.o, macroexp.o): Ditto.
2739 (macrotab.o, mdebugread.o): Ditto.
2740 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2741 (coff_ecoff_h, aout_aout64_h): Define.
2742 (aout_stabs_gnu_h, libaout_h): Define.
2743
2744 2002-07-29 Andrew Cagney <cagney@redhat.com>
2745
2746 * regcache.c (struct regcache_descr): Rename nr_registers to
2747 nr_cooked_registers. Revise comments describing the structure
2748 member fields.
2749 (init_regcache_descr): Update.
2750 (init_legacy_regcache_descr): Update.
2751 (read_register_gen, write_register_gen): When a cooked register in
2752 the raw register range, directly access the value from the raw
2753 register cache.
2754
2755 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2756
2757 * z8k-tdep.c: Do not include "obstack.h".
2758 * h8300-tdep.c, h8500-tdep.c: Ditto.
2759 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2760 * valprint.c, v850-tdep.c: Ditto.
2761 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2762 * mn10200-tdep.c: Ditto.
2763
2764 * Makefile.in (z8k-tdep.o): Update dependencies.
2765 (m68hc11-tdep.o, valprint.o): Ditto.
2766 (v850-tdep.o, d10v-tdep.o): Ditto.
2767 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2768 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2769 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2770 (sh_opc_h, gdb_sim_sh_h): Define.
2771 (elf_sh_h, elf_bfd_h): Define.
2772 (opcode_m68hc11_h): Define.
2773 (OPCODES_SRC, OPCODES_DIR): define.
2774 (OPCODES): Use $(OPCODES_DIR).
2775 (gdb_sim_d10v_h): Rename sim_d10v_h.
2776 (gdb_sim_arm_h): Rename sim_arm_h.
2777
2778 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2779
2780 * utils.c (host_pointer_to_address, address_to_host_pointer):
2781 Change internal_error() message to indicate function responsible
2782 for the error.
2783
2784 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2785
2786 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2787 calls to local_hex_string_custom().
2788
2789 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2790
2791 * irix5-nat.c: Move IRIX shared library support from here...
2792 * solib-irix.c: ...to here. Revised substantially to work with
2793 generic solib framework.
2794
2795 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2796 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2797 * mips-irix-tdep.c: New file.
2798
2799 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2800 (mips-irix-tdep.o, solib-irix.o): New rules.
2801 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2802 solib-irix.o.
2803 * config/mips/irix6.mt (TDEPFILES): Likewise.
2804 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2805
2806 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2807
2808 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2809 disabled (via ``#if 0'') includes.
2810
2811 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2812
2813 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2814 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2815 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2816 Add support for the fpscr register.
2817 * rs6000-nat.c (regmap, fetch_inferior_registers)
2818 (store_inferior_registers, fetch_core_registers): Likewise.
2819
2820 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2821
2822 * rs6000-nat.c (language.h): Include.
2823 (special_regs): Delete this array.
2824 (regmap): New function.
2825 (fetch_register, store_register): Use regmap() to map gdb
2826 register numbers to ptrace register numbers. Also, use
2827 outputs from regmap() to make decisions regarding type of
2828 ptrace() call to make. In particular, don't compare against
2829 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2830 (fetch_inferior_registers, store_inferior_registers): Where
2831 possible, obtain register numbers from tdep struct. Don't
2832 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2833 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2834 (LAST_UISA_SP_REGNUM): Delete.
2835
2836 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2837
2838 * rs6000-nat.c (ppc-tdep.h): Include.
2839 (fetch_registers, store_register, fetch_core_registers): Don't
2840 access registers[] directly. Instead, use supply_register() or
2841 regcache_collect() as appropriate.
2842 (find_toc_address): Format hex address with local_hex_string().
2843
2844 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2845
2846 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2847 bfd/elf32-frv.c.
2848
2849 2002-07-24 Tom Tromey <tromey@redhat.com>
2850
2851 * jv-exp.y: Marked all strings with _().
2852 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2853 internal_error.
2854 (MethodInvocation, CastExpression, parse_number, yyerror,
2855 java_type_from_name, push_expression_name, yylex): Typo fixes.
2856
2857 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2858
2859 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2860 (tee_file_flush, tee_file_write, tee_file_fputs)
2861 (tee_file_isatty): New.
2862 * ui-file.h (tee_file_new): Add prototype.
2863
2864 2002-07-24 Aidan Skinner <aidan@velvet.net>
2865
2866 * ada-lang.c: Change k&r style function definitions to prototyped
2867 form.
2868 * ada-typeprint.c: Change k&r style function definitions to prototyped
2869 form.
2870 * ada-valprint.c: Change k&r style function definitions to prototyped
2871 form.
2872
2873 2002-07-24 Andrew Cagney <cagney@redhat.com>
2874
2875 * README: Remove reference to remote-bug.
2876 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2877 remote-bug.c.
2878 (m88k-nat.o): Delete rule.
2879 (m88k-tdep.o): Delete rule.
2880 (remote-bug.o): Delete rule.
2881 * MAINTAINERS: Mark as obsolete.
2882 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2883 * m88k-tdep.c: Make file obsolete.
2884 * config/m88k/m88k.mh: Ditto.
2885 * config/m88k/delta88v4.mh: Ditto.
2886 * config/m88k/delta88v4.mt: Ditto.
2887 * config/m88k/delta88.mt: Ditto.
2888 * config/m88k/delta88.mh: Ditto.
2889 * remote-bug.c: Ditto.
2890 * config/m88k/tm-delta88.h: Ditto.
2891 * config/m88k/nm-delta88v4.h: Ditto.
2892 * config/m88k/xm-delta88.h: Ditto.
2893 * config/m88k/xm-dgux.h: Ditto.
2894 * config/m88k/tm-m88k.h: Ditto.
2895 * config/m88k/nm-m88k.h: Ditto.
2896 * config/m88k/tm-delta88v4.h: Ditto.
2897 * m88k-nat.c: Ditto.
2898 * cxux-nat.c: Ditto.
2899 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2900 and m88*-*-* obsolete.
2901 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2902 m88*-*-* obsolete.
2903
2904 2002-07-24 Andrew Cagney <cagney@redhat.com>
2905
2906 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2907 constant. Same for local pointer variables.
2908 (extract_signed_integer): Ditto.
2909 * defs.h (extract_unsigned_integer): Update.
2910 (extract_signed_integer): Update.
2911
2912 2002-07-24 Andrew Cagney <cagney@redhat.com>
2913
2914 * regcache.c (regcache_raw_write): Change buf parameter to a
2915 constant void pointer.
2916 (regcache_raw_read): Change buf parameter to a void pointer.
2917 (legacy_write_register_gen): Change myaddr parameter a constant
2918 void pointer.
2919 (supply_register): Change val parameter to a const void pointer.
2920 * regcache.h (regcache_raw_write): Update declaration.
2921 (regcache_raw_read): Update declaration.
2922 (supply_register): Update declaration.
2923
2924 2002-07-24 Tom Tromey <tromey@redhat.com>
2925
2926 * defs.h (gdb_readline_wrapper): Declare.
2927 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2928 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2929 * top.c (gdb_readline_wrapper): New function.
2930 (command_line_input): Use it.
2931
2932 2002-07-24 Andrew Cagney <cagney@redhat.com>
2933
2934 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2935 regcache_read and regcache_write.
2936 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2937 * regcache.c: Update.
2938 * sh-tdep.c (sh64_push_arguments): Update comment.
2939 (sh_pseudo_register_read): Update.
2940 (sh_pseudo_register_write): Update.
2941 (sh4_register_read): Update.
2942 (sh4_register_write): Update.
2943 (sh64_pseudo_register_read): Update.
2944 (sh64_pseudo_register_write): Update.
2945 (sh64_register_read): Update.
2946 (sh64_register_write): Update.
2947 * i386-tdep.c (i386_extract_return_value): Update.
2948 (i386_extract_struct_value_address): Update.
2949 (i386_extract_return_value): Update.
2950 * blockframe.c (generic_read_register_dummy): Update.
2951 (generic_call_dummy_register_unwind): Update
2952 * infrun.c (write_inferior_status_register): Update.
2953
2954 2002-07-23 Jim Blandy <jimb@redhat.com>
2955
2956 * parser-defs.h (expression_context_pc): Make this extern.
2957 (Thanks to Michael Snyder.)
2958
2959 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2960
2961 GDB 5.2.1 released from 5.2 branch.
2962 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2963 * README: Update to mention 5.2.1.
2964
2965 2002-07-23 Mark Salter <msalter@redhat.com>
2966
2967 * remote.c (remote_read_bytes): Fix check for error.
2968
2969 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2970
2971 * aix-thread.c (language.h): Include.
2972 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2973 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2974 Print newlines at end of debug messages.
2975 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2976 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2977
2978 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2979
2980 * aix-thread.c (ppc-tdep.h): Include.
2981 (special_register_p): New function.
2982 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2983 (store_regs_user_thread): Use register number information from
2984 gdbarch_tdep struct instead of hardcoded offsets relative to
2985 FIRST_UISA_SP_REGNUM.
2986 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2987 special_register_p() instead of using FPLAST_REGNUM and
2988 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2989 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2990 will be MQ's register number.
2991
2992 2002-07-22 Michael Snyder <msnyder@redhat.com>
2993
2994 * aix-thread.c (ops): Rename to aix_thread_ops.
2995 (base_ops): Rename to base_target.
2996 (ops_attach): Rename to aix_thread_attach.
2997 (ops_detach): Rename to aix_thread_detach.
2998 (ops_resume): Rename to aix_thread_detach.
2999 (ops_wait): Rename to aix_thread_wait.
3000 (ops_kill): Rename to aix_thread_kill.
3001 (init_ops): Rename to init_aix_thread_ops.
3002 (ops_fetch_register): Rename to aix_thread_fetch_register.
3003 (ops_store_register): Rename to aix_thread_store_register.
3004 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3005 (ops_thread_alive): Rename to aix_thread_thread_alive.
3006 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3007 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3008 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3009 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3010 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3011 (store_regs_lib): Rename to store_regs_user_thread.
3012 (store_regs_kern): Rename to store_regs_kernel_thread.
3013
3014 2002-07-22 Michael Snyder <msnyder@redhat.com>
3015
3016 * aix-thread.c (ops_prepare_to_store): Eliminate.
3017 (init_ops): Don't initialize ops.prepare_to_store.
3018 (store_regs_kern): Pre-fetch register buffers from child,
3019 because some registers may not be in the cache. Copy
3020 regs from register cache only if they are cached.
3021 (store_regs_lib): Copy regs from register cache only
3022 if they are cached.
3023 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3024 fill_gprs64): Ditto.
3025
3026 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3027
3028 * aix-thread.c (gdb_assert.h): Include.
3029 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3030 register sizes (from register cache) match size of buffer holding
3031 register data.
3032 (fill_sprs32): Change parameter types to match those in the ptrace()
3033 buffer.
3034 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3035 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3036
3037 2002-07-22 Michael Snyder <msnyder@redhat.com>
3038
3039 * aix-thread.c (supply_sprs64): Cosmetic change.
3040 (supply_sprs32): Cosmetic change.
3041 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3042 (fill_sprs64): Use regcache_collect instead of read_register.
3043 (store_regs_lib): Use regcache_collect instead of
3044 read_register. Use fill_sprs32 instead of fill_sprs64,
3045 if debugging a 32-bit architecture.
3046 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3047 out of the register cache, instead of passing a pointer into
3048 the register cache directly to ptrace. Use regcache_collect
3049 insteaad of read_register.
3050 (ops_prepare_to_store): Use target_read_registers instead
3051 of read_register_bytes.
3052
3053 2002-07-20 Aidan Skinner <aidan@velvet.net>
3054
3055 * MAINTAINERS: Add self under write after approval.
3056
3057 2002-07-20 Aidan Skinner <aidan@velvet.net>
3058
3059 * ada-tasks.c: Change k&r style function definitions to prototyped
3060 form.
3061
3062 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3063
3064 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3065 * x86-64-tdep.c: Include "objfiles.h".
3066 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3067 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3068
3069 2002-07-17 Michal Ludvig <michal@suse.cz>
3070
3071 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3072 (update_context): Initialise cfa variable.
3073
3074 2002-07-17 Michael Snyder <msnyder@redhat.com>
3075
3076 * aix-thread.c: Shorten some long lines.
3077 Bring comments into line with code spec.
3078
3079 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3080
3081 * infrun.c: Re-indent using gdb_indent.sh.
3082
3083 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3084
3085 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3086 Leave the indentation temporarily untouched, to minimize the diffs.
3087
3088 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3089
3090 * stabsread.c: Make os9k sections of the code obsolete,
3091 for real this time.
3092 * stabsread.h: Make os9k sections of the code obsolete.
3093
3094 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3095
3096 * linux-low.c (regsets_store_inferior_registers): Add free()
3097 at the end of a loop to prevent memory leak.
3098 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3099 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3100 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3101 line a comment.
3102 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3103
3104 2002-07-17 Jim Blandy <jimb@redhat.com>
3105
3106 * macrocmd.c (info_macro_command): Remove newline from error
3107 message.
3108
3109 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3110
3111 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3112 (sh_gdbarch_init): Use it for sh-dsp.
3113
3114 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3115
3116 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3117 64-bit DWARF2 format.
3118
3119 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3120
3121 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3122 <sys/proc.h> when not available.
3123
3124 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3125
3126 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3127 * stabsread.c: Make os9k sections of the code obsolete.
3128 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3129 * config/i386/i386os9k.mt: Make file obsolete.
3130 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3131 (COMMON_OBS): Remove os9kread.o
3132 (SFILES): Remove os9kread.c.
3133 (os9kread.o, remote-os9k.o): Make target obsolete.
3134 * remote-os9k.c: Make file obsolete.
3135 * os9kread.c: Make file obsolete.
3136 * Makefile.in
3137
3138 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3139
3140 * NEWS: Mention that the FR30 has been made obsolete.
3141 * fr30-tdep.c: Make file obsolete.
3142 * config/fr30/tm-fr30.h: Ditto.
3143 * config/fr30/fr30.mt: Ditto.
3144 * configure.tgt: Make fr30-*-elf obsolete.
3145 * MAINTAINERS: Make fr30-elf obsolete.
3146
3147 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3148
3149 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3150 found is not inside a section.
3151
3152 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3153
3154 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3155 strerror().
3156 (pdc_realloc): Use xrealloc() instead of realloc().
3157
3158 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3159
3160 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3161 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3162 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3163 macros.
3164
3165 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3166
3167 * aix-thread.c (ptrace_check): Eliminate goto.
3168 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3169 problem.
3170
3171 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3172
3173 * aix-thread.c (gdbcmd.h): Include.
3174 (DEBUG, DBG, DBG2, dbg): Eliminate.
3175 (debug_aix_thread): New static global.
3176 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3177 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3178 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3179 invocations to DBG and DBG2 macros to test against
3180 ``debug_aix_thread'' and call fprintf_unfiltered().
3181 (_initialize_aix_thread): Add new command "set debug aix-thread".
3182
3183 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3184
3185 From Gerhard Tonn <TON@de.ibm.com>:
3186 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3187 instead of supply_register.
3188
3189 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3190
3191 * dwarf2cfi.c: Include "gdb_assert.h".
3192 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3193 non-NULL.
3194 (update_context): Do not use __func__. Add missing ``break''.
3195 (update_context): Do not use __func__.
3196
3197 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3198
3199 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3200 and its setting. Set gdbarch instruction printing functions
3201 directly. For non-rs6000 case use new function
3202 gdb_print_insn_powerpc.
3203 (gdb_print_insn_powerpc): New function.
3204
3205 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3206
3207 * NEWS: Mention that the d30v has been marked obsolete.
3208 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3209 * configure.tgt: Mark d30v-*-* as obsolete.
3210 * d30v-tdep.c: Mark file as obsolete.
3211 * config/d30v/d30v.mt: Ditto.
3212 * config/d30v/tm-d30v.h: Ditto.
3213
3214 2002-07-13 Aidan Skinner <aidan@velvet.net>
3215
3216 * ada-tasks.c (add_task_entry): replace calls to
3217 malloc() with xmalloc
3218 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3219
3220 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3221 ada_finish_decode_line_1, all_sals_for_line
3222 ada_breakpoint_rewrite): replace calls to free() with xfree()
3223
3224 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3225
3226 From Nicholas Duffek (with minor changes by Martin Hunt,
3227 Louis Hamilton, and Kevin Buettner):
3228 * aix-thread.c: New file.
3229
3230 2002-07-12 Petr Sorfa <petrs@caldera.com>
3231
3232 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3233 complaint for invalid attribute class or form.
3234 (read_func_scope): DW_AT_frame_base
3235 better handling of DW_AT_block*.
3236 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3237 better handling of DW_AT_block*.
3238 (read_common_block): DW_AT_location
3239 better handling of DW_AT_block*.
3240 (read_partial_die): DW_AT_location better handling
3241 of DW_AT_block*.
3242 (new_symbol): DW_AT_external better handling of
3243 DW_AT_block*. Proper initialization of variable
3244 "addr".
3245 (attr_form_is_block): New function that returns true
3246 if the attribute's form is of DW_FORM_block*.
3247
3248 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3249
3250 * valops.c (find_method_list): Remove comment about
3251 removed STATIC_MEMFUNCP argument.
3252 (value_find_oload_method_list): Likewise.
3253
3254 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3255
3256 From Nicholas Duffek:
3257 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3258 target_new_objfile_hook.
3259
3260 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3261
3262 From Nicholas Duffek:
3263 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3264 csect.
3265
3266 2002-07-12 Andrew Cagney <cagney@redhat.com>
3267
3268 * MAINTAINERS: Mention --enable-sim-build-warnings.
3269 (m68hc11-elf): Disable sim build warnings.
3270 (m32r-elf): Mark as broken obsolete candidate.
3271 (x86_64-linux-gnu): Mark as buildable with -Werror.
3272 (arm-elf): Change -w to ``,'' which enables warnings but not
3273 -Werror.
3274
3275 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3276
3277 * bcache.h: Update copyright.
3278 (struct bstring, struct bcache): Move definition to "bcache.c".
3279 Replaced by opaque declaration.
3280 (bcache_xfree): Replace free_bcache.
3281 (bcache_xmalloc, bcache_memory_used): Declare.
3282
3283 * bcache.c: Update copyright.
3284 (struct bstring, struct bcache): Moved to here from "bcache.h".
3285 Update comments.
3286 (bcache_xmalloc, bcache_memory_used): New functions.
3287 (bcache_xfree): Replace function free_bcache.
3288
3289 * Makefile.in (objfiles.o): Add $(bcache_h).
3290 (objfiles_h): Remove $(bcache_h).
3291 (symfile.o): Add $(bcache_h).
3292
3293 * symmisc.c: Update copyright.
3294 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3295 (print_objfile_statistics): Use bcache_memory_used.
3296
3297 * symfile.c: Include "bcache.h".
3298 (reread_symbols): Use bcache_xfree.
3299 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3300 (add_psymbol_to_list): Pass psymbol_cache by value.
3301 (add_psymbol_with_dem_name_to_list): Ditto.
3302
3303 * objfiles.h: Update copyright.
3304 (struct bcache): Declare opaque. Do not include "bcache.h".
3305 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3306 bcache'' pointers.
3307 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3308
3309 * objfiles.c: Include "bcache.h". Update copyright.
3310 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3311 macro_cache.
3312 (free_objfile): Use bcache_xfree.
3313
3314 2002-07-11 Grace Sainsbury <graces@redhat.com>
3315
3316 * monitor.c (monitor_fetch_register): Make name a constant.
3317 (monitor_store_register): Same.
3318
3319 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3320
3321 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3322 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3323 (finish_block) For non-function blocks, hash the symbol table. For
3324 function blocks, mark the symbol table as unhashed.
3325 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3326 (msymbol_hash_iw): Likewise.
3327 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3328 value.
3329 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3330 (lookup_minimal_symbol): Likewise for both.
3331 * symtab.h (struct block): Add `hashtable' flag. Comment the
3332 hashtable.
3333 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3334 (ALL_BLOCK_SYMBOLS): Update.
3335 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3336 (struct symbol): Add `hash_next' pointer.
3337 * symtab.c (lookup_block_symbol): Search using the hash table when
3338 possible.
3339 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3340 (search_symbols, find_addr_symbol): Likewise.
3341
3342 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3343 (read_dst_symtab): Likewise.
3344 * jv-lang.c (get_java_class_symtab): Likewise.
3345 * mdebugread.c: Include "gdb_assert.h".
3346 (shrink_block): Assert that the block being modified is not hashed.
3347 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3348 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3349 symbols.
3350 (dump_symtab): Recognize hashed blocks.
3351 * printcmd.c (print_frame_args): Assert that function blocks do not
3352 have hashed symbol tables.
3353 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3354 (fill_in_ada_prototype, debug_print_block): Likewise.
3355 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3356
3357 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3358
3359 * stack.c (print_frame): Use result of frame_address_in_block()
3360 instead of fi->pc when evaluating symbols.
3361 (backtrace_command_1): Ditto.
3362
3363 2002-07-11 Andrew Cagney <cagney@redhat.com>
3364
3365 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3366 Make static.
3367
3368 * arm-tdep.c (arm_register_name): Make return type constant.
3369
3370 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3371
3372 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3373 prototype.
3374 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3375 * s390-tdep.c (s390_fp_regnum): Ditto.
3376 (s390_read_fp): Ditto.
3377 (s390_pop_frame): Ditto.
3378 (_initialize_s390_tdep): Ditto.
3379 * remote.c (get_remote_state): Ditto.
3380 * procfs.c (mappingflags): Ditto.
3381 * memattr.c (_initialize_mem): Ditto.
3382 * mcore-tdep.c (mcore_pop_frame): Ditto.
3383 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3384 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3385 * language.c (set_case_str): Ditto.
3386 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3387 * frv-tdep.c (new_variant): Ditto.
3388 (frv_stopped_data_address): Ditto.
3389 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3390 (context_alloc): Ditto.
3391 (frame_state_alloc): Ditto.
3392 (unwind_tmp_obstack_init): Ditto.
3393 (unwind_tmp_obstack_free): Ditto.
3394 (cfi_read_fp): Ditto.
3395 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3396 (cris_pop_frame): Ditto.
3397 * c-lang.c (scanning_macro_expansion): Ditto.
3398 (finished_macro_expansion): Ditto.
3399 (c_preprocess_and_parse): Ditto.
3400 * gdbarch.sh: Ditto.
3401 * gdbarch.h, gdbarch.c: Regenerate.
3402 * config/mn10200/tm-mn10200.h: Adjust indentation.
3403 * target.c: Adjust indentation.
3404 * symtab.h: Adjust indentation.
3405 * stabsread.h: Adjust indentation.
3406 * remote-es.c: Adjust indentation.
3407 * os9kread.c: Adjust indentation.
3408
3409 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3410
3411 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3412 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3413
3414 2002-07-10 Grace Sainsbury <graces@redhat.com>
3415
3416 * NEWS: Mention m68k, mcore multi-arching.
3417 * MAINTAINERS: Change status of m68k, mcore to reflect
3418 multi-arching.
3419
3420 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * valops.c (find_overload_match): Free oload_syms.
3423
3424 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3425
3426 Define HAVE_SYS_PROC_H if sys/proc.h exists
3427 * configure.in: Add check for sys/proc.h
3428 * config.in: Regenerate.
3429 * configure: Regenerate.
3430
3431 2002-07-09 Grace Sainsbury <graces@redhat.com>
3432
3433 * config/m68k/tm-m68k.h: Remove macros wrapped in
3434 #if !GDB_MULTI_ARCH.
3435
3436 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3437
3438 * config.in, configure: Regenerate.
3439
3440 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3441
3442 * dwarf2cfi.c: Include "gcore.h".
3443 (execute_stack_op): Fix implementation of the
3444 DW_OP_deref and DW_OP_deref_size operators by letting do their
3445 lookup in the target.
3446
3447 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3448
3449 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3450 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3451 tdep->sc_sp_offset.
3452
3453 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3454
3455 Fix PR gdb/595, gdb/602
3456 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3457 Don't call value_cast, just read the vtable pointer; update comments
3458 to match.
3459
3460 2002-07-05 Grace Sainsbury <graces@redhat.com>
3461
3462 * config/mcore/tm-mcore.h: Remove file.
3463 * config/mcore/mcore.mt: Remove definition of TM_FILE
3464 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3465
3466 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3467
3468 * i386bsd-tdep.c: Include "gdb_string.h".
3469
3470 2002-07-04 Grace Sainsbury <graces@redhat.com>
3471
3472 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3473 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3474 mcore-tdep.
3475 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3476 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3477 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3478 (RETVAL_REGNUM): Move macros from tm-mcore.h
3479 (mcore_reg_struct_has_addr): New function.
3480 (mcore_gdbarch_init): Added initializations for the macros removed
3481 from tm-mcore.h.
3482
3483 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3484
3485 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3486 traditonal string branding within the ELF header.
3487
3488 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * symtab.c (remove_params): New function.
3491 (make_symbol_overload_list): Use it instead of cplus_demangle.
3492 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3493
3494 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3495
3496 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3497
3498 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3499 New variables.
3500 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3501 and tdep->sigtramp_end.
3502 * i386obsd-nat.c: New file.
3503 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3504
3505 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3506 Don't call get_current_frame().
3507
3508 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3509
3510 * i386-nat.c (child_post_startup_inferior): New function
3511 calling i386_cleanup_dregs if
3512 I386_USE_GENERIC_WATCHPOINTS is defined.
3513 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3514 conditional to acknowledge that i386-nat.c has its
3515 own child_post_startup_inferior function.
3516
3517 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3518
3519 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3520 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3521 instead of MAX_REGISTER_RAW_SIZE.
3522 (i386_extract_return_value, i386_extract_struct_value_address):
3523 Convert to use regcache.
3524 (i386_gdbarch_init): Set max_register_raw_size and
3525 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3526 Set extract_return_value and extract_struct_value_address instead
3527 of their deprecated variants.
3528
3529 Convert i386 target to generic dummy frames.
3530 * i386-tdep.c: Include "symfile.h".
3531 (i386_frameless_signal_p): Consider a function to be frameless if
3532 the pc points at the first instruction of the function.
3533 (i386_frame_chain): Handle (generic) call dummies.
3534 (i386_frame_saved_pc): Likewise.
3535 (i386_frame_init_saved_regs): Remove code dealing with call
3536 dummies on the stack.
3537 (i386_push_dummy_frame): Removed.
3538 (i386_call_dummy_words): Removed.
3539 (i386_fix_call_dummy): Removed.
3540 (i386_push_return_address): New function.
3541 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3542 parameter, and don't call get_current_frame.
3543 (i386_pop_frame): New function.
3544 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3545 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3546 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3547 call_dummy_length to 0, set call_dummy_words to NULL, set
3548 sizeof_call_dummy_words to 0, set fix_call_dummy to
3549 generic_fix_call_dummy, set pc_in_call_dummy to
3550 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3551 generic_push_dummy_frame, set push_return_address to
3552 i386_push_return_address and set frame_chain_valid to
3553 generic_file_frame_chain_valid.
3554
3555 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3556
3557 * gdbarch.sh (struct regcache): Add opaque declaration.
3558 (EXTRACT_RETURN_VALUE): New architecture method.
3559 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3560 * gdbarch.h, gdbarch.c: Regenerate.
3561 * arch-utils.c (legacy_extract_return_value): New function.
3562 * arch-utils.h (legacy_extract_return_value): Declare.
3563 * values.c (value_being_returned): Re-enable code handling
3564 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3565 deprecated_grub_regcache_for_registers call to block handling
3566 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3567 (EXTRACT_RETURN_VALUE): Do not define.
3568
3569 2002-07-03 Grace Sainsbury <graces@redhat.com>
3570
3571 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3572 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3573 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3574 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3575 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3576 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3577 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3578 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3579 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3580 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3581 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3582 argument so the function fits the prototype in the architecture
3583 vector.
3584 (mcore_pop_frame): Remove argument so the function fits the
3585 prototype. Use get_current_frame instead of the argument.
3586 (mcore_push_arguments): Change type of struct_return so the
3587 function can be used in the architecture vector.
3588 (mcore_store_struct_return): Add.
3589 (mcore_frame_init_saved_regs): Add.
3590 (mcore_gdbarch_init): Add function calls to replace the macros
3591 removed from tm-mcore.h
3592
3593 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3594
3595 * infcmd.c (print_return_value): Remove compatibility code calling
3596 deprecated_grub_regcache_for_registers.
3597
3598 * values.c: Include "regcache.h".
3599 (value_being_returned): Update. Use
3600 deprecated_grub_regcache_for_registers to extract the register
3601 buffer address.
3602 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3603 ``struct regcache''.
3604 * Makefile.in (values.o): Add dependency on $(regcache_h).
3605
3606 * inferior.h (run_stack_dummy): Change type of second parameter to
3607 a ``struct regcache''.
3608 * valops.c (hand_function_call): Change type of retbuf to ``struct
3609 regcache''. Allocate using regcache_xmalloc, clean using
3610 make_cleanup_regcache_xfree.
3611 * infcmd.c (run_stack_dummy): Update. Use
3612 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3613
3614 * regcache.c (do_regcache_xfree): New function.
3615 (make_cleanup_regcache_xfree): New function.
3616 * regcache.h (make_cleanup_regcache_xfree): Declare.
3617
3618 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3619
3620 * event-top.c (command_line_handler): Don't read past
3621 beginning of buffer.
3622
3623 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3624
3625 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3626 struct frame_id.
3627 (varobj_create): Store frame_id for root.
3628 (varobj_gen_name): Use xasprintf.
3629 (varobj_update): Save and restore frame using get_frame_id() and
3630 frame_find_by_id().
3631 (create_child): Use xasprintf.
3632 (new_root_variable): Initialize frame_id.
3633 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3634 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3635 to prevent memory leak.
3636
3637 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3638
3639 * valops.c (hand_function_call): Move declaration of retbuf to
3640 start of function, allocate using malloc, add a cleanup but before
3641 the inf_status cleanup, cleanup the buffer. Rename local variable
3642 old_chain to inf_status_cleanup.
3643
3644 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3645
3646 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3647
3648 * cli/cli-decode.c (cmd_func_p): New function.
3649 (cmd_func): New function.
3650
3651 * command.h: Add cmd_func() and cmd_func_p().
3652
3653 2002-07-03 Grace Sainsbury <graces@redhat.com>
3654
3655 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3656 (REGISTER_SIZE): Remove.
3657 (MAX_REGISTER_RAW_SIZE): Remove.
3658 (REGISTER_VIRTUAL_TYPE): Remove.
3659 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3660 (REGISTER_NAME): Remove.
3661 (USE_GENERIC_DUMMY_FRAMES): Remove.
3662 (CALL_DUMMY): Remove.
3663 (CALL_DUMMY_START_OFFSET): Remove.
3664 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3665 (CALL_DUMMY_LOCATION): Remove.
3666 (FIX_CALL_DUMMY): Remove.
3667 (CALL_DUMMY_ADDRESS): Remove.
3668 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3669 (SAVE_DUMMY_FRAME_TOS): Remove.
3670 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3671 (mcore_register_virtual_type): New function.
3672 (mcore_register_byte): New function.
3673 (mcore_register_size): New function.
3674 (mcore_register_name): New function.
3675 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3676 macros removed from tm-mcore.h.
3677 (mcore_dump_tdep): Add.
3678 (_initialize_mcore_tdep): Add gdbarch_register call.
3679
3680 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3681
3682 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3683 frameless_look_for_prologue, such that we actually call this
3684 function.
3685
3686 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3687
3688 * frame.h (frame_address_in_block): New function.
3689
3690 * blockframe.c (frame_address_in_block): New function extracted
3691 from get_frame_block().
3692 (get_frame_block): Use frame_address_in_block().
3693 (block_innermost_frame): Use frame_address_in_block() to match
3694 the frame pc address against the block boundaries rather than
3695 the frame pc directly. This prevents a failure when a frame pc
3696 is actually a return-address pointing immediately after the end
3697 of the given block.
3698
3699 2002-07-02 Grace Sainsbury <graces@redhat.com>
3700
3701 * MAINTAINERS: Add self under write after approval.
3702
3703 2002-07-02 Grace Sainsbury <graces@redhat.com>
3704
3705 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3706 used in architecture vector. The default is
3707 m68k_local_breakpoint_from_pc.
3708 (m68k_local_breakpoint_from_pc): Add.
3709 (enum): Add register numbers from tm-m68k.h.
3710 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3711 vector.
3712 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3713 GDB_MULTI_ARCH_PARTIAL.
3714 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3715 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3716 m68k-tdep.c.
3717 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3718 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3719 to enum in m68k-tdep.c
3720
3721 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3722
3723 * solib-osf.c (open_map): Compute the list of shared libraries
3724 loaded by the inferior, rather than the list of libraries loaded
3725 by GDB itself. Otherwise, GDB ends up reading the symbols from
3726 the wrong shared libraries...
3727
3728 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3729
3730 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3731 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3732 macros.
3733 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3734 Remove functions.
3735 (FRAMELESS_SIGNAL): Remove function.
3736 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3737 i386_linux_saved_pc_after_call): Removed.
3738 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3739 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3740 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3741
3742 * i386-tdep.c (i386_frameless_signal_p): New function.
3743 (i386_frame_chain): Deal with frameless signals.
3744 (i386_sigtramp_saved_sp): New function.
3745 (i386_frame_saved_pc): Deal with frameless signals.
3746 (i386_saved_pc_after_call): Make sure the correct value is
3747 returned just after entry into a sigtramp.
3748 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3749 i386fbsd4_sc_sp_offset): New variables.
3750 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3751 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3752 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3753 similiar to what we already did for sc_pc_offset.
3754 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3755 tdep->sc_sp_offset.
3756
3757 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3758
3759 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3760
3761 * config/i386/tm-x86-64linux.h: New.
3762 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3763 definitions.
3764 * config/i386/nm-x86-64.h: Rename to ...
3765 * config/i386/nm-x86-64linux.h: ... this one.
3766 * config/i386/x86-64linux.mh: Reflect the above change.
3767
3768 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3769
3770 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3771 with sigcontext_addr. Add sc_sp_offset.
3772 (i386bsd_sigtramp_saved_pc): Remove prototype.
3773 (i386bsd_sicontext_addr): Add prototype.
3774 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3775 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3776 (i386_svr4_sigtramp_saved_pc): Removed.
3777 (i386_svr4_sigcontext_addr): New function.
3778 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3779 Initialize tdep->sigcontext_addr instead. Initialize
3780 tdep->sc_pc_offset and tdep->sc_sp_offset.
3781 (i386_gdbarch_init): Likewise.
3782 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3783 any more.
3784 (i386bsd_sigtramp_saved_pc): Remove function.
3785 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3786 Initialize tdep->sigcontext_addr instead. Initialize
3787 tdep->sc_pc_offset.
3788 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3789 of tdep->sigtramp_saved_pc.
3790 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3791 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3792 instead.
3793
3794 * i386-tdep.c (i386_frameless_function_invocation,
3795 i386_frame_num_args, i386_frame_init_saved_regs,
3796 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3797 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3798 i386_extract_return_value, i386_store_return_value,
3799 i386_extract_struct_value_address, i386_register_virtual_type,
3800 i386_register_convertible, i386_register_convert_to_virtual,
3801 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3802 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3803 static.
3804
3805 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3806
3807 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3808
3809 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3810 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3811 this macro. Include "value.h".
3812
3813 2002-06-30 Aidan Skinner <aidan@velvet.net>
3814
3815 * ada-exp.tab.c: remove as it's a generated file
3816 * ada-lex.c: remove as it's a generated file
3817
3818 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3819
3820 * config/i386/tm-i386.h (struct frame_info, struct
3821 frame_saved_regs, struct value, struct type): Remove forward
3822 declarations.
3823
3824 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3825 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3826 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3827 (FILL_FPXREGSET): Define.
3828
3829 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3830
3831 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3832 i[3456]86-*-netbsd* case.
3833 * config/i386/tm-obsd.h: Removed.
3834 * config/i386/obsd.mt: Removed.
3835 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3836 core-aout.o.
3837 (MH_CFLAGS): Add -DYYDEBUG=0.
3838
3839 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3840 i386nbsd_sc_pc_offset on OpenBSD too.
3841
3842 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3843 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3844 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3845 define.
3846 * i386bsd-tdep.c: Include "arch-utils.h".
3847 (i386bsd_aout_in_solib_call_trampoline): New function.
3848 (i386bsd_init_abi): Set in_solib_call_trampoline to
3849 i386bsd_aout_in_solib_call_trampoline.
3850 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3851 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3852
3853 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3854
3855 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3856 (struct obstack, struct bcache): Add opaque declarations.
3857 * Makefile.in (macrotab_h): Update
3858
3859 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3860
3861 * blockframe.c (generic_find_dummy_frame): Change return type to
3862 ``struct regcache''.
3863 (struct dummy_frame): Replace field ``registers'' with regcache, a
3864 struct regcache object.
3865 (generic_find_dummy_frame): Update.
3866 (generic_push_dummy_frame): Update. Use regcache_xfree,
3867 regcache_xmalloc and regcache_cpy.
3868 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3869 regcache_xfree.
3870 (deprecated_generic_find_dummy_frame): Update.
3871 (generic_read_register_dummy): Update. Use
3872 regcache_read_as_address.
3873 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3874 (generic_get_saved_register): Update. Use regcache_read.
3875
3876 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3877
3878 * Makefile.in (objfiles_h): Add $(bcache_h).
3879 * objfiles.h: Include "bcache.h".
3880
3881 * Makefile.in (symtab_h): Remove $(bcache_h).
3882 * symtab.h: Do not include "bcache.h".
3883
3884 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3885
3886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3887 generic_func_frame_chain_valid.
3888
3889 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3890
3891 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3892 * config/i386/tm-fbsd.h: Likewise.
3893
3894 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3895
3896 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3897 generic_unwind_get_saved_register.
3898
3899 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3900
3901 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3902 * regcache.c (supply_register): Add missing argument to
3903 register_buffer call.
3904
3905 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3906
3907 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3908 Solaris /bin/grep does not not like it. From Peter Schauer.
3909
3910 2002-06-26 Tom Tromey <tromey@redhat.com>
3911
3912 * command.h (add_setshow_cmd): Declare.
3913 (add_setshow_cmd_full): Declare.
3914 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3915 returns void. Use add_setshow_cmd_full.
3916 (add_setshow_cmd_full): New function.
3917 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3918 (add_setshow_boolean_cmd): Likewise.
3919
3920 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3921
3922 * config/vax/tm-vax.h: Protect from multiple inclusion.
3923 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3924 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3925 * config/vax/tm-vaxbsd.h: ...here. New file.
3926 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3927
3928 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3929
3930 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3931 (BELIEVE_PCC_PROMOTION): Remove.
3932 (AP_REGNUM): Move to...
3933 * config/vax/nm-vax.h: ...here.
3934 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3935 (vax_breakpoint_from_pc): New function.
3936 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3937 and gdbarch_believe_pcc_promotion.
3938
3939 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3940
3941 * Makefile.in (vax_tdep_h): Define.
3942 (vax-tdep.o): Use $(vax_tdep_h).
3943 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3944 (vax_dump_tdep): New function.
3945 (_initialize_vax_tdep): Register vax_dump_tdep.
3946 * vax-tdep.h: Include osabi.h.
3947 (struct gdbarch_tdep): New.
3948
3949 2002-06-26 Andrew Cagney <cagney@redhat.com>
3950
3951 * frame.h (deprecated_generic_find_dummy_frame): Rename
3952 generic_find_dummy_frame.
3953 * blockframe.c (generic_find_dummy_frame): Make static.
3954 (deprecated_generic_find_dummy_frame): New function.
3955 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3956 generic_find_dummy_frame with deprecated_find_dummy_frame.
3957 (sh64_nofp_frame_init_saved_regs): Ditto.
3958 (sh_fp_frame_init_saved_regs): Ditto.
3959 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3960 (s390_frame_chain): Ditto.
3961 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3962
3963 2002-06-26 Grace Sainsbury <graces@redhat.com>
3964
3965 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3966 gdbarch vector are at the top.
3967 (NUM_REGS): Remove.
3968 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3969 (FRAME_ARGS_ADDRESS): Remove.
3970 (FRAME_LOCALS_ADDRESS): Remove.
3971 (FRAME_NUM_ARGS): Remove.
3972 (FRAME_ARGS_SKIP): Remove.
3973 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3974 (m68k_gdbarch_init): Add gdbarch initializations for macros
3975 undefined in tm-m68k.h
3976
3977 2002-06-26 Grace Sainsbury <graces@redhat.com>
3978
3979 * monitor.h: Add the function regname to monitor_ops
3980 structure. This way NUM_REGS does not have to be a constant.
3981 * monitor.c (monitor_fetch_register): Added support for regname
3982 function. The function is called if the array regnames is NULL.
3983 (monitor_store_register): Same.
3984 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3985 regnames array.
3986 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3987 cpu32bug_cmds.regname to point to new function.
3988 * abug-rom.c (abug_regname): Same as above.
3989 (init_abug_cmds): Same.
3990 * dbug-rom.c (dbug_regname): Same as above.
3991 (init_dbug_cmds): Same.
3992 * remote-est.c (est_regname): Same.
3993 (init_est_cmds): Same.
3994 * rom68k-rom.c (rom68k_regname): Same.
3995 (init_rom68k_cmds): Same.
3996
3997 2002-06-25 Tom Tromey <tromey@redhat.com>
3998
3999 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4000
4001 2002-06-25 Andrew Cagney <cagney@redhat.com>
4002
4003 * infrun.c (stop_registers): Change variable's type to ``struct
4004 regcache'''.
4005 (xmalloc_inferior_status): Delete function.
4006 (free_inferior_status): Delete function.
4007 (normal_stop): Use regcache_cpy.
4008 (struct inferior_status): Change type of fields ``stop_registers''
4009 and ``registers'' to ``struct regcache''.
4010 (write_inferior_status_register): Use regcache_write.
4011 (save_inferior_status): Instead of calling
4012 xmalloc_inferior_status, allocate the inf_status buffer directly.
4013 Use regcache_dup_no_passthrough and regcache_dup to save the
4014 buffers.
4015 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4016 Replace the stop_registers regcache instead of overriding it. Use
4017 regcache_xfree. Instead of calling free_inferior_status, xfree
4018 the buffer directly.
4019 (discard_inferior_status): Use regcache_xfree. Instead of calling
4020 free_inferior_status, xfree the buffer directly.
4021 (build_infrun): Use regcache_xmalloc.
4022 (_initialize_infrun): Delete redundant call to build_infrun.
4023
4024 * Makefile.in (infcmd.o): Add $(regcache_h).
4025
4026 * infcmd.c: Include "regcache.h".
4027 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4028 obtain the address of `stop_registers' register buffer.
4029 (print_return_value): Ditto.
4030
4031 * inferior.h (struct regcache): Add opaque declaration.
4032 (stop_registers): Change variable's declared type to ``struct
4033 regcache''.
4034
4035 2002-06-24 Tom Tromey <tromey@redhat.com>
4036
4037 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4038 * target.c (initialize_targets): Fixed typo in
4039 trust-readonly-sections `show' documentation.
4040
4041 * main.c: Marked all strings with _().
4042
4043 2002-06-24 Don Howard <dhoward@redhat.com>
4044
4045 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4046 that means max CORE_ADDR+1.
4047 (lookup_mem_region): Ditto.
4048 (mem_info_command): Ditto.
4049
4050 2002-06-24 Grace Sainsbury <graces@redhat.com>
4051
4052 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4053 (REGISTER_BYTES_OK): Remove.
4054 (REGISTER_BYTES): Remove.
4055 (STORE_STRUCT_RETURN): Remove.
4056 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4057 (STORE_RETURN_VALUE): Remove.
4058 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4059 (FRAME_CHAIN): Remove.
4060 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4061 (FRAME_SAVED_PC): Remove.
4062 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4063 (m68k_store_struct_return): Add.
4064 (m68k_deprecated_extract_return_value): Add.
4065 (m68k_deprecated_extract_struct_value_address): Add.
4066 (m68k_store_return_value): Add.
4067 (m68k_frame_chain): Add.
4068 (m68k_frameless_function_invocation): Add.
4069 (m68k_frame_saved_pc): Add.
4070 (m68k_gdbarch_init): added set_gdbarch calls for new
4071 functions and deleted macros.
4072
4073 2002-06-23 Tom Tromey <tromey@redhat.com>
4074
4075 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4076 (ALLDEPFILES): Likewise.
4077 (udiheaders): Removed.
4078 (udip2soc.o): Likewise.
4079 (udi2go32.o): Likewise.
4080 (udr.o): Likewise.
4081 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4082
4083 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4084
4085 * infrun.c (_initialize_infrun): Delete unnecessary call to
4086 build_infrun.
4087
4088 * regcache.h: Update comments describing the regcache_cpy family
4089 of functions.
4090 (regcache_save, regcache_restore): Delete declaration.
4091 (regcache_save_no_passthrough): Delete declaration.
4092 (regcache_restore_no_passthrough): Delete declaration.
4093 * regcache.c (regcache_save): Delete function.
4094 (regcache_save_no_passthrough): Delete function.
4095 (regcache_restore): Delete function.
4096 (regcache_restore_no_passthrough): Delete function.
4097
4098 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4099
4100 * config/m68k/tm-m68k.h: Fix typo.
4101 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4102 (m68k_frame_init_saved_regs): Declare.
4103
4104 2002-06-21 Jim Blandy <jimb@redhat.com>
4105
4106 Remove some vestiges of Harris 88k support.
4107 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4108 register numbering quirk.
4109 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4110 odd symbols occurring in Harris 88k ELF targets.
4111
4112 2002-06-21 Tom Tromey <tromey@redhat.com>
4113
4114 * gdb_locale.h: New file.
4115 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4116 (defs_h): Added gdb_locale.h.
4117 * configure, config.in: Rebuilt.
4118 * configure.in (PACKAGE): Define.
4119 * defs.h: Include gdb_locale.h.
4120 * main.c (captured_main): Call setlocale, bindtextdomain,
4121 textdomain.
4122
4123 2002-06-21 Dave Brolley <brolley@redhat.com>
4124
4125 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4126 * config/frv/frv.mt: New file.
4127 * config/frv/tm-frv.h: New file.
4128 * configure.tgt: Support frv-*-*.
4129 * Makefile.in (frv-tdep.o): New target.
4130 * frv-tdep.c: New file.
4131 * NEWS: Mention frv.
4132
4133 2002-06-21 Dave Brolley <brolley@redhat.com>
4134
4135 * MAINTAINERS: Add self to "Write After Approval" list.
4136
4137 2002-06-21 Grace Sainsbury <graces@redhat.com>
4138
4139 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4140 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4141 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4142 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4143 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4144
4145 * m68k-tdep.c: Include arch-utils.h
4146 (m68k_register_raw_size): Add.
4147 (m68k_register_virtual_size): Add.
4148 (m68k_register_virtual_type): Add.
4149 (m68k_register_name): Add.
4150 (m68k_stack_align): Add.
4151 (m68k_register_byte): Add.
4152 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4153 tm-m68k.h.
4154
4155 2002-06-21 Grace Sainsbury <graces@redhat.com>
4156
4157 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4158 m68k_find_saved_regs.
4159 (m68k_pop_frame): Removed saved_regs structure, and replaced
4160 references to it with frame->saved_regs.
4161 (m68k_gdbarch_init): Added function calls to initialize the
4162 gdbarch structure.
4163 (m68k_fix_call_dummy): Add.
4164 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4165 (CALL_DUMMY): Remove.
4166 (CALL_DUMMY_LENGTH): Remove.
4167 (CALL_DUMMY_START_OFFSET): Remove.
4168 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4169 (FIX_CALL_DUMMY): Remove.
4170 (PUSH_DUMMY_FRAME): Remove.
4171 (POP_FRAME): Remove.
4172
4173 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4174
4175 * parse.c (parse_fprintf): New function used to avoid calls to
4176 fprintf in bison parser generated debug code.
4177 * parser-defs.h: Declaration of new parse_fprintf function.
4178 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4179 Set YYDEBUG to 1 by default.
4180 Set YYFPRINTF as parse_fprintf.
4181
4182 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4183
4184 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4185 encoding anymore.
4186 (pointer_encoding, enum ptr_encoding): New.
4187 (execute_cfa_program): Take care about pointer encoding.
4188 (dwarf2_build_frame_info): Only call parse_frame_info for
4189 .debug_frame and .eh_frame.
4190 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4191 fixed augmentation handling, added relative addressing,
4192 ignore duplicate FDEs. Added comments.
4193 * dwarf2cfi.c: Reindented.
4194
4195 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4196
4197 * event-top.c (command_handler): Don't use space_at_cmd_start
4198 unless there is sbrk() on the host. Assign time and space data
4199 to union fields of the appropriate length.
4200
4201 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4202
4203 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4204 x86_64_register_name. Return type changed to 'const char *'.
4205 (x86_64_register_name2nr): Rename to x86_64_register_number.
4206 (x86_64_gdbarch_init): Update to reflect the change.
4207 * x86-64-tdep.h: Ditto.
4208 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4209 (supply_fpregset): Ditto.
4210
4211 2002-06-19 Andrew Cagney <cagney@redhat.com>
4212
4213 * regcache.h: Update copyright.
4214 (struct regcache, struct gdbarch): Add opaque declarations.
4215 (current_regcache): Declare global variable.
4216 (regcache_read, regcache_write): Add gdbarch parameter.
4217 (regcache_save, regcache_save_no_passthrough)
4218 (regcache_restore, regcache_restore_no_passthrough)
4219 (regcache_dup, regcache_dup_no_passthrough)
4220 (regcache_cpy, regcache_cpy_no_passthrough)
4221 (deprecated_grub_regcache_for_registers)
4222 (deprecated_grub_regcache_for_register_valid)
4223 (regcache_valid_p): Add function declarations.
4224
4225 * regcache.c: Update copyright.
4226 (regcache_descr_handle): New global variable.
4227 (struct regcache_descr): Define.
4228 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4229 (regcache_descr, xfree_regcache_descr): New functions.
4230 (struct regcache): Define.
4231 (regcache_xmalloc, regcache_xfree): New functions.
4232 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4233 (regcache_dup, regcache_dup_no_passthrough): New functions.
4234 (regcache_valid_p, regcache_read_as_address): New functions.
4235 (deprecated_grub_regcache_for_registers): New function.
4236 (deprecated_grub_regcache_for_register_valid): New function.
4237 (current_regcache): New global variable.
4238 (register_buffer): Add regcache parameter. Update calls.
4239 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4240 (read_register_gen, write_register_gen): Update register_buffer
4241 call. Test for legacy_p instead of gdbarch_register_read_p or
4242 gdbarch_register_write_p.
4243 (regcache_collect): Update register_buffer call.
4244 (build_regcache): Rewrite. Use deprecated grub functions.
4245 (regcache_save, regcache_save_no_passthrough): New functions.
4246 (regcache_restore, regcache_restore_no_passthrough): New
4247 functions.
4248 (_initialize_regcache): Create the regcache_data_handle. Swap
4249 current_regcache global variable.
4250
4251 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4252 parameter to regcache_read and regcache_write calls.
4253 (sh4_register_read): Ditto.
4254 (sh64_pseudo_register_read): Ditto.
4255 (sh64_register_read): Ditto.
4256 (sh_pseudo_register_write): Ditto.
4257 (sh4_register_write): Ditto.
4258 (sh64_pseudo_register_write): Ditto.
4259 (sh64_register_write): Ditto.
4260
4261 * defs.h (XCALLOC): Define.
4262
4263 2002-06-19 Grace Sainsbury <graces@redhat.com>
4264
4265 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4266 * m68k-tdep.c (m68k_gdbarch_init): Added.
4267 (m68k_dump_tdep): Added.
4268
4269 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4270
4271 * ada-lang.c (fill_in_ada_prototype): Update comment.
4272
4273 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4274
4275 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4276 MIPS_ABI_LAST.
4277 (mips_abi_string, mips_abi_strings): New.
4278 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4279 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4280 tdep->mips_abi_string. Honor mips_abi_string. Default to
4281 O32 if no ABI is found.
4282 (mips_dump_tdep): Use mips_abi_strings.
4283 (mips_abi_update): New function.
4284 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4285 ``set mips abi'' and ``show mips abi''. Check the size of
4286 mips_abi_strings.
4287
4288 2002-06-19 Andrew Cagney <cagney@redhat.com>
4289
4290 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4291 constant.
4292
4293 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4294
4295 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4296 current frame using only the first stack size adjustment. All
4297 subsequent size adjustments are not considered to be part of
4298 the "static" part of the current frame.
4299 Compute the address of the saved registers relative to the
4300 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4301 in use in this frame.
4302
4303 2002-06-18 Don Howard <dhoward@redhat.com>
4304
4305 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4306 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4307 suggesting this solution.
4308
4309 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4310
4311 * config/romp/xm-rtbsd.h: Delete file.
4312 * config/romp/rtbsd.mh: Delete file.
4313
4314 2002-06-18 Keith Seitz <keiths@redhat.com>
4315
4316 * breakpoint.c (condition_command): Post breakpoint_modify
4317 when a condition is added to an existing breakpoint.
4318 (commands_command): Likewise for commands.
4319 (set_ignore_count): Likewise for ignore counts.
4320 If no tty, do not simply return, still need to send event
4321 notification.
4322 (ignore_command): Only print a newline if the command came
4323 from a tty.
4324 Don't call breakpoints_changed, since this is now properly
4325 handled by set_ignore_count.
4326
4327 2002-06-18 Andrew Cagney <cagney@redhat.com>
4328
4329 * MAINTAINERS: Note that cris-elf target can be compiled with
4330 -Werror.
4331 * cris-tdep.c (cris_register_name): Make return type constant.
4332 (cris_breakpoint_from_pc): Ditto.
4333
4334 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4335
4336 * frame.h (struct frame_info): Change type of context to
4337 'struct context'.
4338
4339 2002-06-17 Andrew Cagney <cagney@redhat.com>
4340
4341 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4342 pointer.
4343 * gdbarch.h, gdbarch.c: Regenerate.
4344 * config/mips/tm-mips.h (mips_register_name): Update.
4345 * i386-tdep.h (i386_register_name): Update.
4346 * mips-tdep.c (mips_register_name): Update
4347 * alpha-tdep.c (alpha_register_name): Update.
4348 * arch-utils.c (legacy_register_name): Update.
4349 * arch-utils.h (legacy_register_name): Update.
4350 * avr-tdep.c (avr_register_name): Update.
4351 * ia64-tdep.c (ia64_register_name): Update.
4352 * i386-tdep.c (i386_register_name): Update.
4353 * sparc-tdep.c (sparc32_register_name): Update.
4354 (sparc64_register_name): Update.
4355 (sparclite_register_name): Update.
4356 (sparclet_register_name): Update.
4357 * sh-tdep.c (sh_generic_register_name): Update.
4358 (sh_sh_register_name): Update.
4359 (sh_sh3_register_name): Update.
4360 (sh_sh3e_register_name): Update.
4361 (sh_sh_dsp_register_name): Update.
4362 (sh_sh3_dsp_register_name): Update.
4363 (sh_sh4_register_name): Update.
4364 (sh_sh64_register_name): Update.
4365 * s390-tdep.c (s390_register_name): Update.
4366 * rs6000-tdep.c (rs6000_register_name): Update.
4367 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4368 (ns32k_register_name_32382): Update.
4369 * d10v-tdep.c (d10v_ts2_register_name): Update.
4370 (d10v_ts3_register_name): Update.
4371 * xstormy16-tdep.c (xstormy16_register_name): Update.
4372 * vax-tdep.c (vax_register_name): Update.
4373 * v850-tdep.c (v850_register_name): Update.
4374 * m68hc11-tdep.c (m68hc11_register_name): Update.
4375 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4376 (am33_register_name): Update.
4377
4378 2002-06-17 Grace Sainsbury <graces@redhat.com>
4379
4380 * m68k-tdep.c: Reindented.
4381
4382 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4383
4384 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4385 list of predefined types.
4386
4387 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4388
4389 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4390 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4391 REGISTER_CONVERT_TO_RAW): Remove defines.
4392 (i386_register_virtual_type, i386_register_convertible,
4393 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4394 Remove prototypes.
4395 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4396 macros mentioned above.
4397
4398 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4399 (i386lynx_saved_pc_after_call): Remove prototype.
4400 * i386ly-tdep.c: Include "i386-tdep.h".
4401 (i386lynx_saved_pc_after_call): Make static. Use
4402 read_memory_nobpt instead of read_memory. Use
4403 read_memory_unsigned_integer instead of read_memory_integer.
4404 (i386lynx_init_abi): New function.
4405 (i386lynx_coff_osabi_sniffer): New function.
4406 (_initialize_i386bsd_tdep): New function.
4407
4408 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4409 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4410 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4411 (i386_fix_call_dummy): Remove prototype.
4412 * i386-tdep.c (i386_call_dummy_words): New variable.
4413 (i386_gdbarch_init): Adjust for removal of the
4414 macros mentioned above.
4415
4416 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4417
4418 * command.h (add_setshow_auto_boolean_cmd): Replace
4419 add_set_auto_boolean_cmd.
4420 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4421 add_set_auto_boolean_cmd.
4422 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4423 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4424 mask-address'' command.
4425 (show_mask_address): Add cmd parameter.
4426 * remote.c (add_packet_config_cmd): Update. Change type of
4427 set_func and show_func to cmd_sfunc_ftype.
4428 (_initialize_remote): Update `set remote Z-packet'
4429 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4430 (show_remote_protocol_e_packet_cmd): Ditto.
4431 (show_remote_protocol_E_packet_cmd): Ditto.
4432 (show_remote_protocol_P_packet_cmd): Ditto.
4433 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4434 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4435 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4436 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4437 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4438 (show_remote_protocol_Z_packet_cmd): Ditto.
4439 (show_remote_protocol_binary_download_cmd): Ditto.
4440 (show_remote_cmd): Pass NULL to all of above.
4441
4442 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4443
4444 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4445 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4446 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4447 POP_FRAME): Remove defines.
4448 (i386_push_arguments, i386_store_struct_return,
4449 i386_extract_return_value, i386_store_return_value,
4450 i386_extract_struct_value_address, i386_push_dummy_frame,
4451 i386_pop_frame): Renove prototypes.
4452 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4453 macros mentioned above.
4454
4455 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4456
4457 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4458 add_set_boolean_cmd.
4459 (add_setshow_cmd): New function.
4460 * command.h (add_setshow_boolean_cmd): Replace
4461 add_set_boolean_cmd.
4462 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4463 and ``set rdiromatzero''.
4464 * maint.c (_initialize_maint_cmds): Update commented out code.
4465 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4466 * target.c (initialize_targets): Update `set
4467 trust-readonly-sections'.
4468 * remote.c (_initialize_remote): Update `set remotebreak'.
4469
4470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4471
4472 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4473 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4474 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4475 fit into multi-arch framework.
4476 (i386_breakpoint_from_pc): New function.
4477 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4478 above.
4479
4480 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4481 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4482 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4483 (i386_frameless_function_invocation, i386_frame_num_args,
4484 i386_frame_init_saved_regs): Remove prototypes.
4485 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4486 macros mentioned above.
4487
4488 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4489
4490 * cli/cli-decode.c (set_cmd_cfunc): Update.
4491 (set_cmd_sfunc): Update.
4492 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4493 (set_cmd_sfunc, set_cmd_cfunc): Update.
4494 * cli/cli-decode.h: Update.
4495
4496 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4497
4498 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4499 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4500
4501 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4502
4503 * defs.h (auto_boolean): Declare enum.
4504 * command.h (cmd_auto_boolean): Delete enum.
4505 * mips-tdep.c (mask_address_var): Update.
4506 (mips_mask_address_p): Update.
4507 (show_mask_address): Update.
4508 * remote.c (struct packet_config): Update.
4509 (update_packet_config): Update.
4510 (show_packet_config_cmd): Update.
4511 (packet_ok): Update.
4512 (add_packet_config_cmd): Update.
4513 (_initialize_remote):
4514 * command.h: Update.
4515 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4516 (do_setshow_command): Update.
4517 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4518 * cli/cli-decode.h: Update.
4519
4520 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4521
4522 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4523 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4524 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4525 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4526 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4527 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4528
4529 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4530 list of DJGPP COFF targets.
4531
4532 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4533 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4534 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4535 (FP0_REGNUM): Remove define.
4536 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4537 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4538 (i386_register_virtual_size): Remove protoype.
4539 * i386-tdep.c (i386_register_virtual_size): Removed.
4540 (i386_extract_return_value, i386_store_return_value): Use
4541 FP0_REGNUM instead of NUM_FREGS to determine whether the
4542 floating-point registers are available.
4543 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4544 Adjust for removal of macros mentioned above.
4545
4546 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4547
4548 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4549 comments.
4550 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4551 Remove prototypes.
4552 (supply_gregset, fill_gregset): Remove use of register keyword and
4553 remove declaration for regmap. Use I386_NUM_GREGS instead of
4554 NUM_REGS and NUM_FREGS.
4555 (FPREGSET_FSAVE_OFFSET): Remove.
4556 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4557 NUM_FREGS to determine whether the floating-point registers are
4558 available.
4559
4560 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4561 gnu_store_registers): Replace usage of NUM_GREGS with
4562 I386_NUM_GREGS.
4563
4564 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4565 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4566 usage of NUM_GREGS with I386_NUM_GREGS.
4567
4568 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4569
4570 * i386bsd-nat.c: Include "i386-tdep.h".
4571 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4572 I386_NUM_GREGS.
4573
4574 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4575 and associated comment. They no longer make any sense, since we
4576 don't use this file anymore on Linux.
4577
4578 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4579 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4580 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4581 elements in these arrays.
4582 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4583 MAX_NUM_REGS.
4584
4585 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4586
4587 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4588 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4589
4590 2002-06-14 Andrew Cagney <cagney@redhat.com>
4591
4592 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4593 EXTRACT_RETURN_VALUE.
4594 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4595 EXTRACT_STRUCT_VALUE_ADDRESS.
4596 * gdbarch.h, gdbarch.c: Regenerate.
4597
4598 * values.c (value_being_returned): Handle
4599 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4600 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4601
4602 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4603 * arm-tdep.c (arm_gdbarch_init): Update.
4604 * avr-tdep.c (avr_gdbarch_init): Update.
4605 * cris-tdep.c (cris_gdbarch_init): Update.
4606 * d10v-tdep.c (d10v_gdbarch_init): Update.
4607 * ia64-tdep.c (ia64_gdbarch_init): Update.
4608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4610 * s390-tdep.c (s390_gdbarch_init): Update.
4611 * sh-tdep.c (sh_gdbarch_init): Update.
4612 * s390-tdep.c (s390_gdbarch_init): Update.
4613 * sparc-tdep.c (sparc_gdbarch_init): Update.
4614 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4615 * v850-tdep.c (v850_gdbarch_init): Update.
4616 * vax-tdep.c (vax_gdbarch_init): Update.
4617 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4619
4620 * config/arc/tm-arc.h: Update.
4621 * config/d30v/tm-d30v.h: Update.
4622 * config/fr30/tm-fr30.h: Update.
4623 * config/h8300/tm-h8300.h: Update.
4624 * config/h8500/tm-h8500.h: Update.
4625 * config/i386/tm-i386.h: Update.
4626 * config/i386/tm-ptx.h: Update.
4627 * config/i386/tm-symmetry.h: Update.
4628 * config/i960/tm-i960.h: Update.
4629 * config/m32r/tm-m32r.h: Update.
4630 * config/m68k/tm-delta68.h: Update.
4631 * config/m68k/tm-linux.h: Update.
4632 * config/m68k/tm-m68k.h: Update.
4633 * config/m88k/tm-m88k.h: Update.
4634 * config/mcore/tm-mcore.h: Update.
4635 * config/mips/tm-mips.h: Update.
4636 * config/mn10200/tm-mn10200.h: Update.
4637 * config/pa/tm-hppa.h: Update.
4638 * config/pa/tm-hppa64.h: Update.
4639 * config/sparc/tm-sp64.h: Update.
4640 * config/sparc/tm-sparc.h: Update.
4641 * config/sparc/tm-sparclet.h: Update.
4642 * config/z8k/tm-z8k.h: Update.
4643
4644 2002-06-14 Andrew Cagney <cagney@redhat.com>
4645
4646 * Makefile.in (i386_linux_tdep_h): Define.
4647 (i386_tdep_h, i387_tdep_h): Define.
4648 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4649 $(i386_tdep_h) and $(i387_tdep_h).
4650 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4651
4652 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4653
4654 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4655 Already covered by the default.
4656
4657 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4658 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4659 (i386_gdbarch_init): Initialize long_double_format and long_double
4660 bit.
4661
4662 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4663 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4664 Move these to ...
4665 * config/i386/i386sol2.mh: ... here.
4666 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4667 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4668 (SIGCONTEXT_PC_OFFSET): Remove define.
4669 (IN_SIGTRAMP): Remove define.
4670 * i386-sol2-tdep.c: New file.
4671
4672 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4673 * config/i386/tm-i386nw.h: Removed.
4674
4675 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4676 USE_STRUCT_CONVENTION): Remove defines.
4677 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4678 (get_longjmp_target): Remove prototype.
4679 (IN_SIGTRAMP): Remove define.
4680 (i386bsd_in_sigtramp): Remove prototype.
4681 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4682 function. Update comment accordingly
4683 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4684 (FRAME_SAVED_PC): Remove define.
4685 (i386bsd_frame_saved_pc): Remove prototype.
4686 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4687 GET_LONGJMP_TARGET): Remove defines.
4688 (get_longjmp_target): Remove prototype.
4689 (IN_SIGTRAMP): Remove define.
4690 (i386bsd_in_sigtramp): Remove prototype.
4691 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4692 function. Update comment accordingly
4693 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4694 (FRAME_SAVED_PC): Remove define.
4695 (i386bsd_frame_saved_pc): Remove prototype.
4696 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4697 Remove prototype.
4698 (USE_STRUCT_CONVENTION): Remove prototype.
4699 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4700 declaration.
4701 (_initialize_i386bsd_nat): Revise logic to determine some
4702 constants at compile time when compiling a native GDB. Warn if
4703 things don't match up with what we expect.
4704 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4705 Remove variables.
4706 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4707 to use date stored in `struct gdbarch_tdep'.
4708 (i386bsd_sigcontext_offset): Remove varaible.
4709 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4710 stored in `struct gdbarch_tdep'.
4711 (i386bsd_frame_saved_pc): Make static.
4712 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4713 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4714 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4715 i386fbsd4_sc_pc_offset): New variables.
4716 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4717 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4718 functions.
4719 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4720 functions.
4721 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4722 Modify the value of i386fbsd_sigtramp_start and
4723 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4724 i386fbsd_sigtramp_end.
4725 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4726 function.
4727
4728 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4729 define to i386-linux-tdep.h.
4730 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4731 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4732 defines.
4733 (i386_linux_register_name, i386_linux_register_byte,
4734 i386_linux_register_raw_size): Remove prototypes.
4735 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4736 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4737 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4738 TARGET_WRITE_PC): Remove defines.
4739 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4740 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4741 i386_linux_write_pc): Remove prototypes.
4742 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4743 (get_longjmp_target): Remove prototype.
4744 * i386-linux-tdep.h: New file.
4745 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4746 * i386-linux-tdep.c: Include "i386-tdep.h" and
4747 "i386-linux-tdep.h".
4748 (i386_linux_register_name, i386_linux_register_byte,
4749 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4750 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4751 Make static.
4752 (i386_linux_init_abi): New function.
4753 (_initialize_i386_linux_tdep): New function.
4754
4755 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4756 (i386_saved_pc_after_call): Remove prototype.
4757 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4758 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4759 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4760 (i386_register_name, i386_stab_reg_to_regnum,
4761 i386_dwarf_reg_to_regnum): Remove prototypes.
4762 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4763 SIZEOF_SSE_REGS): Remove defines.
4764 (REGISTER_BYTES): Remove define.
4765 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4766 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4767 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4768 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4769 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4770 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4771 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4772 (get_longjmp_target): Remove prototype.
4773 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4774 (sigtramp_saved_pc): Remove define.
4775 (i386v4_sigtramp_saved_pc): Remove prototype.
4776 * config/i386/tm-go32.h (FRAME_CHAIN,
4777 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4778 (i386go32_frame_saved_pc): Remove prototype.
4779 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4780 (get_longjmp_target): Remove prototype.
4781 * i386-tdep.h: Include "osabi.h".
4782 (enum i386_abi): Removed.
4783 (enum struct_return): New enum.
4784 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4785 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4786 sc_pc_offset members.
4787 (i386_gdbarch_register_os_abi): Remove prototype.
4788 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4789 I386_SSE_NUM_REGS): New defines.
4790 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4791 I386_SSE_SIZEOF_REGS): New defines.
4792 (i386_register_name, i386_register_byte, i386_register_raw_size):
4793 New prototypes.
4794 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4795 (i386bsd_sigtramp_saved_pc): New prototype.
4796 * i386-tdep.c: Don't include "elf-bfd.h".
4797 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4798 i386_frame_chain, i386_saved_pc_after_call): Make static.
4799 (i386_frame_saved_pc): Rewrite to call architecture dependent
4800 function to deal with signal handlers. Make static.
4801 (i386go32_frame_saved_pc): Removed.
4802 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4803 Removed.
4804 (i386_get_longjmp_target): New function.
4805 (default_struct_convention, pcc_struct_convention,
4806 reg_struct_convention, valid_conventions, struct_convention): New
4807 variables.
4808 (i386_use_struct_convention): New function.
4809 (i386v4_sigtramp_saved_pc): Renamed to
4810 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4811 (i386_pc_in_sigtramp): New function.
4812 (i386_abi_names): Removed.
4813 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4814 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4815 Removed.
4816 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4817 i386_gdbarch_register_os_abi): Removed.
4818 (struct i386_abi_handler): Removed.
4819 (i386_abi_handler_list): Removed.
4820 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4821 functions.
4822 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4823 i386_nw_init_abi): New functions.
4824 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4825 Use set_gdbarch_xxx() calls instead of relying on macros for a
4826 number of calls.
4827 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4828 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4829 Register the various architecture variants defined in this file.
4830
4831 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4832
4833 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4834 (struct main_type): Remove arg_types member. Update comments for
4835 struct field.
4836 (TYPE_ARG_TYPES): Remove.
4837 (TYPE_FN_FIELD_ARGS): Update.
4838 (smash_to_method_type): Update prototype.
4839
4840 * c-typeprint.c (cp_type_print_method_args): Take method type
4841 instead of argument list. Use new argument layout. Simplify.
4842 (c_type_print_args): Use new argument layout. Simplify.
4843 (c_type_print_base): Update call to cp_type_print_method_args.
4844 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4845 argument; use die->type instead. Update call to
4846 smash_to_method_type.
4847 (read_structure_scope): Update call to dwarf2_add_member_fn.
4848 * gdbtypes.c (allocate_stub_method): Update comment.
4849 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4850 Use new argument layout.
4851 (check_stub_method): Use new argument layout. Don't count
4852 void as an argument.
4853 (print_arg_types): Update comments. Use new argument layout.
4854 (recursive_dump_type): Don't print arg_types member.
4855 * hpread.c (hpread_read_struct_type): Use new argument layout.
4856 (fixup_class_method_type): Likewise.
4857 (hpread_type_lookup): Likewise.
4858 * stabsread.c (read_type): Update calls to read_args and
4859 smash_to_method_type.
4860 (read_args): Use new argument layout. Simplify.
4861 * valops.c (typecmp): Use new argument layout. Update parameters
4862 and comments. Simplify.
4863 (hand_function_call): Use new argument layout.
4864 (search_struct_method): Update call to typecmp.
4865 (find_overload_match): Use new argument layout.
4866
4867 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4868
4869 * NEWS: Mention multithreaded debug support for gdbserver.
4870
4871 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4872
4873 * MAINTAINERS: Mention NEWS.
4874
4875 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4876
4877 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4878 (struct mips_objfile_private, compare_pdr_entries): New.
4879 (non_heuristic_proc_desc): Read the ".pdr" section if it
4880 is present.
4881
4882 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4883
4884 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4885 (arm_debug): New static variable.
4886 (_initialize_arm_tdep): Add ``set debug arm'' command.
4887
4888 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4889
4890 * Makefile.in (sim_arm_h): Define.
4891 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4892 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4893 (arm_register_sim_regno): New function, map an internal REGNUM
4894 onto a simulator register number.
4895 (arm_gdbarch_init): Set register_sim_regno.
4896
4897 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4898
4899 * MAINTAINERS: Add self.
4900
4901 2002-06-11 Jim Blandy <jimb@redhat.com>
4902
4903 * source.c (source_info): Mention whether the symtab has
4904 information about preprocessor macros.
4905
4906 Call the command `info macro', not `show macro'.
4907 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4908 Fix error message.
4909 (_initialize_macrocmd): Register `info_macro_command' in
4910 `infolist', not `showlist'.
4911
4912 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4913
4914 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4915 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4916 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4917 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4918 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4919 unconditionally.
4920 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4921 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4922 (_initialize_mips_tdep): Remove dead code.
4923 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4924 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4925 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4926 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4927 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4928 MIPS_LAST_FP_ARG_REGNUM): Remove.
4929
4930 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4931
4932 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4933 (unwind_tmp_obstack_free, parse_frame_info)
4934 (update_context, cfi_read_fp, cfi_write_fp)
4935 (cfi_frame_chain, cfi_init_extra_frame_info)
4936 (cfi_virtual_frame_pointer): Use the above function.
4937 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4938
4939 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4940
4941 * v850-tdep.c (v850_type_is_scalar): New function.
4942 (v850_use_struct_convention): Match current gcc implementation
4943 as close as possible.
4944 (v850_push_arguments): Fix stack_offset handling. Don't write
4945 struct_addr into register. This is done by v850_store_struct_return.
4946 (v850_extract_return_value): Care for structs.
4947 (v850_store_return_value): Ditto.
4948 (v850_store_struct_return): Actually write address.
4949
4950 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4951
4952 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4953 without debug information too.
4954
4955 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4956
4957 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4958 Make multi-arch pure.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4960 * arm-tdep.c (arm_print_float_info): Update.
4961 * arch-utils.h (default_print_float_info): Update.
4962 * arch-utils.c (default_print_float_info): Update.
4963 * infcmd.c (float_info): Update call.
4964
4965 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4966
4967 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4968 the front of the initialize list.
4969
4970 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4971
4972 * infrun.c (struct inferior_status): Replace fields
4973 selected_frame_address and selected_level with field
4974 selected_frame_id.
4975 (save_inferior_status): Update. Use get_frame_id.
4976 (struct restore_selected_frame_args): Delete.
4977 (restore_selected_frame): Update. Use frame_find_by_id.
4978 (restore_inferior_status): Update.
4979
4980 * breakpoint.h (struct breakpoint): Change type of
4981 watchpoint_frame to frame_id.
4982 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4983 call to get_current_frame.
4984 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4985 get_current_frame.
4986 (watchpoint_check): Use frame_find_by_id.
4987
4988 * frame.h (record_selected_frame): Delete declaration.
4989 * stack.c (record_selected_frame): Delete function.
4990
4991 * frame.h (struct frame_id): Define.
4992 (get_frame_id): Declare.
4993 (frame_find_by_id): Declare.
4994 * frame.c (frame_find_by_id): New function.
4995 (get_frame_id): New function.
4996
4997 2002-06-10 Andrey Volkov <avolkov@transas.com>
4998
4999 * ser-e7kpc.c: Fix duplicated define and call of
5000 _initialize_ser_e7000pc
5001
5002 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5003
5004 * signals/signals.c (target_signal_from_host): Fix #ifdef
5005 SIGRTMIN case.
5006 (do_target_signal_to_host): Likewise.
5007
5008 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5009
5010 * mips-tdep.c (mips_find_abi_section): New function.
5011 (mips_gdbarch_init): Call it.
5012
5013 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5014
5015 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5016 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5017 after Andrew's 2002-06-08 gdbarch change.
5018
5019 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5020
5021 * i386-linux-nat.c (suppy_gregset): Don't supply
5022 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5023 register cache.
5024 (fill_gregset): Don't fetch it under the same circumstances.
5025
5026 2002-06-09 Andrew Cagney <cagney@redhat.com>
5027
5028 * Makefile.in (callback_h): Define.
5029 (remote_sim_h): Update path to remote-sim.h.
5030 (remote-rdp.o): Add $(callback_h).
5031 (remote-sim.o): Use $(callback_h).
5032 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5033 * remote-rdp.c: Include "gdb/callback.h".
5034
5035 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5036
5037 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5038 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5039
5040 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5041
5042 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5043 * rdi-share/serpardr.c: Ditto.
5044 * rdi-share/unixcomm.c: Ditto.
5045 * rdi-share/serdrv.c: Ditto.
5046 * rdi-share/hostchan.h: Ditto.
5047 * rdi-share/hostchan.c: Ditto.
5048 * rdi-share/host.h: Ditto.
5049 * rdi-share/devsw.c: Ditto.
5050
5051 * objfiles.h: Change type of obj_private to void pointer.
5052 * pa64solib.c: Update copyright. Don't include "assert.h", use
5053 strcmp instead of STREQ, use LONGEST, do not use PTR
5054 * somsolib.c: Ditto.
5055
5056 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5057 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5058 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5059
5060 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5061
5062 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5063 (default_get_saved_register): Delete function.
5064 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5065 generic_unwind_get_saved_register.
5066 * gdbarch.h, gdbarch.c: Re-generate.
5067
5068 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5069
5070 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5071 generic_func_frame_chain_valid.
5072 * gdbarch.h, gdbarch.c: Re-generate.
5073 * blockframe.c (generic_func_frame_chain_valid): Only check
5074 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5075 passing FP to PC_IN_CALL_DUMMY.
5076 Fix PR gdb/360.
5077
5078 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5079
5080 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5081 (register_gdbarch_data): Initialize init_p.
5082 (gdbarch_data): Initialize data pointer using the init function.
5083 (init_gdbarch_data): Delete function.
5084 (gdbarch_update_p): Update.
5085 (initialize_non_multiarch): Update.
5086 (struct gdbarch): Add field initialized_p.
5087 * gdbarch.h, gdbarch.c: Re-generate.
5088
5089 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5090
5091 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5092 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5093 better do the things actually here.
5094 * x86-64-tdep.c (x86_64_register_name2nr): New.
5095 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5096 (x86_64_gdbarch_init): Respect the above change.
5097 * x86-64-tdep.h (x86_64_register_name2nr)
5098 (x86_64_register_nr2name): Add prototypes.
5099 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5100
5101 2002-06-06 Michael Snyder <msnyder@redhat.com>
5102
5103 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5104 Delete extra braces and re-indent.
5105 (d10v_store_return_value): Char return values
5106 must be shifted over by one byte in R0.
5107 (d10v_extract_return_value): Delete extra braces, re-indent.
5108
5109 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5110
5111 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5112 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5113 (d10v_integer_to_address): Rewrite.
5114 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5115 the d10v specific functions which take care of converting to the
5116 correct space.
5117
5118 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5119
5120 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5121 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5122
5123 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5124
5125 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5126 includes.
5127 * config/tm-linux.h: Ditto.
5128 * config/alpha/tm-alphalinux.h: Ditto.
5129 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5130 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5131 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5132 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5133 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5134 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5135 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5136 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5137 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5138 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5139 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5140 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5141 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5142 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5143 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5144 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5145 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5146 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5147 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5148 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5149 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5150 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5151 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5152 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5153 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5154 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5155 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5156 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5157 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5158 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5159 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5160 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5161 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5162 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5163 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5164 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5165 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5166
5167 2002-05-04 Aidan Skinner <aidan@velvet.net>
5168
5169 * ada-exp.tab.c: New file
5170 * ada-exp.y: New file
5171 * ada-lang.c: New file
5172 * ada-lang.h: New file
5173 * ada-lex.c: New file
5174 * ada-lex.l: New file
5175 * ada-tasks.c: New file
5176 * ada-typeprint.c: New file
5177 * ada-valprint.c: New file
5178
5179 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5180
5181 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5182 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5183
5184 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5185
5186 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5187 insetead of ppc-linux-tdep.o.
5188 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5189 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5190
5191 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5192
5193 2002-05-07 Christian Groessler <chris@groessler.org>
5194 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5195 bit register contents for little endian hosts.
5196
5197 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5198
5199 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5200 any maintainer.
5201
5202 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5203
5204 * gdbarch.h: Regenerate.
5205
5206 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5207
5208 * MAINTAINERS: Add everyone to write-after-approval list.
5209
5210 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5211
5212 * stack.c (frame_info): Use frame_register_unwind instead of
5213 saved_regs. Mention when the SP is on the stack or in a register.
5214
5215 * frame.h (frame_register_unwind_ftype): Define. Document.
5216 (struct frame_info): Add field register_unwind and
5217 register_unwind_cache.
5218 (frame_register_unwind): Declare.
5219 (generic_unwind_get_saved_register): Declare.
5220
5221 * frame.c (frame_register_unwind): New function.
5222 (generic_unwind_get_saved_register): New function.
5223
5224 * blockframe.c (generic_call_dummy_register_unwind): New function.
5225 (frame_saved_regs_register_unwind): New function.
5226 (set_unwind_by_pc): New function.
5227 (create_new_frame): New function.
5228 (get_prev_frame): New function.
5229
5230 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5231
5232 * a29k-share/: Delete directory.
5233 * remote-vx29k.c: Delete file.
5234
5235 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5236
5237 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5238 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5239
5240 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5241
5242 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5243 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5244 (sparc64nbsd-nat.o)
5245 (sparcnbsd-nat.o)
5246 (sparcnbsd-tdep.o): New dependency lists.
5247 * NEWS: Note new UltraSPARC NetBSD native configuration.
5248 * configure.host (sparc64-*-netbsd*): New host.
5249 * configure.tgt (sparc-*-netbsdelf*)
5250 (sparc-*-netbsd*): Set gdb_target to nbsd.
5251 (sparc64-*-netbsd*): New target.
5252 * sparc64nbsd-nat.c: New file.
5253 * sparcnbsd-nat.c: New file.
5254 * sparcnbsd-tdep.c: New file.
5255 * sparcnbsd-tdep.h: New file.
5256 * config/sparc/nbsd.mt: New file.
5257 * config/sparc/nbsd64.mh: New file.
5258 * config/sparc/nbsd64.mt: New file.
5259 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5260 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5261 (HOST_IPC): Remove.
5262 * config/sparc/nbsdaout.mt: Remove.
5263 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5264 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5265 (HOST_IPC): Remove.
5266 * config/sparc/nbsdelf.mt: Remove.
5267 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5268 sparc-nat.c compatiblity defines.
5269 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5270 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5271 * config/sparc/tm-nbsd64.h: New file.
5272 * config/sparc/tm-nbsdaout.h: Remove.
5273 * config/sparc/xm-nbsd.h: Remove.
5274
5275 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5276
5277 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5278 * sparc-tdep.c: Include osabi.h.
5279 (gdbarch_tdep): Add osabi member.
5280 (_initialize_sparc_tdep): Use gdbarch_register.
5281 (sparc_gdbarch_init): Use generic OS ABI framework.
5282 (sparc_dump_tdep): New function.
5283
5284 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5285
5286 * corefile.c (do_captured_read_memory_integer): Return non-zero
5287 result.
5288 (safe_read_memory_integer): Copy result of memory read when
5289 status is non-zero. Also, add comments.
5290
5291 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5292
5293 * Makefile.in (ppc_tdep_h): Define.
5294 (ppc-linux-nat.o)
5295 (ppc-linux-tdep.o)
5296 (rs6000-tdep.o): Use $(ppc_tdep_h).
5297 (ppc-sysv-tdep.o)
5298 (ppcnbsd-nat.o)
5299 (ppcnbsd-tdep.o): New dependency lists.
5300 * ppc-tdep.h: Use generic OS ABI framework.
5301 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5302 (ppc_linux_init_abi): New functions.
5303 (ppc_sysv_abi_broken_use_struct_convention)
5304 (ppc_sysv_abi_use_struct_convention)
5305 (ppc_sysv_abi_push_arguments): Move to...
5306 * ppc-sysv-tdep.c: ...here.
5307 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5308 * rs6000-tdep.c (process_note_abi_tag_sections)
5309 (get_elfosabi): Remove.
5310 (rs6000_gdbarch_init): Use generic OS ABI framework.
5311 (rs6000_dump_tdep): New function.
5312 (_initialize_rs6000_tdep): Use gdbarch_register.
5313 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5314 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5315 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5316 of ppc-linux-tdep.o.
5317 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5318 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5319 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5320 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5321 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5322 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5323
5324 2002-05-29 Jim Blandy <jimb@redhat.com>
5325
5326 * macroscope.c (default_macro_scope): Put `void' in empty argument
5327 list.
5328
5329 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5330
5331 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5332 * arch-utils.c: Include "sim-regno.h".
5333 * gdbarch.sh: Don't include "sim-regno.h".
5334 * gdbarch.h, gdbarch.c: Regenerate.
5335 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5336 here.
5337 * arch-utils.h (legacy_register_sim_regno): To here.
5338 * remote-sim.c (legacy_register_sim_regno): Move function from
5339 here.
5340 * arch-utils.c (legacy_register_sim_regno): To here.
5341
5342 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5343
5344 * sim-regno.h: New file.
5345 * Makefile.in (sim_regno_h): Define.
5346 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5347 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5348 (legacy_register_sim_regno): New function.
5349 (one2one_register_sim_regno): New function.
5350 (gdbsim_fetch_register): Rewrite.
5351 (gdbsim_store_register): Only store a register when
5352 REGISTER_SIM_REGNO is valid.
5353 * d10v-tdep.c: Include "sim-regno.h".
5354 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5355 (d10v_ts3_register_sim_regno): Ditto.
5356 * gdbarch.sh: Include "sim-regno.h".
5357 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5358 * gdbarch.h, gdbarch.c: Regenerate.
5359 * arch-utils.h (default_register_sim_regno): Delete declaration.
5360 * arch-utils.c (default_register_sim_regno): Delete function.
5361
5362 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5363
5364 * ppcnbsd-nat.c: Rewrite.
5365 * ppcnbsd-tdep.c: New file.
5366 * ppcnbsd-tdep.h: New file.
5367 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5368 solib.o, and solib-svr4.o.
5369 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5370 nbsd-tdep.o, and corelow.o.
5371
5372 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5373
5374 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5375 `tr' and `sed'. Mention that `broken' targets are not expected to
5376 build.
5377
5378 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5379
5380 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5381 Let PC point right after the prologue before looking up symbols.
5382
5383 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5384
5385 * i386-tdep.c (i386_register_virtual_type): Return
5386 builtin_type_vec128i for SSE registers.
5387
5388 * gdbtypes.h (builtin_type_vec128i): Declare.
5389
5390 * gdbtypes.c (build_builtin_type_vec128i): New function.
5391 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5392 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5393 (build_gdbtypes): Initialize new builtin vector types.
5394 (_initialize_gdbtypes): Register new vector types with gdbarch.
5395
5396 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5397
5398 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5399 since it has been multi-arch'd.
5400 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5401 Move Alpha and VAX multi-arch news entries to same section
5402 as other multi-arch news.
5403
5404 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5405
5406 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5407 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5408 static. Rename some register numbers to put them in ns32k-tdep
5409 private namespace.
5410 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5411 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5412 functions.
5413 (_initialize_ns32k_tdep): Use gdbarch_register.
5414 * ns32k-tdep.h: New file.
5415 * ns32knbsd-tdep.c: New file.
5416 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5417 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5418 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5419 REGISTER_BYTES, REGISTER_BYTE): Remove.
5420 * config/ns32k/tm-ns32k.h: New file.
5421 * config/ns32k/tm-umax.h: Remove.
5422
5423 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5424
5425 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5426 ns32k_store_struct_return, ns32k_extract_return_value,
5427 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5428 functions.
5429 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5430 ns32k_saved_pc_after_call.
5431 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5432 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5433 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5434 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5435 ns32k_extract_struct_value_address.
5436
5437 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5438
5439 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5440 ns32k_fix_call_dummy): New.
5441 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5442 ns32k_call_dummy_words.
5443 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5444 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5445 CALL_DUMMY_NARGS): Remove.
5446 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5447
5448 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5449
5450 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5451 ns32k_frame_saved_pc, ns32k_frame_args_address,
5452 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5453 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5454 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5455 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5456 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5457 (BREAKPOINT): Remove..
5458 (FRAME_CHAIN): Define as ns32k_frame_chain.
5459 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5460 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5461 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5462 (FRAME_FIND_SAVED_REGS): Remove.
5463 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5464 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5465 (POP_FRAME): Define as ns32k_pop_frame.
5466
5467 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5468
5469 * ns32k-tdep.c (ns32k_register_byte_32082,
5470 ns32k_register_byte_32382, ns32k_register_raw_size,
5471 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5472 functions.
5473 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5474 ns32k_register_byte_32382.
5475 * config/ns32k/tm-umax.h: Update copyright years.
5476 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5477 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5478 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5479 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5480 (ns32k_get_enter_addr): Fix prototype.
5481
5482 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5483
5484 * ns32k-tdep.c: Update copyright years.
5485 (ns32k_register_name_32082): New function.
5486 (ns32k_register_name_32382): Ditto.
5487 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5488 (REGISTER_NAME): Define as ns32k_register_name_32382.
5489 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5490 (REGISTER_NAME): Define as ns32k_register_name_32082.
5491
5492 2002-05-24 Jim Blandy <jimb@redhat.com>
5493
5494 * dwarf2read.c (free_line_header): Use xfree, not free.
5495
5496 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5497
5498 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5499 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5500
5501 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5502
5503 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5504
5505 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5506
5507 From Ross Alexander at NEC Europe:
5508 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5509
5510 2002-05-23 Michael Snyder <msnyder@redhat.com>
5511
5512 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5513 for input, rather than parse_and_eval_address.
5514
5515 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5516
5517 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5518 * Makefile.in (sim_d10v_h): Update definition.
5519
5520 2002-05-24 Andrew Cagney <cagney@redhat.com>
5521
5522 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5523 change `2002-05-22 Michael Snyder' below.
5524 (d10v_push_arguments): Ditto.
5525 (d10v_extract_return_value): Ditto.
5526
5527 2002-05-23 Jim Blandy <jimb@redhat.com>
5528
5529 * macrotab.c (check_for_redefinition): Don't complain if the new
5530 definition is the same as the previous one. Take more arguments
5531 to allow the comparison.
5532 (macro_define_object, macro_define_function): Pass more arguments
5533 to check_for_redefinition.
5534
5535 2002-05-22 Michael Snyder <msnyder@redhat.com>
5536
5537 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5538 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5539 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5540 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5541 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5542 Add a temp variable to save a call (and a memory read).
5543 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5544 if possible (so that PC_IN_CALL_DUMMY will work).
5545
5546 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5547
5548 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5549
5550 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5551
5552 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5553 fde->cie_ptr.
5554 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5555 (dwarf2_build_frame_info): Add offset to fde->initial_location
5556 so that frames of shared libraries are mapped correctly.
5557 (execute_stack_op): Change type of 'result' from ULONGEST to
5558 CORE_ADDR.
5559
5560 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5561
5562 * config/alpha/tm-nbsd.h: Include solib.h.
5563
5564 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5565
5566 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5567 assumptions about the host's byte order.
5568
5569 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5570
5571 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5572 to dependency list.
5573 * alphanbsd-tdep.c: Include solib-svr4.h.
5574 * shnbsd-tdep.c: Ditto.
5575
5576 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5577
5578 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5579 nbsd-tdep.h to dependency list.
5580 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5581 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5582 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5583 nbsdaout.mh and nbsdelf.mh consistently.
5584 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5585 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5586 nbsdaout.mt and nbsdelf.mh consistently.
5587 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5588 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5589 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5590 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5591 a.out shared library stuff from here...
5592 * config/nm-nbsdaout.h: ...to here.
5593 * config/tm-nbsd.h: Remove.
5594 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5595 * config/arm/nbsd.mh: Remove.
5596 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5597 nbsd-tdep.o.
5598 * config/arm/nbsdaout.mh: New file.
5599 * config/arm/nbsdelf.mh: New file.
5600 * config/arm/nm-nbsdaout.h: New file.
5601 * config/i386/nbsd.mh: Remove.
5602 * config/i386/nbsd.mt: Remove.
5603 * config/i386/nbsdaout.mh: New file.
5604 * config/i386/nbsdaout.mt: New file.
5605 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5606 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5607 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5608 i386_register_u_addr): Remove.
5609 * config/i386/nm-nbsdaout.h: New file.
5610 * config/i386/nm-nbsdelf.h: Remove.
5611 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5612 (USE_STRUCT_CONVENTION): Remove.
5613 * config/i386/tm-nbsdaout.h: New file.
5614 * config/i386/tm-nbsdelf.h: Remove.
5615 * config/m68k/nbsd.mh: Remove.
5616 * config/m68k/nbsd.mt: Remove.
5617 * config/m68k/nbsdaout.mh: New file.
5618 * config/m68k/nbsdaout.mt: New file.
5619 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5620 * config/m68k/nm-nbsdaout.h: New file.
5621 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5622 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5623 * config/ns32k/nbsd.mh: Remove.
5624 * config/ns32k/nbsd.mt: Remove.
5625 * config/ns32k/nbsdaout.mh: New file.
5626 * config/ns32k/nbsdaout.mt: New file.
5627 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5628 * config/ns32k/nm-nbsdaout.h: New file.
5629 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5630 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5631 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5632 (SVR4_SHARED_LIBS): Remove.
5633 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5634 * config/sparc/nbsd.mh: Remove.
5635 * config/sparc/nbsd.mt: Remove.
5636 * config/sparc/nbsdaout.mh: New file.
5637 * config/sparc/nbsdaout.mt: New file.
5638 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5639 * config/sparc/nbsdelf.mt: New file.
5640 * config/sparc/nm-nbsdaout.h: New file.
5641 * config/sparc/nm-nbsdelf.h: Remove.
5642 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5643 * config/sparc/tm-nbsdaout.h: New file.
5644
5645 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5646
5647 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5648 mipsnbsd-tdep.c
5649 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5650
5651 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5652
5653 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5654 shnbsd-nat.c.
5655 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5656
5657 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * NEWS: Note new MIPS NetBSD native configuration.
5660 * configure.host (mips*-*-netbsd*): New host.
5661 * configure.tgt (mips*-*-netbsd*): New target.
5662 * mipsnbsd-nat.c: New file.
5663 * mipsnbsd-tdep.c: New file.
5664 * mipsnbsd-tdep.h: New file.
5665 * config/mips/nbsd.mh: New file.
5666 * config/mips/nbsd.mt: New file.
5667 * config/mips/nm-nbsd.h: New file.
5668 * config/mips/tm-nbsd.h: New file.
5669
5670 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5671
5672 * Makefile.in (SFILES): Add osabi.c.
5673 (COMMON_OBS): Add osabi.o.
5674 (osabi.o): New dependency list.
5675 * osabi.c: New file.
5676 * osabi.h: New file.
5677 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5678
5679 * Makefile.in (alpha_tdep_h): Define and use instead of
5680 alpha-tdep.h.
5681 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5682 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5683 Remove.
5684 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5685 * alpha-tdep.h: Include osabi.h.
5686 (alpha_abi): Remove.
5687 (gdbarch_tdep): Use generic OS ABI framework.
5688 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5689 gdbarch_register_osabi.
5690 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5691 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5692 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5693
5694 * Makefile.in (sh_tdep_h): Add osabi.h.
5695 * sh-tdep.h (sh_osabi): Remove.
5696 (gdbarch_tdep): Use generic OS ABI framework.
5697 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5698 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5699 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5700 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5701
5702 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5703 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5704 gdbarch_register_osabi.
5705 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5706 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5707 (get_elfosabi): Rename to...
5708 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5709 ABI framework support routines.
5710 (arm_gdbarch_init): Use generic OS ABI framework.
5711 (arm_dump_tdep): Likewise.
5712 (_initialize_arm_tdep): Likewise.
5713 * arm-tdep.h: Include osabi.h.
5714 (arm_abi): Remove.
5715 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5716 osabi member.
5717 (arm_gdbarch_register_os_abi): Remove prototype.
5718 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5719 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5720
5721 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5722 * mips-tdep.c: Include osabi.h.
5723 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5724 OS ABI framework.
5725
5726 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5727
5728 * h8300-tdep.c: Fix formatting.
5729
5730 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5731
5732 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5733 printing vector registers.
5734
5735 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5736
5737 From Fernando Nasser:
5738 * remote.c (remote_async_open_1): Re-throw the exception when the
5739 connection fails.
5740 (remote_cisco_open): Ditto.
5741 (remote_open_1): Ditto.
5742
5743 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5744
5745 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5746 (remote_start_remote): Add uiout parameter. Pass through to
5747 remote_start_remote_dummy.
5748 (remote_open_1): Use catch_exception instead of catch_errors.
5749 (remote_async_open_1): Ditto.
5750 (remote_cisco_open): Ditto.
5751
5752 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5753
5754 * remote.c (remote_start_remote): Replace PTR with void pointer.
5755 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5756 static.
5757
5758 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5759
5760 * gdb_indent.sh: Allow the script to be run in the sim directory.
5761
5762 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5763
5764 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5765 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5766
5767 * corelow.c (core_open): Only call set_gdbarch_from_file if
5768 exec_bfd is NULL.
5769
5770 2002-05-17 Andrey Volkov <avolkov@transas.com>
5771
5772 * h8300-tdep.c: Add support of EXR register
5773 * config/h8300/tm-h8300.h: Ditto.
5774
5775 2002-05-17 Andrey Volkov <avolkov@transas.com>
5776
5777 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5778
5779 2002-05-17 Andrey Volkov <avolkov@transas.com>
5780
5781 * h8300-tdep.c: Change literal regnums to REGNO.
5782
5783 2002-05-17 Jim Blandy <jimb@redhat.com>
5784
5785 * NEWS: Note addition of macro support.
5786
5787 Expand preprocessor macros in C expressions.
5788 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5789 (scan_macro_expansion, scanning_macro_expansion,
5790 finished_macro_expansion): New function declarations.
5791 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5792 variable declarations.
5793 * parser-defs.h (expression_context_pc): New declaration.
5794 * parse.c (expression_context_pc): New variable.
5795 (parse_exp_1): Set expression_context_pc, as well as
5796 expression_context_block.
5797 * c-exp.y (yylex): If we're not already reading the result of a
5798 macro expansion, try to macro-expand the next token. When we're
5799 done scanning a macro expansion, switch back to the mainline text.
5800 Commas and `if's in a macro's expansion don't terminate the input.
5801 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5802 (macro_original_text, macro_expanded_text,
5803 expression_macro_lookup_func, expression_macro_lookup_baton): New
5804 variables.
5805 (scan_macro_expansion, scanning_macro_expansion,
5806 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5807 c_preprocess_and_parse): New functions.
5808 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5809 c_preprocess_and_parse, instead of c_parse.
5810 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5811 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5812
5813 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5814
5815 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5816 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5817 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5818
5819 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5820
5821 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5822
5823 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5824
5825 * Makefile.in (sh_tdep_h): Define and use.
5826 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5827 register enum): Move to...
5828 * * sh-tdep.h: ...here.
5829 * sh-tdep.c: Include sh-tdep.h.
5830 * sh3-rom.c: Likewise.
5831 * shnbsd-tdep.c: Likewise.
5832
5833 2002-05-16 Michael Snyder <msnyder@redhat.com>
5834
5835 * arm-tdep.c: Spelling fix in comment.
5836
5837 2002-05-16 Jim Blandy <jimb@redhat.com>
5838
5839 Add commands for manually expanding macros and showing their
5840 definitions.
5841 * macrocmd.c, macroscope.c, macroscope.h: New files.
5842 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5843 (macroscope_h): New variable.
5844 (HFILES_NO_SRCDIR): Add macroscope.h.
5845 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5846 (macroscope.o, macrocmd.o): New rules.
5847
5848 Teach the Dwarf 2 reader to read macro information.
5849 * dwarf2read.c: #include "macrotab.h".
5850 (dwarf_macinfo_buffer): New variable.
5851 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5852 dwarf_macinfo_size.
5853 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5854 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5855 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5856 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5857 dwarf2_macro_spaces_in_definition): New complaints.
5858 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5859 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5860 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5861 the partial symbol table.
5862 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5863 from what's recorded in the partial symbol table.
5864 (read_file_scope): If the compilation unit has a
5865 `DW_AT_macro_info' attribute, read its macro information.
5866 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5867
5868 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5869
5870 Fix PR gdb/546
5871 * ser-tcp.c: Don't include <netinet/udp.h>.
5872
5873 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5874
5875 * MAINTAINERS: Update my email address.
5876
5877 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5878
5879 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5880 include file of the same name.
5881
5882 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5883
5884 * configure.tgt: Mark v850 as multi-arched.
5885 * config/v850/tm-v850.h: Remove file.
5886 * config/v850/v850.mt: Eliminate TM_FILE.
5887
5888 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5889
5890 * v850-tdep.c: Full multi-arch.
5891 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5892 Define GDB_MULTI_ARCH to 2.
5893
5894 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5895
5896 * p-exp.y (current_type): New static variable.
5897 Carries the type of the expression at the position that is parsed.
5898 (push_current_type, pop_current_type): Two new functions. Used
5899 to store/restore current_type in expression on specific tokens.
5900 (search_field): New static variable. Set to one after parsing a point
5901 as at that point only a FIELDNAME token should be searched.
5902 (FIELDNAME): New token. After a point only a token belonging to
5903 current_type type definition is allowed.
5904 (all over token rules): reset and change current_type according
5905 to rules.
5906 (exp '[' rule): insert implicit array index field if
5907 exp is a pascal string type.
5908
5909 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5910
5911 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5912 frame info. Use frame_info's saved_regs instead of matching member
5913 in extra_frame_info throughout.
5914 (v850_frame_init_saved_regs): New function.
5915 (v850_init_extra_frame_info): Move most functionality into
5916 v850_frame_init_saved_regs().
5917 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5918 (v850_frame_find_saved_regs): Remove declaration.
5919 (FRAME_FIND_SAVED_REGS): Remove definition.
5920 (v850_frame_init_saved_regs): Add declaration.
5921 (FRAME_INIT_SAVED_REGS): Add definition.
5922
5923 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5924
5925 * v850-tdep.c: Begin multi-arch'ing v850.
5926 (v850_target_architecture_hook): Remove function.
5927 (v850_gdbarch_init): New function. Add code previously in
5928 v850_target_architecture_hook().
5929 (_initialize_v850_tdep): Don't set target_architecture_hook.
5930 Call register_gdbarch_init() instead.
5931
5932 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5933
5934 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5935 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5936 (fixup_class_method_type): Likewise.
5937
5938 2002-05-15 Jim Blandy <jimb@redhat.com>
5939
5940 Add macro structures to GDB's symbol tables. Nobody puts anything
5941 in them yet.
5942 * symtab.h (struct symtab): New member: `macro_table'.
5943 * buildsym.h (pending_macros): New global variable.
5944 * buildsym.c: #include "macrotab.h".
5945 (buildsym_init): Initialize `pending_macros'.
5946 (end_symtab): If we found macro information while reading a CU's
5947 debugging info, do build a symtab structure for it. Make the
5948 symtab point to the macro information, and clear the
5949 `pending_macros' pointer which held it while we were reading the
5950 debug info.
5951 (really_free_pendings): Free any pending macro table.
5952 * objfiles.h (struct objfile): New member: `macro_cache'.
5953 * objfiles.c (allocate_objfile): Set allocate and free functions
5954 for the macro cache's objstack.
5955 (free_objfile): Empty the macro cache's obstack.
5956 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5957 set new allocate and free functions for it.
5958 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5959 free functions for the macro cache's objstack. (Why is this
5960 function building its own objfile?)
5961 * symmisc.c (print_objfile_statistics): Print statistics on the
5962 macro bcache.
5963 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5964
5965 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5966
5967 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5968 (REGISTER_U_ADDR): Delete definition.
5969 (arm_register_u_addr): Delete declaration.
5970
5971 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5972
5973 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5974 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5975
5976 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5977
5978 * regcache.c (register_valid): Revise comments refering to "Not
5979 available" and "unavailable".
5980 * frame.c (frame_register_read): Ditto.
5981 * findvar.c (value_of_register): Ditto.
5982
5983 2002-05-15 Andrew Cagney <cagney@redhat.com>
5984
5985 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5986 (remote-sim.o): Update dependencies.
5987 (d10v-tdep.o): Specify dependencies.
5988 (sim_d10v_h): Define.
5989
5990 2002-05-14 Jim Blandy <jimb@redhat.com>
5991
5992 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5993 * macrotab.c (macro_lookup_inclusion, find_definition,
5994 new_macro_table): Same.
5995
5996 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5997 not `! strcmp ()'. This is a dubious improvement.
5998 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5999
6000 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6001 although it's not necessary, to avoid a warning.
6002
6003 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6004
6005 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6006 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6007 TYPE_INSTANCE_FLAGS.
6008 (struct main_type): New.
6009 (struct type): Move most members to struct main_type. Change
6010 cv_type and as_type to new type_chain member. Add instance_flags.
6011 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6012 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6013 (finish_cv_type): Remove prototype.
6014 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6015 Set TYPE_CHAIN.
6016 (alloc_type_instance): New function.
6017 (smash_type): New function.
6018 (make_pointer_type, make_reference_type, make_function_type)
6019 (smash_to_member_type, smash_to_method_type): Call smash_type.
6020 (make_qualified_type): New function.
6021 (make_type_with_address_space): Call make_qualified_type.
6022 (make_cv_type): Likewise.
6023 (finish_cv_type): Remove unnecessary function.
6024 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6025 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6026 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6027 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6028 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6029 * hpread.c (hpread_read_struct_type): Likewise.
6030 * stabsread.c (read_struct_type): Likewise.
6031
6032 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6033
6034 * configure.tgt: Add a catch all sh* target, for cases like
6035 sh[2,3,4]-elf and sh-hms.
6036
6037 2002-05-14 Keith Seitz <keiths@redhat.com>
6038
6039 * event-loop.c (create_file_handler): Don't do anything but
6040 update data when we are given a fd which we are already
6041 monitoring.
6042
6043 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6044
6045 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6046 (update_context): Use __func__ in warnings.
6047
6048 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6049
6050 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6051 and tcp_close to net_open and net_close.
6052 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6053 using UDP if requested. Don't try to disable Nagle on UDP
6054 sockets.
6055 * remote.c (remote_serial_open): New function. Warn about UDP.
6056 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6057
6058 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6059
6060 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6061
6062 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6063
6064 * configure.tgt: Remove sh-hms target.
6065 * MAINTAINERS: Don't list sh-hms as a separate target.
6066
6067 2002-05-13 Jim Blandy <jimb@redhat.com>
6068
6069 Add first preprocessor macro-expansion files.
6070 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6071 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6072 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6073 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6074 (COMMON_OBS): Add macrotab.o, macroexp.o.
6075 (macroexp.o, macrotab.o): New rules.
6076
6077 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6078
6079 * config/m88k/tm-m88k.h: Update copyright.
6080 (m88k_target_write_pc): Declare
6081 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6082 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6083 (SHIFT_INST_REGS): Update definition.
6084 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6085 using old definition of TARGET_WRITE_PC.
6086 * regcache.c (generic_target_write_pc): Delete code handling
6087 NNPC_REGNUM.
6088 * gdbarch.sh (NNPC_REGNUM): Delete.
6089 * gdbarch.h, gdbarch.c: Regenerate.
6090
6091 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6092
6093 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6094 builtin reg number.
6095
6096 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6097
6098 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6099 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6100 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6101 access macros.
6102 * c-typeprint.c (cp_type_print_method_args): Likewise.
6103 (c_type_print_args): Likewise.
6104 * d10v-tdep.c (d10v_push_arguments): Likewise.
6105 (d10v_extract_return_value): Likewise.
6106 * expprint.c (print_subexp): Likewise.
6107 * gdbtypes.c (lookup_primitive_typename): Likewise.
6108 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6109 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6110 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6111 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6112 (TYPE_VECTOR): Likewise.
6113 * hpread.c (hpread_read_struct_type)
6114 (fix_static_member_physnames, fixup_class_method_type)
6115 (hpread_type_lookup): Likewise.
6116 * mdebugread.c (parse_symbol, parse_type): Likewise.
6117 * p-lang.c (is_pascal_string_type): Likewise.
6118 * valops.c (hand_function_call): Likewise.
6119 * x86-64-tdep.c (classify_argument): Likewise.
6120
6121 * hpread.c (hpread_read_function_type)
6122 (hpread_read_doc_function_type): Call replace_type.
6123 * dstread.c (create_new_type): Delete.
6124 (decode_dst_structure, process_dst_function): Call alloc_type.
6125 Use type access macros.
6126
6127 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6128
6129 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6130 the're not supported by the current architecture.
6131 (i387_fill_fxsave): Likewise.
6132
6133 2002-05-12 Fred Fish <fnf@redhat.com>
6134
6135 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6136 sect_index_xxx members to index the first slot in section_offsets
6137 if all of the section_offsets are zero.
6138
6139 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6140
6141 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6142 checked in with last change.
6143
6144 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6145
6146 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6147 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6148 config.sub.
6149
6150 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6151
6152 * Makefile.in: Update dependencies.
6153
6154 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6155
6156 * language.c (local_hex_string_custom): Simplify. Do not depend
6157 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6158
6159 * memattr.c (mem_info_command): Replace calls to
6160 longest_local_hex_string and longest_local_hex_string_custom.
6161 * buildsym.c (make_blockvector): Ditto.
6162 * solib.c (info_sharedlibrary_command): Ditto.
6163 * tracepoint.c (tracepoints_info): Ditto.
6164 * symtab.c (print_msymbol_info): Ditto.
6165
6166 * language.c (local_hex_string): Delete.
6167 (local_hex_string_custom): Delete.
6168 (longest_local_hex_string): Rename to local_hex_string.
6169 (longest_local_hex_string_custom): Rename to
6170 local_hex_string_custom.
6171 * language.h (local_hex_string): Change parameter type to LONGEST.
6172 (local_hex_string_custom): Ditto.
6173 (longest_local_hex_string): Delete declaration.
6174 (longest_local_hex_string_custom): Ditto.
6175
6176 * solib.c: Update copyright.
6177 * memattr.c: Update copyright.
6178
6179 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6180
6181 * arch-utils.h (legacy_register_to_value): Declare.
6182 (legacy_value_to_register): Declare.
6183 (legacy_convert_register_p): Declare.
6184 * arch-utils.c (legacy_register_to_value): New function.
6185 (legacy_value_to_register): New function.
6186 (legacy_convert_register_p): New function.
6187
6188 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6189 (VALUE_TO_REGISTER): Define.
6190 (CONVERT_REGISTER_P): Define.
6191 * gdbarch.h, gdbarch.c: Regenerate.
6192
6193 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6194 VALUE_TO_REGISTER.
6195 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6196 CONVERT_REGISTER_P.
6197
6198 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6199 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6200
6201 * Makefile.in: Update dependencies for valops.c.
6202 * valops.c: Include "gdb_assert.h".
6203 (typecmp): Skip THIS parameter to methods.
6204 (find_method_list): Remove static_memfuncp argument,
6205 update callers. Check for stub methods.
6206 (find_value_oload_method_list): Don't set *static_memfuncp.
6207 (find_overload_match): Don't check for stub methods. Assert
6208 that methods are not stubbed. Handle static methods.
6209 (value_find_oload_method_list): Remove static_memfuncp argument.
6210 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6211 to the argument list for static stub methods.
6212 * value.h (value_find_oload_method_list): Update prototype.
6213
6214 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6215
6216 * arch-utils.h (generic_register_size): Declare.
6217 (generic_register_raw_size, generic_register_virtual_size): Delete
6218 declarations.
6219 * arch-utils.c (generic_register_raw_size): Delete.
6220 (generic_register_size): New function.
6221 (generic_register_virtual_size): Delete.
6222
6223 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6224 default generic_register_size.
6225 * gdbarch.h, gdbarch.c: Re-generate.
6226
6227 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6228 register_virtual_size.
6229 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6231
6232 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6233
6234 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6235 * gdbarch.h, gdbarch.c: Regenerate.
6236 * gnu-v3-abi.c: Update copyright.
6237 (vtable_address_point_offset): Update.
6238 (gnuv3_rtti_type): Update.
6239 (gnuv3_baseclass_offset): Update.
6240 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6241 (init_fetch_link_map_offsets): Update.
6242 * remote.c (get_remote_state): Update.
6243
6244 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6245
6246 * TODO: Remove value_headof/value_from_vtable_info comment.
6247 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6248 * values.c (value_headof, value_from_vtable_info): Delete.
6249 * value.h (value_from_vtable_info): Delete prototype.
6250
6251 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6252
6253 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6254 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6255 $(gdb_regex_h).
6256 (gdb_assert_h): Define.
6257 (gdb_wait_h): Define.
6258 (gdb_regex_h): Define.
6259
6260 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6261
6262 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6263 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6264
6265 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6266
6267 * nbsd-tdep.c: Fix comment.
6268
6269 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6270
6271 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6272 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6273 (nbsd-tdep.o): New dependency list.
6274 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6275 nbsd-tdep.h.
6276 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6277 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6278 * nbsd-tdep.c: New file.
6279 * nbsd-tdep.h: New file.
6280 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6281 nbsd-tdep.h.
6282 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6283 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6284 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6285 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6286
6287 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6288
6289 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6290 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6291 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6292 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6293 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6294 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6295
6296 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6297
6298 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6299 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6300 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6301 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6302 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6303 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6304 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6305
6306 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6309 fetch_elfcore_registers to...
6310 * i386nbsd-tdep.c: ...here.
6311 (i386nbsd_use_struct_convention): Rename to...
6312 (i386nbsd_aout_use_struct_convention): ...this.
6313 (i386nbsd_supply_reg): New function.
6314 (i386nbsd_fill_reg): New function.
6315 (fetch_core_registers): Use i386nbsd_supply_reg.
6316 (fetch_elfcore_registers): Likewise.
6317 (_initialize_i386nbsd_tdep): New function.
6318 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6319 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6320 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6321 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6322 (i386nbsd_aout_use_struct_convention): ...this.
6323
6324 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6325
6326 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6327 (store_inferior_registers): Use shnbsd_fill_reg.
6328 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6329 sh_nbsd_supply_register): Collapse into...
6330 (shnbsd_supply_reg): ...this.
6331 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6332 (shnbsd_fill_reg): ...this.
6333 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6334 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6335 (fetch_core_registers): Use shnbsd_supply_reg.
6336 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6337 (sh_nbsd_core_fns): Rename to...
6338 (shnbsd_core_fns): ...this.
6339 (sh_nbsd_elfcore_fns): Rename to...
6340 (shnbsd_elfcore_fns): ...this.
6341 (sh_nbsd_init_abi): Rename to...
6342 (shnbsd_init_abi): ...this.
6343 (_initialize_sh_nbsd_tdep): Rename to...
6344 (_initialize_shnbsd_tdep): ...this.
6345 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6346 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6347 sh_nbsd_fill_register): Remove prototypes.
6348 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6349
6350 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6351
6352 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6353 (i387-nat.o): Delete dependency list.
6354 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6355 (x86-64-linux-nat.o): Likewise.
6356 * i387-nat.c: Delete file, moving contents to...
6357 * i387-tdep.c: ...here.
6358 * i387-nat.h: Rename...
6359 * i387-tdep.h: ...to this.
6360 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6361 * i386-linux-nat.c: Likewise.
6362 * i386bsd-nat.c: Likewise.
6363 * i386gnu-nat.c: Likewise.
6364 * i386nbsd-nat.c: Likewise.
6365 * i386v4-nat.c: Likewise.
6366 * x86-64-linux-nat.c: Likewise.
6367 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6368 * config/i386/go32.mh (NATDEPFILES): Likewise.
6369 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6370 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6371 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6372 * config/i386/linux.mh (NATDEPFILES): Likewise.
6373 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6374 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6375 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6376 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6377
6378 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6379
6380 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6381 (alphanbsd-nat.o): Remove dependency list.
6382 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6383 * alphanbsd-nat.c: Delete. Contents moved to...
6384 * alphanbsd-tdep.c: ...here.
6385 (_initialize_alphanbsd_tdep): Register core functions.
6386 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6387
6388 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6389
6390 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6391 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6392 (alphanbsd-nat.o): Likewise.
6393 (alphabsd-tdep.o): New dependency list.
6394 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6395 (fill_gregset): Use alphabsd_fill_reg.
6396 (supply_fpregset): Use alphabsd_supply_fpreg.
6397 (fill_fpregset): Use alphabsd_fill_fpreg.
6398 (fetch_inferior_registers): Use struct reg and struct fpreg
6399 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6400 and alphabsd_supply_fpreg.
6401 (store_inferior_registers): Use struct reg and struct fpreg
6402 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6403 and alphabsd_fill_fpreg.
6404 * alphabsd-tdep.c: New file.
6405 * alphabsd-tdep.h: New file.
6406 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6407 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6408 alphabsd_supply_fpreg.
6409 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6410 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6411
6412 2002-05-11 Eric Christopher <echristo@redhat.com>
6413
6414 * mips-tdep.c (mips_double_register_type): Fix thinko.
6415 (mips_single_register_type): Ditto.
6416 * MAINTAINERS: Add self.
6417
6418 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6419
6420 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6421 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6422 right thing on architectures with different endianness and/or
6423 integer sizes.
6424
6425 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6426
6427 From Christian Limpach <chris@Pin.LU>
6428 * configure.in: Change sed expression which comments out
6429 NATDEPFILES to also comment out continuation lines.
6430 * configure: Regenerate.
6431
6432 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6433
6434 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6435 big patch.
6436
6437 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6438
6439 * sh-tdep.c: Include correct file.
6440
6441 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6442
6443 New support for sh64-elf (sh5) target.
6444
6445 * configure.tgt: For sh64-elf target, default to sh-elf.
6446
6447 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6448 (struct gdbarch_tdep): Add new fields for new registers and ABI
6449 info.
6450
6451 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6452 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6453 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6454 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6455 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6456 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6457 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6458 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6459 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6460 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6461 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6462 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6463 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6464 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6465 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6466 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6467 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6468 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6469 sign_extend, sh64_nofp_frame_init_saved_regs,
6470 sh64_init_extra_frame_info, sh64_get_saved_register,
6471 sh64_extract_struct_value_address, sh64_pop_frame,
6472 sh64_push_arguments, sh64_extract_return_value,
6473 sh64_store_return_value, sh64_show_media_regs,
6474 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6475 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6476 sh_sh64_register_virtual_type,
6477 sh_sh64_register_convert_to_virtual,
6478 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6479 sh64_register_read, sh64_pseudo_register_write,
6480 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6481 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6482 sh64_do_pseudo_register, sh_compact_do_registers_info,
6483 sh64_do_registers_info, sh_gdbarch_init): New functions.
6484
6485 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6486
6487 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6488
6489 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6490
6491 * linespec.c (decode_line_1): Check for a double quote after
6492 a filename correctly.
6493
6494 2002-05-10 Jim Blandy <jimb@redhat.com>
6495
6496 Properly track the size of the current objfile's .debug_line section.
6497 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6498 (DWARF_LINE_SIZE): New macro.
6499 (dwarf2_build_psymtabs_hard): Record the line section's size in
6500 the partial symbol table.
6501 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6502 symbol table.
6503
6504 2002-05-10 Petr Sorfa <petrs@caldera.com>
6505
6506 * ia64-tdep.c: Handle breakpoints on L instruction type
6507 in MLX instruction bundle by moving the breakpoint to
6508 the third slot (X instruction type) as L holds only data.
6509
6510 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6511
6512 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6513 (process_one_symbol): Complain about discarding local symbols
6514 due to a misplaced N_LBRAC entry.
6515
6516 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6517
6518 From Daniel Berlin <dan@cgsoftware.com>
6519 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6520 decrease the depth we are at, in the case of templates.
6521
6522 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6523
6524 * mips-tdep.c (mips_float_register_type): New function.
6525 (mips_double_register_type): New function.
6526 (mips_print_register): Use them.
6527 (do_fp_register_row): Likewise.
6528
6529 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * signals/signals.c (signals): Remove conditional compilation around
6532 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6533 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6534
6535 2002-05-09 Michael Snyder <msnyder@redhat.com>
6536
6537 * remote-rdp.c (remote_rdp_can_run): Remove.
6538
6539 2002-05-09 Tom Tromey <tromey@redhat.com>
6540
6541 * jv-valprint.c (java_val_print): Handle `char' as a special case
6542 of TYPE_CODE_INT.
6543
6544 2002-05-09 Michael Snyder <msnyder@redhat.com>
6545
6546 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6547 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6548 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6549 str r(0123),[sp,#nn].
6550 (arm_skip_prologue): Ditto. Also make disassembly
6551 order-independent by placing it in a loop.
6552
6553 2002-05-06 Michael Snyder <msnyder@redhat.com>
6554
6555 * stabsread.c (read_type): Add recognition for new attribute:
6556 "@V;" means that an array type is actually a vector.
6557 This is analogous to the vector flag that's been added to dwarf2.
6558
6559 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6560
6561 * i386-tdep.h (i386_abi): New enum.
6562 (struct gdbarch_tdep): Replace os_ident member with abi.
6563 (i386_gdbarch_register_os_abi): New prototype.
6564 * i386-tdep.c (i386_abi_names): New array.
6565 (process_note_abi_tag_sections): Removed.
6566 (process_note_sections): New function.
6567 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6568 (struct i386_abi_handler): New struct.
6569 (i386_abi_handler_list): New variable.
6570 (i386_gdbarch_register_os_abi): New function.
6571 (i386_gdbarch_init): Adapt for the changes given above.
6572
6573 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6574
6575 * gregset.h: Say "GNU/Linux".
6576
6577 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6578
6579 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6580 (build_gdbtypes): Build builtin_type_v2_float.
6581 (_initialize_gdbtypes): Register new builtin type.
6582
6583 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6584
6585 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6586 (clear_gdbarch_swap): New function.
6587 (initialize_non_multiarch): Call.
6588 (gdbarch_update_p): Before calling init(), swap out and clear the
6589 existing architecture.
6590 * gdbarch.c: Regenerate.
6591
6592 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6593
6594 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6595 alphanbsd-tdep.c.
6596
6597 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6598
6599 * sh-nbsd-nat.c: Rename to...
6600 * shnbsd-nat.c: ...this.
6601 * sh-nbsd-tdep.c: Rename to...
6602 * shnbsd-tdep.c: ...this.
6603 * sh-nbsd-tdep.h: Rename to...
6604 * shnbsd-tdep.h: ...this.
6605 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6606 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6607
6608 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6609
6610 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6611 concatenation for command help messages.
6612
6613 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6614
6615 * NEWS: Note new sh*-*-netbsdelf* configuration.
6616 * configure.host: Set gdb_host_cpu to sh for all sh*.
6617 (sh*-*-netbsdelf*): New host.
6618 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6619 (sh*-*-netbsdelf*): New target.
6620 * sh-nbsd-nat.c: New file.
6621 * sh-nbsd-tdep.c: New file.
6622 * sh-nbsd-tdep.h: New file.
6623 * config/sh/nbsd.mh: New file.
6624 * config/sh/nbsd.mt: New file.
6625 * config/sh/nm-nbsd.h: New file.
6626 * config/sh/tm-nbsd.h: New file.
6627
6628 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6629
6630 * sh-tdep.c (sh_osabi_names): Declare.
6631 (process_note_abi_tag_sections): New function.
6632 (get_elfosabi): Ditto.
6633 (sh_gdbarch_register_os_abi): Ditto.
6634 (sh_dump_tdep): Ditto.
6635 _initialize_sh_tdep): Use gdbarch_register to register
6636 sh_gdbarch_init and sh_dump_tdep.
6637 * config/sh/tm-sh.h (sh_osabi): Declare.
6638 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6639
6640 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6641
6642 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6643 (thumb_scan_prologue): Ditto.
6644 (arm_find_callers_reg): Ditto.
6645 (arm_frame_chain): Ditto.
6646 (arm_init_extra_frame_info): Ditto.
6647 (arm_frame_saved_pc): Ditto.
6648 (arm_pop_frame): Ditto.
6649 (arm_push_return_address): New function.
6650 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6651 call_dummy_location, call_dummy_breakpoint_offset_p,
6652 call_dummy_breakpoint_offset, call_dummy_p,
6653 call_dummy_stack_adjust_p, call_dummy_words,
6654 sizeof_call_dummy_words, call_dummy_start_offset,
6655 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6656 call_dummy_address, push_return_address and push_dummy_frame for
6657 generic dummy frames.
6658
6659 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6660
6661 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6662 size computation for alloca.
6663 (sh_fp_frame_init_saved_regs): Likewise.
6664
6665 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6666
6667 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6668 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6669 * arm-tdep.c (arm_store_return_value): Use them.
6670 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6671 * remote-rdp.c (remote_rdp_fetch_register): Use
6672 ARM_MAX_REGISTER_RAW_SIZE.
6673 (remote_rdp_store_register): Likewise.
6674
6675 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6676
6677 * dwarf2cfi.c: Code cleanup, removed unused variables,
6678 added default labels to switch {} statements.
6679 * x86-64-tdep.c: Ditto.
6680 * x86-64-linux-nat.c: Ditto.
6681
6682 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6683
6684 * solib.h: Protect against multiple inclusion.
6685
6686 2002-05-06 Jim Blandy <jimb@redhat.com>
6687
6688 Add first preprocessor macro-expansion files.
6689 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6690 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6691 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6692 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6693 (COMMON_OBS): Add macrotab.o, macroexp.o.
6694 (macroexp.o, macrotab.o): New rules.
6695
6696 Separate the job of reading the line number info statement program
6697 header (...expialidocious) out into its own function.
6698 * dwarf2read.c (struct line_head, struct filenames, struct
6699 directories): Replace with...
6700 (struct line_header): New structure, containing the full
6701 contents of the statement program header, including the
6702 include directory and file name tables.
6703 (read_file_scope): If we have line number info, instead of just
6704 calling dwarf_decode_lines to do all the work, call
6705 dwarf_decode_line_header first to get a `struct line_header'
6706 containing the data in the statement program header, and then
6707 pass that to dwarf_decode_lines, which will pick up where that
6708 left off. Be sure to clean up the `struct line_header' object.
6709 (dwarf_decode_line_header, free_line_header, add_include_dir,
6710 add_file_name): New functions.
6711 (dwarf_decode_lines): Move all the code to read the statement
6712 program header into dwarf_decode_line_header. Take the line
6713 header it built as the first argument, instead of the offset to
6714 the compilation unit's line number info. Use the new `struct
6715 line_header' type instead of the old structures. No need to do
6716 cleanups here now, since we don't allocate anything.
6717 (dwarf2_statement_list_fits_in_line_number_section,
6718 dwarf2_line_header_too_long): New complaints.
6719
6720 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6721
6722 * gdbtypes.c (init_vector_type): New function.
6723 (build_builtin_type_vec128): Simplify the representation of SIMD
6724 registers.
6725 (build_gdbtypes): Initialize new builtin vector types.
6726 (_initialize_gdbtypes): Register new vector types with gdbarch.
6727 (builtin_type_v4_float, builtin_type_v4_int32,
6728 builtin_type_v8_int16, builtin_type_v16_int8,
6729 builtin_type_v2_int32, builtin_type_v4_int16,
6730 builtin_type_v8_int8): New (renamed) SIMD types.
6731
6732 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6733
6734 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6735 (i387_fill_fxsave): Likewise.
6736
6737 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6738
6739 * alpha-tdep.c (alpha_extract_return_value): Don't use
6740 non-constant array size in prototype.
6741
6742 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6743
6744 From Brian Taylor <briant at model dot com>:
6745 * ui-out.c (ui_out_field_core_addr): Use the function
6746 longest_local_hex_string_custom'to format addresses > 32 bits
6747 wide.
6748
6749 * ui-out.c (ui_out_field_core_addr): Update comment.
6750
6751 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6752
6753 * stack.c (select_and_print_frame): Make static. Delete the
6754 parameter `level'.
6755 (func_command): Update call.
6756 (select_frame_command): Delete code computing the frame level.
6757 * frame.h (select_and_print_frame): Delete declaration.
6758
6759 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6760
6761 * sparc-tdep.c (sparc_get_saved_register): Comment why
6762 get_prev_frame call is safe.
6763
6764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6765
6766 * frame.h (select_frame): Delete level parameter.
6767 * stack.c (select_frame): Update. Use frame_relative_level to
6768 obtain the frame's level.
6769 (select_and_print_frame): Update call.
6770 (select_frame_command): Ditto.
6771 (up_silently_base): Ditto.
6772 (down_silently_base): Ditto.
6773 * ocd.c (ocd_start_remote): Ditto.
6774 * remote-rdp.c (remote_rdp_open): Ditto.
6775 * remote-mips.c (mips_initialize): Ditto.
6776 (common_open): Ditto.
6777 * remote-e7000.c (e7000_start_remote): Ditto.
6778 * m3-nat.c (select_thread): Ditto.
6779 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6780 (child_get_current_exception_event): Ditto.
6781 * varobj.c (varobj_create): Ditto.
6782 (varobj_update): Ditto.
6783 (c_value_of_root): Ditto.
6784 * tracepoint.c (finish_tfind_command): Ditto.
6785 * corelow.c (core_open): Ditto.
6786 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6787 * thread.c (info_threads_command): Ditto.
6788 (switch_to_thread): Ditto.
6789 * infrun.c (normal_stop): Ditto.
6790 (restore_selected_frame): Ditto.
6791 (restore_inferior_status): Ditto.
6792 * breakpoint.c (insert_breakpoints): Ditto.
6793 (watchpoint_check): Ditto.
6794 (bpstat_stop_status): Ditto.
6795 (do_enable_breakpoint): Ditto.
6796 * blockframe.c (flush_cached_frames): Ditto.
6797 (reinit_frame_cache): Ditto.
6798
6799 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6800
6801 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6802 maintainer.
6803
6804 2002-05-04 Jim Blandy <jimb@redhat.com>
6805
6806 * gdbtypes.c (replace_type): Doc fix.
6807
6808 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6809
6810 * valprint.c (strcat_longest): Delete commented out function.
6811 Update copyright.
6812
6813 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6814
6815 * MAINTAINERS: Mark a29k as deleted.
6816 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6817 Move new configurations to the top.
6818 * configure.tgt: Remove a29k.
6819 * config/a29k/tm-vx29k.h: Delete.
6820 * config/a29k/vx29k.mt: Delete.
6821 * config/a29k/tm-a29k.h: Delete.
6822 * config/a29k/a29k-udi.mt: Delete.
6823 * config/a29k/a29k.mt: Delete.
6824 * a29k-tdep.c: Delete.
6825 * remote-udi.c: Delete.
6826 * remote-mm.c: Delete.
6827 * remote-eb.c: Delete.
6828 * remote-adapt.c: Delete.
6829 * Makefile.in: Remove obsolete code.
6830 * config/s390/s390x.mt: Ditto.
6831 * config/s390/s390.mt: Ditto.
6832 * config/sparc/sparclynx.mh: Ditto.
6833 * config/sparc/linux.mh: Ditto.
6834 * config/pa/hppaosf.mh: Ditto.
6835 * config/pa/hppabsd.mh: Ditto.
6836 * config/ns32k/nbsd.mt: Ditto.
6837 * config/mips/vr5000.mt: Ditto.
6838 * config/m68k/sun3os4.mh: Ditto.
6839 * config/m68k/nbsd.mt: Ditto.
6840 * config/m68k/m68klynx.mh: Ditto.
6841 * config/m32r/m32r.mt: Ditto.
6842 * config/i386/x86-64linux.mt: Ditto.
6843 * config/i386/nbsdelf.mt: Ditto.
6844 * config/i386/nbsd.mt: Ditto.
6845 * config/i386/i386lynx.mh: Ditto.
6846
6847 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6848
6849 * target.c (debug_print_register): New function. Handle oversize
6850 registers.
6851 (debug_to_fetch_registers): Call.
6852 (debug_to_store_registers): Call.
6853
6854 2002-05-03 Jim Blandy <jimb@redhat.com>
6855
6856 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6857 (read_type): Doc fix.
6858 * gdbtypes.c (replace_type): Doc fix.
6859
6860 * stabsread.c (multiply_defined_struct): New complaint.
6861 (read_struct_type): If the type we were passed isn't empty, or
6862 incomplete, don't read the new struct type into it; complain,
6863 and return the original type unchanged. Take a new `type_code'
6864 argument, which is the type code for the new type.
6865 (read_type): Rather than storing the type's type code here, pass
6866 it as an argument to read_struct_type, and let that take care of
6867 storing it. That way, we don't overwrite the original type code,
6868 so read_struct_type can use it to decide whether we're overwriting
6869 something we shouldn't.
6870 (complain_about_struct_wipeout): New function.
6871
6872 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6873
6874 * gdbarch.sh: Assert that gdbarch is non-NULL.
6875 * gdbarch.c: Regenerate.
6876
6877 2002-05-03 Jason Merrill <jason@redhat.com>
6878
6879 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6880 and return NULL.
6881
6882 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6883
6884 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6885 (x86_64_dwarf2gdb_regno_map_length),
6886 (x86_64_dwarf2_reg_to_regnum): Added.
6887 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6888 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6889 (_initialize_x86_64_tdep): Synced with the change above.
6890 (x86_64_skip_prologue): Reformulated message.
6891
6892 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6893
6894 * f-exp.y: Also use new prev_lexptr variable
6895 to improve error reporting. Based on Michael Snyder
6896 2002-04-24 dated patch to c-exp.y.
6897 * jv-exp.y: Likewise.
6898 * m2-exp.y: Likewise.
6899
6900 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6901
6902 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6903 we are dealing with vectors.
6904
6905 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6906
6907 * config/m68k/tm-nbsd.h: Obvious fix,
6908 correct machine name.
6909
6910 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6911
6912 * p-typeprint.c (pascal_type_print_base): Add support
6913 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6914
6915 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6916
6917 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6918 for fondamental pascal 'char' type.
6919
6920 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6921
6922 * p-lang.h (is_pascal_string_type): Declaration changed,
6923 new sixth argument of type char ** added.
6924 * p-lang.c (is_pascal_string_type): Implementation
6925 changed. Args length_pos, length_size, string_pos, char_size
6926 can now be NULL. New argument arrayname set to the field
6927 name of the char array. Return value set to char array
6928 field index plus one.
6929 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6930 is_pascal_string_type function.
6931
6932 2002-05-02 Andrew Cagney <cagney@redhat.com>
6933
6934 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6935 <cagney@redhat.com> change.
6936 * gdbarch.c: Regenerate.
6937
6938 2002-05-02 Andrew Cagney <cagney@redhat.com>
6939
6940 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6941 before probing for a new one. Detect errorenous gdbarch_init
6942 functions.
6943 * gdbarch.c: Regenerate.
6944
6945 2002-05-01 Andrew Cagney <cagney@redhat.com>
6946
6947 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6948 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6949 * config/v850/tm-v850.h: Ditto. Update copyright.
6950
6951 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6952
6953 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6954 current_gdbarch.
6955
6956 2002-04-30 Michael Snyder <msnyder@redhat.com>
6957
6958 * arm-tdep.c: Whitespace clean-ups.
6959 (arm_skip_prologue): Fix thinko; two lines
6960 should have been removed as part of 4/24 change.
6961
6962 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6963
6964 * rs6000-tdep.c: Added comment describing how fpscr register
6965 numbers were chosen.
6966
6967 2002-04-30 Michael Snyder <msnyder@redhat.com>
6968
6969 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6970
6971 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6972
6973 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6974 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6975 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6976
6977 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6978
6979 From Louis Hamilton <hamilton@redhat.com>:
6980 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6981 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6982 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6983 not bfd-private xcoff data, to determine wordsize.
6984 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6985
6986 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6987
6988 GDB 5.2 released from 5.2 branch.
6989
6990 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6991
6992 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6993 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6994 (x86_64_register_info_table): Added comments with register numbers.
6995
6996 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6997
6998 * rs6000-tdep.c (rs6000_extract_return_value,
6999 rs6000_store_return_value): Handle returning vectors.
7000 (rs6000_gdbarch_init): Use
7001 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7002 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7003 New function.
7004 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7005 vectors.
7006 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7007 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7008
7009 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7010
7011 * hpread.c (hpread_psymtab_to_symtab_1,
7012 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7013 with fprintf_unfiltered (gdb_stderr,...).
7014
7015 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7016
7017 * remote-array.c (printf_monitor, write_monitor,
7018 array_insert_breakpoint, array_remove_breakpoint ):
7019 Replace fprintf (stderr,...
7020 with fprintf_unfiltered (gdb_stderr,....
7021 * remote-es.c: Likewise.
7022 * remote-os9k.c: Likewise.
7023 * remote-st.c: Likewise.
7024
7025 2002-04-28 Andreas Schwab <schwab@suse.de>
7026
7027 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7028 linux-proc.o and gcore.o.
7029
7030 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7031
7032 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7033 code without frame pointers.
7034
7035 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7036
7037 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7038 ON_STACK is needed.
7039
7040 2002-04-26 Ben Elliston <bje@redhat.com>
7041
7042 * target.c (do_xfer_memory): Correct reference to the new option
7043 "trust-readonly-sections".
7044
7045 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7046
7047 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7048 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7049 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7050 vectors.
7051 (read_array_type): Record the fact that this array type is really a
7052 vector (i.e. are passed in by value).
7053
7054 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7055
7056 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7057 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7058 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7059 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7060 * alpha-linux-tdep.c: Include frame.h.
7061 (alpha_linux_sigcontext_addr): New function.
7062 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7063 alpha_linux_sigcontext_addr.
7064 * alpha-osf1-tdep.c: Include gdbcore.h.
7065 (alpha_osf1_sigcontext_addr): New function.
7066 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7067 alpha_osf1_sigcontext_addr.
7068 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7069 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7070
7071 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7072
7073 * stack.c (selected_frame_level):
7074 (select_frame): Do not set selected_frame_level.
7075 * frame.h (selected_frame_level): Delete declaration.
7076
7077 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7078
7079 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7080 convert_from_func_ptr-addr when AIX / PowerOpen.
7081
7082 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7083
7084 * valops.c (hand_function_call): Call
7085 generic_save_call_dummy_addr.
7086 * frame.h (generic_save_call_dummy_addr): Declare.
7087 * blockframe.c (struct dummy_frame): Add fields call_lo and
7088 call_hi.
7089 (generic_find_dummy_frame): Check for PC in range call_lo to
7090 call_hi instead of entry_point_address.
7091 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7092 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7093 (generic_save_call_dummy_addr): New function.
7094
7095 2002-04-24 David S. Miller <davem@redhat.com>
7096
7097 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7098 sparc_skip_prologue.
7099 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7100 information to find prologue when possible.
7101 (sparc_prologue_frameless_p): Call examine_prologue directly.
7102 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7103 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7104 second argument.
7105 (SKIP_PROLOGUE): Likewise.
7106
7107 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7108
7109 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7110 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7111 indicate that the condition it was testing is always true.
7112 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7113 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7114 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7115
7116 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7117
7118 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7119 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7120 tdep->jb_pc and tdep->jb_elt_size.
7121 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7122 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7123 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7124 * alpha-nat.c (get_longjmp_target): Remove.
7125 (JB_ELEMENT_SIZE): Ditto.
7126 (JB_PC): Ditto.
7127 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7128 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7129 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7130 to alpha_get_longjmp_target.
7131 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7132 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7133 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7134
7135 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7136
7137 * README: Update to GDB 5.2.
7138
7139 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7140
7141 * gdbarch.sh (LC_ALL): Set to `c'.
7142
7143 2002-04-25 Theodore A. Roth <troth@verinet.com>
7144
7145 * avr-tdep.c: Ran through gdb_indent.sh.
7146
7147 2002-04-25 Theodore A. Roth <troth@verinet.com>
7148
7149 * MAINTAINERS: Add myself as AVR maintainer.
7150 * NEWS: Note new target avr.
7151
7152 2002-04-25 Theodore A. Roth <troth@verinet.com>
7153
7154 * Makefile.in: Add support for AVR target.
7155 * configure.tgt: Add support for AVR target.
7156 * avr-tdep.c: New file
7157 * config/avr/avr.mt: New file.
7158
7159 2002-04-25 Theodore A. Roth <troth@verinet.com>
7160
7161 * MAINTAINERS: Add myself to write-after-approval.
7162
7163 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7164
7165 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7166 with fprintf_unfiltered (gdb_stderr,....
7167
7168 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7169
7170 Fix PR gdb/508.
7171 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7172
7173 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7174
7175 * p-exp.y: Also use new prev_lexptr variable
7176 to improve error reporting. Based on Michael Snyder
7177 2002-04-24 dated patch to c-exp.y.
7178
7179 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7180
7181 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7182 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7183 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7184 to 0.
7185 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7186 and struct value.
7187 (FUNCTION_START_OFFSET): Remove.
7188 (BREAKPOINT): Ditto.
7189
7190 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7191
7192 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7193 * NEWS: Ditto.
7194
7195 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7196
7197 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7198 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7199 alpha_linux_pc_in_sigtramp.
7200 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7201 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7202 alpha_osf1_pc_in_sigtramp.
7203 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7204 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7205 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7206 alphafbsd_pc_in_sigtramp.
7207 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7208 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7209 alphanbsd_pc_in_sigtramp.
7210 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7211 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7212
7213 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7214
7215 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7216
7217 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7218
7219 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7220 alphanbsd-tdep.c.
7221 (alphanbsd-nat.o): New dependency list.
7222 (alphanbsd-tdep.o): Ditto.
7223 * NEWS: Note new native NetBSD/alpha configuration.
7224 * alphanbsd-nat.c: New file.
7225 * alphanbsd-tdep.c: Ditto.
7226 * configure.host (alpha*-*-netbsd*): New host.
7227 * configure.tgt (alpha*-*-netbsd*): New target.
7228 * config/alpha/nbsd.mh: New file.
7229 * config/alpha/nbsd.mt: Ditto.
7230 * config/alpha/nm-nbsd.h: Ditto.
7231 * config/alpha/tm-nbsd.h: Ditto.
7232
7233 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7234
7235 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7236 (alpha-osf1-tdep.o): New dependency list.
7237 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7238 and skip_sigtramp_frame members.
7239 * alpha-linux-tdep.c: Include gdbcore.h.
7240 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7241 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7242 * alpha-osf1-tdep.c: New file.
7243 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7244 alpha-osf1-dep.c.
7245 (alpha_frame_past_sigtramp_frame): New function.
7246 (alpha_dynamic_sigtramp_offset): Ditto.
7247 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7248 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7249 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7250 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7251 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7252 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7253 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7254 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7255 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7256 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7257 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7258 to find_solib_trampoline_target.
7259 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7260 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7261 (SKIP_TRAMPOLINE_CODE): Remove.
7262 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7263 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7264 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7265 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7266 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7267 (PROC_SIGTRAMP_MAGIC): Ditto.
7268 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7269 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7270 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7271 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7272 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7273
7274 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7275
7276 * NEWS: Note that Alpha targets are now multi-arch.
7277
7278 2002-04-24 Michael Snyder <msnyder@redhat.com>
7279
7280 * parser-defs.h (prev_lexptr): New external variable.
7281 * parse.c (parse_exp_1): Set prev_lexptr to null before
7282 calling the language-specific parser.
7283 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7284 (yyerror): Use prev_lexptr in error reporting.
7285
7286 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7287
7288 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7289 * gregset.h: If FILL_FPXREGSET is defined, provide
7290 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7291 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7292 is defined, call fill_fpxregset.
7293
7294 2002-04-24 Roland McGrath <roland@frob.com>
7295
7296 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7297 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7298 (supply_gregset, supply_fpregset): New functions.
7299
7300 * gnu-nat.c (gnu_find_memory_regions): New function.
7301 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7302 (gnu_xfer_memory): Add a cast.
7303
7304 2002-04-24 Michael Snyder <msnyder@redhat.com>
7305
7306 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7307 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7308 of argument regs ("str r(0123), [r11, #-nn"]).
7309 (arm_skip_prologue): Better handling for frameless functions.
7310 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7311 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7312
7313 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7314
7315 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7316 NUM_PSEUDO_REGS can be used.
7317
7318 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7319
7320 * arch-utils.h: Update copyright.
7321
7322 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7323 * gdbarch.h, gdbarch.c: Re-generate.
7324
7325 * inferior.h (IN_SIGTRAMP): Delete definition.
7326 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7327 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7328
7329 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7330 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7331 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7332 (find_proc_framesize): Ditto.
7333 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7334 (alpha_init_extra_frame_info): Ditto.
7335 * infrun.c (handle_inferior_event): Ditto.
7336 (handle_inferior_event): Ditto.
7337 (check_sigtramp2): Ditto.
7338 * blockframe.c (create_new_frame): Ditto.
7339 (get_prev_frame): Ditto.
7340 * ppc-linux-tdep.c: Update comments.
7341 * i386-linux-tdep.c: Update comments.
7342 * breakpoint.c (bpstat_what): Update comment.
7343
7344 2002-04-24 David S. Miller <davem@redhat.com>
7345
7346 * i960-tdep.c (register_in_window_p): New function.
7347 (i960_find_saved_register): Use it instead of
7348 REGISTER_IN_WINDOW_P.
7349 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7350
7351 * symtab.h (find_stab_function_addr): Kill extern.
7352 * minsyms.c (find_stab_function_addr): Remove from here...
7353 * dbxread.c: ... to here, and mark it static.
7354
7355 2002-04-20 David S. Miller <davem@redhat.com>
7356
7357 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7358 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7359
7360 2002-04-21 David S. Miller <davem@redhat.com>
7361
7362 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7363 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7364 (vx_write_register): Likewise.
7365
7366 2002-04-23 J. Brobecker <brobecker@gnat.com>
7367
7368 * source.c (is_regular_file): New function.
7369 (openp): Check wether file to open is a regular file
7370 to avoid opening directories.
7371
7372 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7373
7374 * findvar.c (extract_signed_integer): Cast printf argument
7375 to suppress format warning.
7376 (extract_unsigned_integer): Likewise.
7377 * infcmd.c (registers_info): Likewise.
7378 * top.c (get_prompt_1): Likewise.
7379 * valops.c (value_assign): Likewise.
7380 * valprint.c (print_decimal): Likewise.
7381
7382 2002-04-22 H.J. Lu (hjl@gnu.org)
7383
7384 * c-exp.y (typebase): Support
7385
7386 [long|long long|short] [signed|unsigned] [int|]
7387
7388 and
7389
7390 signed [long|long long|short] int
7391
7392 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7393
7394 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7395 and vax-tdep.h.
7396 * vax-tdep.h: New file.
7397 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7398 Make several routines static.
7399 (vax_get_saved_register): New function.
7400 (vax_gdbarch_init): New function.
7401 (_initialize_vax_tdep): Register vax_gdbarch_init.
7402 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7403 Remove macros now under the control of gdbarch.
7404
7405 2002-04-22 Michael Snyder <msnyder@redhat.com>
7406
7407 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7408 Some whitespace and coding standards tweaks.
7409
7410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7411
7412 * vax-tdep.c: Include regcache.h.
7413 (vax_call_dummy_words): New.
7414 (sizeof_vax_call_dummy_words): New.
7415 (vax_fix_call_dummy): New function.
7416 (vax_saved_pc_after_call): Ditto.
7417 * config/vax/tm-vax.h: Don't include regcache.h.
7418 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7419 (CALL_DUMMY): Remove.
7420 (CALL_DUMMY_WORDS): Define.
7421 (SIZEOF_CALL_DUMMY_WORDS): Define.
7422 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7423
7424 2002-04-18 Michael Snyder <msnyder@redhat.com>
7425
7426 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7427
7428 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * vax-tdep.c (vax_frame_chain): New function.
7431 (vax_push_dummy_frame): Ditto.
7432 (vax_pop_frame): Ditto.
7433 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7434 (FRAMELESS_FUNCTION_INVOCATION): Use
7435 generic_frameless_function_invocation_not.
7436 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7437 (POP_FRAME): Use vax_pop_frame.
7438
7439 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * vax-tdep.c (vax_store_struct_return): New function.
7442 (vax_extract_return_value): Ditto.
7443 (vax_store_return_value): Ditto.
7444 (vax_extract_struct_value_address): Ditto.
7445 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7446 vax_store_struct_return.
7447 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7448 (STORE_RETURN_VALUE): Use vax_store_return_value.
7449 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7450
7451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7452
7453 * vax-tdep.c (vax_frame_saved_pc): New function.
7454 (vax_frame_args_address_correct): Ditto.
7455 (vax_frame_args_address): Ditto.
7456 (vax_frame_locals_address): Ditto.
7457 (vax_frame_num_args): Move code to be in proximity to
7458 other frame-related functions.
7459 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7460 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7461 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7462 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7463 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7464
7465 2002-04-22 H.J. Lu (hjl@gnu.org)
7466
7467 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7468 includedir.
7469
7470 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7473 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7474 (FRAME_INIT_SAVED_REGS): New macro.
7475
7476 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7479
7480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7481
7482 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7483 where needed.
7484 (fetch_osf_core_registers): Likewise.
7485 (supply_gregset): Likewise.
7486
7487 2002-04-22 J. Brobecker <brobecker@gnat.com>
7488
7489 * symfile.h (get_section_index): Define.
7490 * symfile.c (get_section_index): New function.
7491 * mdebugread.c (SC_IS_SBSS): New macro.
7492 (SC_IS_BSS): Return true for the scBss storage class only, as
7493 the scSBss storage class refers to the .sbss section.
7494 (parse_partial_symbols): Discard the symbols which associated
7495 section does not exist.
7496 Make sure to use the .sbss section index for symbols which
7497 storage class is scBss, rather than using the .bss section index.
7498
7499 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * vax-tdep.c: Update copyright years.
7502 (vax_register_name): New function.
7503 (vax_register_byte): Ditto.
7504 (vax_register_raw_size): Ditto.
7505 (vax_register_virtual_size): Ditto.
7506 (vax_register_virtual_type): Ditto.
7507 * config/vax/tm-vax.h: Update copyright years.
7508 (REGISTER_NAMES): Remove.
7509 (REGISTER_NAME): Define.
7510 (REGISTER_BYTE): Use vax_register_byte.
7511 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7512 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7513 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7514
7515 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7516
7517 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7518 declaration
7519 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7520
7521 2002-04-21 David S. Miller <davem@redhat.com>
7522
7523 * arch-utils.c (generic_prologue_frameless_p): Kill
7524 SKIP_PROLOGUE_FRAMELESS_P code.
7525 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7526 references.
7527 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7528 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7529 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7530 references.
7531 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7532 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7533 (sparc_gdbarch_init): Pass it to
7534 set_gdbarch_prologue_frameless_p.
7535
7536 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7537
7538 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7539 (alphabsd-nat.o): New dependency list.
7540
7541 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7544 alphafbsd-tdep.c.
7545 (alpha-linux-tdep.o): New dependency list.
7546 (alphafbsd-tdep.o): Likewise.
7547
7548 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7551 to here...
7552 * alpha-tdep.c: ...from here.
7553 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7554
7555 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7556
7557 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7558 prototype from here...
7559 * alpha-tdep.h: ...to here.
7560
7561 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7562
7563 * frame.h (selected_frame_level): Document as deprecated.
7564 (frame_relative_level): Declare.
7565 * stack.c (frame_relative_level): New function.
7566 (selected_frame_level): Document as deprecated.
7567 (select_frame): Do not set the selected_frame_level.
7568
7569 * stack.c (frame_info, record_selected_frame): Update.
7570 (frame_command, current_frame_command): Update.
7571 (up_silently_base, up_command, down_silently_base): Update.
7572 (down_command): Update.
7573 * inflow.c (kill_command): Update.
7574 * tracepoint.c (finish_tfind_command): Update.
7575 * corelow.c (core_open): Update.
7576 * thread.c (info_threads_command): Update.
7577 (do_captured_thread_select): Update.
7578 * infcmd.c (finish_command): Update.
7579 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7580
7581 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7582
7583 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7584
7585 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7586
7587 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7588 type const.
7589
7590 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7591
7592 * alphafbsd-tdep.c: Update copyright years. Include
7593 alpha-tdep.h.
7594 (alphafbsd_use_struct_convention): Make static.
7595 (alphafbsd_init_abi): New function.
7596 (_initialize_alphafbsd_tdep): New function.
7597 * config/alpha/tm-fbsd.h: Update copyright years.
7598 (USE_STRUCT_CONVENTION): Remove.
7599
7600 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7601
7602 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7603 an Alpha ABI variant.
7604 (alpha_abi_handler_list): Declare.
7605 (alpha_gdbarch_register_os_abi): New function.
7606 (alpha_gdbarch_init): Give registered ABI variant handlers a
7607 chance to tweak the gdbarch once we have set up defaults.
7608 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7609
7610 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7611
7612 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7613 to standard_coerce_float_to_double.
7614 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7615
7616 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7617
7618 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7619 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7620 from gdbarch_tdep rather than a constant.
7621 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7622 the default text address for all Alpha Unix ABIs.
7623 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7624 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7625
7626 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * alpha-tdep.h: New file. Includes several Alpha target constants
7629 taken from...
7630 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7631 let gdbarch deal with.
7632 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7633 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7634 to dependency list.
7635 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7636 Alpha target register names.
7637 * alphabsd-nat.c: Likewise.
7638 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7639 Alpha target register names. Make serveral routines static.
7640 (alpha_get_saved_register): New function.
7641 (alpha_abi_names): New.
7642 (process_note_abi_tag_sections): New function.
7643 (get_elfosabi): New function.
7644 (alpha_gdbarch_init): New function.
7645 (alpha_dump_tdep): New function.
7646 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7647
7648 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7649
7650 * frame.c (find_saved_register): Delete #ifdef
7651 HAVE_REGISTER_WINDOWS code.
7652 * config/sparc/tm-sparc.h: Update comments.
7653 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7654
7655 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7656
7657 * i960-tdep.c (i960_find_saved_register): New function.
7658 (i960_get_saved_register): New function.
7659 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7660 (i960_get_saved_register): Declare.
7661 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7662
7663 2002-04-20 David S. Miller <davem@redhat.com>
7664
7665 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7666
7667 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7668
7669 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7670 instead of NUM_PSEUDO_REGS.
7671
7672 2002-04-20 David S. Miller <davem@redhat.com>
7673
7674 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7675 GDB_MULTI_ARCH_PARTIAL
7676 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7677 define, let tm-sp64.h do it.
7678
7679 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7680
7681 * frame.c (find_saved_register): Avoid a NULL pointer
7682 dereference and actually walk the frame list.
7683
7684 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7685
7686 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7687 sorted in most most-recent-used order. Document.
7688 * gdbarch.h, gdbarch.c: Regenerate.
7689
7690 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7691
7692 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7693 instead of ->prev.
7694 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7695 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7696 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7697 instead of ->prev.
7698
7699 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7700
7701 Fix PR gdb/471.
7702 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7703 (build_builtin_type_vec128): Ditto.
7704 (append_composite_type_field): Fix calculation of type length in
7705 union case.
7706
7707 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7708
7709 * config/djgpp/README: Update.
7710
7711 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7712 compiler warnings.
7713
7714 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7715
7716 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7717 (alpha_setup_arbitrary_frame): ...to this.
7718 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7719 for alpha_setup_arbitrary_frame.
7720
7721 2002-04-18 Andrew Cagney <cagney@redhat.com>
7722
7723 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7724 * gdbarch.h, gdbarch.c: Regenerate.
7725
7726 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7727 * target.h (memory_breakpoint_from_pc): Update declaration.
7728 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7729
7730 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7731 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7732 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7733 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7734 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7735 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7736 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7737 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7738 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7739 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7740 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7741 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7742
7743 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7744 const pointer.
7745 * monitor.c (monitor_insert_breakpoint): Ditto.
7746 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7747
7748 * config/mcore/tm-mcore.h: Update copyright.
7749 * mem-break.c: Ditto.
7750 * xstormy16-tdep.c: Ditto.
7751
7752 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7753
7754 * p-exp.y: Add precedence rule for '^' token.
7755 This removes the shift/reduce conflicts.
7756 Remove the comment concerning these shift/reduce conflicts.
7757
7758 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7759
7760 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7761 (registers_powerpc_nofp): New register set for processors
7762 without floating point unit.
7763
7764 2002-04-18 David S. Miller <davem@redhat.com>
7765
7766 * MAINTAINERS: Add myself to write-after-approval.
7767
7768 2002-04-17 Michael Snyder <msnyder@redhat.com>
7769
7770 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7771
7772 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7773
7774 * rs6000-tdep.c (frame_initial_stack_address): Use
7775 frame_register_read to read the alloca_reg.
7776
7777 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7778
7779 * frame.c (find_saved_register): Find saved registers in the next
7780 not prev frame.
7781 Fix PR gdb/365.
7782
7783 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7784
7785 * gdbarch.sh (LANG): Set to ``c''.
7786
7787 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7788
7789 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7790
7791 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7792
7793 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7794 Update copyright.
7795
7796 * hpread.c (hpread_get_lntt): Add declaration.
7797 Also fix PR gdb/391.
7798
7799 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7800
7801 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7802 * aclocal.m4, configure: Re-generate.
7803 Fix PR gdb/391.
7804
7805 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7806
7807 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7808 instead of tm_print_insn.
7809
7810 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7811
7812 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7813
7814 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7815
7816 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7817 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7818 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7819
7820 2002-04-12 Don Howard <dhoward@redhat.com>
7821
7822 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7823 max_user_call_depth.
7824 (init_cmd_lists): Initialize the new value;
7825 * cli/cli-script.c (execute_user_command): Limit the call depth of
7826 user defined commands. This avoids a core-dump when user commands
7827 are infinitly recursive.
7828
7829 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7830
7831 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7832 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7833 from tdep struct instead of DEFAULT_LR_SAVE.
7834 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7835 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7836 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7837
7838 2002-04-12 Michael Snyder <msnyder@redhat.com>
7839
7840 * Remote.c: Spelling fix.
7841 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7842 If no symbol found for "sbrk", try "_sbrk".
7843 (make_output_phdrs): Use bfd_section_name.
7844 (gcore_copy_callback): Use bfd_section_name.
7845 * eval.c: Indentation fix-ups.
7846 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7847 in case it gets applied to an address that is already
7848 in the instruction space.
7849 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7850 * symfile.c: Fix indentation, long lines.
7851 * source.c: White space fix-up.
7852
7853 2002-04-12 Andrew Cagney <cagney@redhat.com>
7854
7855 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7856 * frame.c (frame_register_read): New function. Return non-zero on
7857 success.
7858 (read_relative_register_raw_bytes_for_frame): Delete.
7859 (read_relative_register_raw_bytes): Delete.
7860 * frame.h (frame_register_read): Declare.
7861 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7862 * sh-tdep.c: Ditto.
7863 * infcmd.c (do_registers_info): Ditto.
7864 * hppa-tdep.c: Ditto.
7865 * rs6000-tdep.c: Ditto.
7866 * h8500-tdep.c: Ditto.
7867 * mips-tdep.c: Ditto.
7868 * h8300-tdep.c: Ditto.
7869 * z8k-tdep.c: Ditto.
7870
7871 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7872
7873 From Jimi X <jimix@watson.ibm.com>:
7874 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7875 64-bit SysV ABI.
7876
7877 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7878
7879 From Jimi X <jimix@watson.ibm.com>:
7880 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7881 bfd info.
7882
7883 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7884
7885 From Jimi X <jimix@watson.ibm.com>:
7886 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7887 register sets for these processor variants.
7888
7889 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7890
7891 * regformats/reg-ppc.dat: Support FPSCR.
7892
7893 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7894
7895 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7896 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7897 Add fpscr as an invalid/unfetchable register.
7898 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7899 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7900 (fill_fpregset): Add support for register fpscr.
7901 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7902 (fill_gregset): Account for the fact that register ``mq'' might
7903 not exist.
7904 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7905 (registers_power): Add fpscr to register set at slot 71.
7906 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7907 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7908
7909 2002-04-11 Michael Snyder <msnyder@redhat.com>
7910
7911 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7912 * configure: Regenerate.
7913 * config.in: Regenerate.
7914 * acconfig.h: Add define for _SYSCALL32.
7915 * core-sol2.c: Remove #define _SYSCALL32.
7916 * solib-legacy.c: Remove #define _SYSCALL32.
7917
7918 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7919
7920 * stack.c (select_frame): Cleanup internal error message, do not
7921 use %p.
7922
7923 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7924
7925 * stack.c (select_frame): Check that selected_frame and the
7926 specified level are as expected.
7927 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7928 Update copyright.
7929 * frame.h (struct frame_info): Add field `level'. Update
7930 copyright.
7931 Work-in-progress PR gdb/464.
7932
7933 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7934
7935 * maint.c (maint_print_section_info): Rename print_section_info.
7936 (print_bfd_section_info, print_objfile_section_info): Update.
7937 * inferior.h (struct gdbarch): Add opaque declaration.
7938 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7939 * gdbarch.h: Regenerate.
7940
7941 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7942
7943 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7944 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7945 (kernel_u_size): Added.
7946 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7947 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7948
7949 2002-04-04 Jim Ingham <jingham@apple.com>
7950
7951 * valarith.c (find_size_for_pointer_math): New function, either returns
7952 the size for a pointer's target, returns 1 for void *, or errors for
7953 incomplete types.
7954 (value_add, value_sub): use find_size_for_pointer_math.
7955
7956 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7957
7958 * linux-low.c (linux_look_up_symbols): New hook.
7959 (linux_target_ops): Add linux_look_up_symbols.
7960 * remote-utils.c (decode_address): New function.
7961 (look_up_one_symbol): New function.
7962 * server.c (handle_query): Call target look_up_symbols hook.
7963 * server.h (look_up_one_symbol): Add prototype.
7964 * target.h (struct target_ops): Add look_up_symbols hook.
7965
7966 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7967
7968 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7969 override FP_REGNUM with frame->fp. Update copyright.
7970 * parse.c (num_std_regs, std_regs): Delete.
7971 (target_map_name_to_register): Do not search std_regs. Update
7972 function description.
7973 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7974 declarations. Update copyright.
7975 Fix PR gdb/251.
7976
7977 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7978
7979 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7980 after the last symbol in a block.
7981
7982 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7983
7984 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7985 is non zero as a found symbol.
7986
7987 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7988
7989 * findvar.c: Include "builtin-regs.h".
7990 (value_of_register): Call value_of_builtin_reg when applicable.
7991 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7992 (target_map_name_to_register): Call
7993 builtin_reg_map_name_to_regnum.
7994 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7995 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7996 (builtin_regs_h): Define.
7997 (builtin-regs.o): New target.
7998 (findvar.o): Add $(builtin_regs_h).
7999 * builtin-regs.c, builtin-regs.h: New files.
8000 * std-regs.c: New file.
8001 Partial fix for PR gdb/251.
8002
8003 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8004
8005 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8006 it's no longer required.
8007
8008 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8009
8010 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8011
8012 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8013
8014 From Jimi X <jimix@watson.ibm.com>:
8015 * rs6000-tdep.c (rs6000_software_single_step): Use
8016 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8017 and size. Use target_insert_breakpoint() and
8018 target_remove_breakpoint() to insert and remove breakpoints
8019 instead of explicit memory reads and writes.
8020
8021 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8022
8023 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8024 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8025 ELF_OBJECT_FORMAT ifdef.
8026
8027 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8028
8029 From Jimi X <jimix@watson.ibm.com>:
8030 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8031
8032 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8033
8034 From Jimi X <jimix@watson.ibm.com>:
8035 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8036 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8037
8038 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8039
8040 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8041 s/asprintf/xasprintf/.
8042 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8043
8044 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8045
8046 I believe Jeff Law denies responsability for this one:
8047 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8048 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8049 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8050 Work-around for PR gdb/366.
8051
8052 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8053
8054 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8055 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8056 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8057
8058 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8059
8060 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8061 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8062 information.
8063
8064 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8065
8066 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8067 maintainer.
8068
8069 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8070
8071 * README (Reporting Bugs in GDB): Document the bug web page as the
8072 prefered way of submitting bugs.
8073 Fix PR gdb/402.
8074
8075 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8076
8077 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8078 -1. Update comment.
8079 * gdbarch.h, gdbarch.c: Re-generate.
8080
8081 2002-04-07 Andreas Schwab <schwab@suse.de>
8082
8083 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8084 buffer to regcache_collect.
8085
8086 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8087
8088 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8089 * gdbarch.c, gdbarch.h: Re-generate.
8090
8091 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8092
8093 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8094 declaration. Fix -Werror.
8095
8096 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8097
8098 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8099 * gdbarch.c: Regenerate.
8100
8101 2002-04-05 Michael Snyder <msnyder@redhat.com>
8102
8103 * breakpoint.c (clear_command): Rewrite middle section to
8104 combine two loops with identical control conditions.
8105 Add a cleanup to eliminate a memory leak.
8106 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8107
8108 2002-04-05 H.J. Lu (hjl@gnu.org)
8109
8110 * solib-svr4.c (bkpt_names): Add "__start".
8111
8112 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8113
8114 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8115 as test for 64 bit target.
8116
8117 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8118
8119 * h8500-tdep.c (h8500_write_fp): Delete function.
8120 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8121 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8122 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8124 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8125 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8126 (s390_write_fp):
8127 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8128 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8129 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8130 (d10v_write_fp): Delete function.
8131 * inferior.h (write_fp, generic_target_write_fp): Delete
8132 declarations.
8133 * regcache.c (generic_target_write_fp): Delete function.
8134 (write_fp): Delete function.
8135 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8136 * gdbarch.h, gdbarch.c: Regenerate.
8137 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8138 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8139 (sparc64_write_fp): Delete declaration.
8140 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8141 (h8500_write_fp): Delete declaration.
8142
8143 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8144
8145 * sparc-tdep.c (sparc64_write_fp): Delete.
8146 (sparc_push_dummy_frame): Replace write_fp call with code to store
8147 the FP directly.
8148 (sparc_gdbarch_init): Do not initialize write_fp.
8149
8150 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8151
8152 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8153 clause.
8154
8155 2002-03-29 Jim Blandy <jimb@redhat.com>
8156
8157 * stack.c (get_selected_block): Add new argument `addr_in_block',
8158 used to return the exact code address we used to select the block,
8159 not just the block.
8160 * blockframe.c (get_frame_block, get_current_block): Same.
8161 * frame.h (get_frame_block, get_current_block,
8162 get_selected_block): Update declarations.
8163 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8164 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8165
8166 2002-04-05 Michael Snyder <msnyder@redhat.com>
8167
8168 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8169 warning message.
8170
8171 2002-04-05 J. Brobecker <brobecker@gnat.com>
8172
8173 * utils.c (xfullpath): New function.
8174 * defs.h (xfullpath): Add declaration.
8175 * source.c (openp): Use xfullpath in place of gdb_realpath to
8176 avoid resolving the basename part of filenames when the
8177 associated file is a symbolic link. This fixes a potential
8178 inconsistency between the filenames known to GDB and the
8179 filenames it prints in the annotations.
8180 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8181 to be able to match a filename with either the real filename, or
8182 the name of any symbolic link to this file.
8183 (lookup_partial_symtab): Ditto.
8184
8185 2002-04-04 Michael Snyder <msnyder@redhat.com>
8186
8187 * breakpoint.c: Add support for hardware breakpoints in overlays.
8188 (overlay_events_enabled): New state variable.
8189 (insert_breakpoints): Use overlay_events_enabled to decide
8190 whether to attempt to set a breakpoint at the overlay load addr.
8191 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8192 (remove_breakpoint): Use overlay_events_enabled to decide
8193 whether breakpoints need to be removed from overlay load addr.
8194 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8195 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8196 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8197 disable_overlay_breakpoints): Update overlay_events_enabled.
8198
8199 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8200
8201 * dwarf2read.c (struct function_range): New.
8202 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8203 (check_cu_functions): New.
8204 (read_file_scope): Initialize global function lists.
8205 Call dwarf_decode_line after processing children.
8206 (read_func_scope): Add to global function list.
8207 (dwarf_decode_lines): Call check_cu_functions everywhere
8208 record_line is called. Call record_line with a linenumber
8209 of 0 to mark sequence ends.
8210
8211 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8212
8213 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8214 change sync with glibc.
8215
8216 2002-04-03 Jim Blandy <jimb@redhat.com>
8217
8218 * configure.in: Call AC_C_INLINE.
8219 * configure: Regenerated.
8220
8221 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8224 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8225
8226 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8227
8228 * NEWS: Mention gcore support on FreeBSD/i386.
8229
8230 * fbsd-proc.c: New file.
8231 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8232 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8233
8234 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8235 while statement.
8236
8237 2002-03-29 Jim Blandy <jimb@redhat.com>
8238
8239 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8240 unescaped newlines in string literals, but newer ones don't. So
8241 escape them.
8242
8243 2002-03-26 Michael Snyder <msnyder@redhat.com>
8244 Andrew Cagney <cagney@redhat.com>
8245
8246 * cli/cli-dump.c: New file. Dump memory to file,
8247 restore file to memory.
8248 * cli/cli-dump.h: New file.
8249 * Makefile.in: Add rules, dependencies for cli-dump.o.
8250 * NEWS: Mention new commands.
8251
8252 2002-03-28 Michael Snyder <msnyder@redhat.com>
8253
8254 * symfile.c (symbol_file_add): Move test for null symbols to later.
8255
8256 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8257
8258 From veksler at il.ibm.com:
8259 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8260 the xstrduped original path.
8261 Fix PR gdb/417.
8262
8263 2002-03-27 Michael Snyder <msnyder@redhat.com>
8264
8265 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8266 * infcmd.c (_initialize_infcmd): Ditto.
8267 * language.c (_initialize_language): Ditto.
8268 * symfile.c (_initialize_symfile): Ditto.
8269 * top.c (_init_main): Ditto.
8270 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8271
8272 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8273
8274 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8275 vector registers handling.
8276 (skip_prologue): Handle new AltiVec instructions. Fill in new
8277 fields of frame data.
8278 (frame_get_saved_regs): Fill in information for AltiVec registers.
8279
8280 2002-03-27 Jim Blandy <jimb@redhat.com>
8281
8282 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8283 a function; leave this macro here to invoke that function.
8284 (symbol_init_mangled_name): Declaration for that function.
8285 * symtab.c (symbol_init_mangled_name): New function.
8286
8287 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8288
8289 * valarith.c: Replace strerror with safe_strerror.
8290 * tracepoint.c: Ditto.
8291 * lin-lwp.c: Ditto.
8292 * go32-nat.c: Ditto.
8293 * inflow.c: Ditto.
8294 * gnu-nat.c: Ditto.
8295
8296 2002-03-27 Andreas Schwab <schwab@suse.de>
8297
8298 * event-top.c (command_line_handler): Remove useless if.
8299
8300 2002-03-27 Andreas Jaeger <aj@suse.de>
8301
8302 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8303 comment.
8304
8305 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8306
8307 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8308 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8309 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8310 (x86_64_linux_dr_get_status, supply_gregset),
8311 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8312 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8313 (x86_64_register_info_table): Add.
8314 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8315 (x86_64_register_raw_size, x86_64_register_virtual_type),
8316 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8317 general x86_64_register_info_table.
8318 (i386_gdbarch_init): gdbarch_register_bytes is now set
8319 dynamicaly during initialization.
8320 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8321 * gdbserver/linux-x86-64-low.c: Ditto.
8322
8323 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8324
8325 * gdbserver/server.c (main): Call target_signal_to_host_p
8326 and target_signal_to_host on signals received from the remote.
8327 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8328 target_signal_from_host on signals sent to the remote.
8329 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8330 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8331
8332 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8333
8334 * signals/signals.c: Include "server.h" in gdbserver build.
8335 (target_signal_from_name): Don't use STREQ.
8336 (_initialize_signals): Likewise. Don't include function in
8337 gdbserver build.
8338
8339 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8340
8341 * signals.c: Moved to...
8342 * signals/signals.c: Here.
8343 * Makefile (signals.o): Update.
8344
8345 2002-03-26 Jeff Law (law@redhat.com)
8346
8347 * somread.c (som_symtab_read): Remove some commented out code and
8348 updated related comments. Do not set the minimal symbol table to
8349 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8350 in a dynamic executable.
8351 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8352 where we are unable to find the minimal symbol for the given
8353 PC value.
8354
8355 2002-03-25 Jeff Law (law@redhat.com)
8356
8357 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8358
8359 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8360
8361 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8362
8363 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8364
8365 * command.h: Update copyright.
8366 (struct cmd_list_element): Replace definition with opaque
8367 declaration.
8368 (enum cmd_types): Document that it will eventually be moved to
8369 cli/cli-decode.h
8370 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8371 (MALLOCED_REPLACEMENT): Delete macro.
8372 * Makefile.in (cli_decode_h): Add $(command_h).
8373 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8374 * top.c: Include "cli/cli-decode.h".
8375 * completer.c: Include "cli/cli-decode.h".
8376 * maint.c: Include "cli/cli-decode.h".
8377 * cli/cli-decode.h: Include "command.h".
8378 (enum command_class): Delete.
8379 (enum cmd_types): Comment out.
8380 (enum cmd_auto_boolean): Delete.
8381 (enum var_types): Delete.
8382
8383 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8384
8385 * cli/cli-decode.c: Include "gdb_assert.h".
8386 (add_set_or_show_cmd): New static function.
8387 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8388 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8389 all fields, such as func, from the set command.
8390
8391 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8392
8393 * MAINTAINERS (sh-elf): Change warning flag to -w.
8394
8395 2002-03-23 Andrew Cagney <cagney@redhat.com>
8396
8397 * defs.h (error): Add printf format attribute.
8398 * thread-db.c (thread_from_lwp): Fix error format string.
8399 * stack.c (parse_frame_specification): Ditto.
8400 * cli/cli-decode.c (undef_cmd_error): Ditto.
8401 * scm-lang.c (scm_lookup_name): Ditto.
8402 * tracepoint.c (trace_error): Ditto.
8403 * remote-utils.c (usage): Ditto.
8404 * remote.c (compare_sections_command): Ditto.
8405 Fix PR gdb/328.
8406
8407 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8408
8409 * gdbtypes.c (append_composite_type_field): New function.
8410 (init_composite_type): New function.
8411 * gdbtypes.h (append_composite_type_field): Declare.
8412 (init_composite_type): Ditto.
8413
8414 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8415
8416 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8417 function.
8418 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8419 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8420 structure returning convention for SYSV ABI case, but not
8421 for GNU/Linux, FreeBSD, or NetBSD.
8422
8423 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * symtab.h (lookup_block_symbol): Add mangled_name argument
8426 to prototype.
8427
8428 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8429 with new mangled_name argument.
8430 * linespec.c (decode_line_1): Likewise.
8431 * valops (value_of_this): Likewise.
8432 * symtab.c (lookup_transparent_type): Likewise.
8433 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8434 (lookup_symbol): If we are given a mangled name, pass it down
8435 to lookup_symbol_aux.
8436 (lookup_block_symbol): If we are given a mangled name to check
8437 against, only return symbols which match it.
8438
8439 2002-03-22 Christopher Faylor <cgf@redhat.com>
8440
8441 * win32-nat.c (child_create_inferior): Check for proper shell to use
8442 here, in case the user changes it on the fly.
8443 (_initialize_inftarg): Remove shell path considerations.
8444
8445 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8446
8447 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8448 for gdbarch_max_register_raw_size and max_register_virtual_size.
8449 Adjust copyright year.
8450
8451 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8452
8453 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8454 in a function to cover the entire beginning of the function
8455 as well if it does not already.
8456
8457 2002-03-21 Tom Rix <trix@redhat.com>
8458
8459 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8460 (rs6000_ptrace64): Renamed from ptrace64.
8461
8462 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8463
8464 * gdbserver/remote-utils.c (remote_open): Don't call
8465 getprotobyname, we're all using TCP here so just use
8466 IPPROTO_TCP.
8467 * gdbserver/gdbreplay.c (remote_open): Ditto.
8468
8469 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8470
8471 * regcache.c (_initialize_regcache): No need to call
8472 build_regcache() at this time; it gets called whenever
8473 the gdbarch changes.
8474
8475 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8476
8477 * sparc-nat.c: Include sys/param.h where possible.
8478
8479 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8480
8481 Fix PR gdb/422.
8482 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8483 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8484 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8485 complex types.
8486 * stabsread.c (rs6000_builtin_type): Likewise.
8487 (read_sun_floating_type): Likewise.
8488
8489 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8490
8491 * stabsread.c (read_member_functions): Remove skip code for duplicate
8492 constructor/destructor methods. Use standard parsing for these
8493 methods and just do not chain them to the list of methods after
8494 parsing.
8495
8496 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8497
8498 * coffread.c: Remove redundant static declarations. Replace
8499 occurrences of `PTR' with `void *'.
8500 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8501 * top.h (quit_cover): Likewise.
8502 * defs.h (catch_errors): Likewise.
8503
8504 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8505
8506 * defs.h (XMALLOC): Define.
8507 * gdb-events.sh (XMALLOC): Delete macro.
8508 * gdb-events.c, gdb-events.h: Regenerate.
8509 * gdbarch.sh (XMALLOC): Delete macro.
8510 * gdbarch.c: Regenerate.
8511 * serial.c (XMALLOC): Delete macro.
8512 * ui-file.c (XMALLOC): Ditto.
8513 * ser-unix.h (XMALLOC): Ditto.
8514 * sh-tdep.c (XMALLOC): Ditto.
8515 * ui-out.c (XMALLOC): Ditto.
8516 * utils.c (XMALLOC): Ditto.
8517 * i386-tdep.c (XMALLOC): Ditto.
8518 * gdb-events.c (XMALLOC): Ditto.
8519 * d10v-tdep.c (XMALLOC): Ditto.
8520 * cli-out.c (XMALLOC): Ditto.
8521
8522 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8523 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8524 * ui-file.c, ui-out.c: Ditto.
8525
8526 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8527
8528 * command.h (struct cmd_list_element): Add field context.
8529 (set_cmd_context, get_cmd_context): Declare.
8530 * cli/cli-decode.h: Ditto.
8531 * cli/cli-decode.c (get_cmd_context): New function.
8532 (set_cmd_context): New function.
8533 (add_cmd): Initialize context.
8534 Part of fixing PR gdb/145 and PR gdb/146.
8535
8536 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8537
8538 * cli/cli-decode.c (cmd_type): New function.
8539 * command.h (cmd_type): Declare.
8540 * infrun.c (set_schedlock_func): Call function cmd_type.
8541 * kod.c (kod_set_os): Call cmd_type.
8542 * cris-tdep.c (cris_version_update): Use function cmd_type.
8543 (cris_mode_update, cris_abi_update): Ditto.
8544
8545 * command.h: (execute_cmd_post_hook): Declare.
8546 (execute_cmd_pre_hook): Declare.
8547 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8548 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8549 functions. Execute pre/post hook while ensuring that afterwords
8550 hook_in is cleared.
8551 * top.c (execute_command): Use execute_cmd_post_hook, and
8552 execute_cmd_pre_hook to execute pre/post commands.
8553 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8554 hook_stop_stub.
8555 (hook_stop_stub): Call execute_cmd_pre_hook.
8556
8557 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8558
8559 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8560 set'' and this leads to a core dump. Move xstrdup of
8561 operating_system to after check that it is not NULL.
8562
8563 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8564
8565 * kod.c (kod_set_os): Remove unnecessary check that
8566 ``command->type'' is set_cmd.
8567
8568 * valprint.c (set_input_radix): Use input_radix.
8569 (set_output_radix): Use output_radix.
8570 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8571 isn't reverted.
8572
8573 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8574
8575 * value.h (struct value): Delete field ``substring_addr''. Change
8576 aligner fields to force_doublest_align, force_longest_align,
8577 force_core_addr_align and force_pointer_aligh.
8578
8579 * value.h (struct value): Fix typo in above change.
8580
8581 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8582
8583 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8584 to fix internal_error from ``maintenance print architecture''.
8585
8586 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8587
8588 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8589 for gcc versions after gcc-2.8.1.
8590
8591 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8592
8593 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8594 for method resolution. Restore adjustment of ``this'' pointer after
8595 calling value_struct_elt, which was accidentally removed during the
8596 HP merge.
8597
8598 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8599
8600 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8601 value_of_register.
8602 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8603 get_saved_register.
8604 * value.h (value_of_register): Update.
8605
8606 2002-03-14 Richard Henderson <rth@redhat.com>
8607
8608 * configure.in: Detect declaration for canonicalize_file_name.
8609 * utils.c (canonicalize_file_name): Declare, if needed.
8610 (gdb_realpath): Prefer realpath if available and usable.
8611 * config.in, configure: Rebuild.
8612
8613 2002-03-14 Richard Henderson <rth@redhat.com>
8614
8615 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8616 a constant array bound.
8617
8618 * MAINTAINERS: Add myself to write-after-approval.
8619
8620 2002-03-14 Michael Snyder <msnyder@redhat.com>
8621
8622 * symfile.c (syms_from_objfile): Return immediately if no syms.
8623 (symbol_file_add): Return immediately if no syms.
8624 (find_sym_fns): Return immediately if no syms.
8625
8626 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8627
8628 * gdbserver/remote-util.c (remote_open): Print remote-side's
8629 IP address when remote debugging over the network.
8630
8631 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8632
8633 * config/sparc/fbsd.mh: Fix copyright.
8634 * config/sparc/fbsd.mt: Likewise.
8635
8636 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8637
8638 * MAINTAINERS: Fix typo in name of gdb warnings option.
8639 (x86-64): Fix formating so that this can be parsed by awk.
8640
8641 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8642
8643 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8644 * defs.h: Include "gdb/signals.h".
8645 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8646
8647 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8648
8649 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8650 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8651 from x86-64-tdep.h
8652
8653 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8654 Don Howard <dhoward@redhat.com>
8655
8656 * mips-tdep.c (ST0_FR): Define.
8657 (mips2_fp_compat): New function, temporarily disabled.
8658 (mips_read_fp_register_single): New function.
8659 (mips_read_fp_register_double): New function.
8660 (mips_print_register): Use them.
8661 (do_fp_register_row): Likewise.
8662
8663 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8664
8665 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8666 approval''.
8667
8668 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8669
8670 * stabsread.c (read_member_functions): Fix is_stub test for
8671 static member functions, improve comment.
8672
8673 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8674
8675 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8676 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8677 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8678 commands that set boolean values.
8679 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8680 (arm_rdi_resume): Always initialize PC.
8681 (arm_rdi_open): Don't use rslt as a boolean.
8682 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8683 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8684 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8685 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8686
8687 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8688
8689 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8690 * configure: Rebuilt.
8691
8692 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8693
8694 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8695 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8696
8697 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8698
8699 * cli/cli-decode.c (set_cmd_completer): New function.
8700 * command.h (set_cmd_completer): Declare.
8701 * cli/cli-decode.h (set_cmd_completer): Ditto.
8702
8703 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8704 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8705 * win32-nat.c (_initialize_inftarg): Ditto.
8706 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8707 * proc-api.c (_initialize_proc_api): Ditto.
8708 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8709 * source.c (_initialize_source): Ditto.
8710 * exec.c (_initialize_exec): Ditto.
8711 * solib.c (_initialize_solib): Ditto.
8712 * top.c (init_main): Ditto.
8713 * tracepoint.c (_initialize_tracepoint): Ditto.
8714 * symfile.c (_initialize_symfile): Ditto.
8715 * printcmd.c (_initialize_printcmd): Ditto.
8716 * infcmd.c (_initialize_infcmd): Ditto.
8717 * corefile.c (_initialize_core): Ditto.
8718
8719 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8720
8721 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8722
8723 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8724
8725 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8726
8727 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8728
8729 * NEWS: Update headings, 5.2 has branched.
8730
8731 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8734 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8735 (register_addr, REGISTER_RAW_SIZE): Likewise.
8736 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8737 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8738
8739 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8740
8741 * MAINTAINERS (x86-64): Add myself.
8742 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8743 changed value_ptr -> struct value *
8744
8745 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8746
8747 * configure.host (sparc64-*-freebsd): Add.
8748 * configure.tgt: Likewise.
8749 * config/sparc/fbsd.mh: New file.
8750 * config/sparc/fbsd.mt: Likewise.
8751 * config/sparc/nm-fbsd.h: Likewise.
8752 * config/sparc/tm-fbsd.h: Likewise.
8753
8754 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8755
8756 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8757 regformats/reg-s390x.dat.
8758
8759 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8760
8761 * utils.c: Add FIXME explaining true/false problem.
8762
8763 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8764
8765 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8766
8767 2002-02-28 Michael Chastain <mec@shout.net>
8768
8769 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8770
8771 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * gdbserver/linux-s390-low.c: New file.
8774 * regformats/reg-s390.dat: New file.
8775 * regformats/reg-s390x.dat: New file.
8776 * gdbserver/configure.srv: Add S/390.
8777 * gdbserver/Makefile.in: Add S/390.
8778 * configure.tgt: Enable gdbserver for S/390.
8779
8780 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8781
8782 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8783 first line of the doc string for "info dos", except at the end of
8784 the sentence, since the short help stops at the first period.
8785
8786 2002-02-28 Jason Merrill <jason@redhat.com>
8787
8788 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8789
8790 2002-02-27 Fred Fish <fnf@redhat.com>
8791
8792 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8793 comment (dumy -> dummy).
8794
8795 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8796
8797 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8798
8799 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8800
8801 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8802
8803 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8804
8805 * gdbserver/acconfig.h: New file.
8806 * gdbserver/i387-fp.c: New file.
8807 * gdbserver/i387-fp.h: New file.
8808 * gdbserver/linux-x86-64.c: New file.
8809 * regformats/reg-x86-64.dat: New file.
8810 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8811 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8812 * gdbserver/configure.in: Add support for regsets.
8813 * gdbserver/config.in: Regenerate.
8814 * gdbserver/configure: Regenerate.
8815 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8816 * gdbserver/linux-low.h: New file.
8817 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8818 for regsets.
8819 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8820 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8821 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8822 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8823 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8824 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8825 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8826 "i387-fp.h". Add PTRACE_GETREGS and friends.
8827 * gdbserver/regcache.c (supply_register): New function.
8828 (supply_register_by_name): New function.
8829 (collect_register): New function.
8830 (collect_register_by_name): New function.
8831
8832 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8833
8834 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8835 (config.status): Add configure.srv dependency.
8836 (server_h): Add config.h dependency.
8837
8838 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8839
8840 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8841 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8842 * gdbserver/configure.srv: Change i386-*-linux* to use
8843 reg-i386-linux.o.
8844
8845 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8846
8847 * x86-64-tdep.c: Re-indent. Update copyright date.
8848
8849 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8850
8851 From Michal Ludvig <mludvig@suse.cz>:
8852 * x86-64-tdep.c (value.h): Delete.
8853 (gdb_assert.h): Include.
8854 (x86_64_register_convert_to_virtual,
8855 x86_64_register_convert_to_raw ): Add check which lets only
8856 floating-point values to be converted.
8857 (value_push): Delete.
8858 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8859 (i386_gdbarch_init): Number of register_bytes fixed.
8860
8861 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8862
8863 * MAINTAINERS: Add x86-64 target.
8864
8865 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8866
8867 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8868 * osfsolib.c (solib_map_sections): Ditto.
8869 * irix5-nat.c (solib_map_sections): Ditto.
8870 * corelow.c (gdb_check_format): Ditto.
8871 * symfile.c (symfile_bfd_open): Ditto.
8872 * solib.c (solib_map_sections): Ditto.
8873 Fix PR gdb/354.
8874
8875 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8876
8877 * remote.c (_initialize_remote): By default, disable ``e'' and
8878 ``E'' step out-of-range packets.
8879
8880 2002-02-26 Andreas Schwab <schwab@suse.de>
8881
8882 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8883 m68k_linux_frame_saved_pc.
8884 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8885 in_sigtramp.
8886 (SIGCONTEXT_PC_OFFSET): Remove.
8887 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8888 m68k_linux_sigtramp_saved_pc): New functions.
8889 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8890 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8891 (UCONTEXT_PC_OFFSET): Define.
8892 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8893 non-RT and RT signal trampolines.
8894
8895 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8896
8897 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8898 (TARGET_NBPG, STACK_END_ADDR): Delete
8899 (VARIABLES_INSIDE_BLOCK): Delete.
8900
8901 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8902
8903 * utils.c (perror_with_name): Make string parameter constant.
8904 (print_sys_errmsg): Ditto.
8905 (query): Ditto.
8906 * defs.h (perror_with_name): Update.
8907 (print_sys_errmsg): Update.
8908 (query): Update.
8909
8910 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8911
8912 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8913 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8914
8915 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8916
8917 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8918 if it already matches the current architecture from the exec file.
8919 Include arch-utils.h for gdbarch_info_init prototype.
8920 * Makefile.in (rs6000-nat.o): Update dependencies.
8921
8922 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8923
8924 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8925 list of exported variables.
8926
8927 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * gdbserver/configure.srv: New file.
8930 * gdbserver/configure.in: Use configure.srv instead
8931 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8932 from it.
8933 * gdbserver/configure: Regenerated.
8934 * gdbserver/terminal.h: New file.
8935 * gdbserver/Makefile.in: Update for configure changes. Remove
8936 more unneeded include paths.
8937
8938 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8939
8940 From wiz at danbala:
8941 * config/sparc/tm-sp64.h: Fix grammar and typos.
8942 Fix PR gdb/287.
8943
8944 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8945
8946 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8947 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8948 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8949 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8950 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8951 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8952 * s390-tdep.c: Ditto.
8953 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8954 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8955 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8956 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8957 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8958 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8959 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8960 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8961 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8962 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8963 Fix PR gdb/378.
8964
8965 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8966
8967 * lin-thread.c: Delete file.
8968 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8969 to gdb_proc_service.h.
8970 * configure: Re-generate.
8971
8972 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8973 * serial.c (serial_open): Delete check for "ocd".
8974 Fix PR gdb/349.
8975
8976 * Makefile.in (linux-thread.o): Delete target.
8977 * linux-thread.c: Delete file.
8978
8979 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8980 renamed SH files to be consistent.
8981
8982 * symtab.c (sort_search_symbols): Use xfree.
8983
8984 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8985
8986 * arm-linux-tdep.c (arm_linux_init_abi): Register
8987 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8988 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8989 definition with undef, since we don't want the sysvr4 definition.
8990 (SKIP_TRAMPOLINE_CODE): Likewise.
8991
8992 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8993
8994 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8995
8996 * configure.in: (AC_CHECK_FUNCS) Added test for
8997 canonicalize_file_name Regenerated.
8998 * config.in, configure: Regenerated.
8999 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9000 defined use canonicalize_file_name.
9001
9002 2002-02-23 Michael Chastain <mec@shout.net>
9003
9004 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9005
9006 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9007
9008 * README: Remove references to cygnus.com.
9009 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9010 dot com'' form. Remove references to cygnus.com and sourceware.
9011
9012 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9013
9014 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9015 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9016 1003.1-2001 no longer allows "head -1".
9017 * gdb/Makefile.in (version.c): Likewise.
9018 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9019 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9020 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9021
9022 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9023
9024 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9025 * command.h (cmd_cfunc_eq): Declare.
9026 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9027
9028 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9029 ``struct cmd_list_element *''.
9030 * cli/cli-cmds.c (is_complete_command): Update. Use
9031 cmd_cfunc_eq.
9032 * top.c (execute_command): Pass the command to
9033 is_complete_command.
9034 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9035
9036 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9037
9038 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9039 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9040 architecture defines.
9041 * s390-tdep.c (s390_gdbarch_init): Likewise.
9042
9043 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9044
9045 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9046 (arm_linux_push_arguments): Likewise.
9047 (arm_linux_init_abi): Register them. Also register linux-specific
9048 call_dummy_words.
9049 (find_minsym_and_objfile): Use strcmp, not STREQ.
9050 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9051 (arm_linux_call_dummy_words): Delete declaration.
9052 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9053 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9054 declarations.
9055 (LOWEST_PC): Delete.
9056
9057 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9058
9059 * maint.c (print_section_info): Do not prepend `0x' to filepos
9060 output, it will be handled by local_hex_string_custom.
9061
9062 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9063
9064 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9065 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9066 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9067
9068 2002-02-22 Jim Blandy <jimb@redhat.com>
9069
9070 Indicate that the bcache functions don't change the strings
9071 they're passed.
9072 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9073 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9074
9075 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9076
9077 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9078
9079 2002-02-21 Christopher Faylor <cgf@redhat.com>
9080
9081 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9082 find the complete path to a loaded DLL.
9083
9084 2002-02-21 Fred Fish <fnf@redhat.com>
9085
9086 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9087 that marks the end of the range of a function, enter a line number
9088 entry that has a line number of zero and a PC offset that matches
9089 the end of the function. This starts a range of PC's for which no
9090 line number information is known.
9091 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9092 PC's for which no line number info is found (line number is zero)
9093 then we didn't find any valid line information.
9094 * symtab.h: Document use of zero line number entry.
9095
9096 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9097
9098 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9099 (have_ptrace_getvrregs): Define for run time checks.
9100 (gdb_vrregset_t): New type for Altivec register handling.
9101 (fetch_register, store_register): Fetch/store altivec register
9102 when needed.
9103 (fetch_altivec_register, store_altivec_register): New functions.
9104 (supply_vrregset, fill_vrregset): New functions.
9105 (fetch_altivec_registers, store_altivec_registers): New functions.
9106 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9107 registers as well.
9108
9109 2002-02-21 Jiri Smid <smid@suse.cz>
9110
9111 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9112
9113 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9114
9115 * Makefile.in (armnbsd-nat.o): Update dependencies.
9116 * armnbsd-nat.c (supply_gregset): New function. Common code to
9117 supply the integer register set.
9118 (supply_fparegset): New function. Similar for FPA registers.
9119 (fetch_regs, fetch_fp_regs): Use them.
9120 (fetch_core_registers): Likewise.
9121 (fetch_elfcore_registers): New function.
9122 (arm_netbsd_elfcore_fns): New core-file type specification.
9123 (_initialize_arm_netbsd_nat): Register it.
9124
9125 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9126
9127 * armnbsd-nat.c: Include gdbcore.h.
9128 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9129 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9130 'void' to declaration, to shut up ARI.
9131 (fetch_core_registers): Make static. Rewrite using supply_register.
9132 (arm_netbsd_core_fns): New core-file type specification.
9133 (_initialize_arm_netbsd_nat): New function.
9134
9135 2002-02-21 Christopher Faylor <cgf@redhat.com>
9136
9137 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9138 value.
9139
9140 2002-02-20 Christopher Faylor <cgf@redhat.com>
9141
9142 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9143 fails.
9144
9145 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9146
9147 * jv-exp.y (parse_number): Change type of implicit longs
9148 to builtin_type_uint64.
9149
9150 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9153 to be an integer instead of a `union wait'.
9154
9155 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9156
9157 * mips-linux-nat.c: Call the operating system GNU/Linux.
9158 * mips-linux-tdep.c: Likewise.
9159 * mips-tdep.c: Likewise.
9160
9161 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9162
9163 Fix PR gdb/265.
9164 * jv-exp.y (parse_number): Handle 64-bit integers.
9165
9166 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9167
9168 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9169 AC_STDC_HEADERS to AC_HEADER_STDC.
9170 * gdbserver/configure: Regenerated.
9171
9172 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9173
9174 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9175 is defined.
9176 * sparc-tdep.c (get_longjmp_target): Likewise.
9177
9178 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9179
9180 * News: Add news about ARM and Multi-arch. Mention the new target
9181 arm*-*-netbsd*.
9182
9183 2002-02-19 Jim Blandy <jimb@redhat.com>
9184
9185 * stabsread.c (error_type_complaint): Improve error message.
9186
9187 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * gdbserver/README: Update documentation.
9190 * gdbserver/configure.in: Update configury to match documentation.
9191 * gdbserver/Makefile.in: Likewise.
9192 * gdbserver/configure: Regenerated.
9193 * gdbserver/aclocal.m4: New file, generated by aclocal.
9194 * gdbserver/config.in: New file, generated by autoheader.
9195
9196 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9197
9198 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9199 armnbsd-nat.c.
9200
9201 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * arm-tdep.h (enum arm_float_model): New enum.
9204 (struct gdbarch_tdep): Add fp_model.
9205 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9206 up floating-point conversions until we know the floating-point model
9207 in use by the inferior. Don't complain about being unable to
9208 determine the ABI of the inferior when we don't have one.
9209 (arm_extract_return_value): Support different floating-point models.
9210 (arm_store_return_value): Likewise.
9211 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9212 ARM_FLOAT_SOFT.
9213 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9214
9215 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9216
9217 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9218 of ``current_gdbarch''.
9219
9220 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9221
9222 * armnbsd-nat.c : ANSIfy all function declarations.
9223 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9224 (fetch_inferior_registers): Re-implement in terms of above.
9225 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9226 (store_inferior_registers): Re-implement in terms of above.
9227
9228 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9229
9230 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9231 kernel.
9232 * arm-linux-tdep.c: Likewise.
9233 * config/arm/tm-linux.h: Likewise.
9234
9235 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9236
9237 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9238 * config/arm/nbsd.mt (TM_FILE): Delete.
9239 * config/arm/tm-nbsd.h: Delete.
9240
9241 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9242
9243 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9244 Initialize CALL_DUMMY_LENGTH.
9245
9246 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9247
9248 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9249 function.
9250 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9251 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9252 defines one thing and that is incorrect for this port.
9253 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9254
9255 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9256
9257 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9258
9259 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9260
9261 * win32-nat.c (display_selector): New function. Displays information
9262 about the information returned by GetThreadSelectorEntry API function.
9263 (display_selectors): New function. Displays the infomation of
9264 the selector given as argument, or of CS, DS ans FS selectors
9265 if no argument is given.
9266 ( _initialize_inftarg): Add "w32" as info prefix command.
9267 Add "info w32 selector" as command calling display_selectors.
9268
9269 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9270
9271 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9272 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9273 if not defined.
9274
9275 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9278
9279 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9280
9281 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9282 (arm_fix_call_dummy): Call it.
9283 (arm_call_dummy_breakpoint_offset): Delete.
9284 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9285 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9286
9287 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9288
9289 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9290 Default to func_frame_chain_valid.
9291 * gdbarch.h, gdbarch.c: Re-generate.
9292 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9293
9294 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9295
9296 * ppc-linux-nat.c: Update copyright.
9297 (fetch_register, store_register): Add tid parameter, don't compute
9298 tid here.
9299 (fetch_ppc_registers, store_ppc_registers): Add tid
9300 parameter. Pass it along to callees.
9301 (fetch_inferior_registers, store_inferior_registers): Compute tid
9302 here, and pass it to calleed functions.
9303 (fill_gregset, supply_fpregset): Clean up formatting.
9304
9305 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9306
9307 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9308 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9309
9310 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9311
9312 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9313 * gdbarch.c gdbarch.h: Regenerate.
9314 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9315 function.
9316 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9317 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9318 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9319
9320 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9321 * arm-tdep.c (arm_get_longjmp_target): New function.
9322 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9323 this to a positive value register arm_get_longjmp_target as the
9324 longjmp handler.
9325 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9326 (arm_linux_init_abi): Set up longjmp description in tdep.
9327 * armnbsd-nat.c (get_longjmp_target): Delete.
9328 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9329 description in tdep.
9330 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9331 (get_longjmp_target): Delete declaration.
9332 (GET_LONGJMP_TARGET): Delete.
9333 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9334 (GET_LONGJMP_TARGET): Delete.
9335
9336 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9337
9338 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9339 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9340 of ``current_gdbarch''.
9341
9342 2002-02-17 Tom Tromey <tromey@redhat.com>
9343
9344 * cli/cli-cmds.c (compare_strings): New function.
9345 (complete_command): Only print each unique item once.
9346 * completer.h (complete_line): Declare.
9347 * completer.c (complete_line): New function.
9348 (line_completion_function): Use it.
9349
9350 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9351
9352 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9353 * gdbarch.h, gdbarch.c: Re-generate.
9354
9355 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9356
9357 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9358
9359 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9360
9361 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9362 * valops.c (value_arg_coerce): Don't take the address of a reference
9363 to convert an argument to a reference.
9364
9365 2002-02-15 Christopher Faylor <cgf@redhat.com>
9366
9367 * win32-nat.c (get_image_name): New function.
9368 (handle_load_dll): Use get_image_name function.
9369 (get_child_debug_event): Avoid registering debug events until possibly
9370 execed process is started.
9371 (child_create_inferior): Allow invocation via shell so that command
9372 line redirection, etc. works ok.
9373 (_initialize_inftarg): Add new command: "set shell" to control whether
9374 a shell is used to start a process.
9375
9376 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9377
9378 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9379 instead of find_register_by_number.
9380 (cannot_store_register): Likewise.
9381
9382 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9383
9384 * dwarf2read.c: Replace fprintf (stderr, ...) by
9385 fprintf_unfiltered (gdb_stderr, ...).
9386
9387 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * gdbserver/gdbserver.1: Document --attach.
9390
9391 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9394 descriptions.
9395 * arm-tdep.c (arm_default_arm_le_breakpoint)
9396 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9397 (arm_default_thumb_be_breakpoint): New. Initialize them from
9398 traditional breakpoint defines.
9399 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9400 (arm_gdbarch_init): Initialize new breakpoint variables.
9401 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9402 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9403 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9404 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9405 code out to ...
9406 (arm_netbsd_init_abi_common): ... here; new function.
9407 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9408 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9409 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9410 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9411
9412 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9413
9414 * arm-tdep.h (enum arm_abi): New enum.
9415 (struct gdbarch_tdep): New structure.
9416 (LOWEST_PC): Provide a default.
9417 (arm_gdbarch_register_os_abi): Declare new function.
9418 * arm-tdep.c (arm_abi_names): New array.
9419 (process_note_abi_tag_sections): New function.
9420 (get_elfosabi): New function.
9421 (arm_gdbarch_register_os_abi): New function.
9422 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9423 support for that ABI has been built in, then call the appropriate
9424 configuration routine. Use gdbarch_num_regs() to get the number
9425 of registers.
9426 (arm_dump_tdep): New function.
9427 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9428 place-holder functions.
9429 (_initialize_arm_tdep): Register them.
9430 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9431
9432 * armnbsd-tdep.c: New file.
9433 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9434 * config/arm/nbsd.mt (TDEPFILES): Add it.
9435 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9436
9437 * armnbsd-nat.c: Include regcache.h.
9438 * Makefile.in (armnbsd-nat.o): Update dependency list.
9439
9440 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9441
9442 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9443
9444 * gdbserver/Makefile.in: Fix typos in target rules.
9445
9446 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9447
9448 Fix part of PR gdb/267.
9449 * linespec.c (find_methods): Handle constructors specially for now.
9450
9451 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9452
9453 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9454 handling.
9455 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9456 standard_coerce_float_to_double().
9457
9458 2002-02-14 Christopher Faylor <cgf@redhat.com>
9459
9460 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9461 GDBINIT_FILENAME.
9462
9463 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9464
9465 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9466 find_variant_by_name, because it confuses the multiarch
9467 framework. Return NULL if there isn't an architecture with the
9468 user supplied name, instead of forcing a different one without
9469 recording the change with the multiarch machinery.
9470 (find_variant_by_name): Delete.
9471
9472 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9473
9474 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9475 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9476
9477 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9478
9479 * stack.c (print_frame_info_base): When calling
9480 print_frame_info_listing_hook, set current_source_symtab.
9481
9482 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9485 and remove unused $(INCLUDE_DIR).
9486 Add regcache.c to OBS.
9487 Add generated register protocol files to clean target.
9488 Update dependencies for new objects, obsolete old target code.
9489
9490 * gdbserver/linux-low.c: Remove all platform-specific code to
9491 new files. Remove various dead code. Update to use regcache
9492 functionality.
9493 * gdbserver/remote-utils.c (fromhex): Add return statement
9494 to quiet warning.
9495 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9496 constant.
9497 (input_interrupt): Add integer parameter to match prototype
9498 of a signal handler.
9499 (outreg): Use register_data ().
9500 (prepare_resume_reply): Use gdbserver_expedite_regs.
9501 * gdbserver/server.c (main): Dynamically allocate own_buf because
9502 PBUFSIZ is no longer constant. Use registers_to_string () and
9503 registers_from_string ().
9504 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9505 for error (), fatal (), and warning (). Update definition of
9506 PBUFSIZ to use regcache functionality. Add include guard.
9507 * gdbserver/utils.c (fatal): Add missing ``const''.
9508 (warning): New function.
9509
9510 * regformats/regdat.sh: Include "regcache.h" in generated files.
9511 Provide init_registers () function.
9512 * regformats/regdef.h: Add prototype for set_register_cache ().
9513 Add include guard.
9514
9515 * gdbserver/linux-arm-low.c: New file.
9516 * gdbserver/linux-i386-low.c: New file.
9517 * gdbserver/linux-ia64-low.c: New file.
9518 * gdbserver/linux-m68k-low.c: New file.
9519 * gdbserver/linux-mips-low.c: New file.
9520 * gdbserver/linux-ppc-low.c: New file.
9521 * gdbserver/linux-sh-low.c: New file.
9522
9523 * gdbserver/regcache.c: New file.
9524 * gdbserver/regcache.h: New file.
9525
9526 * gdbserver/low-linux.c: Removed obsolete file.
9527
9528 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9531 * config/i386/linux.mt: Likewise.
9532 * config/ia64/linux.mt: Likewise.
9533 * config/m68k/linux.mh: Likewise.
9534 * config/powerpc/linux.mh: Likewise.
9535 * config/mips/linux.mt: Likewise.
9536
9537 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9538
9539 * config/i386/i386lynx.mh: Mark gdbserver variables
9540 as (currently) obsolete for this target.
9541 * config/i386/nbsd.mt: Likewise.
9542 * config/i386/nbsdelf.mt: Likewise.
9543 * config/m32r/m32r.mt: Likewise.
9544 * config/m68k/m68klynx.mh: Likewise.
9545 * config/m68k/nbsd.mt: Likewise.
9546 * config/m68k/sun3os4.mh: Likewise.
9547 * config/mips/vr5000.mt: Likewise.
9548 * config/ns32k/nbsd.mt: Likewise.
9549 * config/pa/hppabsd.mh: Likewise.
9550 * config/pa/hppaosf.mh: Likewise.
9551 * config/powerpc/nbsd.mt: Likewise.
9552 * config/rs6000/rs6000lynx.mh: Likewise.
9553 * config/s390/s390.mt: Likewise.
9554 * config/s390/s390x.mt: Likewise.
9555 * config/sparc/sparclynx.mh: Likewise.
9556 * config/sparc/sun4os4.mh: Likewise.
9557 * config/i386/x86-64linux.mt: Likewise.
9558 * config/sparc/linux.mh: Likewise.
9559
9560 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9561
9562 * configure.tgt: Configure gdbserver only for known working
9563 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9564 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9565 SUBDIRS if it is configured. Update comment for ${nativefile}.
9566 * configure: Regenerated.
9567
9568 2002-02-13 Michael Snyder <msnyder@redhat.com>
9569
9570 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9571
9572 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9573 (default_gcore_mach): Just return 0, work around a problem in bfd.
9574 (default_gcore_target): OK to return NULL if exec_bfd is null.
9575 (make_mem_sec): Use a cast, avoid a warning.
9576
9577 * procfs.c (find_memory_regions_callback): Use a cast instead of
9578 calling host_pointer_to_address (which complains if
9579 sizeof (host pointer) != sizeof (target pointer)).
9580 (procfs_make_note_section): Avoid overflow in psargs string.
9581
9582 * procfs.c (procfs_make_note_section): Make the default
9583 implementation return an error.
9584
9585 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9586
9587 * procfs.c (procfs_make_note_section): Provide a default definition
9588 (for alpha-dec-osf4.0f). Fix typos.
9589
9590 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9591
9592 * linux-proc.c: Add include of regcache.h.
9593 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9594
9595 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9596
9597 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9598 * memattr.c (create_mem_region): Disallow useless empty region.
9599 Regions are half-open intervals, so allow [A..B) [B..C) as
9600 non-overlapping.
9601
9602 2002-02-13 Michael Chastain <mec@shout.net>
9603
9604 * defs.h: Kill CONST_PTR.
9605 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9606 * c-lang.c (c_builtin_types): Likewise.
9607 * ch-lang.c (ch_builtin_types): Likewise.
9608 * f-lang.c (f_builtin_types): Likewise.
9609 * language.c (unknown_builtin_types): Likewise.
9610 * m2-lang.c (m2_builtin_types): Likewise.
9611 * p-lang.c (pascal_builtin_types): Likewise.
9612 * scm-lang.c (c_builtin_types): Likewise.
9613
9614 2002-02-13 Keith Seitz <keiths@redhat.com>
9615
9616 * arm-tdep.h (arm_get_next_pc): Add declaration.
9617
9618 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9619
9620 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9621 with other related struct-returning functions.
9622 (arm_extract_struct_value_address): New function.
9623 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9624 initialize float_format, double_format and long_double_format as
9625 appropriate to the endianness of the target.
9626 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9627 (arm_use_struct_convention): Delete declaration.
9628 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9629
9630 2002-02-13 Keith Seitz <keiths@redhat.com>
9631
9632 * defs.h (core_addr_to_string_nz): New function.
9633
9634 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9635
9636 Apply missing bits of 2002-01-15 patch.
9637 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9638 (fill_fpregset): Use i387_fill_fsave.
9639
9640 2002-02-12 Keith Seitz <keiths@redhat.com>
9641
9642 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9643 (core_addr_to_string_nz): New function.
9644
9645 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9646
9647 * arm-linux-nat.c: Really include arm-tdep.h.
9648 * config/arm/tm-linux.h (struct type, struct value): Declare.
9649
9650 2002-02-11 Michael Snyder <msnyder@redhat.com>
9651
9652 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9653 (gcore section): Ifdef for Solaris and Unixware only.
9654 (procfs_do_thread_registers): Unixware needs one lwpstatus
9655 per thread (not one prstatus or pstatus).
9656 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9657 not over all gdb threads. For unixware, call elfcore_write_pstatus
9658 once before iterating over threads.
9659
9660 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9661
9662 * arm-tdep.h: New file.
9663 * arm-tdep.c: Include arm-tdep.h.
9664 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9665 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9666 (arm_print_float_info, arm_register_type, convert_to_extended)
9667 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9668 (arm_extract_return_value, arm_register_name): Make static.
9669 (arm_software_single_step): Similarly. Fix types in declaration.
9670 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9671 (arm_store_return_value, arm_store_struct_return): New functions.
9672 (arm_gdbarch_init): Register the above functions. Also register
9673 call_dummy_start_offset, sizeof_call_dummy_words,
9674 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9675 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9676 max_register_virtual_size, register_size. Set up
9677 prologue_cache.saved_regs here, rather than ...
9678 (_initialize_arm_tdep): ... here.
9679 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9680 declarations.
9681 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9682 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9683 (arm_print_float_info, arm_register_type, convert_to_extended)
9684 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9685 (arm_extract_return_value, arm_register_name): Delete declarations.
9686 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9687 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9688 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9689 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9690 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9691 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9692 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9693 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9694 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9695 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9696 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9697 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9698 interface.
9699 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9700 * remote-rdi.c remote-rdp.c: Likewise.
9701 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9702 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9703 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9704 definition.
9705
9706 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9707 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9708 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9709 from non-ARM_ prefixed definitions.
9710 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9711 all uses of above.
9712 * remote-rdi.c remote-rdp.c: Likewise.
9713 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9714
9715 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9716
9717 * arm-tdep.c (arm_frameless_function_invocation)
9718 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9719 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9720 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9721 (arm_pop_frame, arm_get_next_pc): Make static.
9722 (arm_gdbarch_init): Register above in gdbarch structure.
9723 (arm_read_fp): Renamed from arm_target_read_fp.
9724 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9725 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9726 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9727 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9728 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9729 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9730 (arm_pc_is_thumb_dummy): Delete declarations.
9731 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9732 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9733 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9734 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9735
9736 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9737
9738 * symtab.c (compare_search_syms): New function.
9739 (sort_search_symbols): New function.
9740 (search_symbols): Sort symbols after searching rather than
9741 before.
9742
9743 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9744
9745 * NEWS: Linux -> GNU/Linux.
9746
9747 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9748
9749 * gdbarch.sh: For for level one methods, disallow a definition
9750 when partially multi-arched. Add comments explaining rationale.
9751 * gdbarch.h: Re-generate.
9752
9753 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9754
9755 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9756 multi-arch partial.
9757
9758 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9759
9760 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9761 field. Use diff -u.
9762 * gdbarch.c: Re-generate.
9763
9764 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9765
9766 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9767 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9768 partial.
9769
9770 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9771
9772 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9773 multi-arch partial.
9774 (PUSH_ARGUMENTS): Switch to using predefault.
9775 * gdbarch.c: Regenerate.
9776
9777 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9778
9779 * valops.c (PUSH_ARGUMENTS): Delete definition.
9780 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9781 partial. Default to default_push_arguments.
9782 * gdbarch.h, gdbarch.c: Regenerate.
9783
9784 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9785
9786 * defs.h (throw_exception): Rename return_to_top_level. Update
9787 comments.
9788 * utils.c (error_stream, internal_verror, quit): Ditto.
9789 * top.c (throw_exception, catcher): Ditto.
9790 * sparclet-rom.c (sparclet_load): Ditto.
9791 * remote.c (interrupt_query, minitelnet): Ditto.
9792 * remote-sds.c (interrupt_query): Ditto.
9793 * remote-mips.c (mips_error, mips_kill): Ditto.
9794 * ocd.c (interrupt_query): Ditto.
9795 * monitor.c (monitor_interrupt_query): Ditto.
9796 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9797 * target.h: Update comment.
9798
9799 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9800
9801 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9802
9803 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9804 default_double_format.
9805 * gdbarch.h, gdbarch.c: Re-generate.
9806 * findvar.c (floatformat_unknown): Delete variable definition.
9807 * doublest.h (floatformat_unknown): Delete variable declaration.
9808
9809 2002-02-09 Jim Blandy <jimb@redhat.com>
9810
9811 * stabsread.c (read_type): Add code to parse Sun's syntax for
9812 prototyped function types.
9813
9814 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9815
9816 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9817 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9818
9819 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9820
9821 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9822 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9823 now _initialize_xcoffsolib gets called again and overrides the
9824 commands from solib.c in a native configuration.
9825
9826 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9827
9828 * doublest.c (store_typed_floating): Don't try to return a value.
9829 Fixes PR gdb/290.
9830
9831 2002-02-08 Jim Blandy <jimb@redhat.com>
9832
9833 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9834 is prototyped and has no arguments, print its argument list as
9835 `(void)'.
9836
9837 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9838
9839 * MAINTAINERS (write-after-approval): Add myself.
9840 (paper-trail): I've escaped!
9841
9842 2002-02-08 Christopher Faylor <cgf@redhat.com>
9843
9844 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9845 changes.
9846 (_initialize_check_for_gdb_ini): Ditto.
9847
9848 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9849
9850 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9851 xaprintf -> xasprintf.
9852
9853 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9854
9855 * win32-nat.c: Remove use of printf and sprintf functions.
9856
9857 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9858
9859 * arm-tdep.c (arm_frame_chain_valid): Make static.
9860 (arm_push_arguments): Likewise.
9861 (arm_gdbarch_init): New function.
9862 (_initialize_arm_tdep): Call it.
9863 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9864 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9865 (FRAME_CHAIN_VALID): Delete.
9866 (arm_frame_chain_valid): Delete declaration.
9867 (PUSH_ARGUMENTS): Delete.
9868 (arm_push_arguments): Delete declaration.
9869 (CALL_DUMMY_P): Delete.
9870
9871 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9872 Corinna Vinschen <vinschen@redhat.com>
9873
9874 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9875 on builtin float types.
9876
9877 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9878
9879 * utils.c: Include <curses.h> before "bfd.h".
9880 * tui/tui-hooks.c: Likewise.
9881 * tui/tui.c: Likewise.
9882 * tui/tuiCommand.c: Likewise.
9883 * tui/tuiData.c: Likewise.
9884 * tui/tuiDataWin.c: Likewise.
9885 * tui/tuiDisassem.c: Likewise.
9886 * tui/tuiGeneralWin.c: Likewise.
9887 * tui/tuiIO.c: Likewise.
9888 * tui/tuiLayout.c: Likewise.
9889 * tui/tuiRegs.c: Likewise.
9890 * tui/tuiSource.c: Likewise.
9891 * tui/tuiSourceWin.c: Likewise.
9892 * tui/tuiStack.c: Likewise.
9893 * tui/tuiWin.c: Likewise.
9894
9895 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9896
9897 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9898 to include space for pseudoregs as well. Update loops accordingly.
9899 (sh_fp_frame_init_saved_regs): Ditto.
9900 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9901
9902 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9903
9904 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9905 Add Richard Earnshaw to Arm maintainers.
9906
9907 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9908
9909 * defs.h (warning_begin): Delete declaration.
9910
9911 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9912 Delete macro.
9913
9914 2002-02-07 Michael Snyder <msnyder@redhat.com>
9915
9916 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9917 Logic bug, remove misplaced else.
9918
9919 2002-02-07 Klee Dienes <klee@apple.com>
9920
9921 * fork-inferior.c (fork_inferior): Add '!' to the list of
9922 characters that need to be quoted when building a string for the
9923 shell. Quote '!' specifically with a backslash, since CSH chokes
9924 when trying to evaluate "str!str".
9925
9926 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9927
9928 * rdi-share/host.h: Only provide a typedef for bool if it is not
9929 defined.
9930
9931 2002-02-04 Michael Snyder <msnyder@redhat.com>
9932
9933 * breakpoint.h (enum bptype): Add new overlay event bp type.
9934 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9935
9936 * breakpoint.c (create_internal_breakpoint): New function.
9937 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9938 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9939 (create_thread_event_breakpoint): Ditto.
9940 (create_solib_event_breakpoint): Ditto.
9941 (create_overlay_event_breakpoint): New function.
9942 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9943 (update_breakpoints_after_exec): Delete and re-initialize
9944 overlay event breakpoints after an exec. Add FIXME comment
9945 about longjmp breakpoint.
9946 (print_it_typical): Ignore overlay event breakpoints.
9947 (print_one_breakpoint): Ditto.
9948 (mention): Ditto.
9949 (bpstat_what): Do not stop for overlay event breakpoints.
9950 (delete_breakpoint): Don't delete overlay event breakpoints.
9951 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9952 (breakpoint_re_set): Re-create overlay event breakpoint.
9953
9954 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9955 (overlay_manual_command): Disable overlay breakpoints.
9956 (overlay_off_command): Disable overlay breakpoints.
9957
9958 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9959
9960 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9961 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9962 to here from config/tm-arm.h.
9963 (coff_sym_is_thumb): Make static.
9964 (arm_elf_make_msymbol_special): New function.
9965 (arm_coff_make_msymbol_special): New function.
9966 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9967 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9968 (coff_sym_is_thumb): Delete declaration.
9969 (arm_elf_make_msymbol_special): Declare.
9970 (arm_coff_make_msymbol_special): Declare.
9971 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9972 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9973
9974 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9975
9976 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9977
9978 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9981 * gdbarch.c gdbarch.h: Regenerate.
9982 * arch-utils.c (default_print_float_info): New function.
9983 * arch-utils.h (default_print_float_info): Prototype it.
9984 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9985 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9986 (PRINT_FLOAT_INFO): Document it.
9987
9988 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9989 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9990 (PRINT_FLOAT_INFO): Define.
9991
9992 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9993
9994 * win32-nat.c (_initialize_check_for_gdb_ini):
9995 Add typecast to sprintf argument to suppress a warning.
9996
9997 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9998
9999 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10000 to allow easier handling of pass state.
10001 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10002 that gives exception name and address.
10003 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10004 and set last_sig value to ourstatus->value.sig. Some missing
10005 exceptions added.
10006 (child_continue): Correctly report continue_status.
10007 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10008 TARGET_SIGNAL_0 (new default value).
10009 (child_resume): consider sig argument passed to decide if
10010 the exception should be passed to debuggee or not.
10011
10012 2002-02-05 Michael Snyder <msnyder@redhat.com>
10013
10014 * regcache.c (fetch_register): Call target_fetch_register
10015 only if we don't call FETCH_PSEUDO_REGISTER.
10016 (store_register): Call target_store_register only if we
10017 don't call STORE_PSEUDO_REGISTER.
10018
10019 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10020
10021 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10022 ELF_MAKE_MSYMBOL_SPECIAL.
10023 * gdbarch.c, gdbarch.h: Regenerate.
10024 * arch-utils.c (default_make_msymbol_special): New function.
10025 * arch-utils.h (default_make_msymbol_special): Export.
10026 * elfread.c (elf_symtab_read): Compile use of
10027 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10028 multiarched.
10029 * coffread.c (coff_symtab_read): Ditto, for
10030 COFF_MAKE_MSYMBOL_SPECIAL.
10031
10032 2002-02-05 Jim Blandy <jimb@redhat.com>
10033
10034 * solib-svr4.c (svr4_truncate_ptr): New function.
10035 (svr4_relocate_section_addresses): Do the address arithmetic with
10036 the appropriate truncation for target addresses, even when
10037 CORE_ADDR is larger than a target address.
10038
10039 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10040
10041 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10042 to (int *).
10043
10044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10047 code.
10048
10049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10050
10051 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10052
10053 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * gdbserver/linux-low.c: Remove unused include files.
10056
10057 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10058
10059 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10060 (read_inferior_memory): Use it.
10061 (write_inferior_memory): Likewise.
10062
10063 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10064
10065 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10066 grubbing through sys_errlist.
10067
10068 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10071
10072 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10073 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10074
10075 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10076
10077 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10078 (do_sfunc, set_cmd_sfunc): New functions.
10079
10080 * command.h (struct cmd_list_element): Add field func.
10081 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10082 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10083 * cli/cli-decode.h: Ditto.
10084
10085 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10086 (help_all, help_cmd_list): Ditto.
10087 (find_cmd, complete_on_cmdlist): Ditto.
10088 * top.c (execute_command): Ditto.
10089
10090 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10091 function.sfunc.
10092
10093 * infcmd.c (notice_args_read): Fix function signature.
10094
10095 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10096 * cli/cli-decode.c (add_set_cmd): Ditto.
10097 * utils.c (initialize_utils): Ditto.
10098 * maint.c (_initialize_maint_cmds): Ditto.
10099 * infrun.c (_initialize_infrun): Ditto.
10100 * demangle.c (_initialize_demangler): Ditto.
10101 * remote.c (add_packet_config_cmd): Ditto.
10102 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10103 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10104 * proc-api.c (_initialize_proc_api): Ditto.
10105 * kod.c (_initialize_kod): Ditto.
10106 * valprint.c (_initialize_valprint): Ditto.
10107 * top.c (init_main): Ditto.
10108 * infcmd.c (_initialize_infcmd): Ditto.
10109 * corefile.c (_initialize_core): Ditto.
10110 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10111 * arch-utils.c (initialize_current_architecture): Ditto.
10112 (_initialize_gdbarch_utils): Ditto.
10113 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10114
10115 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10116 * wince.c (_initialize_inftarg): Ditto.
10117 * symfile.c (_initialize_symfile): Ditto.
10118 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10119 * language.c (_initialize_language): Ditto.
10120 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10121
10122 2002-02-04 Michael Snyder <msnyder@redhat.com>
10123
10124 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10125
10126 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10127
10128 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10129 Add rules for building the register data files.
10130
10131 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10132
10133 * regformats/regdat.sh: Add braces to the definition of
10134 expedite_regs_${arch}.
10135
10136 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * regformats/regdef.h (struct reg): Add comment describing the
10139 requirements for offset and size fields.
10140
10141 2002-02-04 Andreas Schwab <schwab@suse.de>
10142
10143 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10144 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10145
10146 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10147
10148 * gdbarch.sh (copyright): Update years in generated header.
10149 (SMASH_TEXT_ADDRESS): Add rule.
10150 * gdbarch.h, gdbarch.c: Re-generate.
10151 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10152 * dbxread.c: Likewise.
10153 * dwarfread.c: Likewise.
10154 * elfread.c: Likewise.
10155 * somread.c: Likewise.
10156
10157 * arm-tdep.c (arm_smash_text_address): New function.
10158 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10159
10160 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10161
10162 Add support for hardware watchpoints on win32 native.
10163 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10164 CONTEXT_DEBUG_REGISTERS.
10165 (dr variable): New variable. Static array containing a local copy
10166 of debug registers.
10167 (debug_registers_changed): New variable. Reflects when debug registers
10168 are changed and need to be written to inferior.
10169 (debug_registers_used): New variable. Reflects when any debug register
10170 was set, used when new threads are created.
10171 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10172 i386-nat code.
10173 (thread_rec): Set dr array if id is the thread of current_event .
10174 (child_continue, child_resume): Change the debug registers for all
10175 threads if debug_registers_changed.
10176 (child_add_thread): Change the debug registers if debug_registers_used.
10177 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10178 Link nm.h to new nm-cygwin.h file.
10179 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10180 of hardware registers.
10181
10182 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10183
10184 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10185 Restore behavour broken by 2002-01-20 Andrew Cagney
10186 <ac131313@redhat.com> IEEE_FLOAT removal.
10187
10188 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * c-valprint.c (c_val_print): Pass a proper valaddr to
10191 cp_print_class_method.
10192 * valops.c (search_struct_method): If there is only one method
10193 and args is NULL, return that method.
10194
10195 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10198 accessing tag_name directly.
10199
10200 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10201
10202 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10203 of accessing tag_name directly.
10204
10205 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10206
10207 PR gdb/280
10208 * gdbtypes.c (replace_type): New function.
10209 * gdbtypes.h (replace_type): Add prototype.
10210 * stabsread.c (read_type): Use replace_type.
10211
10212 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10213
10214 * Makefile.in (memattr.o): Add missing dependencies rule.
10215
10216 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10217
10218 * breakpoint.c (break_at_finish_command): Really export.
10219 (break_at_finish_at_depth_command): Ditto.
10220 (tbreak_at_finish_command): Ditto.
10221 * hppa-tdep.c: Include completer.h.
10222 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10223 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10224
10225 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10226
10227 * utils.c (do_write): New function.
10228 (error_stream): Rewrite combining the code from error_begin and
10229 verror.
10230 (verror): Rewrite using error_stream.
10231 (error_begin): Delete function.
10232
10233 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10234
10235 * utils.c (error_begin): Make static.
10236 * defs.h (error_begin): Delete declaration.
10237
10238 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10239 (decode_line_1): Use cplusplus_error instead of error_begin,
10240 cplusplus_hint and return_to_top_level.
10241 * coffread.c (coff_symfile_read): Use error instead of error_begin
10242 and return_to_top_level.
10243 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10244
10245 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10246
10247 * language.h (type_error, range_error): Make string parameter
10248 constant.
10249 * language.c (warning_pre_print): Delete extern declaration.
10250 * dwarfread.c (warning_pre_print): Ditto.
10251 * language.c (type_error, range_error): Rewrite to use verror and
10252 vwarning instead of warning_begin.
10253
10254 2002-02-01 Michael Snyder <msnyder@redhat.com>
10255
10256 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10257 (set_ignore_count): Move misplaced comment back where it belongs.
10258
10259 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10260
10261 * command.h (NO_FUNCTION): Delete macro.
10262 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10263 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10264 * tracepoint.c (_initialize_tracepoint): Ditto.
10265 * cli/cli-decode.c (add_set_cmd): Ditto.
10266 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10267
10268 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10271 Update ``this'' pointer when calling virtual functions.
10272
10273 2002-02-01 Michael Snyder <msnyder@redhat.com>
10274
10275 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10276 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10277
10278 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10279
10280 * regformats/reg-arm.dat: New file.
10281 * regformats/reg-i386.dat: New file.
10282 * regformats/reg-ia64.dat: New file.
10283 * regformats/reg-m68k.dat: New file.
10284 * regformats/reg-mips.dat: New file.
10285 * regformats/reg-ppc.dat: New file.
10286 * regformats/reg-sh.dat: New file.
10287 * regformats/regdef.h: New file.
10288 * regformats/regdat.sh: New file.
10289
10290 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10291
10292 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10293 (arm_frame_args_address, arm_frame_locals_address): New functions.
10294 (arm_frame_num_args): New function.
10295 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10296 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10297 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10298
10299 2002-01-31 Michael Snyder <msnyder@redhat.com>
10300
10301 * breakpoint.c (break_at_finish_command): Export.
10302 (break_at_finish_at_depth_command): Export.
10303 (tbreak_at_finish_command): Export.
10304 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10305 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10306 "tbreak" commands, which are HPPA specific.
10307
10308 * printcmd.c (disassemble_command): Remove an ancient
10309 artifact of an old merge.
10310
10311 * symfile.h (enum overlay_debugging_state):
10312 Define enum constant values for overlay mode.
10313 * symfile.c (overlay_debugging): Use enums instead of literals.
10314 (overlay_is_mapped, overlay_auto_command,
10315 overlay_manual_command): Ditto.
10316
10317 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10318 breakpoint_here_p, breakpoint_inserted_here_p,
10319 breakpoint_thread_match, bpstat_stop_status,
10320 describe_other_breakpoints, check_duplicates, clear_command):
10321 Coding standard fixes.
10322
10323 * target.c (target_xfer_memory): Add spaces, coding standard.
10324 (do_xfer_memory): Add missing line to trust-readonly
10325 code: check bfd SEC_READONLY flag for section.
10326
10327 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10328
10329 * PROBLEMS: Fix typo, 5.1->5.1.1.
10330
10331 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10332
10333 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10334 data symbols, since we search based on textlow and texthigh.
10335 (find_pc_sect_symtab): Likewise.
10336
10337 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10338
10339 * defs.h (vwarning): Declare.
10340 * utils.c (vwarning): New function.
10341 (warning): Call vwarning.
10342 (warning_begin): Delete function.
10343
10344 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10345 the warning message.
10346 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10347 warning_begin.
10348
10349 2002-01-30 Michael Snyder <msnyder@redhat.com>
10350
10351 * NEWS: Mention "set trust-readonly-sections" command.
10352 Mention generate-core-file command.
10353
10354 2002-01-15 Michael Snyder <msnyder@redhat.com>
10355
10356 * target.c: New command, "set trust-readonly-sections on".
10357 (do_xfer_memory): Honor the suggestion to trust readonly sections
10358 by reading them from the object file instead of from the target.
10359 (initialize_targets): Register command "set trust-readonly-sections".
10360
10361 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10362
10363 * parse.c (target_map_name_to_register): Simplify, search regs and
10364 pseudo-regs using a single loop.
10365
10366 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10367
10368 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10369
10370 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10371
10372 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10373 * config/i386/i386v42mp.mh: Add i387-nat.o .
10374 * i386v4-nat.c: Include i387-nat.h.
10375 (supply_fpregset): Use i387_supply_fsave.
10376 (fill_fpregset): Use i387_fill_fsave.
10377
10378 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10379
10380 * arm-tdep.c (arm_call_dummy_words): Define.
10381 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10382 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10383 (CALL_DUMMY_WORDS): Define.
10384 (arm_call_dummy_words): Declare.
10385 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10386 (arm_linux_call_dummy_words): Declare.
10387
10388 2002-01-30 Andreas Schwab <schwab@suse.de>
10389
10390 * m68klinux-nat.c: Fix last change to use regcache_collect
10391 instead of referencing registers[] directly.
10392
10393 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10394
10395 * parse.c (target_map_name_to_register): Delete code wrapped in
10396 #ifdef REGISTER_NAME_ALIAS_HOOK.
10397
10398 2002-01-28 Michael Snyder <msnyder@redhat.com>
10399
10400 * regcache.c (legacy_read_register_gen): Need to be able to
10401 read pseudo-register as well as real register.
10402 (legacy_write_register_gen): Ditto.
10403
10404 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10405
10406 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10407 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10408 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10409 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10410 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10411 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10412 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10413 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10414 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10415 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10416 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10417 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10418 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10419 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10420 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10421 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10422 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10423 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10424 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10425 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10426
10427 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10428
10429 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10430 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10431 (initialize_current_architecture): Update target_byte_order using
10432 information from BFD.
10433 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10434 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10435
10436 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10437
10438 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10439 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10440
10441 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10442 #ifdef INVALID_FLOAT.
10443 * infcmd.c (do_registers_info): Ditto.
10444 * values.c (unpack_double): Ditto. Add comment.
10445
10446 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10447 already commented out.
10448
10449 2002-01-26 Andreas Schwab <schwab@suse.de>
10450
10451 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10452 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10453 registers and add support for PTRACE_GETREGS.
10454
10455 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10456
10457 GDB 5.1.1 released from 5.1 branch.
10458 * NEWS: Add 5.1.1 news.
10459 * README: Sync with 5.1 branch.
10460
10461 2002-01-23 Fred Fish <fnf@redhat.com>
10462
10463 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10464 stabstring on initial malloc. Reallocing will copy it for us,
10465 if necessary.
10466
10467 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10468
10469 * Makefile.in (hpread_h): Delete.
10470 (HFILES_NO_SRCDIR): Remove hpread.h.
10471 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10472 (hpread.o): Update dependencies.
10473 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10474
10475 * hp-psymtab-read.c: Remove file.
10476 * hp-symtab-read.c: Remove file.
10477 * hpread.h: Remove file.
10478
10479 * hpread.c: Merge all contents of hp-psymtab-read.c,
10480 hp-symtab-read.c and hpread.h into this file, as it was prior to
10481 January 1999.
10482
10483 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10484 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10485 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10486 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10487
10488 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10489
10490 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10491 fill_gregset): Call gdbarch_tdep() just once, assign result to
10492 variable and use that, instead of calling the function several
10493 times.
10494
10495 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10496
10497 * configure.host: Accept sparcv9 as alias for sparc64.
10498 * configure.tgt: Likewise.
10499
10500 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10501
10502 * solib-aix5.c (build_so_list_from_mapfile)
10503 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10504 arguments is not reversed.
10505 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10506 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10507
10508 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10509
10510 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10511 modified version of obsolete sh_fetch_pseudo_register.
10512 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10513 (sh4_register_read): New function.
10514 (sh_pseudo_register_write): New function. Renamed and modified
10515 version of obsolete sh_store_pseudo_register.
10516 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10517 (sh4_register_write): New function.
10518 (sh_gdbarch_init): Remove setting of gdbarch function
10519 fetch_pseudo_register and store_pseudo_register. Remove setting of
10520 register_convert_to_raw, register_convert_to_virtual,
10521 register_convertible.
10522 (sh_sh4_register_convertible): Delete. No longer needed. All is
10523 taken care by architecture specific functions
10524 register_read/register_write.
10525 (sh_sh4_register_convert_to_virtual): Make static.
10526 (sh_sh4_register_convert_to_raw): Ditto.
10527
10528 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10529
10530 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10531 (floatformat_is_nan, floatformat_mantissa): Ditto.
10532
10533 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10534 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10535 builtin_type_ieee_double_little,
10536 builtin_type_ieee_double_littlebyte_bigword,
10537 builtin_type_m68881_ext, builtin_type_i960_ext,
10538 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10539 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10540 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10541 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10542
10543 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10544
10545 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10546 parameter. Set frameless flag if it exists and depended of
10547 whether the scanned function is frameless or not.
10548 (xstormy16_skip_prologue): If function is frameless, return
10549 result of xstormy16_scan_prologue().
10550 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10551 call.
10552
10553 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10554
10555 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10556 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10557 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10558 sh_sh4_register_byte, sh_sh4_register_raw_size,
10559 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10560 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10561 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10562 sh_store_pseudo_register, sh_do_pseudo_register): Call
10563 gdbarch_tdep() just once, assign result to variable and use that,
10564 instead of calling the function several times.
10565
10566 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10567
10568 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10569 macros instead of LAST_FPU_CTRL_REGNUM.
10570 (store_register): Likewise.
10571
10572 2002-01-21 Jim Blandy <jimb@redhat.com>
10573
10574 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10575 is up-to-date before running the program, not just when a program
10576 exits.
10577
10578 2002-01-21 Fred Fish <fnf@redhat.com>
10579
10580 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10581 when we have found all instructions we are looking for.
10582
10583 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10584
10585 * arm-tdep.c (arm_register_name): New function.
10586 (arm_registers_names): Make static.
10587 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10588 (arm_register_name): Declare.
10589 (REGISTER_NAME): Use it.
10590
10591 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10592 Kevin Buettner <kevinb@redhat.com>
10593
10594 Convert arm targets to new FRAME interface.
10595 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10596 (arm_frame_find_save_regs): Delete.
10597 (arm_frame_init_saved_regs): New.
10598 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10599 Allocate extra_info as required. Convert all uses of fsr.regs
10600 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10601 to use extra_info.
10602 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10603 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10604 (check_prologue_cache, save_prologue_cache): Likewise.
10605 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10606 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10607 (FRAME_FIND_SAVED_REGS): Delete.
10608 (arm_frame_find_saved_regs): Delete prototype.
10609 (arm_frame_init_saved_regs): New prototype.
10610 (FRAME_INIT_SAVED_REGS): Define.
10611
10612 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10613
10614 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10615
10616 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10617
10618 From Jeff Law <law@redhat.com>:
10619 * infttrace.c: Include <sys/pstat.h>.
10620 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10621 exec file if the ttrace equivalent fails.
10622
10623 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10624
10625 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10626 (closeLogFile): Ditto.
10627
10628 2002-01-20 Michael Chastain <mec@shout.net>
10629
10630 * top.c (print_gdb_version): Bump copyright year to 2002.
10631
10632 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10633
10634 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10635 Zannoni and Eli Zaretskii.
10636
10637 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10638
10639 * buildsym.c: Update copyright years.
10640 * c-typeprint.c: Likewise.
10641 * dwarf2read.c: Likewise.
10642 * f-typeprint.c: Likewise.
10643 * gdbtypes.c: Likewise.
10644 * gdbtypes.h: Likewise.
10645 * hp-symtab-read.c: Likewise.
10646 * hpread.c: Likewise.
10647 * mdebugread.c: Likewise.
10648 * p-typeprint.c: Likewise.
10649
10650 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10651
10652 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10653 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10654 byte-order selectable.
10655 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10656 * arch-utils.c: Ditto.
10657 (set_endian): Ditto.
10658 (set_endian_from_file): Ditto.
10659 * gdbserver/low-sim.c (create_inferior): Ditto.
10660 * gdbarch.sh: Ditto.
10661 * gdbarch.h: Re-generate.
10662 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10663 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10664 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10665 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10666 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10667 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10668 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10669 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10670 macro definition.
10671 * config/mips/tm-wince.h: Remove #undef of macro
10672 TARGET_BYTE_ORDER_SELECTABLE.
10673 * config/sh/tm-wince.h: Ditto.
10674
10675 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10676
10677 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10678 member function fields. Add accessor macro
10679 TYPE_FN_FIELD_ARTIFICIAL.
10680 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10681 * c-typeprint.c (c_type_print_base): Skip artificial member
10682 functions.
10683
10684 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * f-typeprint.c: Delete unused function f_type_print_args.
10687 * p-typeprint.c: Delete unused function pascal_type_print_args.
10688
10689 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10690
10691 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10692 comment. Add ``artificial'' to ``union field_location''.
10693
10694 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10695
10696 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10697 * mdebugread.c (parse_symbol): Likewise.
10698 * stabsread.c (define_symbol): Likewise.
10699 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10700 initializing TYPE_FIELD_BITPOS to n (obsolete).
10701 (hpread_doc_function_type): Likewise.
10702 * hpread.c (hpread_function_type): Likewise.
10703
10704 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10705
10706 * configure.in (host_makefile_frag): Only require a host makefile
10707 fragment when a native build.
10708 * configure: Re-generate.
10709
10710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10711
10712 * doublest.h (floatformat_from_type): Declare.
10713 * doublest.c (floatformat_from_type): New function.
10714 (convert_typed_floating): Use.
10715
10716 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10717 call to function floatformat_from_type.
10718
10719 * gdbarch.sh (IEEE_FLOAT): Delete.
10720 * gdbarch.h, gdbarch.c: Re-generate.
10721 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10722 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10723 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10724 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10725 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10726 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10727 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10728 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10729 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10730 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10731 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10732 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10733
10734 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10735 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10737 * sh-tdep.c (sh_gdbarch_init): Ditto.
10738 * mips-tdep.c (mips_gdbarch_init): Ditto.
10739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10740 * cris-tdep.c (cris_gdbarch_init): Ditto.
10741
10742 2002-01-20 Jiri Smid <smid@suse.cz>
10743
10744 * configure.host, configure.tgt: Support x86-64.
10745 * NEWS: Note new target x86-64.
10746
10747 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10748 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10749 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10750 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10751 x86-64-linux-nat.o): Fix dependencies.
10752
10753 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10754
10755 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10756 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10757 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10758 * config/sparc/xm-sun4os4.h: Delete file.
10759 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10760
10761 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10762
10763 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10764 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10765 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10766 * config/i386/i386lynx.mh (XM_FILE): Delete.
10767 * config/rs6000/xm-rs6000ly.h: Delete file.
10768 * config/sparc/xm-sparclynx.h: Delete file.
10769 * config/m68k/xm-m68klynx.h: Delete file.
10770 * config/i386/xm-i386lynx.h: Delete file.
10771 * config/xm-lynx.h: Delete file.
10772 * config/djgpp/fnchange.lst: Update.
10773
10774 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10775
10776 * alpha-tdep.c (alpha_register_byte): New function.
10777 (alpha_register_raw_size): Ditto.
10778 (alpha_register_virtual_size): Ditto.
10779 (alpha_skip_prologue_internal): Renamed from
10780 alpha_skip_prologue.
10781 (alpha_skip_prologue): New version that calls
10782 alpha_skip_prologue_internal.
10783 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10784 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10785 second argument from alpha_skip_prologue.
10786 (REGISTER_BYTE): Use alpha_register_byte.
10787 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10788 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10789 (FRAMELESS_FUNCTION_INVOCATION): Use
10790 generic_frameless_function_invocation_not.
10791 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10792 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10793
10794 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10795
10796 * config/mips/xm-news-mips.h: Delete file.
10797 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10798
10799 * config/m88k/xm-m88k.h: Delete file.
10800 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10801 * config/m88k/xm-delta88v4.h: Ditto.
10802 * config/m88k/xm-delta88.h: Ditto.
10803
10804 * config/alpha/xm-fbsd.h: Delete file.
10805 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10806
10807 * config/sparc/xm-sparc.h: Delete file.
10808 * Makefile.in (xm-sun4os4.h): Delete dependency.
10809 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10810 * config/sparc/xm-sun4os4.h: Ditto.
10811 * config/sparc/xm-linux.h: Ditto.
10812
10813 * config/i386/xm-windows.h: Delete file.
10814
10815 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10816
10817 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10818 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10819
10820 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10821
10822 * alpha-tdep.c (alpha_call_dummy_words): New.
10823 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10824 (CALL_DUMMY_P): Define.
10825 (CALL_DUMMY_WORDS): Define.
10826 (SIZEOF_CALL_DUMMY_WORDS): Define.
10827
10828 2002-01-19 Per Bothner <per@bothner.com>
10829
10830 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10831 isn't NULL, which can happen with some gcj-3.x-produced code.
10832
10833 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10834
10835 * alpha-tdep.c (alpha_register_virtual_type): New function.
10836 (alpha_init_frame_pc_first): Ditto.
10837 (alpha_fix_call_dummy): Ditto.
10838 (alpha_store_struct_return): Ditto.
10839 (alpha_extract_struct_value_address): Ditto.
10840 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10841 alpha_register_virtual_type.
10842 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10843 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10844 alpha_extract_struct_value_address.
10845 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10846 (INIT_FRAME_PC): Use init_frame_pc_noop.
10847 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10848
10849 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10850
10851 * i386gnu-nat.c: Include "i386-tdep.h".
10852 (fetch_fpregs): Simplify code dealing with uninitialized floating
10853 point states such that it doesn't require FP7_REGNUM.
10854
10855 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10856
10857 * alpha-tdep.c (frame_extra_info): New.
10858 (alpha_find_saved_regs): Make static. Use
10859 frame->extra_info.
10860 (alpha_frame_init_saved_regs): New function.
10861 (alpha_frame_saved_pc): Use frame->extra_info.
10862 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10863 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10864 (init_extra_frame_info): Rename to...
10865 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10866 (alpha_print_extra_frame_info): New function.
10867 (alpha_frame_locals_address): Ditto.
10868 (alpha_frame_args_address): Ditto.
10869 (alpha_pop_frame): Use frame->extra_info.
10870 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10871 alpha_frame_args_address.
10872 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10873 (alpha_find_saved_regs): Remove prototype.
10874 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10875 (EXTRA_FRAME_INFO): Remove.
10876 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10877 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10878
10879 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10880
10881 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10882 (alpha_cannot_fetch_register): Ditto.
10883 (alpha_cannot_store_register): Ditto.
10884 (alpha_register_convertible): Ditto.
10885 (alpha_use_struct_convention): Ditto.
10886 * config/alpha/tm-alpha.h: Update copyright years.
10887 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10888 (INNER_THAN): Use core_addr_lessthan.
10889 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10890 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10891 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10892 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10893 (FRAME_CHAIN): Remove unnecessary cast.
10894
10895 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10896
10897 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10898 obsolete.
10899
10900 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10901
10902 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10903 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10904 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10905 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10906 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10907 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10908 * x86-64-linux-nat.c: Ditto.
10909
10910 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10911
10912 * alpha-tdep.c (alpha_register_name): New function.
10913 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10914 (REGISTER_NAME): Define.
10915
10916 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10919
10920 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10921
10922 * alpha-tdep.c: Update copyright years.
10923 (alpha_next_pc): New function.
10924 (alpha_software_single_step): Ditto.
10925 * config/alpha/tm-alpha.h: Add prototype for
10926 alpha_software_single_step.
10927
10928 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10929
10930 * alphabsd-nat.c: Update copyright years.
10931 (fill_gregset): Use regcache_collect.
10932 (fill_fpregset): Likewise.
10933 (fetch_inferior_registers): Only fetch integer registers
10934 if requested to do so.
10935 (store_inferior_registers): Only store integer registers
10936 if requested to do so.
10937
10938 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10939
10940 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10941 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10942 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10943 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10944 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10945 * config/arm/linux.mh (XDEPFILES): Delete.
10946 * config/arm/nbsd.mh (XDEPFILES): Delete.
10947 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10948 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10949 * config/i386/i386m3.mh (XDEPFILES): Delete.
10950 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10951 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10952 * config/i386/fbsd.mh (XDEPFILES): Delete.
10953 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10954 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10955 * config/i386/i386v4.mh (XDEPFILES): Delete.
10956 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10957 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10958 * config/i386/i386aix.mh (XDEPFILES): Delete.
10959 * config/i386/go32.mh (XDEPFILES): Delete.
10960 * config/i386/cygwin.mh (XDEPFILES): Delete.
10961 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10962 * config/i386/i386mach.mh (XDEPFILES): Delete.
10963 * config/i386/i386v32.mh (XDEPFILES): Delete.
10964 * config/i386/linux.mh (XDEPFILES): Delete.
10965 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10966 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10967 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10968 * config/i386/i386sco.mh (XDEPFILES): Delete.
10969 * config/i386/i386v.mh (XDEPFILES): Delete.
10970 * config/i386/nbsd.mh (XDEPFILES): Delete.
10971 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10972 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10973 * config/i386/symmetry.mh (XDEPFILES): Delete.
10974 * config/i386/obsd.mh (XDEPFILES): Delete.
10975 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10976 * config/ia64/linux.mh (XDEPFILES): Delete.
10977 * config/ia64/aix.mh (XDEPFILES): Delete.
10978 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10979 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10980 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10981 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10982 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10983 * config/m68k/linux.mh (XDEPFILES): Delete.
10984 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10985 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10986 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10987 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10988 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10989 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10990 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10991 * config/m88k/delta88.mh (XDEPFILES): Delete.
10992 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10993 * config/m88k/m88k.mh (XDEPFILES): Delete.
10994 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10995 * config/mips/linux.mh (XDEPFILES): Delete.
10996 * config/mips/irix6.mh (XDEPFILES): Delete.
10997 * config/mips/irix5.mh (XDEPFILES): Delete.
10998 * config/mips/irix4.mh (XDEPFILES): Delete.
10999 * config/mips/irix3.mh (XDEPFILES): Delete.
11000 * config/mips/decstation.mh (XDEPFILES): Delete.
11001 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11002 (NATDEPFILES): Move core-aout.o to here.
11003 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11004 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11005 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11006 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11007 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11008 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11009 * config/pa/hpux11.mh (XDEPFILES): Delete.
11010 * config/powerpc/aix.mh (XDEPFILES): Delete.
11011 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11012 * config/powerpc/linux.mh (XDEPFILES): Delete.
11013 * config/romp/rtbsd.mh: Rename XDEPFILES.
11014 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11015 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11016 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11017 * config/s390/s390.mh (XDEPFILES): Delete.
11018 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11019 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11020 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11021 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11022 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11023 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11024 * config/sparc/linux.mh (XDEPFILES): Delete.
11025 * config/vax/vaxult.mh (XDEPFILES): Delete.
11026 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11027 * Makefile.in (DEPFILES): Remove XDEPFILES.
11028
11029 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11030
11031 * utils.c (internal_verror): Fix comments, default is yes not no.
11032 Update queries to match. Default to quit and dump core.
11033
11034 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11035
11036 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11037 copyright.
11038 * defs.h, event-top.c, gdbcmd.h: Ditto.
11039 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11040 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11041 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11042 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11043 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11044 * mi/mi-main.c:Ditto.
11045
11046 * stack.c, symfile.c: Update copyright.
11047
11048 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11051 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11052 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11053 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11054
11055 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11056
11057 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11058 * gdbserver/low-lynx.c (myattach): Likewise.
11059 * gdbserver/low-nbsd.c (myattach): Likewise.
11060 * gdbserver/low-sim.c (myattach): Likewise.
11061 * gdbserver/low-sparc.c (myattach): Likewise.
11062 * gdbserver/low-sun3.c (myattach): Likewise.
11063
11064 * gdbserver/low-linux.c (myattach): New function.
11065
11066 * gdbserver/server.c (attach_inferior): New function.
11067 (main): Handle "--attach".
11068
11069 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11070
11071 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11072 maintainer.
11073
11074 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * c-typeprint.c (is_type_conversion_operator): Add additional
11077 check for non-conversion operators.
11078
11079 2002-01-15 Michael Snyder <msnyder@redhat.com>
11080
11081 * linux-proc.c: Add "info proc" command, a la procfs.c.
11082 (read_mapping): New function, abstract and re-use code.
11083 (linux_find_memory_regions): Use new func read_mapping.
11084 (linux_info_proc_cmd): New function, implement "info proc".
11085 (_initialize_linux_proc): Add new command "info proc".
11086
11087 2002-01-15 Michael Snyder <msnyder@redhat.com>
11088
11089 * symfile.c (generic_load): Use bfd_map_over_sections method
11090 instead of manipulating bfd structure members directly.
11091 (add_section_size_callback): New function, bfd sections callback
11092 used by generic_load.
11093 (load_sections_callback): New function, bfd sections callback
11094 used by generic_load.
11095
11096 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11097
11098 [Based on work by Jim Blandy]
11099 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11100 (builtin_type_vec128): Export.
11101 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11102 types.
11103 (builtin_type_vec128): New builtin type for 128 bit vector
11104 registers.
11105 (build_gdbtypes): Initialize builtin_type_v16qi and
11106 builtin_type_v8hi. Create the vec128 register builtin type
11107 structure.
11108 (build_builtin_type_vec128): New function.
11109 (_initialize_gdbtypes): Register builtin_type_v16qi and
11110 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11111 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11112 AltiVec register to new builtin type.
11113
11114 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11115
11116 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11117 to make_cv_type.
11118
11119 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11120
11121 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11122 CLEAN_UP_REGISTER_VALUE.
11123 * regcache.c (supply_register): Update only call.
11124
11125 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11126
11127 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11128 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11129 a29k-*-vxworks* targets as obsolete.
11130
11131 2002-01-14 Michael Snyder <msnyder@redhat.com>
11132
11133 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11134 until we can resolve portability issues.
11135 * gregset.h: Remove references to fpxregs.
11136 * gcore.c (gcore_command): Initialize note_sec to NULL.
11137
11138 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11139
11140 * signals.c (target_signal_to_name): Rewrite. Only use
11141 signals[].name when in bounds and non-NULL.
11142
11143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11144
11145 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11146 * signals.c (target_signal_to_name): Verify that SIG is within the
11147 bounds of the signals array.
11148
11149 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11150
11151 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11152
11153 2002-01-13 Keith Seitz <keiths@redhat.com>
11154
11155 * stack.c (print_frame_info_base): Print the frame's pc
11156 only if when print_frame_info_listing_hook is not defined.
11157
11158 2002-01-13 Keith Seitz <keiths@redhat.com>
11159
11160 * varobj.c (varobj_set_value): Make sure that there were no
11161 errors evaluating the object before attempting to set its
11162 value.
11163 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11164 so this offset adjustment is no longer necessary.
11165 (create_child): Don't set the error flag if the child is
11166 a CPLUS_FAKE_CHILD.
11167 (value_of_child): If value_fetch_lazy fails, return NULL
11168 so that callers will be notified that an error occurred.
11169 (c_value_of_variable): Delay check of variable's validity
11170 until later. We actually want all structs and unions to have
11171 the value "{...}".
11172 Do not return "???" for variables which could not be evaluated.
11173 This error condition must be returned to the caller so that it
11174 can get the error condition from gdb.
11175 (cplus_name_of_child): Adjust index for vptr before figuring
11176 out the name of the child.
11177 (cplus_value_of_child): If a child's (real) parent is not valid,
11178 don't even bother trying to give a value for it. Just return
11179 an error. Change all instances in this function.
11180 (cplus_type_of_child): If our parent is one of the "fake"
11181 parents, we need to get at the type of the real parent, and
11182 derive the child's true type using this information.
11183
11184 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11185
11186 From 2002-01-09 John Marshall <johnm@falch.net>:
11187 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11188 sources.redhat.com, and tweak some related URLs which had
11189 suffered from linkrot.
11190
11191 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11192
11193 From Jeff law:
11194 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11195 structures passed in registers.
11196
11197 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11198
11199 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11200 white space which prevented compilation. Reported by DSK
11201 <dsk@student.unsw.edu.au>.
11202
11203 2002-01-11 Michael Snyder <msnyder@redhat.com>
11204
11205 * symfile.c (build_section_addr_info_from_section_tab):
11206 Use bfd access method instead of manipulating bfd directly.
11207 (syms_from_objfile): Ditto.
11208 (simple_overlay_update_1): Ditto.
11209 (simple_overlay_update): Ditto.
11210 (generic_load): Ditto.
11211 (overlay_unmapped_address): FIXME comment, bfd access methods.
11212 (sections_overlap): FIXME comment, bfd access methods.
11213 (pc_in_mapped_range): FIXME comment, bfd access methods.
11214 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11215 (section_is_mapped): FIXME comment, bfd access methods.
11216 (section_is_overlay): FIXME comment, bfd access methods.
11217
11218 * symfile.c (generic_load): Whitespace and long line cleanups.
11219 Remove duplicate variable, change several local variables to
11220 more appropriate data types.
11221 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11222
11223 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11224
11225 From Peter Schauer:
11226 * language.c (longest_local_hex_string_custom): Use phex_nz to
11227 convert NUM to a hex string.
11228
11229 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11230
11231 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11232 the function.
11233 Update Copyright year.
11234
11235 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11236
11237 * language.c (longest_raw_hex_string): Delete unused function.
11238
11239 2002-01-11 Petr Sorfa <petrs@caldera.com>
11240
11241 * MAINTAINERS (write-after-approval): Add myself.
11242 * dwarf2read.c (read_tag_string_type): Handling of
11243 DW_AT_byte_size.
11244 (read_tag_string_type): FORTRAN fix to prevent propagation of
11245 first string size.
11246 (set_cu_language): Handling of DW_LANG_Fortran95
11247
11248 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11249
11250 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11251 GETPID(inferior_ptid).
11252 (store_inferior_registers): Likewise.
11253
11254 2002-01-10 Jason Merrill <jason@redhat.com>
11255
11256 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11257 Fix DW_OP_minus.
11258
11259 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11260
11261 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11262 and bfd/elf32-sh-nbsd.c.
11263
11264 2002-01-10 Michael Snyder <msnyder@redhat.com>
11265
11266 * NEWS: Mention --pid and corefile/proc-id behavior change.
11267
11268 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11269 * gcore.c: Include cli/cli-decode.h instead of command.h.
11270
11271 * main.c (captured_main): Add new command line option "--pid".
11272 If the second command line argument (following the symbol-file)
11273 begins with a digit, try to attach to it before trying to open
11274 it as a corefile.
11275 (print_gdb_help): Document the "--pid" argument.
11276
11277 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11278
11279 * completer.c (command_completer): New function.
11280
11281 * completer.h <command_completer>: Add prototype.
11282
11283 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11284 completer for the "help" command.
11285
11286 2002-01-09 Jason Merrill <jason@redhat.com>
11287
11288 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11289
11290 2002-01-09 Michael Snyder <msnyder@redhat.com>
11291
11292 * i386-linux-nat.c (fill_fpxregset): Make global.
11293 (store_fpxregset): Ditto.
11294
11295 * gregset.h (gdb_fpxregset_t): Define.
11296 (supply_fpxregset): Prototype.
11297 (fill_fpxregset): Prototype.
11298
11299 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11300
11301 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11302
11303 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11304 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11305 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11306
11307 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11308
11309 * MAINTAINERS: Update target maintainer rules so that any
11310 Maintainer can approve a tested patch for a maintenance-only
11311 target.
11312
11313 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11314
11315 * MAINTAINERS (write-after-approval): Add myself.
11316
11317 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11318 IN_SIGTRAMP.
11319
11320 2002-01-08 Michael Snyder <msnyder@redhat.com>
11321
11322 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11323 real name of the executable, rather than the /proc name.
11324
11325 2002-01-03 Michael Snyder <msnyder@redhat.com>
11326
11327 Implement a "generate-core-file" command in gdb, save target state.
11328 * gcore.c: New file. Implement new command 'generate-core-file'.
11329 Save a corefile image of the current state of the inferior.
11330 * linux-proc.c: Add linux-specific code for saving corefiles.
11331 * target.h (struct target_ops): Add new target vectors for saving
11332 corefiles; to_find_memory_regions and to_make_corefile_notes.
11333 (target_find_memory_regions): New macro.
11334 (target_make_corefile_notes): New macro.
11335 * target.c (update_current_target): Inherit new target methods.
11336 (dummy_find_memory_regions): New place-holder method.
11337 (dummy_make_corefile_notes): New place-holder method.
11338 (init_dummy_target): Initialize new dummy target vectors.
11339 * exec.c (exec_set_find_memory_regions): New function.
11340 Allow the exec_ops vector for memory regions to be taken over.
11341 (exec_make_note_section): New function, target vector method.
11342 * defs.h (exec_set_find_memory_regions): Export prototype.
11343 * procfs.c (proc_find_memory_regions): New function, corefile method.
11344 (procfs_make_note_section): New function, corefile method.
11345 (init_procfs_ops): Set new target vector pointers.
11346 (find_memory_regions_callback): New function.
11347 (procfs_do_thread_registers): New function.
11348 (procfs_corefile_thread_callback): New function.
11349 * sol-thread.c (sol_find_memory_regions): New function.
11350 (sol_make_note_section): New function.
11351 (init_sol_thread_ops): Initialize new target vectors.
11352 * inftarg.c (inftarg_set_find_memory_regions): New function.
11353 Allow to_find_memory_regions vector to be taken over.
11354 (inftarg_set_make_corefile_notes): New function.
11355 Allow to_make_corefile_notes vector to be taken over.
11356 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11357 interface layer if not target_has_execution (may be a corefile).
11358 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11359 * config/sparc/sun4sol2.mh: Ditto.
11360 * config/alpha/alpha-linux.mh: Ditto.
11361 * config/arm/linux.mh: Ditto.
11362 * config/i386/x86-64linux.mh: Ditto.
11363 * config/ia64/linux.mh: Ditto.
11364 * config/m68k/linux.mh: Ditto.
11365 * config/mips/linux.mh: Ditto.
11366 * config/powerpc/linux.mh: Ditto.
11367 * config/sparc/linux.mh: Ditto.
11368
11369 2002-01-07 Michael Snyder <msnyder@redhat.com>
11370
11371 * arm-linux-nat.c: Remove references to regcache.c internal data
11372 (registers[] and register_valid[]).
11373
11374 2002-01-07 Michael Snyder <msnyder@redhat.com>
11375
11376 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11377 so that attaching to a pid will automatically read the process's
11378 symbol file and shlibs.
11379 * Makefile.in: Add rule for linux-proc.o.
11380 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11381 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11382 * config/arm/linux.mh: Ditto.
11383 * config/i386/linux.mh: Ditto.
11384 * config/i386/x86-64linux.mh: Ditto.
11385 * config/ia64/linux.mh: Ditto.
11386 * config/m68k/linux.mh: Ditto.
11387 * config/mips/linux.mh: Ditto.
11388 * config/powerpc/linux.mh: Ditto.
11389 * config/sparc/linux.mh: Ditto.
11390
11391 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11392
11393 * win32-nat.c: Add i386-tdep.h dependency.
11394
11395 2002-01-07 Michael Snyder <msnyder@redhat.com>
11396
11397 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11398 instead of bfd_get_arch_size. Don't bail out just because
11399 there's no exec_bfd.
11400
11401 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11402 * p-valprint.c (pascal_object_print_value): Ditto.
11403 * somread.c (som_symtab_read): Ditto.
11404 * symfile.c (simple_free_overlay_region_table): Ditto.
11405 * valops.c (value_assign): Ditto.
11406
11407 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11408 use tilde_expand and strerror for opening save-tracepoints file.
11409
11410 * thread-db.c (thread_db_new_objfile): Indendation fix.
11411
11412 * infptrace.c (GDB_MAX_ALLOCA): New define.
11413 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11414 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11415 can be overridden with whatever value is appropriate to the host).
11416 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11417 alloca to allocate potentially large buffer.
11418 * rs6000-nat.c (child_xfer_memory): Ditto.
11419 * symm-nat.c (child_xfer_memory): Ditto.
11420 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11421
11422 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11423
11424 From Nick Clifton <nickc@redhat.com>
11425 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11426
11427 2002-01-07 Michael Snyder <msnyder@redhat.com>
11428
11429 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11430 Don't use exec_bfd if it's NULL.
11431
11432 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11433
11434 * valops.c (value_arg_coerce): Fix formatting.
11435
11436 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11437
11438 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11439 * gnu-nat.c: Ditto.
11440
11441 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11442
11443 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11444 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11445 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11446 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11447 z8k-coff have not been multi-arched. Update z8k-coff build
11448 status.
11449
11450 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11451
11452 * MAINTAINERS: Mark a29k target as obsolete.
11453 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11454 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11455 comments.
11456 * NEWS: Note that a29k targets are obsolete.
11457 * a29k-tdep.c: Mark as obsolete.
11458 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11459 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11460 a29k-*-vxworks* targets as obsolete.
11461 * remote-adapt.c: Obsolete.
11462 * remote-eb.c: Obsolete.
11463 * remote-mm.c: Obsolete.
11464 * remote-udi.c: Obsolete.
11465 * config/a29k/a29k-udi.mt: Obsolete.
11466 * config/a29k/a29k.mt: Obsolete.
11467 * config/a29k/tm-a29k.h: Obsolete.
11468 * config/a29k/tm-vx29k.h: Obsolete.
11469 * config/a29k/vx29k.mt: Obsolete.
11470
11471 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11472
11473 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11474 with BFD_ENDIAN_BIG.
11475
11476 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11477
11478 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11479 * configure, config.in: Re-generate.
11480 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11481 * defs.h: Do not include <endian.h>.
11482
11483 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11484
11485 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11486 * config.in: Regenerate.
11487 * configure.in: Update copyright years.
11488 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11489 * configure: Regenerate.
11490 * i386bsd-nat.c: Update copyright years.
11491 (fill_gregset): Use regcache_collect.
11492 (fetch_inferior_registers): Only fetch integer registers
11493 if requested to do so. Add support for XMM registers
11494 using PT_GETXMMREGS.
11495 (store_inferior_registers): Only store integer registers
11496 if requested to do so. Add support for XMM registers
11497 using PT_SETXMMREGS.
11498 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11499 (store_inferior_registers): Remove.
11500 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11501 (fetch_elfcore_registers): New function.
11502 (i386nbsd_elfcore_fns): New.
11503 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11504 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11505 i386bsd-nat.o.
11506 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11507 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11508 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11509 * config/i386/tm-nbsd.h: Update copyright years.
11510 (HAVE_SSE_REGS): Define.
11511 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11512 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11513 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11514 (SIGCONTEXT_PC_OFFSET): Remove.
11515 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11516
11517 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11518
11519 * configure.tgt: Remove powerpc-*-macos* target.
11520 * config/m68k/xm-mpw.h: Delete file.
11521 * config/xm-mpw.h: Delete file.
11522 * ser-mac.c: Delete file.
11523 * mpw-make.sed: Delete file.
11524 * mpw-config.in: Delete file.
11525 * mac-xdep.c: Delete file.
11526 * mac-gdb.r: Delete file.
11527 * mac-defs.h: Delete file.
11528 * mac-nat.c: Delete file.
11529 * config/powerpc/macos.mh: Delete file.
11530 * config/powerpc/macos.mt: Delete file.
11531 * config/powerpc/nm-macos.h: Delete file.
11532 * config/powerpc/tm-macos.h: Delete file.
11533 * source.c (openp, open_source_file): Remove obsolete code.
11534 * top.c (gdb_readline): Ditto.
11535 * utils.c (query): Ditto.
11536 * event-top.c (display_gdb_prompt): Ditto.
11537 * Makefile.in (ser-mac.o): Delete obsolete target.
11538 * NEWS: Update.
11539
11540 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11541
11542 * defs.h (BIG_ENDIAN): Delete macro definition.
11543 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11544 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11545 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11546 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11547 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11548 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11549 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11550 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11551 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11552 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11553 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11554 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11555 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11556 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11557 * gdbarch.c: Re-generate.
11558
11559 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11562 for core files.
11563
11564 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11565
11566 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11567
11568 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11569
11570 * value.h (value_ptr): Delete typedef.
11571
11572 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11573
11574 * i386nbsd-nat.c: Update copyright years.
11575 Include i386-tdep.h.
11576
11577 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11578
11579 * stabsread.c: Update copyright years.
11580
11581 From Debashis Mahata <debashis.mahata@wipro.com>:
11582 (read_struct_fields): Deal with Sun C compiler erroneous stab
11583 output for structs and unions.
11584 Fix PR gdb/269.
11585
11586 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11587
11588 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11589 prototype.
11590
11591 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11592
11593 * cp-abi.c: Fix whitespace.
11594 (baseclass_offset): New wrapper function.
11595 * cp-abi.h (baseclass_offset): Add prototype.
11596 (struct cp_abi_ops): Add baseclass_offset pointer.
11597
11598 * valops.c (vb_match): Move to...
11599 * gnu-v2-abi.c (vb_match): here.
11600 * valops.c (baseclass_offset): Move to...
11601 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11602
11603 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11604
11605 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11606 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11607 * hpacc-abi.c (init_hpacc_ops): Likewise.
11608
11609 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11610
11611 * valops.c (find_overload_match): Accept obj as a
11612 reference parameter. Update it before returning.
11613 * value.h (find_overload_match): Update prototype.
11614 * eval.c (evaluate_subexp_standard): Pass object to
11615 find_overload_match by reference.
11616
11617 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11618
11619 * valarith.c: Replace value_ptr with struct value pointer. Remove
11620 register attribute from value declarations.
11621 * valops.c: Ditto.
11622 * value.h: Ditto.
11623 * scm-lang.c (scm_lookup_name): Ditto.
11624
11625 2002-01-03 Michael Snyder <msnyder@redhat.com>
11626
11627 Abstract the functionality of iterating over mapped memory
11628 regions into a general purpose iterator function.
11629 * procfs.c (iterate_over_mappings): New function, general purpose
11630 iterator for memory sections.
11631 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11632 (solib_mappings_callback): New function, callback for above.
11633 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11634 (info_mappings_callback): New function, callback for above.
11635
11636 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11637
11638 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11639
11640 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11641 * i386-tdep.c: Include "elf-bfd.h".
11642 (process_note_abi_tag_sections): New function.
11643 (i386_gdbarch_init): Add code to recognize various OS/ABI
11644 combinations.
11645
11646 * maint.c (_initialize_maint_cmds): Add missing \ in
11647 string-literal.
11648
11649 For older changes see ChangeLog-2001
11650 \f
11651 Local Variables:
11652 mode: change-log
11653 left-margin: 8
11654 fill-column: 74
11655 version-control: never
11656 End: