Add support for distinct host and target character sets.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-19 Jim Blandy <jimb@redhat.com>
2
3 Add support for distinct host and target character sets.
4 * charset.c, charset.h: New files.
5 * c-exp.y: #include "charset.h".
6 (yylex): Convert character and string literals to the target
7 character set, before returning them as the semantic value of the
8 token.
9 * c-lang.c: #include "charset.h".
10 (c_emit_char): Use charset-specific methods to recognize
11 characters with backslash escape forms, to decide which characters
12 to print literally and which to print using numeric escape
13 sequences, and to convert target characters to host characters
14 before printing.
15 * utils.c: #include "charset.h".
16 (no_control_char_error): New function.
17 (parse_escape): Use charset-specific methods to recognize
18 backslash escapes, parse `control character' notation, and convert
19 characters from the host character set to the target character set.
20 * configure.in: Set the default host character set.
21 Check where to find iconv, and what its argument types might be.
22 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
23 * Makefile.in (SFILES): List charset.c.
24 (COMMON_OBS): List charset.o.
25 (charset.o): New rule.
26 (charset_h): New header dependency variable.
27 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
28 (LIBICONV): New variable, set by configure.
29 (CLIBS): Include $(LIBICONV) here.
30 * aclocal.m4, config.in, configure: Regenerated.
31
32 2002-09-19 Joel Brobecker <brobecker@gnat.com>
33
34 * ada-exp.y: Add missing semicolons to end rules. Fixes a
35 bison 1.35 warning.
36
37 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
38
39 * gdb_mbuild.sh: New file.
40
41 2002-09-19 Andrew Cagney <ac131313@redhat.com>
42
43 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
44
45 2002-09-18 Andrew Cagney <ac131313@redhat.com>
46
47 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
48 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
49 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
50 valops.c, value.h: Revert previous change.
51
52 2002-09-18 Michael Snyder <msnyder@redhat.com>
53
54 Preliminary support for Objective-C:
55 * defs.h (language_objc): New enum value.
56 (puts_filtered_tabular): Declaration only, exported from utils.c.
57 (skip_quoted): Delete, declared in completer.h.
58 * c-exp.y: Include completer.h.
59 * p-exp.y: Ditto.
60 * jv-exp.y: Ditto.
61 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
62 New operator enum values.
63 * language.h (CAST_IS_CONVERSION): Test for language_objc.
64 * language.c (binop_result_type): Handle language_objc case.
65 (integral_type, character_type, string_type, boolean_type,
66 structured_type, binop_type_check): Ditto.
67 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
68 (struct objc_specific): Add to general_symbol_info.
69 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
70 (SYMBOL_DEMANGLED_NAME): Handle objc case.
71 * parser-defs.h (struct objc_class_str): New struct type.
72 (start_msglist, end_msglist, add_msglist): Declaration only,
73 exported from objc-lang.c.
74 * value.h (value_of_local, value_nsstring,
75 call_function_by_hand_expecting_type): Exported from valops.c.
76 * valops.c (find_function_addr): Export.
77 (call_function_by_hand_expecting_type): New function.
78 (value_of_local): New function.
79 * symfile.c (init_filename_language_table): Add ".m" extension
80 for Objective-C.
81 * utils.c (puts_filtered_tabular): New function.
82 (fprintf_symbol_filtered): Add objc demangling support (disabled).
83 (set/show demangle): Extend help-string to refer to ObjC.
84 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
85 * stabsread.c (symbol_reference_defined): Objective-C symbols
86 may contain colons: make allowances when scanning stabs strings
87 for colons.
88 (objc_find_colon): New function.
89 * printcmd.c (address_info): If language == objc then print
90 "self" instead of "this".
91 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
92 OP_NSSTRING, and OP_SELF.
93 (prefixify_subexp): Ditto.
94 * source.c (print_source_lines): Mention objc in comment.
95 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
96 method names.
97
98 2002-09-18 Andrew Cagney <ac131313@redhat.com>
99
100 * complaints.h: Update copyright.
101 (struct complaints): Declare.
102 (struct complaint): Make `message' constant.
103 (internal_complaint): Declare.
104 (complaint): Declare.
105 (complaint_root): Delete declaration.
106 (symfile_complaints): Delete declaration.
107 (struct complaints): Add opaque declaration.
108 (clear_complaints): Add a complaints parameter.
109 * complaints.c: Update copyright.
110 (enum complaint_series): Define.
111 (complaint_root): Delete.
112 (struct complaints): Define.
113 (complaint_sentinel, symfile_complaint_book): New variables.
114 (symfile_explanations, symfile_complaints): New variables.
115 New variables.
116 (get_complaints): New function.
117 (vcomplaint): New function.
118 (complaint): New function.
119 (internal_complaint): New function.
120 (complain): Call vcomplain with symfile_complaint.
121 (clear_complaints): Rewrite.
122 (_initialize_complaints): Use add_setshow_command.
123 * Makefile.in (complaints.o): Update dependencies.
124 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
125 to call to clear_complaints.
126 (new_symfile_objfile, reread_symbols): Ditto.
127 (oldsyms_complaint): Delete.
128 (empty_symtab_complaint, unknown_option_complaint): Delete.
129 (free_named_symtabs): Use complaint instead of complain.
130
131 2002-09-18 Michael Snyder <msnyder@redhat.com>
132
133 Contributed by Apple Computer, Inc. Merged with current sources
134 by Adam Fedor <fedor@doc.com> [cagney].
135
136 * objc-lang.c: First clean-up round: comments, indentation.
137 * objc-lang.h: Ditto.
138 * objc-lang.y: Ditto.
139
140 2002-09-18 Andrew Cagney <ac131313@redhat.com>
141
142 * maint.c (maintenance_internal_error): Print the parameter as the
143 error message.
144 (maintenance_internal_warning): New function.
145 (_initialize_maint_cmds): Add command `maint internal-warning'.
146
147 * defs.h (internal_warning, internal_vwarning): Declare.
148 * utils.c (struct internal_problem): Define.
149 (internal_vproblem): New function.
150 (internal_warning): New function.
151 (internal_vwarning): New function.
152 (internal_warning_problem, internal_error_problem): New variables.
153 (internal_verror): Just call internal_vproblem.
154
155 2002-09-18 Michael Snyder <msnyder@redhat.com>
156
157 * objc-lang.c: New file, support for Objective-C.
158 Preliminary check-in, not yet integrated into gdb.
159 * objc-lang.h: New file.
160 * objc-exp.y: New file.
161
162 2002-09-18 Andrew Cagney <ac131313@redhat.com>
163
164 * infrun.c (signal_stop_update): Convert definition to ISO C.
165 (signal_print_update): Ditto.
166 (signal_pass_update): Ditto.
167 * inflow.c (terminal_save_ours): Ditto.
168
169 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
170 comments.
171
172 * config/djgpp/fnchange.lst: Handle name clashes between
173 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
174 bfd/coff-tic80.c.
175
176 * i386-linux-tdep.h: Fix tipo.
177
178 2002-09-18 Adam Fedor <fedor@gnu.org>
179
180 * MAINTAINERS: Add myself to the Write After Approval list.
181
182 2002-09-18 Jim Blandy <jimb@redhat.com>
183
184 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
185 texthigh and textlow to reader-specific structs caused
186 objfile_relocate to miss them. This is fixable, but the work that
187 the change was supposed to prepare GDB for never got done anyway.
188
189 2002-09-18 David Carlton <carlton@math.stanford.edu>
190
191 * MAINTAINERS: Alphabetize Write After Approval list.
192
193 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
194
195 Fix PR gdb/709
196 * values.c (value_static_field): Call read_var_value.
197
198 2002-09-18 Andrew Cagney <ac131313@redhat.com>
199
200 * valops.c (hand_function_call): Align the initial stack pointer
201 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
202 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
203 return value.
204 * mips-tdep.c (mips_frame_align): New function.
205 (mips_gdbarch_init): Set frame_align.
206 * gdbarch.sh (FRAME_ALIGN): New method.
207 * gdbarch.h, gdbarch.c: Re-generate.
208
209 2002-09-18 Michal Ludvig <mludvig@suse.cz>
210
211 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
212 registers.
213
214 2002-09-17 Andrew Cagney <ac131313@redhat.com>
215
216 * NEWS: Mention that MIPS $fp behavior changed.
217 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
218 reference to FP_REGNUM.
219 (mipsnbsd_cannot_store_register): Ditto.
220 * mips-linux-nat.c: Update copyright.
221 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
222 (mips_linux_cannot_store_register): Ditto.
223 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
224 * config/mips/tm-mips.h: Update copyright.
225 (FP_REGNUM): Delete macro.
226 (MIPS_REGISTER_NAMES): Replace "fp" with "".
227 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
228 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
229 (mips_r3041_reg_names, mips_r3051_reg_names)
230 (mips_r3081_reg_names): Replace "fp" with "".
231 Fix PR gdb/480.
232
233 2002-09-17 Theodore A. Roth <troth@verinet.com>
234
235 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
236 generic_read_register_dummy() (PR gdb/703).
237 (avr_push_return_address): #if 0 out unused vars.
238 (avr_gdbarch_init): Enable use of avr_push_return_address().
239
240 2002-09-17 Michael Snyder <msnyder@redhat.com>
241
242 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
243 RTE will take care of it.
244
245 2002-09-17 Andrew Cagney <ac131313@redhat.com>
246
247 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
248 invalid, return SP_REGNUM.
249
250 2002-09-17 Michael Snyder <msnyder@redhat.com>
251
252 * mips-tdep.c (mips_pop_frame): Read saved values of floating
253 point registers without sign extension.
254
255 2002-09-17 Andrew Cagney <cagney@redhat.com>
256
257 * blockframe.c (deprecated_read_register_dummy): Rename
258 generic_read_register_dummy.
259 * frame.c (frame_unwind_signed_register): New function.
260 (frame_unwind_unsigned_register): New function.
261 * frame.h (frame_unwind_signed_register): Declare.
262 (frame_unwind_unsigned_register): Declare.
263 (deprecated_read_register_dummy): Rename
264 generic_read_register_dummy.
265
266 * h8300-tdep.c (h8300_frame_chain): Update.
267 (h8300_frame_saved_pc): Update.
268 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
269 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
270 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
271 (s390_frame_chain): Update.
272 * v850-tdep.c (v850_find_callers_reg): Update.
273 (v850_frame_saved_pc): Update.
274 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
275 (m32r_find_callers_reg): Update.
276 (m32r_frame_saved_pc): Update.
277 * sh-tdep.c (sh_find_callers_reg): Update.
278 (sh64_get_saved_pr): Update.
279 (sh_init_extra_frame_info): Update.
280 (sh_init_extra_frame_info): Update.
281 (sh64_init_extra_frame_info): Update.
282 (sh64_init_extra_frame_info): Update.
283 * mcore-tdep.c (mcore_find_callers_reg): Update.
284 (mcore_frame_saved_pc): Update.
285 (mcore_init_extra_frame_info): Update.
286 * i386-tdep.c (i386_frame_saved_pc): Update.
287 * ia64-tdep.c (ia64_frame_saved_pc): Update.
288 (ia64_init_extra_frame_info): Update.
289 (ia64_init_extra_frame_info): Update.
290 * d10v-tdep.c (d10v_frame_saved_pc): Update.
291 * cris-tdep.c (cris_init_extra_frame_info): Update.
292 * avr-tdep.c (avr_frame_chain): Update.
293 (avr_init_extra_frame_info): Update.
294 (avr_frame_saved_pc): Update.
295 * arm-tdep.c (arm_find_callers_reg): Update.
296 (arm_init_extra_frame_info): Update.
297 (arm_frame_saved_pc): Update.
298
299 2002-09-17 Tom Tromey <tromey@redhat.com>
300
301 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
302 is "'".
303
304 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
305
306 * MAINTAINERS: Remove "non multi-arched" text from h8300.
307 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
308 NEXT_PROLOGUE_INSN.
309 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
310 NEXT_PROLOGUE_INSN.
311
312 2002-09-16 Joel Brobecker <brobecker@gnat.com>
313
314 * osfsolib.c: Remove file, replaced by solib-osf.c.
315 * Makefile.in: Remove compilation rules for osfsolib.c.
316
317 2002-09-16 David Carlton <carlton@math.stanford.edu>
318
319 * cp-valprint.c (cp_print_class_method): Correct args to
320 check_stub_method_group.
321
322 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
323
324 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
325 `set architecture'. Unify naming convention of functions.
326 (h8300_skip_prologue): Improve prologue analysis.
327 (h8300_push_arguments): Rewritten to more closely match GCC's
328 bizarre argument-passing behavior, along with the comment describing
329 said behavior.
330 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
331 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
332 sim, remote-e7000.c, remote-hms.c and remote.c
333
334 2002-09-15 Mark Kettenis <kettenis@gnu.org>
335
336 * i386-tdep.c (gdb_print_insn_i386): Removed.
337 (i386_print_insn): New function.
338 (i386_gdbarch_init): Set print_insn to i386_print_insns.
339 (_initialize_i386_tdep): Don't initialize tm_print_insn and
340 tm_print_insn_info.
341
342 2002-09-14 Mark Kettenis <kettenis@gnu.org>
343
344 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
345 zero.
346
347 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
348
349 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
350 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
351 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
352
353 2002-09-13 Christopher Faylor <cgf@redhat.com>
354
355 * win32-nat.c (child_create_inferior): Honor 'tty' command.
356
357 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
358
359 * gdbtypes.c (check_stub_method): Make static.
360 (check_stub_method_group): New function.
361 * gdbtypes.h: Update prototypes.
362 * cp-support.c: New file.
363 * cp-support.h: New file.
364
365 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
366 (update_method_name_from_physname): New function.
367 (read_member_functions): Correct method names for operators
368 and v3 constructors/destructors. Separate v2 constructors and
369 destructors.
370 * Makefile.in (stabsread.o): Update dependencies.
371 (SFILES): Add cp-support.c.
372 (COMMON_OBS): Add cp-support.o.
373 (cp_support_h, cp-support.o): Add.
374
375 * cp-valprint.c (cp_print_class_method): Call
376 check_stub_method_group instead of check_stub_method. Remove
377 extraneous QUITs.
378 * p-valprint.c (pascal_object_print_class_method): Likewise.
379 * valops.c (search_struct_method): Likewise.
380 (find_method_list, value_struct_elt_for_reference): Likewise.
381
382 2002-09-13 Andrew Cagney <cagney@redhat.com>
383
384 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
385 * gdbarch.h, gdbarch.c: Regenerate.
386
387 2002-09-13 Andrew Cagney <ac131313@redhat.com>
388
389 * frame.c (find_saved_register): Delete function.
390 * frame.h (find_saved_register): Delete declaration.
391 Fix PR gdb/631.
392
393 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
394
395 * mips-tdep.c (read_next_frame_reg): Re-hack using
396 frame_register_unwind.
397
398 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
399
400 * mips-tdep.c (mips_get_saved_register): Re-hack using
401 frame_register_unwind.
402
403 2002-09-12 Joel Brobecker <brobecker@gnat.com>
404
405 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
406 vector. Will be useful for Interix.
407 * gdbarch.h, gdbarch.c: Regenerate.
408
409 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
410 name of the malloc function by NAME_OF_MALLOC.
411
412 2002-09-12 Joel Brobecker <brobecker@gnat.com>
413
414 * value.h (find_function_in_inferior): Add const keyword to
415 one of the parameters. Allows us to invoke this function with
416 a const char *.
417 * valops.c (find_function_in_inferior): Likewise.
418
419 2002-09-12 Joel Brobecker <brobecker@gnat.com>
420
421 * exec.c (xfer_memory): Fix compilation warning with old versions
422 of GCC.
423 * tracepoint.c (trace_find_tracepoint_command): Likewise.
424
425 2002-09-12 David Carlton <carlton@math.stanford.edu>
426
427 * symtab.h: Run through gdb_indent.h.
428 Add 2002 to Copyright year list.
429
430 2002-09-12 Alan Modra <amodra@bigpond.net.au>
431
432 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
433 mach constants.
434 * MAINTAINERS: Add myself to write after approval list.
435
436 2002-09-11 J. Brobecker <brobecker@gnat.com>
437
438 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
439
440 2002-09-11 J. Brobecker <brobecker@gnat.com>
441
442 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
443 Interix.
444
445 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
446
447 * procfs.c (do_detach): Clear current signal, not just fault.
448 Corrects problem with breakpoint trap signal leaking to detached
449 process on Tru64.
450
451 2002-09-10 Michael Snyder <msnyder@redhat.com>
452
453 * buildsym.c (finish_block): Protect against null pointer.
454
455 2002-09-10 Andrew Cagney <cagney@redhat.com>
456
457 * infcmd.c (default_print_registers_info): Send all output to
458 ``file'' instead of ``gdb_stdout''.
459
460 2002-09-10 Michael Snyder <msnyder@redhat.com>
461
462 * mips-tdep.c (mips_extract_struct_value_address): Make val a
463 LONGEST, and use signed register read (addresses are sign-
464 extended for mips).
465
466 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
467
468 * event-loop.c (gdb_do_one_event): Make public.
469 * event-loop.h (gdb_do_one_event): Declare.
470
471 2002-09-10 Jeff Law <law@redhat.com>
472
473 * infttrace.c (child_resume): Simplify and rework to avoid
474 TT_PROC_CONTINUE.
475
476 2002-09-09 Fred Fish <fnf@intrinsity.com>
477
478 * printcmd.c (print_scalar_formatted): "len" is the number of
479 target bytes, NOT the number of target bits.
480
481 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
482
483 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
484 * top.c (init_main): Set rl_terminal_name.
485
486 2002-09-08 Aidan Skinner <aidan@velvet.net>
487
488 * ada-lang.c (ada_array_bound, ada_type_match,
489 _initialize_ada_language): Fix K&R definitions.
490 * ada-tasks.c (get_current_task): Fix K&R definitions.
491 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
492
493 2002-09-07 Christopher Faylor <cgf@redhat.com>
494
495 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
496 Add XP.
497
498 2002-09-06 Mark Kettenis <kettenis@gnu.org>
499
500 * i386-tdep.c (i386_register_virtual_type,
501 i386_register_convertible, i386_register_convert_to_virtual,
502 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
503 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
504 (i386_gdbarch_init): Fix comment. Add comments on calls that set
505 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
506 Don't set push_arguments twice.
507
508 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
509 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
510 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
511 sigtramp_end to NULL.
512 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
513 defines.
514 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
515
516 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
517 whitespace.
518
519 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
520 * gdbarch.h, gdbarch.c: Re-generate.
521 * blockframe.c (find_pc_sect_partial_function): Convert to use
522 SIGTRAMP_START_P predicate.
523
524 2002-09-05 Michael Snyder <msnyder@redhat.com>
525
526 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
527 generic_dummy_frame method and old method. Also distinguish
528 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
529 (arm_extract_return_value): Use new regcache method.
530
531 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
532 adjustment that doesn't conform to the ABI.
533 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
534 saved regcache, not from current regcache.
535
536 2002-09-05 Andrew Cagney <ac131313@redhat.com>
537
538 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
539 * README: Update.
540
541 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
542
543 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
544 if arm_apcs_32 is false.
545
546 2002-09-04 Andrew Cagney <ac131313@redhat.com>
547
548 GDB 5.3 branch created.
549
550 2002-09-03 Theodore A. Roth <troth@verinet.com>
551
552 * gdb/avr-tdep.c (avr_gdbarch_init): Use
553 generic_unwind_get_saved_register.
554
555 2002-09-03 David Carlton <carlton@math.stanford.edu>
556
557 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
558 argument (PR gdb/653). Update call to smash_to_method_type.
559 (read_structure_scope): Update call to dwarf2_add_member_fn.
560
561 2002-09-03 Michal Ludvig <mludvig@suse.cz>
562
563 * x86-64-linux-tdep.c: Include gdb_string.h
564 * x86-64-linux-nat.c: Ditto.
565
566 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
567
568 * ada-exp.y (yyname, yyrule): Remap global variables that appear
569 when YYDEBUG is set to 1.
570 * c-exp.y: Likewise.
571 * f-exp.y: Likewise.
572 * jv-exp.y: Likewise.
573 * m2-exp.y: Likewise.
574 * p-exp.y: Likewise.
575
576 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
577
578 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
579 dependency list.
580 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
581 solib_svr4_fetch_link_map_offsets to
582 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
583 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
584 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
585 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
586 solib-svr4.o, and solib-legacy.o.
587 * config/i386/tm-nbsd.h: Include solib.h.
588
589 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
590
591 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
592 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
593 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
594 comment noting that this needs its own target configuration.
595 * config/i386/nbsd.mt: New file.
596 * config/i386/nbsdaout.mt: Remove.
597 * config/i386/nbsdelf.mt: Ditto.
598 * config/i386/tm-nbsdaout.h: Ditto.
599
600 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
601
602 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
603 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
604 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
605 tdep->sigtramp_end.
606 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
607 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
608 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
609
610 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
611
612 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
613 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
614 * i386-tdep.h (i386bsd_init_abi): New prototype.
615 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
616 function declaration.
617 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
618 for NetBSD-a.out or NetBSD-ELF.
619 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
620 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
621 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
622 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
623 and nbsd-tdep.h.
624 (i386nbsd_pc_in_sigtramp): New function.
625 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
626 i386nbsd_pc_in_sigtramp.
627 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
628 and i386nbsdelf_init_abi OS ABI handlers.
629 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
630 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
631
632 2002-09-02 Mark Kettenis <kettenis@gnu.org>
633
634 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
635 registers if the target really has them.
636
637 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
638
639 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
640 than nbsd-tdep.h.
641
642 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
643
644 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
645 list.
646 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
647 (alphanbsd_skip_sigtramp_frame): New functions.
648 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
649 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
650 to alphanbsd_sigcontext_addr.
651
652 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
653
654 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
655 list.
656 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
657 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
658 nbsd_pc_in_sigtramp.
659 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
660 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
661 * nbsd-tdep.c: Include gdb_string.h.
662 (nbsd_pc_in_sigtramp): New function.
663 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
664 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
665 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
666 ppcnbsd_pc_in_sigtramp.
667 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
668 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
669 shnbsd_pc_in_sigtramp.
670 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
671 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
672 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
673
674 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
675
676 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
677 watchpoints to NULL.
678 (insert_breakpoints): set val field of watchpoints if NULL.
679
680
681 2002-08-29 Jim Blandy <jimb@redhat.com>
682
683 * symtab.c (lookup_symbol_aux): In the cases where we find a
684 minimal symbol of an appropriate name and use its address to
685 select a symtab to read and search, use `name' (as passed to us)
686 as the demangled name when searching the symtab's global and
687 static blocks, not the minsym's name.
688
689 2002-08-29 Keith Seitz <keiths@redhat.com>
690
691 * stack.c (print_frame_info_base): Always set current_source_symtab
692 and current_source_line.
693
694 2002-08-29 Donn Terry <donnte@microsoft.com>
695
696 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
697
698 2002-08-28 Keith Seitz <keiths@redhat.com>
699
700 * stack.c (select_frame): Add FIXME concerning selected-frame
701 events.
702 (select_frame_command): Send selected-frame-level-changed
703 event notification, but only if the level actually changed.
704 (up_silently_base): Add selected-frame-level-changed event
705 notification.
706 (down_silently_base): Likewise.
707
708 2002-08-28 Andrew Cagney <ac131313@redhat.com>
709
710 * Makefile.in: Update dependencies for all gdb/*.c files.
711
712 2002-08-27 Tom Tromey <tromey@redhat.com>
713
714 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
715 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
716 Update dependencies.
717 * i387-tdep.c: Include gdb_string.h.
718 * osabi.c: Likewise.
719 * i386-linux-nat.c: Likewise.
720 * lin-lwp.c: Likewise.
721 * ax-gdb.c: Likewise.
722 * signals/signals.c: Likewise.
723 * jv-valprint.c: Likewise.
724 * p-lang.c: Likewise.
725 * c-valprint.c: Likewise.
726 * cp-abi.c: Likewise.
727
728 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
729
730 * cli/cli-script.h (copy_command_lines): Export.
731 * breakpoint.c: Include cli/cli-script.h.
732 * Makefile.in (breakpoint.o): Update dependencies.
733
734 2002-08-26 Michael Snyder <msnyder@redhat.com>
735
736 * breakpoint.c (insert_breakpoints): Protect all references
737 to 'process_warning'. Shorten long lines.
738
739 2002-08-26 Joel Brobecker <brobecker@gnat.com>
740
741 * cli/cli-script.c (copy_command_lines): New function.
742 * defs.h (copy_command_lines): Export.
743 * testsuite/gdb.base/commands.exp: New tests for commands
744 attached to a temporary breakpoint, and for commands that
745 delete the breakpoint they are attached to.
746
747 2002-08-26 Michael Snyder <msnyder@redhat.com>
748
749 * breakpoint.c (bpstat_stop_status): Instead of copying the
750 pointer to the breakpoint commands struct, make a new copy
751 of the struct and point to that.
752 (bpstat_clear): Free the commands struct.
753 (bpstat_clear_actions): Free the commands struct.
754 (bpstat_do_actions): Free the command actions. Also execute
755 the local cleanups, instead of deleting them.
756 (delete_breakpoint): Leave the commands field of the bpstat
757 chain alone -- it will be freed later.
758
759 2002-08-26 Kevin Buettner <kevinb@redhat.com>
760
761 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
762 deleted in 2002-08-20 commit. This function is still used by
763 ppc-linux-nat.c.
764
765 2002-08-26 Keith Seitz <keiths@redhat.com>
766
767 * gdb-events.sh: Add selected-frame-level-changed event.
768 * gdb-events.c: Regenerated.
769 * gdb-events.h: Regenerated.
770
771 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
772
773 Fix PR gdb/393:
774 * inflow.c (terminal_save_ours): New function to save terminal
775 settings.
776 * inferior.h (terminal_save_ours): Declare.
777 * target.c (debug_to_terminal_save_ours): New function.
778 (cleanup_target): Defaults to_terminal_save_ours.
779 (update_current_target): Inherit to_terminal_save_ours.
780 (setup_target_debug): Set to_terminal_save_ours.
781 * target.h (target_terminal_save_ours): New to save terminal settings.
782 (target_ops): New member to_terminal_save_ours.
783 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
784 * hpux-thread.c (init_hpux_thread_ops): Likewise.
785 * inftarg.c (init_child_ops): Likewise.
786 * m3-nat.c (init_m3_ops): Likewise.
787 * procfs.c (init_procfs_ops): Likewise.
788 * wince.c (init_child_ops): Likewise.
789 * win32-nat.c (init_child_ops): Likewise.
790 * sol-thread.c (init_sol_thread_ops): Likewise.
791
792 2002-08-26 Mark Kettenis <kettenis@gnu.org>
793
794 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
795 use regcache_* functions.
796 (i386_gdbarch_init): Set store_return_value instead of
797 deprecated_store_return_value.
798
799 * regcache.c (regcache_raw_write_signed,
800 regcache_raw_write_unsigned): New functions.
801 * regcache.h (regcache_raw_write_signed,
802 regcache_raw_write_unsigned): New prototypes.
803
804 2002-08-25 Andrew Cagney <ac131313@redhat.com>
805
806 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
807 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
808 source file dependencies. Cleanup corresponding generator rules.
809
810 2002-08-25 Andrew Cagney <ac131313@redhat.com>
811
812 * regcache.h (register_offset_hack): Declare.
813 (regcache_cooked_read_using_offset_hack): Declare.
814 (regcache_cooked_write_using_offset_hack): Declare.
815
816 * regcache.c (register_offset_hack): New function.
817 (regcache_cooked_read_using_offset_hack): New function.
818 (regcache_cooked_write_using_offset_hack): New function.
819 (regcache_dump): Check that the registers, according to their
820 offset, are packed hard against each other.
821 (cooked_xfer_using_offset_hack): New function.
822
823 2002-08-25 Andrew Cagney <ac131313@redhat.com>
824
825 * regcache.c (struct regcache_descr): Add field register_type.
826 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
827 in as a parameter
828 (init_regcache_descr): Initialize register_type. Pass the descr
829 to init_legacy_regcache_descr. Use register_type instead of
830 REGISTER_VIRTUAL_TYPE.
831 (register_type): New function.
832 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
833 * regcache.h (register_type): Declare.
834
835 2002-08-25 Andrew Cagney <ac131313@redhat.com>
836
837 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
838 instead of deprecated_store_return_value. Fix fallout from
839 2002-08-23 Andrew Cagney <cagney@redhat.com>.
840
841 2002-08-25 Andrew Cagney <ac131313@redhat.com>
842
843 * regcache.c (max_register_size): New function.
844 (init_legacy_regcache_descr): Ensure that max_register_size is
845 large enough for REGISTER_VIRTUAL_SIZE.
846 * regcache.h (max_register_size): Declare.
847
848 2002-08-24 Andrew Cagney <ac131313@redhat.com>
849
850 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
851 store_return_value.
852 (e500_extract_return_value): Change type of valbuf pointer to
853 void.
854
855 2002-08-24 Mark Kettenis <kettenis@gnu.org>
856
857 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
858 workaround.
859
860 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
861 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
862 long long) to prevent compiler warning on 64-bit systems.
863
864 2002-08-23 Andrew Cagney <cagney@redhat.com>
865
866 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
867 (DEPRECATED_STORE_RETURN_VALUE): New method.
868 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
869 * gdbarch.h, gdbarch.c: Re-generate.
870
871 * values.c (set_return_value): Pass current_regcache to
872 STORE_RETURN_VALUE.
873 * arch-utils.h (legacy_store_return_value): Declare.
874 * arch-utils.c (legacy_store_return_value): New function.
875 (legacy_extract_return_value): Update parameters.
876
877 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
878 STORE_RETURN_VALUE.
879 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
880 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
881 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
882 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
883 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
884 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
885 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
886 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
887 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
888 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
889
890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
891 * i386-tdep.c (i386_extract_return_value): Update.
892 * arch-utils.c (legacy_extract_return_value): Update.
893 * frv-tdep.c (frv_gdbarch_init): Update.
894 * cris-tdep.c (cris_gdbarch_init): Update.
895 * d10v-tdep.c (d10v_gdbarch_init): Update.
896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
897 * m68k-tdep.c (m68k_gdbarch_init): Update.
898 * mcore-tdep.c (mcore_gdbarch_init): Update.
899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
900 * s390-tdep.c (s390_gdbarch_init): Update.
901 * sparc-tdep.c (sparc_gdbarch_init): Update.
902 * sh-tdep.c (sh_gdbarch_init): Update.
903 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
904 * v850-tdep.c (v850_gdbarch_init): Update.
905 * avr-tdep.c (avr_gdbarch_init): Update.
906 * ia64-tdep.c (ia64_gdbarch_init): Update.
907 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
908 * vax-tdep.c (vax_gdbarch_init): Update.
909 * alpha-tdep.c (alpha_gdbarch_init): Update.
910 * arm-tdep.c (arm_gdbarch_init): Update.
911 * mips-tdep.c (mips_gdbarch_init): Update.
912 * i386-tdep.c (i386_gdbarch_init): Update.
913
914 2002-08-23 Andrew Cagney <ac131313@redhat.com>
915
916 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
917 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
918
919 2002-08-24 Mark Kettenis <kettenis@gnu.org>
920
921 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
922 problems.
923
924 2002-08-23 Joel Brobecker <brobecker@gnat.com>
925
926 * infrun.c (handle_inferior_event): Move a comment outside of a
927 function call, in order to avoid indent reformatting this part
928 of the code in an unreadable way.
929
930 2002-08-23 Grace Sainsbury <graces@redhat.com>
931
932 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
933 when breakpoints fail. Move general breakpoint error messages to
934 insert_breakpoints.
935 * breakpoint.c (insert_breakpoints): Change warnings when
936 breakpoints are nto inserted to specify the type. Remove call to
937 memory_error when hardware breakpoints can't be inserted. Remove
938 multiple calls to warning so all messages are sent to the user at
939 once.
940 (delete_breakpoints): Make insert error messsages more explicit.
941
942 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
943
944 * ChangeLog: Move gdbserver entries after GDB 5.2 to
945 gdbserver/ChangeLog.
946
947 2002-08-23 Mark Kettenis <kettenis@gnu.org>
948
949 * i386-tdep.c: Include "objfiles.h".
950 (i386_svr4_init_abi): Set in_solib_call_trampoline and
951 skip_trampoline_code.
952 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
953 (CPLUS_MARKER): Define to '.'.
954
955 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
956 member.
957 (linux_corefile_thread_callback): Increase args->num_notes.
958 (linux_make_note_section): Initialize thread_args.num_notes, and
959 use it to determine whether notes for any threads were created.
960
961 2002-08-23 Donn Terry <donnte@microsoft.com>
962
963 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
964 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
965 and PCUNKILL.
966 (write_with_trace): Conditionalize out the switch branch handling
967 PCSHOLD if the corresponding macro is not defined. Likewise for
968 PRSABORT and PRSTOP.
969 This change will be needed by the Interix port.
970
971 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
972
973 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
974 write_register wherever possible instead of manipulating the
975 register bytes directly.
976 Assign VALUE_CONTENTS to a variable and use that.
977 The GPR numbers are now dependent on the architecture.
978
979 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
980
981 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
982 ev_offset fields.
983 (skip_prologue): Add support for BookE/e500 instructions.
984 (e500_extract_return_value): New function.
985 (frame_get_saved_regs): Add support for saving ev registers and
986 pseudo gpr's.
987 (e500_store_return_value): New function.
988 (rs6000_gdbarch_init): Move up default intializations of
989 deprecated_extract_return_value and store_return_value. Overwrite
990 init of store_return_value with e500 specific version.
991 Set extract_return_value for e500.
992
993 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
994
995 * blockframe.c (generic_call_dummy_register_unwind): Use
996 regcache_cooked_read to catch cases in which the variable is
997 stored in a pseudo register.
998
999 2002-08-22 Andrew Cagney <cagney@redhat.com>
1000
1001 * NEWS: Mention that the i960 has been made obsolete.
1002 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1003 i960-tdep.c
1004 (remote-nrom.o): Obsolete target.
1005 (remote-nindy.o, i960-tdep.o): Ditto.
1006 * remote-nrom.c: Make file obsolete.
1007 * remote-nindy.c, remote-vx960.c: Ditto.
1008 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1009 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1010 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1011 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1012 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1013 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1014 i960-*-vxworks* obsolete.
1015 * MAINTAINERS: Note that the i960 is obsolete.
1016
1017 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1018
1019 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1020 detach to allow reinitialization.
1021
1022 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1023
1024 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1025 attempt).
1026
1027 2002-08-22 Jim Blandy <jimb@redhat.com>
1028
1029 * coffread.c (coff_symfile_read): Don't try to read the line
1030 number table from disk if the image file doesn't have a symbol
1031 table; we'll never actually look at the info anyway, and Windows
1032 ships DLL's with bogus file offsets for the line number data.
1033
1034 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1035
1036 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1037 an e500 executable.
1038
1039 2002-08-21 Michael Snyder <msnyder@redhat.com>
1040
1041 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1042 (MSYMBOL_SIZE): Replace macro with function.
1043 (DEFAULT_MIPS_TYPE): Delete unused macro.
1044 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1045 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1046
1047 2002-08-21 Jim Blandy <jimb@redhat.com>
1048
1049 * valops.c (value_cast): Simplify and correct logic for doing a
1050 static cast from a pointer to a base class to a pointer to a
1051 derived class.
1052
1053 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1054
1055 * infcmd.c (default_print_registers_info): Replace
1056 do_registers_info.
1057 (registers_info): Use gdbarch_print_registers_info instead of
1058 DO_REGISTERS_INFO.
1059 * inferior.h (default_print_registers_info): Replace
1060 do_registers_info.
1061 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1062 (DO_REGISTERS_INFO): Change to a predicate function.
1063 * gdbarch.h, gdbarch.c: Regenerate.
1064
1065 2002-08-21 Keith Seitz <keiths@redhat.com>
1066
1067 * gdb-events.sh: Add target-changed event.
1068 * gdb-events.c: Regenerated.
1069 * gdb-events.c: Regenerated.
1070 * valops.c (value_assign): Add target-changed event notification
1071 to inlval_register, lval_memory, and lval_reg_frame_relative.
1072
1073 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1074
1075 * NEWS: Add an entry regarding the improvement of the next/step
1076 operation on Alpha Tru64 multi-processor machines.
1077
1078 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1079
1080 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1081 directores.
1082 * Makefile.in: Update all _h macro definitions.
1083 * Makefile.in (install-gdbtk): Move to install section.
1084 (rdi-share/libangsd.a): Move to end of file.
1085
1086 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1087
1088 * frame.c (frame_register_unwind): When a register, set addrp to
1089 the register's byte.
1090
1091 2002-08-20 Michael Snyder <msnyder@redhat.com>
1092
1093 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1094 used locally, so move them from the target machine header to here.
1095 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1096 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1097 Make static.
1098 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1099
1100 2002-08-20 Andrew Cagney <cagney@redhat.com>
1101
1102 * NEWS: Mention that the Apollo line was made obsolete.
1103 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1104 m68*-hp-hpux* obsolete.
1105 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1106 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1107 * buildsym.c (make_blockvector): Make static.
1108 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1109 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1110 (ALLDEPFILES): Remove dstread.c.
1111 (dstread.o): Obsolete make rule.
1112 * dstread.c: Makefile obsolete.
1113 * dst.h: Ditto.
1114 * config/m68k/hp300hpux.mt: Ditto.
1115 * config/m68k/hp300hpux.mh: Ditto.
1116 * config/m68k/hp300bsd.mt: Ditto.
1117 * config/m68k/hp300bsd.mh: Ditto.
1118 * config/m68k/apollo68b.mt: Ditto.
1119 * config/m68k/apollo68v.mh: Ditto.
1120 * config/m68k/apollo68b.mh: Ditto.
1121
1122 2002-08-20 Michael Snyder <msnyder@redhat.com>
1123
1124 * mips-tdep.c (mips_in_return_stub): Make static.
1125 (mips_gdbarch_init): Set in_solib_return_trampoline.
1126 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1127
1128 2002-08-20 Michael Snyder <msnyder@redhat.com>
1129
1130 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1131 * gdbarch.c, gdbarch.h: Regenerate.
1132 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1133 Add.
1134 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1135
1136 2002-08-20 Michael Snyder <msnyder@redhat.com>
1137
1138 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1139 (mips_gdbarch_init): Set skip_trampoline_code,
1140 in_solib_call_trampoline.
1141 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1142 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1143
1144 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1145
1146 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1147
1148 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1149 vector type for ev registers.
1150 (e500_pseudo_register_read): New function.
1151 (e500_pseudo_register_write): New function.
1152 (e500_dwarf2_reg_to_regnum): New function.
1153 (PPC_UISA_NOFP_SPRS): New macro.
1154 (PPC_EV_REGS): New macro.
1155 (PPC_GPRS_PSEUDO_REGS): New macro.
1156 (registers_e500): New register set for e500.
1157 (variants): Add e500 variant.
1158 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1159 before setting architectural dependent variations. Initialize ev
1160 registers numbers. Add case for e500 architecture. Set the
1161 number of pseudo registers.
1162
1163 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1164
1165 * rs6000-tdep.c: Clean up comments.
1166
1167 2002-08-20 Andrew Cagney <cagney@redhat.com>
1168
1169 * h8300-tdep.c: Re-indent file.
1170
1171 2002-08-20 Jim Blandy <jimb@redhat.com>
1172
1173 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1174 default for this.
1175
1176 2002-08-20 Keith Seitz <keiths@redhat.com>
1177
1178 * breakpoints.c (watch_command_1): Use internal breakpoint
1179 when setting a watchpoint_scope breakpoint.
1180
1181 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1182
1183 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1184 (build_builtin_type_vec64i): Ditto.
1185 (build_builtin_type_vec128): Ditto.
1186 (build_builtin_type_vec128i): Ditto.
1187
1188 2002-08-19 Michael Snyder <msnyder@redhat.com>
1189
1190 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1191 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1192 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1193 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1194 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1195 CALL_DUMMY_ADDRESS): Delete.
1196 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1197 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1198 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1199 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1200 push_return_address.
1201 (mips_register_raw_size, mips_eabi_use_struct_convention,
1202 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1203 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1204 mips_init_extra_frame_info, mips_eabi_push_arguments,
1205 mips_n32n64_push_arguments, mips_push_return_address,
1206 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1207 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1208
1209 2002-08-19 Michael Snyder <msnyder@redhat.com>
1210
1211 * mips-tdep.c (mips_frame_num_args): New function.
1212 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1213 frame_saved_pc, frame_args_address, frame_locals_address,
1214 frame_num_args, and frame_args_skip.
1215 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1216 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1217 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1218 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1219
1220 2002-08-20 Michael Snyder <msnyder@redhat.com>
1221
1222 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1223 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1224 * mips-tdep.c (mips_store_struct_return): New function.
1225 (mips_extract_struct_value_address): New function.
1226 (mips_gdbarch_init): Set store_struct_return and
1227 extract_struct_value_address.
1228
1229 2002-08-20 David Carlton <carlton@math.stanford.edu>
1230
1231 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1232 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1233 (read_file_scope): Check that line_header is nonzero before
1234 decoding macro information.
1235
1236 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1237
1238 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1239 flag the general-purpose registers as floating-point on targets
1240 that don't support the floating-point registers.
1241
1242 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1243
1244 * rs6000-tdep.c (altivec_register_p): Delete.
1245 (rs6000_do_altivec_registers): Delete.
1246 (rs6000_altivec_registers_info): Delete.
1247 (rs6000_do_registers_info): Delete.
1248 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1249 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1250
1251 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1252
1253 * infcmd.c (do_registers_info): Print vector registers in hex
1254 format only.
1255 (print_vector_info): Check that printing registers
1256 makes sense.
1257 (print_float_info): Ditto.
1258
1259 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1260
1261 * mips-tdep.c (mips_gdbarch_init): Update.
1262 (mips_o32_extract_return_value): Rewrite.
1263 (mips_o32_store_return_value): Rewrite.
1264 (mips_o32_xfer_return_value): New function.
1265 (mips_xfer_register): Tweak debug print message. Allow for
1266 buf_offset when dumping the value transfered.
1267
1268 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1269
1270 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1271 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1272 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1273 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1274 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1275
1276 2002-08-14 Michael Snyder <msnyder@redhat.com>
1277
1278 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1279
1280 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1281
1282 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1283 register.
1284 (P): New macro to define a register as a pseudo register.
1285 (R, R4, R8, R16, FR32, R64, R0): Updated.
1286 (struct variant): Add new fields for number of pseudo registers
1287 and number of total registers.
1288 (tot_num_registers): New macro replacing....
1289 (num_registers): ...deleted macro.
1290 (num_registers): New function.
1291 (num_pseudo_registers): New function.
1292 (variants): Update all variants to intialize new fields correctly.
1293 Postpone initialization of number of pseudo regs and real regs.
1294 (init_variants): New function.
1295 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1296 registers offsets.
1297
1298 2002-08-19 David Carlton <carlton@math.stanford.edu>
1299
1300 * valops.c (search_struct_field): Change error message to treat
1301 return value of 0 from value_static_field as meaning that field is
1302 optimized out.
1303 (value_struct_elt_for_reference): Ditto.
1304 * values.c (value_static_field): Treat an unresolved location the
1305 same as a nonexistent symbol. Fix PR gdb/635.
1306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1307 enclosed. Fix PR gdb/574.
1308 * MAINTAINERS: Add self to Write After Approval list.
1309
1310 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1311
1312 * mips-tdep.c (mips_xfer_register): New function.
1313 (mips_n32n64_extract_return_value): Rewrite.
1314 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1315 instead of deprecated_extract_return_value.
1316
1317 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1318
1319 * rs6000-tdep.c (TDEP): Delete macro.
1320 (branch_dest): Replace use of TDEP macro with its body.
1321 (rs6000_pop_frame): Ditto.
1322 (rs6000_push_arguments): Ditto.
1323 (rs6000_skip_trampoline_code): Ditto.
1324 (rs6000_frame_saved_pc): Ditto.
1325 (rs6000_frame_chain): Ditto.
1326 (rs6000_register_name): Ditto.
1327 (rs6000_register_byte): Ditto.
1328 (rs6000_register_raw_size): Ditto.
1329 (rs6000_register_virtual_type): Ditto.
1330 (rs6000_register_convertible): Ditto.
1331 (rs6000_convert_from_func_ptr_addr): Ditto.
1332
1333 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1336 conditionally.
1337 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1338 MIPS_LINUX_JB_ELEMENT_SIZE.
1339 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1340 for MAX_REGISTER_RAW_SIZE arrays.
1341 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1342 MIPS_LINUX_JB_ELEMENT_SIZE.
1343
1344 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1345
1346 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1347
1348 2002-08-19 Aidan Skinner <aidan@velvet.net>
1349
1350 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1351 ada-valprint.c ada-tasks.c.
1352 (YYFILES): Add ada-exp.y.
1353 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1354 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1355 (ada-exp.tab.o): New target.
1356
1357 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1358
1359 * regcache.c (regcache_xfer_part): New function.
1360 (regcache_raw_read_part): New function.
1361 (regcache_raw_write_part): New function.
1362 (regcache_cooked_read_part): New function.
1363 (regcache_cooked_write_part): New function.
1364 * regcache.h (regcache_raw_read_part): Declare.
1365 (regcache_raw_write_part): Declare.
1366 (regcache_cooked_read_part): Declare.
1367 (regcache_cooked_write_part): Declare.
1368
1369 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1370
1371 * remote.c (remote_open_1): Add async_p.
1372 (remote_async_open_1): Delete.
1373 (open_remote_target): Delete.
1374 (remote_open, extended_remote_open): Update calls to remote_open_1.
1375 (remote_async_open, extended_remote_async_open): Call
1376 remote_open_1 instead of remote_async_open_1.
1377
1378 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1379
1380 * blockframe.c: Fix a few coding standard violations.
1381
1382 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1383
1384 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1385 here from ...
1386 * config/i386/tm-i386sco5.h: ... here. File removed.
1387 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1388
1389 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1390 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1391 (TM_FILE): Set to tm-i386.h.
1392 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1393 * config/i386/tm-i386v.h: Remove file.
1394 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1395 instead of "i386/tm-i386v.h".
1396 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1397 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1398 "i386/tm-i386v.h".
1399 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1400 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1401 "i386/tm-i386.h".
1402
1403 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1404
1405 * config/i386/nm-i386v.h: Add protection against
1406 multiple-inclusion.
1407 (i386_register_u_addr): Remove prototype.
1408 (register_u_addr): New prototype.
1409 (REGISTER_U_ADDR): Redefine accordingly.
1410 * i386v-nat.c: Improve several comments.
1411 (i386_register_u_addr): Change signature and rename to
1412 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1413 ubase variable.
1414
1415 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1416
1417 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1418 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1419 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1420 deprecated_extract_return_value.
1421 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1422 rename mips_o32o64_push_arguments.
1423 (mips_gdbarch_init): Update.
1424 (mips_extract_return_value): Delete.
1425 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1426 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1427 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1428 (mips_n32n64_extract_return_value): Clone
1429 mips_extract_return_value.
1430 (mips_store_return_value): Delete.
1431 (mips_o32_store_return_value): Clone mips_store_return_value.
1432 (mips_o64_store_return_value): Clone mips_store_return_value.
1433 (mips_eabi_store_return_value): Clone mips_store_return_value.
1434 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1435
1436 2002-08-18 Aidan Skinner <aidan@velvet.net>
1437
1438 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1439 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1440
1441 2002-08-18 Aidan Skinner <aidan@velvet.net>
1442
1443 * ada-lang.c: Run through gdb_indent.sh.
1444 * ada-lang.h: Run through gdb_indent.sh.
1445 * ada-tasks.c: Run through gdb_indent.sh.
1446 * ada-typeprint.c: Run through gdb_indent.sh.
1447 * ada-valprint.c: Run through gdb_indent.sh.
1448
1449 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1450
1451 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1452 ABI.
1453
1454 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1455
1456 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1457
1458 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1459 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1460
1461 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1462 write_register_gen instead of write_register_bytes.
1463
1464 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1465 i[3456]-*-osf1mk* configurations have been made obsolete.
1466 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1467 i[3456]86-*-osf1mk* hosts obsolete.
1468 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1469 targets obsolete.
1470 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1471 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1472 config/i386/i386m3.mt, config/i386/nm-m3.h,
1473 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1474 config/i386/i386mk.mh, config/i386/i386mk.mt,
1475 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1476 obsolete.
1477 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1478 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1479 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1480
1481 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1482
1483 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1484 (hppa_value_returned_from_stack): Declare.
1485 (hppa_extract_return_value): Declare.
1486 * config/pa/hppa.mt: New file.
1487 * configure.tgt: Recognize hppa*-*-*.
1488 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1489
1490 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1491
1492 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1493 comment.
1494
1495 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1496
1497 * top.c (gdb_rl_operate_and_get_next): Make sure
1498 operate-and-get-next functions correctly even when the history
1499 list is completely filled.
1500
1501 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1502
1503 * MAINTAINERS (Target Instruction Set Architectures): Rename
1504 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1505 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1506 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1507 already listed under Host/Native.
1508
1509 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1510 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1511 mips*-*-*.
1512
1513 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1514
1515 * config/ia64/ia64.mt: New file.
1516 * config/alpha/alpha.mt: New file.
1517 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1518 ia64-linux-gnu. Mention that ia64-elf is broken.
1519 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1520
1521 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1522
1523 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1524 generic_func_frame_valid instead of func_frame_valid.
1525
1526 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1527
1528 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1529 procfs appears to be broken when debugging on multi-processor
1530 machines. So enable software single stepping in order to avoid
1531 using the procfs interface to do next/step operations, using
1532 internal breakpoints instead.
1533
1534 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1535 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1536 make this pc address equal to the value it would have if the
1537 system stepping capability was used. Also set a new flag used
1538 to ensure that we don't readjust the PC one more time later.
1539
1540 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1541 address by DECR_PC_AFTER_BREAK when software single step is
1542 in use for this architecture, as this has already been taken
1543 care of in handle_inferior_event().
1544
1545 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1546
1547 * infrun.c (handle_inferior_event): Minor reformatting, to make
1548 a rather long condition expression easier to read.
1549
1550 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1551
1552 * Makefile.in (gdbtk.o): Move to end of file.
1553 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1554 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1555 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1556 (gdbtk-wrapper.o, gdbres.o): Ditto.
1557
1558 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1559
1560 * Makefile.in (copying.o): Separate out compile rule.
1561 (hpux-thread.o, procfs.o, signals.o): Ditto.
1562 (v850ice.o, z8k-tdep.o): Ditto.
1563 (tui-file.o): Move to TUI section.
1564 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1565 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1566
1567 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1568
1569 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1570 skip_trampoline_code, for better namespace-proofing.
1571
1572 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1573
1574 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1575
1576 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1577
1578 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1579
1580 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1581 signal, check whether we hit a breakpoint before checking for a
1582 single step breakpoint. Otherwise, GDB fails to notice that a
1583 breakpoint has been hit when stepping onto a breakpoint.
1584
1585 2002-08-16 Keith Seitz <keiths@redhat.com>
1586
1587 * gdb-events.sh (clear_gdb_event_hooks): New function.
1588 * gdb-events.c: Regenerate.
1589 * gdb-events.h: Regenerate.
1590
1591 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1592
1593 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1594 not_a_sw_breakpoint.
1595 * breakpoint.h (bpstat_stop_status): Add parameter names.
1596
1597 2002-08-16 Grace Sainsbury <graces@redhat.com>
1598
1599 * remote.c (remote_insert_hw_breakpoint)
1600 (remote_remove_hw_breakpoint): Fix calculation of length field
1601 for Z-packet.
1602
1603 2002-08-15 Michael Snyder <msnyder@redhat.com>
1604
1605 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1606 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1607 (supply_fpregset): Ditto.
1608
1609 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1610 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1611 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1612 (TARGET_READ_SP): Delete.
1613 (DO_REGISTERS_INFO): Delete.
1614 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1615 Delete.
1616 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1617 from macros to functions.
1618
1619 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1620 (mips_register_convertible, mips_register_convert_to_virtual,
1621 mips_register_convert_to_raw): Make static.
1622 (mips_read_sp): New function.
1623 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1624 (mips_do_registers_info): Make static.
1625 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1626 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1627 (mips_register_convert_from_type, mips_register_convert_to_type):
1628 New functions.
1629 (mips_gdbarch_init): Set up function_start_offset,
1630 register_virtual_size, pc_in_sigtramp.
1631
1632 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1633
1634 * infcmd.c (vector_info): New function.
1635 (_initialize_infcmd): Add command "info vector".
1636 (print_vector_info): New function.
1637
1638 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1639 * gdbarch.h, gdbarch.c: Regenerate.
1640
1641 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1642
1643 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1644 ``print_all''. Only print vector registers when ``print_all''.
1645
1646 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1647
1648 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1649 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1650
1651 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1652 Add `args' parameter.
1653 * gdbarch.h, gdbarch.c: Regenerate.
1654
1655 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1656
1657 * infcmd.c (float_info): Call print_float_info.
1658 (print_float_info): New function. By default, print the
1659 floating-point registers.
1660
1661 * arch-utils.h (default_print_float_info): Delete declaration.
1662 * arch-utils.c (default_print_float_info): Delete function.
1663
1664 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1665
1666 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1667 out define.
1668
1669 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1670 FRAME.
1671
1672 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1673 * configure.host: Make i[3456]86-*-aix host obsolete.
1674 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1675 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1676 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1677 config/i386/xm-i386aix.h: Make files obsolete.
1678 * i386aix-nat.c: Make file obsolete.
1679 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1680 (i386aix-nat.o): Make target obsolete.
1681
1682 * config/i386/nm-gnu.h: Removed.
1683 * config/i386/nm-i386gnu.h: New file.
1684 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1685 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1686 Moved here from ...
1687 * config/i386/tm-i386gnu.h: ... here. Removed.
1688 * config/i386/xm-i386gnu.h: Removed.
1689 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1690 (NAT_FILE): Set to nm-i386gnu.h.
1691 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1692 * i386-tdep.c: New file.
1693 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1694 (i386gnu-tdep.o): Specify dependencies.
1695
1696 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1697
1698 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1699 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1700 Adjust a few comments to reflect reality a bit closer.
1701 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1702 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1703 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1704 target_insert_watchpoint, target_remove_watchpoint):
1705 Move defines to ...
1706 * config/i386/nm-i386sco5.h: ... here.
1707 (kernel_u_size): Add prototype. Improve a few comments and add
1708 protection against multiple inclusion.
1709
1710 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1711 out define.
1712
1713 * uw-thread.c (SP_ARG0): Define if not already defined.
1714 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1715
1716 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1717
1718 * config/i386/tm-i386.h: Don't include "regcache.h".
1719
1720 * i387-tdep.h (i387_print_float_info): New prototype.
1721 * i387-tdep.c (print_i387_value, print_i387_ext,
1722 print_i387_status_word, print_i387_control_word): Add `struct
1723 ui_file *' argument and use it for output.
1724 (i387_print_float_info): Renamed from i387_float_info. Add
1725 `struct gdbarch *' and `struct ui_file *' arguments and use the
1726 latter for output.
1727 * i386-tdep.c: Include "i387-tdep.h".
1728 (i386_gdbarch_init): Set print_float_info.
1729 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1730 (FLOAT_INFO): Remove define.
1731
1732 2002-08-13 Michael Snyder <msnyder@redhat.com>
1733
1734 * mips-tdep.c (mips_push_arguments): Rename to
1735 mips_eabi_push_arguments, and tune for EABI.
1736 (MIPS_REGS_HAVE_HOME_P): Delete.
1737 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1738 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1739 Delete references to mips_regs_have_home_p.
1740
1741 2002-08-14 Keith Seitz <keiths@redhat.com>
1742
1743 * Makefile.in (install-gdbtk): Create insight plugin directory.
1744 Install plugins.tcl file.
1745
1746 2002-08-14 Keith Seitz <keiths@redhat.com>
1747
1748 * configure.in: Move SUBDIRS to near top of the file so that
1749 --enable options may add things to it.
1750 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1751 * configure: Regenerate.
1752
1753 2002-08-13 Michael Snyder <msnyder@redhat.com>
1754
1755 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1756 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1757 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1758
1759 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1760
1761 * vax-tdep.c (vax_get_saved_register): Delete function.
1762 (vax_gdbarch_init): Update.
1763 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1764 (ns32k_gdbarch_init): Update.
1765 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1766 (alpha_gdbarch_init): Update.
1767
1768 2002-08-13 Andrew Cagney <cagney@redhat.com>
1769
1770 * regcache.c (init_regcache_descr): Overallocate the
1771 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1772 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1773 nr_raw_registers.
1774 (set_register_cached): Add range checking assertions. Use
1775 current_regcache.
1776
1777 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1778
1779 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1780 numbers for MMX registers.
1781
1782 2002-08-13 Andrew Cagney <cagney@redhat.com>
1783
1784 * i386-tdep.c (i386_gdbarch_init): Use
1785 generic_unwind_get_saved_register.
1786
1787 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1788
1789 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1790 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1791 target vector.
1792 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1793 Delete. Add comment regarding this now-deleted target method.
1794
1795 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1796
1797 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1798 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1799 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1800 real PC and the page number (if it's within the memory bank window).
1801 (m68hc11_pseudo_register_write): Likewise when saving.
1802 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1803 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1804 (m68hc11_register_raw_size): And use 32-bit for it.
1805 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1806 16K memory bank is used by the prog; also use the virtual pc.
1807
1808 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1809
1810 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1811 (m68hc11_gdbarch_init): Install it in gdbarch.
1812 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1813 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1814 (MSYMBOL_SIZE): New for documentation.
1815 (insn_return_kind): Enum to specify how a function returns.
1816 (frame_extra_info): Cleanup and record the return mode.
1817 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1818 register in address computation.
1819 (m68hc11_get_return_insn): New to obtain the return instruction used
1820 by the function.
1821 (m68hc11_frame_init_saved_regs): Take into account the return
1822 instruction used by the function for far and interrupt functions.
1823 (m68hc11_init_extra_frame_info): Take into account page register.
1824 (m68hc11_frame_args_address): Adjust according to the return mode.
1825 (show_regs): Print page register only when it's used.
1826
1827 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1828
1829 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1830 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1831 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1832 registers.
1833 (m68hc11_register_raw_size): Likewise.
1834
1835 2002-08-13 Andrew Cagney <cagney@redhat.com>
1836
1837 * i386-tdep.c (i386_register_name): Handle mmx registers.
1838 (mmx_regnum_p): New function.
1839 (i386_mmx_names): New array.
1840 (mmx_num_regs): New variable.
1841 (i386_pseudo_register_read): New function.
1842 (i386_pseudo_register_write): New function.
1843 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1844
1845 * regcache.c (regcache_raw_read_unsigned): New function.
1846 (regcache_raw_read_signed): New function.
1847 * regcache.h (regcache_raw_read_unsigned): Declare.
1848 (regcache_raw_read_signed): Declare.
1849
1850 2002-08-13 Andrew Cagney <cagney@redhat.com>
1851
1852 * regcache.c (regcache_raw_read_as_address): Delete function.
1853 (regcache_cooked_read_signed): New function.
1854 (regcache_cooked_read_unsigned): New function.
1855 * regcache.h (regcache_cooked_read_signed): Declare.
1856 (regcache_cooked_read_unsigned): Declare.
1857 (regcache_raw_read_as_address): Delete declaration.
1858
1859 * blockframe.c (generic_read_register_dummy): Use
1860 regcache_cooked_read_unsigned.
1861 * i386-tdep.c (i386_extract_struct_value_address): Use
1862 regcache_cooked_read_unsigned.
1863
1864 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1865
1866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1867 double sizes according to ELF ABI flags.
1868 (gdbarch_tdep): Record elf_flags.
1869
1870 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1871
1872 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1873 (m6812_prolog): They can appear in 68HC12 function prologue.
1874 (m68hc11_frame_chain): Cleanup.
1875
1876 2002-08-12 Andrew Cagney <cagney@redhat.com>
1877
1878 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1879 declarations.
1880 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1881 (i386_linux_register_raw_size): Delete function.
1882 (i386_linux_init_abi): Update.
1883 * i386-tdep.c (i386_register_raw_size): Delete function.
1884 (i386_register_byte): Delete function.
1885 (i386_gdbarch_init): Update.
1886 (i386_register_size): Delete array.
1887 (i386_register_offset): Delete array.
1888
1889 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1890 (REGISTER_RAW_SIZE): Delete macro.
1891 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1892 (REGISTER_BYTE): Delete macro.
1893
1894 2002-08-11 Aidan Skinner <aidan@velvet.net>
1895
1896 * ada-lang.c (ada_lookup_partial_symbol)
1897 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1898 prototype names so that grep ^func works properly.
1899
1900 * ada-lang.c (ada_array_element_type)
1901 (ada_lookup_partial_symbol): Fix typos in parameter list.
1902
1903 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1904 Fix prototype names so that grep ^func works properly.
1905
1906 2002-08-10 Andrew Cagney <cagney@redhat.com>
1907 Elena Zannoni <ezannoni@redhat.com>
1908 Martin M. Hunt <hunt@redhat.com>
1909
1910 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1911 (build_builtin_type_vec128i): Set the vector bit.
1912 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1913 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1914 (build_builtin_type_vec64): New function.
1915 (build_builtin_type_vec64i): New function.
1916 (build_gdbtypes): Initialize builtin_type_vec64 and
1917 builtin_type_vec64i.
1918
1919 2002-08-09 Andrew Cagney <cagney@redhat.com>
1920
1921 * regcache.c (regcache_dump): Compare the register offset
1922 with REGISTER_BYTE.
1923 * arch-utils.c (generic_register_byte): New function.
1924 * arch-utils.h (generic_register_byte): Declare.
1925 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1926 * gdbarch.h, gdbarch.c: Regenerate.
1927
1928 2002-08-09 Andrew Cagney <cagney@redhat.com>
1929
1930 * regcache.c: Include "gdbcmd.h"
1931 (_initialize_regcache): Add commands "maintenance print
1932 registers", "maintenance print raw-registers" and "maintenance
1933 print cooked-registers".
1934 (enum regcache_dump_what): Define.
1935 (dump_endian_bytes): New function.
1936 (regcache_dump): New function.
1937 (regcache_print): New function.
1938 (maintenance_print_registers): New function.
1939 (maintenance_print_raw_registers): New function.
1940 (maintenance_print_cooked_registers): New function.
1941 * Makefile.in (regcache.o): Update dependencies.
1942
1943 2002-08-09 Michael Snyder <msnyder@redhat.com>
1944
1945 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1946 (mips_push_arguments): Correct some comments. Use paddr_nz
1947 for printing addresses in debug output. Replace static
1948 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1949 (mips_n32n64_push_arguments): New function, cloned from
1950 mips_push_arguments and tuned for the n32/n64 ABI.
1951 (mips_push_register): Buffer needs dynamic allocation.
1952 (mips_print_register): Ditto.
1953 (do_gp_register_row): Ditto.
1954 (mips_store_return_value): Ditto.
1955 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1956
1957 2002-08-09 Don Howard <dhoward@redhat.com>
1958
1959 * memattr.c (mem_info_command): Print special case of upper bound
1960 as max CORE_ADDR + 1.
1961
1962 2002-08-08 Michael Snyder <msnyder@redhat.com>
1963
1964 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1965 returns structs by ref if they're too big to fit in two registers.
1966
1967 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1968
1969 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1970 saved regs value.
1971 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1972 mips_find_saved_regs().
1973 (mips_pop_frame): Likewise.
1974
1975 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1976
1977 * blockframe.c (frame_saved_regs_register_unwind): Revise
1978 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1979 frames are in use.
1980
1981 2002-08-09 Grace Sainsbury <graces@redhat.com>
1982
1983 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1984 T-packets; the 'a' is not taken as a register number.
1985 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1986 (remote_stopped_data_address): New functions; add to target
1987 vector.
1988 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1989 prototypes to match other implementations of this
1990 function. replace integer argument with pointer -- the length
1991 field in the Z-packet is the length of what is pointed to or 1 if
1992 pointer is null. Add to target vector.
1993 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1994 target vector.
1995
1996 From Mark Salter:
1997 * remote.c (remote_wait): Add support to extract optional
1998 watchpoint information from T-packet. Ignore unrecognized
1999 optional info in T-packet.
2000 (remote_async_wait): Ditto.
2001
2002 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2003
2004 * cli/cli-dump.c: Change fopen modes to use binary open modes
2005 as defined in include/fopen-bin.h throughout.
2006
2007 2002-08-08 Michael Snyder <msnyder@redhat.com>
2008
2009 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2010
2011 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2012
2013 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2014 assertion failure by returning early after a warning.
2015
2016 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2017
2018 * mips-tdep.c (mips_find_saved_regs): Make static.
2019 (mips_frame_init_saved_regs): New function.
2020 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2021 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2022 (mips_find_saved_regs): Delete declaration.
2023
2024 2002-08-08 Grace Sainsbury <graces@redhat.com>
2025
2026 * remote.c (remote_wait, remote_async_wait): Change
2027 thread_num from int to ULONGEST.
2028 (unpack_varlen_hex): Change result parameter from
2029 int * to ULONGEST *.
2030
2031 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2032
2033 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2034 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2035 powerpc*-*-*.
2036 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2037
2038 2002-08-08 Andrew Cagney <cagney@redhat.com>
2039
2040 * gcore.c (override_derive_stack_segment): Delete variable.
2041 (preempt_derive_stack_segment): Delete function.
2042 (derive_stack_segment): Delete function.
2043 (default_derive_stack_segment): Renamed to derive_stack_segment.
2044 (override_derive_heap_segment): Delete variable.
2045 (preempt_derive_heap_segment): Delete function.
2046 (derive_heap_segment): Delete function.
2047 (default_derive_heap_segment): Rename to derive_heap_segment.
2048
2049 2002-08-06 Michael Snyder <msnyder@redhat.com>
2050
2051 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2052 * mips-tdep.c (mips_EABI_use_struct_convention,
2053 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2054 New functions. (mips_use_struct_convention): Delete.
2055 (mips_gdbarch_init): set use_gdbarch_convention.
2056
2057 2002-08-06 Michael Snyder <msnyder@redhat.com>
2058
2059 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2060 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2061 mips_o32_reg_struct_has_addr): New functions.
2062 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2063
2064 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2065
2066 * regcache.c (pseudo_register): Delete function.
2067 (fetch_register): Delete function.
2068 (store_register): Delete function.
2069 (regcache_raw_read, legacy_read_register_gen): Use
2070 target_fetch_registers instead of fetch_register.
2071 (legacy_write_register_gen, regcache_raw_write): Use
2072 target_store_register instead of store_register.
2073 (write_register_bytes): Ditto.
2074
2075 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2076 (STORE_PSEUDO_REGISTER): Delete.
2077 * gdbarch.h, gdbarch.c: Regenerate.
2078
2079 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2080
2081 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2082 write dump file binary.
2083
2084 2002-08-05 Michael Snyder <msnyder@redhat.com>
2085
2086 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2087 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2088 (mips_gdbarch_init): Set N32 target to be mips64.
2089
2090 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2091
2092 * frame.c (find_saved_register): Break out of loop once saved
2093 register address is found. Don't mention sparc in loop comment
2094 anymore.
2095
2096 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2097
2098 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2099 mips_default_saved_regsize to 8.
2100
2101 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2102
2103 * gcore.c: Do not include <sys/procfs.h>.
2104 * Makefile.in (gcore.o): Update dependencies.
2105
2106 2002-08-06 Andrew Cagney <cagney@redhat.com>
2107
2108 * configure.tgt: Make arc-*-* obsolete.
2109 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2110 * MAINTAINERS: Make arc-elf obsolete.
2111 * arc-tdep.c: Make file obsolete.
2112 * config/arc/arc.mt: Ditto.
2113 * config/arc/tm-arc.h: Ditto.
2114
2115 2002-08-05 Theodore A. Roth <troth@verinet.com>
2116
2117 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2118
2119 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2120
2121 * mcore-tdep.c (mcore_gdbarch_init): Use
2122 generic_unwind_get_saved_register instead of
2123 generic_get_saved_register.
2124 * v850-tdep.c (v850_gdbarch_init): Ditto.
2125 * frv-tdep.c (frv_gdbarch_init): Ditto.
2126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2127 * s390-tdep.c (s390_gdbarch_init): Ditto.
2128 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2129 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2130 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2131
2132 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2133
2134 * objfiles.h: Add missing #include "symfile.h"
2135
2136 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2137
2138 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2139
2140 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2141 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2142 of FIELD_BITSIZE.
2143
2144 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2145
2146 * NEWS: Cleanup and nitpick.
2147
2148 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2149
2150 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2151
2152 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2153
2154 * Makefile.in (gdbtk-bp.o): Update dependencies.
2155 (gdbtk-register.o): Ditto.
2156 (gdbtk-varobj.o): Ditto.
2157
2158 2002-08-03 Andrew Cagney <cagney@redhat.com>
2159
2160 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2161 m68hc11_fetch_pseudo_register.
2162 (m68hc11_pseudo_register_write): Replace
2163 m68hc11_store_pseudo_register.
2164 (m68hc11_gdbarch_init): Update.
2165
2166 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2167
2168 * gdbarch.sh: Include "gdb_string.h".
2169 * gdbarch.c: Regenerate.
2170
2171 * regcache.c: Include "gdb_string.h".
2172 * ax-general.c: Ditto.
2173 * varobj.c: Ditto.
2174 * std-regs.c: Ditto.
2175 * fbsd-proc.c: Ditto.
2176 * thread.c: Ditto.
2177
2178 * Makefile.in (regcache.o): Update dependencies.
2179 (thread.o, gdbarch.o): Ditto.
2180 (ax-general.o, gdbarch.o): Ditto.
2181 (varobj.o, std-regs.o): Ditto.
2182 (fbsd-proc.o): Specify dependencies.
2183
2184 2002-08-02 Andrew Cagney <cagney@redhat.com>
2185
2186 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2187 regnum.
2188 (regcache_cooked_write): Ditto.
2189
2190 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2191
2192 * regcache.c (regcache_cooked_read): New function.
2193 (regcache_cooked_write): New function.
2194 (read_register_gen): Rewrite using regcache_cooked_read.
2195 (write_register_gen): Rewrite using regcache_cooked_write.
2196
2197 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2198 Declare.
2199
2200 2002-08-02 Andrew Cagney <cagney@redhat.com>
2201
2202 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2203 Replace the architecture methods register_read and register_write.
2204 * gdbarch.h, gdbarch.c: Regenerate.
2205 * regcache.c (init_regcache_descr): Update.
2206 (read_register_gen): Update.
2207 (write_register_gen): Update.
2208 (supply_register): Update comment.
2209
2210 * sh-tdep.c (sh_gdbarch_init): Update.
2211 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2212 `regcache' and `gdbarch' parameters. Make `buffer' a void
2213 pointer. Update code.
2214 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2215 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2216 void pointer. Update code.
2217 (sh64_register_write): Delete.
2218 (sh4_register_read): Delete.
2219 (sh64_register_read): Delete.
2220 (sh4_register_write): Delete.
2221 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2222 void pointer, `to' parameter a void pointer.
2223 (sh_sh64_register_convert_to_raw): Ditto.
2224
2225 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2226
2227 * mips-tdep.c (mips_register_virtual_type): Use architecture
2228 invariant return values.
2229
2230 2002-08-01 Andrew Cagney <cagney@redhat.com>
2231
2232 * linux-proc.c: Include "gdb_string.h".
2233 * Makefile.in (linux-proc.o): Update dependency list.
2234
2235 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2236
2237 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2238 comment.
2239
2240 2002-08-01 Grace Sainsbury <graces@redhat.com>
2241
2242 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2243 to_insert_watchpoint, to_remove_watchpoint,
2244 to_stopped_by_watchpoint, to_stopped_data_address,
2245 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2246 target vecctor. Define their corresponding macros so they call
2247 them.
2248
2249 * target.c: Add default and debug versions of for
2250 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2251 to_insert_watchpoint, to_remove_watchpoint,
2252 to_stopped_by_watchpoint, to_stopped_data_address,
2253 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2254
2255 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2256
2257 * mips-tdep.c (mips_register_virtual_type): New function.
2258 (mips_gdbarch_init): Register mips_register_virtual_type()
2259 with gdbarch machinery.
2260 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2261 this file instead of tm-bigmips.h.
2262 (MIPS_REGSIZE): Delete this macro.
2263 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2264 multiarch version in mips-tdep.c will be found.
2265
2266 2002-08-01 Andrew Cagney <cagney@redhat.com>
2267
2268 * NEWS: Menion that CHILL has been made obsolete.
2269
2270 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2271 * stabsread.c (read_range_type): Ditto.
2272 * gdbtypes.h: Ditto.
2273 * language.c (binop_type_check): Ditto.
2274 (binop_result_type): Ditto.
2275 (integral_type): Ditto.
2276 (character_type): Ditto.
2277 (string_type): Ditto.
2278 (boolean_type): Ditto.
2279 (structured_type): Ditto.
2280 (lang_bool_type): Ditto.
2281 (binop_type_check): Ditto.
2282 * language.h (_LANG_chill): Ditto.
2283 * dwarfread.c (set_cu_language): Ditto.
2284 * dwarfread.c (CHILL_PRODUCER): Ditto.
2285 * dwarfread.c (handle_producer): Ditto.
2286 * expression.h (enum exp_opcode): Ditto.
2287 * eval.c: Ditto for comments.
2288 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2289 * expprint.c (print_subexp): Ditto.
2290 (print_subexp): Ditto.
2291 * valops.c (value_cast): Ditto.
2292 (search_struct_field): Ditto.
2293 * value.h (COERCE_VARYING_ARRAY): Ditto.
2294 * symfile.c (init_filename_language_table): Ditto.
2295 (add_psymbol_with_dem_name_to_list): Ditto.
2296 * valarith.c (value_binop): Ditto.
2297 (value_neg): Ditto.
2298 * valops.c (value_slice): Ditto.
2299 * symtab.h (union language_specific): Ditto.
2300 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2301 (SYMBOL_DEMANGLED_NAME): Ditto.
2302 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2303 * defs.h (enum language): Ditto.
2304 * symtab.c (got_symtab): Ditto.
2305 * utils.c (fprintf_symbol_filtered): Ditto.
2306
2307 * ch-typeprint.c: Make file obsolete.
2308 * ch-valprint.c: Make file obsolete.
2309 * ch-lang.h: Make file obsolete.
2310 * ch-exp.c: Make file obsolete.
2311 * ch-lang.c: Make file obsolete.
2312
2313 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2314 CHILL_LIB.
2315 (TARGET_FLAGS_TO_PASS): Ditto.
2316 (CHILLFLAGS): Obsolete.
2317 (CHILL): Obsolete.
2318 (CHILL_FOR_TARGET): Obsolete.
2319 (CHILL_LIB): Obsolete.
2320 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2321 ch-valprint.c.
2322 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2323 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2324 ch-lang.o.
2325 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2326 targets.
2327
2328 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2329
2330 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2331 This does not change anything at the moment, but will be helpful
2332 later when full Ada support is integrated.
2333
2334 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2335
2336 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2337 help message.
2338
2339 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2340
2341 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2342 and save it in a local variable. Use variable in later test.
2343
2344 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2345
2346 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2347 test. (Thanks to Daniel Jacobowitz.)
2348
2349 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2350
2351 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2352 (mips_abi_strings): Add "n64".
2353 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2354
2355 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2356
2357 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2358 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2359
2360 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2361
2362 * utils.c (host_pointer_to_address, address_to_host_pointer):
2363 Use gdb_assert() instead of explicit call to internal_error().
2364
2365 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2366
2367 * Makefile.in (rs6000-nat.o): Update dependencies.
2368
2369 From Nicholas Duffek:
2370 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2371 (aix-thread.o): New rule.
2372 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2373 * config/powerpc/aix432.mh: New file.
2374
2375 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2376
2377 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2378 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2379 (fetch_core_registers, ppc_linux_supply_gregset)
2380 (ppc_linux_supply_fpregset): New functions.
2381 (ppc_linux_regset_core_fns): New.
2382 (_initialize_ppc_linux_tdep): Call add_core_fns.
2383 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2384 and ppc_linux_supply_gregset.
2385 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2386 (supply_fpregset): Call ppc_linux_supply_fpregset.
2387 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2388 corelow.o.
2389 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2390
2391 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2392
2393 * symtab.c (lookup_symbol): Demangle before lowercasing.
2394
2395 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2396
2397 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2398 declaration.
2399 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2400 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2401 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2402 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2403 "gdb_string.h".
2404 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2405 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2406 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2407 (avr-tdep.o, mon960-rom.o): Ditto.
2408 (aout_stabs_gnu_h): Define.
2409 (symtab_h): Remove $(gdb_obstack_h).
2410
2411 2002-07-30 Jim Blandy <jimb@redhat.com>
2412
2413 Patch from David Carlton <carlton@math.stanford.edu>:
2414 * gdbinit.in: Move the `dir' commands that add GDB's own source
2415 directory to the search path to the end, so that the `gdb' source
2416 directory will be searched first.
2417
2418 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2419
2420 * gdb_obstack.h: New file.
2421 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2422 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2423 * objfiles.h: Include "gdb_obstack.h".
2424 * Makefile.in (gdb_obstack_h): Define.
2425 (symtab_h): Add $(gdb_obstack_h).
2426 (objfiles_h): Add $(gdb_obstack_h).
2427
2428 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2429 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2430 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2431 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2432 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2433 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2434 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2435 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2436
2437 * Makefile.in (bcache.o): Update dependencies.
2438 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2439 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2440 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2441 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2442 (stabsread.o, symfile.o, symmisc.o): Ditto.
2443 (symtab.o, typeprint.o, macroexp.o): Ditto.
2444 (macrotab.o, mdebugread.o): Ditto.
2445 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2446 (coff_ecoff_h, aout_aout64_h): Define.
2447 (aout_stabs_gnu_h, libaout_h): Define.
2448
2449 2002-07-29 Andrew Cagney <cagney@redhat.com>
2450
2451 * regcache.c (struct regcache_descr): Rename nr_registers to
2452 nr_cooked_registers. Revise comments describing the structure
2453 member fields.
2454 (init_regcache_descr): Update.
2455 (init_legacy_regcache_descr): Update.
2456 (read_register_gen, write_register_gen): When a cooked register in
2457 the raw register range, directly access the value from the raw
2458 register cache.
2459
2460 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2461
2462 * z8k-tdep.c: Do not include "obstack.h".
2463 * h8300-tdep.c, h8500-tdep.c: Ditto.
2464 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2465 * valprint.c, v850-tdep.c: Ditto.
2466 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2467 * mn10200-tdep.c: Ditto.
2468
2469 * Makefile.in (z8k-tdep.o): Update dependencies.
2470 (m68hc11-tdep.o, valprint.o): Ditto.
2471 (v850-tdep.o, d10v-tdep.o): Ditto.
2472 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2473 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2474 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2475 (sh_opc_h, gdb_sim_sh_h): Define.
2476 (elf_sh_h, elf_bfd_h): Define.
2477 (opcode_m68hc11_h): Define.
2478 (OPCODES_SRC, OPCODES_DIR): define.
2479 (OPCODES): Use $(OPCODES_DIR).
2480 (gdb_sim_d10v_h): Rename sim_d10v_h.
2481 (gdb_sim_arm_h): Rename sim_arm_h.
2482
2483 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2484
2485 * utils.c (host_pointer_to_address, address_to_host_pointer):
2486 Change internal_error() message to indicate function responsible
2487 for the error.
2488
2489 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2490
2491 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2492 calls to local_hex_string_custom().
2493
2494 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2495
2496 * irix5-nat.c: Move IRIX shared library support from here...
2497 * solib-irix.c: ...to here. Revised substantially to work with
2498 generic solib framework.
2499
2500 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2501 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2502 * mips-irix-tdep.c: New file.
2503
2504 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2505 (mips-irix-tdep.o, solib-irix.o): New rules.
2506 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2507 solib-irix.o.
2508 * config/mips/irix6.mt (TDEPFILES): Likewise.
2509 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2510
2511 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2512
2513 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2514 disabled (via ``#if 0'') includes.
2515
2516 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2517
2518 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2519 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2520 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2521 Add support for the fpscr register.
2522 * rs6000-nat.c (regmap, fetch_inferior_registers)
2523 (store_inferior_registers, fetch_core_registers): Likewise.
2524
2525 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2526
2527 * rs6000-nat.c (language.h): Include.
2528 (special_regs): Delete this array.
2529 (regmap): New function.
2530 (fetch_register, store_register): Use regmap() to map gdb
2531 register numbers to ptrace register numbers. Also, use
2532 outputs from regmap() to make decisions regarding type of
2533 ptrace() call to make. In particular, don't compare against
2534 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2535 (fetch_inferior_registers, store_inferior_registers): Where
2536 possible, obtain register numbers from tdep struct. Don't
2537 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2538 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2539 (LAST_UISA_SP_REGNUM): Delete.
2540
2541 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2542
2543 * rs6000-nat.c (ppc-tdep.h): Include.
2544 (fetch_registers, store_register, fetch_core_registers): Don't
2545 access registers[] directly. Instead, use supply_register() or
2546 regcache_collect() as appropriate.
2547 (find_toc_address): Format hex address with local_hex_string().
2548
2549 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2550
2551 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2552 bfd/elf32-frv.c.
2553
2554 2002-07-24 Tom Tromey <tromey@redhat.com>
2555
2556 * jv-exp.y: Marked all strings with _().
2557 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2558 internal_error.
2559 (MethodInvocation, CastExpression, parse_number, yyerror,
2560 java_type_from_name, push_expression_name, yylex): Typo fixes.
2561
2562 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2563
2564 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2565 (tee_file_flush, tee_file_write, tee_file_fputs)
2566 (tee_file_isatty): New.
2567 * ui-file.h (tee_file_new): Add prototype.
2568
2569 2002-07-24 Aidan Skinner <aidan@velvet.net>
2570
2571 * ada-lang.c: Change k&r style function definitions to prototyped
2572 form.
2573 * ada-typeprint.c: Change k&r style function definitions to prototyped
2574 form.
2575 * ada-valprint.c: Change k&r style function definitions to prototyped
2576 form.
2577
2578 2002-07-24 Andrew Cagney <cagney@redhat.com>
2579
2580 * README: Remove reference to remote-bug.
2581 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2582 remote-bug.c.
2583 (m88k-nat.o): Delete rule.
2584 (m88k-tdep.o): Delete rule.
2585 (remote-bug.o): Delete rule.
2586 * MAINTAINERS: Mark as obsolete.
2587 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2588 * m88k-tdep.c: Make file obsolete.
2589 * config/m88k/m88k.mh: Ditto.
2590 * config/m88k/delta88v4.mh: Ditto.
2591 * config/m88k/delta88v4.mt: Ditto.
2592 * config/m88k/delta88.mt: Ditto.
2593 * config/m88k/delta88.mh: Ditto.
2594 * remote-bug.c: Ditto.
2595 * config/m88k/tm-delta88.h: Ditto.
2596 * config/m88k/nm-delta88v4.h: Ditto.
2597 * config/m88k/xm-delta88.h: Ditto.
2598 * config/m88k/xm-dgux.h: Ditto.
2599 * config/m88k/tm-m88k.h: Ditto.
2600 * config/m88k/nm-m88k.h: Ditto.
2601 * config/m88k/tm-delta88v4.h: Ditto.
2602 * m88k-nat.c: Ditto.
2603 * cxux-nat.c: Ditto.
2604 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2605 and m88*-*-* obsolete.
2606 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2607 m88*-*-* obsolete.
2608
2609 2002-07-24 Andrew Cagney <cagney@redhat.com>
2610
2611 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2612 constant. Same for local pointer variables.
2613 (extract_signed_integer): Ditto.
2614 * defs.h (extract_unsigned_integer): Update.
2615 (extract_signed_integer): Update.
2616
2617 2002-07-24 Andrew Cagney <cagney@redhat.com>
2618
2619 * regcache.c (regcache_raw_write): Change buf parameter to a
2620 constant void pointer.
2621 (regcache_raw_read): Change buf parameter to a void pointer.
2622 (legacy_write_register_gen): Change myaddr parameter a constant
2623 void pointer.
2624 (supply_register): Change val parameter to a const void pointer.
2625 * regcache.h (regcache_raw_write): Update declaration.
2626 (regcache_raw_read): Update declaration.
2627 (supply_register): Update declaration.
2628
2629 2002-07-24 Tom Tromey <tromey@redhat.com>
2630
2631 * defs.h (gdb_readline_wrapper): Declare.
2632 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2633 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2634 * top.c (gdb_readline_wrapper): New function.
2635 (command_line_input): Use it.
2636
2637 2002-07-24 Andrew Cagney <cagney@redhat.com>
2638
2639 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2640 regcache_read and regcache_write.
2641 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2642 * regcache.c: Update.
2643 * sh-tdep.c (sh64_push_arguments): Update comment.
2644 (sh_pseudo_register_read): Update.
2645 (sh_pseudo_register_write): Update.
2646 (sh4_register_read): Update.
2647 (sh4_register_write): Update.
2648 (sh64_pseudo_register_read): Update.
2649 (sh64_pseudo_register_write): Update.
2650 (sh64_register_read): Update.
2651 (sh64_register_write): Update.
2652 * i386-tdep.c (i386_extract_return_value): Update.
2653 (i386_extract_struct_value_address): Update.
2654 (i386_extract_return_value): Update.
2655 * blockframe.c (generic_read_register_dummy): Update.
2656 (generic_call_dummy_register_unwind): Update
2657 * infrun.c (write_inferior_status_register): Update.
2658
2659 2002-07-23 Jim Blandy <jimb@redhat.com>
2660
2661 * parser-defs.h (expression_context_pc): Make this extern.
2662 (Thanks to Michael Snyder.)
2663
2664 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2665
2666 GDB 5.2.1 released from 5.2 branch.
2667 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2668 * README: Update to mention 5.2.1.
2669
2670 2002-07-23 Mark Salter <msalter@redhat.com>
2671
2672 * remote.c (remote_read_bytes): Fix check for error.
2673
2674 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2675
2676 * aix-thread.c (language.h): Include.
2677 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2678 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2679 Print newlines at end of debug messages.
2680 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2681 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2682
2683 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2684
2685 * aix-thread.c (ppc-tdep.h): Include.
2686 (special_register_p): New function.
2687 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2688 (store_regs_user_thread): Use register number information from
2689 gdbarch_tdep struct instead of hardcoded offsets relative to
2690 FIRST_UISA_SP_REGNUM.
2691 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2692 special_register_p() instead of using FPLAST_REGNUM and
2693 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2694 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2695 will be MQ's register number.
2696
2697 2002-07-22 Michael Snyder <msnyder@redhat.com>
2698
2699 * aix-thread.c (ops): Rename to aix_thread_ops.
2700 (base_ops): Rename to base_target.
2701 (ops_attach): Rename to aix_thread_attach.
2702 (ops_detach): Rename to aix_thread_detach.
2703 (ops_resume): Rename to aix_thread_detach.
2704 (ops_wait): Rename to aix_thread_wait.
2705 (ops_kill): Rename to aix_thread_kill.
2706 (init_ops): Rename to init_aix_thread_ops.
2707 (ops_fetch_register): Rename to aix_thread_fetch_register.
2708 (ops_store_register): Rename to aix_thread_store_register.
2709 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2710 (ops_thread_alive): Rename to aix_thread_thread_alive.
2711 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2712 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2713 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2714 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2715 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2716 (store_regs_lib): Rename to store_regs_user_thread.
2717 (store_regs_kern): Rename to store_regs_kernel_thread.
2718
2719 2002-07-22 Michael Snyder <msnyder@redhat.com>
2720
2721 * aix-thread.c (ops_prepare_to_store): Eliminate.
2722 (init_ops): Don't initialize ops.prepare_to_store.
2723 (store_regs_kern): Pre-fetch register buffers from child,
2724 because some registers may not be in the cache. Copy
2725 regs from register cache only if they are cached.
2726 (store_regs_lib): Copy regs from register cache only
2727 if they are cached.
2728 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2729 fill_gprs64): Ditto.
2730
2731 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2732
2733 * aix-thread.c (gdb_assert.h): Include.
2734 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2735 register sizes (from register cache) match size of buffer holding
2736 register data.
2737 (fill_sprs32): Change parameter types to match those in the ptrace()
2738 buffer.
2739 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2740 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2741
2742 2002-07-22 Michael Snyder <msnyder@redhat.com>
2743
2744 * aix-thread.c (supply_sprs64): Cosmetic change.
2745 (supply_sprs32): Cosmetic change.
2746 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2747 (fill_sprs64): Use regcache_collect instead of read_register.
2748 (store_regs_lib): Use regcache_collect instead of
2749 read_register. Use fill_sprs32 instead of fill_sprs64,
2750 if debugging a 32-bit architecture.
2751 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2752 out of the register cache, instead of passing a pointer into
2753 the register cache directly to ptrace. Use regcache_collect
2754 insteaad of read_register.
2755 (ops_prepare_to_store): Use target_read_registers instead
2756 of read_register_bytes.
2757
2758 2002-07-20 Aidan Skinner <aidan@velvet.net>
2759
2760 * MAINTAINERS: Add self under write after approval.
2761
2762 2002-07-20 Aidan Skinner <aidan@velvet.net>
2763
2764 * ada-tasks.c: Change k&r style function definitions to prototyped
2765 form.
2766
2767 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2768
2769 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2770 * x86-64-tdep.c: Include "objfiles.h".
2771 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2772 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2773
2774 2002-07-17 Michal Ludvig <michal@suse.cz>
2775
2776 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2777 (update_context): Initialise cfa variable.
2778
2779 2002-07-17 Michael Snyder <msnyder@redhat.com>
2780
2781 * aix-thread.c: Shorten some long lines.
2782 Bring comments into line with code spec.
2783
2784 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2785
2786 * infrun.c: Re-indent using gdb_indent.sh.
2787
2788 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2789
2790 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2791 Leave the indentation temporarily untouched, to minimize the diffs.
2792
2793 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2794
2795 * stabsread.c: Make os9k sections of the code obsolete,
2796 for real this time.
2797 * stabsread.h: Make os9k sections of the code obsolete.
2798
2799 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2800
2801 * linux-low.c (regsets_store_inferior_registers): Add free()
2802 at the end of a loop to prevent memory leak.
2803 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2804 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2805 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2806 line a comment.
2807 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2808
2809 2002-07-17 Jim Blandy <jimb@redhat.com>
2810
2811 * macrocmd.c (info_macro_command): Remove newline from error
2812 message.
2813
2814 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2815
2816 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2817 (sh_gdbarch_init): Use it for sh-dsp.
2818
2819 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2820
2821 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2822 64-bit DWARF2 format.
2823
2824 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2825
2826 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2827 <sys/proc.h> when not available.
2828
2829 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2830
2831 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2832 * stabsread.c: Make os9k sections of the code obsolete.
2833 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2834 * config/i386/i386os9k.mt: Make file obsolete.
2835 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2836 (COMMON_OBS): Remove os9kread.o
2837 (SFILES): Remove os9kread.c.
2838 (os9kread.o, remote-os9k.o): Make target obsolete.
2839 * remote-os9k.c: Make file obsolete.
2840 * os9kread.c: Make file obsolete.
2841 * Makefile.in
2842
2843 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2844
2845 * NEWS: Mention that the FR30 has been made obsolete.
2846 * fr30-tdep.c: Make file obsolete.
2847 * config/fr30/tm-fr30.h: Ditto.
2848 * config/fr30/fr30.mt: Ditto.
2849 * configure.tgt: Make fr30-*-elf obsolete.
2850 * MAINTAINERS: Make fr30-elf obsolete.
2851
2852 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2853
2854 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2855 found is not inside a section.
2856
2857 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2858
2859 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2860 strerror().
2861 (pdc_realloc): Use xrealloc() instead of realloc().
2862
2863 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2864
2865 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2866 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2867 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2868 macros.
2869
2870 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2871
2872 * aix-thread.c (ptrace_check): Eliminate goto.
2873 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2874 problem.
2875
2876 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2877
2878 * aix-thread.c (gdbcmd.h): Include.
2879 (DEBUG, DBG, DBG2, dbg): Eliminate.
2880 (debug_aix_thread): New static global.
2881 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2882 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2883 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2884 invocations to DBG and DBG2 macros to test against
2885 ``debug_aix_thread'' and call fprintf_unfiltered().
2886 (_initialize_aix_thread): Add new command "set debug aix-thread".
2887
2888 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2889
2890 From Gerhard Tonn <TON@de.ibm.com>:
2891 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2892 instead of supply_register.
2893
2894 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2895
2896 * dwarf2cfi.c: Include "gdb_assert.h".
2897 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2898 non-NULL.
2899 (update_context): Do not use __func__. Add missing ``break''.
2900 (update_context): Do not use __func__.
2901
2902 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2903
2904 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2905 and its setting. Set gdbarch instruction printing functions
2906 directly. For non-rs6000 case use new function
2907 gdb_print_insn_powerpc.
2908 (gdb_print_insn_powerpc): New function.
2909
2910 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2911
2912 * NEWS: Mention that the d30v has been marked obsolete.
2913 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2914 * configure.tgt: Mark d30v-*-* as obsolete.
2915 * d30v-tdep.c: Mark file as obsolete.
2916 * config/d30v/d30v.mt: Ditto.
2917 * config/d30v/tm-d30v.h: Ditto.
2918
2919 2002-07-13 Aidan Skinner <aidan@velvet.net>
2920
2921 * ada-tasks.c (add_task_entry): replace calls to
2922 malloc() with xmalloc
2923 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2924
2925 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2926 ada_finish_decode_line_1, all_sals_for_line
2927 ada_breakpoint_rewrite): replace calls to free() with xfree()
2928
2929 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2930
2931 From Nicholas Duffek (with minor changes by Martin Hunt,
2932 Louis Hamilton, and Kevin Buettner):
2933 * aix-thread.c: New file.
2934
2935 2002-07-12 Petr Sorfa <petrs@caldera.com>
2936
2937 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2938 complaint for invalid attribute class or form.
2939 (read_func_scope): DW_AT_frame_base
2940 better handling of DW_AT_block*.
2941 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2942 better handling of DW_AT_block*.
2943 (read_common_block): DW_AT_location
2944 better handling of DW_AT_block*.
2945 (read_partial_die): DW_AT_location better handling
2946 of DW_AT_block*.
2947 (new_symbol): DW_AT_external better handling of
2948 DW_AT_block*. Proper initialization of variable
2949 "addr".
2950 (attr_form_is_block): New function that returns true
2951 if the attribute's form is of DW_FORM_block*.
2952
2953 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2954
2955 * valops.c (find_method_list): Remove comment about
2956 removed STATIC_MEMFUNCP argument.
2957 (value_find_oload_method_list): Likewise.
2958
2959 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2960
2961 From Nicholas Duffek:
2962 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2963 target_new_objfile_hook.
2964
2965 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2966
2967 From Nicholas Duffek:
2968 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2969 csect.
2970
2971 2002-07-12 Andrew Cagney <cagney@redhat.com>
2972
2973 * MAINTAINERS: Mention --enable-sim-build-warnings.
2974 (m68hc11-elf): Disable sim build warnings.
2975 (m32r-elf): Mark as broken obsolete candidate.
2976 (x86_64-linux-gnu): Mark as buildable with -Werror.
2977 (arm-elf): Change -w to ``,'' which enables warnings but not
2978 -Werror.
2979
2980 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2981
2982 * bcache.h: Update copyright.
2983 (struct bstring, struct bcache): Move definition to "bcache.c".
2984 Replaced by opaque declaration.
2985 (bcache_xfree): Replace free_bcache.
2986 (bcache_xmalloc, bcache_memory_used): Declare.
2987
2988 * bcache.c: Update copyright.
2989 (struct bstring, struct bcache): Moved to here from "bcache.h".
2990 Update comments.
2991 (bcache_xmalloc, bcache_memory_used): New functions.
2992 (bcache_xfree): Replace function free_bcache.
2993
2994 * Makefile.in (objfiles.o): Add $(bcache_h).
2995 (objfiles_h): Remove $(bcache_h).
2996 (symfile.o): Add $(bcache_h).
2997
2998 * symmisc.c: Update copyright.
2999 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3000 (print_objfile_statistics): Use bcache_memory_used.
3001
3002 * symfile.c: Include "bcache.h".
3003 (reread_symbols): Use bcache_xfree.
3004 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3005 (add_psymbol_to_list): Pass psymbol_cache by value.
3006 (add_psymbol_with_dem_name_to_list): Ditto.
3007
3008 * objfiles.h: Update copyright.
3009 (struct bcache): Declare opaque. Do not include "bcache.h".
3010 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3011 bcache'' pointers.
3012 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3013
3014 * objfiles.c: Include "bcache.h". Update copyright.
3015 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3016 macro_cache.
3017 (free_objfile): Use bcache_xfree.
3018
3019 2002-07-11 Grace Sainsbury <graces@redhat.com>
3020
3021 * monitor.c (monitor_fetch_register): Make name a constant.
3022 (monitor_store_register): Same.
3023
3024 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3025
3026 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3027 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3028 (finish_block) For non-function blocks, hash the symbol table. For
3029 function blocks, mark the symbol table as unhashed.
3030 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3031 (msymbol_hash_iw): Likewise.
3032 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3033 value.
3034 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3035 (lookup_minimal_symbol): Likewise for both.
3036 * symtab.h (struct block): Add `hashtable' flag. Comment the
3037 hashtable.
3038 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3039 (ALL_BLOCK_SYMBOLS): Update.
3040 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3041 (struct symbol): Add `hash_next' pointer.
3042 * symtab.c (lookup_block_symbol): Search using the hash table when
3043 possible.
3044 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3045 (search_symbols, find_addr_symbol): Likewise.
3046
3047 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3048 (read_dst_symtab): Likewise.
3049 * jv-lang.c (get_java_class_symtab): Likewise.
3050 * mdebugread.c: Include "gdb_assert.h".
3051 (shrink_block): Assert that the block being modified is not hashed.
3052 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3053 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3054 symbols.
3055 (dump_symtab): Recognize hashed blocks.
3056 * printcmd.c (print_frame_args): Assert that function blocks do not
3057 have hashed symbol tables.
3058 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3059 (fill_in_ada_prototype, debug_print_block): Likewise.
3060 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3061
3062 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3063
3064 * stack.c (print_frame): Use result of frame_address_in_block()
3065 instead of fi->pc when evaluating symbols.
3066 (backtrace_command_1): Ditto.
3067
3068 2002-07-11 Andrew Cagney <cagney@redhat.com>
3069
3070 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3071 Make static.
3072
3073 * arm-tdep.c (arm_register_name): Make return type constant.
3074
3075 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3076
3077 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3078 prototype.
3079 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3080 * s390-tdep.c (s390_fp_regnum): Ditto.
3081 (s390_read_fp): Ditto.
3082 (s390_pop_frame): Ditto.
3083 (_initialize_s390_tdep): Ditto.
3084 * remote.c (get_remote_state): Ditto.
3085 * procfs.c (mappingflags): Ditto.
3086 * memattr.c (_initialize_mem): Ditto.
3087 * mcore-tdep.c (mcore_pop_frame): Ditto.
3088 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3089 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3090 * language.c (set_case_str): Ditto.
3091 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3092 * frv-tdep.c (new_variant): Ditto.
3093 (frv_stopped_data_address): Ditto.
3094 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3095 (context_alloc): Ditto.
3096 (frame_state_alloc): Ditto.
3097 (unwind_tmp_obstack_init): Ditto.
3098 (unwind_tmp_obstack_free): Ditto.
3099 (cfi_read_fp): Ditto.
3100 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3101 (cris_pop_frame): Ditto.
3102 * c-lang.c (scanning_macro_expansion): Ditto.
3103 (finished_macro_expansion): Ditto.
3104 (c_preprocess_and_parse): Ditto.
3105 * gdbarch.sh: Ditto.
3106 * gdbarch.h, gdbarch.c: Regenerate.
3107 * config/mn10200/tm-mn10200.h: Adjust indentation.
3108 * target.c: Adjust indentation.
3109 * symtab.h: Adjust indentation.
3110 * stabsread.h: Adjust indentation.
3111 * remote-es.c: Adjust indentation.
3112 * os9kread.c: Adjust indentation.
3113
3114 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3115
3116 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3117 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3118
3119 2002-07-10 Grace Sainsbury <graces@redhat.com>
3120
3121 * NEWS: Mention m68k, mcore multi-arching.
3122 * MAINTAINERS: Change status of m68k, mcore to reflect
3123 multi-arching.
3124
3125 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3126
3127 * valops.c (find_overload_match): Free oload_syms.
3128
3129 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3130
3131 Define HAVE_SYS_PROC_H if sys/proc.h exists
3132 * configure.in: Add check for sys/proc.h
3133 * config.in: Regenerate.
3134 * configure: Regenerate.
3135
3136 2002-07-09 Grace Sainsbury <graces@redhat.com>
3137
3138 * config/m68k/tm-m68k.h: Remove macros wrapped in
3139 #if !GDB_MULTI_ARCH.
3140
3141 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3142
3143 * config.in, configure: Regenerate.
3144
3145 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3146
3147 * dwarf2cfi.c: Include "gcore.h".
3148 (execute_stack_op): Fix implementation of the
3149 DW_OP_deref and DW_OP_deref_size operators by letting do their
3150 lookup in the target.
3151
3152 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3153
3154 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3155 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3156 tdep->sc_sp_offset.
3157
3158 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3159
3160 Fix PR gdb/595, gdb/602
3161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3162 Don't call value_cast, just read the vtable pointer; update comments
3163 to match.
3164
3165 2002-07-05 Grace Sainsbury <graces@redhat.com>
3166
3167 * config/mcore/tm-mcore.h: Remove file.
3168 * config/mcore/mcore.mt: Remove definition of TM_FILE
3169 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3170
3171 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3172
3173 * i386bsd-tdep.c: Include "gdb_string.h".
3174
3175 2002-07-04 Grace Sainsbury <graces@redhat.com>
3176
3177 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3178 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3179 mcore-tdep.
3180 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3181 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3182 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3183 (RETVAL_REGNUM): Move macros from tm-mcore.h
3184 (mcore_reg_struct_has_addr): New function.
3185 (mcore_gdbarch_init): Added initializations for the macros removed
3186 from tm-mcore.h.
3187
3188 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3189
3190 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3191 traditonal string branding within the ELF header.
3192
3193 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3194
3195 * symtab.c (remove_params): New function.
3196 (make_symbol_overload_list): Use it instead of cplus_demangle.
3197 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3198
3199 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3200
3201 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3202
3203 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3204 New variables.
3205 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3206 and tdep->sigtramp_end.
3207 * i386obsd-nat.c: New file.
3208 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3209
3210 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3211 Don't call get_current_frame().
3212
3213 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3214
3215 * i386-nat.c (child_post_startup_inferior): New function
3216 calling i386_cleanup_dregs if
3217 I386_USE_GENERIC_WATCHPOINTS is defined.
3218 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3219 conditional to acknowledge that i386-nat.c has its
3220 own child_post_startup_inferior function.
3221
3222 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3223
3224 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3225 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3226 instead of MAX_REGISTER_RAW_SIZE.
3227 (i386_extract_return_value, i386_extract_struct_value_address):
3228 Convert to use regcache.
3229 (i386_gdbarch_init): Set max_register_raw_size and
3230 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3231 Set extract_return_value and extract_struct_value_address instead
3232 of their deprecated variants.
3233
3234 Convert i386 target to generic dummy frames.
3235 * i386-tdep.c: Include "symfile.h".
3236 (i386_frameless_signal_p): Consider a function to be frameless if
3237 the pc points at the first instruction of the function.
3238 (i386_frame_chain): Handle (generic) call dummies.
3239 (i386_frame_saved_pc): Likewise.
3240 (i386_frame_init_saved_regs): Remove code dealing with call
3241 dummies on the stack.
3242 (i386_push_dummy_frame): Removed.
3243 (i386_call_dummy_words): Removed.
3244 (i386_fix_call_dummy): Removed.
3245 (i386_push_return_address): New function.
3246 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3247 parameter, and don't call get_current_frame.
3248 (i386_pop_frame): New function.
3249 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3250 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3251 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3252 call_dummy_length to 0, set call_dummy_words to NULL, set
3253 sizeof_call_dummy_words to 0, set fix_call_dummy to
3254 generic_fix_call_dummy, set pc_in_call_dummy to
3255 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3256 generic_push_dummy_frame, set push_return_address to
3257 i386_push_return_address and set frame_chain_valid to
3258 generic_file_frame_chain_valid.
3259
3260 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3261
3262 * gdbarch.sh (struct regcache): Add opaque declaration.
3263 (EXTRACT_RETURN_VALUE): New architecture method.
3264 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3265 * gdbarch.h, gdbarch.c: Regenerate.
3266 * arch-utils.c (legacy_extract_return_value): New function.
3267 * arch-utils.h (legacy_extract_return_value): Declare.
3268 * values.c (value_being_returned): Re-enable code handling
3269 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3270 deprecated_grub_regcache_for_registers call to block handling
3271 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3272 (EXTRACT_RETURN_VALUE): Do not define.
3273
3274 2002-07-03 Grace Sainsbury <graces@redhat.com>
3275
3276 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3277 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3278 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3279 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3280 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3281 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3282 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3283 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3284 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3285 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3286 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3287 argument so the function fits the prototype in the architecture
3288 vector.
3289 (mcore_pop_frame): Remove argument so the function fits the
3290 prototype. Use get_current_frame instead of the argument.
3291 (mcore_push_arguments): Change type of struct_return so the
3292 function can be used in the architecture vector.
3293 (mcore_store_struct_return): Add.
3294 (mcore_frame_init_saved_regs): Add.
3295 (mcore_gdbarch_init): Add function calls to replace the macros
3296 removed from tm-mcore.h
3297
3298 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3299
3300 * infcmd.c (print_return_value): Remove compatibility code calling
3301 deprecated_grub_regcache_for_registers.
3302
3303 * values.c: Include "regcache.h".
3304 (value_being_returned): Update. Use
3305 deprecated_grub_regcache_for_registers to extract the register
3306 buffer address.
3307 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3308 ``struct regcache''.
3309 * Makefile.in (values.o): Add dependency on $(regcache_h).
3310
3311 * inferior.h (run_stack_dummy): Change type of second parameter to
3312 a ``struct regcache''.
3313 * valops.c (hand_function_call): Change type of retbuf to ``struct
3314 regcache''. Allocate using regcache_xmalloc, clean using
3315 make_cleanup_regcache_xfree.
3316 * infcmd.c (run_stack_dummy): Update. Use
3317 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3318
3319 * regcache.c (do_regcache_xfree): New function.
3320 (make_cleanup_regcache_xfree): New function.
3321 * regcache.h (make_cleanup_regcache_xfree): Declare.
3322
3323 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3324
3325 * event-top.c (command_line_handler): Don't read past
3326 beginning of buffer.
3327
3328 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3329
3330 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3331 struct frame_id.
3332 (varobj_create): Store frame_id for root.
3333 (varobj_gen_name): Use xasprintf.
3334 (varobj_update): Save and restore frame using get_frame_id() and
3335 frame_find_by_id().
3336 (create_child): Use xasprintf.
3337 (new_root_variable): Initialize frame_id.
3338 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3339 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3340 to prevent memory leak.
3341
3342 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3343
3344 * valops.c (hand_function_call): Move declaration of retbuf to
3345 start of function, allocate using malloc, add a cleanup but before
3346 the inf_status cleanup, cleanup the buffer. Rename local variable
3347 old_chain to inf_status_cleanup.
3348
3349 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3350
3351 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3352
3353 * cli/cli-decode.c (cmd_func_p): New function.
3354 (cmd_func): New function.
3355
3356 * command.h: Add cmd_func() and cmd_func_p().
3357
3358 2002-07-03 Grace Sainsbury <graces@redhat.com>
3359
3360 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3361 (REGISTER_SIZE): Remove.
3362 (MAX_REGISTER_RAW_SIZE): Remove.
3363 (REGISTER_VIRTUAL_TYPE): Remove.
3364 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3365 (REGISTER_NAME): Remove.
3366 (USE_GENERIC_DUMMY_FRAMES): Remove.
3367 (CALL_DUMMY): Remove.
3368 (CALL_DUMMY_START_OFFSET): Remove.
3369 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3370 (CALL_DUMMY_LOCATION): Remove.
3371 (FIX_CALL_DUMMY): Remove.
3372 (CALL_DUMMY_ADDRESS): Remove.
3373 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3374 (SAVE_DUMMY_FRAME_TOS): Remove.
3375 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3376 (mcore_register_virtual_type): New function.
3377 (mcore_register_byte): New function.
3378 (mcore_register_size): New function.
3379 (mcore_register_name): New function.
3380 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3381 macros removed from tm-mcore.h.
3382 (mcore_dump_tdep): Add.
3383 (_initialize_mcore_tdep): Add gdbarch_register call.
3384
3385 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3386
3387 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3388 frameless_look_for_prologue, such that we actually call this
3389 function.
3390
3391 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3392
3393 * frame.h (frame_address_in_block): New function.
3394
3395 * blockframe.c (frame_address_in_block): New function extracted
3396 from get_frame_block().
3397 (get_frame_block): Use frame_address_in_block().
3398 (block_innermost_frame): Use frame_address_in_block() to match
3399 the frame pc address against the block boundaries rather than
3400 the frame pc directly. This prevents a failure when a frame pc
3401 is actually a return-address pointing immediately after the end
3402 of the given block.
3403
3404 2002-07-02 Grace Sainsbury <graces@redhat.com>
3405
3406 * MAINTAINERS: Add self under write after approval.
3407
3408 2002-07-02 Grace Sainsbury <graces@redhat.com>
3409
3410 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3411 used in architecture vector. The default is
3412 m68k_local_breakpoint_from_pc.
3413 (m68k_local_breakpoint_from_pc): Add.
3414 (enum): Add register numbers from tm-m68k.h.
3415 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3416 vector.
3417 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3418 GDB_MULTI_ARCH_PARTIAL.
3419 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3420 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3421 m68k-tdep.c.
3422 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3423 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3424 to enum in m68k-tdep.c
3425
3426 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3427
3428 * solib-osf.c (open_map): Compute the list of shared libraries
3429 loaded by the inferior, rather than the list of libraries loaded
3430 by GDB itself. Otherwise, GDB ends up reading the symbols from
3431 the wrong shared libraries...
3432
3433 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3434
3435 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3436 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3437 macros.
3438 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3439 Remove functions.
3440 (FRAMELESS_SIGNAL): Remove function.
3441 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3442 i386_linux_saved_pc_after_call): Removed.
3443 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3444 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3445 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3446
3447 * i386-tdep.c (i386_frameless_signal_p): New function.
3448 (i386_frame_chain): Deal with frameless signals.
3449 (i386_sigtramp_saved_sp): New function.
3450 (i386_frame_saved_pc): Deal with frameless signals.
3451 (i386_saved_pc_after_call): Make sure the correct value is
3452 returned just after entry into a sigtramp.
3453 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3454 i386fbsd4_sc_sp_offset): New variables.
3455 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3456 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3457 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3458 similiar to what we already did for sc_pc_offset.
3459 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3460 tdep->sc_sp_offset.
3461
3462 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3463
3464 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3465
3466 * config/i386/tm-x86-64linux.h: New.
3467 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3468 definitions.
3469 * config/i386/nm-x86-64.h: Rename to ...
3470 * config/i386/nm-x86-64linux.h: ... this one.
3471 * config/i386/x86-64linux.mh: Reflect the above change.
3472
3473 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3474
3475 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3476 with sigcontext_addr. Add sc_sp_offset.
3477 (i386bsd_sigtramp_saved_pc): Remove prototype.
3478 (i386bsd_sicontext_addr): Add prototype.
3479 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3480 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3481 (i386_svr4_sigtramp_saved_pc): Removed.
3482 (i386_svr4_sigcontext_addr): New function.
3483 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3484 Initialize tdep->sigcontext_addr instead. Initialize
3485 tdep->sc_pc_offset and tdep->sc_sp_offset.
3486 (i386_gdbarch_init): Likewise.
3487 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3488 any more.
3489 (i386bsd_sigtramp_saved_pc): Remove function.
3490 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3491 Initialize tdep->sigcontext_addr instead. Initialize
3492 tdep->sc_pc_offset.
3493 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3494 of tdep->sigtramp_saved_pc.
3495 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3496 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3497 instead.
3498
3499 * i386-tdep.c (i386_frameless_function_invocation,
3500 i386_frame_num_args, i386_frame_init_saved_regs,
3501 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3502 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3503 i386_extract_return_value, i386_store_return_value,
3504 i386_extract_struct_value_address, i386_register_virtual_type,
3505 i386_register_convertible, i386_register_convert_to_virtual,
3506 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3507 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3508 static.
3509
3510 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3511
3512 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3513
3514 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3515 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3516 this macro. Include "value.h".
3517
3518 2002-06-30 Aidan Skinner <aidan@velvet.net>
3519
3520 * ada-exp.tab.c: remove as it's a generated file
3521 * ada-lex.c: remove as it's a generated file
3522
3523 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3524
3525 * config/i386/tm-i386.h (struct frame_info, struct
3526 frame_saved_regs, struct value, struct type): Remove forward
3527 declarations.
3528
3529 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3530 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3531 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3532 (FILL_FPXREGSET): Define.
3533
3534 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3535
3536 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3537 i[3456]86-*-netbsd* case.
3538 * config/i386/tm-obsd.h: Removed.
3539 * config/i386/obsd.mt: Removed.
3540 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3541 core-aout.o.
3542 (MH_CFLAGS): Add -DYYDEBUG=0.
3543
3544 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3545 i386nbsd_sc_pc_offset on OpenBSD too.
3546
3547 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3548 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3549 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3550 define.
3551 * i386bsd-tdep.c: Include "arch-utils.h".
3552 (i386bsd_aout_in_solib_call_trampoline): New function.
3553 (i386bsd_init_abi): Set in_solib_call_trampoline to
3554 i386bsd_aout_in_solib_call_trampoline.
3555 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3556 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3557
3558 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3559
3560 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3561 (struct obstack, struct bcache): Add opaque declarations.
3562 * Makefile.in (macrotab_h): Update
3563
3564 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3565
3566 * blockframe.c (generic_find_dummy_frame): Change return type to
3567 ``struct regcache''.
3568 (struct dummy_frame): Replace field ``registers'' with regcache, a
3569 struct regcache object.
3570 (generic_find_dummy_frame): Update.
3571 (generic_push_dummy_frame): Update. Use regcache_xfree,
3572 regcache_xmalloc and regcache_cpy.
3573 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3574 regcache_xfree.
3575 (deprecated_generic_find_dummy_frame): Update.
3576 (generic_read_register_dummy): Update. Use
3577 regcache_read_as_address.
3578 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3579 (generic_get_saved_register): Update. Use regcache_read.
3580
3581 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3582
3583 * Makefile.in (objfiles_h): Add $(bcache_h).
3584 * objfiles.h: Include "bcache.h".
3585
3586 * Makefile.in (symtab_h): Remove $(bcache_h).
3587 * symtab.h: Do not include "bcache.h".
3588
3589 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3590
3591 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3592 generic_func_frame_chain_valid.
3593
3594 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3595
3596 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3597 * config/i386/tm-fbsd.h: Likewise.
3598
3599 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3600
3601 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3602 generic_unwind_get_saved_register.
3603
3604 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3605
3606 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3607 * regcache.c (supply_register): Add missing argument to
3608 register_buffer call.
3609
3610 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3611
3612 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3613 Solaris /bin/grep does not not like it. From Peter Schauer.
3614
3615 2002-06-26 Tom Tromey <tromey@redhat.com>
3616
3617 * command.h (add_setshow_cmd): Declare.
3618 (add_setshow_cmd_full): Declare.
3619 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3620 returns void. Use add_setshow_cmd_full.
3621 (add_setshow_cmd_full): New function.
3622 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3623 (add_setshow_boolean_cmd): Likewise.
3624
3625 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3626
3627 * config/vax/tm-vax.h: Protect from multiple inclusion.
3628 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3629 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3630 * config/vax/tm-vaxbsd.h: ...here. New file.
3631 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3632
3633 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3634
3635 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3636 (BELIEVE_PCC_PROMOTION): Remove.
3637 (AP_REGNUM): Move to...
3638 * config/vax/nm-vax.h: ...here.
3639 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3640 (vax_breakpoint_from_pc): New function.
3641 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3642 and gdbarch_believe_pcc_promotion.
3643
3644 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3645
3646 * Makefile.in (vax_tdep_h): Define.
3647 (vax-tdep.o): Use $(vax_tdep_h).
3648 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3649 (vax_dump_tdep): New function.
3650 (_initialize_vax_tdep): Register vax_dump_tdep.
3651 * vax-tdep.h: Include osabi.h.
3652 (struct gdbarch_tdep): New.
3653
3654 2002-06-26 Andrew Cagney <cagney@redhat.com>
3655
3656 * frame.h (deprecated_generic_find_dummy_frame): Rename
3657 generic_find_dummy_frame.
3658 * blockframe.c (generic_find_dummy_frame): Make static.
3659 (deprecated_generic_find_dummy_frame): New function.
3660 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3661 generic_find_dummy_frame with deprecated_find_dummy_frame.
3662 (sh64_nofp_frame_init_saved_regs): Ditto.
3663 (sh_fp_frame_init_saved_regs): Ditto.
3664 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3665 (s390_frame_chain): Ditto.
3666 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3667
3668 2002-06-26 Grace Sainsbury <graces@redhat.com>
3669
3670 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3671 gdbarch vector are at the top.
3672 (NUM_REGS): Remove.
3673 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3674 (FRAME_ARGS_ADDRESS): Remove.
3675 (FRAME_LOCALS_ADDRESS): Remove.
3676 (FRAME_NUM_ARGS): Remove.
3677 (FRAME_ARGS_SKIP): Remove.
3678 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3679 (m68k_gdbarch_init): Add gdbarch initializations for macros
3680 undefined in tm-m68k.h
3681
3682 2002-06-26 Grace Sainsbury <graces@redhat.com>
3683
3684 * monitor.h: Add the function regname to monitor_ops
3685 structure. This way NUM_REGS does not have to be a constant.
3686 * monitor.c (monitor_fetch_register): Added support for regname
3687 function. The function is called if the array regnames is NULL.
3688 (monitor_store_register): Same.
3689 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3690 regnames array.
3691 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3692 cpu32bug_cmds.regname to point to new function.
3693 * abug-rom.c (abug_regname): Same as above.
3694 (init_abug_cmds): Same.
3695 * dbug-rom.c (dbug_regname): Same as above.
3696 (init_dbug_cmds): Same.
3697 * remote-est.c (est_regname): Same.
3698 (init_est_cmds): Same.
3699 * rom68k-rom.c (rom68k_regname): Same.
3700 (init_rom68k_cmds): Same.
3701
3702 2002-06-25 Tom Tromey <tromey@redhat.com>
3703
3704 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3705
3706 2002-06-25 Andrew Cagney <cagney@redhat.com>
3707
3708 * infrun.c (stop_registers): Change variable's type to ``struct
3709 regcache'''.
3710 (xmalloc_inferior_status): Delete function.
3711 (free_inferior_status): Delete function.
3712 (normal_stop): Use regcache_cpy.
3713 (struct inferior_status): Change type of fields ``stop_registers''
3714 and ``registers'' to ``struct regcache''.
3715 (write_inferior_status_register): Use regcache_write.
3716 (save_inferior_status): Instead of calling
3717 xmalloc_inferior_status, allocate the inf_status buffer directly.
3718 Use regcache_dup_no_passthrough and regcache_dup to save the
3719 buffers.
3720 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3721 Replace the stop_registers regcache instead of overriding it. Use
3722 regcache_xfree. Instead of calling free_inferior_status, xfree
3723 the buffer directly.
3724 (discard_inferior_status): Use regcache_xfree. Instead of calling
3725 free_inferior_status, xfree the buffer directly.
3726 (build_infrun): Use regcache_xmalloc.
3727 (_initialize_infrun): Delete redundant call to build_infrun.
3728
3729 * Makefile.in (infcmd.o): Add $(regcache_h).
3730
3731 * infcmd.c: Include "regcache.h".
3732 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3733 obtain the address of `stop_registers' register buffer.
3734 (print_return_value): Ditto.
3735
3736 * inferior.h (struct regcache): Add opaque declaration.
3737 (stop_registers): Change variable's declared type to ``struct
3738 regcache''.
3739
3740 2002-06-24 Tom Tromey <tromey@redhat.com>
3741
3742 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3743 * target.c (initialize_targets): Fixed typo in
3744 trust-readonly-sections `show' documentation.
3745
3746 * main.c: Marked all strings with _().
3747
3748 2002-06-24 Don Howard <dhoward@redhat.com>
3749
3750 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3751 that means max CORE_ADDR+1.
3752 (lookup_mem_region): Ditto.
3753 (mem_info_command): Ditto.
3754
3755 2002-06-24 Grace Sainsbury <graces@redhat.com>
3756
3757 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3758 (REGISTER_BYTES_OK): Remove.
3759 (REGISTER_BYTES): Remove.
3760 (STORE_STRUCT_RETURN): Remove.
3761 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3762 (STORE_RETURN_VALUE): Remove.
3763 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3764 (FRAME_CHAIN): Remove.
3765 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3766 (FRAME_SAVED_PC): Remove.
3767 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3768 (m68k_store_struct_return): Add.
3769 (m68k_deprecated_extract_return_value): Add.
3770 (m68k_deprecated_extract_struct_value_address): Add.
3771 (m68k_store_return_value): Add.
3772 (m68k_frame_chain): Add.
3773 (m68k_frameless_function_invocation): Add.
3774 (m68k_frame_saved_pc): Add.
3775 (m68k_gdbarch_init): added set_gdbarch calls for new
3776 functions and deleted macros.
3777
3778 2002-06-23 Tom Tromey <tromey@redhat.com>
3779
3780 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3781 (ALLDEPFILES): Likewise.
3782 (udiheaders): Removed.
3783 (udip2soc.o): Likewise.
3784 (udi2go32.o): Likewise.
3785 (udr.o): Likewise.
3786 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3787
3788 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3789
3790 * infrun.c (_initialize_infrun): Delete unnecessary call to
3791 build_infrun.
3792
3793 * regcache.h: Update comments describing the regcache_cpy family
3794 of functions.
3795 (regcache_save, regcache_restore): Delete declaration.
3796 (regcache_save_no_passthrough): Delete declaration.
3797 (regcache_restore_no_passthrough): Delete declaration.
3798 * regcache.c (regcache_save): Delete function.
3799 (regcache_save_no_passthrough): Delete function.
3800 (regcache_restore): Delete function.
3801 (regcache_restore_no_passthrough): Delete function.
3802
3803 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3804
3805 * config/m68k/tm-m68k.h: Fix typo.
3806 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3807 (m68k_frame_init_saved_regs): Declare.
3808
3809 2002-06-21 Jim Blandy <jimb@redhat.com>
3810
3811 Remove some vestiges of Harris 88k support.
3812 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3813 register numbering quirk.
3814 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3815 odd symbols occurring in Harris 88k ELF targets.
3816
3817 2002-06-21 Tom Tromey <tromey@redhat.com>
3818
3819 * gdb_locale.h: New file.
3820 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3821 (defs_h): Added gdb_locale.h.
3822 * configure, config.in: Rebuilt.
3823 * configure.in (PACKAGE): Define.
3824 * defs.h: Include gdb_locale.h.
3825 * main.c (captured_main): Call setlocale, bindtextdomain,
3826 textdomain.
3827
3828 2002-06-21 Dave Brolley <brolley@redhat.com>
3829
3830 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3831 * config/frv/frv.mt: New file.
3832 * config/frv/tm-frv.h: New file.
3833 * configure.tgt: Support frv-*-*.
3834 * Makefile.in (frv-tdep.o): New target.
3835 * frv-tdep.c: New file.
3836 * NEWS: Mention frv.
3837
3838 2002-06-21 Dave Brolley <brolley@redhat.com>
3839
3840 * MAINTAINERS: Add self to "Write After Approval" list.
3841
3842 2002-06-21 Grace Sainsbury <graces@redhat.com>
3843
3844 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3845 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3846 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3847 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3848 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3849
3850 * m68k-tdep.c: Include arch-utils.h
3851 (m68k_register_raw_size): Add.
3852 (m68k_register_virtual_size): Add.
3853 (m68k_register_virtual_type): Add.
3854 (m68k_register_name): Add.
3855 (m68k_stack_align): Add.
3856 (m68k_register_byte): Add.
3857 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3858 tm-m68k.h.
3859
3860 2002-06-21 Grace Sainsbury <graces@redhat.com>
3861
3862 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3863 m68k_find_saved_regs.
3864 (m68k_pop_frame): Removed saved_regs structure, and replaced
3865 references to it with frame->saved_regs.
3866 (m68k_gdbarch_init): Added function calls to initialize the
3867 gdbarch structure.
3868 (m68k_fix_call_dummy): Add.
3869 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3870 (CALL_DUMMY): Remove.
3871 (CALL_DUMMY_LENGTH): Remove.
3872 (CALL_DUMMY_START_OFFSET): Remove.
3873 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3874 (FIX_CALL_DUMMY): Remove.
3875 (PUSH_DUMMY_FRAME): Remove.
3876 (POP_FRAME): Remove.
3877
3878 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3879
3880 * parse.c (parse_fprintf): New function used to avoid calls to
3881 fprintf in bison parser generated debug code.
3882 * parser-defs.h: Declaration of new parse_fprintf function.
3883 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3884 Set YYDEBUG to 1 by default.
3885 Set YYFPRINTF as parse_fprintf.
3886
3887 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3888
3889 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3890 encoding anymore.
3891 (pointer_encoding, enum ptr_encoding): New.
3892 (execute_cfa_program): Take care about pointer encoding.
3893 (dwarf2_build_frame_info): Only call parse_frame_info for
3894 .debug_frame and .eh_frame.
3895 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3896 fixed augmentation handling, added relative addressing,
3897 ignore duplicate FDEs. Added comments.
3898 * dwarf2cfi.c: Reindented.
3899
3900 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3901
3902 * event-top.c (command_handler): Don't use space_at_cmd_start
3903 unless there is sbrk() on the host. Assign time and space data
3904 to union fields of the appropriate length.
3905
3906 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3907
3908 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3909 x86_64_register_name. Return type changed to 'const char *'.
3910 (x86_64_register_name2nr): Rename to x86_64_register_number.
3911 (x86_64_gdbarch_init): Update to reflect the change.
3912 * x86-64-tdep.h: Ditto.
3913 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3914 (supply_fpregset): Ditto.
3915
3916 2002-06-19 Andrew Cagney <cagney@redhat.com>
3917
3918 * regcache.h: Update copyright.
3919 (struct regcache, struct gdbarch): Add opaque declarations.
3920 (current_regcache): Declare global variable.
3921 (regcache_read, regcache_write): Add gdbarch parameter.
3922 (regcache_save, regcache_save_no_passthrough)
3923 (regcache_restore, regcache_restore_no_passthrough)
3924 (regcache_dup, regcache_dup_no_passthrough)
3925 (regcache_cpy, regcache_cpy_no_passthrough)
3926 (deprecated_grub_regcache_for_registers)
3927 (deprecated_grub_regcache_for_register_valid)
3928 (regcache_valid_p): Add function declarations.
3929
3930 * regcache.c: Update copyright.
3931 (regcache_descr_handle): New global variable.
3932 (struct regcache_descr): Define.
3933 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3934 (regcache_descr, xfree_regcache_descr): New functions.
3935 (struct regcache): Define.
3936 (regcache_xmalloc, regcache_xfree): New functions.
3937 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3938 (regcache_dup, regcache_dup_no_passthrough): New functions.
3939 (regcache_valid_p, regcache_read_as_address): New functions.
3940 (deprecated_grub_regcache_for_registers): New function.
3941 (deprecated_grub_regcache_for_register_valid): New function.
3942 (current_regcache): New global variable.
3943 (register_buffer): Add regcache parameter. Update calls.
3944 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3945 (read_register_gen, write_register_gen): Update register_buffer
3946 call. Test for legacy_p instead of gdbarch_register_read_p or
3947 gdbarch_register_write_p.
3948 (regcache_collect): Update register_buffer call.
3949 (build_regcache): Rewrite. Use deprecated grub functions.
3950 (regcache_save, regcache_save_no_passthrough): New functions.
3951 (regcache_restore, regcache_restore_no_passthrough): New
3952 functions.
3953 (_initialize_regcache): Create the regcache_data_handle. Swap
3954 current_regcache global variable.
3955
3956 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3957 parameter to regcache_read and regcache_write calls.
3958 (sh4_register_read): Ditto.
3959 (sh64_pseudo_register_read): Ditto.
3960 (sh64_register_read): Ditto.
3961 (sh_pseudo_register_write): Ditto.
3962 (sh4_register_write): Ditto.
3963 (sh64_pseudo_register_write): Ditto.
3964 (sh64_register_write): Ditto.
3965
3966 * defs.h (XCALLOC): Define.
3967
3968 2002-06-19 Grace Sainsbury <graces@redhat.com>
3969
3970 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3971 * m68k-tdep.c (m68k_gdbarch_init): Added.
3972 (m68k_dump_tdep): Added.
3973
3974 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3975
3976 * ada-lang.c (fill_in_ada_prototype): Update comment.
3977
3978 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3979
3980 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3981 MIPS_ABI_LAST.
3982 (mips_abi_string, mips_abi_strings): New.
3983 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3984 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3985 tdep->mips_abi_string. Honor mips_abi_string. Default to
3986 O32 if no ABI is found.
3987 (mips_dump_tdep): Use mips_abi_strings.
3988 (mips_abi_update): New function.
3989 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3990 ``set mips abi'' and ``show mips abi''. Check the size of
3991 mips_abi_strings.
3992
3993 2002-06-19 Andrew Cagney <cagney@redhat.com>
3994
3995 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3996 constant.
3997
3998 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3999
4000 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4001 current frame using only the first stack size adjustment. All
4002 subsequent size adjustments are not considered to be part of
4003 the "static" part of the current frame.
4004 Compute the address of the saved registers relative to the
4005 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4006 in use in this frame.
4007
4008 2002-06-18 Don Howard <dhoward@redhat.com>
4009
4010 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4011 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4012 suggesting this solution.
4013
4014 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4015
4016 * config/romp/xm-rtbsd.h: Delete file.
4017 * config/romp/rtbsd.mh: Delete file.
4018
4019 2002-06-18 Keith Seitz <keiths@redhat.com>
4020
4021 * breakpoint.c (condition_command): Post breakpoint_modify
4022 when a condition is added to an existing breakpoint.
4023 (commands_command): Likewise for commands.
4024 (set_ignore_count): Likewise for ignore counts.
4025 If no tty, do not simply return, still need to send event
4026 notification.
4027 (ignore_command): Only print a newline if the command came
4028 from a tty.
4029 Don't call breakpoints_changed, since this is now properly
4030 handled by set_ignore_count.
4031
4032 2002-06-18 Andrew Cagney <cagney@redhat.com>
4033
4034 * MAINTAINERS: Note that cris-elf target can be compiled with
4035 -Werror.
4036 * cris-tdep.c (cris_register_name): Make return type constant.
4037 (cris_breakpoint_from_pc): Ditto.
4038
4039 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4040
4041 * frame.h (struct frame_info): Change type of context to
4042 'struct context'.
4043
4044 2002-06-17 Andrew Cagney <cagney@redhat.com>
4045
4046 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4047 pointer.
4048 * gdbarch.h, gdbarch.c: Regenerate.
4049 * config/mips/tm-mips.h (mips_register_name): Update.
4050 * i386-tdep.h (i386_register_name): Update.
4051 * mips-tdep.c (mips_register_name): Update
4052 * alpha-tdep.c (alpha_register_name): Update.
4053 * arch-utils.c (legacy_register_name): Update.
4054 * arch-utils.h (legacy_register_name): Update.
4055 * avr-tdep.c (avr_register_name): Update.
4056 * ia64-tdep.c (ia64_register_name): Update.
4057 * i386-tdep.c (i386_register_name): Update.
4058 * sparc-tdep.c (sparc32_register_name): Update.
4059 (sparc64_register_name): Update.
4060 (sparclite_register_name): Update.
4061 (sparclet_register_name): Update.
4062 * sh-tdep.c (sh_generic_register_name): Update.
4063 (sh_sh_register_name): Update.
4064 (sh_sh3_register_name): Update.
4065 (sh_sh3e_register_name): Update.
4066 (sh_sh_dsp_register_name): Update.
4067 (sh_sh3_dsp_register_name): Update.
4068 (sh_sh4_register_name): Update.
4069 (sh_sh64_register_name): Update.
4070 * s390-tdep.c (s390_register_name): Update.
4071 * rs6000-tdep.c (rs6000_register_name): Update.
4072 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4073 (ns32k_register_name_32382): Update.
4074 * d10v-tdep.c (d10v_ts2_register_name): Update.
4075 (d10v_ts3_register_name): Update.
4076 * xstormy16-tdep.c (xstormy16_register_name): Update.
4077 * vax-tdep.c (vax_register_name): Update.
4078 * v850-tdep.c (v850_register_name): Update.
4079 * m68hc11-tdep.c (m68hc11_register_name): Update.
4080 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4081 (am33_register_name): Update.
4082
4083 2002-06-17 Grace Sainsbury <graces@redhat.com>
4084
4085 * m68k-tdep.c: Reindented.
4086
4087 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4088
4089 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4090 list of predefined types.
4091
4092 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4093
4094 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4095 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4096 REGISTER_CONVERT_TO_RAW): Remove defines.
4097 (i386_register_virtual_type, i386_register_convertible,
4098 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4099 Remove prototypes.
4100 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4101 macros mentioned above.
4102
4103 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4104 (i386lynx_saved_pc_after_call): Remove prototype.
4105 * i386ly-tdep.c: Include "i386-tdep.h".
4106 (i386lynx_saved_pc_after_call): Make static. Use
4107 read_memory_nobpt instead of read_memory. Use
4108 read_memory_unsigned_integer instead of read_memory_integer.
4109 (i386lynx_init_abi): New function.
4110 (i386lynx_coff_osabi_sniffer): New function.
4111 (_initialize_i386bsd_tdep): New function.
4112
4113 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4114 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4115 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4116 (i386_fix_call_dummy): Remove prototype.
4117 * i386-tdep.c (i386_call_dummy_words): New variable.
4118 (i386_gdbarch_init): Adjust for removal of the
4119 macros mentioned above.
4120
4121 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4122
4123 * command.h (add_setshow_auto_boolean_cmd): Replace
4124 add_set_auto_boolean_cmd.
4125 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4126 add_set_auto_boolean_cmd.
4127 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4128 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4129 mask-address'' command.
4130 (show_mask_address): Add cmd parameter.
4131 * remote.c (add_packet_config_cmd): Update. Change type of
4132 set_func and show_func to cmd_sfunc_ftype.
4133 (_initialize_remote): Update `set remote Z-packet'
4134 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4135 (show_remote_protocol_e_packet_cmd): Ditto.
4136 (show_remote_protocol_E_packet_cmd): Ditto.
4137 (show_remote_protocol_P_packet_cmd): Ditto.
4138 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4139 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4140 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4141 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4142 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4143 (show_remote_protocol_Z_packet_cmd): Ditto.
4144 (show_remote_protocol_binary_download_cmd): Ditto.
4145 (show_remote_cmd): Pass NULL to all of above.
4146
4147 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4148
4149 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4150 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4151 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4152 POP_FRAME): Remove defines.
4153 (i386_push_arguments, i386_store_struct_return,
4154 i386_extract_return_value, i386_store_return_value,
4155 i386_extract_struct_value_address, i386_push_dummy_frame,
4156 i386_pop_frame): Renove prototypes.
4157 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4158 macros mentioned above.
4159
4160 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4161
4162 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4163 add_set_boolean_cmd.
4164 (add_setshow_cmd): New function.
4165 * command.h (add_setshow_boolean_cmd): Replace
4166 add_set_boolean_cmd.
4167 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4168 and ``set rdiromatzero''.
4169 * maint.c (_initialize_maint_cmds): Update commented out code.
4170 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4171 * target.c (initialize_targets): Update `set
4172 trust-readonly-sections'.
4173 * remote.c (_initialize_remote): Update `set remotebreak'.
4174
4175 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4176
4177 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4178 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4179 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4180 fit into multi-arch framework.
4181 (i386_breakpoint_from_pc): New function.
4182 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4183 above.
4184
4185 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4186 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4187 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4188 (i386_frameless_function_invocation, i386_frame_num_args,
4189 i386_frame_init_saved_regs): Remove prototypes.
4190 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4191 macros mentioned above.
4192
4193 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4194
4195 * cli/cli-decode.c (set_cmd_cfunc): Update.
4196 (set_cmd_sfunc): Update.
4197 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4198 (set_cmd_sfunc, set_cmd_cfunc): Update.
4199 * cli/cli-decode.h: Update.
4200
4201 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4202
4203 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4204 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4205
4206 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4207
4208 * defs.h (auto_boolean): Declare enum.
4209 * command.h (cmd_auto_boolean): Delete enum.
4210 * mips-tdep.c (mask_address_var): Update.
4211 (mips_mask_address_p): Update.
4212 (show_mask_address): Update.
4213 * remote.c (struct packet_config): Update.
4214 (update_packet_config): Update.
4215 (show_packet_config_cmd): Update.
4216 (packet_ok): Update.
4217 (add_packet_config_cmd): Update.
4218 (_initialize_remote):
4219 * command.h: Update.
4220 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4221 (do_setshow_command): Update.
4222 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4223 * cli/cli-decode.h: Update.
4224
4225 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4226
4227 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4228 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4229 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4230 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4231 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4232 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4233
4234 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4235 list of DJGPP COFF targets.
4236
4237 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4238 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4239 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4240 (FP0_REGNUM): Remove define.
4241 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4242 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4243 (i386_register_virtual_size): Remove protoype.
4244 * i386-tdep.c (i386_register_virtual_size): Removed.
4245 (i386_extract_return_value, i386_store_return_value): Use
4246 FP0_REGNUM instead of NUM_FREGS to determine whether the
4247 floating-point registers are available.
4248 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4249 Adjust for removal of macros mentioned above.
4250
4251 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4252
4253 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4254 comments.
4255 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4256 Remove prototypes.
4257 (supply_gregset, fill_gregset): Remove use of register keyword and
4258 remove declaration for regmap. Use I386_NUM_GREGS instead of
4259 NUM_REGS and NUM_FREGS.
4260 (FPREGSET_FSAVE_OFFSET): Remove.
4261 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4262 NUM_FREGS to determine whether the floating-point registers are
4263 available.
4264
4265 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4266 gnu_store_registers): Replace usage of NUM_GREGS with
4267 I386_NUM_GREGS.
4268
4269 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4270 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4271 usage of NUM_GREGS with I386_NUM_GREGS.
4272
4273 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4274
4275 * i386bsd-nat.c: Include "i386-tdep.h".
4276 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4277 I386_NUM_GREGS.
4278
4279 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4280 and associated comment. They no longer make any sense, since we
4281 don't use this file anymore on Linux.
4282
4283 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4284 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4285 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4286 elements in these arrays.
4287 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4288 MAX_NUM_REGS.
4289
4290 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4291
4292 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4293 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4294
4295 2002-06-14 Andrew Cagney <cagney@redhat.com>
4296
4297 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4298 EXTRACT_RETURN_VALUE.
4299 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4300 EXTRACT_STRUCT_VALUE_ADDRESS.
4301 * gdbarch.h, gdbarch.c: Regenerate.
4302
4303 * values.c (value_being_returned): Handle
4304 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4305 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4306
4307 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4308 * arm-tdep.c (arm_gdbarch_init): Update.
4309 * avr-tdep.c (avr_gdbarch_init): Update.
4310 * cris-tdep.c (cris_gdbarch_init): Update.
4311 * d10v-tdep.c (d10v_gdbarch_init): Update.
4312 * ia64-tdep.c (ia64_gdbarch_init): Update.
4313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4315 * s390-tdep.c (s390_gdbarch_init): Update.
4316 * sh-tdep.c (sh_gdbarch_init): Update.
4317 * s390-tdep.c (s390_gdbarch_init): Update.
4318 * sparc-tdep.c (sparc_gdbarch_init): Update.
4319 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4320 * v850-tdep.c (v850_gdbarch_init): Update.
4321 * vax-tdep.c (vax_gdbarch_init): Update.
4322 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4324
4325 * config/arc/tm-arc.h: Update.
4326 * config/d30v/tm-d30v.h: Update.
4327 * config/fr30/tm-fr30.h: Update.
4328 * config/h8300/tm-h8300.h: Update.
4329 * config/h8500/tm-h8500.h: Update.
4330 * config/i386/tm-i386.h: Update.
4331 * config/i386/tm-ptx.h: Update.
4332 * config/i386/tm-symmetry.h: Update.
4333 * config/i960/tm-i960.h: Update.
4334 * config/m32r/tm-m32r.h: Update.
4335 * config/m68k/tm-delta68.h: Update.
4336 * config/m68k/tm-linux.h: Update.
4337 * config/m68k/tm-m68k.h: Update.
4338 * config/m88k/tm-m88k.h: Update.
4339 * config/mcore/tm-mcore.h: Update.
4340 * config/mips/tm-mips.h: Update.
4341 * config/mn10200/tm-mn10200.h: Update.
4342 * config/pa/tm-hppa.h: Update.
4343 * config/pa/tm-hppa64.h: Update.
4344 * config/sparc/tm-sp64.h: Update.
4345 * config/sparc/tm-sparc.h: Update.
4346 * config/sparc/tm-sparclet.h: Update.
4347 * config/z8k/tm-z8k.h: Update.
4348
4349 2002-06-14 Andrew Cagney <cagney@redhat.com>
4350
4351 * Makefile.in (i386_linux_tdep_h): Define.
4352 (i386_tdep_h, i387_tdep_h): Define.
4353 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4354 $(i386_tdep_h) and $(i387_tdep_h).
4355 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4356
4357 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4358
4359 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4360 Already covered by the default.
4361
4362 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4363 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4364 (i386_gdbarch_init): Initialize long_double_format and long_double
4365 bit.
4366
4367 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4368 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4369 Move these to ...
4370 * config/i386/i386sol2.mh: ... here.
4371 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4372 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4373 (SIGCONTEXT_PC_OFFSET): Remove define.
4374 (IN_SIGTRAMP): Remove define.
4375 * i386-sol2-tdep.c: New file.
4376
4377 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4378 * config/i386/tm-i386nw.h: Removed.
4379
4380 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4381 USE_STRUCT_CONVENTION): Remove defines.
4382 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4383 (get_longjmp_target): Remove prototype.
4384 (IN_SIGTRAMP): Remove define.
4385 (i386bsd_in_sigtramp): Remove prototype.
4386 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4387 function. Update comment accordingly
4388 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4389 (FRAME_SAVED_PC): Remove define.
4390 (i386bsd_frame_saved_pc): Remove prototype.
4391 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4392 GET_LONGJMP_TARGET): Remove defines.
4393 (get_longjmp_target): Remove prototype.
4394 (IN_SIGTRAMP): Remove define.
4395 (i386bsd_in_sigtramp): Remove prototype.
4396 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4397 function. Update comment accordingly
4398 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4399 (FRAME_SAVED_PC): Remove define.
4400 (i386bsd_frame_saved_pc): Remove prototype.
4401 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4402 Remove prototype.
4403 (USE_STRUCT_CONVENTION): Remove prototype.
4404 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4405 declaration.
4406 (_initialize_i386bsd_nat): Revise logic to determine some
4407 constants at compile time when compiling a native GDB. Warn if
4408 things don't match up with what we expect.
4409 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4410 Remove variables.
4411 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4412 to use date stored in `struct gdbarch_tdep'.
4413 (i386bsd_sigcontext_offset): Remove varaible.
4414 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4415 stored in `struct gdbarch_tdep'.
4416 (i386bsd_frame_saved_pc): Make static.
4417 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4418 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4419 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4420 i386fbsd4_sc_pc_offset): New variables.
4421 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4422 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4423 functions.
4424 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4425 functions.
4426 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4427 Modify the value of i386fbsd_sigtramp_start and
4428 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4429 i386fbsd_sigtramp_end.
4430 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4431 function.
4432
4433 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4434 define to i386-linux-tdep.h.
4435 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4436 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4437 defines.
4438 (i386_linux_register_name, i386_linux_register_byte,
4439 i386_linux_register_raw_size): Remove prototypes.
4440 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4441 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4442 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4443 TARGET_WRITE_PC): Remove defines.
4444 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4445 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4446 i386_linux_write_pc): Remove prototypes.
4447 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4448 (get_longjmp_target): Remove prototype.
4449 * i386-linux-tdep.h: New file.
4450 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4451 * i386-linux-tdep.c: Include "i386-tdep.h" and
4452 "i386-linux-tdep.h".
4453 (i386_linux_register_name, i386_linux_register_byte,
4454 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4455 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4456 Make static.
4457 (i386_linux_init_abi): New function.
4458 (_initialize_i386_linux_tdep): New function.
4459
4460 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4461 (i386_saved_pc_after_call): Remove prototype.
4462 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4463 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4464 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4465 (i386_register_name, i386_stab_reg_to_regnum,
4466 i386_dwarf_reg_to_regnum): Remove prototypes.
4467 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4468 SIZEOF_SSE_REGS): Remove defines.
4469 (REGISTER_BYTES): Remove define.
4470 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4471 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4472 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4473 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4474 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4475 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4476 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4477 (get_longjmp_target): Remove prototype.
4478 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4479 (sigtramp_saved_pc): Remove define.
4480 (i386v4_sigtramp_saved_pc): Remove prototype.
4481 * config/i386/tm-go32.h (FRAME_CHAIN,
4482 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4483 (i386go32_frame_saved_pc): Remove prototype.
4484 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4485 (get_longjmp_target): Remove prototype.
4486 * i386-tdep.h: Include "osabi.h".
4487 (enum i386_abi): Removed.
4488 (enum struct_return): New enum.
4489 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4490 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4491 sc_pc_offset members.
4492 (i386_gdbarch_register_os_abi): Remove prototype.
4493 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4494 I386_SSE_NUM_REGS): New defines.
4495 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4496 I386_SSE_SIZEOF_REGS): New defines.
4497 (i386_register_name, i386_register_byte, i386_register_raw_size):
4498 New prototypes.
4499 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4500 (i386bsd_sigtramp_saved_pc): New prototype.
4501 * i386-tdep.c: Don't include "elf-bfd.h".
4502 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4503 i386_frame_chain, i386_saved_pc_after_call): Make static.
4504 (i386_frame_saved_pc): Rewrite to call architecture dependent
4505 function to deal with signal handlers. Make static.
4506 (i386go32_frame_saved_pc): Removed.
4507 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4508 Removed.
4509 (i386_get_longjmp_target): New function.
4510 (default_struct_convention, pcc_struct_convention,
4511 reg_struct_convention, valid_conventions, struct_convention): New
4512 variables.
4513 (i386_use_struct_convention): New function.
4514 (i386v4_sigtramp_saved_pc): Renamed to
4515 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4516 (i386_pc_in_sigtramp): New function.
4517 (i386_abi_names): Removed.
4518 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4519 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4520 Removed.
4521 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4522 i386_gdbarch_register_os_abi): Removed.
4523 (struct i386_abi_handler): Removed.
4524 (i386_abi_handler_list): Removed.
4525 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4526 functions.
4527 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4528 i386_nw_init_abi): New functions.
4529 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4530 Use set_gdbarch_xxx() calls instead of relying on macros for a
4531 number of calls.
4532 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4533 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4534 Register the various architecture variants defined in this file.
4535
4536 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4539 (struct main_type): Remove arg_types member. Update comments for
4540 struct field.
4541 (TYPE_ARG_TYPES): Remove.
4542 (TYPE_FN_FIELD_ARGS): Update.
4543 (smash_to_method_type): Update prototype.
4544
4545 * c-typeprint.c (cp_type_print_method_args): Take method type
4546 instead of argument list. Use new argument layout. Simplify.
4547 (c_type_print_args): Use new argument layout. Simplify.
4548 (c_type_print_base): Update call to cp_type_print_method_args.
4549 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4550 argument; use die->type instead. Update call to
4551 smash_to_method_type.
4552 (read_structure_scope): Update call to dwarf2_add_member_fn.
4553 * gdbtypes.c (allocate_stub_method): Update comment.
4554 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4555 Use new argument layout.
4556 (check_stub_method): Use new argument layout. Don't count
4557 void as an argument.
4558 (print_arg_types): Update comments. Use new argument layout.
4559 (recursive_dump_type): Don't print arg_types member.
4560 * hpread.c (hpread_read_struct_type): Use new argument layout.
4561 (fixup_class_method_type): Likewise.
4562 (hpread_type_lookup): Likewise.
4563 * stabsread.c (read_type): Update calls to read_args and
4564 smash_to_method_type.
4565 (read_args): Use new argument layout. Simplify.
4566 * valops.c (typecmp): Use new argument layout. Update parameters
4567 and comments. Simplify.
4568 (hand_function_call): Use new argument layout.
4569 (search_struct_method): Update call to typecmp.
4570 (find_overload_match): Use new argument layout.
4571
4572 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4573
4574 * NEWS: Mention multithreaded debug support for gdbserver.
4575
4576 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4577
4578 * MAINTAINERS: Mention NEWS.
4579
4580 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4581
4582 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4583 (struct mips_objfile_private, compare_pdr_entries): New.
4584 (non_heuristic_proc_desc): Read the ".pdr" section if it
4585 is present.
4586
4587 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4588
4589 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4590 (arm_debug): New static variable.
4591 (_initialize_arm_tdep): Add ``set debug arm'' command.
4592
4593 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4594
4595 * Makefile.in (sim_arm_h): Define.
4596 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4597 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4598 (arm_register_sim_regno): New function, map an internal REGNUM
4599 onto a simulator register number.
4600 (arm_gdbarch_init): Set register_sim_regno.
4601
4602 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4603
4604 * MAINTAINERS: Add self.
4605
4606 2002-06-11 Jim Blandy <jimb@redhat.com>
4607
4608 * source.c (source_info): Mention whether the symtab has
4609 information about preprocessor macros.
4610
4611 Call the command `info macro', not `show macro'.
4612 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4613 Fix error message.
4614 (_initialize_macrocmd): Register `info_macro_command' in
4615 `infolist', not `showlist'.
4616
4617 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4618
4619 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4620 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4621 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4622 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4623 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4624 unconditionally.
4625 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4626 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4627 (_initialize_mips_tdep): Remove dead code.
4628 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4629 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4630 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4631 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4632 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4633 MIPS_LAST_FP_ARG_REGNUM): Remove.
4634
4635 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4636
4637 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4638 (unwind_tmp_obstack_free, parse_frame_info)
4639 (update_context, cfi_read_fp, cfi_write_fp)
4640 (cfi_frame_chain, cfi_init_extra_frame_info)
4641 (cfi_virtual_frame_pointer): Use the above function.
4642 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4643
4644 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4645
4646 * v850-tdep.c (v850_type_is_scalar): New function.
4647 (v850_use_struct_convention): Match current gcc implementation
4648 as close as possible.
4649 (v850_push_arguments): Fix stack_offset handling. Don't write
4650 struct_addr into register. This is done by v850_store_struct_return.
4651 (v850_extract_return_value): Care for structs.
4652 (v850_store_return_value): Ditto.
4653 (v850_store_struct_return): Actually write address.
4654
4655 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4656
4657 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4658 without debug information too.
4659
4660 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4661
4662 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4663 Make multi-arch pure.
4664 * gdbarch.h, gdbarch.c: Re-generate.
4665 * arm-tdep.c (arm_print_float_info): Update.
4666 * arch-utils.h (default_print_float_info): Update.
4667 * arch-utils.c (default_print_float_info): Update.
4668 * infcmd.c (float_info): Update call.
4669
4670 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4671
4672 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4673 the front of the initialize list.
4674
4675 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4676
4677 * infrun.c (struct inferior_status): Replace fields
4678 selected_frame_address and selected_level with field
4679 selected_frame_id.
4680 (save_inferior_status): Update. Use get_frame_id.
4681 (struct restore_selected_frame_args): Delete.
4682 (restore_selected_frame): Update. Use frame_find_by_id.
4683 (restore_inferior_status): Update.
4684
4685 * breakpoint.h (struct breakpoint): Change type of
4686 watchpoint_frame to frame_id.
4687 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4688 call to get_current_frame.
4689 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4690 get_current_frame.
4691 (watchpoint_check): Use frame_find_by_id.
4692
4693 * frame.h (record_selected_frame): Delete declaration.
4694 * stack.c (record_selected_frame): Delete function.
4695
4696 * frame.h (struct frame_id): Define.
4697 (get_frame_id): Declare.
4698 (frame_find_by_id): Declare.
4699 * frame.c (frame_find_by_id): New function.
4700 (get_frame_id): New function.
4701
4702 2002-06-10 Andrey Volkov <avolkov@transas.com>
4703
4704 * ser-e7kpc.c: Fix duplicated define and call of
4705 _initialize_ser_e7000pc
4706
4707 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4708
4709 * signals/signals.c (target_signal_from_host): Fix #ifdef
4710 SIGRTMIN case.
4711 (do_target_signal_to_host): Likewise.
4712
4713 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4714
4715 * mips-tdep.c (mips_find_abi_section): New function.
4716 (mips_gdbarch_init): Call it.
4717
4718 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4719
4720 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4721 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4722 after Andrew's 2002-06-08 gdbarch change.
4723
4724 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4725
4726 * i386-linux-nat.c (suppy_gregset): Don't supply
4727 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4728 register cache.
4729 (fill_gregset): Don't fetch it under the same circumstances.
4730
4731 2002-06-09 Andrew Cagney <cagney@redhat.com>
4732
4733 * Makefile.in (callback_h): Define.
4734 (remote_sim_h): Update path to remote-sim.h.
4735 (remote-rdp.o): Add $(callback_h).
4736 (remote-sim.o): Use $(callback_h).
4737 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4738 * remote-rdp.c: Include "gdb/callback.h".
4739
4740 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4741
4742 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4743 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4744
4745 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4746
4747 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4748 * rdi-share/serpardr.c: Ditto.
4749 * rdi-share/unixcomm.c: Ditto.
4750 * rdi-share/serdrv.c: Ditto.
4751 * rdi-share/hostchan.h: Ditto.
4752 * rdi-share/hostchan.c: Ditto.
4753 * rdi-share/host.h: Ditto.
4754 * rdi-share/devsw.c: Ditto.
4755
4756 * objfiles.h: Change type of obj_private to void pointer.
4757 * pa64solib.c: Update copyright. Don't include "assert.h", use
4758 strcmp instead of STREQ, use LONGEST, do not use PTR
4759 * somsolib.c: Ditto.
4760
4761 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4762 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4763 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4764
4765 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4766
4767 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4768 (default_get_saved_register): Delete function.
4769 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4770 generic_unwind_get_saved_register.
4771 * gdbarch.h, gdbarch.c: Re-generate.
4772
4773 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4774
4775 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4776 generic_func_frame_chain_valid.
4777 * gdbarch.h, gdbarch.c: Re-generate.
4778 * blockframe.c (generic_func_frame_chain_valid): Only check
4779 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4780 passing FP to PC_IN_CALL_DUMMY.
4781 Fix PR gdb/360.
4782
4783 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4784
4785 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4786 (register_gdbarch_data): Initialize init_p.
4787 (gdbarch_data): Initialize data pointer using the init function.
4788 (init_gdbarch_data): Delete function.
4789 (gdbarch_update_p): Update.
4790 (initialize_non_multiarch): Update.
4791 (struct gdbarch): Add field initialized_p.
4792 * gdbarch.h, gdbarch.c: Re-generate.
4793
4794 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4795
4796 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4797 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4798 better do the things actually here.
4799 * x86-64-tdep.c (x86_64_register_name2nr): New.
4800 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4801 (x86_64_gdbarch_init): Respect the above change.
4802 * x86-64-tdep.h (x86_64_register_name2nr)
4803 (x86_64_register_nr2name): Add prototypes.
4804 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4805
4806 2002-06-06 Michael Snyder <msnyder@redhat.com>
4807
4808 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4809 Delete extra braces and re-indent.
4810 (d10v_store_return_value): Char return values
4811 must be shifted over by one byte in R0.
4812 (d10v_extract_return_value): Delete extra braces, re-indent.
4813
4814 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4815
4816 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4817 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4818 (d10v_integer_to_address): Rewrite.
4819 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4820 the d10v specific functions which take care of converting to the
4821 correct space.
4822
4823 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4824
4825 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4826 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4827
4828 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4829
4830 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4831 includes.
4832 * config/tm-linux.h: Ditto.
4833 * config/alpha/tm-alphalinux.h: Ditto.
4834 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4835 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4836 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4837 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4838 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4839 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4840 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4841 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4842 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4843 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4844 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4845 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4846 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4847 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4848 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4849 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4850 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4851 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4852 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4853 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4854 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4855 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4856 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4857 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4858 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4859 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4860 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4861 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4862 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4863 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4864 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4865 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4866 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4867 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4868 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4869 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4870 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4871
4872 2002-05-04 Aidan Skinner <aidan@velvet.net>
4873
4874 * ada-exp.tab.c: New file
4875 * ada-exp.y: New file
4876 * ada-lang.c: New file
4877 * ada-lang.h: New file
4878 * ada-lex.c: New file
4879 * ada-lex.l: New file
4880 * ada-tasks.c: New file
4881 * ada-typeprint.c: New file
4882 * ada-valprint.c: New file
4883
4884 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4885
4886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4887 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4888
4889 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4890
4891 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4892 insetead of ppc-linux-tdep.o.
4893 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4894 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4895
4896 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4897
4898 2002-05-07 Christian Groessler <chris@groessler.org>
4899 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4900 bit register contents for little endian hosts.
4901
4902 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4903
4904 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4905 any maintainer.
4906
4907 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4908
4909 * gdbarch.h: Regenerate.
4910
4911 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4912
4913 * MAINTAINERS: Add everyone to write-after-approval list.
4914
4915 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4916
4917 * stack.c (frame_info): Use frame_register_unwind instead of
4918 saved_regs. Mention when the SP is on the stack or in a register.
4919
4920 * frame.h (frame_register_unwind_ftype): Define. Document.
4921 (struct frame_info): Add field register_unwind and
4922 register_unwind_cache.
4923 (frame_register_unwind): Declare.
4924 (generic_unwind_get_saved_register): Declare.
4925
4926 * frame.c (frame_register_unwind): New function.
4927 (generic_unwind_get_saved_register): New function.
4928
4929 * blockframe.c (generic_call_dummy_register_unwind): New function.
4930 (frame_saved_regs_register_unwind): New function.
4931 (set_unwind_by_pc): New function.
4932 (create_new_frame): New function.
4933 (get_prev_frame): New function.
4934
4935 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4936
4937 * a29k-share/: Delete directory.
4938 * remote-vx29k.c: Delete file.
4939
4940 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4941
4942 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4943 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4944
4945 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4946
4947 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4948 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4949 (sparc64nbsd-nat.o)
4950 (sparcnbsd-nat.o)
4951 (sparcnbsd-tdep.o): New dependency lists.
4952 * NEWS: Note new UltraSPARC NetBSD native configuration.
4953 * configure.host (sparc64-*-netbsd*): New host.
4954 * configure.tgt (sparc-*-netbsdelf*)
4955 (sparc-*-netbsd*): Set gdb_target to nbsd.
4956 (sparc64-*-netbsd*): New target.
4957 * sparc64nbsd-nat.c: New file.
4958 * sparcnbsd-nat.c: New file.
4959 * sparcnbsd-tdep.c: New file.
4960 * sparcnbsd-tdep.h: New file.
4961 * config/sparc/nbsd.mt: New file.
4962 * config/sparc/nbsd64.mh: New file.
4963 * config/sparc/nbsd64.mt: New file.
4964 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4965 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4966 (HOST_IPC): Remove.
4967 * config/sparc/nbsdaout.mt: Remove.
4968 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4969 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4970 (HOST_IPC): Remove.
4971 * config/sparc/nbsdelf.mt: Remove.
4972 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4973 sparc-nat.c compatiblity defines.
4974 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4975 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4976 * config/sparc/tm-nbsd64.h: New file.
4977 * config/sparc/tm-nbsdaout.h: Remove.
4978 * config/sparc/xm-nbsd.h: Remove.
4979
4980 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4981
4982 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4983 * sparc-tdep.c: Include osabi.h.
4984 (gdbarch_tdep): Add osabi member.
4985 (_initialize_sparc_tdep): Use gdbarch_register.
4986 (sparc_gdbarch_init): Use generic OS ABI framework.
4987 (sparc_dump_tdep): New function.
4988
4989 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4990
4991 * corefile.c (do_captured_read_memory_integer): Return non-zero
4992 result.
4993 (safe_read_memory_integer): Copy result of memory read when
4994 status is non-zero. Also, add comments.
4995
4996 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4997
4998 * Makefile.in (ppc_tdep_h): Define.
4999 (ppc-linux-nat.o)
5000 (ppc-linux-tdep.o)
5001 (rs6000-tdep.o): Use $(ppc_tdep_h).
5002 (ppc-sysv-tdep.o)
5003 (ppcnbsd-nat.o)
5004 (ppcnbsd-tdep.o): New dependency lists.
5005 * ppc-tdep.h: Use generic OS ABI framework.
5006 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5007 (ppc_linux_init_abi): New functions.
5008 (ppc_sysv_abi_broken_use_struct_convention)
5009 (ppc_sysv_abi_use_struct_convention)
5010 (ppc_sysv_abi_push_arguments): Move to...
5011 * ppc-sysv-tdep.c: ...here.
5012 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5013 * rs6000-tdep.c (process_note_abi_tag_sections)
5014 (get_elfosabi): Remove.
5015 (rs6000_gdbarch_init): Use generic OS ABI framework.
5016 (rs6000_dump_tdep): New function.
5017 (_initialize_rs6000_tdep): Use gdbarch_register.
5018 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5019 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5020 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5021 of ppc-linux-tdep.o.
5022 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5023 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5024 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5025 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5026 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5027 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5028
5029 2002-05-29 Jim Blandy <jimb@redhat.com>
5030
5031 * macroscope.c (default_macro_scope): Put `void' in empty argument
5032 list.
5033
5034 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5035
5036 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5037 * arch-utils.c: Include "sim-regno.h".
5038 * gdbarch.sh: Don't include "sim-regno.h".
5039 * gdbarch.h, gdbarch.c: Regenerate.
5040 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5041 here.
5042 * arch-utils.h (legacy_register_sim_regno): To here.
5043 * remote-sim.c (legacy_register_sim_regno): Move function from
5044 here.
5045 * arch-utils.c (legacy_register_sim_regno): To here.
5046
5047 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5048
5049 * sim-regno.h: New file.
5050 * Makefile.in (sim_regno_h): Define.
5051 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5052 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5053 (legacy_register_sim_regno): New function.
5054 (one2one_register_sim_regno): New function.
5055 (gdbsim_fetch_register): Rewrite.
5056 (gdbsim_store_register): Only store a register when
5057 REGISTER_SIM_REGNO is valid.
5058 * d10v-tdep.c: Include "sim-regno.h".
5059 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5060 (d10v_ts3_register_sim_regno): Ditto.
5061 * gdbarch.sh: Include "sim-regno.h".
5062 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5063 * gdbarch.h, gdbarch.c: Regenerate.
5064 * arch-utils.h (default_register_sim_regno): Delete declaration.
5065 * arch-utils.c (default_register_sim_regno): Delete function.
5066
5067 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5068
5069 * ppcnbsd-nat.c: Rewrite.
5070 * ppcnbsd-tdep.c: New file.
5071 * ppcnbsd-tdep.h: New file.
5072 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5073 solib.o, and solib-svr4.o.
5074 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5075 nbsd-tdep.o, and corelow.o.
5076
5077 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5078
5079 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5080 `tr' and `sed'. Mention that `broken' targets are not expected to
5081 build.
5082
5083 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5084
5085 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5086 Let PC point right after the prologue before looking up symbols.
5087
5088 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5089
5090 * i386-tdep.c (i386_register_virtual_type): Return
5091 builtin_type_vec128i for SSE registers.
5092
5093 * gdbtypes.h (builtin_type_vec128i): Declare.
5094
5095 * gdbtypes.c (build_builtin_type_vec128i): New function.
5096 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5097 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5098 (build_gdbtypes): Initialize new builtin vector types.
5099 (_initialize_gdbtypes): Register new vector types with gdbarch.
5100
5101 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5102
5103 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5104 since it has been multi-arch'd.
5105 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5106 Move Alpha and VAX multi-arch news entries to same section
5107 as other multi-arch news.
5108
5109 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5110
5111 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5112 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5113 static. Rename some register numbers to put them in ns32k-tdep
5114 private namespace.
5115 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5116 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5117 functions.
5118 (_initialize_ns32k_tdep): Use gdbarch_register.
5119 * ns32k-tdep.h: New file.
5120 * ns32knbsd-tdep.c: New file.
5121 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5122 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5123 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5124 REGISTER_BYTES, REGISTER_BYTE): Remove.
5125 * config/ns32k/tm-ns32k.h: New file.
5126 * config/ns32k/tm-umax.h: Remove.
5127
5128 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5129
5130 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5131 ns32k_store_struct_return, ns32k_extract_return_value,
5132 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5133 functions.
5134 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5135 ns32k_saved_pc_after_call.
5136 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5137 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5138 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5139 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5140 ns32k_extract_struct_value_address.
5141
5142 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5143
5144 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5145 ns32k_fix_call_dummy): New.
5146 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5147 ns32k_call_dummy_words.
5148 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5149 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5150 CALL_DUMMY_NARGS): Remove.
5151 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5152
5153 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5154
5155 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5156 ns32k_frame_saved_pc, ns32k_frame_args_address,
5157 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5158 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5159 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5160 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5161 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5162 (BREAKPOINT): Remove..
5163 (FRAME_CHAIN): Define as ns32k_frame_chain.
5164 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5165 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5166 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5167 (FRAME_FIND_SAVED_REGS): Remove.
5168 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5169 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5170 (POP_FRAME): Define as ns32k_pop_frame.
5171
5172 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5173
5174 * ns32k-tdep.c (ns32k_register_byte_32082,
5175 ns32k_register_byte_32382, ns32k_register_raw_size,
5176 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5177 functions.
5178 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5179 ns32k_register_byte_32382.
5180 * config/ns32k/tm-umax.h: Update copyright years.
5181 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5182 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5183 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5184 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5185 (ns32k_get_enter_addr): Fix prototype.
5186
5187 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5188
5189 * ns32k-tdep.c: Update copyright years.
5190 (ns32k_register_name_32082): New function.
5191 (ns32k_register_name_32382): Ditto.
5192 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5193 (REGISTER_NAME): Define as ns32k_register_name_32382.
5194 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5195 (REGISTER_NAME): Define as ns32k_register_name_32082.
5196
5197 2002-05-24 Jim Blandy <jimb@redhat.com>
5198
5199 * dwarf2read.c (free_line_header): Use xfree, not free.
5200
5201 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5202
5203 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5204 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5205
5206 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5207
5208 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5209
5210 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5211
5212 From Ross Alexander at NEC Europe:
5213 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5214
5215 2002-05-23 Michael Snyder <msnyder@redhat.com>
5216
5217 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5218 for input, rather than parse_and_eval_address.
5219
5220 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5221
5222 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5223 * Makefile.in (sim_d10v_h): Update definition.
5224
5225 2002-05-24 Andrew Cagney <cagney@redhat.com>
5226
5227 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5228 change `2002-05-22 Michael Snyder' below.
5229 (d10v_push_arguments): Ditto.
5230 (d10v_extract_return_value): Ditto.
5231
5232 2002-05-23 Jim Blandy <jimb@redhat.com>
5233
5234 * macrotab.c (check_for_redefinition): Don't complain if the new
5235 definition is the same as the previous one. Take more arguments
5236 to allow the comparison.
5237 (macro_define_object, macro_define_function): Pass more arguments
5238 to check_for_redefinition.
5239
5240 2002-05-22 Michael Snyder <msnyder@redhat.com>
5241
5242 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5243 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5244 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5245 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5246 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5247 Add a temp variable to save a call (and a memory read).
5248 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5249 if possible (so that PC_IN_CALL_DUMMY will work).
5250
5251 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5252
5253 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5254
5255 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5256
5257 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5258 fde->cie_ptr.
5259 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5260 (dwarf2_build_frame_info): Add offset to fde->initial_location
5261 so that frames of shared libraries are mapped correctly.
5262 (execute_stack_op): Change type of 'result' from ULONGEST to
5263 CORE_ADDR.
5264
5265 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5266
5267 * config/alpha/tm-nbsd.h: Include solib.h.
5268
5269 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5270
5271 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5272 assumptions about the host's byte order.
5273
5274 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5275
5276 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5277 to dependency list.
5278 * alphanbsd-tdep.c: Include solib-svr4.h.
5279 * shnbsd-tdep.c: Ditto.
5280
5281 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5282
5283 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5284 nbsd-tdep.h to dependency list.
5285 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5286 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5287 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5288 nbsdaout.mh and nbsdelf.mh consistently.
5289 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5290 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5291 nbsdaout.mt and nbsdelf.mh consistently.
5292 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5293 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5294 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5295 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5296 a.out shared library stuff from here...
5297 * config/nm-nbsdaout.h: ...to here.
5298 * config/tm-nbsd.h: Remove.
5299 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5300 * config/arm/nbsd.mh: Remove.
5301 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5302 nbsd-tdep.o.
5303 * config/arm/nbsdaout.mh: New file.
5304 * config/arm/nbsdelf.mh: New file.
5305 * config/arm/nm-nbsdaout.h: New file.
5306 * config/i386/nbsd.mh: Remove.
5307 * config/i386/nbsd.mt: Remove.
5308 * config/i386/nbsdaout.mh: New file.
5309 * config/i386/nbsdaout.mt: New file.
5310 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5311 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5312 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5313 i386_register_u_addr): Remove.
5314 * config/i386/nm-nbsdaout.h: New file.
5315 * config/i386/nm-nbsdelf.h: Remove.
5316 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5317 (USE_STRUCT_CONVENTION): Remove.
5318 * config/i386/tm-nbsdaout.h: New file.
5319 * config/i386/tm-nbsdelf.h: Remove.
5320 * config/m68k/nbsd.mh: Remove.
5321 * config/m68k/nbsd.mt: Remove.
5322 * config/m68k/nbsdaout.mh: New file.
5323 * config/m68k/nbsdaout.mt: New file.
5324 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5325 * config/m68k/nm-nbsdaout.h: New file.
5326 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5327 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5328 * config/ns32k/nbsd.mh: Remove.
5329 * config/ns32k/nbsd.mt: Remove.
5330 * config/ns32k/nbsdaout.mh: New file.
5331 * config/ns32k/nbsdaout.mt: New file.
5332 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5333 * config/ns32k/nm-nbsdaout.h: New file.
5334 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5335 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5336 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5337 (SVR4_SHARED_LIBS): Remove.
5338 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5339 * config/sparc/nbsd.mh: Remove.
5340 * config/sparc/nbsd.mt: Remove.
5341 * config/sparc/nbsdaout.mh: New file.
5342 * config/sparc/nbsdaout.mt: New file.
5343 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5344 * config/sparc/nbsdelf.mt: New file.
5345 * config/sparc/nm-nbsdaout.h: New file.
5346 * config/sparc/nm-nbsdelf.h: Remove.
5347 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5348 * config/sparc/tm-nbsdaout.h: New file.
5349
5350 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5351
5352 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5353 mipsnbsd-tdep.c
5354 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5355
5356 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5357
5358 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5359 shnbsd-nat.c.
5360 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5361
5362 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5363
5364 * NEWS: Note new MIPS NetBSD native configuration.
5365 * configure.host (mips*-*-netbsd*): New host.
5366 * configure.tgt (mips*-*-netbsd*): New target.
5367 * mipsnbsd-nat.c: New file.
5368 * mipsnbsd-tdep.c: New file.
5369 * mipsnbsd-tdep.h: New file.
5370 * config/mips/nbsd.mh: New file.
5371 * config/mips/nbsd.mt: New file.
5372 * config/mips/nm-nbsd.h: New file.
5373 * config/mips/tm-nbsd.h: New file.
5374
5375 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5376
5377 * Makefile.in (SFILES): Add osabi.c.
5378 (COMMON_OBS): Add osabi.o.
5379 (osabi.o): New dependency list.
5380 * osabi.c: New file.
5381 * osabi.h: New file.
5382 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5383
5384 * Makefile.in (alpha_tdep_h): Define and use instead of
5385 alpha-tdep.h.
5386 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5387 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5388 Remove.
5389 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5390 * alpha-tdep.h: Include osabi.h.
5391 (alpha_abi): Remove.
5392 (gdbarch_tdep): Use generic OS ABI framework.
5393 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5394 gdbarch_register_osabi.
5395 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5396 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5397 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5398
5399 * Makefile.in (sh_tdep_h): Add osabi.h.
5400 * sh-tdep.h (sh_osabi): Remove.
5401 (gdbarch_tdep): Use generic OS ABI framework.
5402 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5403 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5404 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5405 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5406
5407 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5408 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5409 gdbarch_register_osabi.
5410 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5411 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5412 (get_elfosabi): Rename to...
5413 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5414 ABI framework support routines.
5415 (arm_gdbarch_init): Use generic OS ABI framework.
5416 (arm_dump_tdep): Likewise.
5417 (_initialize_arm_tdep): Likewise.
5418 * arm-tdep.h: Include osabi.h.
5419 (arm_abi): Remove.
5420 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5421 osabi member.
5422 (arm_gdbarch_register_os_abi): Remove prototype.
5423 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5424 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5425
5426 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5427 * mips-tdep.c: Include osabi.h.
5428 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5429 OS ABI framework.
5430
5431 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5432
5433 * h8300-tdep.c: Fix formatting.
5434
5435 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5436
5437 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5438 printing vector registers.
5439
5440 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5441
5442 From Fernando Nasser:
5443 * remote.c (remote_async_open_1): Re-throw the exception when the
5444 connection fails.
5445 (remote_cisco_open): Ditto.
5446 (remote_open_1): Ditto.
5447
5448 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5449
5450 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5451 (remote_start_remote): Add uiout parameter. Pass through to
5452 remote_start_remote_dummy.
5453 (remote_open_1): Use catch_exception instead of catch_errors.
5454 (remote_async_open_1): Ditto.
5455 (remote_cisco_open): Ditto.
5456
5457 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5458
5459 * remote.c (remote_start_remote): Replace PTR with void pointer.
5460 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5461 static.
5462
5463 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5464
5465 * gdb_indent.sh: Allow the script to be run in the sim directory.
5466
5467 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5468
5469 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5470 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5471
5472 * corelow.c (core_open): Only call set_gdbarch_from_file if
5473 exec_bfd is NULL.
5474
5475 2002-05-17 Andrey Volkov <avolkov@transas.com>
5476
5477 * h8300-tdep.c: Add support of EXR register
5478 * config/h8300/tm-h8300.h: Ditto.
5479
5480 2002-05-17 Andrey Volkov <avolkov@transas.com>
5481
5482 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5483
5484 2002-05-17 Andrey Volkov <avolkov@transas.com>
5485
5486 * h8300-tdep.c: Change literal regnums to REGNO.
5487
5488 2002-05-17 Jim Blandy <jimb@redhat.com>
5489
5490 * NEWS: Note addition of macro support.
5491
5492 Expand preprocessor macros in C expressions.
5493 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5494 (scan_macro_expansion, scanning_macro_expansion,
5495 finished_macro_expansion): New function declarations.
5496 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5497 variable declarations.
5498 * parser-defs.h (expression_context_pc): New declaration.
5499 * parse.c (expression_context_pc): New variable.
5500 (parse_exp_1): Set expression_context_pc, as well as
5501 expression_context_block.
5502 * c-exp.y (yylex): If we're not already reading the result of a
5503 macro expansion, try to macro-expand the next token. When we're
5504 done scanning a macro expansion, switch back to the mainline text.
5505 Commas and `if's in a macro's expansion don't terminate the input.
5506 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5507 (macro_original_text, macro_expanded_text,
5508 expression_macro_lookup_func, expression_macro_lookup_baton): New
5509 variables.
5510 (scan_macro_expansion, scanning_macro_expansion,
5511 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5512 c_preprocess_and_parse): New functions.
5513 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5514 c_preprocess_and_parse, instead of c_parse.
5515 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5516 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5517
5518 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5519
5520 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5521 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5522 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5523
5524 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5525
5526 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5527
5528 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5529
5530 * Makefile.in (sh_tdep_h): Define and use.
5531 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5532 register enum): Move to...
5533 * * sh-tdep.h: ...here.
5534 * sh-tdep.c: Include sh-tdep.h.
5535 * sh3-rom.c: Likewise.
5536 * shnbsd-tdep.c: Likewise.
5537
5538 2002-05-16 Michael Snyder <msnyder@redhat.com>
5539
5540 * arm-tdep.c: Spelling fix in comment.
5541
5542 2002-05-16 Jim Blandy <jimb@redhat.com>
5543
5544 Add commands for manually expanding macros and showing their
5545 definitions.
5546 * macrocmd.c, macroscope.c, macroscope.h: New files.
5547 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5548 (macroscope_h): New variable.
5549 (HFILES_NO_SRCDIR): Add macroscope.h.
5550 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5551 (macroscope.o, macrocmd.o): New rules.
5552
5553 Teach the Dwarf 2 reader to read macro information.
5554 * dwarf2read.c: #include "macrotab.h".
5555 (dwarf_macinfo_buffer): New variable.
5556 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5557 dwarf_macinfo_size.
5558 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5559 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5560 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5561 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5562 dwarf2_macro_spaces_in_definition): New complaints.
5563 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5564 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5565 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5566 the partial symbol table.
5567 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5568 from what's recorded in the partial symbol table.
5569 (read_file_scope): If the compilation unit has a
5570 `DW_AT_macro_info' attribute, read its macro information.
5571 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5572
5573 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5574
5575 Fix PR gdb/546
5576 * ser-tcp.c: Don't include <netinet/udp.h>.
5577
5578 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5579
5580 * MAINTAINERS: Update my email address.
5581
5582 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5583
5584 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5585 include file of the same name.
5586
5587 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5588
5589 * configure.tgt: Mark v850 as multi-arched.
5590 * config/v850/tm-v850.h: Remove file.
5591 * config/v850/v850.mt: Eliminate TM_FILE.
5592
5593 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5594
5595 * v850-tdep.c: Full multi-arch.
5596 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5597 Define GDB_MULTI_ARCH to 2.
5598
5599 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5600
5601 * p-exp.y (current_type): New static variable.
5602 Carries the type of the expression at the position that is parsed.
5603 (push_current_type, pop_current_type): Two new functions. Used
5604 to store/restore current_type in expression on specific tokens.
5605 (search_field): New static variable. Set to one after parsing a point
5606 as at that point only a FIELDNAME token should be searched.
5607 (FIELDNAME): New token. After a point only a token belonging to
5608 current_type type definition is allowed.
5609 (all over token rules): reset and change current_type according
5610 to rules.
5611 (exp '[' rule): insert implicit array index field if
5612 exp is a pascal string type.
5613
5614 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5615
5616 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5617 frame info. Use frame_info's saved_regs instead of matching member
5618 in extra_frame_info throughout.
5619 (v850_frame_init_saved_regs): New function.
5620 (v850_init_extra_frame_info): Move most functionality into
5621 v850_frame_init_saved_regs().
5622 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5623 (v850_frame_find_saved_regs): Remove declaration.
5624 (FRAME_FIND_SAVED_REGS): Remove definition.
5625 (v850_frame_init_saved_regs): Add declaration.
5626 (FRAME_INIT_SAVED_REGS): Add definition.
5627
5628 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5629
5630 * v850-tdep.c: Begin multi-arch'ing v850.
5631 (v850_target_architecture_hook): Remove function.
5632 (v850_gdbarch_init): New function. Add code previously in
5633 v850_target_architecture_hook().
5634 (_initialize_v850_tdep): Don't set target_architecture_hook.
5635 Call register_gdbarch_init() instead.
5636
5637 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5638
5639 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5640 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5641 (fixup_class_method_type): Likewise.
5642
5643 2002-05-15 Jim Blandy <jimb@redhat.com>
5644
5645 Add macro structures to GDB's symbol tables. Nobody puts anything
5646 in them yet.
5647 * symtab.h (struct symtab): New member: `macro_table'.
5648 * buildsym.h (pending_macros): New global variable.
5649 * buildsym.c: #include "macrotab.h".
5650 (buildsym_init): Initialize `pending_macros'.
5651 (end_symtab): If we found macro information while reading a CU's
5652 debugging info, do build a symtab structure for it. Make the
5653 symtab point to the macro information, and clear the
5654 `pending_macros' pointer which held it while we were reading the
5655 debug info.
5656 (really_free_pendings): Free any pending macro table.
5657 * objfiles.h (struct objfile): New member: `macro_cache'.
5658 * objfiles.c (allocate_objfile): Set allocate and free functions
5659 for the macro cache's objstack.
5660 (free_objfile): Empty the macro cache's obstack.
5661 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5662 set new allocate and free functions for it.
5663 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5664 free functions for the macro cache's objstack. (Why is this
5665 function building its own objfile?)
5666 * symmisc.c (print_objfile_statistics): Print statistics on the
5667 macro bcache.
5668 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5669
5670 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5671
5672 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5673 (REGISTER_U_ADDR): Delete definition.
5674 (arm_register_u_addr): Delete declaration.
5675
5676 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5677
5678 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5679 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5680
5681 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5682
5683 * regcache.c (register_valid): Revise comments refering to "Not
5684 available" and "unavailable".
5685 * frame.c (frame_register_read): Ditto.
5686 * findvar.c (value_of_register): Ditto.
5687
5688 2002-05-15 Andrew Cagney <cagney@redhat.com>
5689
5690 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5691 (remote-sim.o): Update dependencies.
5692 (d10v-tdep.o): Specify dependencies.
5693 (sim_d10v_h): Define.
5694
5695 2002-05-14 Jim Blandy <jimb@redhat.com>
5696
5697 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5698 * macrotab.c (macro_lookup_inclusion, find_definition,
5699 new_macro_table): Same.
5700
5701 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5702 not `! strcmp ()'. This is a dubious improvement.
5703 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5704
5705 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5706 although it's not necessary, to avoid a warning.
5707
5708 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5709
5710 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5711 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5712 TYPE_INSTANCE_FLAGS.
5713 (struct main_type): New.
5714 (struct type): Move most members to struct main_type. Change
5715 cv_type and as_type to new type_chain member. Add instance_flags.
5716 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5717 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5718 (finish_cv_type): Remove prototype.
5719 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5720 Set TYPE_CHAIN.
5721 (alloc_type_instance): New function.
5722 (smash_type): New function.
5723 (make_pointer_type, make_reference_type, make_function_type)
5724 (smash_to_member_type, smash_to_method_type): Call smash_type.
5725 (make_qualified_type): New function.
5726 (make_type_with_address_space): Call make_qualified_type.
5727 (make_cv_type): Likewise.
5728 (finish_cv_type): Remove unnecessary function.
5729 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5730 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5731 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5732 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5733 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5734 * hpread.c (hpread_read_struct_type): Likewise.
5735 * stabsread.c (read_struct_type): Likewise.
5736
5737 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5738
5739 * configure.tgt: Add a catch all sh* target, for cases like
5740 sh[2,3,4]-elf and sh-hms.
5741
5742 2002-05-14 Keith Seitz <keiths@redhat.com>
5743
5744 * event-loop.c (create_file_handler): Don't do anything but
5745 update data when we are given a fd which we are already
5746 monitoring.
5747
5748 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5749
5750 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5751 (update_context): Use __func__ in warnings.
5752
5753 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5754
5755 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5756 and tcp_close to net_open and net_close.
5757 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5758 using UDP if requested. Don't try to disable Nagle on UDP
5759 sockets.
5760 * remote.c (remote_serial_open): New function. Warn about UDP.
5761 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5762
5763 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5764
5765 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5766
5767 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5768
5769 * configure.tgt: Remove sh-hms target.
5770 * MAINTAINERS: Don't list sh-hms as a separate target.
5771
5772 2002-05-13 Jim Blandy <jimb@redhat.com>
5773
5774 Add first preprocessor macro-expansion files.
5775 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5776 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5777 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5778 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5779 (COMMON_OBS): Add macrotab.o, macroexp.o.
5780 (macroexp.o, macrotab.o): New rules.
5781
5782 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5783
5784 * config/m88k/tm-m88k.h: Update copyright.
5785 (m88k_target_write_pc): Declare
5786 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5787 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5788 (SHIFT_INST_REGS): Update definition.
5789 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5790 using old definition of TARGET_WRITE_PC.
5791 * regcache.c (generic_target_write_pc): Delete code handling
5792 NNPC_REGNUM.
5793 * gdbarch.sh (NNPC_REGNUM): Delete.
5794 * gdbarch.h, gdbarch.c: Regenerate.
5795
5796 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5797
5798 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5799 builtin reg number.
5800
5801 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5802
5803 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5804 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5805 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5806 access macros.
5807 * c-typeprint.c (cp_type_print_method_args): Likewise.
5808 (c_type_print_args): Likewise.
5809 * d10v-tdep.c (d10v_push_arguments): Likewise.
5810 (d10v_extract_return_value): Likewise.
5811 * expprint.c (print_subexp): Likewise.
5812 * gdbtypes.c (lookup_primitive_typename): Likewise.
5813 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5814 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5815 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5816 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5817 (TYPE_VECTOR): Likewise.
5818 * hpread.c (hpread_read_struct_type)
5819 (fix_static_member_physnames, fixup_class_method_type)
5820 (hpread_type_lookup): Likewise.
5821 * mdebugread.c (parse_symbol, parse_type): Likewise.
5822 * p-lang.c (is_pascal_string_type): Likewise.
5823 * valops.c (hand_function_call): Likewise.
5824 * x86-64-tdep.c (classify_argument): Likewise.
5825
5826 * hpread.c (hpread_read_function_type)
5827 (hpread_read_doc_function_type): Call replace_type.
5828 * dstread.c (create_new_type): Delete.
5829 (decode_dst_structure, process_dst_function): Call alloc_type.
5830 Use type access macros.
5831
5832 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5833
5834 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5835 the're not supported by the current architecture.
5836 (i387_fill_fxsave): Likewise.
5837
5838 2002-05-12 Fred Fish <fnf@redhat.com>
5839
5840 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5841 sect_index_xxx members to index the first slot in section_offsets
5842 if all of the section_offsets are zero.
5843
5844 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5845
5846 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5847 checked in with last change.
5848
5849 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5850
5851 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5852 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5853 config.sub.
5854
5855 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5856
5857 * Makefile.in: Update dependencies.
5858
5859 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5860
5861 * language.c (local_hex_string_custom): Simplify. Do not depend
5862 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5863
5864 * memattr.c (mem_info_command): Replace calls to
5865 longest_local_hex_string and longest_local_hex_string_custom.
5866 * buildsym.c (make_blockvector): Ditto.
5867 * solib.c (info_sharedlibrary_command): Ditto.
5868 * tracepoint.c (tracepoints_info): Ditto.
5869 * symtab.c (print_msymbol_info): Ditto.
5870
5871 * language.c (local_hex_string): Delete.
5872 (local_hex_string_custom): Delete.
5873 (longest_local_hex_string): Rename to local_hex_string.
5874 (longest_local_hex_string_custom): Rename to
5875 local_hex_string_custom.
5876 * language.h (local_hex_string): Change parameter type to LONGEST.
5877 (local_hex_string_custom): Ditto.
5878 (longest_local_hex_string): Delete declaration.
5879 (longest_local_hex_string_custom): Ditto.
5880
5881 * solib.c: Update copyright.
5882 * memattr.c: Update copyright.
5883
5884 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5885
5886 * arch-utils.h (legacy_register_to_value): Declare.
5887 (legacy_value_to_register): Declare.
5888 (legacy_convert_register_p): Declare.
5889 * arch-utils.c (legacy_register_to_value): New function.
5890 (legacy_value_to_register): New function.
5891 (legacy_convert_register_p): New function.
5892
5893 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5894 (VALUE_TO_REGISTER): Define.
5895 (CONVERT_REGISTER_P): Define.
5896 * gdbarch.h, gdbarch.c: Regenerate.
5897
5898 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5899 VALUE_TO_REGISTER.
5900 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5901 CONVERT_REGISTER_P.
5902
5903 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5904 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5905
5906 * Makefile.in: Update dependencies for valops.c.
5907 * valops.c: Include "gdb_assert.h".
5908 (typecmp): Skip THIS parameter to methods.
5909 (find_method_list): Remove static_memfuncp argument,
5910 update callers. Check for stub methods.
5911 (find_value_oload_method_list): Don't set *static_memfuncp.
5912 (find_overload_match): Don't check for stub methods. Assert
5913 that methods are not stubbed. Handle static methods.
5914 (value_find_oload_method_list): Remove static_memfuncp argument.
5915 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5916 to the argument list for static stub methods.
5917 * value.h (value_find_oload_method_list): Update prototype.
5918
5919 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5920
5921 * arch-utils.h (generic_register_size): Declare.
5922 (generic_register_raw_size, generic_register_virtual_size): Delete
5923 declarations.
5924 * arch-utils.c (generic_register_raw_size): Delete.
5925 (generic_register_size): New function.
5926 (generic_register_virtual_size): Delete.
5927
5928 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5929 default generic_register_size.
5930 * gdbarch.h, gdbarch.c: Re-generate.
5931
5932 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5933 register_virtual_size.
5934 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5936
5937 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5938
5939 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5940 * gdbarch.h, gdbarch.c: Regenerate.
5941 * gnu-v3-abi.c: Update copyright.
5942 (vtable_address_point_offset): Update.
5943 (gnuv3_rtti_type): Update.
5944 (gnuv3_baseclass_offset): Update.
5945 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5946 (init_fetch_link_map_offsets): Update.
5947 * remote.c (get_remote_state): Update.
5948
5949 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5950
5951 * TODO: Remove value_headof/value_from_vtable_info comment.
5952 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5953 * values.c (value_headof, value_from_vtable_info): Delete.
5954 * value.h (value_from_vtable_info): Delete prototype.
5955
5956 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5957
5958 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5959 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5960 $(gdb_regex_h).
5961 (gdb_assert_h): Define.
5962 (gdb_wait_h): Define.
5963 (gdb_regex_h): Define.
5964
5965 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5966
5967 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5968 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5969
5970 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * nbsd-tdep.c: Fix comment.
5973
5974 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5975
5976 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5977 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5978 (nbsd-tdep.o): New dependency list.
5979 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5980 nbsd-tdep.h.
5981 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5982 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5983 * nbsd-tdep.c: New file.
5984 * nbsd-tdep.h: New file.
5985 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5986 nbsd-tdep.h.
5987 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5988 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5989 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5990 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5991
5992 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5995 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5996 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5997 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5998 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5999 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6000
6001 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6002
6003 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6004 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6005 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6006 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6007 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6008 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6009 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6010
6011 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6012
6013 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6014 fetch_elfcore_registers to...
6015 * i386nbsd-tdep.c: ...here.
6016 (i386nbsd_use_struct_convention): Rename to...
6017 (i386nbsd_aout_use_struct_convention): ...this.
6018 (i386nbsd_supply_reg): New function.
6019 (i386nbsd_fill_reg): New function.
6020 (fetch_core_registers): Use i386nbsd_supply_reg.
6021 (fetch_elfcore_registers): Likewise.
6022 (_initialize_i386nbsd_tdep): New function.
6023 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6024 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6025 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6026 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6027 (i386nbsd_aout_use_struct_convention): ...this.
6028
6029 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6032 (store_inferior_registers): Use shnbsd_fill_reg.
6033 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6034 sh_nbsd_supply_register): Collapse into...
6035 (shnbsd_supply_reg): ...this.
6036 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6037 (shnbsd_fill_reg): ...this.
6038 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6039 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6040 (fetch_core_registers): Use shnbsd_supply_reg.
6041 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6042 (sh_nbsd_core_fns): Rename to...
6043 (shnbsd_core_fns): ...this.
6044 (sh_nbsd_elfcore_fns): Rename to...
6045 (shnbsd_elfcore_fns): ...this.
6046 (sh_nbsd_init_abi): Rename to...
6047 (shnbsd_init_abi): ...this.
6048 (_initialize_sh_nbsd_tdep): Rename to...
6049 (_initialize_shnbsd_tdep): ...this.
6050 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6051 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6052 sh_nbsd_fill_register): Remove prototypes.
6053 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6054
6055 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6056
6057 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6058 (i387-nat.o): Delete dependency list.
6059 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6060 (x86-64-linux-nat.o): Likewise.
6061 * i387-nat.c: Delete file, moving contents to...
6062 * i387-tdep.c: ...here.
6063 * i387-nat.h: Rename...
6064 * i387-tdep.h: ...to this.
6065 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6066 * i386-linux-nat.c: Likewise.
6067 * i386bsd-nat.c: Likewise.
6068 * i386gnu-nat.c: Likewise.
6069 * i386nbsd-nat.c: Likewise.
6070 * i386v4-nat.c: Likewise.
6071 * x86-64-linux-nat.c: Likewise.
6072 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6073 * config/i386/go32.mh (NATDEPFILES): Likewise.
6074 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6075 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6076 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6077 * config/i386/linux.mh (NATDEPFILES): Likewise.
6078 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6079 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6080 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6081 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6082
6083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6086 (alphanbsd-nat.o): Remove dependency list.
6087 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6088 * alphanbsd-nat.c: Delete. Contents moved to...
6089 * alphanbsd-tdep.c: ...here.
6090 (_initialize_alphanbsd_tdep): Register core functions.
6091 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6092
6093 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6094
6095 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6096 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6097 (alphanbsd-nat.o): Likewise.
6098 (alphabsd-tdep.o): New dependency list.
6099 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6100 (fill_gregset): Use alphabsd_fill_reg.
6101 (supply_fpregset): Use alphabsd_supply_fpreg.
6102 (fill_fpregset): Use alphabsd_fill_fpreg.
6103 (fetch_inferior_registers): Use struct reg and struct fpreg
6104 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6105 and alphabsd_supply_fpreg.
6106 (store_inferior_registers): Use struct reg and struct fpreg
6107 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6108 and alphabsd_fill_fpreg.
6109 * alphabsd-tdep.c: New file.
6110 * alphabsd-tdep.h: New file.
6111 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6112 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6113 alphabsd_supply_fpreg.
6114 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6115 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6116
6117 2002-05-11 Eric Christopher <echristo@redhat.com>
6118
6119 * mips-tdep.c (mips_double_register_type): Fix thinko.
6120 (mips_single_register_type): Ditto.
6121 * MAINTAINERS: Add self.
6122
6123 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6124
6125 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6126 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6127 right thing on architectures with different endianness and/or
6128 integer sizes.
6129
6130 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6131
6132 From Christian Limpach <chris@Pin.LU>
6133 * configure.in: Change sed expression which comments out
6134 NATDEPFILES to also comment out continuation lines.
6135 * configure: Regenerate.
6136
6137 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6138
6139 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6140 big patch.
6141
6142 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6143
6144 * sh-tdep.c: Include correct file.
6145
6146 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6147
6148 New support for sh64-elf (sh5) target.
6149
6150 * configure.tgt: For sh64-elf target, default to sh-elf.
6151
6152 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6153 (struct gdbarch_tdep): Add new fields for new registers and ABI
6154 info.
6155
6156 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6157 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6158 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6159 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6160 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6161 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6162 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6163 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6164 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6165 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6166 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6167 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6168 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6169 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6170 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6171 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6172 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6173 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6174 sign_extend, sh64_nofp_frame_init_saved_regs,
6175 sh64_init_extra_frame_info, sh64_get_saved_register,
6176 sh64_extract_struct_value_address, sh64_pop_frame,
6177 sh64_push_arguments, sh64_extract_return_value,
6178 sh64_store_return_value, sh64_show_media_regs,
6179 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6180 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6181 sh_sh64_register_virtual_type,
6182 sh_sh64_register_convert_to_virtual,
6183 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6184 sh64_register_read, sh64_pseudo_register_write,
6185 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6186 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6187 sh64_do_pseudo_register, sh_compact_do_registers_info,
6188 sh64_do_registers_info, sh_gdbarch_init): New functions.
6189
6190 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6191
6192 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6193
6194 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6195
6196 * linespec.c (decode_line_1): Check for a double quote after
6197 a filename correctly.
6198
6199 2002-05-10 Jim Blandy <jimb@redhat.com>
6200
6201 Properly track the size of the current objfile's .debug_line section.
6202 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6203 (DWARF_LINE_SIZE): New macro.
6204 (dwarf2_build_psymtabs_hard): Record the line section's size in
6205 the partial symbol table.
6206 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6207 symbol table.
6208
6209 2002-05-10 Petr Sorfa <petrs@caldera.com>
6210
6211 * ia64-tdep.c: Handle breakpoints on L instruction type
6212 in MLX instruction bundle by moving the breakpoint to
6213 the third slot (X instruction type) as L holds only data.
6214
6215 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6216
6217 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6218 (process_one_symbol): Complain about discarding local symbols
6219 due to a misplaced N_LBRAC entry.
6220
6221 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6222
6223 From Daniel Berlin <dan@cgsoftware.com>
6224 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6225 decrease the depth we are at, in the case of templates.
6226
6227 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6228
6229 * mips-tdep.c (mips_float_register_type): New function.
6230 (mips_double_register_type): New function.
6231 (mips_print_register): Use them.
6232 (do_fp_register_row): Likewise.
6233
6234 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6235
6236 * signals/signals.c (signals): Remove conditional compilation around
6237 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6238 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6239
6240 2002-05-09 Michael Snyder <msnyder@redhat.com>
6241
6242 * remote-rdp.c (remote_rdp_can_run): Remove.
6243
6244 2002-05-09 Tom Tromey <tromey@redhat.com>
6245
6246 * jv-valprint.c (java_val_print): Handle `char' as a special case
6247 of TYPE_CODE_INT.
6248
6249 2002-05-09 Michael Snyder <msnyder@redhat.com>
6250
6251 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6252 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6253 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6254 str r(0123),[sp,#nn].
6255 (arm_skip_prologue): Ditto. Also make disassembly
6256 order-independent by placing it in a loop.
6257
6258 2002-05-06 Michael Snyder <msnyder@redhat.com>
6259
6260 * stabsread.c (read_type): Add recognition for new attribute:
6261 "@V;" means that an array type is actually a vector.
6262 This is analogous to the vector flag that's been added to dwarf2.
6263
6264 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6265
6266 * i386-tdep.h (i386_abi): New enum.
6267 (struct gdbarch_tdep): Replace os_ident member with abi.
6268 (i386_gdbarch_register_os_abi): New prototype.
6269 * i386-tdep.c (i386_abi_names): New array.
6270 (process_note_abi_tag_sections): Removed.
6271 (process_note_sections): New function.
6272 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6273 (struct i386_abi_handler): New struct.
6274 (i386_abi_handler_list): New variable.
6275 (i386_gdbarch_register_os_abi): New function.
6276 (i386_gdbarch_init): Adapt for the changes given above.
6277
6278 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6279
6280 * gregset.h: Say "GNU/Linux".
6281
6282 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6283
6284 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6285 (build_gdbtypes): Build builtin_type_v2_float.
6286 (_initialize_gdbtypes): Register new builtin type.
6287
6288 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6289
6290 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6291 (clear_gdbarch_swap): New function.
6292 (initialize_non_multiarch): Call.
6293 (gdbarch_update_p): Before calling init(), swap out and clear the
6294 existing architecture.
6295 * gdbarch.c: Regenerate.
6296
6297 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6298
6299 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6300 alphanbsd-tdep.c.
6301
6302 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6303
6304 * sh-nbsd-nat.c: Rename to...
6305 * shnbsd-nat.c: ...this.
6306 * sh-nbsd-tdep.c: Rename to...
6307 * shnbsd-tdep.c: ...this.
6308 * sh-nbsd-tdep.h: Rename to...
6309 * shnbsd-tdep.h: ...this.
6310 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6311 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6312
6313 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6314
6315 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6316 concatenation for command help messages.
6317
6318 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6319
6320 * NEWS: Note new sh*-*-netbsdelf* configuration.
6321 * configure.host: Set gdb_host_cpu to sh for all sh*.
6322 (sh*-*-netbsdelf*): New host.
6323 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6324 (sh*-*-netbsdelf*): New target.
6325 * sh-nbsd-nat.c: New file.
6326 * sh-nbsd-tdep.c: New file.
6327 * sh-nbsd-tdep.h: New file.
6328 * config/sh/nbsd.mh: New file.
6329 * config/sh/nbsd.mt: New file.
6330 * config/sh/nm-nbsd.h: New file.
6331 * config/sh/tm-nbsd.h: New file.
6332
6333 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * sh-tdep.c (sh_osabi_names): Declare.
6336 (process_note_abi_tag_sections): New function.
6337 (get_elfosabi): Ditto.
6338 (sh_gdbarch_register_os_abi): Ditto.
6339 (sh_dump_tdep): Ditto.
6340 _initialize_sh_tdep): Use gdbarch_register to register
6341 sh_gdbarch_init and sh_dump_tdep.
6342 * config/sh/tm-sh.h (sh_osabi): Declare.
6343 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6344
6345 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6346
6347 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6348 (thumb_scan_prologue): Ditto.
6349 (arm_find_callers_reg): Ditto.
6350 (arm_frame_chain): Ditto.
6351 (arm_init_extra_frame_info): Ditto.
6352 (arm_frame_saved_pc): Ditto.
6353 (arm_pop_frame): Ditto.
6354 (arm_push_return_address): New function.
6355 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6356 call_dummy_location, call_dummy_breakpoint_offset_p,
6357 call_dummy_breakpoint_offset, call_dummy_p,
6358 call_dummy_stack_adjust_p, call_dummy_words,
6359 sizeof_call_dummy_words, call_dummy_start_offset,
6360 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6361 call_dummy_address, push_return_address and push_dummy_frame for
6362 generic dummy frames.
6363
6364 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6365
6366 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6367 size computation for alloca.
6368 (sh_fp_frame_init_saved_regs): Likewise.
6369
6370 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6371
6372 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6373 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6374 * arm-tdep.c (arm_store_return_value): Use them.
6375 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6376 * remote-rdp.c (remote_rdp_fetch_register): Use
6377 ARM_MAX_REGISTER_RAW_SIZE.
6378 (remote_rdp_store_register): Likewise.
6379
6380 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6381
6382 * dwarf2cfi.c: Code cleanup, removed unused variables,
6383 added default labels to switch {} statements.
6384 * x86-64-tdep.c: Ditto.
6385 * x86-64-linux-nat.c: Ditto.
6386
6387 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6388
6389 * solib.h: Protect against multiple inclusion.
6390
6391 2002-05-06 Jim Blandy <jimb@redhat.com>
6392
6393 Add first preprocessor macro-expansion files.
6394 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6395 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6396 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6397 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6398 (COMMON_OBS): Add macrotab.o, macroexp.o.
6399 (macroexp.o, macrotab.o): New rules.
6400
6401 Separate the job of reading the line number info statement program
6402 header (...expialidocious) out into its own function.
6403 * dwarf2read.c (struct line_head, struct filenames, struct
6404 directories): Replace with...
6405 (struct line_header): New structure, containing the full
6406 contents of the statement program header, including the
6407 include directory and file name tables.
6408 (read_file_scope): If we have line number info, instead of just
6409 calling dwarf_decode_lines to do all the work, call
6410 dwarf_decode_line_header first to get a `struct line_header'
6411 containing the data in the statement program header, and then
6412 pass that to dwarf_decode_lines, which will pick up where that
6413 left off. Be sure to clean up the `struct line_header' object.
6414 (dwarf_decode_line_header, free_line_header, add_include_dir,
6415 add_file_name): New functions.
6416 (dwarf_decode_lines): Move all the code to read the statement
6417 program header into dwarf_decode_line_header. Take the line
6418 header it built as the first argument, instead of the offset to
6419 the compilation unit's line number info. Use the new `struct
6420 line_header' type instead of the old structures. No need to do
6421 cleanups here now, since we don't allocate anything.
6422 (dwarf2_statement_list_fits_in_line_number_section,
6423 dwarf2_line_header_too_long): New complaints.
6424
6425 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6426
6427 * gdbtypes.c (init_vector_type): New function.
6428 (build_builtin_type_vec128): Simplify the representation of SIMD
6429 registers.
6430 (build_gdbtypes): Initialize new builtin vector types.
6431 (_initialize_gdbtypes): Register new vector types with gdbarch.
6432 (builtin_type_v4_float, builtin_type_v4_int32,
6433 builtin_type_v8_int16, builtin_type_v16_int8,
6434 builtin_type_v2_int32, builtin_type_v4_int16,
6435 builtin_type_v8_int8): New (renamed) SIMD types.
6436
6437 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6438
6439 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6440 (i387_fill_fxsave): Likewise.
6441
6442 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6443
6444 * alpha-tdep.c (alpha_extract_return_value): Don't use
6445 non-constant array size in prototype.
6446
6447 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6448
6449 From Brian Taylor <briant at model dot com>:
6450 * ui-out.c (ui_out_field_core_addr): Use the function
6451 longest_local_hex_string_custom'to format addresses > 32 bits
6452 wide.
6453
6454 * ui-out.c (ui_out_field_core_addr): Update comment.
6455
6456 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6457
6458 * stack.c (select_and_print_frame): Make static. Delete the
6459 parameter `level'.
6460 (func_command): Update call.
6461 (select_frame_command): Delete code computing the frame level.
6462 * frame.h (select_and_print_frame): Delete declaration.
6463
6464 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6465
6466 * sparc-tdep.c (sparc_get_saved_register): Comment why
6467 get_prev_frame call is safe.
6468
6469 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6470
6471 * frame.h (select_frame): Delete level parameter.
6472 * stack.c (select_frame): Update. Use frame_relative_level to
6473 obtain the frame's level.
6474 (select_and_print_frame): Update call.
6475 (select_frame_command): Ditto.
6476 (up_silently_base): Ditto.
6477 (down_silently_base): Ditto.
6478 * ocd.c (ocd_start_remote): Ditto.
6479 * remote-rdp.c (remote_rdp_open): Ditto.
6480 * remote-mips.c (mips_initialize): Ditto.
6481 (common_open): Ditto.
6482 * remote-e7000.c (e7000_start_remote): Ditto.
6483 * m3-nat.c (select_thread): Ditto.
6484 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6485 (child_get_current_exception_event): Ditto.
6486 * varobj.c (varobj_create): Ditto.
6487 (varobj_update): Ditto.
6488 (c_value_of_root): Ditto.
6489 * tracepoint.c (finish_tfind_command): Ditto.
6490 * corelow.c (core_open): Ditto.
6491 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6492 * thread.c (info_threads_command): Ditto.
6493 (switch_to_thread): Ditto.
6494 * infrun.c (normal_stop): Ditto.
6495 (restore_selected_frame): Ditto.
6496 (restore_inferior_status): Ditto.
6497 * breakpoint.c (insert_breakpoints): Ditto.
6498 (watchpoint_check): Ditto.
6499 (bpstat_stop_status): Ditto.
6500 (do_enable_breakpoint): Ditto.
6501 * blockframe.c (flush_cached_frames): Ditto.
6502 (reinit_frame_cache): Ditto.
6503
6504 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6505
6506 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6507 maintainer.
6508
6509 2002-05-04 Jim Blandy <jimb@redhat.com>
6510
6511 * gdbtypes.c (replace_type): Doc fix.
6512
6513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6514
6515 * valprint.c (strcat_longest): Delete commented out function.
6516 Update copyright.
6517
6518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6519
6520 * MAINTAINERS: Mark a29k as deleted.
6521 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6522 Move new configurations to the top.
6523 * configure.tgt: Remove a29k.
6524 * config/a29k/tm-vx29k.h: Delete.
6525 * config/a29k/vx29k.mt: Delete.
6526 * config/a29k/tm-a29k.h: Delete.
6527 * config/a29k/a29k-udi.mt: Delete.
6528 * config/a29k/a29k.mt: Delete.
6529 * a29k-tdep.c: Delete.
6530 * remote-udi.c: Delete.
6531 * remote-mm.c: Delete.
6532 * remote-eb.c: Delete.
6533 * remote-adapt.c: Delete.
6534 * Makefile.in: Remove obsolete code.
6535 * config/s390/s390x.mt: Ditto.
6536 * config/s390/s390.mt: Ditto.
6537 * config/sparc/sparclynx.mh: Ditto.
6538 * config/sparc/linux.mh: Ditto.
6539 * config/pa/hppaosf.mh: Ditto.
6540 * config/pa/hppabsd.mh: Ditto.
6541 * config/ns32k/nbsd.mt: Ditto.
6542 * config/mips/vr5000.mt: Ditto.
6543 * config/m68k/sun3os4.mh: Ditto.
6544 * config/m68k/nbsd.mt: Ditto.
6545 * config/m68k/m68klynx.mh: Ditto.
6546 * config/m32r/m32r.mt: Ditto.
6547 * config/i386/x86-64linux.mt: Ditto.
6548 * config/i386/nbsdelf.mt: Ditto.
6549 * config/i386/nbsd.mt: Ditto.
6550 * config/i386/i386lynx.mh: Ditto.
6551
6552 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6553
6554 * target.c (debug_print_register): New function. Handle oversize
6555 registers.
6556 (debug_to_fetch_registers): Call.
6557 (debug_to_store_registers): Call.
6558
6559 2002-05-03 Jim Blandy <jimb@redhat.com>
6560
6561 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6562 (read_type): Doc fix.
6563 * gdbtypes.c (replace_type): Doc fix.
6564
6565 * stabsread.c (multiply_defined_struct): New complaint.
6566 (read_struct_type): If the type we were passed isn't empty, or
6567 incomplete, don't read the new struct type into it; complain,
6568 and return the original type unchanged. Take a new `type_code'
6569 argument, which is the type code for the new type.
6570 (read_type): Rather than storing the type's type code here, pass
6571 it as an argument to read_struct_type, and let that take care of
6572 storing it. That way, we don't overwrite the original type code,
6573 so read_struct_type can use it to decide whether we're overwriting
6574 something we shouldn't.
6575 (complain_about_struct_wipeout): New function.
6576
6577 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6578
6579 * gdbarch.sh: Assert that gdbarch is non-NULL.
6580 * gdbarch.c: Regenerate.
6581
6582 2002-05-03 Jason Merrill <jason@redhat.com>
6583
6584 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6585 and return NULL.
6586
6587 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6588
6589 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6590 (x86_64_dwarf2gdb_regno_map_length),
6591 (x86_64_dwarf2_reg_to_regnum): Added.
6592 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6593 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6594 (_initialize_x86_64_tdep): Synced with the change above.
6595 (x86_64_skip_prologue): Reformulated message.
6596
6597 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6598
6599 * f-exp.y: Also use new prev_lexptr variable
6600 to improve error reporting. Based on Michael Snyder
6601 2002-04-24 dated patch to c-exp.y.
6602 * jv-exp.y: Likewise.
6603 * m2-exp.y: Likewise.
6604
6605 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6606
6607 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6608 we are dealing with vectors.
6609
6610 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6611
6612 * config/m68k/tm-nbsd.h: Obvious fix,
6613 correct machine name.
6614
6615 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6616
6617 * p-typeprint.c (pascal_type_print_base): Add support
6618 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6619
6620 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6621
6622 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6623 for fondamental pascal 'char' type.
6624
6625 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6626
6627 * p-lang.h (is_pascal_string_type): Declaration changed,
6628 new sixth argument of type char ** added.
6629 * p-lang.c (is_pascal_string_type): Implementation
6630 changed. Args length_pos, length_size, string_pos, char_size
6631 can now be NULL. New argument arrayname set to the field
6632 name of the char array. Return value set to char array
6633 field index plus one.
6634 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6635 is_pascal_string_type function.
6636
6637 2002-05-02 Andrew Cagney <cagney@redhat.com>
6638
6639 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6640 <cagney@redhat.com> change.
6641 * gdbarch.c: Regenerate.
6642
6643 2002-05-02 Andrew Cagney <cagney@redhat.com>
6644
6645 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6646 before probing for a new one. Detect errorenous gdbarch_init
6647 functions.
6648 * gdbarch.c: Regenerate.
6649
6650 2002-05-01 Andrew Cagney <cagney@redhat.com>
6651
6652 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6653 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6654 * config/v850/tm-v850.h: Ditto. Update copyright.
6655
6656 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6657
6658 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6659 current_gdbarch.
6660
6661 2002-04-30 Michael Snyder <msnyder@redhat.com>
6662
6663 * arm-tdep.c: Whitespace clean-ups.
6664 (arm_skip_prologue): Fix thinko; two lines
6665 should have been removed as part of 4/24 change.
6666
6667 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6668
6669 * rs6000-tdep.c: Added comment describing how fpscr register
6670 numbers were chosen.
6671
6672 2002-04-30 Michael Snyder <msnyder@redhat.com>
6673
6674 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6675
6676 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6677
6678 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6679 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6680 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6681
6682 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6683
6684 From Louis Hamilton <hamilton@redhat.com>:
6685 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6686 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6687 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6688 not bfd-private xcoff data, to determine wordsize.
6689 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6690
6691 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6692
6693 GDB 5.2 released from 5.2 branch.
6694
6695 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6696
6697 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6698 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6699 (x86_64_register_info_table): Added comments with register numbers.
6700
6701 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6702
6703 * rs6000-tdep.c (rs6000_extract_return_value,
6704 rs6000_store_return_value): Handle returning vectors.
6705 (rs6000_gdbarch_init): Use
6706 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6707 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6708 New function.
6709 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6710 vectors.
6711 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6712 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6713
6714 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6715
6716 * hpread.c (hpread_psymtab_to_symtab_1,
6717 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6718 with fprintf_unfiltered (gdb_stderr,...).
6719
6720 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6721
6722 * remote-array.c (printf_monitor, write_monitor,
6723 array_insert_breakpoint, array_remove_breakpoint ):
6724 Replace fprintf (stderr,...
6725 with fprintf_unfiltered (gdb_stderr,....
6726 * remote-es.c: Likewise.
6727 * remote-os9k.c: Likewise.
6728 * remote-st.c: Likewise.
6729
6730 2002-04-28 Andreas Schwab <schwab@suse.de>
6731
6732 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6733 linux-proc.o and gcore.o.
6734
6735 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6736
6737 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6738 code without frame pointers.
6739
6740 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6741
6742 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6743 ON_STACK is needed.
6744
6745 2002-04-26 Ben Elliston <bje@redhat.com>
6746
6747 * target.c (do_xfer_memory): Correct reference to the new option
6748 "trust-readonly-sections".
6749
6750 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6751
6752 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6753 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6754 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6755 vectors.
6756 (read_array_type): Record the fact that this array type is really a
6757 vector (i.e. are passed in by value).
6758
6759 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6760
6761 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6762 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6763 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6764 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6765 * alpha-linux-tdep.c: Include frame.h.
6766 (alpha_linux_sigcontext_addr): New function.
6767 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6768 alpha_linux_sigcontext_addr.
6769 * alpha-osf1-tdep.c: Include gdbcore.h.
6770 (alpha_osf1_sigcontext_addr): New function.
6771 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6772 alpha_osf1_sigcontext_addr.
6773 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6774 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6775
6776 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6777
6778 * stack.c (selected_frame_level):
6779 (select_frame): Do not set selected_frame_level.
6780 * frame.h (selected_frame_level): Delete declaration.
6781
6782 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6783
6784 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6785 convert_from_func_ptr-addr when AIX / PowerOpen.
6786
6787 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6788
6789 * valops.c (hand_function_call): Call
6790 generic_save_call_dummy_addr.
6791 * frame.h (generic_save_call_dummy_addr): Declare.
6792 * blockframe.c (struct dummy_frame): Add fields call_lo and
6793 call_hi.
6794 (generic_find_dummy_frame): Check for PC in range call_lo to
6795 call_hi instead of entry_point_address.
6796 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6797 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6798 (generic_save_call_dummy_addr): New function.
6799
6800 2002-04-24 David S. Miller <davem@redhat.com>
6801
6802 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6803 sparc_skip_prologue.
6804 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6805 information to find prologue when possible.
6806 (sparc_prologue_frameless_p): Call examine_prologue directly.
6807 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6808 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6809 second argument.
6810 (SKIP_PROLOGUE): Likewise.
6811
6812 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6813
6814 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6815 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6816 indicate that the condition it was testing is always true.
6817 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6818 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6819 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6820
6821 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6824 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6825 tdep->jb_pc and tdep->jb_elt_size.
6826 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6827 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6828 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6829 * alpha-nat.c (get_longjmp_target): Remove.
6830 (JB_ELEMENT_SIZE): Ditto.
6831 (JB_PC): Ditto.
6832 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6833 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6834 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6835 to alpha_get_longjmp_target.
6836 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6837 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6838 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6839
6840 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6841
6842 * README: Update to GDB 5.2.
6843
6844 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6845
6846 * gdbarch.sh (LC_ALL): Set to `c'.
6847
6848 2002-04-25 Theodore A. Roth <troth@verinet.com>
6849
6850 * avr-tdep.c: Ran through gdb_indent.sh.
6851
6852 2002-04-25 Theodore A. Roth <troth@verinet.com>
6853
6854 * MAINTAINERS: Add myself as AVR maintainer.
6855 * NEWS: Note new target avr.
6856
6857 2002-04-25 Theodore A. Roth <troth@verinet.com>
6858
6859 * Makefile.in: Add support for AVR target.
6860 * configure.tgt: Add support for AVR target.
6861 * avr-tdep.c: New file
6862 * config/avr/avr.mt: New file.
6863
6864 2002-04-25 Theodore A. Roth <troth@verinet.com>
6865
6866 * MAINTAINERS: Add myself to write-after-approval.
6867
6868 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6869
6870 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6871 with fprintf_unfiltered (gdb_stderr,....
6872
6873 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6874
6875 Fix PR gdb/508.
6876 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6877
6878 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6879
6880 * p-exp.y: Also use new prev_lexptr variable
6881 to improve error reporting. Based on Michael Snyder
6882 2002-04-24 dated patch to c-exp.y.
6883
6884 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6887 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6888 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6889 to 0.
6890 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6891 and struct value.
6892 (FUNCTION_START_OFFSET): Remove.
6893 (BREAKPOINT): Ditto.
6894
6895 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6896
6897 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6898 * NEWS: Ditto.
6899
6900 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6901
6902 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6903 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6904 alpha_linux_pc_in_sigtramp.
6905 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6906 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6907 alpha_osf1_pc_in_sigtramp.
6908 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6909 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6910 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6911 alphafbsd_pc_in_sigtramp.
6912 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6913 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6914 alphanbsd_pc_in_sigtramp.
6915 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6916 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6917
6918 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6919
6920 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6921
6922 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6923
6924 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6925 alphanbsd-tdep.c.
6926 (alphanbsd-nat.o): New dependency list.
6927 (alphanbsd-tdep.o): Ditto.
6928 * NEWS: Note new native NetBSD/alpha configuration.
6929 * alphanbsd-nat.c: New file.
6930 * alphanbsd-tdep.c: Ditto.
6931 * configure.host (alpha*-*-netbsd*): New host.
6932 * configure.tgt (alpha*-*-netbsd*): New target.
6933 * config/alpha/nbsd.mh: New file.
6934 * config/alpha/nbsd.mt: Ditto.
6935 * config/alpha/nm-nbsd.h: Ditto.
6936 * config/alpha/tm-nbsd.h: Ditto.
6937
6938 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6941 (alpha-osf1-tdep.o): New dependency list.
6942 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6943 and skip_sigtramp_frame members.
6944 * alpha-linux-tdep.c: Include gdbcore.h.
6945 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6946 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6947 * alpha-osf1-tdep.c: New file.
6948 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6949 alpha-osf1-dep.c.
6950 (alpha_frame_past_sigtramp_frame): New function.
6951 (alpha_dynamic_sigtramp_offset): Ditto.
6952 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6953 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6954 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6955 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6956 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6957 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6958 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6959 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6960 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6961 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6962 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6963 to find_solib_trampoline_target.
6964 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6965 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6966 (SKIP_TRAMPOLINE_CODE): Remove.
6967 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6968 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6969 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6970 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6971 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6972 (PROC_SIGTRAMP_MAGIC): Ditto.
6973 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6974 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6975 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6976 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6977 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6978
6979 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * NEWS: Note that Alpha targets are now multi-arch.
6982
6983 2002-04-24 Michael Snyder <msnyder@redhat.com>
6984
6985 * parser-defs.h (prev_lexptr): New external variable.
6986 * parse.c (parse_exp_1): Set prev_lexptr to null before
6987 calling the language-specific parser.
6988 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6989 (yyerror): Use prev_lexptr in error reporting.
6990
6991 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6992
6993 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6994 * gregset.h: If FILL_FPXREGSET is defined, provide
6995 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6996 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6997 is defined, call fill_fpxregset.
6998
6999 2002-04-24 Roland McGrath <roland@frob.com>
7000
7001 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7002 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7003 (supply_gregset, supply_fpregset): New functions.
7004
7005 * gnu-nat.c (gnu_find_memory_regions): New function.
7006 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7007 (gnu_xfer_memory): Add a cast.
7008
7009 2002-04-24 Michael Snyder <msnyder@redhat.com>
7010
7011 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7012 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7013 of argument regs ("str r(0123), [r11, #-nn"]).
7014 (arm_skip_prologue): Better handling for frameless functions.
7015 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7016 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7017
7018 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7019
7020 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7021 NUM_PSEUDO_REGS can be used.
7022
7023 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7024
7025 * arch-utils.h: Update copyright.
7026
7027 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7028 * gdbarch.h, gdbarch.c: Re-generate.
7029
7030 * inferior.h (IN_SIGTRAMP): Delete definition.
7031 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7032 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7033
7034 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7035 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7036 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7037 (find_proc_framesize): Ditto.
7038 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7039 (alpha_init_extra_frame_info): Ditto.
7040 * infrun.c (handle_inferior_event): Ditto.
7041 (handle_inferior_event): Ditto.
7042 (check_sigtramp2): Ditto.
7043 * blockframe.c (create_new_frame): Ditto.
7044 (get_prev_frame): Ditto.
7045 * ppc-linux-tdep.c: Update comments.
7046 * i386-linux-tdep.c: Update comments.
7047 * breakpoint.c (bpstat_what): Update comment.
7048
7049 2002-04-24 David S. Miller <davem@redhat.com>
7050
7051 * i960-tdep.c (register_in_window_p): New function.
7052 (i960_find_saved_register): Use it instead of
7053 REGISTER_IN_WINDOW_P.
7054 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7055
7056 * symtab.h (find_stab_function_addr): Kill extern.
7057 * minsyms.c (find_stab_function_addr): Remove from here...
7058 * dbxread.c: ... to here, and mark it static.
7059
7060 2002-04-20 David S. Miller <davem@redhat.com>
7061
7062 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7063 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7064
7065 2002-04-21 David S. Miller <davem@redhat.com>
7066
7067 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7068 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7069 (vx_write_register): Likewise.
7070
7071 2002-04-23 J. Brobecker <brobecker@gnat.com>
7072
7073 * source.c (is_regular_file): New function.
7074 (openp): Check wether file to open is a regular file
7075 to avoid opening directories.
7076
7077 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7078
7079 * findvar.c (extract_signed_integer): Cast printf argument
7080 to suppress format warning.
7081 (extract_unsigned_integer): Likewise.
7082 * infcmd.c (registers_info): Likewise.
7083 * top.c (get_prompt_1): Likewise.
7084 * valops.c (value_assign): Likewise.
7085 * valprint.c (print_decimal): Likewise.
7086
7087 2002-04-22 H.J. Lu (hjl@gnu.org)
7088
7089 * c-exp.y (typebase): Support
7090
7091 [long|long long|short] [signed|unsigned] [int|]
7092
7093 and
7094
7095 signed [long|long long|short] int
7096
7097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7100 and vax-tdep.h.
7101 * vax-tdep.h: New file.
7102 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7103 Make several routines static.
7104 (vax_get_saved_register): New function.
7105 (vax_gdbarch_init): New function.
7106 (_initialize_vax_tdep): Register vax_gdbarch_init.
7107 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7108 Remove macros now under the control of gdbarch.
7109
7110 2002-04-22 Michael Snyder <msnyder@redhat.com>
7111
7112 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7113 Some whitespace and coding standards tweaks.
7114
7115 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * vax-tdep.c: Include regcache.h.
7118 (vax_call_dummy_words): New.
7119 (sizeof_vax_call_dummy_words): New.
7120 (vax_fix_call_dummy): New function.
7121 (vax_saved_pc_after_call): Ditto.
7122 * config/vax/tm-vax.h: Don't include regcache.h.
7123 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7124 (CALL_DUMMY): Remove.
7125 (CALL_DUMMY_WORDS): Define.
7126 (SIZEOF_CALL_DUMMY_WORDS): Define.
7127 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7128
7129 2002-04-18 Michael Snyder <msnyder@redhat.com>
7130
7131 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7132
7133 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7134
7135 * vax-tdep.c (vax_frame_chain): New function.
7136 (vax_push_dummy_frame): Ditto.
7137 (vax_pop_frame): Ditto.
7138 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7139 (FRAMELESS_FUNCTION_INVOCATION): Use
7140 generic_frameless_function_invocation_not.
7141 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7142 (POP_FRAME): Use vax_pop_frame.
7143
7144 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7145
7146 * vax-tdep.c (vax_store_struct_return): New function.
7147 (vax_extract_return_value): Ditto.
7148 (vax_store_return_value): Ditto.
7149 (vax_extract_struct_value_address): Ditto.
7150 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7151 vax_store_struct_return.
7152 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7153 (STORE_RETURN_VALUE): Use vax_store_return_value.
7154 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7155
7156 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * vax-tdep.c (vax_frame_saved_pc): New function.
7159 (vax_frame_args_address_correct): Ditto.
7160 (vax_frame_args_address): Ditto.
7161 (vax_frame_locals_address): Ditto.
7162 (vax_frame_num_args): Move code to be in proximity to
7163 other frame-related functions.
7164 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7165 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7166 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7167 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7168 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7169
7170 2002-04-22 H.J. Lu (hjl@gnu.org)
7171
7172 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7173 includedir.
7174
7175 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7176
7177 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7178 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7179 (FRAME_INIT_SAVED_REGS): New macro.
7180
7181 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7182
7183 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7184
7185 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7186
7187 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7188 where needed.
7189 (fetch_osf_core_registers): Likewise.
7190 (supply_gregset): Likewise.
7191
7192 2002-04-22 J. Brobecker <brobecker@gnat.com>
7193
7194 * symfile.h (get_section_index): Define.
7195 * symfile.c (get_section_index): New function.
7196 * mdebugread.c (SC_IS_SBSS): New macro.
7197 (SC_IS_BSS): Return true for the scBss storage class only, as
7198 the scSBss storage class refers to the .sbss section.
7199 (parse_partial_symbols): Discard the symbols which associated
7200 section does not exist.
7201 Make sure to use the .sbss section index for symbols which
7202 storage class is scBss, rather than using the .bss section index.
7203
7204 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7205
7206 * vax-tdep.c: Update copyright years.
7207 (vax_register_name): New function.
7208 (vax_register_byte): Ditto.
7209 (vax_register_raw_size): Ditto.
7210 (vax_register_virtual_size): Ditto.
7211 (vax_register_virtual_type): Ditto.
7212 * config/vax/tm-vax.h: Update copyright years.
7213 (REGISTER_NAMES): Remove.
7214 (REGISTER_NAME): Define.
7215 (REGISTER_BYTE): Use vax_register_byte.
7216 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7217 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7218 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7219
7220 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7221
7222 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7223 declaration
7224 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7225
7226 2002-04-21 David S. Miller <davem@redhat.com>
7227
7228 * arch-utils.c (generic_prologue_frameless_p): Kill
7229 SKIP_PROLOGUE_FRAMELESS_P code.
7230 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7231 references.
7232 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7233 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7234 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7235 references.
7236 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7237 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7238 (sparc_gdbarch_init): Pass it to
7239 set_gdbarch_prologue_frameless_p.
7240
7241 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7242
7243 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7244 (alphabsd-nat.o): New dependency list.
7245
7246 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7249 alphafbsd-tdep.c.
7250 (alpha-linux-tdep.o): New dependency list.
7251 (alphafbsd-tdep.o): Likewise.
7252
7253 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7254
7255 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7256 to here...
7257 * alpha-tdep.c: ...from here.
7258 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7259
7260 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7261
7262 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7263 prototype from here...
7264 * alpha-tdep.h: ...to here.
7265
7266 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7267
7268 * frame.h (selected_frame_level): Document as deprecated.
7269 (frame_relative_level): Declare.
7270 * stack.c (frame_relative_level): New function.
7271 (selected_frame_level): Document as deprecated.
7272 (select_frame): Do not set the selected_frame_level.
7273
7274 * stack.c (frame_info, record_selected_frame): Update.
7275 (frame_command, current_frame_command): Update.
7276 (up_silently_base, up_command, down_silently_base): Update.
7277 (down_command): Update.
7278 * inflow.c (kill_command): Update.
7279 * tracepoint.c (finish_tfind_command): Update.
7280 * corelow.c (core_open): Update.
7281 * thread.c (info_threads_command): Update.
7282 (do_captured_thread_select): Update.
7283 * infcmd.c (finish_command): Update.
7284 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7285
7286 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7287
7288 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7289
7290 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7291
7292 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7293 type const.
7294
7295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7296
7297 * alphafbsd-tdep.c: Update copyright years. Include
7298 alpha-tdep.h.
7299 (alphafbsd_use_struct_convention): Make static.
7300 (alphafbsd_init_abi): New function.
7301 (_initialize_alphafbsd_tdep): New function.
7302 * config/alpha/tm-fbsd.h: Update copyright years.
7303 (USE_STRUCT_CONVENTION): Remove.
7304
7305 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7306
7307 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7308 an Alpha ABI variant.
7309 (alpha_abi_handler_list): Declare.
7310 (alpha_gdbarch_register_os_abi): New function.
7311 (alpha_gdbarch_init): Give registered ABI variant handlers a
7312 chance to tweak the gdbarch once we have set up defaults.
7313 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7314
7315 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7316
7317 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7318 to standard_coerce_float_to_double.
7319 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7320
7321 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7322
7323 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7324 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7325 from gdbarch_tdep rather than a constant.
7326 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7327 the default text address for all Alpha Unix ABIs.
7328 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7329 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7330
7331 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7332
7333 * alpha-tdep.h: New file. Includes several Alpha target constants
7334 taken from...
7335 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7336 let gdbarch deal with.
7337 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7338 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7339 to dependency list.
7340 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7341 Alpha target register names.
7342 * alphabsd-nat.c: Likewise.
7343 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7344 Alpha target register names. Make serveral routines static.
7345 (alpha_get_saved_register): New function.
7346 (alpha_abi_names): New.
7347 (process_note_abi_tag_sections): New function.
7348 (get_elfosabi): New function.
7349 (alpha_gdbarch_init): New function.
7350 (alpha_dump_tdep): New function.
7351 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7352
7353 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7354
7355 * frame.c (find_saved_register): Delete #ifdef
7356 HAVE_REGISTER_WINDOWS code.
7357 * config/sparc/tm-sparc.h: Update comments.
7358 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7359
7360 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7361
7362 * i960-tdep.c (i960_find_saved_register): New function.
7363 (i960_get_saved_register): New function.
7364 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7365 (i960_get_saved_register): Declare.
7366 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7367
7368 2002-04-20 David S. Miller <davem@redhat.com>
7369
7370 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7371
7372 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7373
7374 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7375 instead of NUM_PSEUDO_REGS.
7376
7377 2002-04-20 David S. Miller <davem@redhat.com>
7378
7379 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7380 GDB_MULTI_ARCH_PARTIAL
7381 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7382 define, let tm-sp64.h do it.
7383
7384 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7385
7386 * frame.c (find_saved_register): Avoid a NULL pointer
7387 dereference and actually walk the frame list.
7388
7389 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7390
7391 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7392 sorted in most most-recent-used order. Document.
7393 * gdbarch.h, gdbarch.c: Regenerate.
7394
7395 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7396
7397 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7398 instead of ->prev.
7399 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7400 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7401 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7402 instead of ->prev.
7403
7404 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7405
7406 Fix PR gdb/471.
7407 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7408 (build_builtin_type_vec128): Ditto.
7409 (append_composite_type_field): Fix calculation of type length in
7410 union case.
7411
7412 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7413
7414 * config/djgpp/README: Update.
7415
7416 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7417 compiler warnings.
7418
7419 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7420
7421 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7422 (alpha_setup_arbitrary_frame): ...to this.
7423 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7424 for alpha_setup_arbitrary_frame.
7425
7426 2002-04-18 Andrew Cagney <cagney@redhat.com>
7427
7428 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7429 * gdbarch.h, gdbarch.c: Regenerate.
7430
7431 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7432 * target.h (memory_breakpoint_from_pc): Update declaration.
7433 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7434
7435 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7436 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7437 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7438 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7439 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7440 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7441 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7442 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7443 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7444 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7445 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7446 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7447
7448 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7449 const pointer.
7450 * monitor.c (monitor_insert_breakpoint): Ditto.
7451 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7452
7453 * config/mcore/tm-mcore.h: Update copyright.
7454 * mem-break.c: Ditto.
7455 * xstormy16-tdep.c: Ditto.
7456
7457 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7458
7459 * p-exp.y: Add precedence rule for '^' token.
7460 This removes the shift/reduce conflicts.
7461 Remove the comment concerning these shift/reduce conflicts.
7462
7463 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7464
7465 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7466 (registers_powerpc_nofp): New register set for processors
7467 without floating point unit.
7468
7469 2002-04-18 David S. Miller <davem@redhat.com>
7470
7471 * MAINTAINERS: Add myself to write-after-approval.
7472
7473 2002-04-17 Michael Snyder <msnyder@redhat.com>
7474
7475 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7476
7477 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7478
7479 * rs6000-tdep.c (frame_initial_stack_address): Use
7480 frame_register_read to read the alloca_reg.
7481
7482 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7483
7484 * frame.c (find_saved_register): Find saved registers in the next
7485 not prev frame.
7486 Fix PR gdb/365.
7487
7488 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7489
7490 * gdbarch.sh (LANG): Set to ``c''.
7491
7492 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7493
7494 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7495
7496 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7497
7498 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7499 Update copyright.
7500
7501 * hpread.c (hpread_get_lntt): Add declaration.
7502 Also fix PR gdb/391.
7503
7504 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7505
7506 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7507 * aclocal.m4, configure: Re-generate.
7508 Fix PR gdb/391.
7509
7510 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7511
7512 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7513 instead of tm_print_insn.
7514
7515 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7516
7517 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7518
7519 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7520
7521 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7522 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7523 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7524
7525 2002-04-12 Don Howard <dhoward@redhat.com>
7526
7527 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7528 max_user_call_depth.
7529 (init_cmd_lists): Initialize the new value;
7530 * cli/cli-script.c (execute_user_command): Limit the call depth of
7531 user defined commands. This avoids a core-dump when user commands
7532 are infinitly recursive.
7533
7534 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7535
7536 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7537 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7538 from tdep struct instead of DEFAULT_LR_SAVE.
7539 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7540 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7541 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7542
7543 2002-04-12 Michael Snyder <msnyder@redhat.com>
7544
7545 * Remote.c: Spelling fix.
7546 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7547 If no symbol found for "sbrk", try "_sbrk".
7548 (make_output_phdrs): Use bfd_section_name.
7549 (gcore_copy_callback): Use bfd_section_name.
7550 * eval.c: Indentation fix-ups.
7551 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7552 in case it gets applied to an address that is already
7553 in the instruction space.
7554 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7555 * symfile.c: Fix indentation, long lines.
7556 * source.c: White space fix-up.
7557
7558 2002-04-12 Andrew Cagney <cagney@redhat.com>
7559
7560 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7561 * frame.c (frame_register_read): New function. Return non-zero on
7562 success.
7563 (read_relative_register_raw_bytes_for_frame): Delete.
7564 (read_relative_register_raw_bytes): Delete.
7565 * frame.h (frame_register_read): Declare.
7566 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7567 * sh-tdep.c: Ditto.
7568 * infcmd.c (do_registers_info): Ditto.
7569 * hppa-tdep.c: Ditto.
7570 * rs6000-tdep.c: Ditto.
7571 * h8500-tdep.c: Ditto.
7572 * mips-tdep.c: Ditto.
7573 * h8300-tdep.c: Ditto.
7574 * z8k-tdep.c: Ditto.
7575
7576 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7577
7578 From Jimi X <jimix@watson.ibm.com>:
7579 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7580 64-bit SysV ABI.
7581
7582 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7583
7584 From Jimi X <jimix@watson.ibm.com>:
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7586 bfd info.
7587
7588 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7589
7590 From Jimi X <jimix@watson.ibm.com>:
7591 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7592 register sets for these processor variants.
7593
7594 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7595
7596 * regformats/reg-ppc.dat: Support FPSCR.
7597
7598 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7599
7600 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7601 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7602 Add fpscr as an invalid/unfetchable register.
7603 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7604 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7605 (fill_fpregset): Add support for register fpscr.
7606 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7607 (fill_gregset): Account for the fact that register ``mq'' might
7608 not exist.
7609 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7610 (registers_power): Add fpscr to register set at slot 71.
7611 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7612 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7613
7614 2002-04-11 Michael Snyder <msnyder@redhat.com>
7615
7616 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7617 * configure: Regenerate.
7618 * config.in: Regenerate.
7619 * acconfig.h: Add define for _SYSCALL32.
7620 * core-sol2.c: Remove #define _SYSCALL32.
7621 * solib-legacy.c: Remove #define _SYSCALL32.
7622
7623 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7624
7625 * stack.c (select_frame): Cleanup internal error message, do not
7626 use %p.
7627
7628 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7629
7630 * stack.c (select_frame): Check that selected_frame and the
7631 specified level are as expected.
7632 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7633 Update copyright.
7634 * frame.h (struct frame_info): Add field `level'. Update
7635 copyright.
7636 Work-in-progress PR gdb/464.
7637
7638 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7639
7640 * maint.c (maint_print_section_info): Rename print_section_info.
7641 (print_bfd_section_info, print_objfile_section_info): Update.
7642 * inferior.h (struct gdbarch): Add opaque declaration.
7643 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7644 * gdbarch.h: Regenerate.
7645
7646 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7647
7648 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7649 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7650 (kernel_u_size): Added.
7651 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7652 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7653
7654 2002-04-04 Jim Ingham <jingham@apple.com>
7655
7656 * valarith.c (find_size_for_pointer_math): New function, either returns
7657 the size for a pointer's target, returns 1 for void *, or errors for
7658 incomplete types.
7659 (value_add, value_sub): use find_size_for_pointer_math.
7660
7661 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * linux-low.c (linux_look_up_symbols): New hook.
7664 (linux_target_ops): Add linux_look_up_symbols.
7665 * remote-utils.c (decode_address): New function.
7666 (look_up_one_symbol): New function.
7667 * server.c (handle_query): Call target look_up_symbols hook.
7668 * server.h (look_up_one_symbol): Add prototype.
7669 * target.h (struct target_ops): Add look_up_symbols hook.
7670
7671 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7672
7673 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7674 override FP_REGNUM with frame->fp. Update copyright.
7675 * parse.c (num_std_regs, std_regs): Delete.
7676 (target_map_name_to_register): Do not search std_regs. Update
7677 function description.
7678 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7679 declarations. Update copyright.
7680 Fix PR gdb/251.
7681
7682 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7685 after the last symbol in a block.
7686
7687 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7688
7689 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7690 is non zero as a found symbol.
7691
7692 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7693
7694 * findvar.c: Include "builtin-regs.h".
7695 (value_of_register): Call value_of_builtin_reg when applicable.
7696 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7697 (target_map_name_to_register): Call
7698 builtin_reg_map_name_to_regnum.
7699 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7700 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7701 (builtin_regs_h): Define.
7702 (builtin-regs.o): New target.
7703 (findvar.o): Add $(builtin_regs_h).
7704 * builtin-regs.c, builtin-regs.h: New files.
7705 * std-regs.c: New file.
7706 Partial fix for PR gdb/251.
7707
7708 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7709
7710 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7711 it's no longer required.
7712
7713 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7714
7715 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7716
7717 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7718
7719 From Jimi X <jimix@watson.ibm.com>:
7720 * rs6000-tdep.c (rs6000_software_single_step): Use
7721 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7722 and size. Use target_insert_breakpoint() and
7723 target_remove_breakpoint() to insert and remove breakpoints
7724 instead of explicit memory reads and writes.
7725
7726 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7727
7728 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7729 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7730 ELF_OBJECT_FORMAT ifdef.
7731
7732 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7733
7734 From Jimi X <jimix@watson.ibm.com>:
7735 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7736
7737 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7738
7739 From Jimi X <jimix@watson.ibm.com>:
7740 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7741 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7742
7743 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7744
7745 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7746 s/asprintf/xasprintf/.
7747 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7748
7749 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7750
7751 I believe Jeff Law denies responsability for this one:
7752 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7753 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7754 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7755 Work-around for PR gdb/366.
7756
7757 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7758
7759 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7760 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7761 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7762
7763 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7764
7765 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7766 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7767 information.
7768
7769 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7770
7771 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7772 maintainer.
7773
7774 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7775
7776 * README (Reporting Bugs in GDB): Document the bug web page as the
7777 prefered way of submitting bugs.
7778 Fix PR gdb/402.
7779
7780 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7781
7782 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7783 -1. Update comment.
7784 * gdbarch.h, gdbarch.c: Re-generate.
7785
7786 2002-04-07 Andreas Schwab <schwab@suse.de>
7787
7788 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7789 buffer to regcache_collect.
7790
7791 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7792
7793 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7794 * gdbarch.c, gdbarch.h: Re-generate.
7795
7796 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7797
7798 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7799 declaration. Fix -Werror.
7800
7801 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7802
7803 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7804 * gdbarch.c: Regenerate.
7805
7806 2002-04-05 Michael Snyder <msnyder@redhat.com>
7807
7808 * breakpoint.c (clear_command): Rewrite middle section to
7809 combine two loops with identical control conditions.
7810 Add a cleanup to eliminate a memory leak.
7811 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7812
7813 2002-04-05 H.J. Lu (hjl@gnu.org)
7814
7815 * solib-svr4.c (bkpt_names): Add "__start".
7816
7817 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7818
7819 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7820 as test for 64 bit target.
7821
7822 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7823
7824 * h8500-tdep.c (h8500_write_fp): Delete function.
7825 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7826 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7827 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7829 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7830 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7831 (s390_write_fp):
7832 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7833 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7834 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7835 (d10v_write_fp): Delete function.
7836 * inferior.h (write_fp, generic_target_write_fp): Delete
7837 declarations.
7838 * regcache.c (generic_target_write_fp): Delete function.
7839 (write_fp): Delete function.
7840 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7841 * gdbarch.h, gdbarch.c: Regenerate.
7842 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7843 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7844 (sparc64_write_fp): Delete declaration.
7845 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7846 (h8500_write_fp): Delete declaration.
7847
7848 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7849
7850 * sparc-tdep.c (sparc64_write_fp): Delete.
7851 (sparc_push_dummy_frame): Replace write_fp call with code to store
7852 the FP directly.
7853 (sparc_gdbarch_init): Do not initialize write_fp.
7854
7855 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7856
7857 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7858 clause.
7859
7860 2002-03-29 Jim Blandy <jimb@redhat.com>
7861
7862 * stack.c (get_selected_block): Add new argument `addr_in_block',
7863 used to return the exact code address we used to select the block,
7864 not just the block.
7865 * blockframe.c (get_frame_block, get_current_block): Same.
7866 * frame.h (get_frame_block, get_current_block,
7867 get_selected_block): Update declarations.
7868 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7869 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7870
7871 2002-04-05 Michael Snyder <msnyder@redhat.com>
7872
7873 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7874 warning message.
7875
7876 2002-04-05 J. Brobecker <brobecker@gnat.com>
7877
7878 * utils.c (xfullpath): New function.
7879 * defs.h (xfullpath): Add declaration.
7880 * source.c (openp): Use xfullpath in place of gdb_realpath to
7881 avoid resolving the basename part of filenames when the
7882 associated file is a symbolic link. This fixes a potential
7883 inconsistency between the filenames known to GDB and the
7884 filenames it prints in the annotations.
7885 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7886 to be able to match a filename with either the real filename, or
7887 the name of any symbolic link to this file.
7888 (lookup_partial_symtab): Ditto.
7889
7890 2002-04-04 Michael Snyder <msnyder@redhat.com>
7891
7892 * breakpoint.c: Add support for hardware breakpoints in overlays.
7893 (overlay_events_enabled): New state variable.
7894 (insert_breakpoints): Use overlay_events_enabled to decide
7895 whether to attempt to set a breakpoint at the overlay load addr.
7896 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7897 (remove_breakpoint): Use overlay_events_enabled to decide
7898 whether breakpoints need to be removed from overlay load addr.
7899 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7900 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7901 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7902 disable_overlay_breakpoints): Update overlay_events_enabled.
7903
7904 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7905
7906 * dwarf2read.c (struct function_range): New.
7907 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7908 (check_cu_functions): New.
7909 (read_file_scope): Initialize global function lists.
7910 Call dwarf_decode_line after processing children.
7911 (read_func_scope): Add to global function list.
7912 (dwarf_decode_lines): Call check_cu_functions everywhere
7913 record_line is called. Call record_line with a linenumber
7914 of 0 to mark sequence ends.
7915
7916 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7917
7918 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7919 change sync with glibc.
7920
7921 2002-04-03 Jim Blandy <jimb@redhat.com>
7922
7923 * configure.in: Call AC_C_INLINE.
7924 * configure: Regenerated.
7925
7926 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7927
7928 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7929 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7930
7931 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7932
7933 * NEWS: Mention gcore support on FreeBSD/i386.
7934
7935 * fbsd-proc.c: New file.
7936 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7937 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7938
7939 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7940 while statement.
7941
7942 2002-03-29 Jim Blandy <jimb@redhat.com>
7943
7944 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7945 unescaped newlines in string literals, but newer ones don't. So
7946 escape them.
7947
7948 2002-03-26 Michael Snyder <msnyder@redhat.com>
7949 Andrew Cagney <cagney@redhat.com>
7950
7951 * cli/cli-dump.c: New file. Dump memory to file,
7952 restore file to memory.
7953 * cli/cli-dump.h: New file.
7954 * Makefile.in: Add rules, dependencies for cli-dump.o.
7955 * NEWS: Mention new commands.
7956
7957 2002-03-28 Michael Snyder <msnyder@redhat.com>
7958
7959 * symfile.c (symbol_file_add): Move test for null symbols to later.
7960
7961 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7962
7963 From veksler at il.ibm.com:
7964 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7965 the xstrduped original path.
7966 Fix PR gdb/417.
7967
7968 2002-03-27 Michael Snyder <msnyder@redhat.com>
7969
7970 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7971 * infcmd.c (_initialize_infcmd): Ditto.
7972 * language.c (_initialize_language): Ditto.
7973 * symfile.c (_initialize_symfile): Ditto.
7974 * top.c (_init_main): Ditto.
7975 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7976
7977 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7980 vector registers handling.
7981 (skip_prologue): Handle new AltiVec instructions. Fill in new
7982 fields of frame data.
7983 (frame_get_saved_regs): Fill in information for AltiVec registers.
7984
7985 2002-03-27 Jim Blandy <jimb@redhat.com>
7986
7987 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7988 a function; leave this macro here to invoke that function.
7989 (symbol_init_mangled_name): Declaration for that function.
7990 * symtab.c (symbol_init_mangled_name): New function.
7991
7992 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7993
7994 * valarith.c: Replace strerror with safe_strerror.
7995 * tracepoint.c: Ditto.
7996 * lin-lwp.c: Ditto.
7997 * go32-nat.c: Ditto.
7998 * inflow.c: Ditto.
7999 * gnu-nat.c: Ditto.
8000
8001 2002-03-27 Andreas Schwab <schwab@suse.de>
8002
8003 * event-top.c (command_line_handler): Remove useless if.
8004
8005 2002-03-27 Andreas Jaeger <aj@suse.de>
8006
8007 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8008 comment.
8009
8010 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8011
8012 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8013 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8014 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8015 (x86_64_linux_dr_get_status, supply_gregset),
8016 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8017 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8018 (x86_64_register_info_table): Add.
8019 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8020 (x86_64_register_raw_size, x86_64_register_virtual_type),
8021 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8022 general x86_64_register_info_table.
8023 (i386_gdbarch_init): gdbarch_register_bytes is now set
8024 dynamicaly during initialization.
8025 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8026 * gdbserver/linux-x86-64-low.c: Ditto.
8027
8028 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8029
8030 * gdbserver/server.c (main): Call target_signal_to_host_p
8031 and target_signal_to_host on signals received from the remote.
8032 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8033 target_signal_from_host on signals sent to the remote.
8034 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8035 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8036
8037 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * signals/signals.c: Include "server.h" in gdbserver build.
8040 (target_signal_from_name): Don't use STREQ.
8041 (_initialize_signals): Likewise. Don't include function in
8042 gdbserver build.
8043
8044 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8045
8046 * signals.c: Moved to...
8047 * signals/signals.c: Here.
8048 * Makefile (signals.o): Update.
8049
8050 2002-03-26 Jeff Law (law@redhat.com)
8051
8052 * somread.c (som_symtab_read): Remove some commented out code and
8053 updated related comments. Do not set the minimal symbol table to
8054 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8055 in a dynamic executable.
8056 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8057 where we are unable to find the minimal symbol for the given
8058 PC value.
8059
8060 2002-03-25 Jeff Law (law@redhat.com)
8061
8062 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8063
8064 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8065
8066 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8067
8068 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8069
8070 * command.h: Update copyright.
8071 (struct cmd_list_element): Replace definition with opaque
8072 declaration.
8073 (enum cmd_types): Document that it will eventually be moved to
8074 cli/cli-decode.h
8075 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8076 (MALLOCED_REPLACEMENT): Delete macro.
8077 * Makefile.in (cli_decode_h): Add $(command_h).
8078 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8079 * top.c: Include "cli/cli-decode.h".
8080 * completer.c: Include "cli/cli-decode.h".
8081 * maint.c: Include "cli/cli-decode.h".
8082 * cli/cli-decode.h: Include "command.h".
8083 (enum command_class): Delete.
8084 (enum cmd_types): Comment out.
8085 (enum cmd_auto_boolean): Delete.
8086 (enum var_types): Delete.
8087
8088 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8089
8090 * cli/cli-decode.c: Include "gdb_assert.h".
8091 (add_set_or_show_cmd): New static function.
8092 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8093 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8094 all fields, such as func, from the set command.
8095
8096 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8097
8098 * MAINTAINERS (sh-elf): Change warning flag to -w.
8099
8100 2002-03-23 Andrew Cagney <cagney@redhat.com>
8101
8102 * defs.h (error): Add printf format attribute.
8103 * thread-db.c (thread_from_lwp): Fix error format string.
8104 * stack.c (parse_frame_specification): Ditto.
8105 * cli/cli-decode.c (undef_cmd_error): Ditto.
8106 * scm-lang.c (scm_lookup_name): Ditto.
8107 * tracepoint.c (trace_error): Ditto.
8108 * remote-utils.c (usage): Ditto.
8109 * remote.c (compare_sections_command): Ditto.
8110 Fix PR gdb/328.
8111
8112 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8113
8114 * gdbtypes.c (append_composite_type_field): New function.
8115 (init_composite_type): New function.
8116 * gdbtypes.h (append_composite_type_field): Declare.
8117 (init_composite_type): Ditto.
8118
8119 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8120
8121 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8122 function.
8123 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8124 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8125 structure returning convention for SYSV ABI case, but not
8126 for GNU/Linux, FreeBSD, or NetBSD.
8127
8128 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8129
8130 * symtab.h (lookup_block_symbol): Add mangled_name argument
8131 to prototype.
8132
8133 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8134 with new mangled_name argument.
8135 * linespec.c (decode_line_1): Likewise.
8136 * valops (value_of_this): Likewise.
8137 * symtab.c (lookup_transparent_type): Likewise.
8138 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8139 (lookup_symbol): If we are given a mangled name, pass it down
8140 to lookup_symbol_aux.
8141 (lookup_block_symbol): If we are given a mangled name to check
8142 against, only return symbols which match it.
8143
8144 2002-03-22 Christopher Faylor <cgf@redhat.com>
8145
8146 * win32-nat.c (child_create_inferior): Check for proper shell to use
8147 here, in case the user changes it on the fly.
8148 (_initialize_inftarg): Remove shell path considerations.
8149
8150 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8151
8152 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8153 for gdbarch_max_register_raw_size and max_register_virtual_size.
8154 Adjust copyright year.
8155
8156 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8157
8158 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8159 in a function to cover the entire beginning of the function
8160 as well if it does not already.
8161
8162 2002-03-21 Tom Rix <trix@redhat.com>
8163
8164 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8165 (rs6000_ptrace64): Renamed from ptrace64.
8166
8167 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8168
8169 * gdbserver/remote-utils.c (remote_open): Don't call
8170 getprotobyname, we're all using TCP here so just use
8171 IPPROTO_TCP.
8172 * gdbserver/gdbreplay.c (remote_open): Ditto.
8173
8174 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8175
8176 * regcache.c (_initialize_regcache): No need to call
8177 build_regcache() at this time; it gets called whenever
8178 the gdbarch changes.
8179
8180 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8181
8182 * sparc-nat.c: Include sys/param.h where possible.
8183
8184 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8185
8186 Fix PR gdb/422.
8187 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8188 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8189 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8190 complex types.
8191 * stabsread.c (rs6000_builtin_type): Likewise.
8192 (read_sun_floating_type): Likewise.
8193
8194 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8195
8196 * stabsread.c (read_member_functions): Remove skip code for duplicate
8197 constructor/destructor methods. Use standard parsing for these
8198 methods and just do not chain them to the list of methods after
8199 parsing.
8200
8201 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8202
8203 * coffread.c: Remove redundant static declarations. Replace
8204 occurrences of `PTR' with `void *'.
8205 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8206 * top.h (quit_cover): Likewise.
8207 * defs.h (catch_errors): Likewise.
8208
8209 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8210
8211 * defs.h (XMALLOC): Define.
8212 * gdb-events.sh (XMALLOC): Delete macro.
8213 * gdb-events.c, gdb-events.h: Regenerate.
8214 * gdbarch.sh (XMALLOC): Delete macro.
8215 * gdbarch.c: Regenerate.
8216 * serial.c (XMALLOC): Delete macro.
8217 * ui-file.c (XMALLOC): Ditto.
8218 * ser-unix.h (XMALLOC): Ditto.
8219 * sh-tdep.c (XMALLOC): Ditto.
8220 * ui-out.c (XMALLOC): Ditto.
8221 * utils.c (XMALLOC): Ditto.
8222 * i386-tdep.c (XMALLOC): Ditto.
8223 * gdb-events.c (XMALLOC): Ditto.
8224 * d10v-tdep.c (XMALLOC): Ditto.
8225 * cli-out.c (XMALLOC): Ditto.
8226
8227 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8228 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8229 * ui-file.c, ui-out.c: Ditto.
8230
8231 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8232
8233 * command.h (struct cmd_list_element): Add field context.
8234 (set_cmd_context, get_cmd_context): Declare.
8235 * cli/cli-decode.h: Ditto.
8236 * cli/cli-decode.c (get_cmd_context): New function.
8237 (set_cmd_context): New function.
8238 (add_cmd): Initialize context.
8239 Part of fixing PR gdb/145 and PR gdb/146.
8240
8241 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8242
8243 * cli/cli-decode.c (cmd_type): New function.
8244 * command.h (cmd_type): Declare.
8245 * infrun.c (set_schedlock_func): Call function cmd_type.
8246 * kod.c (kod_set_os): Call cmd_type.
8247 * cris-tdep.c (cris_version_update): Use function cmd_type.
8248 (cris_mode_update, cris_abi_update): Ditto.
8249
8250 * command.h: (execute_cmd_post_hook): Declare.
8251 (execute_cmd_pre_hook): Declare.
8252 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8253 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8254 functions. Execute pre/post hook while ensuring that afterwords
8255 hook_in is cleared.
8256 * top.c (execute_command): Use execute_cmd_post_hook, and
8257 execute_cmd_pre_hook to execute pre/post commands.
8258 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8259 hook_stop_stub.
8260 (hook_stop_stub): Call execute_cmd_pre_hook.
8261
8262 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8263
8264 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8265 set'' and this leads to a core dump. Move xstrdup of
8266 operating_system to after check that it is not NULL.
8267
8268 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8269
8270 * kod.c (kod_set_os): Remove unnecessary check that
8271 ``command->type'' is set_cmd.
8272
8273 * valprint.c (set_input_radix): Use input_radix.
8274 (set_output_radix): Use output_radix.
8275 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8276 isn't reverted.
8277
8278 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8279
8280 * value.h (struct value): Delete field ``substring_addr''. Change
8281 aligner fields to force_doublest_align, force_longest_align,
8282 force_core_addr_align and force_pointer_aligh.
8283
8284 * value.h (struct value): Fix typo in above change.
8285
8286 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8287
8288 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8289 to fix internal_error from ``maintenance print architecture''.
8290
8291 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8292
8293 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8294 for gcc versions after gcc-2.8.1.
8295
8296 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8297
8298 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8299 for method resolution. Restore adjustment of ``this'' pointer after
8300 calling value_struct_elt, which was accidentally removed during the
8301 HP merge.
8302
8303 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8304
8305 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8306 value_of_register.
8307 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8308 get_saved_register.
8309 * value.h (value_of_register): Update.
8310
8311 2002-03-14 Richard Henderson <rth@redhat.com>
8312
8313 * configure.in: Detect declaration for canonicalize_file_name.
8314 * utils.c (canonicalize_file_name): Declare, if needed.
8315 (gdb_realpath): Prefer realpath if available and usable.
8316 * config.in, configure: Rebuild.
8317
8318 2002-03-14 Richard Henderson <rth@redhat.com>
8319
8320 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8321 a constant array bound.
8322
8323 * MAINTAINERS: Add myself to write-after-approval.
8324
8325 2002-03-14 Michael Snyder <msnyder@redhat.com>
8326
8327 * symfile.c (syms_from_objfile): Return immediately if no syms.
8328 (symbol_file_add): Return immediately if no syms.
8329 (find_sym_fns): Return immediately if no syms.
8330
8331 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8332
8333 * gdbserver/remote-util.c (remote_open): Print remote-side's
8334 IP address when remote debugging over the network.
8335
8336 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8337
8338 * config/sparc/fbsd.mh: Fix copyright.
8339 * config/sparc/fbsd.mt: Likewise.
8340
8341 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8342
8343 * MAINTAINERS: Fix typo in name of gdb warnings option.
8344 (x86-64): Fix formating so that this can be parsed by awk.
8345
8346 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8347
8348 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8349 * defs.h: Include "gdb/signals.h".
8350 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8351
8352 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8353
8354 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8355 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8356 from x86-64-tdep.h
8357
8358 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8359 Don Howard <dhoward@redhat.com>
8360
8361 * mips-tdep.c (ST0_FR): Define.
8362 (mips2_fp_compat): New function, temporarily disabled.
8363 (mips_read_fp_register_single): New function.
8364 (mips_read_fp_register_double): New function.
8365 (mips_print_register): Use them.
8366 (do_fp_register_row): Likewise.
8367
8368 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8369
8370 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8371 approval''.
8372
8373 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8374
8375 * stabsread.c (read_member_functions): Fix is_stub test for
8376 static member functions, improve comment.
8377
8378 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8379
8380 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8381 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8382 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8383 commands that set boolean values.
8384 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8385 (arm_rdi_resume): Always initialize PC.
8386 (arm_rdi_open): Don't use rslt as a boolean.
8387 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8388 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8389 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8390 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8391
8392 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8393
8394 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8395 * configure: Rebuilt.
8396
8397 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8398
8399 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8400 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8401
8402 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8403
8404 * cli/cli-decode.c (set_cmd_completer): New function.
8405 * command.h (set_cmd_completer): Declare.
8406 * cli/cli-decode.h (set_cmd_completer): Ditto.
8407
8408 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8409 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8410 * win32-nat.c (_initialize_inftarg): Ditto.
8411 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8412 * proc-api.c (_initialize_proc_api): Ditto.
8413 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8414 * source.c (_initialize_source): Ditto.
8415 * exec.c (_initialize_exec): Ditto.
8416 * solib.c (_initialize_solib): Ditto.
8417 * top.c (init_main): Ditto.
8418 * tracepoint.c (_initialize_tracepoint): Ditto.
8419 * symfile.c (_initialize_symfile): Ditto.
8420 * printcmd.c (_initialize_printcmd): Ditto.
8421 * infcmd.c (_initialize_infcmd): Ditto.
8422 * corefile.c (_initialize_core): Ditto.
8423
8424 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8425
8426 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8427
8428 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8429
8430 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8431
8432 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8433
8434 * NEWS: Update headings, 5.2 has branched.
8435
8436 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8437
8438 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8439 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8440 (register_addr, REGISTER_RAW_SIZE): Likewise.
8441 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8442 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8443
8444 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8445
8446 * MAINTAINERS (x86-64): Add myself.
8447 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8448 changed value_ptr -> struct value *
8449
8450 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8451
8452 * configure.host (sparc64-*-freebsd): Add.
8453 * configure.tgt: Likewise.
8454 * config/sparc/fbsd.mh: New file.
8455 * config/sparc/fbsd.mt: Likewise.
8456 * config/sparc/nm-fbsd.h: Likewise.
8457 * config/sparc/tm-fbsd.h: Likewise.
8458
8459 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8460
8461 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8462 regformats/reg-s390x.dat.
8463
8464 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8465
8466 * utils.c: Add FIXME explaining true/false problem.
8467
8468 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8469
8470 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8471
8472 2002-02-28 Michael Chastain <mec@shout.net>
8473
8474 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8475
8476 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * gdbserver/linux-s390-low.c: New file.
8479 * regformats/reg-s390.dat: New file.
8480 * regformats/reg-s390x.dat: New file.
8481 * gdbserver/configure.srv: Add S/390.
8482 * gdbserver/Makefile.in: Add S/390.
8483 * configure.tgt: Enable gdbserver for S/390.
8484
8485 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8486
8487 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8488 first line of the doc string for "info dos", except at the end of
8489 the sentence, since the short help stops at the first period.
8490
8491 2002-02-28 Jason Merrill <jason@redhat.com>
8492
8493 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8494
8495 2002-02-27 Fred Fish <fnf@redhat.com>
8496
8497 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8498 comment (dumy -> dummy).
8499
8500 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8501
8502 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8503
8504 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8505
8506 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8507
8508 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8509
8510 * gdbserver/acconfig.h: New file.
8511 * gdbserver/i387-fp.c: New file.
8512 * gdbserver/i387-fp.h: New file.
8513 * gdbserver/linux-x86-64.c: New file.
8514 * regformats/reg-x86-64.dat: New file.
8515 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8516 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8517 * gdbserver/configure.in: Add support for regsets.
8518 * gdbserver/config.in: Regenerate.
8519 * gdbserver/configure: Regenerate.
8520 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8521 * gdbserver/linux-low.h: New file.
8522 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8523 for regsets.
8524 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8525 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8526 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8527 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8528 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8529 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8530 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8531 "i387-fp.h". Add PTRACE_GETREGS and friends.
8532 * gdbserver/regcache.c (supply_register): New function.
8533 (supply_register_by_name): New function.
8534 (collect_register): New function.
8535 (collect_register_by_name): New function.
8536
8537 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8538
8539 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8540 (config.status): Add configure.srv dependency.
8541 (server_h): Add config.h dependency.
8542
8543 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8544
8545 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8546 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8547 * gdbserver/configure.srv: Change i386-*-linux* to use
8548 reg-i386-linux.o.
8549
8550 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8551
8552 * x86-64-tdep.c: Re-indent. Update copyright date.
8553
8554 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8555
8556 From Michal Ludvig <mludvig@suse.cz>:
8557 * x86-64-tdep.c (value.h): Delete.
8558 (gdb_assert.h): Include.
8559 (x86_64_register_convert_to_virtual,
8560 x86_64_register_convert_to_raw ): Add check which lets only
8561 floating-point values to be converted.
8562 (value_push): Delete.
8563 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8564 (i386_gdbarch_init): Number of register_bytes fixed.
8565
8566 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8567
8568 * MAINTAINERS: Add x86-64 target.
8569
8570 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8571
8572 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8573 * osfsolib.c (solib_map_sections): Ditto.
8574 * irix5-nat.c (solib_map_sections): Ditto.
8575 * corelow.c (gdb_check_format): Ditto.
8576 * symfile.c (symfile_bfd_open): Ditto.
8577 * solib.c (solib_map_sections): Ditto.
8578 Fix PR gdb/354.
8579
8580 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8581
8582 * remote.c (_initialize_remote): By default, disable ``e'' and
8583 ``E'' step out-of-range packets.
8584
8585 2002-02-26 Andreas Schwab <schwab@suse.de>
8586
8587 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8588 m68k_linux_frame_saved_pc.
8589 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8590 in_sigtramp.
8591 (SIGCONTEXT_PC_OFFSET): Remove.
8592 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8593 m68k_linux_sigtramp_saved_pc): New functions.
8594 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8595 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8596 (UCONTEXT_PC_OFFSET): Define.
8597 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8598 non-RT and RT signal trampolines.
8599
8600 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8601
8602 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8603 (TARGET_NBPG, STACK_END_ADDR): Delete
8604 (VARIABLES_INSIDE_BLOCK): Delete.
8605
8606 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8607
8608 * utils.c (perror_with_name): Make string parameter constant.
8609 (print_sys_errmsg): Ditto.
8610 (query): Ditto.
8611 * defs.h (perror_with_name): Update.
8612 (print_sys_errmsg): Update.
8613 (query): Update.
8614
8615 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8616
8617 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8618 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8619
8620 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8621
8622 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8623 if it already matches the current architecture from the exec file.
8624 Include arch-utils.h for gdbarch_info_init prototype.
8625 * Makefile.in (rs6000-nat.o): Update dependencies.
8626
8627 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8628
8629 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8630 list of exported variables.
8631
8632 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8633
8634 * gdbserver/configure.srv: New file.
8635 * gdbserver/configure.in: Use configure.srv instead
8636 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8637 from it.
8638 * gdbserver/configure: Regenerated.
8639 * gdbserver/terminal.h: New file.
8640 * gdbserver/Makefile.in: Update for configure changes. Remove
8641 more unneeded include paths.
8642
8643 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8644
8645 From wiz at danbala:
8646 * config/sparc/tm-sp64.h: Fix grammar and typos.
8647 Fix PR gdb/287.
8648
8649 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8650
8651 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8652 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8653 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8654 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8655 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8656 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8657 * s390-tdep.c: Ditto.
8658 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8659 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8660 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8661 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8662 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8663 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8664 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8665 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8666 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8667 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8668 Fix PR gdb/378.
8669
8670 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8671
8672 * lin-thread.c: Delete file.
8673 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8674 to gdb_proc_service.h.
8675 * configure: Re-generate.
8676
8677 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8678 * serial.c (serial_open): Delete check for "ocd".
8679 Fix PR gdb/349.
8680
8681 * Makefile.in (linux-thread.o): Delete target.
8682 * linux-thread.c: Delete file.
8683
8684 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8685 renamed SH files to be consistent.
8686
8687 * symtab.c (sort_search_symbols): Use xfree.
8688
8689 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * arm-linux-tdep.c (arm_linux_init_abi): Register
8692 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8693 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8694 definition with undef, since we don't want the sysvr4 definition.
8695 (SKIP_TRAMPOLINE_CODE): Likewise.
8696
8697 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8698
8699 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8700
8701 * configure.in: (AC_CHECK_FUNCS) Added test for
8702 canonicalize_file_name Regenerated.
8703 * config.in, configure: Regenerated.
8704 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8705 defined use canonicalize_file_name.
8706
8707 2002-02-23 Michael Chastain <mec@shout.net>
8708
8709 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8710
8711 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8712
8713 * README: Remove references to cygnus.com.
8714 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8715 dot com'' form. Remove references to cygnus.com and sourceware.
8716
8717 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8718
8719 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8720 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8721 1003.1-2001 no longer allows "head -1".
8722 * gdb/Makefile.in (version.c): Likewise.
8723 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8724 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8725 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8726
8727 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8728
8729 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8730 * command.h (cmd_cfunc_eq): Declare.
8731 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8732
8733 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8734 ``struct cmd_list_element *''.
8735 * cli/cli-cmds.c (is_complete_command): Update. Use
8736 cmd_cfunc_eq.
8737 * top.c (execute_command): Pass the command to
8738 is_complete_command.
8739 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8740
8741 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8742
8743 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8744 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8745 architecture defines.
8746 * s390-tdep.c (s390_gdbarch_init): Likewise.
8747
8748 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8749
8750 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8751 (arm_linux_push_arguments): Likewise.
8752 (arm_linux_init_abi): Register them. Also register linux-specific
8753 call_dummy_words.
8754 (find_minsym_and_objfile): Use strcmp, not STREQ.
8755 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8756 (arm_linux_call_dummy_words): Delete declaration.
8757 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8758 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8759 declarations.
8760 (LOWEST_PC): Delete.
8761
8762 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8763
8764 * maint.c (print_section_info): Do not prepend `0x' to filepos
8765 output, it will be handled by local_hex_string_custom.
8766
8767 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8768
8769 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8770 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8771 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8772
8773 2002-02-22 Jim Blandy <jimb@redhat.com>
8774
8775 Indicate that the bcache functions don't change the strings
8776 they're passed.
8777 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8778 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8779
8780 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8781
8782 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8783
8784 2002-02-21 Christopher Faylor <cgf@redhat.com>
8785
8786 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8787 find the complete path to a loaded DLL.
8788
8789 2002-02-21 Fred Fish <fnf@redhat.com>
8790
8791 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8792 that marks the end of the range of a function, enter a line number
8793 entry that has a line number of zero and a PC offset that matches
8794 the end of the function. This starts a range of PC's for which no
8795 line number information is known.
8796 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8797 PC's for which no line number info is found (line number is zero)
8798 then we didn't find any valid line information.
8799 * symtab.h: Document use of zero line number entry.
8800
8801 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8802
8803 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8804 (have_ptrace_getvrregs): Define for run time checks.
8805 (gdb_vrregset_t): New type for Altivec register handling.
8806 (fetch_register, store_register): Fetch/store altivec register
8807 when needed.
8808 (fetch_altivec_register, store_altivec_register): New functions.
8809 (supply_vrregset, fill_vrregset): New functions.
8810 (fetch_altivec_registers, store_altivec_registers): New functions.
8811 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8812 registers as well.
8813
8814 2002-02-21 Jiri Smid <smid@suse.cz>
8815
8816 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8817
8818 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8819
8820 * Makefile.in (armnbsd-nat.o): Update dependencies.
8821 * armnbsd-nat.c (supply_gregset): New function. Common code to
8822 supply the integer register set.
8823 (supply_fparegset): New function. Similar for FPA registers.
8824 (fetch_regs, fetch_fp_regs): Use them.
8825 (fetch_core_registers): Likewise.
8826 (fetch_elfcore_registers): New function.
8827 (arm_netbsd_elfcore_fns): New core-file type specification.
8828 (_initialize_arm_netbsd_nat): Register it.
8829
8830 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8831
8832 * armnbsd-nat.c: Include gdbcore.h.
8833 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8834 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8835 'void' to declaration, to shut up ARI.
8836 (fetch_core_registers): Make static. Rewrite using supply_register.
8837 (arm_netbsd_core_fns): New core-file type specification.
8838 (_initialize_arm_netbsd_nat): New function.
8839
8840 2002-02-21 Christopher Faylor <cgf@redhat.com>
8841
8842 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8843 value.
8844
8845 2002-02-20 Christopher Faylor <cgf@redhat.com>
8846
8847 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8848 fails.
8849
8850 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8851
8852 * jv-exp.y (parse_number): Change type of implicit longs
8853 to builtin_type_uint64.
8854
8855 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8858 to be an integer instead of a `union wait'.
8859
8860 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * mips-linux-nat.c: Call the operating system GNU/Linux.
8863 * mips-linux-tdep.c: Likewise.
8864 * mips-tdep.c: Likewise.
8865
8866 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8867
8868 Fix PR gdb/265.
8869 * jv-exp.y (parse_number): Handle 64-bit integers.
8870
8871 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8874 AC_STDC_HEADERS to AC_HEADER_STDC.
8875 * gdbserver/configure: Regenerated.
8876
8877 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8880 is defined.
8881 * sparc-tdep.c (get_longjmp_target): Likewise.
8882
8883 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8884
8885 * News: Add news about ARM and Multi-arch. Mention the new target
8886 arm*-*-netbsd*.
8887
8888 2002-02-19 Jim Blandy <jimb@redhat.com>
8889
8890 * stabsread.c (error_type_complaint): Improve error message.
8891
8892 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * gdbserver/README: Update documentation.
8895 * gdbserver/configure.in: Update configury to match documentation.
8896 * gdbserver/Makefile.in: Likewise.
8897 * gdbserver/configure: Regenerated.
8898 * gdbserver/aclocal.m4: New file, generated by aclocal.
8899 * gdbserver/config.in: New file, generated by autoheader.
8900
8901 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8902
8903 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8904 armnbsd-nat.c.
8905
8906 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8907
8908 * arm-tdep.h (enum arm_float_model): New enum.
8909 (struct gdbarch_tdep): Add fp_model.
8910 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8911 up floating-point conversions until we know the floating-point model
8912 in use by the inferior. Don't complain about being unable to
8913 determine the ABI of the inferior when we don't have one.
8914 (arm_extract_return_value): Support different floating-point models.
8915 (arm_store_return_value): Likewise.
8916 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8917 ARM_FLOAT_SOFT.
8918 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8919
8920 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8921
8922 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8923 of ``current_gdbarch''.
8924
8925 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8926
8927 * armnbsd-nat.c : ANSIfy all function declarations.
8928 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8929 (fetch_inferior_registers): Re-implement in terms of above.
8930 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8931 (store_inferior_registers): Re-implement in terms of above.
8932
8933 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8934
8935 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8936 kernel.
8937 * arm-linux-tdep.c: Likewise.
8938 * config/arm/tm-linux.h: Likewise.
8939
8940 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8941
8942 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8943 * config/arm/nbsd.mt (TM_FILE): Delete.
8944 * config/arm/tm-nbsd.h: Delete.
8945
8946 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8947
8948 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8949 Initialize CALL_DUMMY_LENGTH.
8950
8951 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8952
8953 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8954 function.
8955 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8956 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8957 defines one thing and that is incorrect for this port.
8958 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8959
8960 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8961
8962 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8963
8964 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8965
8966 * win32-nat.c (display_selector): New function. Displays information
8967 about the information returned by GetThreadSelectorEntry API function.
8968 (display_selectors): New function. Displays the infomation of
8969 the selector given as argument, or of CS, DS ans FS selectors
8970 if no argument is given.
8971 ( _initialize_inftarg): Add "w32" as info prefix command.
8972 Add "info w32 selector" as command calling display_selectors.
8973
8974 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8975
8976 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8977 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8978 if not defined.
8979
8980 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8981
8982 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8983
8984 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8985
8986 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8987 (arm_fix_call_dummy): Call it.
8988 (arm_call_dummy_breakpoint_offset): Delete.
8989 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8990 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8991
8992 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8993
8994 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8995 Default to func_frame_chain_valid.
8996 * gdbarch.h, gdbarch.c: Re-generate.
8997 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8998
8999 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9000
9001 * ppc-linux-nat.c: Update copyright.
9002 (fetch_register, store_register): Add tid parameter, don't compute
9003 tid here.
9004 (fetch_ppc_registers, store_ppc_registers): Add tid
9005 parameter. Pass it along to callees.
9006 (fetch_inferior_registers, store_inferior_registers): Compute tid
9007 here, and pass it to calleed functions.
9008 (fill_gregset, supply_fpregset): Clean up formatting.
9009
9010 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9011
9012 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9013 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9014
9015 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9016
9017 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9018 * gdbarch.c gdbarch.h: Regenerate.
9019 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9020 function.
9021 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9022 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9023 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9024
9025 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9026 * arm-tdep.c (arm_get_longjmp_target): New function.
9027 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9028 this to a positive value register arm_get_longjmp_target as the
9029 longjmp handler.
9030 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9031 (arm_linux_init_abi): Set up longjmp description in tdep.
9032 * armnbsd-nat.c (get_longjmp_target): Delete.
9033 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9034 description in tdep.
9035 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9036 (get_longjmp_target): Delete declaration.
9037 (GET_LONGJMP_TARGET): Delete.
9038 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9039 (GET_LONGJMP_TARGET): Delete.
9040
9041 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9042
9043 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9044 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9045 of ``current_gdbarch''.
9046
9047 2002-02-17 Tom Tromey <tromey@redhat.com>
9048
9049 * cli/cli-cmds.c (compare_strings): New function.
9050 (complete_command): Only print each unique item once.
9051 * completer.h (complete_line): Declare.
9052 * completer.c (complete_line): New function.
9053 (line_completion_function): Use it.
9054
9055 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9056
9057 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9058 * gdbarch.h, gdbarch.c: Re-generate.
9059
9060 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9061
9062 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9063
9064 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9065
9066 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9067 * valops.c (value_arg_coerce): Don't take the address of a reference
9068 to convert an argument to a reference.
9069
9070 2002-02-15 Christopher Faylor <cgf@redhat.com>
9071
9072 * win32-nat.c (get_image_name): New function.
9073 (handle_load_dll): Use get_image_name function.
9074 (get_child_debug_event): Avoid registering debug events until possibly
9075 execed process is started.
9076 (child_create_inferior): Allow invocation via shell so that command
9077 line redirection, etc. works ok.
9078 (_initialize_inftarg): Add new command: "set shell" to control whether
9079 a shell is used to start a process.
9080
9081 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9082
9083 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9084 instead of find_register_by_number.
9085 (cannot_store_register): Likewise.
9086
9087 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9088
9089 * dwarf2read.c: Replace fprintf (stderr, ...) by
9090 fprintf_unfiltered (gdb_stderr, ...).
9091
9092 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9093
9094 * gdbserver/gdbserver.1: Document --attach.
9095
9096 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9097
9098 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9099 descriptions.
9100 * arm-tdep.c (arm_default_arm_le_breakpoint)
9101 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9102 (arm_default_thumb_be_breakpoint): New. Initialize them from
9103 traditional breakpoint defines.
9104 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9105 (arm_gdbarch_init): Initialize new breakpoint variables.
9106 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9107 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9108 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9109 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9110 code out to ...
9111 (arm_netbsd_init_abi_common): ... here; new function.
9112 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9113 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9114 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9115 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9116
9117 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9118
9119 * arm-tdep.h (enum arm_abi): New enum.
9120 (struct gdbarch_tdep): New structure.
9121 (LOWEST_PC): Provide a default.
9122 (arm_gdbarch_register_os_abi): Declare new function.
9123 * arm-tdep.c (arm_abi_names): New array.
9124 (process_note_abi_tag_sections): New function.
9125 (get_elfosabi): New function.
9126 (arm_gdbarch_register_os_abi): New function.
9127 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9128 support for that ABI has been built in, then call the appropriate
9129 configuration routine. Use gdbarch_num_regs() to get the number
9130 of registers.
9131 (arm_dump_tdep): New function.
9132 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9133 place-holder functions.
9134 (_initialize_arm_tdep): Register them.
9135 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9136
9137 * armnbsd-tdep.c: New file.
9138 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9139 * config/arm/nbsd.mt (TDEPFILES): Add it.
9140 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9141
9142 * armnbsd-nat.c: Include regcache.h.
9143 * Makefile.in (armnbsd-nat.o): Update dependency list.
9144
9145 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9146
9147 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * gdbserver/Makefile.in: Fix typos in target rules.
9150
9151 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9152
9153 Fix part of PR gdb/267.
9154 * linespec.c (find_methods): Handle constructors specially for now.
9155
9156 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9157
9158 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9159 handling.
9160 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9161 standard_coerce_float_to_double().
9162
9163 2002-02-14 Christopher Faylor <cgf@redhat.com>
9164
9165 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9166 GDBINIT_FILENAME.
9167
9168 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9169
9170 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9171 find_variant_by_name, because it confuses the multiarch
9172 framework. Return NULL if there isn't an architecture with the
9173 user supplied name, instead of forcing a different one without
9174 recording the change with the multiarch machinery.
9175 (find_variant_by_name): Delete.
9176
9177 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9178
9179 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9180 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9181
9182 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9183
9184 * stack.c (print_frame_info_base): When calling
9185 print_frame_info_listing_hook, set current_source_symtab.
9186
9187 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9190 and remove unused $(INCLUDE_DIR).
9191 Add regcache.c to OBS.
9192 Add generated register protocol files to clean target.
9193 Update dependencies for new objects, obsolete old target code.
9194
9195 * gdbserver/linux-low.c: Remove all platform-specific code to
9196 new files. Remove various dead code. Update to use regcache
9197 functionality.
9198 * gdbserver/remote-utils.c (fromhex): Add return statement
9199 to quiet warning.
9200 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9201 constant.
9202 (input_interrupt): Add integer parameter to match prototype
9203 of a signal handler.
9204 (outreg): Use register_data ().
9205 (prepare_resume_reply): Use gdbserver_expedite_regs.
9206 * gdbserver/server.c (main): Dynamically allocate own_buf because
9207 PBUFSIZ is no longer constant. Use registers_to_string () and
9208 registers_from_string ().
9209 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9210 for error (), fatal (), and warning (). Update definition of
9211 PBUFSIZ to use regcache functionality. Add include guard.
9212 * gdbserver/utils.c (fatal): Add missing ``const''.
9213 (warning): New function.
9214
9215 * regformats/regdat.sh: Include "regcache.h" in generated files.
9216 Provide init_registers () function.
9217 * regformats/regdef.h: Add prototype for set_register_cache ().
9218 Add include guard.
9219
9220 * gdbserver/linux-arm-low.c: New file.
9221 * gdbserver/linux-i386-low.c: New file.
9222 * gdbserver/linux-ia64-low.c: New file.
9223 * gdbserver/linux-m68k-low.c: New file.
9224 * gdbserver/linux-mips-low.c: New file.
9225 * gdbserver/linux-ppc-low.c: New file.
9226 * gdbserver/linux-sh-low.c: New file.
9227
9228 * gdbserver/regcache.c: New file.
9229 * gdbserver/regcache.h: New file.
9230
9231 * gdbserver/low-linux.c: Removed obsolete file.
9232
9233 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9236 * config/i386/linux.mt: Likewise.
9237 * config/ia64/linux.mt: Likewise.
9238 * config/m68k/linux.mh: Likewise.
9239 * config/powerpc/linux.mh: Likewise.
9240 * config/mips/linux.mt: Likewise.
9241
9242 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9243
9244 * config/i386/i386lynx.mh: Mark gdbserver variables
9245 as (currently) obsolete for this target.
9246 * config/i386/nbsd.mt: Likewise.
9247 * config/i386/nbsdelf.mt: Likewise.
9248 * config/m32r/m32r.mt: Likewise.
9249 * config/m68k/m68klynx.mh: Likewise.
9250 * config/m68k/nbsd.mt: Likewise.
9251 * config/m68k/sun3os4.mh: Likewise.
9252 * config/mips/vr5000.mt: Likewise.
9253 * config/ns32k/nbsd.mt: Likewise.
9254 * config/pa/hppabsd.mh: Likewise.
9255 * config/pa/hppaosf.mh: Likewise.
9256 * config/powerpc/nbsd.mt: Likewise.
9257 * config/rs6000/rs6000lynx.mh: Likewise.
9258 * config/s390/s390.mt: Likewise.
9259 * config/s390/s390x.mt: Likewise.
9260 * config/sparc/sparclynx.mh: Likewise.
9261 * config/sparc/sun4os4.mh: Likewise.
9262 * config/i386/x86-64linux.mt: Likewise.
9263 * config/sparc/linux.mh: Likewise.
9264
9265 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * configure.tgt: Configure gdbserver only for known working
9268 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9269 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9270 SUBDIRS if it is configured. Update comment for ${nativefile}.
9271 * configure: Regenerated.
9272
9273 2002-02-13 Michael Snyder <msnyder@redhat.com>
9274
9275 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9276
9277 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9278 (default_gcore_mach): Just return 0, work around a problem in bfd.
9279 (default_gcore_target): OK to return NULL if exec_bfd is null.
9280 (make_mem_sec): Use a cast, avoid a warning.
9281
9282 * procfs.c (find_memory_regions_callback): Use a cast instead of
9283 calling host_pointer_to_address (which complains if
9284 sizeof (host pointer) != sizeof (target pointer)).
9285 (procfs_make_note_section): Avoid overflow in psargs string.
9286
9287 * procfs.c (procfs_make_note_section): Make the default
9288 implementation return an error.
9289
9290 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9291
9292 * procfs.c (procfs_make_note_section): Provide a default definition
9293 (for alpha-dec-osf4.0f). Fix typos.
9294
9295 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9296
9297 * linux-proc.c: Add include of regcache.h.
9298 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9299
9300 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9301
9302 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9303 * memattr.c (create_mem_region): Disallow useless empty region.
9304 Regions are half-open intervals, so allow [A..B) [B..C) as
9305 non-overlapping.
9306
9307 2002-02-13 Michael Chastain <mec@shout.net>
9308
9309 * defs.h: Kill CONST_PTR.
9310 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9311 * c-lang.c (c_builtin_types): Likewise.
9312 * ch-lang.c (ch_builtin_types): Likewise.
9313 * f-lang.c (f_builtin_types): Likewise.
9314 * language.c (unknown_builtin_types): Likewise.
9315 * m2-lang.c (m2_builtin_types): Likewise.
9316 * p-lang.c (pascal_builtin_types): Likewise.
9317 * scm-lang.c (c_builtin_types): Likewise.
9318
9319 2002-02-13 Keith Seitz <keiths@redhat.com>
9320
9321 * arm-tdep.h (arm_get_next_pc): Add declaration.
9322
9323 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9324
9325 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9326 with other related struct-returning functions.
9327 (arm_extract_struct_value_address): New function.
9328 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9329 initialize float_format, double_format and long_double_format as
9330 appropriate to the endianness of the target.
9331 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9332 (arm_use_struct_convention): Delete declaration.
9333 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9334
9335 2002-02-13 Keith Seitz <keiths@redhat.com>
9336
9337 * defs.h (core_addr_to_string_nz): New function.
9338
9339 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9340
9341 Apply missing bits of 2002-01-15 patch.
9342 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9343 (fill_fpregset): Use i387_fill_fsave.
9344
9345 2002-02-12 Keith Seitz <keiths@redhat.com>
9346
9347 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9348 (core_addr_to_string_nz): New function.
9349
9350 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9351
9352 * arm-linux-nat.c: Really include arm-tdep.h.
9353 * config/arm/tm-linux.h (struct type, struct value): Declare.
9354
9355 2002-02-11 Michael Snyder <msnyder@redhat.com>
9356
9357 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9358 (gcore section): Ifdef for Solaris and Unixware only.
9359 (procfs_do_thread_registers): Unixware needs one lwpstatus
9360 per thread (not one prstatus or pstatus).
9361 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9362 not over all gdb threads. For unixware, call elfcore_write_pstatus
9363 once before iterating over threads.
9364
9365 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * arm-tdep.h: New file.
9368 * arm-tdep.c: Include arm-tdep.h.
9369 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9370 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9371 (arm_print_float_info, arm_register_type, convert_to_extended)
9372 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9373 (arm_extract_return_value, arm_register_name): Make static.
9374 (arm_software_single_step): Similarly. Fix types in declaration.
9375 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9376 (arm_store_return_value, arm_store_struct_return): New functions.
9377 (arm_gdbarch_init): Register the above functions. Also register
9378 call_dummy_start_offset, sizeof_call_dummy_words,
9379 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9380 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9381 max_register_virtual_size, register_size. Set up
9382 prologue_cache.saved_regs here, rather than ...
9383 (_initialize_arm_tdep): ... here.
9384 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9385 declarations.
9386 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9387 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9388 (arm_print_float_info, arm_register_type, convert_to_extended)
9389 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9390 (arm_extract_return_value, arm_register_name): Delete declarations.
9391 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9392 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9393 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9394 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9395 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9396 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9397 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9398 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9399 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9400 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9401 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9402 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9403 interface.
9404 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9405 * remote-rdi.c remote-rdp.c: Likewise.
9406 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9407 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9408 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9409 definition.
9410
9411 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9412 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9413 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9414 from non-ARM_ prefixed definitions.
9415 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9416 all uses of above.
9417 * remote-rdi.c remote-rdp.c: Likewise.
9418 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9419
9420 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9421
9422 * arm-tdep.c (arm_frameless_function_invocation)
9423 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9424 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9425 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9426 (arm_pop_frame, arm_get_next_pc): Make static.
9427 (arm_gdbarch_init): Register above in gdbarch structure.
9428 (arm_read_fp): Renamed from arm_target_read_fp.
9429 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9430 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9431 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9432 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9433 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9434 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9435 (arm_pc_is_thumb_dummy): Delete declarations.
9436 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9437 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9438 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9439 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9440
9441 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * symtab.c (compare_search_syms): New function.
9444 (sort_search_symbols): New function.
9445 (search_symbols): Sort symbols after searching rather than
9446 before.
9447
9448 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9449
9450 * NEWS: Linux -> GNU/Linux.
9451
9452 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9453
9454 * gdbarch.sh: For for level one methods, disallow a definition
9455 when partially multi-arched. Add comments explaining rationale.
9456 * gdbarch.h: Re-generate.
9457
9458 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9459
9460 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9461 multi-arch partial.
9462
9463 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9464
9465 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9466 field. Use diff -u.
9467 * gdbarch.c: Re-generate.
9468
9469 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9470
9471 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9472 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9473 partial.
9474
9475 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9476
9477 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9478 multi-arch partial.
9479 (PUSH_ARGUMENTS): Switch to using predefault.
9480 * gdbarch.c: Regenerate.
9481
9482 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9483
9484 * valops.c (PUSH_ARGUMENTS): Delete definition.
9485 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9486 partial. Default to default_push_arguments.
9487 * gdbarch.h, gdbarch.c: Regenerate.
9488
9489 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9490
9491 * defs.h (throw_exception): Rename return_to_top_level. Update
9492 comments.
9493 * utils.c (error_stream, internal_verror, quit): Ditto.
9494 * top.c (throw_exception, catcher): Ditto.
9495 * sparclet-rom.c (sparclet_load): Ditto.
9496 * remote.c (interrupt_query, minitelnet): Ditto.
9497 * remote-sds.c (interrupt_query): Ditto.
9498 * remote-mips.c (mips_error, mips_kill): Ditto.
9499 * ocd.c (interrupt_query): Ditto.
9500 * monitor.c (monitor_interrupt_query): Ditto.
9501 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9502 * target.h: Update comment.
9503
9504 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9505
9506 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9507
9508 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9509 default_double_format.
9510 * gdbarch.h, gdbarch.c: Re-generate.
9511 * findvar.c (floatformat_unknown): Delete variable definition.
9512 * doublest.h (floatformat_unknown): Delete variable declaration.
9513
9514 2002-02-09 Jim Blandy <jimb@redhat.com>
9515
9516 * stabsread.c (read_type): Add code to parse Sun's syntax for
9517 prototyped function types.
9518
9519 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9520
9521 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9522 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9523
9524 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9525
9526 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9527 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9528 now _initialize_xcoffsolib gets called again and overrides the
9529 commands from solib.c in a native configuration.
9530
9531 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9532
9533 * doublest.c (store_typed_floating): Don't try to return a value.
9534 Fixes PR gdb/290.
9535
9536 2002-02-08 Jim Blandy <jimb@redhat.com>
9537
9538 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9539 is prototyped and has no arguments, print its argument list as
9540 `(void)'.
9541
9542 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9543
9544 * MAINTAINERS (write-after-approval): Add myself.
9545 (paper-trail): I've escaped!
9546
9547 2002-02-08 Christopher Faylor <cgf@redhat.com>
9548
9549 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9550 changes.
9551 (_initialize_check_for_gdb_ini): Ditto.
9552
9553 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9554
9555 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9556 xaprintf -> xasprintf.
9557
9558 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9559
9560 * win32-nat.c: Remove use of printf and sprintf functions.
9561
9562 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9563
9564 * arm-tdep.c (arm_frame_chain_valid): Make static.
9565 (arm_push_arguments): Likewise.
9566 (arm_gdbarch_init): New function.
9567 (_initialize_arm_tdep): Call it.
9568 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9569 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9570 (FRAME_CHAIN_VALID): Delete.
9571 (arm_frame_chain_valid): Delete declaration.
9572 (PUSH_ARGUMENTS): Delete.
9573 (arm_push_arguments): Delete declaration.
9574 (CALL_DUMMY_P): Delete.
9575
9576 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9577 Corinna Vinschen <vinschen@redhat.com>
9578
9579 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9580 on builtin float types.
9581
9582 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * utils.c: Include <curses.h> before "bfd.h".
9585 * tui/tui-hooks.c: Likewise.
9586 * tui/tui.c: Likewise.
9587 * tui/tuiCommand.c: Likewise.
9588 * tui/tuiData.c: Likewise.
9589 * tui/tuiDataWin.c: Likewise.
9590 * tui/tuiDisassem.c: Likewise.
9591 * tui/tuiGeneralWin.c: Likewise.
9592 * tui/tuiIO.c: Likewise.
9593 * tui/tuiLayout.c: Likewise.
9594 * tui/tuiRegs.c: Likewise.
9595 * tui/tuiSource.c: Likewise.
9596 * tui/tuiSourceWin.c: Likewise.
9597 * tui/tuiStack.c: Likewise.
9598 * tui/tuiWin.c: Likewise.
9599
9600 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9601
9602 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9603 to include space for pseudoregs as well. Update loops accordingly.
9604 (sh_fp_frame_init_saved_regs): Ditto.
9605 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9606
9607 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9608
9609 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9610 Add Richard Earnshaw to Arm maintainers.
9611
9612 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9613
9614 * defs.h (warning_begin): Delete declaration.
9615
9616 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9617 Delete macro.
9618
9619 2002-02-07 Michael Snyder <msnyder@redhat.com>
9620
9621 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9622 Logic bug, remove misplaced else.
9623
9624 2002-02-07 Klee Dienes <klee@apple.com>
9625
9626 * fork-inferior.c (fork_inferior): Add '!' to the list of
9627 characters that need to be quoted when building a string for the
9628 shell. Quote '!' specifically with a backslash, since CSH chokes
9629 when trying to evaluate "str!str".
9630
9631 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9632
9633 * rdi-share/host.h: Only provide a typedef for bool if it is not
9634 defined.
9635
9636 2002-02-04 Michael Snyder <msnyder@redhat.com>
9637
9638 * breakpoint.h (enum bptype): Add new overlay event bp type.
9639 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9640
9641 * breakpoint.c (create_internal_breakpoint): New function.
9642 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9643 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9644 (create_thread_event_breakpoint): Ditto.
9645 (create_solib_event_breakpoint): Ditto.
9646 (create_overlay_event_breakpoint): New function.
9647 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9648 (update_breakpoints_after_exec): Delete and re-initialize
9649 overlay event breakpoints after an exec. Add FIXME comment
9650 about longjmp breakpoint.
9651 (print_it_typical): Ignore overlay event breakpoints.
9652 (print_one_breakpoint): Ditto.
9653 (mention): Ditto.
9654 (bpstat_what): Do not stop for overlay event breakpoints.
9655 (delete_breakpoint): Don't delete overlay event breakpoints.
9656 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9657 (breakpoint_re_set): Re-create overlay event breakpoint.
9658
9659 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9660 (overlay_manual_command): Disable overlay breakpoints.
9661 (overlay_off_command): Disable overlay breakpoints.
9662
9663 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9664
9665 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9666 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9667 to here from config/tm-arm.h.
9668 (coff_sym_is_thumb): Make static.
9669 (arm_elf_make_msymbol_special): New function.
9670 (arm_coff_make_msymbol_special): New function.
9671 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9672 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9673 (coff_sym_is_thumb): Delete declaration.
9674 (arm_elf_make_msymbol_special): Declare.
9675 (arm_coff_make_msymbol_special): Declare.
9676 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9677 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9678
9679 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9680
9681 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9682
9683 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9684
9685 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9686 * gdbarch.c gdbarch.h: Regenerate.
9687 * arch-utils.c (default_print_float_info): New function.
9688 * arch-utils.h (default_print_float_info): Prototype it.
9689 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9690 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9691 (PRINT_FLOAT_INFO): Document it.
9692
9693 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9694 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9695 (PRINT_FLOAT_INFO): Define.
9696
9697 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9698
9699 * win32-nat.c (_initialize_check_for_gdb_ini):
9700 Add typecast to sprintf argument to suppress a warning.
9701
9702 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9703
9704 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9705 to allow easier handling of pass state.
9706 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9707 that gives exception name and address.
9708 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9709 and set last_sig value to ourstatus->value.sig. Some missing
9710 exceptions added.
9711 (child_continue): Correctly report continue_status.
9712 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9713 TARGET_SIGNAL_0 (new default value).
9714 (child_resume): consider sig argument passed to decide if
9715 the exception should be passed to debuggee or not.
9716
9717 2002-02-05 Michael Snyder <msnyder@redhat.com>
9718
9719 * regcache.c (fetch_register): Call target_fetch_register
9720 only if we don't call FETCH_PSEUDO_REGISTER.
9721 (store_register): Call target_store_register only if we
9722 don't call STORE_PSEUDO_REGISTER.
9723
9724 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9725
9726 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9727 ELF_MAKE_MSYMBOL_SPECIAL.
9728 * gdbarch.c, gdbarch.h: Regenerate.
9729 * arch-utils.c (default_make_msymbol_special): New function.
9730 * arch-utils.h (default_make_msymbol_special): Export.
9731 * elfread.c (elf_symtab_read): Compile use of
9732 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9733 multiarched.
9734 * coffread.c (coff_symtab_read): Ditto, for
9735 COFF_MAKE_MSYMBOL_SPECIAL.
9736
9737 2002-02-05 Jim Blandy <jimb@redhat.com>
9738
9739 * solib-svr4.c (svr4_truncate_ptr): New function.
9740 (svr4_relocate_section_addresses): Do the address arithmetic with
9741 the appropriate truncation for target addresses, even when
9742 CORE_ADDR is larger than a target address.
9743
9744 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9745
9746 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9747 to (int *).
9748
9749 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9752 code.
9753
9754 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9757
9758 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * gdbserver/linux-low.c: Remove unused include files.
9761
9762 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9765 (read_inferior_memory): Use it.
9766 (write_inferior_memory): Likewise.
9767
9768 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9769
9770 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9771 grubbing through sys_errlist.
9772
9773 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9776
9777 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9778 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9779
9780 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9781
9782 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9783 (do_sfunc, set_cmd_sfunc): New functions.
9784
9785 * command.h (struct cmd_list_element): Add field func.
9786 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9787 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9788 * cli/cli-decode.h: Ditto.
9789
9790 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9791 (help_all, help_cmd_list): Ditto.
9792 (find_cmd, complete_on_cmdlist): Ditto.
9793 * top.c (execute_command): Ditto.
9794
9795 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9796 function.sfunc.
9797
9798 * infcmd.c (notice_args_read): Fix function signature.
9799
9800 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9801 * cli/cli-decode.c (add_set_cmd): Ditto.
9802 * utils.c (initialize_utils): Ditto.
9803 * maint.c (_initialize_maint_cmds): Ditto.
9804 * infrun.c (_initialize_infrun): Ditto.
9805 * demangle.c (_initialize_demangler): Ditto.
9806 * remote.c (add_packet_config_cmd): Ditto.
9807 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9808 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9809 * proc-api.c (_initialize_proc_api): Ditto.
9810 * kod.c (_initialize_kod): Ditto.
9811 * valprint.c (_initialize_valprint): Ditto.
9812 * top.c (init_main): Ditto.
9813 * infcmd.c (_initialize_infcmd): Ditto.
9814 * corefile.c (_initialize_core): Ditto.
9815 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9816 * arch-utils.c (initialize_current_architecture): Ditto.
9817 (_initialize_gdbarch_utils): Ditto.
9818 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9819
9820 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9821 * wince.c (_initialize_inftarg): Ditto.
9822 * symfile.c (_initialize_symfile): Ditto.
9823 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9824 * language.c (_initialize_language): Ditto.
9825 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9826
9827 2002-02-04 Michael Snyder <msnyder@redhat.com>
9828
9829 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9830
9831 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9834 Add rules for building the register data files.
9835
9836 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9837
9838 * regformats/regdat.sh: Add braces to the definition of
9839 expedite_regs_${arch}.
9840
9841 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9842
9843 * regformats/regdef.h (struct reg): Add comment describing the
9844 requirements for offset and size fields.
9845
9846 2002-02-04 Andreas Schwab <schwab@suse.de>
9847
9848 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9849 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9850
9851 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9852
9853 * gdbarch.sh (copyright): Update years in generated header.
9854 (SMASH_TEXT_ADDRESS): Add rule.
9855 * gdbarch.h, gdbarch.c: Re-generate.
9856 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9857 * dbxread.c: Likewise.
9858 * dwarfread.c: Likewise.
9859 * elfread.c: Likewise.
9860 * somread.c: Likewise.
9861
9862 * arm-tdep.c (arm_smash_text_address): New function.
9863 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9864
9865 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9866
9867 Add support for hardware watchpoints on win32 native.
9868 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9869 CONTEXT_DEBUG_REGISTERS.
9870 (dr variable): New variable. Static array containing a local copy
9871 of debug registers.
9872 (debug_registers_changed): New variable. Reflects when debug registers
9873 are changed and need to be written to inferior.
9874 (debug_registers_used): New variable. Reflects when any debug register
9875 was set, used when new threads are created.
9876 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9877 i386-nat code.
9878 (thread_rec): Set dr array if id is the thread of current_event .
9879 (child_continue, child_resume): Change the debug registers for all
9880 threads if debug_registers_changed.
9881 (child_add_thread): Change the debug registers if debug_registers_used.
9882 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9883 Link nm.h to new nm-cygwin.h file.
9884 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9885 of hardware registers.
9886
9887 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9888
9889 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9890 Restore behavour broken by 2002-01-20 Andrew Cagney
9891 <ac131313@redhat.com> IEEE_FLOAT removal.
9892
9893 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9894
9895 * c-valprint.c (c_val_print): Pass a proper valaddr to
9896 cp_print_class_method.
9897 * valops.c (search_struct_method): If there is only one method
9898 and args is NULL, return that method.
9899
9900 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9901
9902 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9903 accessing tag_name directly.
9904
9905 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9906
9907 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9908 of accessing tag_name directly.
9909
9910 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9911
9912 PR gdb/280
9913 * gdbtypes.c (replace_type): New function.
9914 * gdbtypes.h (replace_type): Add prototype.
9915 * stabsread.c (read_type): Use replace_type.
9916
9917 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9918
9919 * Makefile.in (memattr.o): Add missing dependencies rule.
9920
9921 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9922
9923 * breakpoint.c (break_at_finish_command): Really export.
9924 (break_at_finish_at_depth_command): Ditto.
9925 (tbreak_at_finish_command): Ditto.
9926 * hppa-tdep.c: Include completer.h.
9927 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9928 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9929
9930 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9931
9932 * utils.c (do_write): New function.
9933 (error_stream): Rewrite combining the code from error_begin and
9934 verror.
9935 (verror): Rewrite using error_stream.
9936 (error_begin): Delete function.
9937
9938 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9939
9940 * utils.c (error_begin): Make static.
9941 * defs.h (error_begin): Delete declaration.
9942
9943 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9944 (decode_line_1): Use cplusplus_error instead of error_begin,
9945 cplusplus_hint and return_to_top_level.
9946 * coffread.c (coff_symfile_read): Use error instead of error_begin
9947 and return_to_top_level.
9948 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9949
9950 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9951
9952 * language.h (type_error, range_error): Make string parameter
9953 constant.
9954 * language.c (warning_pre_print): Delete extern declaration.
9955 * dwarfread.c (warning_pre_print): Ditto.
9956 * language.c (type_error, range_error): Rewrite to use verror and
9957 vwarning instead of warning_begin.
9958
9959 2002-02-01 Michael Snyder <msnyder@redhat.com>
9960
9961 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9962 (set_ignore_count): Move misplaced comment back where it belongs.
9963
9964 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9965
9966 * command.h (NO_FUNCTION): Delete macro.
9967 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9968 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9969 * tracepoint.c (_initialize_tracepoint): Ditto.
9970 * cli/cli-decode.c (add_set_cmd): Ditto.
9971 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9972
9973 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9976 Update ``this'' pointer when calling virtual functions.
9977
9978 2002-02-01 Michael Snyder <msnyder@redhat.com>
9979
9980 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9981 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9982
9983 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9984
9985 * regformats/reg-arm.dat: New file.
9986 * regformats/reg-i386.dat: New file.
9987 * regformats/reg-ia64.dat: New file.
9988 * regformats/reg-m68k.dat: New file.
9989 * regformats/reg-mips.dat: New file.
9990 * regformats/reg-ppc.dat: New file.
9991 * regformats/reg-sh.dat: New file.
9992 * regformats/regdef.h: New file.
9993 * regformats/regdat.sh: New file.
9994
9995 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9996
9997 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9998 (arm_frame_args_address, arm_frame_locals_address): New functions.
9999 (arm_frame_num_args): New function.
10000 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10001 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10002 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10003
10004 2002-01-31 Michael Snyder <msnyder@redhat.com>
10005
10006 * breakpoint.c (break_at_finish_command): Export.
10007 (break_at_finish_at_depth_command): Export.
10008 (tbreak_at_finish_command): Export.
10009 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10010 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10011 "tbreak" commands, which are HPPA specific.
10012
10013 * printcmd.c (disassemble_command): Remove an ancient
10014 artifact of an old merge.
10015
10016 * symfile.h (enum overlay_debugging_state):
10017 Define enum constant values for overlay mode.
10018 * symfile.c (overlay_debugging): Use enums instead of literals.
10019 (overlay_is_mapped, overlay_auto_command,
10020 overlay_manual_command): Ditto.
10021
10022 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10023 breakpoint_here_p, breakpoint_inserted_here_p,
10024 breakpoint_thread_match, bpstat_stop_status,
10025 describe_other_breakpoints, check_duplicates, clear_command):
10026 Coding standard fixes.
10027
10028 * target.c (target_xfer_memory): Add spaces, coding standard.
10029 (do_xfer_memory): Add missing line to trust-readonly
10030 code: check bfd SEC_READONLY flag for section.
10031
10032 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10033
10034 * PROBLEMS: Fix typo, 5.1->5.1.1.
10035
10036 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10037
10038 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10039 data symbols, since we search based on textlow and texthigh.
10040 (find_pc_sect_symtab): Likewise.
10041
10042 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10043
10044 * defs.h (vwarning): Declare.
10045 * utils.c (vwarning): New function.
10046 (warning): Call vwarning.
10047 (warning_begin): Delete function.
10048
10049 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10050 the warning message.
10051 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10052 warning_begin.
10053
10054 2002-01-30 Michael Snyder <msnyder@redhat.com>
10055
10056 * NEWS: Mention "set trust-readonly-sections" command.
10057 Mention generate-core-file command.
10058
10059 2002-01-15 Michael Snyder <msnyder@redhat.com>
10060
10061 * target.c: New command, "set trust-readonly-sections on".
10062 (do_xfer_memory): Honor the suggestion to trust readonly sections
10063 by reading them from the object file instead of from the target.
10064 (initialize_targets): Register command "set trust-readonly-sections".
10065
10066 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10067
10068 * parse.c (target_map_name_to_register): Simplify, search regs and
10069 pseudo-regs using a single loop.
10070
10071 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10072
10073 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10074
10075 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10076
10077 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10078 * config/i386/i386v42mp.mh: Add i387-nat.o .
10079 * i386v4-nat.c: Include i387-nat.h.
10080 (supply_fpregset): Use i387_supply_fsave.
10081 (fill_fpregset): Use i387_fill_fsave.
10082
10083 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10084
10085 * arm-tdep.c (arm_call_dummy_words): Define.
10086 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10087 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10088 (CALL_DUMMY_WORDS): Define.
10089 (arm_call_dummy_words): Declare.
10090 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10091 (arm_linux_call_dummy_words): Declare.
10092
10093 2002-01-30 Andreas Schwab <schwab@suse.de>
10094
10095 * m68klinux-nat.c: Fix last change to use regcache_collect
10096 instead of referencing registers[] directly.
10097
10098 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10099
10100 * parse.c (target_map_name_to_register): Delete code wrapped in
10101 #ifdef REGISTER_NAME_ALIAS_HOOK.
10102
10103 2002-01-28 Michael Snyder <msnyder@redhat.com>
10104
10105 * regcache.c (legacy_read_register_gen): Need to be able to
10106 read pseudo-register as well as real register.
10107 (legacy_write_register_gen): Ditto.
10108
10109 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10110
10111 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10112 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10113 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10114 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10115 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10116 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10117 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10118 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10119 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10120 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10121 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10122 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10123 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10124 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10125 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10126 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10127 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10128 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10129 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10130 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10131
10132 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10133
10134 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10135 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10136 (initialize_current_architecture): Update target_byte_order using
10137 information from BFD.
10138 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10139 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10140
10141 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10142
10143 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10144 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10145
10146 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10147 #ifdef INVALID_FLOAT.
10148 * infcmd.c (do_registers_info): Ditto.
10149 * values.c (unpack_double): Ditto. Add comment.
10150
10151 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10152 already commented out.
10153
10154 2002-01-26 Andreas Schwab <schwab@suse.de>
10155
10156 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10157 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10158 registers and add support for PTRACE_GETREGS.
10159
10160 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10161
10162 GDB 5.1.1 released from 5.1 branch.
10163 * NEWS: Add 5.1.1 news.
10164 * README: Sync with 5.1 branch.
10165
10166 2002-01-23 Fred Fish <fnf@redhat.com>
10167
10168 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10169 stabstring on initial malloc. Reallocing will copy it for us,
10170 if necessary.
10171
10172 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10173
10174 * Makefile.in (hpread_h): Delete.
10175 (HFILES_NO_SRCDIR): Remove hpread.h.
10176 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10177 (hpread.o): Update dependencies.
10178 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10179
10180 * hp-psymtab-read.c: Remove file.
10181 * hp-symtab-read.c: Remove file.
10182 * hpread.h: Remove file.
10183
10184 * hpread.c: Merge all contents of hp-psymtab-read.c,
10185 hp-symtab-read.c and hpread.h into this file, as it was prior to
10186 January 1999.
10187
10188 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10189 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10190 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10191 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10192
10193 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10194
10195 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10196 fill_gregset): Call gdbarch_tdep() just once, assign result to
10197 variable and use that, instead of calling the function several
10198 times.
10199
10200 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10201
10202 * configure.host: Accept sparcv9 as alias for sparc64.
10203 * configure.tgt: Likewise.
10204
10205 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10206
10207 * solib-aix5.c (build_so_list_from_mapfile)
10208 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10209 arguments is not reversed.
10210 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10211 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10212
10213 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10214
10215 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10216 modified version of obsolete sh_fetch_pseudo_register.
10217 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10218 (sh4_register_read): New function.
10219 (sh_pseudo_register_write): New function. Renamed and modified
10220 version of obsolete sh_store_pseudo_register.
10221 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10222 (sh4_register_write): New function.
10223 (sh_gdbarch_init): Remove setting of gdbarch function
10224 fetch_pseudo_register and store_pseudo_register. Remove setting of
10225 register_convert_to_raw, register_convert_to_virtual,
10226 register_convertible.
10227 (sh_sh4_register_convertible): Delete. No longer needed. All is
10228 taken care by architecture specific functions
10229 register_read/register_write.
10230 (sh_sh4_register_convert_to_virtual): Make static.
10231 (sh_sh4_register_convert_to_raw): Ditto.
10232
10233 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10234
10235 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10236 (floatformat_is_nan, floatformat_mantissa): Ditto.
10237
10238 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10239 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10240 builtin_type_ieee_double_little,
10241 builtin_type_ieee_double_littlebyte_bigword,
10242 builtin_type_m68881_ext, builtin_type_i960_ext,
10243 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10244 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10245 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10246 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10247
10248 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10249
10250 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10251 parameter. Set frameless flag if it exists and depended of
10252 whether the scanned function is frameless or not.
10253 (xstormy16_skip_prologue): If function is frameless, return
10254 result of xstormy16_scan_prologue().
10255 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10256 call.
10257
10258 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10259
10260 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10261 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10262 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10263 sh_sh4_register_byte, sh_sh4_register_raw_size,
10264 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10265 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10266 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10267 sh_store_pseudo_register, sh_do_pseudo_register): Call
10268 gdbarch_tdep() just once, assign result to variable and use that,
10269 instead of calling the function several times.
10270
10271 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10272
10273 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10274 macros instead of LAST_FPU_CTRL_REGNUM.
10275 (store_register): Likewise.
10276
10277 2002-01-21 Jim Blandy <jimb@redhat.com>
10278
10279 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10280 is up-to-date before running the program, not just when a program
10281 exits.
10282
10283 2002-01-21 Fred Fish <fnf@redhat.com>
10284
10285 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10286 when we have found all instructions we are looking for.
10287
10288 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10289
10290 * arm-tdep.c (arm_register_name): New function.
10291 (arm_registers_names): Make static.
10292 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10293 (arm_register_name): Declare.
10294 (REGISTER_NAME): Use it.
10295
10296 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10297 Kevin Buettner <kevinb@redhat.com>
10298
10299 Convert arm targets to new FRAME interface.
10300 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10301 (arm_frame_find_save_regs): Delete.
10302 (arm_frame_init_saved_regs): New.
10303 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10304 Allocate extra_info as required. Convert all uses of fsr.regs
10305 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10306 to use extra_info.
10307 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10308 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10309 (check_prologue_cache, save_prologue_cache): Likewise.
10310 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10311 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10312 (FRAME_FIND_SAVED_REGS): Delete.
10313 (arm_frame_find_saved_regs): Delete prototype.
10314 (arm_frame_init_saved_regs): New prototype.
10315 (FRAME_INIT_SAVED_REGS): Define.
10316
10317 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10318
10319 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10320
10321 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10322
10323 From Jeff Law <law@redhat.com>:
10324 * infttrace.c: Include <sys/pstat.h>.
10325 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10326 exec file if the ttrace equivalent fails.
10327
10328 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10329
10330 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10331 (closeLogFile): Ditto.
10332
10333 2002-01-20 Michael Chastain <mec@shout.net>
10334
10335 * top.c (print_gdb_version): Bump copyright year to 2002.
10336
10337 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10338
10339 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10340 Zannoni and Eli Zaretskii.
10341
10342 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * buildsym.c: Update copyright years.
10345 * c-typeprint.c: Likewise.
10346 * dwarf2read.c: Likewise.
10347 * f-typeprint.c: Likewise.
10348 * gdbtypes.c: Likewise.
10349 * gdbtypes.h: Likewise.
10350 * hp-symtab-read.c: Likewise.
10351 * hpread.c: Likewise.
10352 * mdebugread.c: Likewise.
10353 * p-typeprint.c: Likewise.
10354
10355 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10356
10357 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10358 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10359 byte-order selectable.
10360 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10361 * arch-utils.c: Ditto.
10362 (set_endian): Ditto.
10363 (set_endian_from_file): Ditto.
10364 * gdbserver/low-sim.c (create_inferior): Ditto.
10365 * gdbarch.sh: Ditto.
10366 * gdbarch.h: Re-generate.
10367 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10368 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10369 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10370 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10371 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10372 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10373 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10374 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10375 macro definition.
10376 * config/mips/tm-wince.h: Remove #undef of macro
10377 TARGET_BYTE_ORDER_SELECTABLE.
10378 * config/sh/tm-wince.h: Ditto.
10379
10380 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10383 member function fields. Add accessor macro
10384 TYPE_FN_FIELD_ARTIFICIAL.
10385 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10386 * c-typeprint.c (c_type_print_base): Skip artificial member
10387 functions.
10388
10389 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10390
10391 * f-typeprint.c: Delete unused function f_type_print_args.
10392 * p-typeprint.c: Delete unused function pascal_type_print_args.
10393
10394 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10397 comment. Add ``artificial'' to ``union field_location''.
10398
10399 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10400
10401 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10402 * mdebugread.c (parse_symbol): Likewise.
10403 * stabsread.c (define_symbol): Likewise.
10404 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10405 initializing TYPE_FIELD_BITPOS to n (obsolete).
10406 (hpread_doc_function_type): Likewise.
10407 * hpread.c (hpread_function_type): Likewise.
10408
10409 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10410
10411 * configure.in (host_makefile_frag): Only require a host makefile
10412 fragment when a native build.
10413 * configure: Re-generate.
10414
10415 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10416
10417 * doublest.h (floatformat_from_type): Declare.
10418 * doublest.c (floatformat_from_type): New function.
10419 (convert_typed_floating): Use.
10420
10421 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10422 call to function floatformat_from_type.
10423
10424 * gdbarch.sh (IEEE_FLOAT): Delete.
10425 * gdbarch.h, gdbarch.c: Re-generate.
10426 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10427 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10428 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10429 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10430 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10431 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10432 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10433 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10434 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10435 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10436 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10437 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10438
10439 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10440 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10441 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10442 * sh-tdep.c (sh_gdbarch_init): Ditto.
10443 * mips-tdep.c (mips_gdbarch_init): Ditto.
10444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10445 * cris-tdep.c (cris_gdbarch_init): Ditto.
10446
10447 2002-01-20 Jiri Smid <smid@suse.cz>
10448
10449 * configure.host, configure.tgt: Support x86-64.
10450 * NEWS: Note new target x86-64.
10451
10452 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10453 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10454 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10455 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10456 x86-64-linux-nat.o): Fix dependencies.
10457
10458 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10459
10460 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10461 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10462 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10463 * config/sparc/xm-sun4os4.h: Delete file.
10464 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10465
10466 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10467
10468 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10469 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10470 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10471 * config/i386/i386lynx.mh (XM_FILE): Delete.
10472 * config/rs6000/xm-rs6000ly.h: Delete file.
10473 * config/sparc/xm-sparclynx.h: Delete file.
10474 * config/m68k/xm-m68klynx.h: Delete file.
10475 * config/i386/xm-i386lynx.h: Delete file.
10476 * config/xm-lynx.h: Delete file.
10477 * config/djgpp/fnchange.lst: Update.
10478
10479 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10480
10481 * alpha-tdep.c (alpha_register_byte): New function.
10482 (alpha_register_raw_size): Ditto.
10483 (alpha_register_virtual_size): Ditto.
10484 (alpha_skip_prologue_internal): Renamed from
10485 alpha_skip_prologue.
10486 (alpha_skip_prologue): New version that calls
10487 alpha_skip_prologue_internal.
10488 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10489 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10490 second argument from alpha_skip_prologue.
10491 (REGISTER_BYTE): Use alpha_register_byte.
10492 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10493 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10494 (FRAMELESS_FUNCTION_INVOCATION): Use
10495 generic_frameless_function_invocation_not.
10496 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10497 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10498
10499 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10500
10501 * config/mips/xm-news-mips.h: Delete file.
10502 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10503
10504 * config/m88k/xm-m88k.h: Delete file.
10505 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10506 * config/m88k/xm-delta88v4.h: Ditto.
10507 * config/m88k/xm-delta88.h: Ditto.
10508
10509 * config/alpha/xm-fbsd.h: Delete file.
10510 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10511
10512 * config/sparc/xm-sparc.h: Delete file.
10513 * Makefile.in (xm-sun4os4.h): Delete dependency.
10514 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10515 * config/sparc/xm-sun4os4.h: Ditto.
10516 * config/sparc/xm-linux.h: Ditto.
10517
10518 * config/i386/xm-windows.h: Delete file.
10519
10520 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10521
10522 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10523 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10524
10525 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10526
10527 * alpha-tdep.c (alpha_call_dummy_words): New.
10528 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10529 (CALL_DUMMY_P): Define.
10530 (CALL_DUMMY_WORDS): Define.
10531 (SIZEOF_CALL_DUMMY_WORDS): Define.
10532
10533 2002-01-19 Per Bothner <per@bothner.com>
10534
10535 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10536 isn't NULL, which can happen with some gcj-3.x-produced code.
10537
10538 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10539
10540 * alpha-tdep.c (alpha_register_virtual_type): New function.
10541 (alpha_init_frame_pc_first): Ditto.
10542 (alpha_fix_call_dummy): Ditto.
10543 (alpha_store_struct_return): Ditto.
10544 (alpha_extract_struct_value_address): Ditto.
10545 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10546 alpha_register_virtual_type.
10547 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10548 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10549 alpha_extract_struct_value_address.
10550 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10551 (INIT_FRAME_PC): Use init_frame_pc_noop.
10552 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10553
10554 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10555
10556 * i386gnu-nat.c: Include "i386-tdep.h".
10557 (fetch_fpregs): Simplify code dealing with uninitialized floating
10558 point states such that it doesn't require FP7_REGNUM.
10559
10560 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10561
10562 * alpha-tdep.c (frame_extra_info): New.
10563 (alpha_find_saved_regs): Make static. Use
10564 frame->extra_info.
10565 (alpha_frame_init_saved_regs): New function.
10566 (alpha_frame_saved_pc): Use frame->extra_info.
10567 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10568 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10569 (init_extra_frame_info): Rename to...
10570 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10571 (alpha_print_extra_frame_info): New function.
10572 (alpha_frame_locals_address): Ditto.
10573 (alpha_frame_args_address): Ditto.
10574 (alpha_pop_frame): Use frame->extra_info.
10575 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10576 alpha_frame_args_address.
10577 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10578 (alpha_find_saved_regs): Remove prototype.
10579 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10580 (EXTRA_FRAME_INFO): Remove.
10581 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10582 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10583
10584 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10585
10586 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10587 (alpha_cannot_fetch_register): Ditto.
10588 (alpha_cannot_store_register): Ditto.
10589 (alpha_register_convertible): Ditto.
10590 (alpha_use_struct_convention): Ditto.
10591 * config/alpha/tm-alpha.h: Update copyright years.
10592 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10593 (INNER_THAN): Use core_addr_lessthan.
10594 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10595 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10596 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10597 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10598 (FRAME_CHAIN): Remove unnecessary cast.
10599
10600 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10601
10602 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10603 obsolete.
10604
10605 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10606
10607 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10608 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10609 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10610 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10611 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10612 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10613 * x86-64-linux-nat.c: Ditto.
10614
10615 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10616
10617 * alpha-tdep.c (alpha_register_name): New function.
10618 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10619 (REGISTER_NAME): Define.
10620
10621 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10622
10623 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10624
10625 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10626
10627 * alpha-tdep.c: Update copyright years.
10628 (alpha_next_pc): New function.
10629 (alpha_software_single_step): Ditto.
10630 * config/alpha/tm-alpha.h: Add prototype for
10631 alpha_software_single_step.
10632
10633 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10634
10635 * alphabsd-nat.c: Update copyright years.
10636 (fill_gregset): Use regcache_collect.
10637 (fill_fpregset): Likewise.
10638 (fetch_inferior_registers): Only fetch integer registers
10639 if requested to do so.
10640 (store_inferior_registers): Only store integer registers
10641 if requested to do so.
10642
10643 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10644
10645 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10646 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10647 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10648 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10649 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10650 * config/arm/linux.mh (XDEPFILES): Delete.
10651 * config/arm/nbsd.mh (XDEPFILES): Delete.
10652 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10653 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10654 * config/i386/i386m3.mh (XDEPFILES): Delete.
10655 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10656 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10657 * config/i386/fbsd.mh (XDEPFILES): Delete.
10658 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10659 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10660 * config/i386/i386v4.mh (XDEPFILES): Delete.
10661 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10662 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10663 * config/i386/i386aix.mh (XDEPFILES): Delete.
10664 * config/i386/go32.mh (XDEPFILES): Delete.
10665 * config/i386/cygwin.mh (XDEPFILES): Delete.
10666 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10667 * config/i386/i386mach.mh (XDEPFILES): Delete.
10668 * config/i386/i386v32.mh (XDEPFILES): Delete.
10669 * config/i386/linux.mh (XDEPFILES): Delete.
10670 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10671 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10672 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10673 * config/i386/i386sco.mh (XDEPFILES): Delete.
10674 * config/i386/i386v.mh (XDEPFILES): Delete.
10675 * config/i386/nbsd.mh (XDEPFILES): Delete.
10676 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10677 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10678 * config/i386/symmetry.mh (XDEPFILES): Delete.
10679 * config/i386/obsd.mh (XDEPFILES): Delete.
10680 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10681 * config/ia64/linux.mh (XDEPFILES): Delete.
10682 * config/ia64/aix.mh (XDEPFILES): Delete.
10683 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10684 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10685 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10686 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10687 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10688 * config/m68k/linux.mh (XDEPFILES): Delete.
10689 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10690 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10691 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10692 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10693 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10694 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10695 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10696 * config/m88k/delta88.mh (XDEPFILES): Delete.
10697 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10698 * config/m88k/m88k.mh (XDEPFILES): Delete.
10699 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10700 * config/mips/linux.mh (XDEPFILES): Delete.
10701 * config/mips/irix6.mh (XDEPFILES): Delete.
10702 * config/mips/irix5.mh (XDEPFILES): Delete.
10703 * config/mips/irix4.mh (XDEPFILES): Delete.
10704 * config/mips/irix3.mh (XDEPFILES): Delete.
10705 * config/mips/decstation.mh (XDEPFILES): Delete.
10706 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10707 (NATDEPFILES): Move core-aout.o to here.
10708 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10709 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10710 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10711 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10712 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10713 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10714 * config/pa/hpux11.mh (XDEPFILES): Delete.
10715 * config/powerpc/aix.mh (XDEPFILES): Delete.
10716 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10717 * config/powerpc/linux.mh (XDEPFILES): Delete.
10718 * config/romp/rtbsd.mh: Rename XDEPFILES.
10719 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10720 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10721 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10722 * config/s390/s390.mh (XDEPFILES): Delete.
10723 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10724 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10725 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10726 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10727 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10728 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10729 * config/sparc/linux.mh (XDEPFILES): Delete.
10730 * config/vax/vaxult.mh (XDEPFILES): Delete.
10731 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10732 * Makefile.in (DEPFILES): Remove XDEPFILES.
10733
10734 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10735
10736 * utils.c (internal_verror): Fix comments, default is yes not no.
10737 Update queries to match. Default to quit and dump core.
10738
10739 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10740
10741 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10742 copyright.
10743 * defs.h, event-top.c, gdbcmd.h: Ditto.
10744 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10745 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10746 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10747 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10748 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10749 * mi/mi-main.c:Ditto.
10750
10751 * stack.c, symfile.c: Update copyright.
10752
10753 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10754
10755 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10756 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10757 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10758 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10759
10760 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10761
10762 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10763 * gdbserver/low-lynx.c (myattach): Likewise.
10764 * gdbserver/low-nbsd.c (myattach): Likewise.
10765 * gdbserver/low-sim.c (myattach): Likewise.
10766 * gdbserver/low-sparc.c (myattach): Likewise.
10767 * gdbserver/low-sun3.c (myattach): Likewise.
10768
10769 * gdbserver/low-linux.c (myattach): New function.
10770
10771 * gdbserver/server.c (attach_inferior): New function.
10772 (main): Handle "--attach".
10773
10774 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10775
10776 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10777 maintainer.
10778
10779 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10780
10781 * c-typeprint.c (is_type_conversion_operator): Add additional
10782 check for non-conversion operators.
10783
10784 2002-01-15 Michael Snyder <msnyder@redhat.com>
10785
10786 * linux-proc.c: Add "info proc" command, a la procfs.c.
10787 (read_mapping): New function, abstract and re-use code.
10788 (linux_find_memory_regions): Use new func read_mapping.
10789 (linux_info_proc_cmd): New function, implement "info proc".
10790 (_initialize_linux_proc): Add new command "info proc".
10791
10792 2002-01-15 Michael Snyder <msnyder@redhat.com>
10793
10794 * symfile.c (generic_load): Use bfd_map_over_sections method
10795 instead of manipulating bfd structure members directly.
10796 (add_section_size_callback): New function, bfd sections callback
10797 used by generic_load.
10798 (load_sections_callback): New function, bfd sections callback
10799 used by generic_load.
10800
10801 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10802
10803 [Based on work by Jim Blandy]
10804 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10805 (builtin_type_vec128): Export.
10806 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10807 types.
10808 (builtin_type_vec128): New builtin type for 128 bit vector
10809 registers.
10810 (build_gdbtypes): Initialize builtin_type_v16qi and
10811 builtin_type_v8hi. Create the vec128 register builtin type
10812 structure.
10813 (build_builtin_type_vec128): New function.
10814 (_initialize_gdbtypes): Register builtin_type_v16qi and
10815 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10816 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10817 AltiVec register to new builtin type.
10818
10819 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10820
10821 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10822 to make_cv_type.
10823
10824 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10825
10826 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10827 CLEAN_UP_REGISTER_VALUE.
10828 * regcache.c (supply_register): Update only call.
10829
10830 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10831
10832 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10833 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10834 a29k-*-vxworks* targets as obsolete.
10835
10836 2002-01-14 Michael Snyder <msnyder@redhat.com>
10837
10838 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10839 until we can resolve portability issues.
10840 * gregset.h: Remove references to fpxregs.
10841 * gcore.c (gcore_command): Initialize note_sec to NULL.
10842
10843 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10844
10845 * signals.c (target_signal_to_name): Rewrite. Only use
10846 signals[].name when in bounds and non-NULL.
10847
10848 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10849
10850 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10851 * signals.c (target_signal_to_name): Verify that SIG is within the
10852 bounds of the signals array.
10853
10854 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10855
10856 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10857
10858 2002-01-13 Keith Seitz <keiths@redhat.com>
10859
10860 * stack.c (print_frame_info_base): Print the frame's pc
10861 only if when print_frame_info_listing_hook is not defined.
10862
10863 2002-01-13 Keith Seitz <keiths@redhat.com>
10864
10865 * varobj.c (varobj_set_value): Make sure that there were no
10866 errors evaluating the object before attempting to set its
10867 value.
10868 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10869 so this offset adjustment is no longer necessary.
10870 (create_child): Don't set the error flag if the child is
10871 a CPLUS_FAKE_CHILD.
10872 (value_of_child): If value_fetch_lazy fails, return NULL
10873 so that callers will be notified that an error occurred.
10874 (c_value_of_variable): Delay check of variable's validity
10875 until later. We actually want all structs and unions to have
10876 the value "{...}".
10877 Do not return "???" for variables which could not be evaluated.
10878 This error condition must be returned to the caller so that it
10879 can get the error condition from gdb.
10880 (cplus_name_of_child): Adjust index for vptr before figuring
10881 out the name of the child.
10882 (cplus_value_of_child): If a child's (real) parent is not valid,
10883 don't even bother trying to give a value for it. Just return
10884 an error. Change all instances in this function.
10885 (cplus_type_of_child): If our parent is one of the "fake"
10886 parents, we need to get at the type of the real parent, and
10887 derive the child's true type using this information.
10888
10889 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10890
10891 From 2002-01-09 John Marshall <johnm@falch.net>:
10892 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10893 sources.redhat.com, and tweak some related URLs which had
10894 suffered from linkrot.
10895
10896 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10897
10898 From Jeff law:
10899 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10900 structures passed in registers.
10901
10902 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10903
10904 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10905 white space which prevented compilation. Reported by DSK
10906 <dsk@student.unsw.edu.au>.
10907
10908 2002-01-11 Michael Snyder <msnyder@redhat.com>
10909
10910 * symfile.c (build_section_addr_info_from_section_tab):
10911 Use bfd access method instead of manipulating bfd directly.
10912 (syms_from_objfile): Ditto.
10913 (simple_overlay_update_1): Ditto.
10914 (simple_overlay_update): Ditto.
10915 (generic_load): Ditto.
10916 (overlay_unmapped_address): FIXME comment, bfd access methods.
10917 (sections_overlap): FIXME comment, bfd access methods.
10918 (pc_in_mapped_range): FIXME comment, bfd access methods.
10919 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10920 (section_is_mapped): FIXME comment, bfd access methods.
10921 (section_is_overlay): FIXME comment, bfd access methods.
10922
10923 * symfile.c (generic_load): Whitespace and long line cleanups.
10924 Remove duplicate variable, change several local variables to
10925 more appropriate data types.
10926 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10927
10928 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10929
10930 From Peter Schauer:
10931 * language.c (longest_local_hex_string_custom): Use phex_nz to
10932 convert NUM to a hex string.
10933
10934 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10935
10936 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10937 the function.
10938 Update Copyright year.
10939
10940 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10941
10942 * language.c (longest_raw_hex_string): Delete unused function.
10943
10944 2002-01-11 Petr Sorfa <petrs@caldera.com>
10945
10946 * MAINTAINERS (write-after-approval): Add myself.
10947 * dwarf2read.c (read_tag_string_type): Handling of
10948 DW_AT_byte_size.
10949 (read_tag_string_type): FORTRAN fix to prevent propagation of
10950 first string size.
10951 (set_cu_language): Handling of DW_LANG_Fortran95
10952
10953 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10954
10955 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10956 GETPID(inferior_ptid).
10957 (store_inferior_registers): Likewise.
10958
10959 2002-01-10 Jason Merrill <jason@redhat.com>
10960
10961 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10962 Fix DW_OP_minus.
10963
10964 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10965
10966 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10967 and bfd/elf32-sh-nbsd.c.
10968
10969 2002-01-10 Michael Snyder <msnyder@redhat.com>
10970
10971 * NEWS: Mention --pid and corefile/proc-id behavior change.
10972
10973 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10974 * gcore.c: Include cli/cli-decode.h instead of command.h.
10975
10976 * main.c (captured_main): Add new command line option "--pid".
10977 If the second command line argument (following the symbol-file)
10978 begins with a digit, try to attach to it before trying to open
10979 it as a corefile.
10980 (print_gdb_help): Document the "--pid" argument.
10981
10982 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10983
10984 * completer.c (command_completer): New function.
10985
10986 * completer.h <command_completer>: Add prototype.
10987
10988 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10989 completer for the "help" command.
10990
10991 2002-01-09 Jason Merrill <jason@redhat.com>
10992
10993 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10994
10995 2002-01-09 Michael Snyder <msnyder@redhat.com>
10996
10997 * i386-linux-nat.c (fill_fpxregset): Make global.
10998 (store_fpxregset): Ditto.
10999
11000 * gregset.h (gdb_fpxregset_t): Define.
11001 (supply_fpxregset): Prototype.
11002 (fill_fpxregset): Prototype.
11003
11004 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11005
11006 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11007
11008 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11009 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11010 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11011
11012 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11013
11014 * MAINTAINERS: Update target maintainer rules so that any
11015 Maintainer can approve a tested patch for a maintenance-only
11016 target.
11017
11018 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11019
11020 * MAINTAINERS (write-after-approval): Add myself.
11021
11022 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11023 IN_SIGTRAMP.
11024
11025 2002-01-08 Michael Snyder <msnyder@redhat.com>
11026
11027 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11028 real name of the executable, rather than the /proc name.
11029
11030 2002-01-03 Michael Snyder <msnyder@redhat.com>
11031
11032 Implement a "generate-core-file" command in gdb, save target state.
11033 * gcore.c: New file. Implement new command 'generate-core-file'.
11034 Save a corefile image of the current state of the inferior.
11035 * linux-proc.c: Add linux-specific code for saving corefiles.
11036 * target.h (struct target_ops): Add new target vectors for saving
11037 corefiles; to_find_memory_regions and to_make_corefile_notes.
11038 (target_find_memory_regions): New macro.
11039 (target_make_corefile_notes): New macro.
11040 * target.c (update_current_target): Inherit new target methods.
11041 (dummy_find_memory_regions): New place-holder method.
11042 (dummy_make_corefile_notes): New place-holder method.
11043 (init_dummy_target): Initialize new dummy target vectors.
11044 * exec.c (exec_set_find_memory_regions): New function.
11045 Allow the exec_ops vector for memory regions to be taken over.
11046 (exec_make_note_section): New function, target vector method.
11047 * defs.h (exec_set_find_memory_regions): Export prototype.
11048 * procfs.c (proc_find_memory_regions): New function, corefile method.
11049 (procfs_make_note_section): New function, corefile method.
11050 (init_procfs_ops): Set new target vector pointers.
11051 (find_memory_regions_callback): New function.
11052 (procfs_do_thread_registers): New function.
11053 (procfs_corefile_thread_callback): New function.
11054 * sol-thread.c (sol_find_memory_regions): New function.
11055 (sol_make_note_section): New function.
11056 (init_sol_thread_ops): Initialize new target vectors.
11057 * inftarg.c (inftarg_set_find_memory_regions): New function.
11058 Allow to_find_memory_regions vector to be taken over.
11059 (inftarg_set_make_corefile_notes): New function.
11060 Allow to_make_corefile_notes vector to be taken over.
11061 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11062 interface layer if not target_has_execution (may be a corefile).
11063 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11064 * config/sparc/sun4sol2.mh: Ditto.
11065 * config/alpha/alpha-linux.mh: Ditto.
11066 * config/arm/linux.mh: Ditto.
11067 * config/i386/x86-64linux.mh: Ditto.
11068 * config/ia64/linux.mh: Ditto.
11069 * config/m68k/linux.mh: Ditto.
11070 * config/mips/linux.mh: Ditto.
11071 * config/powerpc/linux.mh: Ditto.
11072 * config/sparc/linux.mh: Ditto.
11073
11074 2002-01-07 Michael Snyder <msnyder@redhat.com>
11075
11076 * arm-linux-nat.c: Remove references to regcache.c internal data
11077 (registers[] and register_valid[]).
11078
11079 2002-01-07 Michael Snyder <msnyder@redhat.com>
11080
11081 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11082 so that attaching to a pid will automatically read the process's
11083 symbol file and shlibs.
11084 * Makefile.in: Add rule for linux-proc.o.
11085 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11086 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11087 * config/arm/linux.mh: Ditto.
11088 * config/i386/linux.mh: Ditto.
11089 * config/i386/x86-64linux.mh: Ditto.
11090 * config/ia64/linux.mh: Ditto.
11091 * config/m68k/linux.mh: Ditto.
11092 * config/mips/linux.mh: Ditto.
11093 * config/powerpc/linux.mh: Ditto.
11094 * config/sparc/linux.mh: Ditto.
11095
11096 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11097
11098 * win32-nat.c: Add i386-tdep.h dependency.
11099
11100 2002-01-07 Michael Snyder <msnyder@redhat.com>
11101
11102 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11103 instead of bfd_get_arch_size. Don't bail out just because
11104 there's no exec_bfd.
11105
11106 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11107 * p-valprint.c (pascal_object_print_value): Ditto.
11108 * somread.c (som_symtab_read): Ditto.
11109 * symfile.c (simple_free_overlay_region_table): Ditto.
11110 * valops.c (value_assign): Ditto.
11111
11112 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11113 use tilde_expand and strerror for opening save-tracepoints file.
11114
11115 * thread-db.c (thread_db_new_objfile): Indendation fix.
11116
11117 * infptrace.c (GDB_MAX_ALLOCA): New define.
11118 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11119 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11120 can be overridden with whatever value is appropriate to the host).
11121 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11122 alloca to allocate potentially large buffer.
11123 * rs6000-nat.c (child_xfer_memory): Ditto.
11124 * symm-nat.c (child_xfer_memory): Ditto.
11125 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11126
11127 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11128
11129 From Nick Clifton <nickc@redhat.com>
11130 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11131
11132 2002-01-07 Michael Snyder <msnyder@redhat.com>
11133
11134 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11135 Don't use exec_bfd if it's NULL.
11136
11137 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11138
11139 * valops.c (value_arg_coerce): Fix formatting.
11140
11141 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11142
11143 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11144 * gnu-nat.c: Ditto.
11145
11146 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11147
11148 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11149 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11150 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11151 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11152 z8k-coff have not been multi-arched. Update z8k-coff build
11153 status.
11154
11155 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11156
11157 * MAINTAINERS: Mark a29k target as obsolete.
11158 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11159 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11160 comments.
11161 * NEWS: Note that a29k targets are obsolete.
11162 * a29k-tdep.c: Mark as obsolete.
11163 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11164 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11165 a29k-*-vxworks* targets as obsolete.
11166 * remote-adapt.c: Obsolete.
11167 * remote-eb.c: Obsolete.
11168 * remote-mm.c: Obsolete.
11169 * remote-udi.c: Obsolete.
11170 * config/a29k/a29k-udi.mt: Obsolete.
11171 * config/a29k/a29k.mt: Obsolete.
11172 * config/a29k/tm-a29k.h: Obsolete.
11173 * config/a29k/tm-vx29k.h: Obsolete.
11174 * config/a29k/vx29k.mt: Obsolete.
11175
11176 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11177
11178 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11179 with BFD_ENDIAN_BIG.
11180
11181 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11182
11183 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11184 * configure, config.in: Re-generate.
11185 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11186 * defs.h: Do not include <endian.h>.
11187
11188 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11189
11190 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11191 * config.in: Regenerate.
11192 * configure.in: Update copyright years.
11193 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11194 * configure: Regenerate.
11195 * i386bsd-nat.c: Update copyright years.
11196 (fill_gregset): Use regcache_collect.
11197 (fetch_inferior_registers): Only fetch integer registers
11198 if requested to do so. Add support for XMM registers
11199 using PT_GETXMMREGS.
11200 (store_inferior_registers): Only store integer registers
11201 if requested to do so. Add support for XMM registers
11202 using PT_SETXMMREGS.
11203 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11204 (store_inferior_registers): Remove.
11205 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11206 (fetch_elfcore_registers): New function.
11207 (i386nbsd_elfcore_fns): New.
11208 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11209 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11210 i386bsd-nat.o.
11211 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11212 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11213 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11214 * config/i386/tm-nbsd.h: Update copyright years.
11215 (HAVE_SSE_REGS): Define.
11216 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11217 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11218 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11219 (SIGCONTEXT_PC_OFFSET): Remove.
11220 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11221
11222 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11223
11224 * configure.tgt: Remove powerpc-*-macos* target.
11225 * config/m68k/xm-mpw.h: Delete file.
11226 * config/xm-mpw.h: Delete file.
11227 * ser-mac.c: Delete file.
11228 * mpw-make.sed: Delete file.
11229 * mpw-config.in: Delete file.
11230 * mac-xdep.c: Delete file.
11231 * mac-gdb.r: Delete file.
11232 * mac-defs.h: Delete file.
11233 * mac-nat.c: Delete file.
11234 * config/powerpc/macos.mh: Delete file.
11235 * config/powerpc/macos.mt: Delete file.
11236 * config/powerpc/nm-macos.h: Delete file.
11237 * config/powerpc/tm-macos.h: Delete file.
11238 * source.c (openp, open_source_file): Remove obsolete code.
11239 * top.c (gdb_readline): Ditto.
11240 * utils.c (query): Ditto.
11241 * event-top.c (display_gdb_prompt): Ditto.
11242 * Makefile.in (ser-mac.o): Delete obsolete target.
11243 * NEWS: Update.
11244
11245 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11246
11247 * defs.h (BIG_ENDIAN): Delete macro definition.
11248 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11249 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11250 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11251 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11252 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11253 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11254 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11255 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11256 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11257 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11258 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11259 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11260 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11261 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11262 * gdbarch.c: Re-generate.
11263
11264 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11265
11266 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11267 for core files.
11268
11269 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11270
11271 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11272
11273 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11274
11275 * value.h (value_ptr): Delete typedef.
11276
11277 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11278
11279 * i386nbsd-nat.c: Update copyright years.
11280 Include i386-tdep.h.
11281
11282 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11283
11284 * stabsread.c: Update copyright years.
11285
11286 From Debashis Mahata <debashis.mahata@wipro.com>:
11287 (read_struct_fields): Deal with Sun C compiler erroneous stab
11288 output for structs and unions.
11289 Fix PR gdb/269.
11290
11291 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11292
11293 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11294 prototype.
11295
11296 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11297
11298 * cp-abi.c: Fix whitespace.
11299 (baseclass_offset): New wrapper function.
11300 * cp-abi.h (baseclass_offset): Add prototype.
11301 (struct cp_abi_ops): Add baseclass_offset pointer.
11302
11303 * valops.c (vb_match): Move to...
11304 * gnu-v2-abi.c (vb_match): here.
11305 * valops.c (baseclass_offset): Move to...
11306 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11307
11308 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11309
11310 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11311 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11312 * hpacc-abi.c (init_hpacc_ops): Likewise.
11313
11314 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * valops.c (find_overload_match): Accept obj as a
11317 reference parameter. Update it before returning.
11318 * value.h (find_overload_match): Update prototype.
11319 * eval.c (evaluate_subexp_standard): Pass object to
11320 find_overload_match by reference.
11321
11322 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11323
11324 * valarith.c: Replace value_ptr with struct value pointer. Remove
11325 register attribute from value declarations.
11326 * valops.c: Ditto.
11327 * value.h: Ditto.
11328 * scm-lang.c (scm_lookup_name): Ditto.
11329
11330 2002-01-03 Michael Snyder <msnyder@redhat.com>
11331
11332 Abstract the functionality of iterating over mapped memory
11333 regions into a general purpose iterator function.
11334 * procfs.c (iterate_over_mappings): New function, general purpose
11335 iterator for memory sections.
11336 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11337 (solib_mappings_callback): New function, callback for above.
11338 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11339 (info_mappings_callback): New function, callback for above.
11340
11341 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11342
11343 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11344
11345 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11346 * i386-tdep.c: Include "elf-bfd.h".
11347 (process_note_abi_tag_sections): New function.
11348 (i386_gdbarch_init): Add code to recognize various OS/ABI
11349 combinations.
11350
11351 * maint.c (_initialize_maint_cmds): Add missing \ in
11352 string-literal.
11353
11354 For older changes see ChangeLog-2001
11355 \f
11356 Local Variables:
11357 mode: change-log
11358 left-margin: 8
11359 fill-column: 74
11360 version-control: never
11361 End:
This page took 0.358191 seconds and 4 git commands to generate.