2002-09-20 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a15ef5f5
DC
12002-09-20 David Carlton <carlton@math.stanford.edu>
2
3 * c-lang.c: #include "gdb_string.h"
4
87885426
FN
52002-09-20 Fernando Nasser <fnasser@redhat.com>
6
7 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
8 * cli/cli-cmds.c (list_command): New function. Implements the new
9 cli edit command.
10 (_init_cli_cmds): Add new command definition.
11 * gdb.1: Document edit command.
12 * doc/gdb.texinfo: Document edit command.
13
142002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
15
16 * source.c: Make global variables current_source_symtab and
17 current_source_line static.
18 (list_command): Moved to cli/cli-cmds.c.
19 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
20 (get_first_line_listed): New accessor function.
21 (get_lines_to_list): New accessor function.
22 (get_current_source_symtab_and_line): New function. Retrieves the
23 position in the source code that we consider current.
24 (get_current_or_default_source_symtab_and_line): New function.
25 Like the above but attempts to determine a default position if one
26 is not currently defined.
27 (set_current_source_symtab_and_line): New function. Sets the source
28 code position considered current and returns the previously set one.
29 (clear_current_source_symtab_and_line): Reset stored information about
30 a current source line.
31 (_initialize_source): Remove registration for the "list" command and
32 its alias.
33 * source.h: Add declarations for the new functions above.
34 * symtab.h: Remove declarations for the global variables mentioned
35 above.
36 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
37 obtain current source line.
38 * linespec.c (decode_line_1): Ditto.
39 * macroscope.c (default_macro_scope): Ditto.
40 * scm-lang.c (scm_unpac): Ditto.
41 * stack.c (print_frame_info_base): Ditto.
42 * symfile.c (clear_symtab_users): Ditto.
43 * symtab.c (decode_line_spec): Ditto.
44 * cli/cli-cmds.c (list_command): Moved here from source.c.
45 (ambiguous_line_spec): Moved here from source.c.
46 (_init_cli_cmds): Add definition for "list" and its alias.
47 * Makefile.in: Update dependencies.
48
ddd216ea
CV
492002-09-20 Corinna Vinschen <vinschen@redhat.com>
50
51 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
52 with what gcc thinks is correct.
53
6d305052
CV
542002-09-20 Corinna Vinschen <vinschen@redhat.com>
55
56 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
57 multiple register push instruction.
58
234b45d4
KB
592002-09-19 Jim Blandy <jimb@redhat.com>
60
61 Add support for distinct host and target character sets.
62 * charset.c, charset.h: New files.
63 * c-exp.y: #include "charset.h".
64 (yylex): Convert character and string literals to the target
65 character set, before returning them as the semantic value of the
66 token.
67 * c-lang.c: #include "charset.h".
68 (c_emit_char): Use charset-specific methods to recognize
69 characters with backslash escape forms, to decide which characters
70 to print literally and which to print using numeric escape
71 sequences, and to convert target characters to host characters
72 before printing.
73 * utils.c: #include "charset.h".
74 (no_control_char_error): New function.
75 (parse_escape): Use charset-specific methods to recognize
76 backslash escapes, parse `control character' notation, and convert
77 characters from the host character set to the target character set.
78 * configure.in: Set the default host character set.
79 Check where to find iconv, and what its argument types might be.
80 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
81 * Makefile.in (SFILES): List charset.c.
82 (COMMON_OBS): List charset.o.
83 (charset.o): New rule.
84 (charset_h): New header dependency variable.
85 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
86 (LIBICONV): New variable, set by configure.
87 (CLIBS): Include $(LIBICONV) here.
88 * aclocal.m4, config.in, configure: Regenerated.
89
525d6a61
JB
902002-09-19 Joel Brobecker <brobecker@gnat.com>
91
92 * ada-exp.y: Add missing semicolons to end rules. Fixes a
93 bison 1.35 warning.
94
3ed93867
RE
952002-09-19 Richard Earnshaw <rearnsha@arm.com>
96
97 * gdb_mbuild.sh: New file.
98
437666f8
AC
992002-09-19 Andrew Cagney <ac131313@redhat.com>
100
101 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
102
389e51db
AC
1032002-09-18 Andrew Cagney <ac131313@redhat.com>
104
105 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
106 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
107 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
108 valops.c, value.h: Revert previous change.
109
3b4efeaa
MS
1102002-09-18 Michael Snyder <msnyder@redhat.com>
111
112 Preliminary support for Objective-C:
113 * defs.h (language_objc): New enum value.
114 (puts_filtered_tabular): Declaration only, exported from utils.c.
115 (skip_quoted): Delete, declared in completer.h.
116 * c-exp.y: Include completer.h.
117 * p-exp.y: Ditto.
118 * jv-exp.y: Ditto.
119 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
120 New operator enum values.
121 * language.h (CAST_IS_CONVERSION): Test for language_objc.
122 * language.c (binop_result_type): Handle language_objc case.
123 (integral_type, character_type, string_type, boolean_type,
124 structured_type, binop_type_check): Ditto.
125 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
126 (struct objc_specific): Add to general_symbol_info.
127 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
128 (SYMBOL_DEMANGLED_NAME): Handle objc case.
129 * parser-defs.h (struct objc_class_str): New struct type.
130 (start_msglist, end_msglist, add_msglist): Declaration only,
131 exported from objc-lang.c.
132 * value.h (value_of_local, value_nsstring,
133 call_function_by_hand_expecting_type): Exported from valops.c.
134 * valops.c (find_function_addr): Export.
135 (call_function_by_hand_expecting_type): New function.
136 (value_of_local): New function.
137 * symfile.c (init_filename_language_table): Add ".m" extension
138 for Objective-C.
139 * utils.c (puts_filtered_tabular): New function.
140 (fprintf_symbol_filtered): Add objc demangling support (disabled).
141 (set/show demangle): Extend help-string to refer to ObjC.
142 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
143 * stabsread.c (symbol_reference_defined): Objective-C symbols
144 may contain colons: make allowances when scanning stabs strings
145 for colons.
146 (objc_find_colon): New function.
147 * printcmd.c (address_info): If language == objc then print
148 "self" instead of "this".
149 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
150 OP_NSSTRING, and OP_SELF.
151 (prefixify_subexp): Ditto.
152 * source.c (print_source_lines): Mention objc in comment.
153 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
154 method names.
155
b9caf505
AC
1562002-09-18 Andrew Cagney <ac131313@redhat.com>
157
158 * complaints.h: Update copyright.
159 (struct complaints): Declare.
160 (struct complaint): Make `message' constant.
161 (internal_complaint): Declare.
162 (complaint): Declare.
163 (complaint_root): Delete declaration.
164 (symfile_complaints): Delete declaration.
165 (struct complaints): Add opaque declaration.
166 (clear_complaints): Add a complaints parameter.
167 * complaints.c: Update copyright.
168 (enum complaint_series): Define.
169 (complaint_root): Delete.
170 (struct complaints): Define.
171 (complaint_sentinel, symfile_complaint_book): New variables.
172 (symfile_explanations, symfile_complaints): New variables.
173 New variables.
174 (get_complaints): New function.
175 (vcomplaint): New function.
176 (complaint): New function.
177 (internal_complaint): New function.
178 (complain): Call vcomplain with symfile_complaint.
179 (clear_complaints): Rewrite.
180 (_initialize_complaints): Use add_setshow_command.
181 * Makefile.in (complaints.o): Update dependencies.
182 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
183 to call to clear_complaints.
184 (new_symfile_objfile, reread_symbols): Ditto.
185 (oldsyms_complaint): Delete.
186 (empty_symtab_complaint, unknown_option_complaint): Delete.
187 (free_named_symtabs): Use complaint instead of complain.
188
d2e6263c
MS
1892002-09-18 Michael Snyder <msnyder@redhat.com>
190
5fb2031a
AC
191 Contributed by Apple Computer, Inc. Merged with current sources
192 by Adam Fedor <fedor@doc.com> [cagney].
193
d2e6263c
MS
194 * objc-lang.c: First clean-up round: comments, indentation.
195 * objc-lang.h: Ditto.
196 * objc-lang.y: Ditto.
197
dec43320
AC
1982002-09-18 Andrew Cagney <ac131313@redhat.com>
199
200 * maint.c (maintenance_internal_error): Print the parameter as the
201 error message.
202 (maintenance_internal_warning): New function.
203 (_initialize_maint_cmds): Add command `maint internal-warning'.
204
205 * defs.h (internal_warning, internal_vwarning): Declare.
206 * utils.c (struct internal_problem): Define.
207 (internal_vproblem): New function.
208 (internal_warning): New function.
209 (internal_vwarning): New function.
210 (internal_warning_problem, internal_error_problem): New variables.
211 (internal_verror): Just call internal_vproblem.
212
b81654f1
MS
2132002-09-18 Michael Snyder <msnyder@redhat.com>
214
215 * objc-lang.c: New file, support for Objective-C.
216 Preliminary check-in, not yet integrated into gdb.
217 * objc-lang.h: New file.
218 * objc-exp.y: New file.
219
0542c381
AC
2202002-09-18 Andrew Cagney <ac131313@redhat.com>
221
7bda5e4a
AC
222 * infrun.c (signal_stop_update): Convert definition to ISO C.
223 (signal_print_update): Ditto.
224 (signal_pass_update): Ditto.
225 * inflow.c (terminal_save_ours): Ditto.
226
5247b418
AC
227 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
228 comments.
229
fc60962c
AC
230 * config/djgpp/fnchange.lst: Handle name clashes between
231 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
232 bfd/coff-tic80.c.
233
0542c381
AC
234 * i386-linux-tdep.h: Fix tipo.
235
5b924b9b
AF
2362002-09-18 Adam Fedor <fedor@gnu.org>
237
238 * MAINTAINERS: Add myself to the Write After Approval list.
239
5afc051b
JB
2402002-09-18 Jim Blandy <jimb@redhat.com>
241
242 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
243 texthigh and textlow to reader-specific structs caused
244 objfile_relocate to miss them. This is fixable, but the work that
245 the change was supposed to prepare GDB for never got done anyway.
246
eb944380
DC
2472002-09-18 David Carlton <carlton@math.stanford.edu>
248
249 * MAINTAINERS: Alphabetize Write After Approval list.
250
948e66d9
DJ
2512002-09-18 Daniel Jacobowitz <drow@mvista.com>
252
253 Fix PR gdb/709
254 * values.c (value_static_field): Call read_var_value.
255
dc604539
AC
2562002-09-18 Andrew Cagney <ac131313@redhat.com>
257
258 * valops.c (hand_function_call): Align the initial stack pointer
259 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
260 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
261 return value.
262 * mips-tdep.c (mips_frame_align): New function.
263 (mips_gdbarch_init): Set frame_align.
264 * gdbarch.sh (FRAME_ALIGN): New method.
265 * gdbarch.h, gdbarch.c: Re-generate.
266
cb7e422f
ML
2672002-09-18 Michal Ludvig <mludvig@suse.cz>
268
269 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
270 registers.
271
a094c6fb
AC
2722002-09-17 Andrew Cagney <ac131313@redhat.com>
273
274 * NEWS: Mention that MIPS $fp behavior changed.
275 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
276 reference to FP_REGNUM.
277 (mipsnbsd_cannot_store_register): Ditto.
278 * mips-linux-nat.c: Update copyright.
279 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
280 (mips_linux_cannot_store_register): Ditto.
281 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
282 * config/mips/tm-mips.h: Update copyright.
283 (FP_REGNUM): Delete macro.
284 (MIPS_REGISTER_NAMES): Replace "fp" with "".
285 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
286 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
287 (mips_r3041_reg_names, mips_r3051_reg_names)
288 (mips_r3081_reg_names): Replace "fp" with "".
289 Fix PR gdb/480.
290
45cf40d1
TR
2912002-09-17 Theodore A. Roth <troth@verinet.com>
292
293 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
294 generic_read_register_dummy() (PR gdb/703).
295 (avr_push_return_address): #if 0 out unused vars.
296 (avr_gdbarch_init): Enable use of avr_push_return_address().
297
c7e701b5
MS
2982002-09-17 Michael Snyder <msnyder@redhat.com>
299
d76ba2a5 300 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
301 RTE will take care of it.
302
20bcf01c
AC
3032002-09-17 Andrew Cagney <ac131313@redhat.com>
304
305 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
306 invalid, return SP_REGNUM.
307
009a9971 3082002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
309
310 * mips-tdep.c (mips_pop_frame): Read saved values of floating
311 point registers without sign extension.
312
135c175f
AC
3132002-09-17 Andrew Cagney <cagney@redhat.com>
314
315 * blockframe.c (deprecated_read_register_dummy): Rename
316 generic_read_register_dummy.
317 * frame.c (frame_unwind_signed_register): New function.
318 (frame_unwind_unsigned_register): New function.
319 * frame.h (frame_unwind_signed_register): Declare.
320 (frame_unwind_unsigned_register): Declare.
321 (deprecated_read_register_dummy): Rename
322 generic_read_register_dummy.
323
324 * h8300-tdep.c (h8300_frame_chain): Update.
325 (h8300_frame_saved_pc): Update.
326 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
327 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
328 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
329 (s390_frame_chain): Update.
330 * v850-tdep.c (v850_find_callers_reg): Update.
331 (v850_frame_saved_pc): Update.
332 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
333 (m32r_find_callers_reg): Update.
334 (m32r_frame_saved_pc): Update.
335 * sh-tdep.c (sh_find_callers_reg): Update.
336 (sh64_get_saved_pr): Update.
337 (sh_init_extra_frame_info): Update.
338 (sh_init_extra_frame_info): Update.
339 (sh64_init_extra_frame_info): Update.
340 (sh64_init_extra_frame_info): Update.
341 * mcore-tdep.c (mcore_find_callers_reg): Update.
342 (mcore_frame_saved_pc): Update.
343 (mcore_init_extra_frame_info): Update.
344 * i386-tdep.c (i386_frame_saved_pc): Update.
345 * ia64-tdep.c (ia64_frame_saved_pc): Update.
346 (ia64_init_extra_frame_info): Update.
347 (ia64_init_extra_frame_info): Update.
348 * d10v-tdep.c (d10v_frame_saved_pc): Update.
349 * cris-tdep.c (cris_init_extra_frame_info): Update.
350 * avr-tdep.c (avr_frame_chain): Update.
351 (avr_init_extra_frame_info): Update.
352 (avr_frame_saved_pc): Update.
353 * arm-tdep.c (arm_find_callers_reg): Update.
354 (arm_init_extra_frame_info): Update.
355 (arm_frame_saved_pc): Update.
356
a741e514
TT
3572002-09-17 Tom Tromey <tromey@redhat.com>
358
359 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
360 is "'".
361
d1a8e808
CV
3622002-09-17 Corinna Vinschen <vinschen@redhat.com>
363
364 * MAINTAINERS: Remove "non multi-arched" text from h8300.
365 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
366 NEXT_PROLOGUE_INSN.
367 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
368 NEXT_PROLOGUE_INSN.
369
d9025a18
JB
3702002-09-16 Joel Brobecker <brobecker@gnat.com>
371
372 * osfsolib.c: Remove file, replaced by solib-osf.c.
373 * Makefile.in: Remove compilation rules for osfsolib.c.
374
1b2ef1b6
DC
3752002-09-16 David Carlton <carlton@math.stanford.edu>
376
377 * cp-valprint.c (cp_print_class_method): Correct args to
378 check_stub_method_group.
379
928e48af
CV
3802002-09-16 Corinna Vinschen <vinschen@redhat.com>
381
382 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
383 `set architecture'. Unify naming convention of functions.
384 (h8300_skip_prologue): Improve prologue analysis.
385 (h8300_push_arguments): Rewritten to more closely match GCC's
386 bizarre argument-passing behavior, along with the comment describing
387 said behavior.
388 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
389 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
390 sim, remote-e7000.c, remote-hms.c and remote.c
391
5e3397bb
MK
3922002-09-15 Mark Kettenis <kettenis@gnu.org>
393
394 * i386-tdep.c (gdb_print_insn_i386): Removed.
395 (i386_print_insn): New function.
396 (i386_gdbarch_init): Set print_insn to i386_print_insns.
397 (_initialize_i386_tdep): Don't initialize tm_print_insn and
398 tm_print_insn_info.
399
f710f4fc
MK
4002002-09-14 Mark Kettenis <kettenis@gnu.org>
401
402 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
403 zero.
404
db54fef4
CV
4052002-09-14 Corinna Vinschen <vinschen@redhat.com>
406
407 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
408 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
409 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
410
2becadee
CF
4112002-09-13 Christopher Faylor <cgf@redhat.com>
412
413 * win32-nat.c (child_create_inferior): Honor 'tty' command.
414
de17c821
DJ
4152002-09-13 Daniel Jacobowitz <drow@mvista.com>
416
417 * gdbtypes.c (check_stub_method): Make static.
418 (check_stub_method_group): New function.
419 * gdbtypes.h: Update prototypes.
420 * cp-support.c: New file.
421 * cp-support.h: New file.
422
423 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
424 (update_method_name_from_physname): New function.
425 (read_member_functions): Correct method names for operators
426 and v3 constructors/destructors. Separate v2 constructors and
427 destructors.
428 * Makefile.in (stabsread.o): Update dependencies.
429 (SFILES): Add cp-support.c.
430 (COMMON_OBS): Add cp-support.o.
431 (cp_support_h, cp-support.o): Add.
432
433 * cp-valprint.c (cp_print_class_method): Call
434 check_stub_method_group instead of check_stub_method. Remove
435 extraneous QUITs.
436 * p-valprint.c (pascal_object_print_class_method): Likewise.
437 * valops.c (search_struct_method): Likewise.
438 (find_method_list, value_struct_elt_for_reference): Likewise.
439
e76cff22
AC
4402002-09-13 Andrew Cagney <cagney@redhat.com>
441
442 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
443 * gdbarch.h, gdbarch.c: Regenerate.
444
905abb3f
AC
4452002-09-13 Andrew Cagney <ac131313@redhat.com>
446
447 * frame.c (find_saved_register): Delete function.
448 * frame.h (find_saved_register): Delete declaration.
449 Fix PR gdb/631.
450
64159455
AC
451Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
452
453 * mips-tdep.c (read_next_frame_reg): Re-hack using
454 frame_register_unwind.
455
795e1e11
AC
456Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
457
458 * mips-tdep.c (mips_get_saved_register): Re-hack using
459 frame_register_unwind.
460
5720643c
JB
4612002-09-12 Joel Brobecker <brobecker@gnat.com>
462
463 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
464 vector. Will be useful for Interix.
465 * gdbarch.h, gdbarch.c: Regenerate.
466
467 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
468 name of the malloc function by NAME_OF_MALLOC.
469
3bada2a2
JB
4702002-09-12 Joel Brobecker <brobecker@gnat.com>
471
472 * value.h (find_function_in_inferior): Add const keyword to
473 one of the parameters. Allows us to invoke this function with
474 a const char *.
475 * valops.c (find_function_in_inferior): Likewise.
476
3db26b01
JB
4772002-09-12 Joel Brobecker <brobecker@gnat.com>
478
479 * exec.c (xfer_memory): Fix compilation warning with old versions
480 of GCC.
481 * tracepoint.c (trace_find_tracepoint_command): Likewise.
482
17c5ed2c
DC
4832002-09-12 David Carlton <carlton@math.stanford.edu>
484
485 * symtab.h: Run through gdb_indent.h.
486 Add 2002 to Copyright year list.
487
ecd1107e
AM
4882002-09-12 Alan Modra <amodra@bigpond.net.au>
489
490 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
491 mach constants.
492 * MAINTAINERS: Add myself to write after approval list.
493
e64f66d1
JB
4942002-09-11 J. Brobecker <brobecker@gnat.com>
495
496 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
497
f9395794
JB
4982002-09-11 J. Brobecker <brobecker@gnat.com>
499
500 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
501 Interix.
502
1a303dec
MS
5032002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
504
505 * procfs.c (do_detach): Clear current signal, not just fault.
506 Corrects problem with breakpoint trap signal leaking to detached
507 process on Tru64.
508
c0219d42
MS
5092002-09-10 Michael Snyder <msnyder@redhat.com>
510
511 * buildsym.c (finish_block): Protect against null pointer.
512
9d84ac84
AC
5132002-09-10 Andrew Cagney <cagney@redhat.com>
514
515 * infcmd.c (default_print_registers_info): Send all output to
516 ``file'' instead of ``gdb_stdout''.
517
77d8f2b4
MS
5182002-09-10 Michael Snyder <msnyder@redhat.com>
519
520 * mips-tdep.c (mips_extract_struct_value_address): Make val a
521 LONGEST, and use signed register read (addresses are sign-
522 extended for mips).
523
99656a61
SC
5242002-09-10 Stephane Carrez <stcarrez@nerim.fr>
525
526 * event-loop.c (gdb_do_one_event): Make public.
527 * event-loop.h (gdb_do_one_event): Declare.
528
da12f4d8
JL
5292002-09-10 Jeff Law <law@redhat.com>
530
531 * infttrace.c (child_resume): Simplify and rework to avoid
532 TT_PROC_CONTINUE.
533
d0aee0c4
FF
5342002-09-09 Fred Fish <fnf@intrinsity.com>
535
536 * printcmd.c (print_scalar_formatted): "len" is the number of
537 target bytes, NOT the number of target bits.
538
7cb3ec5e
EZ
5392002-09-09 Elena Zannoni <ezannoni@redhat.com>
540
541 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
542 * top.c (init_main): Set rl_terminal_name.
543
4dc81987
AS
5442002-09-08 Aidan Skinner <aidan@velvet.net>
545
546 * ada-lang.c (ada_array_bound, ada_type_match,
547 _initialize_ada_language): Fix K&R definitions.
548 * ada-tasks.c (get_current_task): Fix K&R definitions.
549 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
550
842330b4
CF
5512002-09-07 Christopher Faylor <cgf@redhat.com>
552
553 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
554 Add XP.
555
43156d82
MK
5562002-09-06 Mark Kettenis <kettenis@gnu.org>
557
66da5fd8
MK
558 * i386-tdep.c (i386_register_virtual_type,
559 i386_register_convertible, i386_register_convert_to_virtual,
560 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
561 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
562 (i386_gdbarch_init): Fix comment. Add comments on calls that set
563 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
564 Don't set push_arguments twice.
565
4b218c18
MK
566 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
567 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
568 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
569 sigtramp_end to NULL.
570 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
571 defines.
572 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
573
4cc314d5
MK
574 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
575 whitespace.
576
43156d82
MK
577 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
578 * gdbarch.h, gdbarch.c: Re-generate.
579 * blockframe.c (find_pc_sect_partial_function): Convert to use
580 SIGTRAMP_START_P predicate.
581
6672060b
MS
5822002-09-05 Michael Snyder <msnyder@redhat.com>
583
a90c3637
MS
584 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
585 generic_dummy_frame method and old method. Also distinguish
586 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 587 (arm_extract_return_value): Use new regcache method.
a90c3637 588
6672060b
MS
589 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
590 adjustment that doesn't conform to the ABI.
591 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
592 saved regcache, not from current regcache.
593
299ffc64
AC
5942002-09-05 Andrew Cagney <ac131313@redhat.com>
595
596 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
597 * README: Update.
598
a3a2ee65
JT
5992002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
600
601 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
602 if arm_apcs_32 is false.
603
2bc7eea9
AC
6042002-09-04 Andrew Cagney <ac131313@redhat.com>
605
606 GDB 5.3 branch created.
607
8a55a7c5
TR
6082002-09-03 Theodore A. Roth <troth@verinet.com>
609
610 * gdb/avr-tdep.c (avr_gdbarch_init): Use
611 generic_unwind_get_saved_register.
612
e26fb1d7
DC
6132002-09-03 David Carlton <carlton@math.stanford.edu>
614
615 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
616 argument (PR gdb/653). Update call to smash_to_method_type.
617 (read_structure_scope): Update call to dwarf2_add_member_fn.
618
30d52491
ML
6192002-09-03 Michal Ludvig <mludvig@suse.cz>
620
621 * x86-64-linux-tdep.c: Include gdb_string.h
622 * x86-64-linux-nat.c: Ditto.
623
06891d83
JT
6242002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
625
626 * ada-exp.y (yyname, yyrule): Remap global variables that appear
627 when YYDEBUG is set to 1.
628 * c-exp.y: Likewise.
629 * f-exp.y: Likewise.
630 * jv-exp.y: Likewise.
631 * m2-exp.y: Likewise.
632 * p-exp.y: Likewise.
633
7d400e77
JT
6342002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
635
636 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
637 dependency list.
638 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
639 solib_svr4_fetch_link_map_offsets to
640 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
641 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
642 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
643 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
644 solib-svr4.o, and solib-legacy.o.
645 * config/i386/tm-nbsd.h: Include solib.h.
646
704a27c4
JT
6472002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
648
649 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
650 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
651 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
652 comment noting that this needs its own target configuration.
653 * config/i386/nbsd.mt: New file.
654 * config/i386/nbsdaout.mt: Remove.
655 * config/i386/nbsdelf.mt: Ditto.
656 * config/i386/tm-nbsdaout.h: Ditto.
657
d66198e1
JT
6582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
659
660 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
661 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
662 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
663 tdep->sigtramp_end.
664 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
665 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
666 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
667
3cac699e
JT
6682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
669
670 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
671 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
672 * i386-tdep.h (i386bsd_init_abi): New prototype.
673 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
674 function declaration.
675 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
676 for NetBSD-a.out or NetBSD-ELF.
677 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
678 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
679 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
680 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
681 and nbsd-tdep.h.
682 (i386nbsd_pc_in_sigtramp): New function.
683 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
684 i386nbsd_pc_in_sigtramp.
685 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
686 and i386nbsdelf_init_abi OS ABI handlers.
687 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
688 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
689
7010ca0a
MK
6902002-09-02 Mark Kettenis <kettenis@gnu.org>
691
692 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
693 registers if the target really has them.
694
6dd93b72
JT
6952002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
696
697 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
698 than nbsd-tdep.h.
699
2ca8ae21
JT
7002002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
701
702 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
703 list.
704 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
705 (alphanbsd_skip_sigtramp_frame): New functions.
706 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
707 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
708 to alphanbsd_sigcontext_addr.
709
3d9b49b0
JT
7102002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
711
712 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
713 list.
714 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
715 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
716 nbsd_pc_in_sigtramp.
717 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
718 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
719 * nbsd-tdep.c: Include gdb_string.h.
720 (nbsd_pc_in_sigtramp): New function.
721 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
722 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
723 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
724 ppcnbsd_pc_in_sigtramp.
725 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
726 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
727 shnbsd_pc_in_sigtramp.
728 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
729 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
730 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
731
c860120c
PM
7322002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
733
734 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
735 watchpoints to NULL.
736 (insert_breakpoints): set val field of watchpoints if NULL.
737
738
c7612d53
JB
7392002-08-29 Jim Blandy <jimb@redhat.com>
740
741 * symtab.c (lookup_symbol_aux): In the cases where we find a
742 minimal symbol of an appropriate name and use its address to
743 select a symtab to read and search, use `name' (as passed to us)
744 as the demangled name when searching the symtab's global and
745 static blocks, not the minsym's name.
746
66609862
KS
7472002-08-29 Keith Seitz <keiths@redhat.com>
748
749 * stack.c (print_frame_info_base): Always set current_source_symtab
750 and current_source_line.
751
151fefe2
JB
7522002-08-29 Donn Terry <donnte@microsoft.com>
753
754 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
755
bfb3754e
KS
7562002-08-28 Keith Seitz <keiths@redhat.com>
757
758 * stack.c (select_frame): Add FIXME concerning selected-frame
759 events.
760 (select_frame_command): Send selected-frame-level-changed
761 event notification, but only if the level actually changed.
762 (up_silently_base): Add selected-frame-level-changed event
763 notification.
764 (down_silently_base): Likewise.
765
e822a2a0
AC
7662002-08-28 Andrew Cagney <ac131313@redhat.com>
767
768 * Makefile.in: Update dependencies for all gdb/*.c files.
769
309367d4
TT
7702002-08-27 Tom Tromey <tromey@redhat.com>
771
772 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
773 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
774 Update dependencies.
775 * i387-tdep.c: Include gdb_string.h.
776 * osabi.c: Likewise.
777 * i386-linux-nat.c: Likewise.
778 * lin-lwp.c: Likewise.
779 * ax-gdb.c: Likewise.
780 * signals/signals.c: Likewise.
781 * jv-valprint.c: Likewise.
782 * p-lang.c: Likewise.
783 * c-valprint.c: Likewise.
784 * cp-abi.c: Likewise.
785
e1507482
EZ
7862002-08-27 Elena Zannoni <ezannoni@redhat.com>
787
788 * cli/cli-script.h (copy_command_lines): Export.
789 * breakpoint.c: Include cli/cli-script.h.
790 * Makefile.in (breakpoint.o): Update dependencies.
791
c6510018
MS
7922002-08-26 Michael Snyder <msnyder@redhat.com>
793
794 * breakpoint.c (insert_breakpoints): Protect all references
795 to 'process_warning'. Shorten long lines.
796
c2b8ed2c
MS
7972002-08-26 Joel Brobecker <brobecker@gnat.com>
798
799 * cli/cli-script.c (copy_command_lines): New function.
800 * defs.h (copy_command_lines): Export.
801 * testsuite/gdb.base/commands.exp: New tests for commands
802 attached to a temporary breakpoint, and for commands that
803 delete the breakpoint they are attached to.
804
8052002-08-26 Michael Snyder <msnyder@redhat.com>
806
807 * breakpoint.c (bpstat_stop_status): Instead of copying the
808 pointer to the breakpoint commands struct, make a new copy
809 of the struct and point to that.
810 (bpstat_clear): Free the commands struct.
811 (bpstat_clear_actions): Free the commands struct.
812 (bpstat_do_actions): Free the command actions. Also execute
813 the local cleanups, instead of deleting them.
814 (delete_breakpoint): Leave the commands field of the bpstat
815 chain alone -- it will be freed later.
816
64b84175
KB
8172002-08-26 Kevin Buettner <kevinb@redhat.com>
818
819 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
820 deleted in 2002-08-20 commit. This function is still used by
821 ppc-linux-nat.c.
822
55970da6
KS
8232002-08-26 Keith Seitz <keiths@redhat.com>
824
825 * gdb-events.sh: Add selected-frame-level-changed event.
826 * gdb-events.c: Regenerated.
827 * gdb-events.h: Regenerated.
828
a790ad35
SC
8292002-08-26 Stephane Carrez <stcarrez@nerim.fr>
830
831 Fix PR gdb/393:
832 * inflow.c (terminal_save_ours): New function to save terminal
833 settings.
834 * inferior.h (terminal_save_ours): Declare.
835 * target.c (debug_to_terminal_save_ours): New function.
836 (cleanup_target): Defaults to_terminal_save_ours.
837 (update_current_target): Inherit to_terminal_save_ours.
838 (setup_target_debug): Set to_terminal_save_ours.
839 * target.h (target_terminal_save_ours): New to save terminal settings.
840 (target_ops): New member to_terminal_save_ours.
841 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
842 * hpux-thread.c (init_hpux_thread_ops): Likewise.
843 * inftarg.c (init_child_ops): Likewise.
844 * m3-nat.c (init_m3_ops): Likewise.
845 * procfs.c (init_procfs_ops): Likewise.
846 * wince.c (init_child_ops): Likewise.
847 * win32-nat.c (init_child_ops): Likewise.
848 * sol-thread.c (init_sol_thread_ops): Likewise.
849
c00dcbe9
MK
8502002-08-26 Mark Kettenis <kettenis@gnu.org>
851
3d7f4f49
MK
852 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
853 use regcache_* functions.
854 (i386_gdbarch_init): Set store_return_value instead of
855 deprecated_store_return_value.
856
c00dcbe9
MK
857 * regcache.c (regcache_raw_write_signed,
858 regcache_raw_write_unsigned): New functions.
859 * regcache.h (regcache_raw_write_signed,
860 regcache_raw_write_unsigned): New prototypes.
861
0e0d15ca
AC
8622002-08-25 Andrew Cagney <ac131313@redhat.com>
863
864 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
865 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
866 source file dependencies. Cleanup corresponding generator rules.
867
d3b22ed5
AC
8682002-08-25 Andrew Cagney <ac131313@redhat.com>
869
870 * regcache.h (register_offset_hack): Declare.
871 (regcache_cooked_read_using_offset_hack): Declare.
872 (regcache_cooked_write_using_offset_hack): Declare.
873
874 * regcache.c (register_offset_hack): New function.
875 (regcache_cooked_read_using_offset_hack): New function.
876 (regcache_cooked_write_using_offset_hack): New function.
877 (regcache_dump): Check that the registers, according to their
878 offset, are packed hard against each other.
879 (cooked_xfer_using_offset_hack): New function.
880
bb425013
AC
8812002-08-25 Andrew Cagney <ac131313@redhat.com>
882
883 * regcache.c (struct regcache_descr): Add field register_type.
884 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
885 in as a parameter
886 (init_regcache_descr): Initialize register_type. Pass the descr
887 to init_legacy_regcache_descr. Use register_type instead of
888 REGISTER_VIRTUAL_TYPE.
889 (register_type): New function.
890 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
891 * regcache.h (register_type): Declare.
892
d0403e00
AC
8932002-08-25 Andrew Cagney <ac131313@redhat.com>
894
895 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
896 instead of deprecated_store_return_value. Fix fallout from
897 2002-08-23 Andrew Cagney <cagney@redhat.com>.
898
0ed04cce
AC
8992002-08-25 Andrew Cagney <ac131313@redhat.com>
900
901 * regcache.c (max_register_size): New function.
902 (init_legacy_regcache_descr): Ensure that max_register_size is
903 large enough for REGISTER_VIRTUAL_SIZE.
904 * regcache.h (max_register_size): Declare.
905
46d79c04
AC
9062002-08-24 Andrew Cagney <ac131313@redhat.com>
907
908 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
909 store_return_value.
910 (e500_extract_return_value): Change type of valbuf pointer to
911 void.
912
853c7bd0
MK
9132002-08-24 Mark Kettenis <kettenis@gnu.org>
914
cd87e769
MK
915 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
916 workaround.
917
853c7bd0
MK
918 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
919 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
920 long long) to prevent compiler warning on 64-bit systems.
921
ebba8386
AC
9222002-08-23 Andrew Cagney <cagney@redhat.com>
923
924 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
925 (DEPRECATED_STORE_RETURN_VALUE): New method.
926 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
927 * gdbarch.h, gdbarch.c: Re-generate.
928
929 * values.c (set_return_value): Pass current_regcache to
930 STORE_RETURN_VALUE.
931 * arch-utils.h (legacy_store_return_value): Declare.
932 * arch-utils.c (legacy_store_return_value): New function.
933 (legacy_extract_return_value): Update parameters.
934
935 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
936 STORE_RETURN_VALUE.
937 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
938 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
939 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
940 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
941 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
942 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
943 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
944 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
945 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
946 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
947
948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
949 * i386-tdep.c (i386_extract_return_value): Update.
950 * arch-utils.c (legacy_extract_return_value): Update.
951 * frv-tdep.c (frv_gdbarch_init): Update.
952 * cris-tdep.c (cris_gdbarch_init): Update.
953 * d10v-tdep.c (d10v_gdbarch_init): Update.
954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
955 * m68k-tdep.c (m68k_gdbarch_init): Update.
956 * mcore-tdep.c (mcore_gdbarch_init): Update.
957 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
958 * s390-tdep.c (s390_gdbarch_init): Update.
959 * sparc-tdep.c (sparc_gdbarch_init): Update.
960 * sh-tdep.c (sh_gdbarch_init): Update.
961 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
962 * v850-tdep.c (v850_gdbarch_init): Update.
963 * avr-tdep.c (avr_gdbarch_init): Update.
964 * ia64-tdep.c (ia64_gdbarch_init): Update.
965 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
966 * vax-tdep.c (vax_gdbarch_init): Update.
967 * alpha-tdep.c (alpha_gdbarch_init): Update.
968 * arm-tdep.c (arm_gdbarch_init): Update.
969 * mips-tdep.c (mips_gdbarch_init): Update.
970 * i386-tdep.c (i386_gdbarch_init): Update.
971
5bd8c6d0
AC
9722002-08-23 Andrew Cagney <ac131313@redhat.com>
973
974 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
975 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
976
e73e1724
MK
9772002-08-24 Mark Kettenis <kettenis@gnu.org>
978
979 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
980 problems.
981
3e6564e1
JB
9822002-08-23 Joel Brobecker <brobecker@gnat.com>
983
984 * infrun.c (handle_inferior_event): Move a comment outside of a
985 function call, in order to avoid indent reformatting this part
986 of the code in an unreadable way.
987
81d0cc19
GS
9882002-08-23 Grace Sainsbury <graces@redhat.com>
989
990 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
991 when breakpoints fail. Move general breakpoint error messages to
992 insert_breakpoints.
993 * breakpoint.c (insert_breakpoints): Change warnings when
994 breakpoints are nto inserted to specify the type. Remove call to
995 memory_error when hardware breakpoints can't be inserted. Remove
996 multiple calls to warning so all messages are sent to the user at
997 once.
998 (delete_breakpoints): Make insert error messsages more explicit.
999
17574093
DJ
10002002-08-23 Daniel Jacobowitz <drow@mvista.com>
1001
1002 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1003 gdbserver/ChangeLog.
1004
8acc2935
MK
10052002-08-23 Mark Kettenis <kettenis@gnu.org>
1006
dfe01d39
MK
1007 * i386-tdep.c: Include "objfiles.h".
1008 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1009 skip_trampoline_code.
1010 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1011 (CPLUS_MARKER): Define to '.'.
1012
8acc2935
MK
1013 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1014 member.
1015 (linux_corefile_thread_callback): Increase args->num_notes.
1016 (linux_make_note_section): Initialize thread_args.num_notes, and
1017 use it to determine whether notes for any threads were created.
1018
151fefe2 10192002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1020
1021 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1022 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1023 and PCUNKILL.
1024 (write_with_trace): Conditionalize out the switch branch handling
1025 PCSHOLD if the corresponding macro is not defined. Likewise for
1026 PRSABORT and PRSTOP.
1027 This change will be needed by the Interix port.
1028
e1507482
EZ
10292002-08-22 Elena Zannoni <ezannoni@redhat.com>
1030
1031 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1032 write_register wherever possible instead of manipulating the
1033 register bytes directly.
1034 Assign VALUE_CONTENTS to a variable and use that.
1035 The GPR numbers are now dependent on the architecture.
1036
96ff0de4
EZ
10372002-08-22 Elena Zannoni <ezannoni@redhat.com>
1038
1039 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1040 ev_offset fields.
1041 (skip_prologue): Add support for BookE/e500 instructions.
1042 (e500_extract_return_value): New function.
1043 (frame_get_saved_regs): Add support for saving ev registers and
1044 pseudo gpr's.
1045 (e500_store_return_value): New function.
1046 (rs6000_gdbarch_init): Move up default intializations of
1047 deprecated_extract_return_value and store_return_value. Overwrite
1048 init of store_return_value with e500 specific version.
1049 Set extract_return_value for e500.
1050
fbefca5b
EZ
10512002-08-22 Elena Zannoni <ezannoni@redhat.com>
1052
1053 * blockframe.c (generic_call_dummy_register_unwind): Use
1054 regcache_cooked_read to catch cases in which the variable is
1055 stored in a pseudo register.
1056
4d210288
AC
10572002-08-22 Andrew Cagney <cagney@redhat.com>
1058
1059 * NEWS: Mention that the i960 has been made obsolete.
1060 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1061 i960-tdep.c
1062 (remote-nrom.o): Obsolete target.
1063 (remote-nindy.o, i960-tdep.o): Ditto.
1064 * remote-nrom.c: Make file obsolete.
1065 * remote-nindy.c, remote-vx960.c: Ditto.
1066 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1067 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1068 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1069 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1070 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1071 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1072 i960-*-vxworks* obsolete.
1073 * MAINTAINERS: Note that the i960 is obsolete.
1074
6c0c456d
CV
10752002-08-21 Corinna Vinschen <vinschen@redhat.com
1076
1077 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1078 detach to allow reinitialization.
1079
9f9d12b3
AC
10802002-08-22 Andrew Cagney <ac131313@redhat.com>
1081
1082 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1083 attempt).
1084
ebeb39fe
JB
10852002-08-22 Jim Blandy <jimb@redhat.com>
1086
1087 * coffread.c (coff_symfile_read): Don't try to read the line
1088 number table from disk if the image file doesn't have a symbol
1089 table; we'll never actually look at the info anyway, and Windows
1090 ships DLL's with bogus file offsets for the line number data.
1091
5bf1c677
EZ
10922002-08-21 Elena Zannoni <ezannoni@redhat.com>
1093
1094 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1095 an e500 executable.
1096
71b8ef93
MS
10972002-08-21 Michael Snyder <msnyder@redhat.com>
1098
1099 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1100 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1101 (DEFAULT_MIPS_TYPE): Delete unused macro.
1102 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1103 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1104
d174216d
JB
11052002-08-21 Jim Blandy <jimb@redhat.com>
1106
1107 * valops.c (value_cast): Simplify and correct logic for doing a
1108 static cast from a pointer to a base class to a pointer to a
1109 derived class.
1110
0ab7a791
AC
11112002-08-21 Andrew Cagney <ac131313@redhat.com>
1112
1113 * infcmd.c (default_print_registers_info): Replace
1114 do_registers_info.
1115 (registers_info): Use gdbarch_print_registers_info instead of
1116 DO_REGISTERS_INFO.
1117 * inferior.h (default_print_registers_info): Replace
1118 do_registers_info.
1119 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1120 (DO_REGISTERS_INFO): Change to a predicate function.
1121 * gdbarch.h, gdbarch.c: Regenerate.
1122
e23792cc
KS
11232002-08-21 Keith Seitz <keiths@redhat.com>
1124
1125 * gdb-events.sh: Add target-changed event.
1126 * gdb-events.c: Regenerated.
1127 * gdb-events.c: Regenerated.
1128 * valops.c (value_assign): Add target-changed event notification
1129 to inlval_register, lval_memory, and lval_reg_frame_relative.
1130
9fb14e79
JB
11312002-08-21 Joel Brobecker <brobecker@gnat.com>
1132
1133 * NEWS: Add an entry regarding the improvement of the next/step
1134 operation on Alpha Tru64 multi-processor machines.
1135
6d39a69f
AC
11362002-08-21 Andrew Cagney <ac131313@redhat.com>
1137
72acd513
AC
1138 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1139 directores.
342af04b 1140 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1141 * Makefile.in (install-gdbtk): Move to install section.
1142 (rdi-share/libangsd.a): Move to end of file.
1143
fa5f27c7
AC
11442002-08-19 Andrew Cagney <ac131313@redhat.com>
1145
1146 * frame.c (frame_register_unwind): When a register, set addrp to
1147 the register's byte.
1148
5a89d8aa
MS
11492002-08-20 Michael Snyder <msnyder@redhat.com>
1150
1151 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1152 used locally, so move them from the target machine header to here.
1153 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1154 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1155 Make static.
1156 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1157
822e978b
AC
11582002-08-20 Andrew Cagney <cagney@redhat.com>
1159
1160 * NEWS: Mention that the Apollo line was made obsolete.
1161 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1162 m68*-hp-hpux* obsolete.
1163 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1164 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1165 * buildsym.c (make_blockvector): Make static.
1166 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1167 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1168 (ALLDEPFILES): Remove dstread.c.
1169 (dstread.o): Obsolete make rule.
1170 * dstread.c: Makefile obsolete.
1171 * dst.h: Ditto.
1172 * config/m68k/hp300hpux.mt: Ditto.
1173 * config/m68k/hp300hpux.mh: Ditto.
1174 * config/m68k/hp300bsd.mt: Ditto.
1175 * config/m68k/hp300bsd.mh: Ditto.
1176 * config/m68k/apollo68b.mt: Ditto.
1177 * config/m68k/apollo68v.mh: Ditto.
1178 * config/m68k/apollo68b.mh: Ditto.
1179
e41b17f0
MS
11802002-08-20 Michael Snyder <msnyder@redhat.com>
1181
1182 * mips-tdep.c (mips_in_return_stub): Make static.
1183 (mips_gdbarch_init): Set in_solib_return_trampoline.
1184 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1185
d50355b6
MS
11862002-08-20 Michael Snyder <msnyder@redhat.com>
1187
1188 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1189 * gdbarch.c, gdbarch.h: Regenerate.
1190 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1191 Add.
1192 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1193
757a7cc6
MS
11942002-08-20 Michael Snyder <msnyder@redhat.com>
1195
1196 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1197 (mips_gdbarch_init): Set skip_trampoline_code,
1198 in_solib_call_trampoline.
1199 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1200 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1201
c8001721
EZ
12022002-08-20 Elena Zannoni <ezannoni@redhat.com>
1203
1204 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1205
1206 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1207 vector type for ev registers.
1208 (e500_pseudo_register_read): New function.
1209 (e500_pseudo_register_write): New function.
1210 (e500_dwarf2_reg_to_regnum): New function.
1211 (PPC_UISA_NOFP_SPRS): New macro.
1212 (PPC_EV_REGS): New macro.
1213 (PPC_GPRS_PSEUDO_REGS): New macro.
1214 (registers_e500): New register set for e500.
1215 (variants): Add e500 variant.
1216 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1217 before setting architectural dependent variations. Initialize ev
1218 registers numbers. Add case for e500 architecture. Set the
1219 number of pseudo registers.
1220
64366f1c
EZ
12212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1222
1223 * rs6000-tdep.c: Clean up comments.
1224
7e78f0ca
AC
12252002-08-20 Andrew Cagney <cagney@redhat.com>
1226
1227 * h8300-tdep.c: Re-indent file.
1228
697f7479
JB
12292002-08-20 Jim Blandy <jimb@redhat.com>
1230
1231 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1232 default for this.
697f7479 1233
e86ae29f
KS
12342002-08-20 Keith Seitz <keiths@redhat.com>
1235
1236 * breakpoints.c (watch_command_1): Use internal breakpoint
1237 when setting a watchpoint_scope breakpoint.
1238
216b504f
EZ
12392002-08-20 Elena Zannoni <ezannoni@redhat.com>
1240
1241 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1242 (build_builtin_type_vec64i): Ditto.
1243 (build_builtin_type_vec128): Ditto.
1244 (build_builtin_type_vec128i): Ditto.
1245
f7ab6ec6
MS
12462002-08-19 Michael Snyder <msnyder@redhat.com>
1247
1248 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1249 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1250 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1251 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1252 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1253 CALL_DUMMY_ADDRESS): Delete.
1254 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1255 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1256 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1257 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1258 push_return_address.
1259 (mips_register_raw_size, mips_eabi_use_struct_convention,
1260 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1261 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1262 mips_init_extra_frame_info, mips_eabi_push_arguments,
1263 mips_n32n64_push_arguments, mips_push_return_address,
1264 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1265 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1266
b5d1566e
MS
12672002-08-19 Michael Snyder <msnyder@redhat.com>
1268
1269 * mips-tdep.c (mips_frame_num_args): New function.
1270 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1271 frame_saved_pc, frame_args_address, frame_locals_address,
1272 frame_num_args, and frame_args_skip.
1273 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1274 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1275 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1276 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1277
2f1488ce
MS
12782002-08-20 Michael Snyder <msnyder@redhat.com>
1279
1280 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1281 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1282 * mips-tdep.c (mips_store_struct_return): New function.
1283 (mips_extract_struct_value_address): New function.
1284 (mips_gdbarch_init): Set store_struct_return and
1285 extract_struct_value_address.
1286
41ff2da1
DC
12872002-08-20 David Carlton <carlton@math.stanford.edu>
1288
1289 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1290 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1291 (read_file_scope): Check that line_header is nonzero before
1292 decoding macro information.
1293
e5451d58
MK
12942002-08-20 Mark Kettenis <kettenis@gnu.org>
1295
1296 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1297 flag the general-purpose registers as floating-point on targets
1298 that don't support the floating-point registers.
1299
4a6daafa
EZ
13002002-08-20 Elena Zannoni <ezannoni@redhat.com>
1301
1302 * rs6000-tdep.c (altivec_register_p): Delete.
1303 (rs6000_do_altivec_registers): Delete.
1304 (rs6000_altivec_registers_info): Delete.
1305 (rs6000_do_registers_info): Delete.
1306 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1307 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1308
ab4327e0
EZ
13092002-08-20 Elena Zannoni <ezannoni@redhat.com>
1310
1311 * infcmd.c (do_registers_info): Print vector registers in hex
1312 format only.
1313 (print_vector_info): Check that printing registers
1314 makes sense.
1315 (print_float_info): Ditto.
1316
cb1d2653
AC
13172002-08-20 Andrew Cagney <ac131313@redhat.com>
1318
1319 * mips-tdep.c (mips_gdbarch_init): Update.
1320 (mips_o32_extract_return_value): Rewrite.
1321 (mips_o32_store_return_value): Rewrite.
1322 (mips_o32_xfer_return_value): New function.
1323 (mips_xfer_register): Tweak debug print message. Allow for
1324 buf_offset when dumping the value transfered.
1325
dfc3d9b2
AC
13262002-08-20 Andrew Cagney <ac131313@redhat.com>
1327
1328 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1329 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1330 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1331 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1332 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1333
7807aa61
MS
13342002-08-14 Michael Snyder <msnyder@redhat.com>
1335
1336 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1337
489461e2
EZ
13382002-08-19 Elena Zannoni <ezannoni@redhat.com>
1339
1340 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1341 register.
1342 (P): New macro to define a register as a pseudo register.
1343 (R, R4, R8, R16, FR32, R64, R0): Updated.
1344 (struct variant): Add new fields for number of pseudo registers
1345 and number of total registers.
1346 (tot_num_registers): New macro replacing....
1347 (num_registers): ...deleted macro.
1348 (num_registers): New function.
1349 (num_pseudo_registers): New function.
1350 (variants): Update all variants to intialize new fields correctly.
1351 Postpone initialization of number of pseudo regs and real regs.
1352 (init_variants): New function.
1353 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1354 registers offsets.
1355
fcaffe4c
DC
13562002-08-19 David Carlton <carlton@math.stanford.edu>
1357
2c2738a0
DC
1358 * valops.c (search_struct_field): Change error message to treat
1359 return value of 0 from value_static_field as meaning that field is
1360 optimized out.
1361 (value_struct_elt_for_reference): Ditto.
1362 * values.c (value_static_field): Treat an unresolved location the
1363 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1364 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1365 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1366 * MAINTAINERS: Add self to Write After Approval list.
1367
88658117
AC
13682002-08-19 Andrew Cagney <ac131313@redhat.com>
1369
1370 * mips-tdep.c (mips_xfer_register): New function.
1371 (mips_n32n64_extract_return_value): Rewrite.
1372 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1373 instead of deprecated_extract_return_value.
1374
21283beb
EZ
13752002-08-19 Elena Zannoni <ezannoni@redhat.com>
1376
1377 * rs6000-tdep.c (TDEP): Delete macro.
1378 (branch_dest): Replace use of TDEP macro with its body.
1379 (rs6000_pop_frame): Ditto.
1380 (rs6000_push_arguments): Ditto.
1381 (rs6000_skip_trampoline_code): Ditto.
1382 (rs6000_frame_saved_pc): Ditto.
1383 (rs6000_frame_chain): Ditto.
1384 (rs6000_register_name): Ditto.
1385 (rs6000_register_byte): Ditto.
1386 (rs6000_register_raw_size): Ditto.
1387 (rs6000_register_virtual_type): Ditto.
1388 (rs6000_register_convertible): Ditto.
1389 (rs6000_convert_from_func_ptr_addr): Ditto.
1390
bf072999
DJ
13912002-08-19 Daniel Jacobowitz <drow@mvista.com>
1392
1393 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1394 conditionally.
1395 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1396 MIPS_LINUX_JB_ELEMENT_SIZE.
1397 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1398 for MAX_REGISTER_RAW_SIZE arrays.
1399 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1400 MIPS_LINUX_JB_ELEMENT_SIZE.
1401
9b949a49
PM
14022002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1403
1404 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1405
6d3e79c6
AS
14062002-08-19 Aidan Skinner <aidan@velvet.net>
1407
1408 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1409 ada-valprint.c ada-tasks.c.
1410 (YYFILES): Add ada-exp.y.
1411 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1412 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1413 (ada-exp.tab.o): New target.
1414
06c0b04e
AC
14152002-08-18 Andrew Cagney <ac131313@redhat.com>
1416
1417 * regcache.c (regcache_xfer_part): New function.
1418 (regcache_raw_read_part): New function.
1419 (regcache_raw_write_part): New function.
1420 (regcache_cooked_read_part): New function.
1421 (regcache_cooked_write_part): New function.
1422 * regcache.h (regcache_raw_read_part): Declare.
1423 (regcache_raw_write_part): Declare.
1424 (regcache_cooked_read_part): Declare.
1425 (regcache_cooked_write_part): Declare.
1426
92d1e331
DJ
14272002-08-18 Daniel Jacobowitz <drow@mvista.com>
1428
1429 * remote.c (remote_open_1): Add async_p.
1430 (remote_async_open_1): Delete.
1431 (open_remote_target): Delete.
1432 (remote_open, extended_remote_open): Update calls to remote_open_1.
1433 (remote_async_open, extended_remote_async_open): Call
1434 remote_open_1 instead of remote_async_open_1.
1435
247055de
MK
14362002-08-19 Mark Kettenis <kettenis@gnu.org>
1437
1438 * blockframe.c: Fix a few coding standard violations.
1439
641eda39
MK
14402002-08-19 Mark Kettenis <kettenis@gnu.org>
1441
0b717710
MK
1442 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1443 here from ...
1444 * config/i386/tm-i386sco5.h: ... here. File removed.
1445 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1446
26d28e12 1447 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1448 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1449 (TM_FILE): Set to tm-i386.h.
1450 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1451 * config/i386/tm-i386v.h: Remove file.
1452 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1453 instead of "i386/tm-i386v.h".
1454 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1455 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1456 "i386/tm-i386v.h".
1457 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1458 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1459 "i386/tm-i386.h".
1460
d4e0bab4
MK
14612002-08-18 Mark Kettenis <kettenis@gnu.org>
1462
1463 * config/i386/nm-i386v.h: Add protection against
1464 multiple-inclusion.
1465 (i386_register_u_addr): Remove prototype.
1466 (register_u_addr): New prototype.
1467 (REGISTER_U_ADDR): Redefine accordingly.
1468 * i386v-nat.c: Improve several comments.
1469 (i386_register_u_addr): Change signature and rename to
1470 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1471 ubase variable.
1472
46cac009
AC
14732002-08-18 Andrew Cagney <ac131313@redhat.com>
1474
1475 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1476 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1477 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1478 deprecated_extract_return_value.
1479 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1480 rename mips_o32o64_push_arguments.
1481 (mips_gdbarch_init): Update.
1482 (mips_extract_return_value): Delete.
1483 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1484 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1485 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1486 (mips_n32n64_extract_return_value): Clone
1487 mips_extract_return_value.
1488 (mips_store_return_value): Delete.
1489 (mips_o32_store_return_value): Clone mips_store_return_value.
1490 (mips_o64_store_return_value): Clone mips_store_return_value.
1491 (mips_eabi_store_return_value): Clone mips_store_return_value.
1492 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1493
d2e4a39e
AS
14942002-08-18 Aidan Skinner <aidan@velvet.net>
1495
0c30c098
AS
1496 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1497 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1498
14992002-08-18 Aidan Skinner <aidan@velvet.net>
1500
1501 * ada-lang.c: Run through gdb_indent.sh.
1502 * ada-lang.h: Run through gdb_indent.sh.
1503 * ada-tasks.c: Run through gdb_indent.sh.
1504 * ada-typeprint.c: Run through gdb_indent.sh.
1505 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1506
01fc4e33
AC
15072002-08-18 Andrew Cagney <ac131313@redhat.com>
1508
1509 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1510 ABI.
1511
d8ee244c
MK
15122002-08-18 Mark Kettenis <kettenis@gnu.org>
1513
c38d8261
MK
1514 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1515
222db64c
MK
1516 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1517 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1518
c2848c82
MK
1519 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1520 write_register_gen instead of write_register_bytes.
1521
d8ee244c
MK
1522 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1523 i[3456]-*-osf1mk* configurations have been made obsolete.
1524 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1525 i[3456]86-*-osf1mk* hosts obsolete.
1526 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1527 targets obsolete.
1528 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1529 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1530 config/i386/i386m3.mt, config/i386/nm-m3.h,
1531 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1532 config/i386/i386mk.mh, config/i386/i386mk.mt,
1533 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1534 obsolete.
1535 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1536 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1537 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1538
61d8d407
AC
15392002-08-18 Andrew Cagney <ac131313@redhat.com>
1540
1541 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1542 (hppa_value_returned_from_stack): Declare.
1543 (hppa_extract_return_value): Declare.
1544 * config/pa/hppa.mt: New file.
1545 * configure.tgt: Recognize hppa*-*-*.
1546 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1547
0c52bd59
MK
15482002-08-18 Mark Kettenis <kettenis@gnu.org>
1549
1550 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1551 comment.
1552
b5686e99
MK
15532002-08-17 Mark Kettenis <kettenis@gnu.org>
1554
1555 * top.c (gdb_rl_operate_and_get_next): Make sure
1556 operate-and-get-next functions correctly even when the history
1557 list is completely filled.
1558
c1bab85b
AC
15592002-08-18 Andrew Cagney <ac131313@redhat.com>
1560
1561 * MAINTAINERS (Target Instruction Set Architectures): Rename
1562 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1563 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1564 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1565 already listed under Host/Native.
1566
1567 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1568 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1569 mips*-*-*.
1570
32089c7c
AC
15712002-08-17 Andrew Cagney <ac131313@redhat.com>
1572
1573 * config/ia64/ia64.mt: New file.
1574 * config/alpha/alpha.mt: New file.
1575 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1576 ia64-linux-gnu. Mention that ia64-elf is broken.
1577 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1578
b4671f85
MK
15792002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1580
1581 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1582 generic_func_frame_valid instead of func_frame_valid.
1583
c8edd8b4
JB
15842002-08-16 Joel Brobecker <brobecker@gnat.com>
1585
1586 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1587 procfs appears to be broken when debugging on multi-processor
1588 machines. So enable software single stepping in order to avoid
1589 using the procfs interface to do next/step operations, using
1590 internal breakpoints instead.
1591
1592 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1593 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1594 make this pc address equal to the value it would have if the
1595 system stepping capability was used. Also set a new flag used
1596 to ensure that we don't readjust the PC one more time later.
1597
1598 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1599 address by DECR_PC_AFTER_BREAK when software single step is
1600 in use for this architecture, as this has already been taken
1601 care of in handle_inferior_event().
1602
238617f6
JB
16032002-08-16 Joel Brobecker <brobecker@gnat.com>
1604
1605 * infrun.c (handle_inferior_event): Minor reformatting, to make
1606 a rather long condition expression easier to read.
1607
541a7aac
AC
16082002-08-16 Andrew Cagney <ac131313@redhat.com>
1609
1610 * Makefile.in (gdbtk.o): Move to end of file.
1611 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1612 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1613 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1614 (gdbtk-wrapper.o, gdbres.o): Ditto.
1615
f92d4a7b
AC
16162002-08-16 Andrew Cagney <ac131313@redhat.com>
1617
1618 * Makefile.in (copying.o): Separate out compile rule.
1619 (hpux-thread.o, procfs.o, signals.o): Ditto.
1620 (v850ice.o, z8k-tdep.o): Ditto.
1621 (tui-file.o): Move to TUI section.
1622 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1623 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1624
1cce71eb
JB
16252002-08-16 Joel Brobecker <brobecker@gnat.com>
1626
1627 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1628 skip_trampoline_code, for better namespace-proofing.
1629
1630 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1631
0851f23d
JB
16322002-08-16 Joel Brobecker <brobecker@gnat.com>
1633
1634 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1635
f8d40ec8
JB
16362002-08-16 Joel Brobecker <brobecker@gnat.com>
1637
1638 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1639 signal, check whether we hit a breakpoint before checking for a
1640 single step breakpoint. Otherwise, GDB fails to notice that a
1641 breakpoint has been hit when stepping onto a breakpoint.
1642
63d022e0
KS
16432002-08-16 Keith Seitz <keiths@redhat.com>
1644
1645 * gdb-events.sh (clear_gdb_event_hooks): New function.
1646 * gdb-events.c: Regenerate.
1647 * gdb-events.h: Regenerate.
1648
6e31adb3
AC
16492002-08-16 Andrew Cagney <ac131313@redhat.com>
1650
1651 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1652 not_a_sw_breakpoint.
1653 * breakpoint.h (bpstat_stop_status): Add parameter names.
1654
c8189ed1
GS
16552002-08-16 Grace Sainsbury <graces@redhat.com>
1656
1657 * remote.c (remote_insert_hw_breakpoint)
1658 (remote_remove_hw_breakpoint): Fix calculation of length field
1659 for Z-packet.
1660
d05285fa
MS
16612002-08-15 Michael Snyder <msnyder@redhat.com>
1662
466d7106
MS
1663 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1664 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1665 (supply_fpregset): Ditto.
1666
d05285fa
MS
1667 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1668 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1669 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1670 (TARGET_READ_SP): Delete.
bf1f5b4c 1671 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1672 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1673 Delete.
1674 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1675 from macros to functions.
bf1f5b4c 1676
d05285fa
MS
1677 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1678 (mips_register_convertible, mips_register_convert_to_virtual,
1679 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1680 (mips_read_sp): New function.
1681 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1682 (mips_do_registers_info): Make static.
1683 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1684 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1685 (mips_register_convert_from_type, mips_register_convert_to_type):
1686 New functions.
1687 (mips_gdbarch_init): Set up function_start_offset,
1688 register_virtual_size, pc_in_sigtramp.
d05285fa 1689
e76f1f2e
AC
16902002-08-15 Andrew Cagney <ac131313@redhat.com>
1691
1692 * infcmd.c (vector_info): New function.
1693 (_initialize_infcmd): Add command "info vector".
1694 (print_vector_info): New function.
1695
1696 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1697 * gdbarch.h, gdbarch.c: Regenerate.
1698
4782dc19
AC
16992002-08-15 Andrew Cagney <ac131313@redhat.com>
1700
1701 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1702 ``print_all''. Only print vector registers when ``print_all''.
1703
23e3a7ac
AC
17042002-08-15 Andrew Cagney <ac131313@redhat.com>
1705
8e186fd6
AC
1706 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1707 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1708
23e3a7ac
AC
1709 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1710 Add `args' parameter.
1711 * gdbarch.h, gdbarch.c: Regenerate.
1712
1713 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1714
1715 * infcmd.c (float_info): Call print_float_info.
1716 (print_float_info): New function. By default, print the
1717 floating-point registers.
1718
1719 * arch-utils.h (default_print_float_info): Delete declaration.
1720 * arch-utils.c (default_print_float_info): Delete function.
1721
e0ca2bb9
MK
17222002-08-16 Mark Kettenis <kettenis@gnu.org>
1723
3f733acc
MK
1724 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1725 out define.
1726
7d8d2918
MK
1727 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1728 FRAME.
1729
1c7cc583
MK
1730 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1731 * configure.host: Make i[3456]86-*-aix host obsolete.
1732 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1733 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1734 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1735 config/i386/xm-i386aix.h: Make files obsolete.
1736 * i386aix-nat.c: Make file obsolete.
1737 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1738 (i386aix-nat.o): Make target obsolete.
1739
e0ca2bb9
MK
1740 * config/i386/nm-gnu.h: Removed.
1741 * config/i386/nm-i386gnu.h: New file.
1742 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1743 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1744 Moved here from ...
1745 * config/i386/tm-i386gnu.h: ... here. Removed.
1746 * config/i386/xm-i386gnu.h: Removed.
1747 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1748 (NAT_FILE): Set to nm-i386gnu.h.
1749 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1750 * i386-tdep.c: New file.
1751 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1752 (i386gnu-tdep.o): Specify dependencies.
1753
16057ec7 17542002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1755
6b99ee2e
MK
1756 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1757 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1758 Adjust a few comments to reflect reality a bit closer.
1759 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1760 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1761 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1762 target_insert_watchpoint, target_remove_watchpoint):
1763 Move defines to ...
1764 * config/i386/nm-i386sco5.h: ... here.
1765 (kernel_u_size): Add prototype. Improve a few comments and add
1766 protection against multiple inclusion.
1767
d9a6f65c
MK
1768 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1769 out define.
1770
047eff6a
MK
1771 * uw-thread.c (SP_ARG0): Define if not already defined.
1772 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1773
dcdb1290
MK
1774 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1775
5d2d0b2a
MK
1776 * config/i386/tm-i386.h: Don't include "regcache.h".
1777
61113f8b
MK
1778 * i387-tdep.h (i387_print_float_info): New prototype.
1779 * i387-tdep.c (print_i387_value, print_i387_ext,
1780 print_i387_status_word, print_i387_control_word): Add `struct
1781 ui_file *' argument and use it for output.
1782 (i387_print_float_info): Renamed from i387_float_info. Add
1783 `struct gdbarch *' and `struct ui_file *' arguments and use the
1784 latter for output.
1785 * i386-tdep.c: Include "i387-tdep.h".
1786 (i386_gdbarch_init): Set print_float_info.
1787 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1788 (FLOAT_INFO): Remove define.
1789
46e0f506
MS
17902002-08-13 Michael Snyder <msnyder@redhat.com>
1791
1792 * mips-tdep.c (mips_push_arguments): Rename to
1793 mips_eabi_push_arguments, and tune for EABI.
1794 (MIPS_REGS_HAVE_HOME_P): Delete.
1795 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1796 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1797 Delete references to mips_regs_have_home_p.
1798
409268de
KS
17992002-08-14 Keith Seitz <keiths@redhat.com>
1800
1801 * Makefile.in (install-gdbtk): Create insight plugin directory.
1802 Install plugins.tcl file.
1803
ffc6a242
KS
18042002-08-14 Keith Seitz <keiths@redhat.com>
1805
1806 * configure.in: Move SUBDIRS to near top of the file so that
1807 --enable options may add things to it.
1808 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1809 * configure: Regenerate.
1810
ebafbe83
MS
18112002-08-13 Michael Snyder <msnyder@redhat.com>
1812
1813 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1814 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1815 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1816
32f6f25d
AC
18172002-08-13 Andrew Cagney <ac131313@redhat.com>
1818
1819 * vax-tdep.c (vax_get_saved_register): Delete function.
1820 (vax_gdbarch_init): Update.
1821 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1822 (ns32k_gdbarch_init): Update.
1823 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1824 (alpha_gdbarch_init): Update.
1825
53826de9
AC
18262002-08-13 Andrew Cagney <cagney@redhat.com>
1827
1828 * regcache.c (init_regcache_descr): Overallocate the
1829 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1830 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1831 nr_raw_registers.
1832 (set_register_cached): Add range checking assertions. Use
1833 current_regcache.
1834
16057ec7 18352002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1836
1837 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1838 numbers for MMX registers.
1839
7b4c2dce
AC
18402002-08-13 Andrew Cagney <cagney@redhat.com>
1841
1842 * i386-tdep.c (i386_gdbarch_init): Use
1843 generic_unwind_get_saved_register.
1844
1e03ad20
KB
18452002-08-13 Kevin Buettner <kevinb@redhat.com>
1846
1847 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1848 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1849 target vector.
1850 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1851 Delete. Add comment regarding this now-deleted target method.
1852
548bcbec
SC
18532002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1854
1855 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1856 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1857 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1858 real PC and the page number (if it's within the memory bank window).
1859 (m68hc11_pseudo_register_write): Likewise when saving.
1860 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1861 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1862 (m68hc11_register_raw_size): And use 32-bit for it.
1863 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1864 16K memory bank is used by the prog; also use the virtual pc.
1865
7df11f59
SC
18662002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1867
1868 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1869 (m68hc11_gdbarch_init): Install it in gdbarch.
1870 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1871 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1872 (MSYMBOL_SIZE): New for documentation.
1873 (insn_return_kind): Enum to specify how a function returns.
1874 (frame_extra_info): Cleanup and record the return mode.
1875 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1876 register in address computation.
1877 (m68hc11_get_return_insn): New to obtain the return instruction used
1878 by the function.
1879 (m68hc11_frame_init_saved_regs): Take into account the return
1880 instruction used by the function for far and interrupt functions.
1881 (m68hc11_init_extra_frame_info): Take into account page register.
1882 (m68hc11_frame_args_address): Adjust according to the return mode.
1883 (show_regs): Print page register only when it's used.
1884
5706502a
SC
18852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1886
1887 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1888 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1889 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1890 registers.
1891 (m68hc11_register_raw_size): Likewise.
1892
28fc6740
AC
18932002-08-13 Andrew Cagney <cagney@redhat.com>
1894
1895 * i386-tdep.c (i386_register_name): Handle mmx registers.
1896 (mmx_regnum_p): New function.
1897 (i386_mmx_names): New array.
1898 (mmx_num_regs): New variable.
1899 (i386_pseudo_register_read): New function.
1900 (i386_pseudo_register_write): New function.
1901 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1902
1903 * regcache.c (regcache_raw_read_unsigned): New function.
1904 (regcache_raw_read_signed): New function.
1905 * regcache.h (regcache_raw_read_unsigned): Declare.
1906 (regcache_raw_read_signed): Declare.
1907
a378f419
AC
19082002-08-13 Andrew Cagney <cagney@redhat.com>
1909
1910 * regcache.c (regcache_raw_read_as_address): Delete function.
1911 (regcache_cooked_read_signed): New function.
1912 (regcache_cooked_read_unsigned): New function.
1913 * regcache.h (regcache_cooked_read_signed): Declare.
1914 (regcache_cooked_read_unsigned): Declare.
1915 (regcache_raw_read_as_address): Delete declaration.
1916
1917 * blockframe.c (generic_read_register_dummy): Use
1918 regcache_cooked_read_unsigned.
1919 * i386-tdep.c (i386_extract_struct_value_address): Use
1920 regcache_cooked_read_unsigned.
1921
81967506
SC
19222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1923
1924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1925 double sizes according to ELF ABI flags.
1926 (gdbarch_tdep): Record elf_flags.
1927
ffe1f3ee
SC
19282002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1929
1930 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1931 (m6812_prolog): They can appear in 68HC12 function prologue.
1932 (m68hc11_frame_chain): Cleanup.
1933
98216c5d
AC
19342002-08-12 Andrew Cagney <cagney@redhat.com>
1935
1936 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1937 declarations.
1938 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1939 (i386_linux_register_raw_size): Delete function.
1940 (i386_linux_init_abi): Update.
1941 * i386-tdep.c (i386_register_raw_size): Delete function.
1942 (i386_register_byte): Delete function.
1943 (i386_gdbarch_init): Update.
1944 (i386_register_size): Delete array.
1945 (i386_register_offset): Delete array.
1946
1947 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1948 (REGISTER_RAW_SIZE): Delete macro.
1949 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1950 (REGISTER_BYTE): Delete macro.
1951
3b19021e
AS
19522002-08-11 Aidan Skinner <aidan@velvet.net>
1953
1954 * ada-lang.c (ada_lookup_partial_symbol)
1955 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1956 prototype names so that grep ^func works properly.
1957
1958 * ada-lang.c (ada_array_element_type)
1959 (ada_lookup_partial_symbol): Fix typos in parameter list.
1960
1961 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1962 Fix prototype names so that grep ^func works properly.
1963
b063e7a2
AC
19642002-08-10 Andrew Cagney <cagney@redhat.com>
1965 Elena Zannoni <ezannoni@redhat.com>
1966 Martin M. Hunt <hunt@redhat.com>
1967
1968 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1969 (build_builtin_type_vec128i): Set the vector bit.
1970 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1971 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1972 (build_builtin_type_vec64): New function.
1973 (build_builtin_type_vec64i): New function.
1974 (build_gdbtypes): Initialize builtin_type_vec64 and
1975 builtin_type_vec64i.
1976
a7e3c2ad
AC
19772002-08-09 Andrew Cagney <cagney@redhat.com>
1978
1979 * regcache.c (regcache_dump): Compare the register offset
1980 with REGISTER_BYTE.
1981 * arch-utils.c (generic_register_byte): New function.
1982 * arch-utils.h (generic_register_byte): Declare.
1983 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1984 * gdbarch.h, gdbarch.c: Regenerate.
1985
af030b9a
AC
19862002-08-09 Andrew Cagney <cagney@redhat.com>
1987
1988 * regcache.c: Include "gdbcmd.h"
1989 (_initialize_regcache): Add commands "maintenance print
1990 registers", "maintenance print raw-registers" and "maintenance
1991 print cooked-registers".
1992 (enum regcache_dump_what): Define.
1993 (dump_endian_bytes): New function.
1994 (regcache_dump): New function.
1995 (regcache_print): New function.
1996 (maintenance_print_registers): New function.
1997 (maintenance_print_raw_registers): New function.
1998 (maintenance_print_cooked_registers): New function.
1999 * Makefile.in (regcache.o): Update dependencies.
2000
cb3d25d1
MS
20012002-08-09 Michael Snyder <msnyder@redhat.com>
2002
2003 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2004 (mips_push_arguments): Correct some comments. Use paddr_nz
2005 for printing addresses in debug output. Replace static
2006 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2007 (mips_n32n64_push_arguments): New function, cloned from
2008 mips_push_arguments and tuned for the n32/n64 ABI.
2009 (mips_push_register): Buffer needs dynamic allocation.
2010 (mips_print_register): Ditto.
2011 (do_gp_register_row): Ditto.
2012 (mips_store_return_value): Ditto.
2013 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2014
2163ab9d
DH
20152002-08-09 Don Howard <dhoward@redhat.com>
2016
2017 * memattr.c (mem_info_command): Print special case of upper bound
2018 as max CORE_ADDR + 1.
2019
b78bcb18
MS
20202002-08-08 Michael Snyder <msnyder@redhat.com>
2021
2022 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2023 returns structs by ref if they're too big to fit in two registers.
2024
ffabd70d
KB
20252002-08-09 Kevin Buettner <kevinb@redhat.com>
2026
2027 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2028 saved regs value.
2029 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2030 mips_find_saved_regs().
2031 (mips_pop_frame): Likewise.
2032
fbcdb4a3
KB
20332002-08-09 Kevin Buettner <kevinb@redhat.com>
2034
2035 * blockframe.c (frame_saved_regs_register_unwind): Revise
2036 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2037 frames are in use.
2038
3c3bea1c
GS
20392002-08-09 Grace Sainsbury <graces@redhat.com>
2040
2041 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2042 T-packets; the 'a' is not taken as a register number.
2043 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2044 (remote_stopped_data_address): New functions; add to target
2045 vector.
2046 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2047 prototypes to match other implementations of this
2048 function. replace integer argument with pointer -- the length
2049 field in the Z-packet is the length of what is pointed to or 1 if
2050 pointer is null. Add to target vector.
2051 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2052 target vector.
2053
2054 From Mark Salter:
2055 * remote.c (remote_wait): Add support to extract optional
2056 watchpoint information from T-packet. Ignore unrecognized
2057 optional info in T-packet.
2058 (remote_async_wait): Ditto.
2059
5d1d95de
CV
20602002-08-09 Corinna Vinschen <vinschen@redhat.com>
2061
2062 * cli/cli-dump.c: Change fopen modes to use binary open modes
2063 as defined in include/fopen-bin.h throughout.
2064
c86b5b38
MS
20652002-08-08 Michael Snyder <msnyder@redhat.com>
2066
2067 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2068
b30590dc
KB
20692002-08-08 Kevin Buettner <kevinb@redhat.com>
2070
2071 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2072 assertion failure by returning early after a warning.
2073
498868ed
KB
20742002-08-08 Kevin Buettner <kevinb@redhat.com>
2075
2076 * mips-tdep.c (mips_find_saved_regs): Make static.
2077 (mips_frame_init_saved_regs): New function.
2078 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2079 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2080 (mips_find_saved_regs): Delete declaration.
2081
b2dd6311
GS
20822002-08-08 Grace Sainsbury <graces@redhat.com>
2083
3c3bea1c
GS
2084 * remote.c (remote_wait, remote_async_wait): Change
2085 thread_num from int to ULONGEST.
2086 (unpack_varlen_hex): Change result parameter from
2087 int * to ULONGEST *.
b2dd6311 2088
ea47855f
AC
20892002-08-08 Andrew Cagney <ac131313@redhat.com>
2090
2091 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2092 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2093 powerpc*-*-*.
2094 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2095
69db8bae
AC
20962002-08-08 Andrew Cagney <cagney@redhat.com>
2097
2098 * gcore.c (override_derive_stack_segment): Delete variable.
2099 (preempt_derive_stack_segment): Delete function.
2100 (derive_stack_segment): Delete function.
2101 (default_derive_stack_segment): Renamed to derive_stack_segment.
2102 (override_derive_heap_segment): Delete variable.
2103 (preempt_derive_heap_segment): Delete function.
2104 (derive_heap_segment): Delete function.
2105 (default_derive_heap_segment): Rename to derive_heap_segment.
2106
cb811fe7
MS
21072002-08-06 Michael Snyder <msnyder@redhat.com>
2108
2109 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2110 * mips-tdep.c (mips_EABI_use_struct_convention,
2111 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2112 New functions. (mips_use_struct_convention): Delete.
2113 (mips_gdbarch_init): set use_gdbarch_convention.
2114
8b389c40
MS
21152002-08-06 Michael Snyder <msnyder@redhat.com>
2116
2117 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2118 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2119 mips_o32_reg_struct_has_addr): New functions.
2120 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2121
5c27f28a
AC
21222002-08-07 Andrew Cagney <ac131313@redhat.com>
2123
2124 * regcache.c (pseudo_register): Delete function.
2125 (fetch_register): Delete function.
2126 (store_register): Delete function.
2127 (regcache_raw_read, legacy_read_register_gen): Use
2128 target_fetch_registers instead of fetch_register.
2129 (legacy_write_register_gen, regcache_raw_write): Use
2130 target_store_register instead of store_register.
2131 (write_register_bytes): Ditto.
2132
2133 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2134 (STORE_PSEUDO_REGISTER): Delete.
2135 * gdbarch.h, gdbarch.c: Regenerate.
2136
5b331675
CV
21372002-08-06 Corinna Vinschen <vinschen@redhat.com>
2138
2139 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2140 write dump file binary.
2141
6acdf5c7
MS
21422002-08-05 Michael Snyder <msnyder@redhat.com>
2143
2144 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2145 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2146 (mips_gdbarch_init): Set N32 target to be mips64.
2147
b2f01c35
KB
21482002-08-06 Kevin Buettner <kevinb@redhat.com>
2149
2150 * frame.c (find_saved_register): Break out of loop once saved
2151 register address is found. Don't mention sparc in loop comment
2152 anymore.
2153
63db5580
KB
21542002-08-06 Kevin Buettner <kevinb@redhat.com>
2155
2156 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2157 mips_default_saved_regsize to 8.
2158
5e34e75e
AC
21592002-08-06 Andrew Cagney <ac131313@redhat.com>
2160
2161 * gcore.c: Do not include <sys/procfs.h>.
2162 * Makefile.in (gcore.o): Update dependencies.
2163
eb4c54a2
AC
21642002-08-06 Andrew Cagney <cagney@redhat.com>
2165
2166 * configure.tgt: Make arc-*-* obsolete.
2167 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2168 * MAINTAINERS: Make arc-elf obsolete.
2169 * arc-tdep.c: Make file obsolete.
2170 * config/arc/arc.mt: Ditto.
2171 * config/arc/tm-arc.h: Ditto.
2172
ced15480
TR
21732002-08-05 Theodore A. Roth <troth@verinet.com>
2174
c1bab85b 2175 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2176
b4743822
AC
21772002-08-05 Andrew Cagney <ac131313@redhat.com>
2178
2179 * mcore-tdep.c (mcore_gdbarch_init): Use
2180 generic_unwind_get_saved_register instead of
2181 generic_get_saved_register.
2182 * v850-tdep.c (v850_gdbarch_init): Ditto.
2183 * frv-tdep.c (frv_gdbarch_init): Ditto.
2184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2185 * s390-tdep.c (s390_gdbarch_init): Ditto.
2186 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2187 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2188 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2189
3956d554
JB
21902002-08-05 Joel Brobecker <brobecker@gnat.com>
2191
2192 * objfiles.h: Add missing #include "symfile.h"
2193
2194 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2195
8249c0d6
AC
21962002-08-04 Andrew Cagney <ac131313@redhat.com>
2197
2198 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2199 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2200 of FIELD_BITSIZE.
2201
b9d14705
DJ
22022002-08-04 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * NEWS: Cleanup and nitpick.
2205
dd73b9bb
AC
22062002-08-03 Andrew Cagney <ac131313@redhat.com>
2207
2208 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2209
043a27f8
AC
22102002-08-03 Andrew Cagney <ac131313@redhat.com>
2211
2212 * Makefile.in (gdbtk-bp.o): Update dependencies.
2213 (gdbtk-register.o): Ditto.
2214 (gdbtk-varobj.o): Ditto.
2215
46ce284d
AC
22162002-08-03 Andrew Cagney <cagney@redhat.com>
2217
2218 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2219 m68hc11_fetch_pseudo_register.
2220 (m68hc11_pseudo_register_write): Replace
2221 m68hc11_store_pseudo_register.
2222 (m68hc11_gdbarch_init): Update.
2223
b66d6d2e
AC
2224Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2225
2226 * gdbarch.sh: Include "gdb_string.h".
2227 * gdbarch.c: Regenerate.
2228
2229 * regcache.c: Include "gdb_string.h".
2230 * ax-general.c: Ditto.
2231 * varobj.c: Ditto.
2232 * std-regs.c: Ditto.
2233 * fbsd-proc.c: Ditto.
2234 * thread.c: Ditto.
2235
2236 * Makefile.in (regcache.o): Update dependencies.
2237 (thread.o, gdbarch.o): Ditto.
2238 (ax-general.o, gdbarch.o): Ditto.
2239 (varobj.o, std-regs.o): Ditto.
2240 (fbsd-proc.o): Specify dependencies.
2241
29e1842b
AC
22422002-08-02 Andrew Cagney <cagney@redhat.com>
2243
2244 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2245 regnum.
2246 (regcache_cooked_write): Ditto.
2247
68365089
AC
22482002-08-02 Andrew Cagney <ac131313@redhat.com>
2249
2250 * regcache.c (regcache_cooked_read): New function.
2251 (regcache_cooked_write): New function.
2252 (read_register_gen): Rewrite using regcache_cooked_read.
2253 (write_register_gen): Rewrite using regcache_cooked_write.
2254
2255 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2256 Declare.
2257
d8124050
AC
22582002-08-02 Andrew Cagney <cagney@redhat.com>
2259
2260 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2261 Replace the architecture methods register_read and register_write.
2262 * gdbarch.h, gdbarch.c: Regenerate.
2263 * regcache.c (init_regcache_descr): Update.
2264 (read_register_gen): Update.
2265 (write_register_gen): Update.
2266 (supply_register): Update comment.
2267
2268 * sh-tdep.c (sh_gdbarch_init): Update.
2269 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2270 `regcache' and `gdbarch' parameters. Make `buffer' a void
2271 pointer. Update code.
2272 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2273 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2274 void pointer. Update code.
2275 (sh64_register_write): Delete.
2276 (sh4_register_read): Delete.
2277 (sh64_register_read): Delete.
2278 (sh4_register_write): Delete.
2279 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2280 void pointer, `to' parameter a void pointer.
2281 (sh_sh64_register_convert_to_raw): Ditto.
2282
a6425924
KB
22832002-08-01 Kevin Buettner <kevinb@redhat.com>
2284
2285 * mips-tdep.c (mips_register_virtual_type): Use architecture
2286 invariant return values.
2287
ff5922b5
AC
22882002-08-01 Andrew Cagney <cagney@redhat.com>
2289
2290 * linux-proc.c: Include "gdb_string.h".
2291 * Makefile.in (linux-proc.o): Update dependency list.
2292
32a6503c
KB
22932002-08-01 Kevin Buettner <kevinb@redhat.com>
2294
2295 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2296 comment.
2297
ccaa32c7
GS
22982002-08-01 Grace Sainsbury <graces@redhat.com>
2299
2300 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2301 to_insert_watchpoint, to_remove_watchpoint,
2302 to_stopped_by_watchpoint, to_stopped_data_address,
2303 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2304 target vecctor. Define their corresponding macros so they call
2305 them.
2306
2307 * target.c: Add default and debug versions of for
2308 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2309 to_insert_watchpoint, to_remove_watchpoint,
2310 to_stopped_by_watchpoint, to_stopped_data_address,
2311 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2312
78fde5f8
KB
23132002-08-01 Kevin Buettner <kevinb@redhat.com>
2314
2315 * mips-tdep.c (mips_register_virtual_type): New function.
2316 (mips_gdbarch_init): Register mips_register_virtual_type()
2317 with gdbarch machinery.
2318 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2319 this file instead of tm-bigmips.h.
2320 (MIPS_REGSIZE): Delete this macro.
2321 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2322 multiarch version in mips-tdep.c will be found.
2323
db034ac5
AC
23242002-08-01 Andrew Cagney <cagney@redhat.com>
2325
2326 * NEWS: Menion that CHILL has been made obsolete.
2327
2328 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2329 * stabsread.c (read_range_type): Ditto.
2330 * gdbtypes.h: Ditto.
2331 * language.c (binop_type_check): Ditto.
2332 (binop_result_type): Ditto.
2333 (integral_type): Ditto.
2334 (character_type): Ditto.
2335 (string_type): Ditto.
2336 (boolean_type): Ditto.
2337 (structured_type): Ditto.
2338 (lang_bool_type): Ditto.
2339 (binop_type_check): Ditto.
2340 * language.h (_LANG_chill): Ditto.
2341 * dwarfread.c (set_cu_language): Ditto.
2342 * dwarfread.c (CHILL_PRODUCER): Ditto.
2343 * dwarfread.c (handle_producer): Ditto.
2344 * expression.h (enum exp_opcode): Ditto.
2345 * eval.c: Ditto for comments.
2346 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2347 * expprint.c (print_subexp): Ditto.
2348 (print_subexp): Ditto.
2349 * valops.c (value_cast): Ditto.
2350 (search_struct_field): Ditto.
2351 * value.h (COERCE_VARYING_ARRAY): Ditto.
2352 * symfile.c (init_filename_language_table): Ditto.
2353 (add_psymbol_with_dem_name_to_list): Ditto.
2354 * valarith.c (value_binop): Ditto.
2355 (value_neg): Ditto.
2356 * valops.c (value_slice): Ditto.
2357 * symtab.h (union language_specific): Ditto.
2358 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2359 (SYMBOL_DEMANGLED_NAME): Ditto.
2360 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2361 * defs.h (enum language): Ditto.
2362 * symtab.c (got_symtab): Ditto.
2363 * utils.c (fprintf_symbol_filtered): Ditto.
2364
2365 * ch-typeprint.c: Make file obsolete.
2366 * ch-valprint.c: Make file obsolete.
2367 * ch-lang.h: Make file obsolete.
2368 * ch-exp.c: Make file obsolete.
2369 * ch-lang.c: Make file obsolete.
2370
2371 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2372 CHILL_LIB.
2373 (TARGET_FLAGS_TO_PASS): Ditto.
2374 (CHILLFLAGS): Obsolete.
2375 (CHILL): Obsolete.
2376 (CHILL_FOR_TARGET): Obsolete.
2377 (CHILL_LIB): Obsolete.
2378 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2379 ch-valprint.c.
2380 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2381 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2382 ch-lang.o.
2383 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2384 targets.
2385
8aaf0b47
JB
23862002-07-31 Joel Brobecker <brobecker@gnat.com>
2387
2388 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2389 This does not change anything at the moment, but will be helpful
2390 later when full Ada support is integrated.
2391
f3a7b3a5
KB
23922002-07-31 Kevin Buettner <kevinb@redhat.com>
2393
2394 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2395 help message.
2396
fb850278
KB
23972002-07-31 Kevin Buettner <kevinb@redhat.com>
2398
2399 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2400 and save it in a local variable. Use variable in later test.
2401
e3bddbfa
KB
24022002-07-31 Kevin Buettner <kevinb@redhat.com>
2403
2404 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2405 test. (Thanks to Daniel Jacobowitz.)
2406
28d169de
KB
24072002-07-31 Kevin Buettner <kevinb@redhat.com>
2408
2409 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2410 (mips_abi_strings): Add "n64".
2411 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2412
7fe7e44e
KB
24132002-07-31 Kevin Buettner <kevinb@redhat.com>
2414
2415 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2416 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2417
c6caf090
KB
24182002-07-31 Kevin Buettner <kevinb@redhat.com>
2419
2420 * utils.c (host_pointer_to_address, address_to_host_pointer):
2421 Use gdb_assert() instead of explicit call to internal_error().
2422
c41669e0
KB
24232002-07-30 Kevin Buettner <kevinb@redhat.com>
2424
2425 * Makefile.in (rs6000-nat.o): Update dependencies.
2426
2427 From Nicholas Duffek:
2428 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2429 (aix-thread.o): New rule.
2430 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2431 * config/powerpc/aix432.mh: New file.
2432
2fda4977
DJ
24332002-07-30 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2436 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2437 (fetch_core_registers, ppc_linux_supply_gregset)
2438 (ppc_linux_supply_fpregset): New functions.
2439 (ppc_linux_regset_core_fns): New.
2440 (_initialize_ppc_linux_tdep): Call add_core_fns.
2441 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2442 and ppc_linux_supply_gregset.
2443 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2444 (supply_fpregset): Call ppc_linux_supply_fpregset.
2445 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2446 corelow.o.
2447 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2448
729051e6
DJ
24492002-07-30 Daniel Jacobowitz <drow@mvista.com>
2450
2451 * symtab.c (lookup_symbol): Demangle before lowercasing.
2452
5f8a3188
AC
24532002-07-30 Andrew Cagney <ac131313@redhat.com>
2454
2455 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2456 declaration.
2457 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2458 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2459 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2460 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2461 "gdb_string.h".
2462 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2463 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2464 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2465 (avr-tdep.o, mon960-rom.o): Ditto.
2466 (aout_stabs_gnu_h): Define.
2467 (symtab_h): Remove $(gdb_obstack_h).
2468
67f07146
JB
24692002-07-30 Jim Blandy <jimb@redhat.com>
2470
2471 Patch from David Carlton <carlton@math.stanford.edu>:
2472 * gdbinit.in: Move the `dir' commands that add GDB's own source
2473 directory to the search path to the end, so that the `gdb' source
2474 directory will be searched first.
2475
04ea0df1
AC
24762002-07-29 Andrew Cagney <ac131313@redhat.com>
2477
2478 * gdb_obstack.h: New file.
2479 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2480 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2481 * objfiles.h: Include "gdb_obstack.h".
2482 * Makefile.in (gdb_obstack_h): Define.
2483 (symtab_h): Add $(gdb_obstack_h).
2484 (objfiles_h): Add $(gdb_obstack_h).
2485
2486 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2487 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2488 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2489 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2490 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2491 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2492 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2493 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2494
2495 * Makefile.in (bcache.o): Update dependencies.
2496 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2497 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2498 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2499 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2500 (stabsread.o, symfile.o, symmisc.o): Ditto.
2501 (symtab.o, typeprint.o, macroexp.o): Ditto.
2502 (macrotab.o, mdebugread.o): Ditto.
2503 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2504 (coff_ecoff_h, aout_aout64_h): Define.
2505 (aout_stabs_gnu_h, libaout_h): Define.
2506
d138e37a
AC
25072002-07-29 Andrew Cagney <cagney@redhat.com>
2508
2509 * regcache.c (struct regcache_descr): Rename nr_registers to
2510 nr_cooked_registers. Revise comments describing the structure
2511 member fields.
2512 (init_regcache_descr): Update.
2513 (init_legacy_regcache_descr): Update.
2514 (read_register_gen, write_register_gen): When a cooked register in
2515 the raw register range, directly access the value from the raw
2516 register cache.
2517
460e6ec3
AC
25182002-07-29 Andrew Cagney <ac131313@redhat.com>
2519
2520 * z8k-tdep.c: Do not include "obstack.h".
2521 * h8300-tdep.c, h8500-tdep.c: Ditto.
2522 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2523 * valprint.c, v850-tdep.c: Ditto.
2524 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2525 * mn10200-tdep.c: Ditto.
2526
2527 * Makefile.in (z8k-tdep.o): Update dependencies.
2528 (m68hc11-tdep.o, valprint.o): Ditto.
2529 (v850-tdep.o, d10v-tdep.o): Ditto.
2530 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2531 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2532 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2533 (sh_opc_h, gdb_sim_sh_h): Define.
2534 (elf_sh_h, elf_bfd_h): Define.
2535 (opcode_m68hc11_h): Define.
2536 (OPCODES_SRC, OPCODES_DIR): define.
2537 (OPCODES): Use $(OPCODES_DIR).
2538 (gdb_sim_d10v_h): Rename sim_d10v_h.
2539 (gdb_sim_arm_h): Rename sim_arm_h.
2540
790c9cf0
KB
25412002-07-26 Kevin Buettner <kevinb@redhat.com>
2542
2543 * utils.c (host_pointer_to_address, address_to_host_pointer):
2544 Change internal_error() message to indicate function responsible
2545 for the error.
2546
9647fa49
KB
25472002-07-26 Kevin Buettner <kevinb@redhat.com>
2548
2549 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2550 calls to local_hex_string_custom().
2551
dabbe2c0
KB
25522002-07-26 Kevin Buettner <kevinb@redhat.com>
2553
2554 * irix5-nat.c: Move IRIX shared library support from here...
2555 * solib-irix.c: ...to here. Revised substantially to work with
2556 generic solib framework.
2557
b96d0a4e
KB
2558 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2559 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2560 * mips-irix-tdep.c: New file.
2561
313fb2f6
KB
2562 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2563 (mips-irix-tdep.o, solib-irix.o): New rules.
2564 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2565 solib-irix.o.
2566 * config/mips/irix6.mt (TDEPFILES): Likewise.
2567 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2568
ab2eaf26
KB
25692002-07-26 Kevin Buettner <kevinb@redhat.com>
2570
177e4768 2571 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2572 disabled (via ``#if 0'') includes.
2573
7244546a
KB
25742002-07-26 Kevin Buettner <kevinb@redhat.com>
2575
2576 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2577 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2578 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2579 Add support for the fpscr register.
2580 * rs6000-nat.c (regmap, fetch_inferior_registers)
2581 (store_inferior_registers, fetch_core_registers): Likewise.
2582
dd7be90a
KB
25832002-07-26 Kevin Buettner <kevinb@redhat.com>
2584
2585 * rs6000-nat.c (language.h): Include.
2586 (special_regs): Delete this array.
2587 (regmap): New function.
2588 (fetch_register, store_register): Use regmap() to map gdb
2589 register numbers to ptrace register numbers. Also, use
2590 outputs from regmap() to make decisions regarding type of
2591 ptrace() call to make. In particular, don't compare against
2592 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2593 (fetch_inferior_registers, store_inferior_registers): Where
2594 possible, obtain register numbers from tdep struct. Don't
2595 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2596 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2597 (LAST_UISA_SP_REGNUM): Delete.
2598
11bf77db
KB
25992002-07-25 Kevin Buettner <kevinb@redhat.com>
2600
2601 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2602 (fetch_registers, store_register, fetch_core_registers): Don't
2603 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2604 regcache_collect() as appropriate.
2605 (find_toc_address): Format hex address with local_hex_string().
2606
06afebeb
AC
26072002-07-25 Andrew Cagney <ac131313@redhat.com>
2608
2609 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2610 bfd/elf32-frv.c.
2611
8c554d79
TT
26122002-07-24 Tom Tromey <tromey@redhat.com>
2613
2614 * jv-exp.y: Marked all strings with _().
2615 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2616 internal_error.
2617 (MethodInvocation, CastExpression, parse_number, yyerror,
2618 java_type_from_name, push_expression_name, yylex): Typo fixes.
2619
e4c242d9
DJ
26202002-07-24 Daniel Jacobowitz <drow@mvista.com>
2621
2622 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2623 (tee_file_flush, tee_file_write, tee_file_fputs)
2624 (tee_file_isatty): New.
2625 * ui-file.h (tee_file_new): Add prototype.
2626
ebf56fd3
AS
26272002-07-24 Aidan Skinner <aidan@velvet.net>
2628
2629 * ada-lang.c: Change k&r style function definitions to prototyped
2630 form.
2631 * ada-typeprint.c: Change k&r style function definitions to prototyped
2632 form.
2633 * ada-valprint.c: Change k&r style function definitions to prototyped
2634 form.
2635
7fb623f7
AC
26362002-07-24 Andrew Cagney <cagney@redhat.com>
2637
2638 * README: Remove reference to remote-bug.
2639 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2640 remote-bug.c.
2641 (m88k-nat.o): Delete rule.
2642 (m88k-tdep.o): Delete rule.
2643 (remote-bug.o): Delete rule.
2644 * MAINTAINERS: Mark as obsolete.
2645 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2646 * m88k-tdep.c: Make file obsolete.
2647 * config/m88k/m88k.mh: Ditto.
2648 * config/m88k/delta88v4.mh: Ditto.
2649 * config/m88k/delta88v4.mt: Ditto.
2650 * config/m88k/delta88.mt: Ditto.
2651 * config/m88k/delta88.mh: Ditto.
2652 * remote-bug.c: Ditto.
2653 * config/m88k/tm-delta88.h: Ditto.
2654 * config/m88k/nm-delta88v4.h: Ditto.
2655 * config/m88k/xm-delta88.h: Ditto.
2656 * config/m88k/xm-dgux.h: Ditto.
2657 * config/m88k/tm-m88k.h: Ditto.
2658 * config/m88k/nm-m88k.h: Ditto.
2659 * config/m88k/tm-delta88v4.h: Ditto.
2660 * m88k-nat.c: Ditto.
2661 * cxux-nat.c: Ditto.
2662 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2663 and m88*-*-* obsolete.
2664 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2665 m88*-*-* obsolete.
2666
37611a2b
AC
26672002-07-24 Andrew Cagney <cagney@redhat.com>
2668
2669 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2670 constant. Same for local pointer variables.
2671 (extract_signed_integer): Ditto.
2672 * defs.h (extract_unsigned_integer): Update.
2673 (extract_signed_integer): Update.
2674
1aaa5f99
AC
26752002-07-24 Andrew Cagney <cagney@redhat.com>
2676
2677 * regcache.c (regcache_raw_write): Change buf parameter to a
2678 constant void pointer.
2679 (regcache_raw_read): Change buf parameter to a void pointer.
2680 (legacy_write_register_gen): Change myaddr parameter a constant
2681 void pointer.
2682 (supply_register): Change val parameter to a const void pointer.
2683 * regcache.h (regcache_raw_write): Update declaration.
2684 (regcache_raw_read): Update declaration.
2685 (supply_register): Update declaration.
2686
b4f5539f
TT
26872002-07-24 Tom Tromey <tromey@redhat.com>
2688
2689 * defs.h (gdb_readline_wrapper): Declare.
2690 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2691 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2692 * top.c (gdb_readline_wrapper): New function.
2693 (command_line_input): Use it.
2694
0818c12a
AC
26952002-07-24 Andrew Cagney <cagney@redhat.com>
2696
2697 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2698 regcache_read and regcache_write.
2699 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2700 * regcache.c: Update.
2701 * sh-tdep.c (sh64_push_arguments): Update comment.
2702 (sh_pseudo_register_read): Update.
2703 (sh_pseudo_register_write): Update.
2704 (sh4_register_read): Update.
2705 (sh4_register_write): Update.
2706 (sh64_pseudo_register_read): Update.
2707 (sh64_pseudo_register_write): Update.
2708 (sh64_register_read): Update.
2709 (sh64_register_write): Update.
2710 * i386-tdep.c (i386_extract_return_value): Update.
2711 (i386_extract_struct_value_address): Update.
2712 (i386_extract_return_value): Update.
2713 * blockframe.c (generic_read_register_dummy): Update.
2714 (generic_call_dummy_register_unwind): Update
2715 * infrun.c (write_inferior_status_register): Update.
2716
f7321c06
JB
27172002-07-23 Jim Blandy <jimb@redhat.com>
2718
2719 * parser-defs.h (expression_context_pc): Make this extern.
2720 (Thanks to Michael Snyder.)
2721
2037aebb
AC
27222002-07-23 Andrew Cagney <ac131313@redhat.com>
2723
2724 GDB 5.2.1 released from 5.2 branch.
2725 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2726 * README: Update to mention 5.2.1.
2727
66504d44
MS
27282002-07-23 Mark Salter <msalter@redhat.com>
2729
2730 * remote.c (remote_read_bytes): Fix check for error.
2731
27bae383
KB
27322002-07-22 Kevin Buettner <kevinb@redhat.com>
2733
2734 * aix-thread.c (language.h): Include.
2735 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2736 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2737 Print newlines at end of debug messages.
2738 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2739 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2740
27412002-07-22 Kevin Buettner <kevinb@redhat.com>
2742
2743 * aix-thread.c (ppc-tdep.h): Include.
2744 (special_register_p): New function.
2745 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2746 (store_regs_user_thread): Use register number information from
2747 gdbarch_tdep struct instead of hardcoded offsets relative to
2748 FIRST_UISA_SP_REGNUM.
2749 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2750 special_register_p() instead of using FPLAST_REGNUM and
2751 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2752 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2753 will be MQ's register number.
2754
27552002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2756
2757 * aix-thread.c (ops): Rename to aix_thread_ops.
2758 (base_ops): Rename to base_target.
2759 (ops_attach): Rename to aix_thread_attach.
2760 (ops_detach): Rename to aix_thread_detach.
2761 (ops_resume): Rename to aix_thread_detach.
2762 (ops_wait): Rename to aix_thread_wait.
2763 (ops_kill): Rename to aix_thread_kill.
2764 (init_ops): Rename to init_aix_thread_ops.
2765 (ops_fetch_register): Rename to aix_thread_fetch_register.
2766 (ops_store_register): Rename to aix_thread_store_register.
2767 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2768 (ops_thread_alive): Rename to aix_thread_thread_alive.
2769 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2770 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2771 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2772 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2773 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2774 (store_regs_lib): Rename to store_regs_user_thread.
2775 (store_regs_kern): Rename to store_regs_kernel_thread.
2776
27bae383 27772002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2778
2779 * aix-thread.c (ops_prepare_to_store): Eliminate.
2780 (init_ops): Don't initialize ops.prepare_to_store.
2781 (store_regs_kern): Pre-fetch register buffers from child,
2782 because some registers may not be in the cache. Copy
2783 regs from register cache only if they are cached.
2784 (store_regs_lib): Copy regs from register cache only
2785 if they are cached.
2786 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2787 fill_gprs64): Ditto.
2788
61c5da0b
KB
27892002-07-22 Kevin Buettner <kevinb@redhat.com>
2790
2791 * aix-thread.c (gdb_assert.h): Include.
2792 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2793 register sizes (from register cache) match size of buffer holding
2794 register data.
2795 (fill_sprs32): Change parameter types to match those in the ptrace()
2796 buffer.
2797 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2798 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2799
28002002-07-22 Michael Snyder <msnyder@redhat.com>
2801
2802 * aix-thread.c (supply_sprs64): Cosmetic change.
2803 (supply_sprs32): Cosmetic change.
2804 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2805 (fill_sprs64): Use regcache_collect instead of read_register.
2806 (store_regs_lib): Use regcache_collect instead of
2807 read_register. Use fill_sprs32 instead of fill_sprs64,
2808 if debugging a 32-bit architecture.
2809 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2810 out of the register cache, instead of passing a pointer into
2811 the register cache directly to ptrace. Use regcache_collect
2812 insteaad of read_register.
2813 (ops_prepare_to_store): Use target_read_registers instead
2814 of read_register_bytes.
2815
36479eb1
AS
28162002-07-20 Aidan Skinner <aidan@velvet.net>
2817
2818 * MAINTAINERS: Add self under write after approval.
2819
80ae6ee2
AS
28202002-07-20 Aidan Skinner <aidan@velvet.net>
2821
2822 * ada-tasks.c: Change k&r style function definitions to prototyped
2823 form.
2824
8a8ab2b9
AC
28252002-07-19 Andrew Cagney <ac131313@redhat.com>
2826
2827 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2828 * x86-64-tdep.c: Include "objfiles.h".
2829 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2830 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2831
fb16b900
ML
28322002-07-17 Michal Ludvig <michal@suse.cz>
2833
2834 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2835 (update_context): Initialise cfa variable.
2836
0fe7bf7b
MS
28372002-07-17 Michael Snyder <msnyder@redhat.com>
2838
2839 * aix-thread.c: Shorten some long lines.
2840 Bring comments into line with code spec.
2841
488f131b
JB
28422002-07-18 Joel Brobecker <brobecker@gnat.com>
2843
2844 * infrun.c: Re-indent using gdb_indent.sh.
2845
46c415d2
JB
28462002-07-18 Joel Brobecker <brobecker@gnat.com>
2847
2848 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2849 Leave the indentation temporarily untouched, to minimize the diffs.
2850
cdecafbe
EZ
28512002-07-18 Elena Zannoni <ezannoni@redhat.com>
2852
2853 * stabsread.c: Make os9k sections of the code obsolete,
2854 for real this time.
2855 * stabsread.h: Make os9k sections of the code obsolete.
2856
7b6aa020
ML
28572002-07-18 Michal Ludvig <mludvig@suse.cz>
2858
09ec9b38
ML
2859 * linux-low.c (regsets_store_inferior_registers): Add free()
2860 at the end of a loop to prevent memory leak.
2861 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2862 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2863 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2864 line a comment.
4894ac5d 2865 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2866
233282cd
JB
28672002-07-17 Jim Blandy <jimb@redhat.com>
2868
2869 * macrocmd.c (info_macro_command): Remove newline from error
2870 message.
2871
7b6aa020 28722002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2873
2874 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2875 (sh_gdbarch_init): Use it for sh-dsp.
2876
f7ef9339
KB
28772002-07-16 Kevin Buettner <kevinb@redhat.com>
2878
2879 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2880 64-bit DWARF2 format.
2881
8dd72958
JB
28822002-07-16 Joel Brobecker <brobecker@gnat.com>
2883
2884 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2885 <sys/proc.h> when not available.
2886
a99a9e1b
AC
28872002-07-16 Andrew Cagney <ac131313@redhat.com>
2888
2889 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2890 * stabsread.c: Make os9k sections of the code obsolete.
2891 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2892 * config/i386/i386os9k.mt: Make file obsolete.
2893 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2894 (COMMON_OBS): Remove os9kread.o
2895 (SFILES): Remove os9kread.c.
2896 (os9kread.o, remote-os9k.o): Make target obsolete.
2897 * remote-os9k.c: Make file obsolete.
2898 * os9kread.c: Make file obsolete.
2899 * Makefile.in
2900
7a3085c1
AC
29012002-07-16 Andrew Cagney <ac131313@redhat.com>
2902
2903 * NEWS: Mention that the FR30 has been made obsolete.
2904 * fr30-tdep.c: Make file obsolete.
2905 * config/fr30/tm-fr30.h: Ditto.
2906 * config/fr30/fr30.mt: Ditto.
2907 * configure.tgt: Make fr30-*-elf obsolete.
2908 * MAINTAINERS: Make fr30-elf obsolete.
2909
28a93f5a
PM
29102002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2911
2912 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2913 found is not inside a section.
2914
be006b8b
KB
29152002-07-15 Kevin Buettner <kevinb@redhat.com>
2916
2917 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2918 strerror().
2919 (pdc_realloc): Use xrealloc() instead of realloc().
2920
14fa3751
KB
29212002-07-15 Kevin Buettner <kevinb@redhat.com>
2922
2923 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2924 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2925 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2926 macros.
2927
42cc437f
KB
29282002-07-15 Kevin Buettner <kevinb@redhat.com>
2929
2930 * aix-thread.c (ptrace_check): Eliminate goto.
2931 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2932 problem.
2933
8e2c28d4
KB
29342002-07-15 Kevin Buettner <kevinb@redhat.com>
2935
2936 * aix-thread.c (gdbcmd.h): Include.
2937 (DEBUG, DBG, DBG2, dbg): Eliminate.
2938 (debug_aix_thread): New static global.
2939 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2940 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2941 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2942 invocations to DBG and DBG2 macros to test against
2943 ``debug_aix_thread'' and call fprintf_unfiltered().
2944 (_initialize_aix_thread): Add new command "set debug aix-thread".
2945
30413464
AC
29462002-07-15 Andrew Cagney <ac131313@redhat.com>
2947
2948 From Gerhard Tonn <TON@de.ibm.com>:
2949 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2950 instead of supply_register.
2951
7c43edc1
AC
29522002-07-15 Andrew Cagney <ac131313@redhat.com>
2953
2954 * dwarf2cfi.c: Include "gdb_assert.h".
2955 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2956 non-NULL.
2957 (update_context): Do not use __func__. Add missing ``break''.
2958 (update_context): Do not use __func__.
2959
9364a0ef
EZ
29602002-07-15 Elena Zannoni <ezannoni@redhat.com>
2961
2962 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2963 and its setting. Set gdbarch instruction printing functions
2964 directly. For non-rs6000 case use new function
2965 gdb_print_insn_powerpc.
2966 (gdb_print_insn_powerpc): New function.
2967
3fbeef0b
AC
29682002-07-13 Andrew Cagney <ac131313@redhat.com>
2969
92eb23c5 2970 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2971 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2972 * configure.tgt: Mark d30v-*-* as obsolete.
2973 * d30v-tdep.c: Mark file as obsolete.
2974 * config/d30v/d30v.mt: Ditto.
2975 * config/d30v/tm-d30v.h: Ditto.
2976
aacb1f0a
AS
29772002-07-13 Aidan Skinner <aidan@velvet.net>
2978
2979 * ada-tasks.c (add_task_entry): replace calls to
2980 malloc() with xmalloc
2981 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2982
2983 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2984 ada_finish_decode_line_1, all_sals_for_line
2985 ada_breakpoint_rewrite): replace calls to free() with xfree()
2986
c11d79f2
KB
29872002-07-12 Kevin Buettner <kevinb@redhat.com>
2988
2989 From Nicholas Duffek (with minor changes by Martin Hunt,
2990 Louis Hamilton, and Kevin Buettner):
2991 * aix-thread.c: New file.
2992
8e19ed76
PS
29932002-07-12 Petr Sorfa <petrs@caldera.com>
2994
2995 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2996 complaint for invalid attribute class or form.
2997 (read_func_scope): DW_AT_frame_base
2998 better handling of DW_AT_block*.
2999 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3000 better handling of DW_AT_block*.
3001 (read_common_block): DW_AT_location
3002 better handling of DW_AT_block*.
3003 (read_partial_die): DW_AT_location better handling
3004 of DW_AT_block*.
3005 (new_symbol): DW_AT_external better handling of
3006 DW_AT_block*. Proper initialization of variable
3007 "addr".
3008 (attr_form_is_block): New function that returns true
3009 if the attribute's form is of DW_FORM_block*.
3010
295401f7
DJ
30112002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3012
3013 * valops.c (find_method_list): Remove comment about
3014 removed STATIC_MEMFUNCP argument.
3015 (value_find_oload_method_list): Likewise.
3016
e42dc924
KB
30172002-07-12 Kevin Buettner <kevinb@redhat.com>
3018
3019 From Nicholas Duffek:
3020 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3021 target_new_objfile_hook.
3022
6904b546
KB
30232002-07-12 Kevin Buettner <kevinb@redhat.com>
3024
3025 From Nicholas Duffek:
3026 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3027 csect.
3028
53fe9346
AC
30292002-07-12 Andrew Cagney <cagney@redhat.com>
3030
3031 * MAINTAINERS: Mention --enable-sim-build-warnings.
3032 (m68hc11-elf): Disable sim build warnings.
3033 (m32r-elf): Mark as broken obsolete candidate.
3034 (x86_64-linux-gnu): Mark as buildable with -Werror.
3035 (arm-elf): Change -w to ``,'' which enables warnings but not
3036 -Werror.
3037
af5f3db6
AC
30382002-07-12 Andrew Cagney <ac131313@redhat.com>
3039
3040 * bcache.h: Update copyright.
3041 (struct bstring, struct bcache): Move definition to "bcache.c".
3042 Replaced by opaque declaration.
3043 (bcache_xfree): Replace free_bcache.
3044 (bcache_xmalloc, bcache_memory_used): Declare.
3045
3046 * bcache.c: Update copyright.
3047 (struct bstring, struct bcache): Moved to here from "bcache.h".
3048 Update comments.
3049 (bcache_xmalloc, bcache_memory_used): New functions.
3050 (bcache_xfree): Replace function free_bcache.
3051
3052 * Makefile.in (objfiles.o): Add $(bcache_h).
3053 (objfiles_h): Remove $(bcache_h).
3054 (symfile.o): Add $(bcache_h).
3055
3056 * symmisc.c: Update copyright.
3057 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3058 (print_objfile_statistics): Use bcache_memory_used.
3059
3060 * symfile.c: Include "bcache.h".
3061 (reread_symbols): Use bcache_xfree.
3062 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3063 (add_psymbol_to_list): Pass psymbol_cache by value.
3064 (add_psymbol_with_dem_name_to_list): Ditto.
3065
3066 * objfiles.h: Update copyright.
3067 (struct bcache): Declare opaque. Do not include "bcache.h".
3068 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3069 bcache'' pointers.
3070 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3071
3072 * objfiles.c: Include "bcache.h". Update copyright.
3073 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3074 macro_cache.
3075 (free_objfile): Use bcache_xfree.
3076
444199e7
GS
30772002-07-11 Grace Sainsbury <graces@redhat.com>
3078
3079 * monitor.c (monitor_fetch_register): Make name a constant.
3080 (monitor_store_register): Same.
3081
261397f8
DJ
30822002-07-11 Daniel Jacobowitz <drow@mvista.com>
3083
3084 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3085 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3086 (finish_block) For non-function blocks, hash the symbol table. For
3087 function blocks, mark the symbol table as unhashed.
3088 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3089 (msymbol_hash_iw): Likewise.
3090 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3091 value.
3092 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3093 (lookup_minimal_symbol): Likewise for both.
3094 * symtab.h (struct block): Add `hashtable' flag. Comment the
3095 hashtable.
3096 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3097 (ALL_BLOCK_SYMBOLS): Update.
3098 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3099 (struct symbol): Add `hash_next' pointer.
3100 * symtab.c (lookup_block_symbol): Search using the hash table when
3101 possible.
3102 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3103 (search_symbols, find_addr_symbol): Likewise.
3104
3105 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3106 (read_dst_symtab): Likewise.
3107 * jv-lang.c (get_java_class_symtab): Likewise.
3108 * mdebugread.c: Include "gdb_assert.h".
3109 (shrink_block): Assert that the block being modified is not hashed.
3110 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3111 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3112 symbols.
3113 (dump_symtab): Recognize hashed blocks.
3114 * printcmd.c (print_frame_args): Assert that function blocks do not
3115 have hashed symbol tables.
3116 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3117 (fill_in_ada_prototype, debug_print_block): Likewise.
3118 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3119
6f0eaa01
CV
31202002-07-11 Corinna Vinschen <vinschen@redhat.com>
3121
3122 * stack.c (print_frame): Use result of frame_address_in_block()
3123 instead of fi->pc when evaluating symbols.
3124 (backtrace_command_1): Ditto.
3125
a208b0cb
AC
31262002-07-11 Andrew Cagney <cagney@redhat.com>
3127
3128 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3129 Make static.
3130
3131 * arm-tdep.c (arm_register_name): Make return type constant.
3132
a6b6b089
AC
31332002-07-10 Andrew Cagney <ac131313@redhat.com>
3134
5ae5f592
AC
3135 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3136 prototype.
3137 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3138 * s390-tdep.c (s390_fp_regnum): Ditto.
3139 (s390_read_fp): Ditto.
3140 (s390_pop_frame): Ditto.
3141 (_initialize_s390_tdep): Ditto.
3142 * remote.c (get_remote_state): Ditto.
3143 * procfs.c (mappingflags): Ditto.
3144 * memattr.c (_initialize_mem): Ditto.
3145 * mcore-tdep.c (mcore_pop_frame): Ditto.
3146 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3147 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3148 * language.c (set_case_str): Ditto.
3149 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3150 * frv-tdep.c (new_variant): Ditto.
3151 (frv_stopped_data_address): Ditto.
3152 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3153 (context_alloc): Ditto.
3154 (frame_state_alloc): Ditto.
3155 (unwind_tmp_obstack_init): Ditto.
3156 (unwind_tmp_obstack_free): Ditto.
3157 (cfi_read_fp): Ditto.
3158 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3159 (cris_pop_frame): Ditto.
3160 * c-lang.c (scanning_macro_expansion): Ditto.
3161 (finished_macro_expansion): Ditto.
3162 (c_preprocess_and_parse): Ditto.
3163 * gdbarch.sh: Ditto.
3164 * gdbarch.h, gdbarch.c: Regenerate.
3165 * config/mn10200/tm-mn10200.h: Adjust indentation.
3166 * target.c: Adjust indentation.
3167 * symtab.h: Adjust indentation.
3168 * stabsread.h: Adjust indentation.
3169 * remote-es.c: Adjust indentation.
3170 * os9kread.c: Adjust indentation.
3171
31722002-07-10 Andrew Cagney <ac131313@redhat.com>
3173
a6b6b089
AC
3174 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3175 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3176
a1789893
GS
31772002-07-10 Grace Sainsbury <graces@redhat.com>
3178
3179 * NEWS: Mention m68k, mcore multi-arching.
3180 * MAINTAINERS: Change status of m68k, mcore to reflect
3181 multi-arching.
3182
02f0d45d
DJ
31832002-07-10 Daniel Jacobowitz <drow@mvista.com>
3184
3185 * valops.c (find_overload_match): Free oload_syms.
3186
f15f768e
JB
31872002-07-09 Joel Brobecker <brobecker@gnat.com>
3188
3189 Define HAVE_SYS_PROC_H if sys/proc.h exists
3190 * configure.in: Add check for sys/proc.h
3191 * config.in: Regenerate.
3192 * configure: Regenerate.
3193
902a7139
GS
31942002-07-09 Grace Sainsbury <graces@redhat.com>
3195
3196 * config/m68k/tm-m68k.h: Remove macros wrapped in
3197 #if !GDB_MULTI_ARCH.
3198
a534e424
AC
31992002-07-08 Andrew Cagney <ac131313@redhat.com>
3200
3201 * config.in, configure: Regenerate.
3202
9b94f7bf
MK
32032002-07-08 Mark Kettenis <kettenis@gnu.org>
3204
3205 * dwarf2cfi.c: Include "gcore.h".
3206 (execute_stack_op): Fix implementation of the
3207 DW_OP_deref and DW_OP_deref_size operators by letting do their
3208 lookup in the target.
3209
1d34db41
MK
32102002-07-07 Mark Kettenis <kettenis@gnu.org>
3211
3212 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3213 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3214 tdep->sc_sp_offset.
3215
79d5b63a
DJ
32162002-07-05 Daniel Jacobowitz <drow@mvista.com>
3217
3218 Fix PR gdb/595, gdb/602
3219 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3220 Don't call value_cast, just read the vtable pointer; update comments
3221 to match.
3222
3bb912e8
GS
32232002-07-05 Grace Sainsbury <graces@redhat.com>
3224
3225 * config/mcore/tm-mcore.h: Remove file.
3226 * config/mcore/mcore.mt: Remove definition of TM_FILE
3227 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3228
ca39387d
MK
32292002-07-05 Mark Kettenis <kettenis@gnu.org>
3230
3231 * i386bsd-tdep.c: Include "gdb_string.h".
3232
efdc1108
GS
32332002-07-04 Grace Sainsbury <graces@redhat.com>
3234
3235 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3236 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3237 mcore-tdep.
3238 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3239 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3240 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3241 (RETVAL_REGNUM): Move macros from tm-mcore.h
3242 (mcore_reg_struct_has_addr): New function.
3243 (mcore_gdbarch_init): Added initializations for the macros removed
3244 from tm-mcore.h.
3245
bb21884d
MK
32462002-07-04 Mark Kettenis <kettenis@gnu.org>
3247
3248 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3249 traditonal string branding within the ELF header.
3250
228c6d41
DJ
32512002-07-04 Daniel Jacobowitz <drow@mvista.com>
3252
3253 * symtab.c (remove_params): New function.
3254 (make_symbol_overload_list): Use it instead of cplus_demangle.
3255 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3256
2404952e
MK
32572002-07-04 Mark Kettenis <kettenis@gnu.org>
3258
e5e4acad
MK
3259 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3260
baadce09
MK
3261 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3262 New variables.
3263 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3264 and tdep->sigtramp_end.
3265 * i386obsd-nat.c: New file.
3266 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3267
2404952e
MK
3268 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3269 Don't call get_current_frame().
3270
9b4f1ba7
PM
32712002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3272
3273 * i386-nat.c (child_post_startup_inferior): New function
3274 calling i386_cleanup_dregs if
3275 I386_USE_GENERIC_WATCHPOINTS is defined.
3276 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3277 conditional to acknowledge that i386-nat.c has its
3278 own child_post_startup_inferior function.
3279
c0d1d883
MK
32802002-07-04 Mark Kettenis <kettenis@gnu.org>
3281
00f8375e
MK
3282 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3283 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3284 instead of MAX_REGISTER_RAW_SIZE.
3285 (i386_extract_return_value, i386_extract_struct_value_address):
3286 Convert to use regcache.
3287 (i386_gdbarch_init): Set max_register_raw_size and
3288 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3289 Set extract_return_value and extract_struct_value_address instead
3290 of their deprecated variants.
3291
c0d1d883
MK
3292 Convert i386 target to generic dummy frames.
3293 * i386-tdep.c: Include "symfile.h".
3294 (i386_frameless_signal_p): Consider a function to be frameless if
3295 the pc points at the first instruction of the function.
3296 (i386_frame_chain): Handle (generic) call dummies.
3297 (i386_frame_saved_pc): Likewise.
3298 (i386_frame_init_saved_regs): Remove code dealing with call
3299 dummies on the stack.
3300 (i386_push_dummy_frame): Removed.
3301 (i386_call_dummy_words): Removed.
3302 (i386_fix_call_dummy): Removed.
3303 (i386_push_return_address): New function.
3304 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3305 parameter, and don't call get_current_frame.
3306 (i386_pop_frame): New function.
3307 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3308 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3309 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3310 call_dummy_length to 0, set call_dummy_words to NULL, set
3311 sizeof_call_dummy_words to 0, set fix_call_dummy to
3312 generic_fix_call_dummy, set pc_in_call_dummy to
3313 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3314 generic_push_dummy_frame, set push_return_address to
3315 i386_push_return_address and set frame_chain_valid to
3316 generic_file_frame_chain_valid.
3317
049ee0e4
AC
33182002-07-03 Andrew Cagney <ac131313@redhat.com>
3319
3320 * gdbarch.sh (struct regcache): Add opaque declaration.
3321 (EXTRACT_RETURN_VALUE): New architecture method.
3322 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3323 * gdbarch.h, gdbarch.c: Regenerate.
3324 * arch-utils.c (legacy_extract_return_value): New function.
3325 * arch-utils.h (legacy_extract_return_value): Declare.
3326 * values.c (value_being_returned): Re-enable code handling
3327 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3328 deprecated_grub_regcache_for_registers call to block handling
3329 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3330 (EXTRACT_RETURN_VALUE): Do not define.
3331
4e0d9804
GS
33322002-07-03 Grace Sainsbury <graces@redhat.com>
3333
3334 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3335 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3336 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3337 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3338 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3339 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3340 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3341 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3342 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3343 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3344 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3345 argument so the function fits the prototype in the architecture
3346 vector.
3347 (mcore_pop_frame): Remove argument so the function fits the
3348 prototype. Use get_current_frame instead of the argument.
3349 (mcore_push_arguments): Change type of struct_return so the
3350 function can be used in the architecture vector.
3351 (mcore_store_struct_return): Add.
3352 (mcore_frame_init_saved_regs): Add.
3353 (mcore_gdbarch_init): Add function calls to replace the macros
3354 removed from tm-mcore.h
3355
36160dc4
AC
33562002-07-03 Andrew Cagney <ac131313@redhat.com>
3357
3358 * infcmd.c (print_return_value): Remove compatibility code calling
3359 deprecated_grub_regcache_for_registers.
3360
3361 * values.c: Include "regcache.h".
3362 (value_being_returned): Update. Use
3363 deprecated_grub_regcache_for_registers to extract the register
3364 buffer address.
3365 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3366 ``struct regcache''.
3367 * Makefile.in (values.o): Add dependency on $(regcache_h).
3368
3369 * inferior.h (run_stack_dummy): Change type of second parameter to
3370 a ``struct regcache''.
3371 * valops.c (hand_function_call): Change type of retbuf to ``struct
3372 regcache''. Allocate using regcache_xmalloc, clean using
3373 make_cleanup_regcache_xfree.
3374 * infcmd.c (run_stack_dummy): Update. Use
3375 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3376
3377 * regcache.c (do_regcache_xfree): New function.
3378 (make_cleanup_regcache_xfree): New function.
3379 * regcache.h (make_cleanup_regcache_xfree): Declare.
3380
e64d9b3d
MH
33812002-07-03 Martin M. Hunt <hunt@redhat.com>
3382
4dd79c29
MH
3383 * event-top.c (command_line_handler): Don't read past
3384 beginning of buffer.
e64d9b3d 3385
4dd79c29
MH
33862002-07-03 Martin M. Hunt <hunt@redhat.com>
3387
e64d9b3d
MH
3388 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3389 struct frame_id.
3390 (varobj_create): Store frame_id for root.
3391 (varobj_gen_name): Use xasprintf.
3392 (varobj_update): Save and restore frame using get_frame_id() and
3393 frame_find_by_id().
3394 (create_child): Use xasprintf.
3395 (new_root_variable): Initialize frame_id.
3396 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3397 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3398 to prevent memory leak.
3399
26e6c56a
AC
34002002-07-03 Andrew Cagney <ac131313@redhat.com>
3401
3402 * valops.c (hand_function_call): Move declaration of retbuf to
3403 start of function, allocate using malloc, add a cleanup but before
3404 the inf_status cleanup, cleanup the buffer. Rename local variable
3405 old_chain to inf_status_cleanup.
3406
f436dd25
MH
34072002-07-03 Martin M. Hunt <hunt@redhat.com>
3408
3409 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3410
3411 * cli/cli-decode.c (cmd_func_p): New function.
3412 (cmd_func): New function.
3413
3414 * command.h: Add cmd_func() and cmd_func_p().
3415
4cfe2084
GS
34162002-07-03 Grace Sainsbury <graces@redhat.com>
3417
3418 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3419 (REGISTER_SIZE): Remove.
3420 (MAX_REGISTER_RAW_SIZE): Remove.
3421 (REGISTER_VIRTUAL_TYPE): Remove.
3422 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3423 (REGISTER_NAME): Remove.
3424 (USE_GENERIC_DUMMY_FRAMES): Remove.
3425 (CALL_DUMMY): Remove.
3426 (CALL_DUMMY_START_OFFSET): Remove.
3427 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3428 (CALL_DUMMY_LOCATION): Remove.
3429 (FIX_CALL_DUMMY): Remove.
3430 (CALL_DUMMY_ADDRESS): Remove.
3431 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3432 (SAVE_DUMMY_FRAME_TOS): Remove.
3433 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3434 (mcore_register_virtual_type): New function.
3435 (mcore_register_byte): New function.
3436 (mcore_register_size): New function.
3437 (mcore_register_name): New function.
3438 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3439 macros removed from tm-mcore.h.
3440 (mcore_dump_tdep): Add.
3441 (_initialize_mcore_tdep): Add gdbarch_register call.
3442
4fd667e9
MK
34432002-07-03 Mark Kettenis <kettenis@gnu.org>
3444
3445 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3446 frameless_look_for_prologue, such that we actually call this
3447 function.
3448
42f99ac2
JB
34492002-07-02 Joel Brobecker <brobecker@gnat.com>
3450
3451 * frame.h (frame_address_in_block): New function.
3452
3453 * blockframe.c (frame_address_in_block): New function extracted
3454 from get_frame_block().
3455 (get_frame_block): Use frame_address_in_block().
3456 (block_innermost_frame): Use frame_address_in_block() to match
3457 the frame pc address against the block boundaries rather than
3458 the frame pc directly. This prevents a failure when a frame pc
3459 is actually a return-address pointing immediately after the end
3460 of the given block.
3461
103a1597 34622002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3463
3464 * MAINTAINERS: Add self under write after approval.
3465
34662002-07-02 Grace Sainsbury <graces@redhat.com>
3467
103a1597
GS
3468 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3469 used in architecture vector. The default is
3470 m68k_local_breakpoint_from_pc.
3471 (m68k_local_breakpoint_from_pc): Add.
3472 (enum): Add register numbers from tm-m68k.h.
3473 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3474 vector.
3475 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3476 GDB_MULTI_ARCH_PARTIAL.
3477 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3478 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3479 m68k-tdep.c.
3480 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3481 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3482 to enum in m68k-tdep.c
3483
7a5a0534
JB
34842002-07-02 Joel Brobecker <brobecker@gnat.com>
3485
3486 * solib-osf.c (open_map): Compute the list of shared libraries
3487 loaded by the inferior, rather than the list of libraries loaded
3488 by GDB itself. Otherwise, GDB ends up reading the symbols from
3489 the wrong shared libraries...
3490
6f558d74
MK
34912002-07-02 Mark Kettenis <kettenis@gnu.org>
3492
b7d15bf7
MK
3493 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3494 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3495 macros.
3496 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3497 Remove functions.
3498 (FRAMELESS_SIGNAL): Remove function.
3499 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3500 i386_linux_saved_pc_after_call): Removed.
3501 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3502 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3503 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3504
6bff26de
MK
3505 * i386-tdep.c (i386_frameless_signal_p): New function.
3506 (i386_frame_chain): Deal with frameless signals.
3507 (i386_sigtramp_saved_sp): New function.
3508 (i386_frame_saved_pc): Deal with frameless signals.
3509 (i386_saved_pc_after_call): Make sure the correct value is
3510 returned just after entry into a sigtramp.
3511 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3512 i386fbsd4_sc_sp_offset): New variables.
3513 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3514 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3515 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3516 similiar to what we already did for sc_pc_offset.
3517 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3518 tdep->sc_sp_offset.
3519
6f558d74
MK
3520 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3521
145564b7
ML
35222002-07-02 Michal Ludvig <mludvig@suse.cz>
3523
3524 * config/i386/tm-x86-64linux.h: New.
3525 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3526 definitions.
3527 * config/i386/nm-x86-64.h: Rename to ...
3528 * config/i386/nm-x86-64linux.h: ... this one.
3529 * config/i386/x86-64linux.mh: Reflect the above change.
3530
3a1e71e3
MK
35312002-07-01 Mark Kettenis <kettenis@gnu.org>
3532
21d0e8a4
MK
3533 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3534 with sigcontext_addr. Add sc_sp_offset.
3535 (i386bsd_sigtramp_saved_pc): Remove prototype.
3536 (i386bsd_sicontext_addr): Add prototype.
3537 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3538 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3539 (i386_svr4_sigtramp_saved_pc): Removed.
3540 (i386_svr4_sigcontext_addr): New function.
3541 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3542 Initialize tdep->sigcontext_addr instead. Initialize
3543 tdep->sc_pc_offset and tdep->sc_sp_offset.
3544 (i386_gdbarch_init): Likewise.
3545 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3546 any more.
3547 (i386bsd_sigtramp_saved_pc): Remove function.
3548 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3549 Initialize tdep->sigcontext_addr instead. Initialize
3550 tdep->sc_pc_offset.
3551 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3552 of tdep->sigtramp_saved_pc.
3553 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3554 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3555 instead.
3556
3a1e71e3
MK
3557 * i386-tdep.c (i386_frameless_function_invocation,
3558 i386_frame_num_args, i386_frame_init_saved_regs,
3559 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3560 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3561 i386_extract_return_value, i386_store_return_value,
3562 i386_extract_struct_value_address, i386_register_virtual_type,
3563 i386_register_convertible, i386_register_convert_to_virtual,
3564 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3565 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3566 static.
3567
52e9098c
MK
35682002-07-01 Mark Kettenis <kettenis@gnu.org>
3569
77b13a25
MK
3570 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3571
52e9098c
MK
3572 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3573 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3574 this macro. Include "value.h".
3575
1b372fff
AS
35762002-06-30 Aidan Skinner <aidan@velvet.net>
3577
3578 * ada-exp.tab.c: remove as it's a generated file
3579 * ada-lex.c: remove as it's a generated file
3580
9c5045b5
MK
35812002-06-30 Mark Kettenis <kettenis@gnu.org>
3582
4a93c5bb
MK
3583 * config/i386/tm-i386.h (struct frame_info, struct
3584 frame_saved_regs, struct value, struct type): Remove forward
3585 declarations.
3586
322d4fe0
MK
3587 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3588 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3589 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3590 (FILL_FPXREGSET): Define.
3591
fdd8263d
MK
3592 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3593
482e577b
MK
3594 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3595 i[3456]86-*-netbsd* case.
3596 * config/i386/tm-obsd.h: Removed.
3597 * config/i386/obsd.mt: Removed.
3598 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3599 core-aout.o.
3600 (MH_CFLAGS): Add -DYYDEBUG=0.
3601
6916549a
MK
3602 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3603 i386nbsd_sc_pc_offset on OpenBSD too.
3604
9c5045b5
MK
3605 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3606 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3607 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3608 define.
3609 * i386bsd-tdep.c: Include "arch-utils.h".
3610 (i386bsd_aout_in_solib_call_trampoline): New function.
3611 (i386bsd_init_abi): Set in_solib_call_trampoline to
3612 i386bsd_aout_in_solib_call_trampoline.
3613 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3614 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3615
aa84d1bb
AC
36162002-06-28 Andrew Cagney <ac131313@redhat.com>
3617
3618 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3619 (struct obstack, struct bcache): Add opaque declarations.
3620 * Makefile.in (macrotab_h): Update
3621
b4d83933
AC
36222002-06-28 Andrew Cagney <ac131313@redhat.com>
3623
3624 * blockframe.c (generic_find_dummy_frame): Change return type to
3625 ``struct regcache''.
3626 (struct dummy_frame): Replace field ``registers'' with regcache, a
3627 struct regcache object.
3628 (generic_find_dummy_frame): Update.
3629 (generic_push_dummy_frame): Update. Use regcache_xfree,
3630 regcache_xmalloc and regcache_cpy.
3631 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3632 regcache_xfree.
3633 (deprecated_generic_find_dummy_frame): Update.
3634 (generic_read_register_dummy): Update. Use
3635 regcache_read_as_address.
3636 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3637 (generic_get_saved_register): Update. Use regcache_read.
3638
08c0b5bc
AC
36392002-06-28 Andrew Cagney <ac131313@redhat.com>
3640
3641 * Makefile.in (objfiles_h): Add $(bcache_h).
3642 * objfiles.h: Include "bcache.h".
3643
3644 * Makefile.in (symtab_h): Remove $(bcache_h).
3645 * symtab.h: Do not include "bcache.h".
3646
1f89801a
AC
36472002-06-28 Andrew Cagney <ac131313@redhat.com>
3648
3649 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3650 generic_func_frame_chain_valid.
3651
b9644b58
DB
36522002-06-28 David O'Brien <obrien@FreeBSD.org>
3653
3654 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3655 * config/i386/tm-fbsd.h: Likewise.
3656
dd486634
AC
36572002-06-28 Andrew Cagney <ac131313@redhat.com>
3658
3659 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3660 generic_unwind_get_saved_register.
3661
0b434a00
AC
36622002-06-27 Andrew Cagney <ac131313@redhat.com>
3663
3664 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3665 * regcache.c (supply_register): Add missing argument to
3666 register_buffer call.
3667
f30e5a77
AC
36682002-06-27 Andrew Cagney <ac131313@redhat.com>
3669
3670 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3671 Solaris /bin/grep does not not like it. From Peter Schauer.
3672
9f064c95
TT
36732002-06-26 Tom Tromey <tromey@redhat.com>
3674
3675 * command.h (add_setshow_cmd): Declare.
3676 (add_setshow_cmd_full): Declare.
3677 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3678 returns void. Use add_setshow_cmd_full.
3679 (add_setshow_cmd_full): New function.
3680 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3681 (add_setshow_boolean_cmd): Likewise.
3682
099c7589
JT
36832002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3684
3685 * config/vax/tm-vax.h: Protect from multiple inclusion.
3686 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3687 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3688 * config/vax/tm-vaxbsd.h: ...here. New file.
3689 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3690
1d049c5e
JT
36912002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3692
3693 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3694 (BELIEVE_PCC_PROMOTION): Remove.
3695 (AP_REGNUM): Move to...
3696 * config/vax/nm-vax.h: ...here.
3697 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3698 (vax_breakpoint_from_pc): New function.
3699 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3700 and gdbarch_believe_pcc_promotion.
3701
4791e091
JT
37022002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3703
3704 * Makefile.in (vax_tdep_h): Define.
3705 (vax-tdep.o): Use $(vax_tdep_h).
3706 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3707 (vax_dump_tdep): New function.
3708 (_initialize_vax_tdep): Register vax_dump_tdep.
3709 * vax-tdep.h: Include osabi.h.
3710 (struct gdbarch_tdep): New.
3711
da130f98
AC
37122002-06-26 Andrew Cagney <cagney@redhat.com>
3713
3714 * frame.h (deprecated_generic_find_dummy_frame): Rename
3715 generic_find_dummy_frame.
3716 * blockframe.c (generic_find_dummy_frame): Make static.
3717 (deprecated_generic_find_dummy_frame): New function.
3718 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3719 generic_find_dummy_frame with deprecated_find_dummy_frame.
3720 (sh64_nofp_frame_init_saved_regs): Ditto.
3721 (sh_fp_frame_init_saved_regs): Ditto.
3722 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3723 (s390_frame_chain): Ditto.
3724 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3725
6300c360
GS
37262002-06-26 Grace Sainsbury <graces@redhat.com>
3727
3728 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3729 gdbarch vector are at the top.
3730 (NUM_REGS): Remove.
3731 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3732 (FRAME_ARGS_ADDRESS): Remove.
3733 (FRAME_LOCALS_ADDRESS): Remove.
3734 (FRAME_NUM_ARGS): Remove.
3735 (FRAME_ARGS_SKIP): Remove.
3736 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3737 (m68k_gdbarch_init): Add gdbarch initializations for macros
3738 undefined in tm-m68k.h
3739
1c617db8
GS
37402002-06-26 Grace Sainsbury <graces@redhat.com>
3741
3742 * monitor.h: Add the function regname to monitor_ops
3743 structure. This way NUM_REGS does not have to be a constant.
3744 * monitor.c (monitor_fetch_register): Added support for regname
3745 function. The function is called if the array regnames is NULL.
3746 (monitor_store_register): Same.
da130f98
AC
3747 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3748 regnames array.
1c617db8
GS
3749 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3750 cpu32bug_cmds.regname to point to new function.
3751 * abug-rom.c (abug_regname): Same as above.
3752 (init_abug_cmds): Same.
3753 * dbug-rom.c (dbug_regname): Same as above.
3754 (init_dbug_cmds): Same.
3755 * remote-est.c (est_regname): Same.
3756 (init_est_cmds): Same.
3757 * rom68k-rom.c (rom68k_regname): Same.
3758 (init_rom68k_cmds): Same.
3759
ea9365bb
TT
37602002-06-25 Tom Tromey <tromey@redhat.com>
3761
3762 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3763
72cec141
AC
37642002-06-25 Andrew Cagney <cagney@redhat.com>
3765
3766 * infrun.c (stop_registers): Change variable's type to ``struct
3767 regcache'''.
3768 (xmalloc_inferior_status): Delete function.
3769 (free_inferior_status): Delete function.
3770 (normal_stop): Use regcache_cpy.
3771 (struct inferior_status): Change type of fields ``stop_registers''
3772 and ``registers'' to ``struct regcache''.
3773 (write_inferior_status_register): Use regcache_write.
3774 (save_inferior_status): Instead of calling
3775 xmalloc_inferior_status, allocate the inf_status buffer directly.
3776 Use regcache_dup_no_passthrough and regcache_dup to save the
3777 buffers.
3778 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3779 Replace the stop_registers regcache instead of overriding it. Use
3780 regcache_xfree. Instead of calling free_inferior_status, xfree
3781 the buffer directly.
3782 (discard_inferior_status): Use regcache_xfree. Instead of calling
3783 free_inferior_status, xfree the buffer directly.
3784 (build_infrun): Use regcache_xmalloc.
3785 (_initialize_infrun): Delete redundant call to build_infrun.
3786
3787 * Makefile.in (infcmd.o): Add $(regcache_h).
3788
3789 * infcmd.c: Include "regcache.h".
3790 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3791 obtain the address of `stop_registers' register buffer.
3792 (print_return_value): Ditto.
3793
3794 * inferior.h (struct regcache): Add opaque declaration.
3795 (stop_registers): Change variable's declared type to ``struct
3796 regcache''.
3797
defc6f8c
TT
37982002-06-24 Tom Tromey <tromey@redhat.com>
3799
c0e624e7
TT
3800 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3801 * target.c (initialize_targets): Fixed typo in
3802 trust-readonly-sections `show' documentation.
3803
defc6f8c
TT
3804 * main.c: Marked all strings with _().
3805
2b236d82
DH
38062002-06-24 Don Howard <dhoward@redhat.com>
3807
3808 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3809 that means max CORE_ADDR+1.
3810 (lookup_mem_region): Ditto.
3811 (mem_info_command): Ditto.
3812
942dc0e9
GS
38132002-06-24 Grace Sainsbury <graces@redhat.com>
3814
3815 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3816 (REGISTER_BYTES_OK): Remove.
3817 (REGISTER_BYTES): Remove.
3818 (STORE_STRUCT_RETURN): Remove.
3819 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3820 (STORE_RETURN_VALUE): Remove.
3821 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3822 (FRAME_CHAIN): Remove.
3823 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3824 (FRAME_SAVED_PC): Remove.
3825 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3826 (m68k_store_struct_return): Add.
3827 (m68k_deprecated_extract_return_value): Add.
3828 (m68k_deprecated_extract_struct_value_address): Add.
3829 (m68k_store_return_value): Add.
3830 (m68k_frame_chain): Add.
3831 (m68k_frameless_function_invocation): Add.
3832 (m68k_frame_saved_pc): Add.
3833 (m68k_gdbarch_init): added set_gdbarch calls for new
3834 functions and deleted macros.
3835
03c30d4d
TT
38362002-06-23 Tom Tromey <tromey@redhat.com>
3837
3838 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3839 (ALLDEPFILES): Likewise.
3840 (udiheaders): Removed.
3841 (udip2soc.o): Likewise.
3842 (udi2go32.o): Likewise.
3843 (udr.o): Likewise.
3844 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3845
37e71372
AC
38462002-06-22 Andrew Cagney <ac131313@redhat.com>
3847
06a6ac57
AC
3848 * infrun.c (_initialize_infrun): Delete unnecessary call to
3849 build_infrun.
3850
37e71372
AC
3851 * regcache.h: Update comments describing the regcache_cpy family
3852 of functions.
3853 (regcache_save, regcache_restore): Delete declaration.
3854 (regcache_save_no_passthrough): Delete declaration.
3855 (regcache_restore_no_passthrough): Delete declaration.
3856 * regcache.c (regcache_save): Delete function.
3857 (regcache_save_no_passthrough): Delete function.
3858 (regcache_restore): Delete function.
3859 (regcache_restore_no_passthrough): Delete function.
3860
78f6d055
AC
38612002-06-21 Andrew Cagney <ac131313@redhat.com>
3862
3863 * config/m68k/tm-m68k.h: Fix typo.
3864 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3865 (m68k_frame_init_saved_regs): Declare.
3866
78b119cb
JB
38672002-06-21 Jim Blandy <jimb@redhat.com>
3868
3869 Remove some vestiges of Harris 88k support.
3870 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3871 register numbering quirk.
3872 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3873 odd symbols occurring in Harris 88k ELF targets.
3874
0fbb3da7
TT
38752002-06-21 Tom Tromey <tromey@redhat.com>
3876
3877 * gdb_locale.h: New file.
3878 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3879 (defs_h): Added gdb_locale.h.
3880 * configure, config.in: Rebuilt.
3881 * configure.in (PACKAGE): Define.
3882 * defs.h: Include gdb_locale.h.
3883 * main.c (captured_main): Call setlocale, bindtextdomain,
3884 textdomain.
3885
456f8b9d
DB
38862002-06-21 Dave Brolley <brolley@redhat.com>
3887
3888 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3889 * config/frv/frv.mt: New file.
3890 * config/frv/tm-frv.h: New file.
3891 * configure.tgt: Support frv-*-*.
3892 * Makefile.in (frv-tdep.o): New target.
3893 * frv-tdep.c: New file.
3894 * NEWS: Mention frv.
3895
cdd463f9
DB
38962002-06-21 Dave Brolley <brolley@redhat.com>
3897
3898 * MAINTAINERS: Add self to "Write After Approval" list.
3899
5d3ed2e3
GS
39002002-06-21 Grace Sainsbury <graces@redhat.com>
3901
3902 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3903 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3904 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3905 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3906 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3907
3908 * m68k-tdep.c: Include arch-utils.h
3909 (m68k_register_raw_size): Add.
3910 (m68k_register_virtual_size): Add.
3911 (m68k_register_virtual_type): Add.
3912 (m68k_register_name): Add.
3913 (m68k_stack_align): Add.
3914 (m68k_register_byte): Add.
3915 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3916 tm-m68k.h.
3917
7f8e7424
GS
39182002-06-21 Grace Sainsbury <graces@redhat.com>
3919
a2c6a6d5 3920 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3921 m68k_find_saved_regs.
3922 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3923 references to it with frame->saved_regs.
7f8e7424
GS
3924 (m68k_gdbarch_init): Added function calls to initialize the
3925 gdbarch structure.
a2c6a6d5
GS
3926 (m68k_fix_call_dummy): Add.
3927 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3928 (CALL_DUMMY): Remove.
3929 (CALL_DUMMY_LENGTH): Remove.
3930 (CALL_DUMMY_START_OFFSET): Remove.
3931 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3932 (FIX_CALL_DUMMY): Remove.
3933 (PUSH_DUMMY_FRAME): Remove.
3934 (POP_FRAME): Remove.
7f8e7424 3935
f461f5cf
PM
39362002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3937
3938 * parse.c (parse_fprintf): New function used to avoid calls to
3939 fprintf in bison parser generated debug code.
3940 * parser-defs.h: Declaration of new parse_fprintf function.
3941 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3942 Set YYDEBUG to 1 by default.
3943 Set YYFPRINTF as parse_fprintf.
3944
7f0c12ed
ML
39452002-06-21 Michal Ludvig <mludvig@suse.cz>
3946
3947 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3948 encoding anymore.
3949 (pointer_encoding, enum ptr_encoding): New.
3950 (execute_cfa_program): Take care about pointer encoding.
3951 (dwarf2_build_frame_info): Only call parse_frame_info for
3952 .debug_frame and .eh_frame.
3953 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3954 fixed augmentation handling, added relative addressing,
3955 ignore duplicate FDEs. Added comments.
19d833a2 3956 * dwarf2cfi.c: Reindented.
7f0c12ed 3957
87c4a039
EZ
39582002-06-20 Elena Zannoni <ezannoni@redhat.com>
3959
3960 * event-top.c (command_handler): Don't use space_at_cmd_start
3961 unless there is sbrk() on the host. Assign time and space data
3962 to union fields of the appropriate length.
3963
1cf877ad
ML
39642002-06-20 Michal Ludvig <mludvig@suse.cz>
3965
3966 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3967 x86_64_register_name. Return type changed to 'const char *'.
3968 (x86_64_register_name2nr): Rename to x86_64_register_number.
3969 (x86_64_gdbarch_init): Update to reflect the change.
3970 * x86-64-tdep.h: Ditto.
3971 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3972 (supply_fpregset): Ditto.
3973
3fadccb3
AC
39742002-06-19 Andrew Cagney <cagney@redhat.com>
3975
3976 * regcache.h: Update copyright.
3977 (struct regcache, struct gdbarch): Add opaque declarations.
3978 (current_regcache): Declare global variable.
3979 (regcache_read, regcache_write): Add gdbarch parameter.
3980 (regcache_save, regcache_save_no_passthrough)
3981 (regcache_restore, regcache_restore_no_passthrough)
3982 (regcache_dup, regcache_dup_no_passthrough)
3983 (regcache_cpy, regcache_cpy_no_passthrough)
3984 (deprecated_grub_regcache_for_registers)
3985 (deprecated_grub_regcache_for_register_valid)
3986 (regcache_valid_p): Add function declarations.
3987
3988 * regcache.c: Update copyright.
3989 (regcache_descr_handle): New global variable.
3990 (struct regcache_descr): Define.
3991 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3992 (regcache_descr, xfree_regcache_descr): New functions.
3993 (struct regcache): Define.
3994 (regcache_xmalloc, regcache_xfree): New functions.
3995 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3996 (regcache_dup, regcache_dup_no_passthrough): New functions.
3997 (regcache_valid_p, regcache_read_as_address): New functions.
3998 (deprecated_grub_regcache_for_registers): New function.
3999 (deprecated_grub_regcache_for_register_valid): New function.
4000 (current_regcache): New global variable.
4001 (register_buffer): Add regcache parameter. Update calls.
4002 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4003 (read_register_gen, write_register_gen): Update register_buffer
4004 call. Test for legacy_p instead of gdbarch_register_read_p or
4005 gdbarch_register_write_p.
4006 (regcache_collect): Update register_buffer call.
4007 (build_regcache): Rewrite. Use deprecated grub functions.
4008 (regcache_save, regcache_save_no_passthrough): New functions.
4009 (regcache_restore, regcache_restore_no_passthrough): New
4010 functions.
4011 (_initialize_regcache): Create the regcache_data_handle. Swap
4012 current_regcache global variable.
4013
4014 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4015 parameter to regcache_read and regcache_write calls.
4016 (sh4_register_read): Ditto.
4017 (sh64_pseudo_register_read): Ditto.
4018 (sh64_register_read): Ditto.
4019 (sh_pseudo_register_write): Ditto.
4020 (sh4_register_write): Ditto.
4021 (sh64_pseudo_register_write): Ditto.
4022 (sh64_register_write): Ditto.
4023
4024 * defs.h (XCALLOC): Define.
4025
152d9db6
GS
40262002-06-19 Grace Sainsbury <graces@redhat.com>
4027
4028 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4029 * m68k-tdep.c (m68k_gdbarch_init): Added.
4030 (m68k_dump_tdep): Added.
4031
170911c7
DJ
40322002-06-19 Daniel Jacobowitz <drow@mvista.com>
4033
4034 * ada-lang.c (fill_in_ada_prototype): Update comment.
4035
2e4ebe70
DJ
40362002-06-19 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4039 MIPS_ABI_LAST.
4040 (mips_abi_string, mips_abi_strings): New.
4041 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4042 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4043 tdep->mips_abi_string. Honor mips_abi_string. Default to
4044 O32 if no ABI is found.
4045 (mips_dump_tdep): Use mips_abi_strings.
4046 (mips_abi_update): New function.
4047 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4048 ``set mips abi'' and ``show mips abi''. Check the size of
4049 mips_abi_strings.
4050
16775908
AC
40512002-06-19 Andrew Cagney <cagney@redhat.com>
4052
4053 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4054 constant.
4055
5051bfa4 40562002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4057
5051bfa4
JB
4058 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4059 current frame using only the first stack size adjustment. All
4060 subsequent size adjustments are not considered to be part of
4061 the "static" part of the current frame.
4062 Compute the address of the saved registers relative to the
4063 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4064 in use in this frame.
4065
56468235
DH
40662002-06-18 Don Howard <dhoward@redhat.com>
4067
4068 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4069 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4070 suggesting this solution.
4071
0b624158
AC
40722002-06-18 Andrew Cagney <ac131313@redhat.com>
4073
4074 * config/romp/xm-rtbsd.h: Delete file.
4075 * config/romp/rtbsd.mh: Delete file.
4076
221ea385
KS
40772002-06-18 Keith Seitz <keiths@redhat.com>
4078
4079 * breakpoint.c (condition_command): Post breakpoint_modify
4080 when a condition is added to an existing breakpoint.
4081 (commands_command): Likewise for commands.
4082 (set_ignore_count): Likewise for ignore counts.
4083 If no tty, do not simply return, still need to send event
4084 notification.
4085 (ignore_command): Only print a newline if the command came
4086 from a tty.
4087 Don't call breakpoints_changed, since this is now properly
4088 handled by set_ignore_count.
4089
5402eed1
AC
40902002-06-18 Andrew Cagney <cagney@redhat.com>
4091
4092 * MAINTAINERS: Note that cris-elf target can be compiled with
4093 -Werror.
4094 * cris-tdep.c (cris_register_name): Make return type constant.
4095 (cris_breakpoint_from_pc): Ditto.
4096
cc22880b
ML
40972002-06-18 Michal Ludvig <mludvig@suse.cz>
4098
4099 * frame.h (struct frame_info): Change type of context to
4100 'struct context'.
4101
fa88f677
AC
41022002-06-17 Andrew Cagney <cagney@redhat.com>
4103
4104 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4105 pointer.
4106 * gdbarch.h, gdbarch.c: Regenerate.
4107 * config/mips/tm-mips.h (mips_register_name): Update.
4108 * i386-tdep.h (i386_register_name): Update.
4109 * mips-tdep.c (mips_register_name): Update
4110 * alpha-tdep.c (alpha_register_name): Update.
4111 * arch-utils.c (legacy_register_name): Update.
4112 * arch-utils.h (legacy_register_name): Update.
4113 * avr-tdep.c (avr_register_name): Update.
4114 * ia64-tdep.c (ia64_register_name): Update.
4115 * i386-tdep.c (i386_register_name): Update.
4116 * sparc-tdep.c (sparc32_register_name): Update.
4117 (sparc64_register_name): Update.
4118 (sparclite_register_name): Update.
4119 (sparclet_register_name): Update.
4120 * sh-tdep.c (sh_generic_register_name): Update.
4121 (sh_sh_register_name): Update.
4122 (sh_sh3_register_name): Update.
4123 (sh_sh3e_register_name): Update.
4124 (sh_sh_dsp_register_name): Update.
4125 (sh_sh3_dsp_register_name): Update.
4126 (sh_sh4_register_name): Update.
4127 (sh_sh64_register_name): Update.
4128 * s390-tdep.c (s390_register_name): Update.
4129 * rs6000-tdep.c (rs6000_register_name): Update.
4130 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4131 (ns32k_register_name_32382): Update.
4132 * d10v-tdep.c (d10v_ts2_register_name): Update.
4133 (d10v_ts3_register_name): Update.
4134 * xstormy16-tdep.c (xstormy16_register_name): Update.
4135 * vax-tdep.c (vax_register_name): Update.
4136 * v850-tdep.c (v850_register_name): Update.
4137 * m68hc11-tdep.c (m68hc11_register_name): Update.
4138 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4139 (am33_register_name): Update.
4140
ea1e7ef6
GS
41412002-06-17 Grace Sainsbury <graces@redhat.com>
4142
4143 * m68k-tdep.c: Reindented.
4144
9b02dd1b
AC
41452002-06-17 Andrew Cagney <ac131313@redhat.com>
4146
4147 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4148 list of predefined types.
4149
8758dec1
MK
41502002-06-16 Mark Kettenis <kettenis@gnu.org>
4151
b6197528
MK
4152 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4153 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4154 REGISTER_CONVERT_TO_RAW): Remove defines.
4155 (i386_register_virtual_type, i386_register_convertible,
4156 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4157 Remove prototypes.
4158 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4159 macros mentioned above.
4160
82b47e62
MK
4161 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4162 (i386lynx_saved_pc_after_call): Remove prototype.
4163 * i386ly-tdep.c: Include "i386-tdep.h".
4164 (i386lynx_saved_pc_after_call): Make static. Use
4165 read_memory_nobpt instead of read_memory. Use
4166 read_memory_unsigned_integer instead of read_memory_integer.
4167 (i386lynx_init_abi): New function.
4168 (i386lynx_coff_osabi_sniffer): New function.
4169 (_initialize_i386bsd_tdep): New function.
4170
8758dec1
MK
4171 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4172 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4173 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4174 (i386_fix_call_dummy): Remove prototype.
4175 * i386-tdep.c (i386_call_dummy_words): New variable.
4176 (i386_gdbarch_init): Adjust for removal of the
4177 macros mentioned above.
4178
e9e68a56
AC
41792002-06-15 Andrew Cagney <ac131313@redhat.com>
4180
4181 * command.h (add_setshow_auto_boolean_cmd): Replace
4182 add_set_auto_boolean_cmd.
4183 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4184 add_set_auto_boolean_cmd.
4185 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4186 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4187 mask-address'' command.
4188 (show_mask_address): Add cmd parameter.
4189 * remote.c (add_packet_config_cmd): Update. Change type of
4190 set_func and show_func to cmd_sfunc_ftype.
4191 (_initialize_remote): Update `set remote Z-packet'
4192 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4193 (show_remote_protocol_e_packet_cmd): Ditto.
4194 (show_remote_protocol_E_packet_cmd): Ditto.
4195 (show_remote_protocol_P_packet_cmd): Ditto.
4196 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4197 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4198 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4199 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4200 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4201 (show_remote_protocol_Z_packet_cmd): Ditto.
4202 (show_remote_protocol_binary_download_cmd): Ditto.
4203 (show_remote_cmd): Pass NULL to all of above.
4204
fc08ec52
MK
42052002-06-15 Mark Kettenis <kettenis@gnu.org>
4206
4207 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4208 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4209 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4210 POP_FRAME): Remove defines.
4211 (i386_push_arguments, i386_store_struct_return,
4212 i386_extract_return_value, i386_store_return_value,
4213 i386_extract_struct_value_address, i386_push_dummy_frame,
4214 i386_pop_frame): Renove prototypes.
4215 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4216 macros mentioned above.
4217
e707bbc2
AC
42182002-06-15 Andrew Cagney <ac131313@redhat.com>
4219
4220 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4221 add_set_boolean_cmd.
4222 (add_setshow_cmd): New function.
4223 * command.h (add_setshow_boolean_cmd): Replace
4224 add_set_boolean_cmd.
4225 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4226 and ``set rdiromatzero''.
4227 * maint.c (_initialize_maint_cmds): Update commented out code.
4228 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4229 * target.c (initialize_targets): Update `set
4230 trust-readonly-sections'.
4231 * remote.c (_initialize_remote): Update `set remotebreak'.
4232
42fdc8df
MK
42332002-06-15 Mark Kettenis <kettenis@gnu.org>
4234
93924b6b
MK
4235 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4236 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4237 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4238 fit into multi-arch framework.
4239 (i386_breakpoint_from_pc): New function.
4240 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4241 above.
4242
42fdc8df
MK
4243 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4244 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4245 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4246 (i386_frameless_function_invocation, i386_frame_num_args,
4247 i386_frame_init_saved_regs): Remove prototypes.
4248 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4249 macros mentioned above.
4250
9773a94b
AC
42512002-06-15 Andrew Cagney <ac131313@redhat.com>
4252
4253 * cli/cli-decode.c (set_cmd_cfunc): Update.
4254 (set_cmd_sfunc): Update.
4255 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4256 (set_cmd_sfunc, set_cmd_cfunc): Update.
4257 * cli/cli-decode.h: Update.
4258
6e157172
MK
42592002-06-15 Mark Kettenis <kettenis@gnu.org>
4260
4261 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4262 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4263
7f19b9a2
AC
42642002-06-15 Andrew Cagney <ac131313@redhat.com>
4265
4266 * defs.h (auto_boolean): Declare enum.
4267 * command.h (cmd_auto_boolean): Delete enum.
4268 * mips-tdep.c (mask_address_var): Update.
4269 (mips_mask_address_p): Update.
4270 (show_mask_address): Update.
4271 * remote.c (struct packet_config): Update.
4272 (update_packet_config): Update.
4273 (show_packet_config_cmd): Update.
4274 (packet_ok): Update.
4275 (add_packet_config_cmd): Update.
4276 (_initialize_remote):
4277 * command.h: Update.
4278 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4279 (do_setshow_command): Update.
4280 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4281 * cli/cli-decode.h: Update.
4282
1cf88de5
MK
42832002-06-15 Mark Kettenis <kettenis@gnu.org>
4284
22ba8cf2
MK
4285 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4286 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4287 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4288 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4289 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4290 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4291
762c5349
MK
4292 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4293 list of DJGPP COFF targets.
4294
091198bb
MK
4295 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4296 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4297 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4298 (FP0_REGNUM): Remove define.
4299 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4300 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4301 (i386_register_virtual_size): Remove protoype.
4302 * i386-tdep.c (i386_register_virtual_size): Removed.
4303 (i386_extract_return_value, i386_store_return_value): Use
4304 FP0_REGNUM instead of NUM_FREGS to determine whether the
4305 floating-point registers are available.
4306 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4307 Adjust for removal of macros mentioned above.
4308
43092002-06-15 Mark Kettenis <kettenis@gnu.org>
4310
fcc9bf01
MK
4311 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4312 comments.
4313 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4314 Remove prototypes.
4315 (supply_gregset, fill_gregset): Remove use of register keyword and
4316 remove declaration for regmap. Use I386_NUM_GREGS instead of
4317 NUM_REGS and NUM_FREGS.
4318 (FPREGSET_FSAVE_OFFSET): Remove.
4319 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4320 NUM_FREGS to determine whether the floating-point registers are
4321 available.
4322
65e78234
MK
4323 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4324 gnu_store_registers): Replace usage of NUM_GREGS with
4325 I386_NUM_GREGS.
4326
98df6387
MK
4327 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4328 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4329 usage of NUM_GREGS with I386_NUM_GREGS.
4330
099a9414
MK
4331 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4332
57976e88
MK
4333 * i386bsd-nat.c: Include "i386-tdep.h".
4334 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4335 I386_NUM_GREGS.
4336
b335f4a6
MK
4337 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4338 and associated comment. They no longer make any sense, since we
4339 don't use this file anymore on Linux.
4340
1cf88de5
MK
4341 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4342 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4343 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4344 elements in these arrays.
4345 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4346 MAX_NUM_REGS.
4347
daa66587
MK
43482002-06-15 Mark Kettenis <kettenis@gnu.org>
4349
4350 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4351 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4352
26e9b323
AC
43532002-06-14 Andrew Cagney <cagney@redhat.com>
4354
4355 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4356 EXTRACT_RETURN_VALUE.
4357 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4358 EXTRACT_STRUCT_VALUE_ADDRESS.
4359 * gdbarch.h, gdbarch.c: Regenerate.
4360
4361 * values.c (value_being_returned): Handle
4362 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4363 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4364
4365 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4366 * arm-tdep.c (arm_gdbarch_init): Update.
4367 * avr-tdep.c (avr_gdbarch_init): Update.
4368 * cris-tdep.c (cris_gdbarch_init): Update.
4369 * d10v-tdep.c (d10v_gdbarch_init): Update.
4370 * ia64-tdep.c (ia64_gdbarch_init): Update.
4371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4372 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4373 * s390-tdep.c (s390_gdbarch_init): Update.
4374 * sh-tdep.c (sh_gdbarch_init): Update.
4375 * s390-tdep.c (s390_gdbarch_init): Update.
4376 * sparc-tdep.c (sparc_gdbarch_init): Update.
4377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4378 * v850-tdep.c (v850_gdbarch_init): Update.
4379 * vax-tdep.c (vax_gdbarch_init): Update.
4380 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4382
4383 * config/arc/tm-arc.h: Update.
4384 * config/d30v/tm-d30v.h: Update.
4385 * config/fr30/tm-fr30.h: Update.
4386 * config/h8300/tm-h8300.h: Update.
4387 * config/h8500/tm-h8500.h: Update.
4388 * config/i386/tm-i386.h: Update.
4389 * config/i386/tm-ptx.h: Update.
4390 * config/i386/tm-symmetry.h: Update.
4391 * config/i960/tm-i960.h: Update.
4392 * config/m32r/tm-m32r.h: Update.
4393 * config/m68k/tm-delta68.h: Update.
4394 * config/m68k/tm-linux.h: Update.
4395 * config/m68k/tm-m68k.h: Update.
4396 * config/m88k/tm-m88k.h: Update.
4397 * config/mcore/tm-mcore.h: Update.
4398 * config/mips/tm-mips.h: Update.
4399 * config/mn10200/tm-mn10200.h: Update.
4400 * config/pa/tm-hppa.h: Update.
4401 * config/pa/tm-hppa64.h: Update.
4402 * config/sparc/tm-sp64.h: Update.
4403 * config/sparc/tm-sparc.h: Update.
4404 * config/sparc/tm-sparclet.h: Update.
4405 * config/z8k/tm-z8k.h: Update.
4406
5179e78f
AC
44072002-06-14 Andrew Cagney <cagney@redhat.com>
4408
4409 * Makefile.in (i386_linux_tdep_h): Define.
4410 (i386_tdep_h, i387_tdep_h): Define.
4411 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4412 $(i386_tdep_h) and $(i387_tdep_h).
4413 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4414
8201327c
MK
44152002-06-14 Mark Kettenis <kettenis@gnu.org>
4416
edf393ac
MK
4417 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4418 Already covered by the default.
4419
896fb97d
MK
4420 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4421 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4422 (i386_gdbarch_init): Initialize long_double_format and long_double
4423 bit.
4424
8201327c
MK
4425 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4426 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4427 Move these to ...
4428 * config/i386/i386sol2.mh: ... here.
4429 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4430 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4431 (SIGCONTEXT_PC_OFFSET): Remove define.
4432 (IN_SIGTRAMP): Remove define.
4433 * i386-sol2-tdep.c: New file.
4434
4435 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4436 * config/i386/tm-i386nw.h: Removed.
4437
4438 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4439 USE_STRUCT_CONVENTION): Remove defines.
4440 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4441 (get_longjmp_target): Remove prototype.
4442 (IN_SIGTRAMP): Remove define.
4443 (i386bsd_in_sigtramp): Remove prototype.
4444 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4445 function. Update comment accordingly
4446 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4447 (FRAME_SAVED_PC): Remove define.
4448 (i386bsd_frame_saved_pc): Remove prototype.
4449 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4450 GET_LONGJMP_TARGET): Remove defines.
4451 (get_longjmp_target): Remove prototype.
4452 (IN_SIGTRAMP): Remove define.
4453 (i386bsd_in_sigtramp): Remove prototype.
4454 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4455 function. Update comment accordingly
4456 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4457 (FRAME_SAVED_PC): Remove define.
4458 (i386bsd_frame_saved_pc): Remove prototype.
4459 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4460 Remove prototype.
4461 (USE_STRUCT_CONVENTION): Remove prototype.
4462 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4463 declaration.
4464 (_initialize_i386bsd_nat): Revise logic to determine some
4465 constants at compile time when compiling a native GDB. Warn if
4466 things don't match up with what we expect.
4467 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4468 Remove variables.
4469 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4470 to use date stored in `struct gdbarch_tdep'.
4471 (i386bsd_sigcontext_offset): Remove varaible.
4472 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4473 stored in `struct gdbarch_tdep'.
4474 (i386bsd_frame_saved_pc): Make static.
4475 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4476 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4477 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4478 i386fbsd4_sc_pc_offset): New variables.
4479 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4480 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4481 functions.
4482 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4483 functions.
4484 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4485 Modify the value of i386fbsd_sigtramp_start and
4486 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4487 i386fbsd_sigtramp_end.
4488 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4489 function.
4490
4491 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4492 define to i386-linux-tdep.h.
4493 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4494 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4495 defines.
4496 (i386_linux_register_name, i386_linux_register_byte,
4497 i386_linux_register_raw_size): Remove prototypes.
4498 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4499 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4500 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4501 TARGET_WRITE_PC): Remove defines.
4502 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4503 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4504 i386_linux_write_pc): Remove prototypes.
4505 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4506 (get_longjmp_target): Remove prototype.
4507 * i386-linux-tdep.h: New file.
4508 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4509 * i386-linux-tdep.c: Include "i386-tdep.h" and
4510 "i386-linux-tdep.h".
4511 (i386_linux_register_name, i386_linux_register_byte,
4512 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4513 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4514 Make static.
4515 (i386_linux_init_abi): New function.
4516 (_initialize_i386_linux_tdep): New function.
4517
4518 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4519 (i386_saved_pc_after_call): Remove prototype.
4520 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4521 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4522 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4523 (i386_register_name, i386_stab_reg_to_regnum,
4524 i386_dwarf_reg_to_regnum): Remove prototypes.
4525 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4526 SIZEOF_SSE_REGS): Remove defines.
4527 (REGISTER_BYTES): Remove define.
4528 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4529 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4530 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4531 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4532 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4533 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4534 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4535 (get_longjmp_target): Remove prototype.
4536 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4537 (sigtramp_saved_pc): Remove define.
4538 (i386v4_sigtramp_saved_pc): Remove prototype.
4539 * config/i386/tm-go32.h (FRAME_CHAIN,
4540 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4541 (i386go32_frame_saved_pc): Remove prototype.
4542 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4543 (get_longjmp_target): Remove prototype.
4544 * i386-tdep.h: Include "osabi.h".
4545 (enum i386_abi): Removed.
4546 (enum struct_return): New enum.
4547 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4548 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4549 sc_pc_offset members.
4550 (i386_gdbarch_register_os_abi): Remove prototype.
4551 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4552 I386_SSE_NUM_REGS): New defines.
4553 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4554 I386_SSE_SIZEOF_REGS): New defines.
4555 (i386_register_name, i386_register_byte, i386_register_raw_size):
4556 New prototypes.
4557 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4558 (i386bsd_sigtramp_saved_pc): New prototype.
4559 * i386-tdep.c: Don't include "elf-bfd.h".
4560 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4561 i386_frame_chain, i386_saved_pc_after_call): Make static.
4562 (i386_frame_saved_pc): Rewrite to call architecture dependent
4563 function to deal with signal handlers. Make static.
4564 (i386go32_frame_saved_pc): Removed.
4565 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4566 Removed.
4567 (i386_get_longjmp_target): New function.
4568 (default_struct_convention, pcc_struct_convention,
4569 reg_struct_convention, valid_conventions, struct_convention): New
4570 variables.
4571 (i386_use_struct_convention): New function.
4572 (i386v4_sigtramp_saved_pc): Renamed to
4573 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4574 (i386_pc_in_sigtramp): New function.
4575 (i386_abi_names): Removed.
4576 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4577 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4578 Removed.
4579 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4580 i386_gdbarch_register_os_abi): Removed.
4581 (struct i386_abi_handler): Removed.
4582 (i386_abi_handler_list): Removed.
4583 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4584 functions.
4585 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4586 i386_nw_init_abi): New functions.
4587 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4588 Use set_gdbarch_xxx() calls instead of relying on macros for a
4589 number of calls.
4590 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4591 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4592 Register the various architecture variants defined in this file.
4593
ad2f7632
DJ
45942002-06-14 Daniel Jacobowitz <drow@mvista.com>
4595
4596 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4597 (struct main_type): Remove arg_types member. Update comments for
4598 struct field.
4599 (TYPE_ARG_TYPES): Remove.
4600 (TYPE_FN_FIELD_ARGS): Update.
4601 (smash_to_method_type): Update prototype.
4602
4603 * c-typeprint.c (cp_type_print_method_args): Take method type
4604 instead of argument list. Use new argument layout. Simplify.
4605 (c_type_print_args): Use new argument layout. Simplify.
4606 (c_type_print_base): Update call to cp_type_print_method_args.
4607 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4608 argument; use die->type instead. Update call to
4609 smash_to_method_type.
4610 (read_structure_scope): Update call to dwarf2_add_member_fn.
4611 * gdbtypes.c (allocate_stub_method): Update comment.
4612 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4613 Use new argument layout.
4614 (check_stub_method): Use new argument layout. Don't count
4615 void as an argument.
4616 (print_arg_types): Update comments. Use new argument layout.
4617 (recursive_dump_type): Don't print arg_types member.
4618 * hpread.c (hpread_read_struct_type): Use new argument layout.
4619 (fixup_class_method_type): Likewise.
4620 (hpread_type_lookup): Likewise.
4621 * stabsread.c (read_type): Update calls to read_args and
4622 smash_to_method_type.
4623 (read_args): Use new argument layout. Simplify.
4624 * valops.c (typecmp): Use new argument layout. Update parameters
4625 and comments. Simplify.
4626 (hand_function_call): Use new argument layout.
4627 (search_struct_method): Update call to typecmp.
4628 (find_overload_match): Use new argument layout.
4629
6da02953
DJ
46302002-06-13 Daniel Jacobowitz <drow@mvista.com>
4631
4632 * NEWS: Mention multithreaded debug support for gdbserver.
4633
519b2366
DJ
46342002-06-13 Daniel Jacobowitz <drow@mvista.com>
4635
4636 * MAINTAINERS: Mention NEWS.
4637
6c0d6680
DJ
46382002-06-13 Daniel Jacobowitz <drow@mvista.com>
4639
4640 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4641 (struct mips_objfile_private, compare_pdr_entries): New.
4642 (non_heuristic_proc_desc): Read the ".pdr" section if it
4643 is present.
4644
6529d2dd
AC
46452002-06-12 Andrew Cagney <ac131313@redhat.com>
4646
4647 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4648 (arm_debug): New static variable.
4649 (_initialize_arm_tdep): Add ``set debug arm'' command.
4650
26216b98
AC
46512002-06-12 Andrew Cagney <ac131313@redhat.com>
4652
4653 * Makefile.in (sim_arm_h): Define.
4654 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4655 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4656 (arm_register_sim_regno): New function, map an internal REGNUM
4657 onto a simulator register number.
4658 (arm_gdbarch_init): Set register_sim_regno.
4659
814b3ba0
AH
46602002-06-09 Aldy Hernandez <aldyh@redhat.com>
4661
4662 * MAINTAINERS: Add self.
4663
475b0867
JB
46642002-06-11 Jim Blandy <jimb@redhat.com>
4665
919d772c
JB
4666 * source.c (source_info): Mention whether the symtab has
4667 information about preprocessor macros.
4668
475b0867
JB
4669 Call the command `info macro', not `show macro'.
4670 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4671 Fix error message.
4672 (_initialize_macrocmd): Register `info_macro_command' in
4673 `infolist', not `showlist'.
4674
9e364162
DJ
46752002-06-11 Daniel Jacobowitz <drow@mvista.com>
4676
4677 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4678 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4679 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4680 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4681 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4682 unconditionally.
4683 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4684 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4685 (_initialize_mips_tdep): Remove dead code.
4686 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4687 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4688 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4689 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4690 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4691 MIPS_LAST_FP_ARG_REGNUM): Remove.
4692
23aa4c72
ML
46932002-06-11 Michal Ludvig <mludvig@suse.cz>
4694
4695 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4696 (unwind_tmp_obstack_free, parse_frame_info)
4697 (update_context, cfi_read_fp, cfi_write_fp)
4698 (cfi_frame_chain, cfi_init_extra_frame_info)
4699 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4700 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4701
70eb15a4
CV
47022002-06-11 Corinna Vinschen <vinschen@redhat.com>
4703
4704 * v850-tdep.c (v850_type_is_scalar): New function.
4705 (v850_use_struct_convention): Match current gcc implementation
4706 as close as possible.
4707 (v850_push_arguments): Fix stack_offset handling. Don't write
4708 struct_addr into register. This is done by v850_store_struct_return.
4709 (v850_extract_return_value): Care for structs.
4710 (v850_store_return_value): Ditto.
4711 (v850_store_struct_return): Actually write address.
4712
482a4d06
ML
47132002-06-11 Michal Ludvig <mludvig@suse.cz>
4714
4715 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4716 without debug information too.
4717
d855c300
AC
47182002-06-10 Andrew Cagney <ac131313@redhat.com>
4719
4720 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4721 Make multi-arch pure.
4722 * gdbarch.h, gdbarch.c: Re-generate.
4723 * arm-tdep.c (arm_print_float_info): Update.
4724 * arch-utils.h (default_print_float_info): Update.
4725 * arch-utils.c (default_print_float_info): Update.
4726 * infcmd.c (float_info): Update call.
4727
dd12a101
AC
47282002-06-10 Andrew Cagney <ac131313@redhat.com>
4729
4730 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4731 the front of the initialize list.
4732
101dcfbe
AC
47332002-06-10 Andrew Cagney <ac131313@redhat.com>
4734
4735 * infrun.c (struct inferior_status): Replace fields
4736 selected_frame_address and selected_level with field
4737 selected_frame_id.
4738 (save_inferior_status): Update. Use get_frame_id.
4739 (struct restore_selected_frame_args): Delete.
4740 (restore_selected_frame): Update. Use frame_find_by_id.
4741 (restore_inferior_status): Update.
4742
4743 * breakpoint.h (struct breakpoint): Change type of
4744 watchpoint_frame to frame_id.
4745 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4746 call to get_current_frame.
4747 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4748 get_current_frame.
4749 (watchpoint_check): Use frame_find_by_id.
4750
4751 * frame.h (record_selected_frame): Delete declaration.
4752 * stack.c (record_selected_frame): Delete function.
4753
4754 * frame.h (struct frame_id): Define.
4755 (get_frame_id): Declare.
4756 (frame_find_by_id): Declare.
4757 * frame.c (frame_find_by_id): New function.
4758 (get_frame_id): New function.
4759
304270b6
AV
47602002-06-10 Andrey Volkov <avolkov@transas.com>
4761
4762 * ser-e7kpc.c: Fix duplicated define and call of
4763 _initialize_ser_e7000pc
4764
2f2cf184
DJ
47652002-06-09 Daniel Jacobowitz <drow@mvista.com>
4766
4767 * signals/signals.c (target_signal_from_host): Fix #ifdef
4768 SIGRTMIN case.
4769 (do_target_signal_to_host): Likewise.
4770
caaa3122
DJ
47712002-06-09 Daniel Jacobowitz <drow@mvista.com>
4772
4773 * mips-tdep.c (mips_find_abi_section): New function.
4774 (mips_gdbarch_init): Call it.
4775
6ac5df3a
MK
47762002-06-09 Mark Kettenis <kettenis@gnu.org>
4777
4778 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4779 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4780 after Andrew's 2002-06-08 gdbarch change.
4781
82ea117a
MK
47822002-06-09 Mark Kettenis <kettenis@gnu.org>
4783
4784 * i386-linux-nat.c (suppy_gregset): Don't supply
4785 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4786 register cache.
4787 (fill_gregset): Don't fetch it under the same circumstances.
4788
3c25f8c7
AC
47892002-06-09 Andrew Cagney <cagney@redhat.com>
4790
4791 * Makefile.in (callback_h): Define.
4792 (remote_sim_h): Update path to remote-sim.h.
4793 (remote-rdp.o): Add $(callback_h).
4794 (remote-sim.o): Use $(callback_h).
4795 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4796 * remote-rdp.c: Include "gdb/callback.h".
4797
1029b7fa
MK
47982002-06-09 Mark Kettenis <kettenis@gnu.org>
4799
4800 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4801 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4802
616675d3
AC
48032002-06-08 Andrew Cagney <ac131313@redhat.com>
4804
a3efda28
AC
4805 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4806 * rdi-share/serpardr.c: Ditto.
4807 * rdi-share/unixcomm.c: Ditto.
4808 * rdi-share/serdrv.c: Ditto.
4809 * rdi-share/hostchan.h: Ditto.
4810 * rdi-share/hostchan.c: Ditto.
4811 * rdi-share/host.h: Ditto.
4812 * rdi-share/devsw.c: Ditto.
4813
c5f10366
AC
4814 * objfiles.h: Change type of obj_private to void pointer.
4815 * pa64solib.c: Update copyright. Don't include "assert.h", use
4816 strcmp instead of STREQ, use LONGEST, do not use PTR
4817 * somsolib.c: Ditto.
4818
616675d3
AC
4819 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4820 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4821 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4822
e4b415d9
AC
48232002-06-08 Andrew Cagney <ac131313@redhat.com>
4824
4825 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4826 (default_get_saved_register): Delete function.
4827 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4828 generic_unwind_get_saved_register.
4829 * gdbarch.h, gdbarch.c: Re-generate.
4830
ca0d0b52
AC
48312002-06-08 Andrew Cagney <ac131313@redhat.com>
4832
4833 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4834 generic_func_frame_chain_valid.
4835 * gdbarch.h, gdbarch.c: Re-generate.
4836 * blockframe.c (generic_func_frame_chain_valid): Only check
4837 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4838 passing FP to PC_IN_CALL_DUMMY.
4839 Fix PR gdb/360.
4840
76860b5f
AC
48412002-06-08 Andrew Cagney <ac131313@redhat.com>
4842
4843 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4844 (register_gdbarch_data): Initialize init_p.
4845 (gdbarch_data): Initialize data pointer using the init function.
4846 (init_gdbarch_data): Delete function.
4847 (gdbarch_update_p): Update.
4848 (initialize_non_multiarch): Update.
4849 (struct gdbarch): Add field initialized_p.
4850 * gdbarch.h, gdbarch.c: Re-generate.
4851
8dda9770
ML
48522002-06-07 Michal Ludvig <mludvig@suse.cz>
4853
4854 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4855 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4856 better do the things actually here.
4857 * x86-64-tdep.c (x86_64_register_name2nr): New.
4858 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4859 (x86_64_gdbarch_init): Respect the above change.
4860 * x86-64-tdep.h (x86_64_register_name2nr)
4861 (x86_64_register_nr2name): Add prototypes.
4862 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4863
3d79a47c
MS
48642002-06-06 Michael Snyder <msnyder@redhat.com>
4865
7bd91a28
MS
4866 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4867 Delete extra braces and re-indent.
4868 (d10v_store_return_value): Char return values
3d79a47c
MS
4869 must be shifted over by one byte in R0.
4870 (d10v_extract_return_value): Delete extra braces, re-indent.
4871
095a4c96
EZ
48722002-06-06 Elena Zannoni <ezannoni@redhat.com>
4873
4874 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4875 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4876 (d10v_integer_to_address): Rewrite.
4877 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4878 the d10v specific functions which take care of converting to the
4879 correct space.
4880
e8a77ca4
EZ
48812002-06-06 Elena Zannoni <ezannoni@redhat.com>
4882
4883 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4884 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4885
4f2e4a4f
AC
48862002-06-02 Andrew Cagney <ac131313@redhat.com>
4887
4888 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4889 includes.
4890 * config/tm-linux.h: Ditto.
4891 * config/alpha/tm-alphalinux.h: Ditto.
4892 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4893 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4894 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4895 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4896 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4897 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4898 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4899 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4900 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4901 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4902 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4903 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4904 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4905 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4906 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4907 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4908 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4909 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4910 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4911 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4912 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4913 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4914 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4915 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4916 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4917 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4918 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4919 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4920 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4921 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4922 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4923 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4924 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4925 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4926 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4927 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4928 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4929
ae2ab2ce
AS
49302002-05-04 Aidan Skinner <aidan@velvet.net>
4931
4932 * ada-exp.tab.c: New file
4933 * ada-exp.y: New file
4934 * ada-lang.c: New file
4935 * ada-lang.h: New file
4936 * ada-lex.c: New file
4937 * ada-lex.l: New file
4938 * ada-tasks.c: New file
4939 * ada-typeprint.c: New file
4940 * ada-valprint.c: New file
4941
0ddd0135
JT
49422002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4943
4944 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4945 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4946
750fbacc
JT
49472002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4948
4949 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4950 insetead of ppc-linux-tdep.o.
4951 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4952 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4953
df94e18a
AC
49542002-06-02 Andrew Cagney <ac131313@redhat.com>
4955
4956 2002-05-07 Christian Groessler <chris@groessler.org>
4957 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4958 bit register contents for little endian hosts.
4959
1a38ab75
AC
49602002-06-01 Andrew Cagney <ac131313@redhat.com>
4961
4962 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4963 any maintainer.
4964
8b1632ac
AC
49652002-06-01 Andrew Cagney <ac131313@redhat.com>
4966
4967 * gdbarch.h: Regenerate.
4968
627054c8
AC
49692002-06-01 Andrew Cagney <ac131313@redhat.com>
4970
4971 * MAINTAINERS: Add everyone to write-after-approval list.
4972
4f460812
AC
49732002-06-01 Andrew Cagney <ac131313@redhat.com>
4974
4975 * stack.c (frame_info): Use frame_register_unwind instead of
4976 saved_regs. Mention when the SP is on the stack or in a register.
4977
4978 * frame.h (frame_register_unwind_ftype): Define. Document.
4979 (struct frame_info): Add field register_unwind and
4980 register_unwind_cache.
4981 (frame_register_unwind): Declare.
4982 (generic_unwind_get_saved_register): Declare.
4983
4984 * frame.c (frame_register_unwind): New function.
4985 (generic_unwind_get_saved_register): New function.
4986
4987 * blockframe.c (generic_call_dummy_register_unwind): New function.
4988 (frame_saved_regs_register_unwind): New function.
4989 (set_unwind_by_pc): New function.
4990 (create_new_frame): New function.
4991 (get_prev_frame): New function.
4992
de888f76
AC
49932002-05-30 Andrew Cagney <ac131313@redhat.com>
4994
4995 * a29k-share/: Delete directory.
4996 * remote-vx29k.c: Delete file.
4997
2f2c3626
JT
49982002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4999
5000 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5001 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5002
9ce5c36a
JT
50032002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5004
5005 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5006 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5007 (sparc64nbsd-nat.o)
5008 (sparcnbsd-nat.o)
5009 (sparcnbsd-tdep.o): New dependency lists.
5010 * NEWS: Note new UltraSPARC NetBSD native configuration.
5011 * configure.host (sparc64-*-netbsd*): New host.
5012 * configure.tgt (sparc-*-netbsdelf*)
5013 (sparc-*-netbsd*): Set gdb_target to nbsd.
5014 (sparc64-*-netbsd*): New target.
5015 * sparc64nbsd-nat.c: New file.
5016 * sparcnbsd-nat.c: New file.
5017 * sparcnbsd-tdep.c: New file.
5018 * sparcnbsd-tdep.h: New file.
5019 * config/sparc/nbsd.mt: New file.
5020 * config/sparc/nbsd64.mh: New file.
5021 * config/sparc/nbsd64.mt: New file.
5022 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5023 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5024 (HOST_IPC): Remove.
5025 * config/sparc/nbsdaout.mt: Remove.
5026 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5027 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5028 (HOST_IPC): Remove.
5029 * config/sparc/nbsdelf.mt: Remove.
5030 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5031 sparc-nat.c compatiblity defines.
5032 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5033 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5034 * config/sparc/tm-nbsd64.h: New file.
5035 * config/sparc/tm-nbsdaout.h: Remove.
5036 * config/sparc/xm-nbsd.h: Remove.
5037
ef3cf062
JT
50382002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5039
5040 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5041 * sparc-tdep.c: Include osabi.h.
5042 (gdbarch_tdep): Add osabi member.
5043 (_initialize_sparc_tdep): Use gdbarch_register.
5044 (sparc_gdbarch_init): Use generic OS ABI framework.
5045 (sparc_dump_tdep): New function.
5046
ee8ff470
KB
50472002-05-30 Kevin Buettner <kevinb@redhat.com>
5048
5049 * corefile.c (do_captured_read_memory_integer): Return non-zero
5050 result.
5051 (safe_read_memory_integer): Copy result of memory read when
5052 status is non-zero. Also, add comments.
5053
7b112f9c
JT
50542002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5055
5056 * Makefile.in (ppc_tdep_h): Define.
5057 (ppc-linux-nat.o)
5058 (ppc-linux-tdep.o)
5059 (rs6000-tdep.o): Use $(ppc_tdep_h).
5060 (ppc-sysv-tdep.o)
5061 (ppcnbsd-nat.o)
5062 (ppcnbsd-tdep.o): New dependency lists.
5063 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5064 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5065 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5066 (ppc_sysv_abi_broken_use_struct_convention)
5067 (ppc_sysv_abi_use_struct_convention)
5068 (ppc_sysv_abi_push_arguments): Move to...
5069 * ppc-sysv-tdep.c: ...here.
5070 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5071 * rs6000-tdep.c (process_note_abi_tag_sections)
5072 (get_elfosabi): Remove.
5073 (rs6000_gdbarch_init): Use generic OS ABI framework.
5074 (rs6000_dump_tdep): New function.
5075 (_initialize_rs6000_tdep): Use gdbarch_register.
5076 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5077 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5078 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5079 of ppc-linux-tdep.o.
5080 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5081 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5082 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5083 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5084 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5085 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5086
480dd42a
JB
50872002-05-29 Jim Blandy <jimb@redhat.com>
5088
5089 * macroscope.c (default_macro_scope): Put `void' in empty argument
5090 list.
5091
4182591f
AC
50922002-05-29 Andrew Cagney <ac131313@redhat.com>
5093
5094 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5095 * arch-utils.c: Include "sim-regno.h".
5096 * gdbarch.sh: Don't include "sim-regno.h".
5097 * gdbarch.h, gdbarch.c: Regenerate.
5098 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5099 here.
5100 * arch-utils.h (legacy_register_sim_regno): To here.
5101 * remote-sim.c (legacy_register_sim_regno): Move function from
5102 here.
5103 * arch-utils.c (legacy_register_sim_regno): To here.
5104
8238d0bf
AC
51052002-05-28 Andrew Cagney <ac131313@redhat.com>
5106
5107 * sim-regno.h: New file.
5108 * Makefile.in (sim_regno_h): Define.
5109 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5110 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5111 (legacy_register_sim_regno): New function.
5112 (one2one_register_sim_regno): New function.
5113 (gdbsim_fetch_register): Rewrite.
5114 (gdbsim_store_register): Only store a register when
5115 REGISTER_SIM_REGNO is valid.
5116 * d10v-tdep.c: Include "sim-regno.h".
5117 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5118 (d10v_ts3_register_sim_regno): Ditto.
5119 * gdbarch.sh: Include "sim-regno.h".
5120 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5121 * gdbarch.h, gdbarch.c: Regenerate.
5122 * arch-utils.h (default_register_sim_regno): Delete declaration.
5123 * arch-utils.c (default_register_sim_regno): Delete function.
5124
485721b1
JT
51252002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5126
5127 * ppcnbsd-nat.c: Rewrite.
5128 * ppcnbsd-tdep.c: New file.
5129 * ppcnbsd-tdep.h: New file.
5130 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5131 solib.o, and solib-svr4.o.
5132 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5133 nbsd-tdep.o, and corelow.o.
5134
697f244d
AC
51352002-05-28 Andrew Cagney <ac131313@redhat.com>
5136
5137 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5138 `tr' and `sed'. Mention that `broken' targets are not expected to
5139 build.
5140
f08caad1 51412002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5142
5143 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5144 Let PC point right after the prologue before looking up symbols.
5145
3139facc
MH
51462002-05-27 Martin M. Hunt <hunt@redhat.com>
5147
5148 * i386-tdep.c (i386_register_virtual_type): Return
5149 builtin_type_vec128i for SSE registers.
5150
5151 * gdbtypes.h (builtin_type_vec128i): Declare.
5152
5153 * gdbtypes.c (build_builtin_type_vec128i): New function.
5154 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5155 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5156 (build_gdbtypes): Initialize new builtin vector types.
5157 (_initialize_gdbtypes): Register new vector types with gdbarch.
5158
6e3ba3b8
JT
51592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5162 since it has been multi-arch'd.
5163 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5164 Move Alpha and VAX multi-arch news entries to same section
5165 as other multi-arch news.
5166
93d5585d
JT
51672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5168
5169 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5170 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5171 static. Rename some register numbers to put them in ns32k-tdep
5172 private namespace.
5173 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5174 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5175 functions.
5176 (_initialize_ns32k_tdep): Use gdbarch_register.
5177 * ns32k-tdep.h: New file.
5178 * ns32knbsd-tdep.c: New file.
5179 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5180 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5181 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5182 REGISTER_BYTES, REGISTER_BYTE): Remove.
5183 * config/ns32k/tm-ns32k.h: New file.
5184 * config/ns32k/tm-umax.h: Remove.
5185
efb2c70e
JT
51862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5187
5188 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5189 ns32k_store_struct_return, ns32k_extract_return_value,
5190 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5191 functions.
5192 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5193 ns32k_saved_pc_after_call.
5194 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5195 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5196 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5197 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5198 ns32k_extract_struct_value_address.
5199
7bcc927b
JT
52002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5201
5202 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5203 ns32k_fix_call_dummy): New.
5204 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5205 ns32k_call_dummy_words.
5206 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5207 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5208 CALL_DUMMY_NARGS): Remove.
5209 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5210
78f9d765
JT
52112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5212
5213 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5214 ns32k_frame_saved_pc, ns32k_frame_args_address,
5215 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5216 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5217 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5218 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5219 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5220 (BREAKPOINT): Remove..
5221 (FRAME_CHAIN): Define as ns32k_frame_chain.
5222 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5223 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5224 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5225 (FRAME_FIND_SAVED_REGS): Remove.
5226 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5227 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5228 (POP_FRAME): Define as ns32k_pop_frame.
5229
f2c762e0
JT
52302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5231
5232 * ns32k-tdep.c (ns32k_register_byte_32082,
5233 ns32k_register_byte_32382, ns32k_register_raw_size,
5234 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5235 functions.
5236 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5237 ns32k_register_byte_32382.
5238 * config/ns32k/tm-umax.h: Update copyright years.
5239 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5240 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5241 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5242 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5243 (ns32k_get_enter_addr): Fix prototype.
5244
af137673
JT
52452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5246
5247 * ns32k-tdep.c: Update copyright years.
5248 (ns32k_register_name_32082): New function.
5249 (ns32k_register_name_32382): Ditto.
5250 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5251 (REGISTER_NAME): Define as ns32k_register_name_32382.
5252 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5253 (REGISTER_NAME): Define as ns32k_register_name_32082.
5254
a8bc7b56
JB
52552002-05-24 Jim Blandy <jimb@redhat.com>
5256
5257 * dwarf2read.c (free_line_header): Use xfree, not free.
5258
83a45910
JT
52592002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5260
5261 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5262 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5263
0db71247
AC
52642002-05-23 Andrew Cagney <ac131313@redhat.com>
5265
5266 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5267
b9e5e4dd
AC
52682002-05-23 Andrew Cagney <ac131313@redhat.com>
5269
5270 From Ross Alexander at NEC Europe:
5271 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5272
de530e84
MS
52732002-05-23 Michael Snyder <msnyder@redhat.com>
5274
5275 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5276 for input, rather than parse_and_eval_address.
5277
b91b96f4
AC
52782002-05-23 Andrew Cagney <ac131313@redhat.com>
5279
5280 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5281 * Makefile.in (sim_d10v_h): Update definition.
5282
8b279e7a
AC
52832002-05-24 Andrew Cagney <cagney@redhat.com>
5284
5285 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5286 change `2002-05-22 Michael Snyder' below.
5287 (d10v_push_arguments): Ditto.
5288 (d10v_extract_return_value): Ditto.
5289
0a3d0425
JB
52902002-05-23 Jim Blandy <jimb@redhat.com>
5291
5292 * macrotab.c (check_for_redefinition): Don't complain if the new
5293 definition is the same as the previous one. Take more arguments
5294 to allow the comparison.
5295 (macro_define_object, macro_define_function): Pass more arguments
5296 to check_for_redefinition.
5297
78eac43e
MS
52982002-05-22 Michael Snyder <msnyder@redhat.com>
5299
5300 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5301 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5302 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5303 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5304 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5305 Add a temp variable to save a call (and a memory read).
5306 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5307 if possible (so that PC_IN_CALL_DUMMY will work).
5308
9bc1edb8
CV
53092002-05-22 Corinna Vinschen <vinschen@redhat.com>
5310
5311 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5312
005ef3d2
ML
53132002-05-22 Michal Ludvig <mludvig@suse.cz>
5314
5315 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5316 fde->cie_ptr.
5317 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5318 (dwarf2_build_frame_info): Add offset to fde->initial_location
5319 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5320 (execute_stack_op): Change type of 'result' from ULONGEST to
5321 CORE_ADDR.
005ef3d2 5322
fcf4f891
JT
53232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5324
5325 * config/alpha/tm-nbsd.h: Include solib.h.
5326
cfef91e4
JT
53272002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5328
5329 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5330 assumptions about the host's byte order.
5331
9964235a
JT
53322002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5333
5334 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5335 to dependency list.
5336 * alphanbsd-tdep.c: Include solib-svr4.h.
5337 * shnbsd-tdep.c: Ditto.
5338
9eeef8ef
JT
53392002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5340
5341 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5342 nbsd-tdep.h to dependency list.
5343 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5344 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5345 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5346 nbsdaout.mh and nbsdelf.mh consistently.
5347 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5348 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5349 nbsdaout.mt and nbsdelf.mh consistently.
5350 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5351 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5352 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5353 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5354 a.out shared library stuff from here...
5355 * config/nm-nbsdaout.h: ...to here.
5356 * config/tm-nbsd.h: Remove.
5357 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5358 * config/arm/nbsd.mh: Remove.
5359 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5360 nbsd-tdep.o.
5361 * config/arm/nbsdaout.mh: New file.
5362 * config/arm/nbsdelf.mh: New file.
5363 * config/arm/nm-nbsdaout.h: New file.
5364 * config/i386/nbsd.mh: Remove.
5365 * config/i386/nbsd.mt: Remove.
5366 * config/i386/nbsdaout.mh: New file.
5367 * config/i386/nbsdaout.mt: New file.
5368 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5369 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5370 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5371 i386_register_u_addr): Remove.
5372 * config/i386/nm-nbsdaout.h: New file.
5373 * config/i386/nm-nbsdelf.h: Remove.
5374 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5375 (USE_STRUCT_CONVENTION): Remove.
5376 * config/i386/tm-nbsdaout.h: New file.
5377 * config/i386/tm-nbsdelf.h: Remove.
5378 * config/m68k/nbsd.mh: Remove.
5379 * config/m68k/nbsd.mt: Remove.
5380 * config/m68k/nbsdaout.mh: New file.
5381 * config/m68k/nbsdaout.mt: New file.
5382 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5383 * config/m68k/nm-nbsdaout.h: New file.
5384 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5385 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5386 * config/ns32k/nbsd.mh: Remove.
5387 * config/ns32k/nbsd.mt: Remove.
5388 * config/ns32k/nbsdaout.mh: New file.
5389 * config/ns32k/nbsdaout.mt: New file.
5390 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5391 * config/ns32k/nm-nbsdaout.h: New file.
5392 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5393 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5394 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5395 (SVR4_SHARED_LIBS): Remove.
5396 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5397 * config/sparc/nbsd.mh: Remove.
5398 * config/sparc/nbsd.mt: Remove.
5399 * config/sparc/nbsdaout.mh: New file.
5400 * config/sparc/nbsdaout.mt: New file.
5401 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5402 * config/sparc/nbsdelf.mt: New file.
5403 * config/sparc/nm-nbsdaout.h: New file.
5404 * config/sparc/nm-nbsdelf.h: Remove.
5405 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5406 * config/sparc/tm-nbsdaout.h: New file.
5407
257ce470
JT
54082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5409
5410 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5411 mipsnbsd-tdep.c
5412 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5413
76a6d5fe
JT
54142002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5415
5416 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5417 shnbsd-nat.c.
5418 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5419
45888261
JT
54202002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5421
5422 * NEWS: Note new MIPS NetBSD native configuration.
5423 * configure.host (mips*-*-netbsd*): New host.
5424 * configure.tgt (mips*-*-netbsd*): New target.
5425 * mipsnbsd-nat.c: New file.
5426 * mipsnbsd-tdep.c: New file.
5427 * mipsnbsd-tdep.h: New file.
5428 * config/mips/nbsd.mh: New file.
5429 * config/mips/nbsd.mt: New file.
5430 * config/mips/nm-nbsd.h: New file.
5431 * config/mips/tm-nbsd.h: New file.
5432
70f80edf
JT
54332002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5434
5435 * Makefile.in (SFILES): Add osabi.c.
5436 (COMMON_OBS): Add osabi.o.
5437 (osabi.o): New dependency list.
5438 * osabi.c: New file.
5439 * osabi.h: New file.
5440 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5441
5442 * Makefile.in (alpha_tdep_h): Define and use instead of
5443 alpha-tdep.h.
5444 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5445 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5446 Remove.
5447 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5448 * alpha-tdep.h: Include osabi.h.
5449 (alpha_abi): Remove.
5450 (gdbarch_tdep): Use generic OS ABI framework.
5451 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5452 gdbarch_register_osabi.
5453 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5454 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5455 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5456
5457 * Makefile.in (sh_tdep_h): Add osabi.h.
5458 * sh-tdep.h (sh_osabi): Remove.
5459 (gdbarch_tdep): Use generic OS ABI framework.
5460 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5461 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5462 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5463 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5464
5465 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5466 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5467 gdbarch_register_osabi.
5468 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5469 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5470 (get_elfosabi): Rename to...
5471 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5472 ABI framework support routines.
5473 (arm_gdbarch_init): Use generic OS ABI framework.
5474 (arm_dump_tdep): Likewise.
5475 (_initialize_arm_tdep): Likewise.
5476 * arm-tdep.h: Include osabi.h.
5477 (arm_abi): Remove.
5478 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5479 osabi member.
5480 (arm_gdbarch_register_os_abi): Remove prototype.
5481 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5482 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5483
5484 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5485 * mips-tdep.c: Include osabi.h.
5486 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5487 OS ABI framework.
5488
d194345b
KH
54892002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5490
5491 * h8300-tdep.c: Fix formatting.
5492
70c6b0d1
EZ
54932002-05-20 Elena Zannoni <ezannoni@redhat.com>
5494
5495 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5496 printing vector registers.
5497
165b8e33
AC
54982002-05-19 Andrew Cagney <ac131313@redhat.com>
5499
5500 From Fernando Nasser:
5501 * remote.c (remote_async_open_1): Re-throw the exception when the
5502 connection fails.
5503 (remote_cisco_open): Ditto.
5504 (remote_open_1): Ditto.
5505
36918e70
AC
55062002-05-19 Andrew Cagney <ac131313@redhat.com>
5507
5508 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5509 (remote_start_remote): Add uiout parameter. Pass through to
5510 remote_start_remote_dummy.
5511 (remote_open_1): Use catch_exception instead of catch_errors.
5512 (remote_async_open_1): Ditto.
5513 (remote_cisco_open): Ditto.
5514
ae44c0c4
AC
55152002-05-19 Andrew Cagney <ac131313@redhat.com>
5516
5517 * remote.c (remote_start_remote): Replace PTR with void pointer.
5518 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5519 static.
5520
8efe637d
AC
55212002-05-18 Andrew Cagney <ac131313@redhat.com>
5522
5523 * gdb_indent.sh: Allow the script to be run in the sim directory.
5524
2f1b5984
MK
55252002-05-18 Mark Kettenis <kettenis@gnu.org>
5526
f0f625e2
MK
5527 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5528 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5529
2f1b5984
MK
5530 * corelow.c (core_open): Only call set_gdbarch_from_file if
5531 exec_bfd is NULL.
5532
fc974602
AV
55332002-05-17 Andrey Volkov <avolkov@transas.com>
5534
5535 * h8300-tdep.c: Add support of EXR register
5536 * config/h8300/tm-h8300.h: Ditto.
5537
906709f4
AV
55382002-05-17 Andrey Volkov <avolkov@transas.com>
5539
5540 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5541
6e591d68
AV
55422002-05-17 Andrey Volkov <avolkov@transas.com>
5543
5544 * h8300-tdep.c: Change literal regnums to REGNO.
5545
84f0252a
JB
55462002-05-17 Jim Blandy <jimb@redhat.com>
5547
e0e9281e
JB
5548 * NEWS: Note addition of macro support.
5549
84f0252a
JB
5550 Expand preprocessor macros in C expressions.
5551 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5552 (scan_macro_expansion, scanning_macro_expansion,
5553 finished_macro_expansion): New function declarations.
5554 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5555 variable declarations.
5556 * parser-defs.h (expression_context_pc): New declaration.
5557 * parse.c (expression_context_pc): New variable.
5558 (parse_exp_1): Set expression_context_pc, as well as
5559 expression_context_block.
5560 * c-exp.y (yylex): If we're not already reading the result of a
5561 macro expansion, try to macro-expand the next token. When we're
5562 done scanning a macro expansion, switch back to the mainline text.
5563 Commas and `if's in a macro's expansion don't terminate the input.
5564 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5565 (macro_original_text, macro_expanded_text,
5566 expression_macro_lookup_func, expression_macro_lookup_baton): New
5567 variables.
5568 (scan_macro_expansion, scanning_macro_expansion,
5569 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5570 c_preprocess_and_parse): New functions.
5571 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5572 c_preprocess_and_parse, instead of c_parse.
5573 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5574 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5575
1c509ca8
JR
5576Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5577
5578 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5579 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5580 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5581
2250ee0c
CV
55822002-05-17 Corinna Vinschen <vinschen@redhat.com>
5583
5584 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5585
ab3b8126
JT
55862002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5587
5588 * Makefile.in (sh_tdep_h): Define and use.
5589 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5590 register enum): Move to...
5591 * * sh-tdep.h: ...here.
5592 * sh-tdep.c: Include sh-tdep.h.
5593 * sh3-rom.c: Likewise.
5594 * shnbsd-tdep.c: Likewise.
5595
ed9d4749
MS
55962002-05-16 Michael Snyder <msnyder@redhat.com>
5597
5598 * arm-tdep.c: Spelling fix in comment.
5599
2e276125
JB
56002002-05-16 Jim Blandy <jimb@redhat.com>
5601
6821892e
JB
5602 Add commands for manually expanding macros and showing their
5603 definitions.
5604 * macrocmd.c, macroscope.c, macroscope.h: New files.
5605 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5606 (macroscope_h): New variable.
5607 (HFILES_NO_SRCDIR): Add macroscope.h.
5608 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5609 (macroscope.o, macrocmd.o): New rules.
5610
2e276125
JB
5611 Teach the Dwarf 2 reader to read macro information.
5612 * dwarf2read.c: #include "macrotab.h".
5613 (dwarf_macinfo_buffer): New variable.
5614 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5615 dwarf_macinfo_size.
5616 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5617 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5618 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5619 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5620 dwarf2_macro_spaces_in_definition): New complaints.
5621 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5622 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5623 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5624 the partial symbol table.
5625 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5626 from what's recorded in the partial symbol table.
5627 (read_file_scope): If the compilation unit has a
5628 `DW_AT_macro_info' attribute, read its macro information.
5629 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5630
2f53fe6c
DJ
56312002-05-16 Daniel Jacobowitz <drow@mvista.com>
5632
5633 Fix PR gdb/546
5634 * ser-tcp.c: Don't include <netinet/udp.h>.
5635
2be99286
SC
56362002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5637
5638 * MAINTAINERS: Update my email address.
5639
c9af212b 56402002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5641
5642 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5643 include file of the same name.
5644
bf5f1a52
CV
56452002-05-16 Corinna Vinschen <vinschen@redhat.com>
5646
5647 * configure.tgt: Mark v850 as multi-arched.
5648 * config/v850/tm-v850.h: Remove file.
5649 * config/v850/v850.mt: Eliminate TM_FILE.
5650
435e042a
CV
56512002-05-16 Corinna Vinschen <vinschen@redhat.com>
5652
5653 * v850-tdep.c: Full multi-arch.
5654 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5655 Define GDB_MULTI_ARCH to 2.
5656
9819c6c8
PM
56572002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5658
5659 * p-exp.y (current_type): New static variable.
5660 Carries the type of the expression at the position that is parsed.
5661 (push_current_type, pop_current_type): Two new functions. Used
5662 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5663 (search_field): New static variable. Set to one after parsing a point
5664 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5665 (FIELDNAME): New token. After a point only a token belonging to
5666 current_type type definition is allowed.
5667 (all over token rules): reset and change current_type according
5668 to rules.
5669 (exp '[' rule): insert implicit array index field if
5670 exp is a pascal string type.
5671
3a06899a
CV
56722002-05-16 Corinna Vinschen <vinschen@redhat.com>
5673
5674 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5675 frame info. Use frame_info's saved_regs instead of matching member
5676 in extra_frame_info throughout.
5677 (v850_frame_init_saved_regs): New function.
5678 (v850_init_extra_frame_info): Move most functionality into
5679 v850_frame_init_saved_regs().
5680 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5681 (v850_frame_find_saved_regs): Remove declaration.
5682 (FRAME_FIND_SAVED_REGS): Remove definition.
5683 (v850_frame_init_saved_regs): Add declaration.
5684 (FRAME_INIT_SAVED_REGS): Add definition.
5685
6ed14b0e
CV
56862002-05-16 Corinna Vinschen <vinschen@redhat.com>
5687
5688 * v850-tdep.c: Begin multi-arch'ing v850.
5689 (v850_target_architecture_hook): Remove function.
5690 (v850_gdbarch_init): New function. Add code previously in
5691 v850_target_architecture_hook().
5692 (_initialize_v850_tdep): Don't set target_architecture_hook.
5693 Call register_gdbarch_init() instead.
5694
42725910
DJ
56952002-05-16 Daniel Jacobowitz <drow@mvista.com>
5696
5697 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5698 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5699 (fixup_class_method_type): Likewise.
5700
99d9066e
JB
57012002-05-15 Jim Blandy <jimb@redhat.com>
5702
5703 Add macro structures to GDB's symbol tables. Nobody puts anything
5704 in them yet.
5705 * symtab.h (struct symtab): New member: `macro_table'.
5706 * buildsym.h (pending_macros): New global variable.
5707 * buildsym.c: #include "macrotab.h".
5708 (buildsym_init): Initialize `pending_macros'.
5709 (end_symtab): If we found macro information while reading a CU's
5710 debugging info, do build a symtab structure for it. Make the
5711 symtab point to the macro information, and clear the
5712 `pending_macros' pointer which held it while we were reading the
5713 debug info.
5714 (really_free_pendings): Free any pending macro table.
5715 * objfiles.h (struct objfile): New member: `macro_cache'.
5716 * objfiles.c (allocate_objfile): Set allocate and free functions
5717 for the macro cache's objstack.
5718 (free_objfile): Empty the macro cache's obstack.
5719 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5720 set new allocate and free functions for it.
5721 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5722 free functions for the macro cache's objstack. (Why is this
5723 function building its own objfile?)
5724 * symmisc.c (print_objfile_statistics): Print statistics on the
5725 macro bcache.
5726 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5727
c899585b
RE
57282002-05-15 Richard Earnshaw <rearnsha@arm.com>
5729
5730 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5731 (REGISTER_U_ADDR): Delete definition.
5732 (arm_register_u_addr): Delete declaration.
5733
a6cdd8c5
RE
57342002-05-15 Richard Earnshaw <rearnsha@arm.com>
5735
5736 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5737 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5738
c97dcfc7
AC
57392002-05-14 Andrew Cagney <ac131313@redhat.com>
5740
5741 * regcache.c (register_valid): Revise comments refering to "Not
5742 available" and "unavailable".
5743 * frame.c (frame_register_read): Ditto.
5744 * findvar.c (value_of_register): Ditto.
5745
93021b7d
AC
57462002-05-15 Andrew Cagney <cagney@redhat.com>
5747
5748 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5749 (remote-sim.o): Update dependencies.
5750 (d10v-tdep.o): Specify dependencies.
5751 (sim_d10v_h): Define.
5752
a86bc61c
JB
57532002-05-14 Jim Blandy <jimb@redhat.com>
5754
5755 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5756 * macrotab.c (macro_lookup_inclusion, find_definition,
5757 new_macro_table): Same.
5758
5759 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5760 not `! strcmp ()'. This is a dubious improvement.
5761 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5762
5763 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5764 although it's not necessary, to avoid a warning.
5765
2fdde8f8
DJ
57662002-05-14 Daniel Jacobowitz <drow@mvista.com>
5767
5768 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5769 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5770 TYPE_INSTANCE_FLAGS.
5771 (struct main_type): New.
5772 (struct type): Move most members to struct main_type. Change
5773 cv_type and as_type to new type_chain member. Add instance_flags.
5774 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5775 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5776 (finish_cv_type): Remove prototype.
5777 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5778 Set TYPE_CHAIN.
5779 (alloc_type_instance): New function.
5780 (smash_type): New function.
5781 (make_pointer_type, make_reference_type, make_function_type)
5782 (smash_to_member_type, smash_to_method_type): Call smash_type.
5783 (make_qualified_type): New function.
5784 (make_type_with_address_space): Call make_qualified_type.
5785 (make_cv_type): Likewise.
5786 (finish_cv_type): Remove unnecessary function.
5787 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5788 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5789 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5790 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5791 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5792 * hpread.c (hpread_read_struct_type): Likewise.
5793 * stabsread.c (read_struct_type): Likewise.
5794
843fedf4
EZ
57952002-05-14 Elena Zannoni <ezannoni@redhat.com>
5796
5797 * configure.tgt: Add a catch all sh* target, for cases like
5798 sh[2,3,4]-elf and sh-hms.
5799
05a6c72c
KS
58002002-05-14 Keith Seitz <keiths@redhat.com>
5801
5802 * event-loop.c (create_file_handler): Don't do anything but
5803 update data when we are given a fd which we are already
5804 monitoring.
5805
5d085aaf
ML
58062002-05-14 Michal Ludvig <mludvig@suse.cz>
5807
5808 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5809 (update_context): Use __func__ in warnings.
5810
9db8d71f
DJ
58112002-05-14 Daniel Jacobowitz <drow@mvista.com>
5812
5813 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5814 and tcp_close to net_open and net_close.
5815 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5816 using UDP if requested. Don't try to disable Nagle on UDP
5817 sockets.
5818 * remote.c (remote_serial_open): New function. Warn about UDP.
5819 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5820
5dbc6baa
EZ
58212002-05-13 Elena Zannoni <ezannoni@redhat.com>
5822
5823 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5824
cc3023f7
EZ
58252002-05-13 Elena Zannoni <ezannoni@redhat.com>
5826
5827 * configure.tgt: Remove sh-hms target.
5828 * MAINTAINERS: Don't list sh-hms as a separate target.
5829
ec2bcbe7
JB
58302002-05-13 Jim Blandy <jimb@redhat.com>
5831
5832 Add first preprocessor macro-expansion files.
5833 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5834 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5835 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5836 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5837 (COMMON_OBS): Add macrotab.o, macroexp.o.
5838 (macroexp.o, macrotab.o): New rules.
5839
6d531722
AC
58402002-05-13 Andrew Cagney <ac131313@redhat.com>
5841
5842 * config/m88k/tm-m88k.h: Update copyright.
5843 (m88k_target_write_pc): Declare
5844 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5845 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5846 (SHIFT_INST_REGS): Update definition.
5847 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5848 using old definition of TARGET_WRITE_PC.
5849 * regcache.c (generic_target_write_pc): Delete code handling
5850 NNPC_REGNUM.
5851 * gdbarch.sh (NNPC_REGNUM): Delete.
5852 * gdbarch.h, gdbarch.c: Regenerate.
5853
3e3f2739
RE
58542002-05-13 Richard Earnshaw <rearnsha@arm.com>
5855
5856 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5857 builtin reg number.
5858
0004e5a2
DJ
58592002-05-13 Daniel Jacobowitz <drow@mvista.com>
5860
5861 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5862 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5863 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5864 access macros.
5865 * c-typeprint.c (cp_type_print_method_args): Likewise.
5866 (c_type_print_args): Likewise.
5867 * d10v-tdep.c (d10v_push_arguments): Likewise.
5868 (d10v_extract_return_value): Likewise.
5869 * expprint.c (print_subexp): Likewise.
5870 * gdbtypes.c (lookup_primitive_typename): Likewise.
5871 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5872 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5873 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5874 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5875 (TYPE_VECTOR): Likewise.
5876 * hpread.c (hpread_read_struct_type)
5877 (fix_static_member_physnames, fixup_class_method_type)
5878 (hpread_type_lookup): Likewise.
5879 * mdebugread.c (parse_symbol, parse_type): Likewise.
5880 * p-lang.c (is_pascal_string_type): Likewise.
5881 * valops.c (hand_function_call): Likewise.
5882 * x86-64-tdep.c (classify_argument): Likewise.
5883
5884 * hpread.c (hpread_read_function_type)
5885 (hpread_read_doc_function_type): Call replace_type.
5886 * dstread.c (create_new_type): Delete.
5887 (decode_dst_structure, process_dst_function): Call alloc_type.
5888 Use type access macros.
5889
dff95cc7
MK
58902002-05-12 Mark Kettenis <kettenis@gnu.org>
5891
5892 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5893 the're not supported by the current architecture.
5894 (i387_fill_fxsave): Likewise.
5895
bbcd32ad
FF
58962002-05-12 Fred Fish <fnf@redhat.com>
5897
5898 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5899 sect_index_xxx members to index the first slot in section_offsets
5900 if all of the section_offsets are zero.
5901
89cf4787
MK
59022002-05-12 Mark Kettenis <kettenis@gnu.org>
5903
5904 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5905 checked in with last change.
5906
1f77ffc5
MK
59072002-05-12 Mark Kettenis <kettenis@gnu.org>
5908
5909 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5910 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5911 config.sub.
5912
89b8b4a9
DJ
59132002-05-12 Daniel Jacobowitz <drow@mvista.com>
5914
5915 * Makefile.in: Update dependencies.
5916
14a5e767
AC
59172002-05-11 Andrew Cagney <ac131313@redhat.com>
5918
5919 * language.c (local_hex_string_custom): Simplify. Do not depend
5920 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5921
5922 * memattr.c (mem_info_command): Replace calls to
5923 longest_local_hex_string and longest_local_hex_string_custom.
5924 * buildsym.c (make_blockvector): Ditto.
5925 * solib.c (info_sharedlibrary_command): Ditto.
5926 * tracepoint.c (tracepoints_info): Ditto.
5927 * symtab.c (print_msymbol_info): Ditto.
5928
5929 * language.c (local_hex_string): Delete.
5930 (local_hex_string_custom): Delete.
5931 (longest_local_hex_string): Rename to local_hex_string.
5932 (longest_local_hex_string_custom): Rename to
5933 local_hex_string_custom.
5934 * language.h (local_hex_string): Change parameter type to LONGEST.
5935 (local_hex_string_custom): Ditto.
5936 (longest_local_hex_string): Delete declaration.
5937 (longest_local_hex_string_custom): Ditto.
5938
5939 * solib.c: Update copyright.
5940 * memattr.c: Update copyright.
5941
13d01224
AC
59422002-05-11 Andrew Cagney <ac131313@redhat.com>
5943
5944 * arch-utils.h (legacy_register_to_value): Declare.
5945 (legacy_value_to_register): Declare.
5946 (legacy_convert_register_p): Declare.
5947 * arch-utils.c (legacy_register_to_value): New function.
5948 (legacy_value_to_register): New function.
5949 (legacy_convert_register_p): New function.
5950
5951 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5952 (VALUE_TO_REGISTER): Define.
5953 (CONVERT_REGISTER_P): Define.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955
5956 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5957 VALUE_TO_REGISTER.
5958 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5959 CONVERT_REGISTER_P.
5960
4a1970e4
DJ
59612005-05-11 Daniel Jacobowitz <drow@mvista.com>
5962 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5963
5964 * Makefile.in: Update dependencies for valops.c.
5965 * valops.c: Include "gdb_assert.h".
5966 (typecmp): Skip THIS parameter to methods.
5967 (find_method_list): Remove static_memfuncp argument,
5968 update callers. Check for stub methods.
5969 (find_value_oload_method_list): Don't set *static_memfuncp.
5970 (find_overload_match): Don't check for stub methods. Assert
5971 that methods are not stubbed. Handle static methods.
5972 (value_find_oload_method_list): Remove static_memfuncp argument.
5973 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5974 to the argument list for static stub methods.
5975 * value.h (value_find_oload_method_list): Update prototype.
5976
b2e75d78
AC
59772002-05-11 Andrew Cagney <ac131313@redhat.com>
5978
5979 * arch-utils.h (generic_register_size): Declare.
5980 (generic_register_raw_size, generic_register_virtual_size): Delete
5981 declarations.
5982 * arch-utils.c (generic_register_raw_size): Delete.
5983 (generic_register_size): New function.
5984 (generic_register_virtual_size): Delete.
5985
5986 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5987 default generic_register_size.
5988 * gdbarch.h, gdbarch.c: Re-generate.
5989
5990 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5991 register_virtual_size.
5992 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5994
451fbdda
AC
59952002-05-11 Andrew Cagney <ac131313@redhat.com>
5996
5997 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5998 * gdbarch.h, gdbarch.c: Regenerate.
5999 * gnu-v3-abi.c: Update copyright.
6000 (vtable_address_point_offset): Update.
6001 (gnuv3_rtti_type): Update.
6002 (gnuv3_baseclass_offset): Update.
6003 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6004 (init_fetch_link_map_offsets): Update.
6005 * remote.c (get_remote_state): Update.
6006
6d2f5cea
DJ
60072002-05-11 Daniel Jacobowitz <drow@mvista.com>
6008
6009 * TODO: Remove value_headof/value_from_vtable_info comment.
6010 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6011 * values.c (value_headof, value_from_vtable_info): Delete.
6012 * value.h (value_from_vtable_info): Delete prototype.
6013
d2324da4
AC
60142002-05-11 Andrew Cagney <ac131313@redhat.com>
6015
6016 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6017 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6018 $(gdb_regex_h).
6019 (gdb_assert_h): Define.
6020 (gdb_wait_h): Define.
6021 (gdb_regex_h): Define.
6022
5c717440
DJ
60232002-05-11 Daniel Jacobowitz <drow@mvista.com>
6024
6025 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6026 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6027
6c7861b3
JT
60282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6029
6030 * nbsd-tdep.c: Fix comment.
6031
ea5bc2a6
JT
60322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6035 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6036 (nbsd-tdep.o): New dependency list.
6037 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6038 nbsd-tdep.h.
6039 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6040 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6041 * nbsd-tdep.c: New file.
6042 * nbsd-tdep.h: New file.
6043 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6044 nbsd-tdep.h.
6045 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6046 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6047 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6048 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6049
b28da865
JT
60502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6053 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6054 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6055 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6056 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6057 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6058
4b8ff1fa
JT
60592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6060
6061 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6062 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6063 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6064 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6065 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6066 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6067 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6068
dfe6eb1f
JT
60692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6070
6071 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6072 fetch_elfcore_registers to...
6073 * i386nbsd-tdep.c: ...here.
6074 (i386nbsd_use_struct_convention): Rename to...
6075 (i386nbsd_aout_use_struct_convention): ...this.
6076 (i386nbsd_supply_reg): New function.
6077 (i386nbsd_fill_reg): New function.
6078 (fetch_core_registers): Use i386nbsd_supply_reg.
6079 (fetch_elfcore_registers): Likewise.
6080 (_initialize_i386nbsd_tdep): New function.
6081 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6082 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6083 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6084 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6085 (i386nbsd_aout_use_struct_convention): ...this.
6086
20cb8cda
JT
60872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6088
6089 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6090 (store_inferior_registers): Use shnbsd_fill_reg.
6091 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6092 sh_nbsd_supply_register): Collapse into...
6093 (shnbsd_supply_reg): ...this.
6094 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6095 (shnbsd_fill_reg): ...this.
6096 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6097 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6098 (fetch_core_registers): Use shnbsd_supply_reg.
6099 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6100 (sh_nbsd_core_fns): Rename to...
6101 (shnbsd_core_fns): ...this.
6102 (sh_nbsd_elfcore_fns): Rename to...
6103 (shnbsd_elfcore_fns): ...this.
6104 (sh_nbsd_init_abi): Rename to...
6105 (shnbsd_init_abi): ...this.
6106 (_initialize_sh_nbsd_tdep): Rename to...
6107 (_initialize_shnbsd_tdep): ...this.
6108 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6109 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6110 sh_nbsd_fill_register): Remove prototypes.
6111 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6112
e750d25e
JT
61132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6114
6115 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6116 (i387-nat.o): Delete dependency list.
6117 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6118 (x86-64-linux-nat.o): Likewise.
6119 * i387-nat.c: Delete file, moving contents to...
6120 * i387-tdep.c: ...here.
6121 * i387-nat.h: Rename...
6122 * i387-tdep.h: ...to this.
6123 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6124 * i386-linux-nat.c: Likewise.
6125 * i386bsd-nat.c: Likewise.
6126 * i386gnu-nat.c: Likewise.
6127 * i386nbsd-nat.c: Likewise.
6128 * i386v4-nat.c: Likewise.
6129 * x86-64-linux-nat.c: Likewise.
6130 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6131 * config/i386/go32.mh (NATDEPFILES): Likewise.
6132 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6133 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6134 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6135 * config/i386/linux.mh (NATDEPFILES): Likewise.
6136 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6137 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6138 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6139 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6140
1aee598a
JT
61412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6142
6143 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6144 (alphanbsd-nat.o): Remove dependency list.
6145 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6146 * alphanbsd-nat.c: Delete. Contents moved to...
6147 * alphanbsd-tdep.c: ...here.
6148 (_initialize_alphanbsd_tdep): Register core functions.
6149 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6150
12bcb0fe
JT
61512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6152
6153 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6154 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6155 (alphanbsd-nat.o): Likewise.
6156 (alphabsd-tdep.o): New dependency list.
6157 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6158 (fill_gregset): Use alphabsd_fill_reg.
6159 (supply_fpregset): Use alphabsd_supply_fpreg.
6160 (fill_fpregset): Use alphabsd_fill_fpreg.
6161 (fetch_inferior_registers): Use struct reg and struct fpreg
6162 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6163 and alphabsd_supply_fpreg.
6164 (store_inferior_registers): Use struct reg and struct fpreg
6165 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6166 and alphabsd_fill_fpreg.
6167 * alphabsd-tdep.c: New file.
6168 * alphabsd-tdep.h: New file.
6169 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6170 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6171 alphabsd_supply_fpreg.
6172 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6173 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6174
361d1df0
EC
61752002-05-11 Eric Christopher <echristo@redhat.com>
6176
6177 * mips-tdep.c (mips_double_register_type): Fix thinko.
6178 (mips_single_register_type): Ditto.
6179 * MAINTAINERS: Add self.
6180
92dd7cee
MK
61812002-05-11 Mark Kettenis <kettenis@gnu.org>
6182
6183 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6184 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6185 right thing on architectures with different endianness and/or
6186 integer sizes.
6187
e27da16d
JT
61882002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6189
6190 From Christian Limpach <chris@Pin.LU>
6191 * configure.in: Change sed expression which comments out
6192 NATDEPFILES to also comment out continuation lines.
6193 * configure: Regenerate.
6194
ddde02bd
EZ
61952002-05-10 Elena Zannoni <ezannoni@redhat.com>
6196
6197 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6198 big patch.
6199
1c922164
EZ
62002002-05-10 Elena Zannoni <ezannoni@redhat.com>
6201
6202 * sh-tdep.c: Include correct file.
6203
283150cd
EZ
62042002-05-10 Elena Zannoni <ezannoni@redhat.com>
6205
6206 New support for sh64-elf (sh5) target.
6207
6208 * configure.tgt: For sh64-elf target, default to sh-elf.
6209
6210 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6211 (struct gdbarch_tdep): Add new fields for new registers and ABI
6212 info.
361d1df0 6213
283150cd
EZ
6214 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6215 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6216 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6217 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6218 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6219 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6220 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6221 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6222 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6223 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6224 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6225 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6226 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6227 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6228 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6229 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6230 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6231 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6232 sign_extend, sh64_nofp_frame_init_saved_regs,
6233 sh64_init_extra_frame_info, sh64_get_saved_register,
6234 sh64_extract_struct_value_address, sh64_pop_frame,
6235 sh64_push_arguments, sh64_extract_return_value,
6236 sh64_store_return_value, sh64_show_media_regs,
6237 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6238 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6239 sh_sh64_register_virtual_type,
6240 sh_sh64_register_convert_to_virtual,
6241 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6242 sh64_register_read, sh64_pseudo_register_write,
6243 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6244 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6245 sh64_do_pseudo_register, sh_compact_do_registers_info,
6246 sh64_do_registers_info, sh_gdbarch_init): New functions.
6247
3117ed25
EZ
62482002-05-10 Elena Zannoni <ezannoni@redhat.com>
6249
6250 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6251
2654e6d4
DJ
62522002-05-10 Daniel Jacobowitz <drow@mvista.com>
6253
6254 * linespec.c (decode_line_1): Check for a double quote after
6255 a filename correctly.
6256
9ab3e532
JB
62572002-05-10 Jim Blandy <jimb@redhat.com>
6258
6259 Properly track the size of the current objfile's .debug_line section.
6260 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6261 (DWARF_LINE_SIZE): New macro.
6262 (dwarf2_build_psymtabs_hard): Record the line section's size in
6263 the partial symbol table.
6264 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6265 symbol table.
6266
126fa72d
PS
62672002-05-10 Petr Sorfa <petrs@caldera.com>
6268
6269 * ia64-tdep.c: Handle breakpoints on L instruction type
6270 in MLX instruction bundle by moving the breakpoint to
6271 the third slot (X instruction type) as L holds only data.
6272
1f077a3e
KB
62732002-05-10 Kevin Buettner <kevinb@redhat.com>
6274
6275 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6276 (process_one_symbol): Complain about discarding local symbols
6277 due to a misplaced N_LBRAC entry.
6278
8120c9d5 62792002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6280
6281 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6282 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6283 decrease the depth we are at, in the case of templates.
361d1df0 6284
67b2c998
DJ
62852002-05-09 Daniel Jacobowitz <drow@mvista.com>
6286
6287 * mips-tdep.c (mips_float_register_type): New function.
6288 (mips_double_register_type): New function.
6289 (mips_print_register): Use them.
6290 (do_fp_register_row): Likewise.
6291
fd326606
DJ
62922002-05-09 Daniel Jacobowitz <drow@mvista.com>
6293
6609d9af 6294 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6295 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6296 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6297
bef35864
MS
62982002-05-09 Michael Snyder <msnyder@redhat.com>
6299
6300 * remote-rdp.c (remote_rdp_can_run): Remove.
6301
c55a3f73
TT
63022002-05-09 Tom Tromey <tromey@redhat.com>
6303
6304 * jv-valprint.c (java_val_print): Handle `char' as a special case
6305 of TYPE_CODE_INT.
6306
b8d5e71d
MS
63072002-05-09 Michael Snyder <msnyder@redhat.com>
6308
6309 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6310 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6311 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6312 str r(0123),[sp,#nn].
361d1df0 6313 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6314 order-independent by placing it in a loop.
6315
e2cd42dd
MS
63162002-05-06 Michael Snyder <msnyder@redhat.com>
6317
6318 * stabsread.c (read_type): Add recognition for new attribute:
6319 "@V;" means that an array type is actually a vector.
6320 This is analogous to the vector flag that's been added to dwarf2.
6321
3ce1502b
MK
63222002-05-09 Mark Kettenis <kettenis@gnu.org>
6323
6324 * i386-tdep.h (i386_abi): New enum.
6325 (struct gdbarch_tdep): Replace os_ident member with abi.
6326 (i386_gdbarch_register_os_abi): New prototype.
6327 * i386-tdep.c (i386_abi_names): New array.
6328 (process_note_abi_tag_sections): Removed.
6329 (process_note_sections): New function.
6330 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6331 (struct i386_abi_handler): New struct.
6332 (i386_abi_handler_list): New variable.
6333 (i386_gdbarch_register_os_abi): New function.
6334 (i386_gdbarch_init): Adapt for the changes given above.
6335
084c156a
DJ
63362002-05-08 Daniel Jacobowitz <drow@mvista.com>
6337
6338 * gregset.h: Say "GNU/Linux".
6339
6599f021
EZ
63402002-05-08 Elena Zannoni <ezannoni@redhat.com>
6341
6342 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6343 (build_gdbtypes): Build builtin_type_v2_float.
6344 (_initialize_gdbtypes): Register new builtin type.
6345
40af4b0c
AC
63462002-05-08 Andrew Cagney <ac131313@redhat.com>
6347
6348 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6349 (clear_gdbarch_swap): New function.
6350 (initialize_non_multiarch): Call.
6351 (gdbarch_update_p): Before calling init(), swap out and clear the
6352 existing architecture.
6353 * gdbarch.c: Regenerate.
6354
4fe84f46
JT
63552002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6358 alphanbsd-tdep.c.
6359
4015edd1
JT
63602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * sh-nbsd-nat.c: Rename to...
6363 * shnbsd-nat.c: ...this.
6364 * sh-nbsd-tdep.c: Rename to...
6365 * shnbsd-tdep.c: ...this.
6366 * sh-nbsd-tdep.h: Rename to...
6367 * shnbsd-tdep.h: ...this.
6368 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6369 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6370
0e2bd219
RE
63712002-05-08 Richard Earnshaw <rearnsha@arm.com>
6372
6373 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6374 concatenation for command help messages.
6375
13a38d45
JT
63762002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6377
6378 * NEWS: Note new sh*-*-netbsdelf* configuration.
6379 * configure.host: Set gdb_host_cpu to sh for all sh*.
6380 (sh*-*-netbsdelf*): New host.
6381 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6382 (sh*-*-netbsdelf*): New target.
6383 * sh-nbsd-nat.c: New file.
6384 * sh-nbsd-tdep.c: New file.
6385 * sh-nbsd-tdep.h: New file.
6386 * config/sh/nbsd.mh: New file.
6387 * config/sh/nbsd.mt: New file.
6388 * config/sh/nm-nbsd.h: New file.
6389 * config/sh/tm-nbsd.h: New file.
6390
d658f924
JT
63912002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6392
6393 * sh-tdep.c (sh_osabi_names): Declare.
6394 (process_note_abi_tag_sections): New function.
6395 (get_elfosabi): Ditto.
6396 (sh_gdbarch_register_os_abi): Ditto.
6397 (sh_dump_tdep): Ditto.
6398 _initialize_sh_tdep): Use gdbarch_register to register
6399 sh_gdbarch_init and sh_dump_tdep.
6400 * config/sh/tm-sh.h (sh_osabi): Declare.
6401 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6402
848cfffb
AC
64032002-05-07 Andrew Cagney <ac131313@redhat.com>
6404
6405 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6406 (thumb_scan_prologue): Ditto.
6407 (arm_find_callers_reg): Ditto.
6408 (arm_frame_chain): Ditto.
6409 (arm_init_extra_frame_info): Ditto.
6410 (arm_frame_saved_pc): Ditto.
6411 (arm_pop_frame): Ditto.
6412 (arm_push_return_address): New function.
6413 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6414 call_dummy_location, call_dummy_breakpoint_offset_p,
6415 call_dummy_breakpoint_offset, call_dummy_p,
6416 call_dummy_stack_adjust_p, call_dummy_words,
6417 sizeof_call_dummy_words, call_dummy_start_offset,
6418 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6419 call_dummy_address, push_return_address and push_dummy_frame for
6420 generic dummy frames.
6421
e7d717c0
JT
64222002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6423
6424 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6425 size computation for alloca.
6426 (sh_fp_frame_init_saved_regs): Likewise.
6427
7bbcf283
RE
64282002-05-07 Richard Earnshaw <rearnsha@arm.com>
6429
6430 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6431 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6432 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6433 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6434 * remote-rdp.c (remote_rdp_fetch_register): Use
6435 ARM_MAX_REGISTER_RAW_SIZE.
6436 (remote_rdp_store_register): Likewise.
6437
4657573b
ML
64382002-05-07 Michal Ludvig <mludvig@suse.cz>
6439
361d1df0 6440 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6441 added default labels to switch {} statements.
6442 * x86-64-tdep.c: Ditto.
6443 * x86-64-linux-nat.c: Ditto.
6444
010f3b2f
JT
64452002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6446
6447 * solib.h: Protect against multiple inclusion.
6448
debd256d
JB
64492002-05-06 Jim Blandy <jimb@redhat.com>
6450
9ab3e532
JB
6451 Add first preprocessor macro-expansion files.
6452 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6453 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6454 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6455 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6456 (COMMON_OBS): Add macrotab.o, macroexp.o.
6457 (macroexp.o, macrotab.o): New rules.
6458
debd256d
JB
6459 Separate the job of reading the line number info statement program
6460 header (...expialidocious) out into its own function.
6461 * dwarf2read.c (struct line_head, struct filenames, struct
6462 directories): Replace with...
6463 (struct line_header): New structure, containing the full
6464 contents of the statement program header, including the
6465 include directory and file name tables.
6466 (read_file_scope): If we have line number info, instead of just
6467 calling dwarf_decode_lines to do all the work, call
6468 dwarf_decode_line_header first to get a `struct line_header'
6469 containing the data in the statement program header, and then
6470 pass that to dwarf_decode_lines, which will pick up where that
6471 left off. Be sure to clean up the `struct line_header' object.
6472 (dwarf_decode_line_header, free_line_header, add_include_dir,
6473 add_file_name): New functions.
6474 (dwarf_decode_lines): Move all the code to read the statement
6475 program header into dwarf_decode_line_header. Take the line
6476 header it built as the first argument, instead of the offset to
6477 the compilation unit's line number info. Use the new `struct
6478 line_header' type instead of the old structures. No need to do
6479 cleanups here now, since we don't allocate anything.
6480 (dwarf2_statement_list_fits_in_line_number_section,
6481 dwarf2_line_header_too_long): New complaints.
6482
ac3aafc7
EZ
64832002-05-06 Elena Zannoni <ezannoni@redhat.com>
6484
6485 * gdbtypes.c (init_vector_type): New function.
6486 (build_builtin_type_vec128): Simplify the representation of SIMD
6487 registers.
6488 (build_gdbtypes): Initialize new builtin vector types.
6489 (_initialize_gdbtypes): Register new vector types with gdbarch.
6490 (builtin_type_v4_float, builtin_type_v4_int32,
6491 builtin_type_v8_int16, builtin_type_v16_int8,
6492 builtin_type_v2_int32, builtin_type_v4_int16,
6493 builtin_type_v8_int8): New (renamed) SIMD types.
6494
13e49980
MK
64952002-05-06 Mark Kettenis <kettenis@gnu.org>
6496
6497 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6498 (i387_fill_fxsave): Likewise.
6499
997b20b8
AO
65002002-05-05 Alexandre Oliva <aoliva@redhat.com>
6501
6502 * alpha-tdep.c (alpha_extract_return_value): Don't use
6503 non-constant array size in prototype.
6504
535c96ce
AC
65052002-05-04 Andrew Cagney <ac131313@redhat.com>
6506
6507 From Brian Taylor <briant at model dot com>:
6508 * ui-out.c (ui_out_field_core_addr): Use the function
6509 longest_local_hex_string_custom'to format addresses > 32 bits
6510 wide.
6511
6512 * ui-out.c (ui_out_field_core_addr): Update comment.
6513
bedfa57b
AC
65142002-05-04 Andrew Cagney <ac131313@redhat.com>
6515
6516 * stack.c (select_and_print_frame): Make static. Delete the
6517 parameter `level'.
6518 (func_command): Update call.
6519 (select_frame_command): Delete code computing the frame level.
6520 * frame.h (select_and_print_frame): Delete declaration.
6521
f621c63e
AC
65222002-05-04 Andrew Cagney <ac131313@redhat.com>
6523
6524 * sparc-tdep.c (sparc_get_saved_register): Comment why
6525 get_prev_frame call is safe.
6526
0f7d239c
AC
65272002-05-04 Andrew Cagney <ac131313@redhat.com>
6528
6529 * frame.h (select_frame): Delete level parameter.
6530 * stack.c (select_frame): Update. Use frame_relative_level to
6531 obtain the frame's level.
6532 (select_and_print_frame): Update call.
6533 (select_frame_command): Ditto.
6534 (up_silently_base): Ditto.
6535 (down_silently_base): Ditto.
6536 * ocd.c (ocd_start_remote): Ditto.
6537 * remote-rdp.c (remote_rdp_open): Ditto.
6538 * remote-mips.c (mips_initialize): Ditto.
6539 (common_open): Ditto.
6540 * remote-e7000.c (e7000_start_remote): Ditto.
6541 * m3-nat.c (select_thread): Ditto.
6542 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6543 (child_get_current_exception_event): Ditto.
6544 * varobj.c (varobj_create): Ditto.
6545 (varobj_update): Ditto.
6546 (c_value_of_root): Ditto.
6547 * tracepoint.c (finish_tfind_command): Ditto.
6548 * corelow.c (core_open): Ditto.
6549 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6550 * thread.c (info_threads_command): Ditto.
6551 (switch_to_thread): Ditto.
6552 * infrun.c (normal_stop): Ditto.
6553 (restore_selected_frame): Ditto.
6554 (restore_inferior_status): Ditto.
6555 * breakpoint.c (insert_breakpoints): Ditto.
6556 (watchpoint_check): Ditto.
6557 (bpstat_stop_status): Ditto.
6558 (do_enable_breakpoint): Ditto.
6559 * blockframe.c (flush_cached_frames): Ditto.
6560 (reinit_frame_cache): Ditto.
6561
71d6c7b1
AC
65622002-05-04 Andrew Cagney <ac131313@redhat.com>
6563
6564 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6565 maintainer.
6566
cda6c68a
JB
65672002-05-04 Jim Blandy <jimb@redhat.com>
6568
6569 * gdbtypes.c (replace_type): Doc fix.
6570
5c1c87f0
AC
65712002-05-04 Andrew Cagney <ac131313@redhat.com>
6572
6573 * valprint.c (strcat_longest): Delete commented out function.
6574 Update copyright.
6575
cd9bfe15
AC
65762002-05-04 Andrew Cagney <ac131313@redhat.com>
6577
6578 * MAINTAINERS: Mark a29k as deleted.
6579 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6580 Move new configurations to the top.
6581 * configure.tgt: Remove a29k.
6582 * config/a29k/tm-vx29k.h: Delete.
6583 * config/a29k/vx29k.mt: Delete.
6584 * config/a29k/tm-a29k.h: Delete.
6585 * config/a29k/a29k-udi.mt: Delete.
6586 * config/a29k/a29k.mt: Delete.
6587 * a29k-tdep.c: Delete.
6588 * remote-udi.c: Delete.
6589 * remote-mm.c: Delete.
6590 * remote-eb.c: Delete.
6591 * remote-adapt.c: Delete.
6592 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6593 * config/s390/s390x.mt: Ditto.
6594 * config/s390/s390.mt: Ditto.
6595 * config/sparc/sparclynx.mh: Ditto.
6596 * config/sparc/linux.mh: Ditto.
6597 * config/pa/hppaosf.mh: Ditto.
6598 * config/pa/hppabsd.mh: Ditto.
6599 * config/ns32k/nbsd.mt: Ditto.
6600 * config/mips/vr5000.mt: Ditto.
6601 * config/m68k/sun3os4.mh: Ditto.
6602 * config/m68k/nbsd.mt: Ditto.
6603 * config/m68k/m68klynx.mh: Ditto.
6604 * config/m32r/m32r.mt: Ditto.
6605 * config/i386/x86-64linux.mt: Ditto.
6606 * config/i386/nbsdelf.mt: Ditto.
6607 * config/i386/nbsd.mt: Ditto.
6608 * config/i386/i386lynx.mh: Ditto.
6609
bf0c5130
AC
66102002-05-04 Andrew Cagney <ac131313@redhat.com>
6611
6612 * target.c (debug_print_register): New function. Handle oversize
6613 registers.
6614 (debug_to_fetch_registers): Call.
6615 (debug_to_store_registers): Call.
6616
2ae1c2d2
JB
66172002-05-03 Jim Blandy <jimb@redhat.com>
6618
13a393b0
JB
6619 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6620 (read_type): Doc fix.
6621 * gdbtypes.c (replace_type): Doc fix.
6622
2ae1c2d2
JB
6623 * stabsread.c (multiply_defined_struct): New complaint.
6624 (read_struct_type): If the type we were passed isn't empty, or
6625 incomplete, don't read the new struct type into it; complain,
6626 and return the original type unchanged. Take a new `type_code'
6627 argument, which is the type code for the new type.
6628 (read_type): Rather than storing the type's type code here, pass
6629 it as an argument to read_struct_type, and let that take care of
6630 storing it. That way, we don't overwrite the original type code,
6631 so read_struct_type can use it to decide whether we're overwriting
6632 something we shouldn't.
6633 (complain_about_struct_wipeout): New function.
6634
8de9bdc4
AC
66352002-05-03 Andrew Cagney <ac131313@redhat.com>
6636
6637 * gdbarch.sh: Assert that gdbarch is non-NULL.
6638 * gdbarch.c: Regenerate.
6639
f773fdbb
JM
66402002-05-03 Jason Merrill <jason@redhat.com>
6641
6642 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6643 and return NULL.
6644
0e04a514
ML
66452002-05-03 Michal Ludvig <mludvig@suse.cz>
6646
6647 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6648 (x86_64_dwarf2gdb_regno_map_length),
6649 (x86_64_dwarf2_reg_to_regnum): Added.
6650 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6651 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6652 (_initialize_x86_64_tdep): Synced with the change above.
6653 (x86_64_skip_prologue): Reformulated message.
6654
065432a8
PM
66552002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6656
6657 * f-exp.y: Also use new prev_lexptr variable
6658 to improve error reporting. Based on Michael Snyder
6659 2002-04-24 dated patch to c-exp.y.
6660 * jv-exp.y: Likewise.
6661 * m2-exp.y: Likewise.
6662
a3162708
EZ
66632002-05-02 Elena Zannoni <ezannoni@redhat.com>
6664
6665 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6666 we are dealing with vectors.
6667
03620c38
PM
66682002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6669
6670 * config/m68k/tm-nbsd.h: Obvious fix,
6671 correct machine name.
6672
6604db2e
PM
66732002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6674
6675 * p-typeprint.c (pascal_type_print_base): Add support
6676 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6677
0906b739
PM
66782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6679
6680 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6681 for fondamental pascal 'char' type.
6682
e2625b33
PM
66832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6684
6685 * p-lang.h (is_pascal_string_type): Declaration changed,
6686 new sixth argument of type char ** added.
361d1df0 6687 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6688 changed. Args length_pos, length_size, string_pos, char_size
6689 can now be NULL. New argument arrayname set to the field
6690 name of the char array. Return value set to char array
6691 field index plus one.
361d1df0 6692 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6693 is_pascal_string_type function.
6694
cf17c188
AC
66952002-05-02 Andrew Cagney <cagney@redhat.com>
6696
6697 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6698 <cagney@redhat.com> change.
6699 * gdbarch.c: Regenerate.
6700
52bca491
AC
67012002-05-02 Andrew Cagney <cagney@redhat.com>
6702
6703 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6704 before probing for a new one. Detect errorenous gdbarch_init
6705 functions.
6706 * gdbarch.c: Regenerate.
6707
d5e72505
AC
67082002-05-01 Andrew Cagney <cagney@redhat.com>
6709
6710 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6711 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6712 * config/v850/tm-v850.h: Ditto. Update copyright.
6713
af566d9f
AC
67142002-04-30 Andrew Cagney <ac131313@redhat.com>
6715
6716 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6717 current_gdbarch.
6718
880d85fa
MS
67192002-04-30 Michael Snyder <msnyder@redhat.com>
6720
94c30b78
MS
6721 * arm-tdep.c: Whitespace clean-ups.
6722 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6723 should have been removed as part of 4/24 change.
6724
6f5987a6
KB
67252002-04-30 Kevin Buettner <kevinb@redhat.com>
6726
6727 * rs6000-tdep.c: Added comment describing how fpscr register
6728 numbers were chosen.
6729
1a113c93
MS
67302002-04-30 Michael Snyder <msnyder@redhat.com>
6731
6732 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6733
9a6f53fe
EZ
67342002-04-29 Elena Zannoni <ezannoni@redhat.com>
6735
6736 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6737 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6738 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6739
11ed25ac
KB
67402002-04-29 Kevin Buettner <kevinb@redhat.com>
6741
6742 From Louis Hamilton <hamilton@redhat.com>:
6743 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6744 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6745 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6746 not bfd-private xcoff data, to determine wordsize.
6747 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6748
ae232405
AC
67492002-04-29 Andrew Cagney <ac131313@redhat.com>
6750
6751 GDB 5.2 released from 5.2 branch.
6752
91fd20f7
ML
67532002-04-29 Michal Ludvig <mludvig@suse.cz>
6754
6755 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6756 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6757 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6758
2dc5091b
EZ
67592002-04-29 Elena Zannoni <ezannoni@redhat.com>
6760
6761 * rs6000-tdep.c (rs6000_extract_return_value,
6762 rs6000_store_return_value): Handle returning vectors.
6763 (rs6000_gdbarch_init): Use
6764 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6765 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6766 New function.
6767 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6768 vectors.
6769 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6770 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6771
2b9848d8
PM
67722002-04-24 Pierre Muller <ics.u-strasbg.fr>
6773
6774 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6775 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6776 with fprintf_unfiltered (gdb_stderr,...).
6777
f8d17dc5
PM
67782002-04-24 Pierre Muller <ics.u-strasbg.fr>
6779
6780 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6781 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6782 Replace fprintf (stderr,...
6783 with fprintf_unfiltered (gdb_stderr,....
6784 * remote-es.c: Likewise.
6785 * remote-os9k.c: Likewise.
6786 * remote-st.c: Likewise.
6787
2f2f1ad1
AS
67882002-04-28 Andreas Schwab <schwab@suse.de>
6789
6790 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6791 linux-proc.o and gcore.o.
6792
b6779aa2
AC
67932002-04-26 Michal Ludvig <mludvig@suse.cz>
6794
6795 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6796 code without frame pointers.
6797
7e57f5f4
AC
67982002-04-26 Andrew Cagney <ac131313@redhat.com>
6799
6800 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6801 ON_STACK is needed.
6802
2ceb85d0
BE
68032002-04-26 Ben Elliston <bje@redhat.com>
6804
6805 * target.c (do_xfer_memory): Correct reference to the new option
6806 "trust-readonly-sections".
6807
f5f8a009
EZ
68082002-04-26 Elena Zannoni <ezannoni@redhat.com>
6809
6810 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6811 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6812 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6813 vectors.
6814 (read_array_type): Record the fact that this array type is really a
6815 vector (i.e. are passed in by value).
6816
5868c862
JT
68172002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6820 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6821 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6822 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6823 * alpha-linux-tdep.c: Include frame.h.
6824 (alpha_linux_sigcontext_addr): New function.
6825 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6826 alpha_linux_sigcontext_addr.
6827 * alpha-osf1-tdep.c: Include gdbcore.h.
6828 (alpha_osf1_sigcontext_addr): New function.
6829 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6830 alpha_osf1_sigcontext_addr.
6831 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6832 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6833
bfb01f37
AC
68342002-04-26 Andrew Cagney <ac131313@redhat.com>
6835
361d1df0 6836 * stack.c (selected_frame_level):
bfb01f37
AC
6837 (select_frame): Do not set selected_frame_level.
6838 * frame.h (selected_frame_level): Delete declaration.
6839
15813d3f
AC
68402002-04-26 Andrew Cagney <ac131313@redhat.com>
6841
6842 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6843 convert_from_func_ptr-addr when AIX / PowerOpen.
6844
6096c27a
AC
68452002-04-25 Andrew Cagney <ac131313@redhat.com>
6846
6847 * valops.c (hand_function_call): Call
6848 generic_save_call_dummy_addr.
6849 * frame.h (generic_save_call_dummy_addr): Declare.
6850 * blockframe.c (struct dummy_frame): Add fields call_lo and
6851 call_hi.
6852 (generic_find_dummy_frame): Check for PC in range call_lo to
6853 call_hi instead of entry_point_address.
6854 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6855 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6856 (generic_save_call_dummy_addr): New function.
6857
f510d44e
DM
68582002-04-24 David S. Miller <davem@redhat.com>
6859
6860 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6861 sparc_skip_prologue.
6862 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6863 information to find prologue when possible.
6864 (sparc_prologue_frameless_p): Call examine_prologue directly.
6865 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6866 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6867 second argument.
6868 (SKIP_PROLOGUE): Likewise.
6869
15d72a92
JT
68702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6871
6872 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6873 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6874 indicate that the condition it was testing is always true.
6875 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6876 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6877 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6878
accc6d1f
JT
68792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6880
6881 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6882 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6883 tdep->jb_pc and tdep->jb_elt_size.
6884 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6885 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6886 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6887 * alpha-nat.c (get_longjmp_target): Remove.
6888 (JB_ELEMENT_SIZE): Ditto.
6889 (JB_PC): Ditto.
6890 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6891 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6892 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6893 to alpha_get_longjmp_target.
6894 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6895 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6896 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6897
1bfdc549
AC
68982002-04-25 Andrew Cagney <ac131313@redhat.com>
6899
6900 * README: Update to GDB 5.2.
6901
1bd316f0
AC
69022002-04-25 Andrew Cagney <ac131313@redhat.com>
6903
6904 * gdbarch.sh (LC_ALL): Set to `c'.
6905
2e5ff58c
TR
69062002-04-25 Theodore A. Roth <troth@verinet.com>
6907
6908 * avr-tdep.c: Ran through gdb_indent.sh.
6909
e33ce519
TR
69102002-04-25 Theodore A. Roth <troth@verinet.com>
6911
6912 * MAINTAINERS: Add myself as AVR maintainer.
6913 * NEWS: Note new target avr.
6914
8818c391
TR
69152002-04-25 Theodore A. Roth <troth@verinet.com>
6916
6917 * Makefile.in: Add support for AVR target.
6918 * configure.tgt: Add support for AVR target.
6919 * avr-tdep.c: New file
6920 * config/avr/avr.mt: New file.
6921
79509c2d
TR
69222002-04-25 Theodore A. Roth <troth@verinet.com>
6923
6924 * MAINTAINERS: Add myself to write-after-approval.
6925
dac8068e
PM
69262002-04-24 Pierre Muller <ics.u-strasbg.fr>
6927
6928 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6929 with fprintf_unfiltered (gdb_stderr,....
6930
25bf3106
PM
69312002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6932
6933 Fix PR gdb/508.
6934 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6935
24467a86
PM
69362002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6937
6938 * p-exp.y: Also use new prev_lexptr variable
6939 to improve error reporting. Based on Michael Snyder
6940 2002-04-24 dated patch to c-exp.y.
6941
95b80706
JT
69422002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6943
6944 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6945 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6946 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6947 to 0.
6948 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6949 and struct value.
6950 (FUNCTION_START_OFFSET): Remove.
6951 (BREAKPOINT): Ditto.
6952
e90cc612
JT
69532002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6954
6955 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6956 * NEWS: Ditto.
6957
6c72f9f9
JT
69582002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6959
6960 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6961 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6962 alpha_linux_pc_in_sigtramp.
6963 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6964 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6965 alpha_osf1_pc_in_sigtramp.
6966 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6967 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6968 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6969 alphafbsd_pc_in_sigtramp.
6970 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6971 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6972 alphanbsd_pc_in_sigtramp.
6973 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6974 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6975
5e4f3379
JT
69762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6977
6978 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6979
da8ca43d
JT
69802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6981
6982 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6983 alphanbsd-tdep.c.
6984 (alphanbsd-nat.o): New dependency list.
6985 (alphanbsd-tdep.o): Ditto.
6986 * NEWS: Note new native NetBSD/alpha configuration.
6987 * alphanbsd-nat.c: New file.
6988 * alphanbsd-tdep.c: Ditto.
6989 * configure.host (alpha*-*-netbsd*): New host.
6990 * configure.tgt (alpha*-*-netbsd*): New target.
6991 * config/alpha/nbsd.mh: New file.
6992 * config/alpha/nbsd.mt: Ditto.
6993 * config/alpha/nm-nbsd.h: Ditto.
6994 * config/alpha/tm-nbsd.h: Ditto.
6995
36a6271d
JT
69962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6999 (alpha-osf1-tdep.o): New dependency list.
7000 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7001 and skip_sigtramp_frame members.
7002 * alpha-linux-tdep.c: Include gdbcore.h.
7003 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7004 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7005 * alpha-osf1-tdep.c: New file.
7006 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7007 alpha-osf1-dep.c.
7008 (alpha_frame_past_sigtramp_frame): New function.
7009 (alpha_dynamic_sigtramp_offset): Ditto.
7010 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7011 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7012 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7013 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7014 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7015 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7016 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7017 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7018 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7019 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7020 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7021 to find_solib_trampoline_target.
7022 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7023 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7024 (SKIP_TRAMPOLINE_CODE): Remove.
7025 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7026 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7027 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7028 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7029 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7030 (PROC_SIGTRAMP_MAGIC): Ditto.
7031 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7032 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7033 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7034 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7035 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7036
2f4bc57b
JT
70372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * NEWS: Note that Alpha targets are now multi-arch.
7040
665132f9
MS
70412002-04-24 Michael Snyder <msnyder@redhat.com>
7042
7043 * parser-defs.h (prev_lexptr): New external variable.
7044 * parse.c (parse_exp_1): Set prev_lexptr to null before
7045 calling the language-specific parser.
7046 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7047 (yyerror): Use prev_lexptr in error reporting.
7048
32872fa7
DJ
70492002-04-24 Daniel Jacobowitz <drow@mvista.com>
7050
7051 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7052 * gregset.h: If FILL_FPXREGSET is defined, provide
7053 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7054 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7055 is defined, call fill_fpxregset.
7056
57e76fac
MS
70572002-04-24 Roland McGrath <roland@frob.com>
7058
7059 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7060 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7061 (supply_gregset, supply_fpregset): New functions.
7062
7063 * gnu-nat.c (gnu_find_memory_regions): New function.
7064 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7065 (gnu_xfer_memory): Add a cast.
7066
f43845b3
MS
70672002-04-24 Michael Snyder <msnyder@redhat.com>
7068
361d1df0 7069 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7070 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7071 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7072 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7073 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7074 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7075
a0abec03
AC
7076Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7077
7078 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7079 NUM_PSEUDO_REGS can be used.
7080
d7bd68ca
AC
70812002-04-24 Andrew Cagney <ac131313@redhat.com>
7082
7083 * arch-utils.h: Update copyright.
7084
7085 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7086 * gdbarch.h, gdbarch.c: Re-generate.
7087
7088 * inferior.h (IN_SIGTRAMP): Delete definition.
7089 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7090 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7091
7092 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7093 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7094 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7095 (find_proc_framesize): Ditto.
7096 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7097 (alpha_init_extra_frame_info): Ditto.
7098 * infrun.c (handle_inferior_event): Ditto.
7099 (handle_inferior_event): Ditto.
7100 (check_sigtramp2): Ditto.
7101 * blockframe.c (create_new_frame): Ditto.
7102 (get_prev_frame): Ditto.
7103 * ppc-linux-tdep.c: Update comments.
7104 * i386-linux-tdep.c: Update comments.
7105 * breakpoint.c (bpstat_what): Update comment.
7106
4867e41e
DM
71072002-04-24 David S. Miller <davem@redhat.com>
7108
21d83aa5
DM
7109 * i960-tdep.c (register_in_window_p): New function.
7110 (i960_find_saved_register): Use it instead of
7111 REGISTER_IN_WINDOW_P.
7112 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7113
4867e41e
DM
7114 * symtab.h (find_stab_function_addr): Kill extern.
7115 * minsyms.c (find_stab_function_addr): Remove from here...
7116 * dbxread.c: ... to here, and mark it static.
7117
69cdf6a2
DM
71182002-04-20 David S. Miller <davem@redhat.com>
7119
7120 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7121 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7122
5a595886
DM
71232002-04-21 David S. Miller <davem@redhat.com>
7124
7125 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7126 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7127 (vx_write_register): Likewise.
7128
1da1a192
JB
71292002-04-23 J. Brobecker <brobecker@gnat.com>
7130
7131 * source.c (is_regular_file): New function.
7132 (openp): Check wether file to open is a regular file
7133 to avoid opening directories.
7134
baa6f10b
JT
71352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * findvar.c (extract_signed_integer): Cast printf argument
7138 to suppress format warning.
7139 (extract_unsigned_integer): Likewise.
7140 * infcmd.c (registers_info): Likewise.
7141 * top.c (get_prompt_1): Likewise.
7142 * valops.c (value_assign): Likewise.
7143 * valprint.c (print_decimal): Likewise.
7144
b2c4da81
L
71452002-04-22 H.J. Lu (hjl@gnu.org)
7146
7147 * c-exp.y (typebase): Support
361d1df0 7148
b2c4da81
L
7149 [long|long long|short] [signed|unsigned] [int|]
7150
7151 and
7152
7153 signed [long|long long|short] int
7154
f267bd6a
JT
71552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7156
7157 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7158 and vax-tdep.h.
7159 * vax-tdep.h: New file.
7160 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7161 Make several routines static.
7162 (vax_get_saved_register): New function.
7163 (vax_gdbarch_init): New function.
7164 (_initialize_vax_tdep): Register vax_gdbarch_init.
7165 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7166 Remove macros now under the control of gdbarch.
7167
da3c6d4a
MS
71682002-04-22 Michael Snyder <msnyder@redhat.com>
7169
11d3b27d
MS
7170 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7171 Some whitespace and coding standards tweaks.
da3c6d4a 7172
a33f7558
JT
71732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7174
7175 * vax-tdep.c: Include regcache.h.
7176 (vax_call_dummy_words): New.
7177 (sizeof_vax_call_dummy_words): New.
7178 (vax_fix_call_dummy): New function.
7179 (vax_saved_pc_after_call): Ditto.
7180 * config/vax/tm-vax.h: Don't include regcache.h.
7181 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7182 (CALL_DUMMY): Remove.
7183 (CALL_DUMMY_WORDS): Define.
7184 (SIZEOF_CALL_DUMMY_WORDS): Define.
7185 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7186
47a73475
MS
71872002-04-18 Michael Snyder <msnyder@redhat.com>
7188
7189 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7190
52efde73
JT
71912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * vax-tdep.c (vax_frame_chain): New function.
7194 (vax_push_dummy_frame): Ditto.
7195 (vax_pop_frame): Ditto.
7196 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7197 (FRAMELESS_FUNCTION_INVOCATION): Use
7198 generic_frameless_function_invocation_not.
7199 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7200 (POP_FRAME): Use vax_pop_frame.
7201
ea74468c
JT
72022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7203
7204 * vax-tdep.c (vax_store_struct_return): New function.
7205 (vax_extract_return_value): Ditto.
7206 (vax_store_return_value): Ditto.
7207 (vax_extract_struct_value_address): Ditto.
7208 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7209 vax_store_struct_return.
7210 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7211 (STORE_RETURN_VALUE): Use vax_store_return_value.
7212 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7213
5516aa92
JT
72142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7215
7216 * vax-tdep.c (vax_frame_saved_pc): New function.
7217 (vax_frame_args_address_correct): Ditto.
7218 (vax_frame_args_address): Ditto.
7219 (vax_frame_locals_address): Ditto.
7220 (vax_frame_num_args): Move code to be in proximity to
7221 other frame-related functions.
7222 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7223 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7224 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7225 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7226 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7227
36af0b35
L
72282002-04-22 H.J. Lu (hjl@gnu.org)
7229
7230 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7231 includedir.
7232
ab62c900
JT
72332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7234
7235 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7236 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7237 (FRAME_INIT_SAVED_REGS): New macro.
7238
7232b100
JT
72392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7240
7241 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7242
b70d2aee
JT
72432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7244
7245 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7246 where needed.
7247 (fetch_osf_core_registers): Likewise.
7248 (supply_gregset): Likewise.
7249
a0e8a2d1 72502002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7251
a0e8a2d1
JB
7252 * symfile.h (get_section_index): Define.
7253 * symfile.c (get_section_index): New function.
7254 * mdebugread.c (SC_IS_SBSS): New macro.
7255 (SC_IS_BSS): Return true for the scBss storage class only, as
7256 the scSBss storage class refers to the .sbss section.
7257 (parse_partial_symbols): Discard the symbols which associated
7258 section does not exist.
7259 Make sure to use the .sbss section index for symbols which
7260 storage class is scBss, rather than using the .bss section index.
7261
51eb8b08
JT
72622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7263
7264 * vax-tdep.c: Update copyright years.
7265 (vax_register_name): New function.
7266 (vax_register_byte): Ditto.
7267 (vax_register_raw_size): Ditto.
7268 (vax_register_virtual_size): Ditto.
7269 (vax_register_virtual_type): Ditto.
7270 * config/vax/tm-vax.h: Update copyright years.
7271 (REGISTER_NAMES): Remove.
7272 (REGISTER_NAME): Define.
7273 (REGISTER_BYTE): Use vax_register_byte.
7274 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7275 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7276 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7277
6cc1c0a8
AC
72782002-04-21 Andrew Cagney <ac131313@redhat.com>
7279
7280 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7281 declaration
7282 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7283
9319a2fe
DM
72842002-04-21 David S. Miller <davem@redhat.com>
7285
7286 * arch-utils.c (generic_prologue_frameless_p): Kill
7287 SKIP_PROLOGUE_FRAMELESS_P code.
7288 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7289 references.
7290 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7291 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7292 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7293 references.
7294 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7295 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7296 (sparc_gdbarch_init): Pass it to
7297 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7298
e9ed6d01
JT
72992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7300
7301 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7302 (alphabsd-nat.o): New dependency list.
7303
36012033
JT
73042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7305
7306 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7307 alphafbsd-tdep.c.
7308 (alpha-linux-tdep.o): New dependency list.
7309 (alphafbsd-tdep.o): Likewise.
7310
3379287a
JT
73112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7312
7313 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7314 to here...
7315 * alpha-tdep.c: ...from here.
7316 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7317
4bcbd6cb
JT
73182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7319
7320 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7321 prototype from here...
7322 * alpha-tdep.h: ...to here.
7323
b31da25e
AC
73242002-04-21 Andrew Cagney <ac131313@redhat.com>
7325
7326 * frame.h (selected_frame_level): Document as deprecated.
7327 (frame_relative_level): Declare.
7328 * stack.c (frame_relative_level): New function.
7329 (selected_frame_level): Document as deprecated.
7330 (select_frame): Do not set the selected_frame_level.
7331
7332 * stack.c (frame_info, record_selected_frame): Update.
7333 (frame_command, current_frame_command): Update.
7334 (up_silently_base, up_command, down_silently_base): Update.
7335 (down_command): Update.
7336 * inflow.c (kill_command): Update.
7337 * tracepoint.c (finish_tfind_command): Update.
7338 * corelow.c (core_open): Update.
7339 * thread.c (info_threads_command): Update.
7340 (do_captured_thread_select): Update.
7341 * infcmd.c (finish_command): Update.
7342 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7343
9c1d6fe5
JT
73442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7347
ab89facf
AC
73482002-04-21 Andrew Cagney <ac131313@redhat.com>
7349
7350 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7351 type const.
7352
82a4efa1
JT
73532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7354
7355 * alphafbsd-tdep.c: Update copyright years. Include
7356 alpha-tdep.h.
7357 (alphafbsd_use_struct_convention): Make static.
7358 (alphafbsd_init_abi): New function.
7359 (_initialize_alphafbsd_tdep): New function.
7360 * config/alpha/tm-fbsd.h: Update copyright years.
7361 (USE_STRUCT_CONVENTION): Remove.
7362
44dffaac
JT
73632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7364
7365 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7366 an Alpha ABI variant.
7367 (alpha_abi_handler_list): Declare.
7368 (alpha_gdbarch_register_os_abi): New function.
7369 (alpha_gdbarch_init): Give registered ABI variant handlers a
7370 chance to tweak the gdbarch once we have set up defaults.
7371 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7372
65585be4
JT
73732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7374
7375 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7376 to standard_coerce_float_to_double.
7377 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7378
d9b023cc
JT
73792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7380
7381 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7382 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7383 from gdbarch_tdep rather than a constant.
7384 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7385 the default text address for all Alpha Unix ABIs.
7386 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7387 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7388
dc129d82
JT
73892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7390
7391 * alpha-tdep.h: New file. Includes several Alpha target constants
7392 taken from...
7393 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7394 let gdbarch deal with.
7395 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7396 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7397 to dependency list.
7398 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7399 Alpha target register names.
7400 * alphabsd-nat.c: Likewise.
7401 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7402 Alpha target register names. Make serveral routines static.
7403 (alpha_get_saved_register): New function.
7404 (alpha_abi_names): New.
7405 (process_note_abi_tag_sections): New function.
7406 (get_elfosabi): New function.
7407 (alpha_gdbarch_init): New function.
7408 (alpha_dump_tdep): New function.
7409 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7410
d49d1e0a
AC
74112002-04-21 Andrew Cagney <ac131313@redhat.com>
7412
7413 * frame.c (find_saved_register): Delete #ifdef
7414 HAVE_REGISTER_WINDOWS code.
7415 * config/sparc/tm-sparc.h: Update comments.
7416 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7417
92e8c9ed
AC
74182002-04-21 Andrew Cagney <ac131313@redhat.com>
7419
7420 * i960-tdep.c (i960_find_saved_register): New function.
7421 (i960_get_saved_register): New function.
7422 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7423 (i960_get_saved_register): Declare.
7424 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7425
e1925118
DM
74262002-04-20 David S. Miller <davem@redhat.com>
7427
7428 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7429
29673b29
AC
74302002-04-20 Andrew Cagney <ac131313@redhat.com>
7431
7432 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7433 instead of NUM_PSEUDO_REGS.
7434
6c86dcd5
DM
74352002-04-20 David S. Miller <davem@redhat.com>
7436
7437 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7438 GDB_MULTI_ARCH_PARTIAL
7439 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7440 define, let tm-sp64.h do it.
7441
aa40ec90
JT
74422002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7443
7444 * frame.c (find_saved_register): Avoid a NULL pointer
7445 dereference and actually walk the frame list.
7446
0f79675b
AC
74472002-04-20 Andrew Cagney <ac131313@redhat.com>
7448
7449 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7450 sorted in most most-recent-used order. Document.
7451 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7452
f91305dd 74532002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7454
7455 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7456 instead of ->prev.
7457 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7458 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7459 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7460 instead of ->prev.
7461
73d322b1
EZ
74622002-04-19 Elena Zannoni <ezannoni@redhat.com>
7463
7464 Fix PR gdb/471.
7465 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7466 (build_builtin_type_vec128): Ditto.
7467 (append_composite_type_field): Fix calculation of type length in
7468 union case.
7469
ccd9a834
EZ
74702002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7471
7472 * config/djgpp/README: Update.
7473
7474 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7475 compiler warnings.
7476
a57f9e49
JT
74772002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7478
7479 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7480 (alpha_setup_arbitrary_frame): ...to this.
7481 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7482 for alpha_setup_arbitrary_frame.
7483
f4f9705a
AC
74842002-04-18 Andrew Cagney <cagney@redhat.com>
7485
7486 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7487 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7488
f4f9705a
AC
7489 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7490 * target.h (memory_breakpoint_from_pc): Update declaration.
7491 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7492
7493 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7494 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7495 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7496 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7497 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7498 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7499 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7500 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7501 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7502 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7503 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7504 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7505
7506 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7507 const pointer.
7508 * monitor.c (monitor_insert_breakpoint): Ditto.
7509 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7510
7511 * config/mcore/tm-mcore.h: Update copyright.
7512 * mem-break.c: Ditto.
7513 * xstormy16-tdep.c: Ditto.
7514
29f319b8
PM
75152002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7516
7517 * p-exp.y: Add precedence rule for '^' token.
7518 This removes the shift/reduce conflicts.
7519 Remove the comment concerning these shift/reduce conflicts.
7520
ebeac11a
EZ
75212002-04-18 Elena Zannoni <ezannoni@redhat.com>
7522
7523 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7524 (registers_powerpc_nofp): New register set for processors
7525 without floating point unit.
7526
27c31547
DM
75272002-04-18 David S. Miller <davem@redhat.com>
7528
7529 * MAINTAINERS: Add myself to write-after-approval.
7530
47a73475
MS
75312002-04-17 Michael Snyder <msnyder@redhat.com>
7532
7533 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7534
953836b2
AC
75352002-04-17 Andrew Cagney <ac131313@redhat.com>
7536
7537 * rs6000-tdep.c (frame_initial_stack_address): Use
7538 frame_register_read to read the alloca_reg.
7539
8b0d4340
AC
75402002-04-17 Andrew Cagney <ac131313@redhat.com>
7541
7542 * frame.c (find_saved_register): Find saved registers in the next
7543 not prev frame.
7544 Fix PR gdb/365.
7545
d8864532
AC
75462002-04-17 Andrew Cagney <ac131313@redhat.com>
7547
7548 * gdbarch.sh (LANG): Set to ``c''.
7549
36cc83a3 75502002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7551
36cc83a3 7552 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7553
2f4150cc 75542002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7555
7556 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7557 Update copyright.
7558
628703c6 7559 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7560 Also fix PR gdb/391.
361d1df0 7561
56157b4a
AC
75622002-04-14 Andrew Cagney <ac131313@redhat.com>
7563
7564 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7565 * aclocal.m4, configure: Re-generate.
7566 Fix PR gdb/391.
361d1df0 7567
6d1e3329
EZ
75682002-04-14 Elena Zannoni <ezannoni@redhat.com>
7569
7570 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7571 instead of tm_print_insn.
7572
cb06fa07
EZ
75732002-04-14 Elena Zannoni <ezannoni@redhat.com>
7574
7575 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7576
f208ba17
AC
75772002-04-14 Andrew Cagney <ac131313@redhat.com>
7578
7579 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7580 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7581 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7582
20f01a46
DH
75832002-04-12 Don Howard <dhoward@redhat.com>
7584
7585 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7586 max_user_call_depth.
7587 (init_cmd_lists): Initialize the new value;
7588 * cli/cli-script.c (execute_user_command): Limit the call depth of
7589 user defined commands. This avoids a core-dump when user commands
7590 are infinitly recursive.
7591
a88376a3
KB
75922002-04-12 Kevin Buettner <kevinb@redhat.com>
7593
7594 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7595 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7596 from tdep struct instead of DEFAULT_LR_SAVE.
7597 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7598 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7599 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7600
f2172603
MS
76012002-04-12 Michael Snyder <msnyder@redhat.com>
7602
694f61fb 7603 * Remote.c: Spelling fix.
20fe79c8
MS
7604 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7605 If no symbol found for "sbrk", try "_sbrk".
7606 (make_output_phdrs): Use bfd_section_name.
7607 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7608 * eval.c: Indentation fix-ups.
169a7369
MS
7609 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7610 in case it gets applied to an address that is already
7611 in the instruction space.
de74f71f
MS
7612 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7613 * symfile.c: Fix indentation, long lines.
f2172603
MS
7614 * source.c: White space fix-up.
7615
cda5a58a
AC
76162002-04-12 Andrew Cagney <cagney@redhat.com>
7617
7618 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7619 * frame.c (frame_register_read): New function. Return non-zero on
7620 success.
7621 (read_relative_register_raw_bytes_for_frame): Delete.
7622 (read_relative_register_raw_bytes): Delete.
7623 * frame.h (frame_register_read): Declare.
7624 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7625 * sh-tdep.c: Ditto.
7626 * infcmd.c (do_registers_info): Ditto.
7627 * hppa-tdep.c: Ditto.
7628 * rs6000-tdep.c: Ditto.
7629 * h8500-tdep.c: Ditto.
7630 * mips-tdep.c: Ditto.
7631 * h8300-tdep.c: Ditto.
7632 * z8k-tdep.c: Ditto.
7633
2ea5f656
KB
76342002-04-12 Kevin Buettner <kevinb@redhat.com>
7635
7636 From Jimi X <jimix@watson.ibm.com>:
7637 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7638 64-bit SysV ABI.
7639
27b15785
KB
76402002-04-12 Kevin Buettner <kevinb@redhat.com>
7641
7642 From Jimi X <jimix@watson.ibm.com>:
7643 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7644 bfd info.
7645
5d57ee30
KB
76462002-04-12 Kevin Buettner <kevinb@redhat.com>
7647
7648 From Jimi X <jimix@watson.ibm.com>:
7649 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7650 register sets for these processor variants.
7651
bc1e36ca
DJ
76522002-04-11 Daniel Jacobowitz <drow@mvista.com>
7653
bc1e36ca
DJ
7654 * regformats/reg-ppc.dat: Support FPSCR.
7655
e3f36dbd
KB
76562002-04-11 Kevin Buettner <kevinb@redhat.com>
7657
7658 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7659 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7660 Add fpscr as an invalid/unfetchable register.
7661 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7662 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7663 (fill_fpregset): Add support for register fpscr.
7664 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7665 (fill_gregset): Account for the fact that register ``mq'' might
7666 not exist.
7667 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7668 (registers_power): Add fpscr to register set at slot 71.
7669 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7670 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7671
943c9c25
MS
76722002-04-11 Michael Snyder <msnyder@redhat.com>
7673
7674 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7675 * configure: Regenerate.
7676 * config.in: Regenerate.
7677 * acconfig.h: Add define for _SYSCALL32.
7678 * core-sol2.c: Remove #define _SYSCALL32.
7679 * solib-legacy.c: Remove #define _SYSCALL32.
7680
d8c0a2e7
AC
76812002-04-10 Andrew Cagney <ac131313@redhat.com>
7682
7683 * stack.c (select_frame): Cleanup internal error message, do not
7684 use %p.
7685
7cc19214
AC
76862002-04-10 Andrew Cagney <ac131313@redhat.com>
7687
7688 * stack.c (select_frame): Check that selected_frame and the
7689 specified level are as expected.
7690 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7691 Update copyright.
7692 * frame.h (struct frame_info): Add field `level'. Update
7693 copyright.
7694 Work-in-progress PR gdb/464.
7695
67a2b77e
AC
76962002-04-10 Andrew Cagney <ac131313@redhat.com>
7697
7698 * maint.c (maint_print_section_info): Rename print_section_info.
7699 (print_bfd_section_info, print_objfile_section_info): Update.
7700 * inferior.h (struct gdbarch): Add opaque declaration.
7701 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7702 * gdbarch.h: Regenerate.
7703
8cfda98c
ML
77042002-04-10 Michal Ludvig <mludvig@suse.cz>
7705
7706 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7707 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7708 (kernel_u_size): Added.
7709 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7710 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7711
ca439ad2 77122002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7713
ca439ad2
JI
7714 * valarith.c (find_size_for_pointer_math): New function, either returns
7715 the size for a pointer's target, returns 1 for void *, or errors for
7716 incomplete types.
7717 (value_add, value_sub): use find_size_for_pointer_math.
7718
2f2893d9
DJ
77192002-04-09 Daniel Jacobowitz <drow@mvista.com>
7720
7721 * linux-low.c (linux_look_up_symbols): New hook.
7722 (linux_target_ops): Add linux_look_up_symbols.
7723 * remote-utils.c (decode_address): New function.
7724 (look_up_one_symbol): New function.
7725 * server.c (handle_query): Call target look_up_symbols hook.
7726 * server.h (look_up_one_symbol): Add prototype.
7727 * target.h (struct target_ops): Add look_up_symbols hook.
7728
96cb11df
AC
77292002-04-09 Andrew Cagney <ac131313@redhat.com>
7730
7731 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7732 override FP_REGNUM with frame->fp. Update copyright.
7733 * parse.c (num_std_regs, std_regs): Delete.
7734 (target_map_name_to_register): Do not search std_regs. Update
7735 function description.
7736 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7737 declarations. Update copyright.
7738 Fix PR gdb/251.
361d1df0 7739
97658e92
DJ
77402002-04-09 Daniel Jacobowitz <drow@mvista.com>
7741
7742 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7743 after the last symbol in a block.
7744
6044e3eb
PM
77452002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7746
7747 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7748 is non zero as a found symbol.
7749
0406ec40
AC
77502002-04-08 Andrew Cagney <ac131313@redhat.com>
7751
7752 * findvar.c: Include "builtin-regs.h".
7753 (value_of_register): Call value_of_builtin_reg when applicable.
7754 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7755 (target_map_name_to_register): Call
7756 builtin_reg_map_name_to_regnum.
7757 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7758 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7759 (builtin_regs_h): Define.
7760 (builtin-regs.o): New target.
7761 (findvar.o): Add $(builtin_regs_h).
7762 * builtin-regs.c, builtin-regs.h: New files.
7763 * std-regs.c: New file.
7764 Partial fix for PR gdb/251.
7765
56a6dfb9
KB
77662002-04-08 Kevin Buettner <kevinb@redhat.com>
7767
7768 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7769 it's no longer required.
7770
3a808432
AC
77712002-04-08 Andrew Cagney <ac131313@redhat.com>
7772
7773 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7774
7c40d541
KB
77752002-04-08 Kevin Buettner <kevinb@redhat.com>
7776
7777 From Jimi X <jimix@watson.ibm.com>:
7778 * rs6000-tdep.c (rs6000_software_single_step): Use
7779 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7780 and size. Use target_insert_breakpoint() and
7781 target_remove_breakpoint() to insert and remove breakpoints
7782 instead of explicit memory reads and writes.
7783
cc9836a8
KB
77842002-04-08 Kevin Buettner <kevinb@redhat.com>
7785
7786 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7787 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7788 ELF_OBJECT_FORMAT ifdef.
7789
7495d1dc
KB
77902002-04-08 Kevin Buettner <kevinb@redhat.com>
7791
7792 From Jimi X <jimix@watson.ibm.com>:
7793 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7794
4288e836
KB
77952002-04-08 Kevin Buettner <kevinb@redhat.com>
7796
7797 From Jimi X <jimix@watson.ibm.com>:
7798 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7799 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7800
a4e4e501
MK
78012002-04-07 Mark Kettenis <kettenis@gnu.org>
7802
7803 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7804 s/asprintf/xasprintf/.
7805 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7806
006defba
AC
78072002-04-07 Andrew Cagney <ac131313@redhat.com>
7808
7809 I believe Jeff Law denies responsability for this one:
7810 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7811 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7812 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7813 Work-around for PR gdb/366.
7814
7aa83cac
EZ
78152002-04-07 Elena Zannoni <ezannoni@redhat.com>
7816
7817 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7818 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7819 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7820
cf1fcca1
EZ
78212002-04-07 Elena Zannoni <ezannoni@redhat.com>
7822
7823 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7824 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7825 information.
7826
3f289e6f
AC
78272002-04-07 Andrew Cagney <ac131313@redhat.com>
7828
7829 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7830 maintainer.
7831
129188f6
AC
78322002-04-07 Andrew Cagney <ac131313@redhat.com>
7833
7834 * README (Reporting Bugs in GDB): Document the bug web page as the
7835 prefered way of submitting bugs.
7836 Fix PR gdb/402.
7837
1200cd6e
AC
78382002-04-06 Andrew Cagney <ac131313@redhat.com>
7839
7840 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7841 -1. Update comment.
7842 * gdbarch.h, gdbarch.c: Re-generate.
7843
2853c33c
AS
78442002-04-07 Andreas Schwab <schwab@suse.de>
7845
7846 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7847 buffer to regcache_collect.
7848
c2169756
AC
78492002-04-06 Andrew Cagney <ac131313@redhat.com>
7850
7851 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7852 * gdbarch.c, gdbarch.h: Re-generate.
7853
25f1b008
AC
78542002-04-06 Andrew Cagney <ac131313@redhat.com>
7855
7856 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7857 declaration. Fix -Werror.
7858
59263426
DJ
78592002-04-05 Daniel Jacobowitz <drow@mvista.com>
7860
7861 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7862 * gdbarch.c: Regenerate.
7863
f5db4da3
MS
78642002-04-05 Michael Snyder <msnyder@redhat.com>
7865
80f8a6eb
MS
7866 * breakpoint.c (clear_command): Rewrite middle section to
7867 combine two loops with identical control conditions.
7868 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7869 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7870
ad3dcc5c
L
78712002-04-05 H.J. Lu (hjl@gnu.org)
7872
7873 * solib-svr4.c (bkpt_names): Add "__start".
7874
f32e7a74
AC
78752002-04-04 Andrew Cagney <ac131313@redhat.com>
7876
7877 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7878 as test for 64 bit target.
7879
8227c0ff
AC
78802002-04-05 Andrew Cagney <ac131313@redhat.com>
7881
7882 * h8500-tdep.c (h8500_write_fp): Delete function.
7883 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7884 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7885 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7887 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7888 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7889 (s390_write_fp):
7890 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7891 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7892 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7893 (d10v_write_fp): Delete function.
7894 * inferior.h (write_fp, generic_target_write_fp): Delete
7895 declarations.
7896 * regcache.c (generic_target_write_fp): Delete function.
7897 (write_fp): Delete function.
7898 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7899 * gdbarch.h, gdbarch.c: Regenerate.
7900 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7901 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7902 (sparc64_write_fp): Delete declaration.
7903 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7904 (h8500_write_fp): Delete declaration.
7905
2757dd86
AC
79062002-04-04 Andrew Cagney <ac131313@redhat.com>
7907
7908 * sparc-tdep.c (sparc64_write_fp): Delete.
7909 (sparc_push_dummy_frame): Replace write_fp call with code to store
7910 the FP directly.
7911 (sparc_gdbarch_init): Do not initialize write_fp.
7912
c69255e1
KB
79132002-04-05 Kevin Buettner <kevinb@redhat.com>
7914
7915 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7916 clause.
7917
ae767bfb
JB
79182002-03-29 Jim Blandy <jimb@redhat.com>
7919
7920 * stack.c (get_selected_block): Add new argument `addr_in_block',
7921 used to return the exact code address we used to select the block,
7922 not just the block.
7923 * blockframe.c (get_frame_block, get_current_block): Same.
7924 * frame.h (get_frame_block, get_current_block,
7925 get_selected_block): Update declarations.
7926 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7927 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7928
84d2ac95
MS
79292002-04-05 Michael Snyder <msnyder@redhat.com>
7930
7931 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7932 warning message.
7933
596aa3bf
JB
79342002-04-05 J. Brobecker <brobecker@gnat.com>
7935
7936 * utils.c (xfullpath): New function.
7937 * defs.h (xfullpath): Add declaration.
7938 * source.c (openp): Use xfullpath in place of gdb_realpath to
7939 avoid resolving the basename part of filenames when the
7940 associated file is a symbolic link. This fixes a potential
7941 inconsistency between the filenames known to GDB and the
7942 filenames it prints in the annotations.
7943 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7944 to be able to match a filename with either the real filename, or
7945 the name of any symbolic link to this file.
7946 (lookup_partial_symtab): Ditto.
7947
c02f5703
MS
79482002-04-04 Michael Snyder <msnyder@redhat.com>
7949
7950 * breakpoint.c: Add support for hardware breakpoints in overlays.
7951 (overlay_events_enabled): New state variable.
7952 (insert_breakpoints): Use overlay_events_enabled to decide
7953 whether to attempt to set a breakpoint at the overlay load addr.
7954 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7955 (remove_breakpoint): Use overlay_events_enabled to decide
7956 whether breakpoints need to be removed from overlay load addr.
7957 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7958 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7959 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7960 disable_overlay_breakpoints): Update overlay_events_enabled.
7961
5fb290d7
DJ
79622002-04-04 Daniel Jacobowitz <drow@mvista.com>
7963
7964 * dwarf2read.c (struct function_range): New.
7965 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7966 (check_cu_functions): New.
7967 (read_file_scope): Initialize global function lists.
7968 Call dwarf_decode_line after processing children.
7969 (read_func_scope): Add to global function list.
7970 (dwarf_decode_lines): Call check_cu_functions everywhere
7971 record_line is called. Call record_line with a linenumber
7972 of 0 to mark sequence ends.
7973
7b3fabf0
ML
79742002-04-04 Michal Ludvig <mludvig@suse.cz>
7975
361d1df0 7976 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7977 change sync with glibc.
7978
bce58c09
JB
79792002-04-03 Jim Blandy <jimb@redhat.com>
7980
7981 * configure.in: Call AC_C_INLINE.
7982 * configure: Regenerated.
361d1df0 7983
2fccf04a
DJ
79842002-04-01 Daniel Jacobowitz <drow@mvista.com>
7985
7986 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7987 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7988
2d1bfe2e
MK
79892002-03-31 Mark Kettenis <kettenis@gnu.org>
7990
a5941fbf
MK
7991 * NEWS: Mention gcore support on FreeBSD/i386.
7992
a90cd31d
MK
7993 * fbsd-proc.c: New file.
7994 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7995 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7996
2d1bfe2e
MK
7997 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7998 while statement.
7999
9eb6e5a1
JB
80002002-03-29 Jim Blandy <jimb@redhat.com>
8001
8002 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8003 unescaped newlines in string literals, but newer ones don't. So
8004 escape them.
8005
f02df580
MS
80062002-03-26 Michael Snyder <msnyder@redhat.com>
8007 Andrew Cagney <cagney@redhat.com>
8008
361d1df0 8009 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8010 restore file to memory.
8011 * cli/cli-dump.h: New file.
8012 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8013 * NEWS: Mention new commands.
f02df580 8014
109f874e
MS
80152002-03-28 Michael Snyder <msnyder@redhat.com>
8016
8017 * symfile.c (symbol_file_add): Move test for null symbols to later.
8018
520f6ade
AC
80192002-03-27 Andrew Cagney <ac131313@redhat.com>
8020
8021 From veksler at il.ibm.com:
8022 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8023 the xstrduped original path.
8024 Fix PR gdb/417.
8025
d4654627
MS
80262002-03-27 Michael Snyder <msnyder@redhat.com>
8027
8028 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8029 * infcmd.c (_initialize_infcmd): Ditto.
8030 * language.c (_initialize_language): Ditto.
8031 * symfile.c (_initialize_symfile): Ditto.
8032 * top.c (_init_main): Ditto.
8033 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8034
6be8bc0c
EZ
80352002-03-27 Elena Zannoni <ezannoni@redhat.com>
8036
8037 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8038 vector registers handling.
8039 (skip_prologue): Handle new AltiVec instructions. Fill in new
8040 fields of frame data.
8041 (frame_get_saved_regs): Fill in information for AltiVec registers.
8042
12af6855
JB
80432002-03-27 Jim Blandy <jimb@redhat.com>
8044
8045 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8046 a function; leave this macro here to invoke that function.
8047 (symbol_init_mangled_name): Declaration for that function.
8048 * symtab.c (symbol_init_mangled_name): New function.
8049
dc672865
AC
80502002-03-27 Andrew Cagney <ac131313@redhat.com>
8051
8052 * valarith.c: Replace strerror with safe_strerror.
8053 * tracepoint.c: Ditto.
8054 * lin-lwp.c: Ditto.
8055 * go32-nat.c: Ditto.
8056 * inflow.c: Ditto.
8057 * gnu-nat.c: Ditto.
8058
d96429cd
AS
80592002-03-27 Andreas Schwab <schwab@suse.de>
8060
8061 * event-top.c (command_line_handler): Remove useless if.
8062
7e336ba1
AJ
80632002-03-27 Andreas Jaeger <aj@suse.de>
8064
8065 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8066 comment.
8067
de220d0f
ML
80682002-03-27 Michal Ludvig <mludvig@suse.cz>
8069
8070 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8071 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8072 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8073 (x86_64_linux_dr_get_status, supply_gregset),
8074 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8075 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8076 (x86_64_register_info_table): Add.
8077 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8078 (x86_64_register_raw_size, x86_64_register_virtual_type),
8079 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8080 general x86_64_register_info_table.
8081 (i386_gdbarch_init): gdbarch_register_bytes is now set
8082 dynamicaly during initialization.
8083 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8084 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8085
0e98d0a7
DJ
80862002-03-27 Daniel Jacobowitz <drow@mvista.com>
8087
8088 * gdbserver/server.c (main): Call target_signal_to_host_p
8089 and target_signal_to_host on signals received from the remote.
8090 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8091 target_signal_from_host on signals sent to the remote.
8092 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8093 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8094
3130066b
DJ
80952002-03-27 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * signals/signals.c: Include "server.h" in gdbserver build.
8098 (target_signal_from_name): Don't use STREQ.
8099 (_initialize_signals): Likewise. Don't include function in
8100 gdbserver build.
8101
9aedf4f4
DJ
81022002-03-27 Daniel Jacobowitz <drow@mvista.com>
8103
8104 * signals.c: Moved to...
8105 * signals/signals.c: Here.
7e336ba1 8106 * Makefile (signals.o): Update.
9aedf4f4 8107
3fa41cdb
JL
81082002-03-26 Jeff Law (law@redhat.com)
8109
8110 * somread.c (som_symtab_read): Remove some commented out code and
8111 updated related comments. Do not set the minimal symbol table to
8112 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8113 in a dynamic executable.
8114 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8115 where we are unable to find the minimal symbol for the given
8116 PC value.
8117
ee677e8d
MS
81182002-03-25 Jeff Law (law@redhat.com)
8119
8120 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8121
e76e1718
ML
81222002-03-25 Michal Ludvig <mludvig@suse.cz>
8123
8124 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8125
18a642a1
AC
81262002-03-23 Andrew Cagney <ac131313@redhat.com>
8127
8128 * command.h: Update copyright.
8129 (struct cmd_list_element): Replace definition with opaque
8130 declaration.
8131 (enum cmd_types): Document that it will eventually be moved to
8132 cli/cli-decode.h
8133 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8134 (MALLOCED_REPLACEMENT): Delete macro.
8135 * Makefile.in (cli_decode_h): Add $(command_h).
8136 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8137 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8138 * completer.c: Include "cli/cli-decode.h".
8139 * maint.c: Include "cli/cli-decode.h".
8140 * cli/cli-decode.h: Include "command.h".
8141 (enum command_class): Delete.
8142 (enum cmd_types): Comment out.
8143 (enum cmd_auto_boolean): Delete.
8144 (enum var_types): Delete.
8145
b2875cc0
AC
81462002-03-23 Andrew Cagney <ac131313@redhat.com>
8147
8148 * cli/cli-decode.c: Include "gdb_assert.h".
8149 (add_set_or_show_cmd): New static function.
8150 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8151 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8152 all fields, such as func, from the set command.
8153
3b45974e
AC
81542002-03-23 Andrew Cagney <ac131313@redhat.com>
8155
8156 * MAINTAINERS (sh-elf): Change warning flag to -w.
8157
823ca731
AC
81582002-03-23 Andrew Cagney <cagney@redhat.com>
8159
8160 * defs.h (error): Add printf format attribute.
8161 * thread-db.c (thread_from_lwp): Fix error format string.
8162 * stack.c (parse_frame_specification): Ditto.
8163 * cli/cli-decode.c (undef_cmd_error): Ditto.
8164 * scm-lang.c (scm_lookup_name): Ditto.
8165 * tracepoint.c (trace_error): Ditto.
8166 * remote-utils.c (usage): Ditto.
8167 * remote.c (compare_sections_command): Ditto.
8168 Fix PR gdb/328.
8169
0e101458
AC
81702002-03-22 Andrew Cagney <ac131313@redhat.com>
8171
8172 * gdbtypes.c (append_composite_type_field): New function.
8173 (init_composite_type): New function.
8174 * gdbtypes.h (append_composite_type_field): Declare.
8175 (init_composite_type): Ditto.
8176
8e0662df
EZ
81772002-03-22 Elena Zannoni <ezannoni@redhat.com>
8178
8179 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8180 function.
8e0662df
EZ
8181 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8182 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8183 structure returning convention for SYSV ABI case, but not
8184 for GNU/Linux, FreeBSD, or NetBSD.
8185
3121eff0
DJ
81862002-03-22 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * symtab.h (lookup_block_symbol): Add mangled_name argument
8189 to prototype.
8190
8191 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8192 with new mangled_name argument.
8193 * linespec.c (decode_line_1): Likewise.
8194 * valops (value_of_this): Likewise.
8195 * symtab.c (lookup_transparent_type): Likewise.
8196 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8197 (lookup_symbol): If we are given a mangled name, pass it down
8198 to lookup_symbol_aux.
8199 (lookup_block_symbol): If we are given a mangled name to check
8200 against, only return symbols which match it.
8201
349b409f
CF
82022002-03-22 Christopher Faylor <cgf@redhat.com>
8203
8204 * win32-nat.c (child_create_inferior): Check for proper shell to use
8205 here, in case the user changes it on the fly.
8206 (_initialize_inftarg): Remove shell path considerations.
8207
2a873819
EZ
82082002-03-21 Elena Zannoni <ezannoni@redhat.com>
8209
8210 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8211 for gdbarch_max_register_raw_size and max_register_virtual_size.
8212 Adjust copyright year.
8213
a1b9830c
DJ
82142002-03-21 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8217 in a function to cover the entire beginning of the function
8218 as well if it does not already.
8219
8b5790f2
TR
82202002-03-21 Tom Rix <trix@redhat.com>
8221
8222 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8223 (rs6000_ptrace64): Renamed from ptrace64.
8224
bdbe5747
MH
82252002-03-20 Martin M. Hunt <hunt@redhat.com>
8226
8227 * gdbserver/remote-utils.c (remote_open): Don't call
8228 getprotobyname, we're all using TCP here so just use
8229 IPPROTO_TCP.
7e336ba1 8230 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8231
82322002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8233
bdbe5747
MH
8234 * regcache.c (_initialize_regcache): No need to call
8235 build_regcache() at this time; it gets called whenever
8236 the gdbarch changes.
8237
7781cd62
DB
82382002-03-20 David O'Brien <obrien@FreeBSD.org>
8239
8240 * sparc-nat.c: Include sys/param.h where possible.
8241
f65ca430
DJ
82422002-03-20 Daniel Jacobowitz <drow@mvista.com>
8243
8244 Fix PR gdb/422.
8245 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8246 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8247 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8248 complex types.
8249 * stabsread.c (rs6000_builtin_type): Likewise.
8250 (read_sun_floating_type): Likewise.
8251
0c867556
PS
82522002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8253
8254 * stabsread.c (read_member_functions): Remove skip code for duplicate
8255 constructor/destructor methods. Use standard parsing for these
8256 methods and just do not chain them to the list of methods after
8257 parsing.
8258
12b9c64f
AO
82592002-03-19 Alexandre Oliva <aoliva@redhat.com>
8260
8261 * coffread.c: Remove redundant static declarations. Replace
8262 occurrences of `PTR' with `void *'.
8263 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8264 * top.h (quit_cover): Likewise.
8265 * defs.h (catch_errors): Likewise.
8266
349c5d5f
AC
82672002-03-18 Andrew Cagney <ac131313@redhat.com>
8268
8269 * defs.h (XMALLOC): Define.
8270 * gdb-events.sh (XMALLOC): Delete macro.
8271 * gdb-events.c, gdb-events.h: Regenerate.
8272 * gdbarch.sh (XMALLOC): Delete macro.
8273 * gdbarch.c: Regenerate.
8274 * serial.c (XMALLOC): Delete macro.
8275 * ui-file.c (XMALLOC): Ditto.
8276 * ser-unix.h (XMALLOC): Ditto.
8277 * sh-tdep.c (XMALLOC): Ditto.
8278 * ui-out.c (XMALLOC): Ditto.
8279 * utils.c (XMALLOC): Ditto.
8280 * i386-tdep.c (XMALLOC): Ditto.
8281 * gdb-events.c (XMALLOC): Ditto.
8282 * d10v-tdep.c (XMALLOC): Ditto.
8283 * cli-out.c (XMALLOC): Ditto.
8284
8285 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8286 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8287 * ui-file.c, ui-out.c: Ditto.
8288
7d0766f3
AC
82892002-03-18 Andrew Cagney <ac131313@redhat.com>
8290
8291 * command.h (struct cmd_list_element): Add field context.
8292 (set_cmd_context, get_cmd_context): Declare.
8293 * cli/cli-decode.h: Ditto.
8294 * cli/cli-decode.c (get_cmd_context): New function.
8295 (set_cmd_context): New function.
8296 (add_cmd): Initialize context.
8297 Part of fixing PR gdb/145 and PR gdb/146.
8298
5913bcb0
AC
82992002-03-17 Andrew Cagney <ac131313@redhat.com>
8300
1868c04e
AC
8301 * cli/cli-decode.c (cmd_type): New function.
8302 * command.h (cmd_type): Declare.
8303 * infrun.c (set_schedlock_func): Call function cmd_type.
8304 * kod.c (kod_set_os): Call cmd_type.
8305 * cris-tdep.c (cris_version_update): Use function cmd_type.
8306 (cris_mode_update, cris_abi_update): Ditto.
8307
5913bcb0
AC
8308 * command.h: (execute_cmd_post_hook): Declare.
8309 (execute_cmd_pre_hook): Declare.
8310 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8311 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8312 functions. Execute pre/post hook while ensuring that afterwords
8313 hook_in is cleared.
8314 * top.c (execute_command): Use execute_cmd_post_hook, and
8315 execute_cmd_pre_hook to execute pre/post commands.
8316 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8317 hook_stop_stub.
8318 (hook_stop_stub): Call execute_cmd_pre_hook.
8319
b51450c9
AC
83202002-03-17 Andrew Cagney <ac131313@redhat.com>
8321
8322 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8323 set'' and this leads to a core dump. Move xstrdup of
8324 operating_system to after check that it is not NULL.
8325
f66c9f11
AC
83262002-03-17 Andrew Cagney <ac131313@redhat.com>
8327
8e694ecf
AC
8328 * kod.c (kod_set_os): Remove unnecessary check that
8329 ``command->type'' is set_cmd.
8330
f66c9f11
AC
8331 * valprint.c (set_input_radix): Use input_radix.
8332 (set_output_radix): Use output_radix.
8333 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8334 isn't reverted.
8335
9d01611c
AC
83362002-03-16 Andrew Cagney <ac131313@redhat.com>
8337
8338 * value.h (struct value): Delete field ``substring_addr''. Change
8339 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8340 force_core_addr_align and force_pointer_aligh.
8341
8342 * value.h (struct value): Fix typo in above change.
9d01611c 8343
4156bb53
PS
83442002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8345
8346 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8347 to fix internal_error from ``maintenance print architecture''.
8348
0e5e3ea6
PS
83492002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8350
8351 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8352 for gcc versions after gcc-2.8.1.
8353
9b013045
PS
83542002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8355
8356 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8357 for method resolution. Restore adjustment of ``this'' pointer after
8358 calling value_struct_elt, which was accidentally removed during the
8359 HP merge.
8360
376c9600
AC
83612002-03-15 Andrew Cagney <ac131313@redhat.com>
8362
8363 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8364 value_of_register.
8365 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8366 get_saved_register.
8367 * value.h (value_of_register): Update.
8368
a4db0f07
RH
83692002-03-14 Richard Henderson <rth@redhat.com>
8370
8371 * configure.in: Detect declaration for canonicalize_file_name.
8372 * utils.c (canonicalize_file_name): Declare, if needed.
8373 (gdb_realpath): Prefer realpath if available and usable.
8374 * config.in, configure: Rebuild.
8375
96383835
RH
83762002-03-14 Richard Henderson <rth@redhat.com>
8377
8378 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8379 a constant array bound.
8380
8381 * MAINTAINERS: Add myself to write-after-approval.
8382
75245b24
MS
83832002-03-14 Michael Snyder <msnyder@redhat.com>
8384
8385 * symfile.c (syms_from_objfile): Return immediately if no syms.
8386 (symbol_file_add): Return immediately if no syms.
8387 (find_sym_fns): Return immediately if no syms.
8388
e641a1ca
ML
83892002-03-13 Michal Ludvig <mludvig@suse.cz>
8390
8391 * gdbserver/remote-util.c (remote_open): Print remote-side's
8392 IP address when remote debugging over the network.
7e336ba1 8393
df08bfec
DB
83942002-03-12 David O'Brien <obrien@FreeBSD.org>
8395
8396 * config/sparc/fbsd.mh: Fix copyright.
8397 * config/sparc/fbsd.mt: Likewise.
8398
9a57864f
RE
83992002-03-11 Richard Earnshaw <rearnsha@arm.com>
8400
8401 * MAINTAINERS: Fix typo in name of gdb warnings option.
8402 (x86-64): Fix formating so that this can be parsed by awk.
8403
dd7bf85e
DJ
84042002-03-10 Daniel Jacobowitz <drow@mvista.com>
8405
8406 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8407 * defs.h: Include "gdb/signals.h".
8408 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8409
33a0a2ac
ML
84102002-03-10 Michal Ludvig <mludvig@suse.cz>
8411
8412 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8413 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8414 from x86-64-tdep.h
8415
dd824b04
DJ
84162002-03-10 Daniel Jacobowitz <drow@mvista.com>
8417 Don Howard <dhoward@redhat.com>
8418
8419 * mips-tdep.c (ST0_FR): Define.
8420 (mips2_fp_compat): New function, temporarily disabled.
8421 (mips_read_fp_register_single): New function.
8422 (mips_read_fp_register_double): New function.
8423 (mips_print_register): Use them.
8424 (do_fp_register_row): Likewise.
8425
6a41ff59
AC
84262002-03-09 Andrew Cagney <ac131313@redhat.com>
8427
8428 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8429 approval''.
8430
4ea09c10
PS
84312002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8432
8433 * stabsread.c (read_member_functions): Fix is_stub test for
8434 static member functions, improve comment.
8435
6ccc741d
RE
84362002-03-07 Richard Earnshaw <rearnsha@arm.com>
8437
8438 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8439 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8440 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8441 commands that set boolean values.
8442 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8443 (arm_rdi_resume): Always initialize PC.
8444 (arm_rdi_open): Don't use rslt as a boolean.
8445 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8446 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8447 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8448 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8449
438013df
AO
84502002-03-06 Alexandre Oliva <aoliva@redhat.com>
8451
8452 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8453 * configure: Rebuilt.
8454
70ed8774
SC
84552002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8456
8457 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8458 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8459
5ba2abeb
AC
84602002-03-06 Andrew Cagney <ac131313@redhat.com>
8461
8462 * cli/cli-decode.c (set_cmd_completer): New function.
8463 * command.h (set_cmd_completer): Declare.
8464 * cli/cli-decode.h (set_cmd_completer): Ditto.
8465
8466 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8467 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8468 * win32-nat.c (_initialize_inftarg): Ditto.
8469 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8470 * proc-api.c (_initialize_proc_api): Ditto.
8471 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8472 * source.c (_initialize_source): Ditto.
8473 * exec.c (_initialize_exec): Ditto.
8474 * solib.c (_initialize_solib): Ditto.
8475 * top.c (init_main): Ditto.
8476 * tracepoint.c (_initialize_tracepoint): Ditto.
8477 * symfile.c (_initialize_symfile): Ditto.
8478 * printcmd.c (_initialize_printcmd): Ditto.
8479 * infcmd.c (_initialize_infcmd): Ditto.
8480 * corefile.c (_initialize_core): Ditto.
8481
f779ca99
AC
84822002-03-05 Andrew Cagney <ac131313@redhat.com>
8483
8484 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8485
01a3934b
AC
84862002-03-05 Andrew Cagney <ac131313@redhat.com>
8487
8488 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8489
37057839
AC
84902002-03-05 Andrew Cagney <ac131313@redhat.com>
8491
8492 * NEWS: Update headings, 5.2 has branched.
8493
c6ecbae5
DJ
84942002-03-04 Daniel Jacobowitz <drow@mvista.com>
8495
8496 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8497 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8498 (register_addr, REGISTER_RAW_SIZE): Likewise.
8499 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8500 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8501
e9f30c21
ML
85022002-03-03 Michal Ludvig <mludvig@suse.cz>
8503
8504 * MAINTAINERS (x86-64): Add myself.
8505 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8506 changed value_ptr -> struct value *
8507
54394ac3
DB
85082002-03-01 David O'Brien <obrien@FreeBSD.org>
8509
8510 * configure.host (sparc64-*-freebsd): Add.
8511 * configure.tgt: Likewise.
8512 * config/sparc/fbsd.mh: New file.
8513 * config/sparc/fbsd.mt: Likewise.
8514 * config/sparc/nm-fbsd.h: Likewise.
8515 * config/sparc/tm-fbsd.h: Likewise.
8516
bfe95955
DJ
85172002-03-01 Daniel Jacobowitz <drow@mvista.com>
8518
8519 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8520 regformats/reg-s390x.dat.
8521
f33c6cbf
AC
85222002-03-01 Andrew Cagney <ac131313@redhat.com>
8523
8524 * utils.c: Add FIXME explaining true/false problem.
8525
5ecaa7dd
AC
85262002-02-28 Andrew Cagney <ac131313@redhat.com>
8527
8528 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8529
2a251cc2
MC
85302002-02-28 Michael Chastain <mec@shout.net>
8531
8532 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8533
6a8031a3 85342002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8535
8536 * gdbserver/linux-s390-low.c: New file.
8537 * regformats/reg-s390.dat: New file.
8538 * regformats/reg-s390x.dat: New file.
8539 * gdbserver/configure.srv: Add S/390.
8540 * gdbserver/Makefile.in: Add S/390.
8541 * configure.tgt: Enable gdbserver for S/390.
8542
ac469903
EZ
85432002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8544
8545 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8546 first line of the doc string for "info dos", except at the end of
8547 the sentence, since the short help stops at the first period.
8548
985cb1a3
JM
85492002-02-28 Jason Merrill <jason@redhat.com>
8550
8551 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8552
c570663e
FF
85532002-02-27 Fred Fish <fnf@redhat.com>
8554
8555 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8556 comment (dumy -> dummy).
8557
43630227
PS
85582002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8559
8560 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8561
b84911e8
RB
85622002-02-27 Rodney Brown <rbrown64@csc.com.au>
8563
8564 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8565
58caa3dc
DJ
85662002-02-27 Daniel Jacobowitz <drow@mvista.com>
8567
8568 * gdbserver/acconfig.h: New file.
8569 * gdbserver/i387-fp.c: New file.
8570 * gdbserver/i387-fp.h: New file.
8571 * gdbserver/linux-x86-64.c: New file.
8572 * regformats/reg-x86-64.dat: New file.
8573 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8574 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8575 * gdbserver/configure.in: Add support for regsets.
8576 * gdbserver/config.in: Regenerate.
8577 * gdbserver/configure: Regenerate.
8578 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8579 * gdbserver/linux-low.h: New file.
8580 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8581 for regsets.
8582 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8583 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8584 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8585 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8586 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8587 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8588 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8589 "i387-fp.h". Add PTRACE_GETREGS and friends.
8590 * gdbserver/regcache.c (supply_register): New function.
8591 (supply_register_by_name): New function.
8592 (collect_register): New function.
8593 (collect_register_by_name): New function.
8594
93652174
DJ
85952002-02-27 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8598 (config.status): Add configure.srv dependency.
8599 (server_h): Add config.h dependency.
8600
a02e4a61
DJ
86012002-02-27 Daniel Jacobowitz <drow@mvista.com>
8602
8603 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8604 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8605 * gdbserver/configure.srv: Change i386-*-linux* to use
8606 reg-i386-linux.o.
8607
ce0eebec
AC
86082002-02-26 Andrew Cagney <ac131313@redhat.com>
8609
8610 * x86-64-tdep.c: Re-indent. Update copyright date.
8611
82dbc5f7
AC
86122002-02-26 Andrew Cagney <ac131313@redhat.com>
8613
8614 From Michal Ludvig <mludvig@suse.cz>:
8615 * x86-64-tdep.c (value.h): Delete.
8616 (gdb_assert.h): Include.
8617 (x86_64_register_convert_to_virtual,
8618 x86_64_register_convert_to_raw ): Add check which lets only
8619 floating-point values to be converted.
8620 (value_push): Delete.
8621 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8622 (i386_gdbarch_init): Number of register_bytes fixed.
8623
e4621584
AC
86242002-02-26 Andrew Cagney <ac131313@redhat.com>
8625
8626 * MAINTAINERS: Add x86-64 target.
8627
81a9a963
AC
86282002-02-26 Andrew Cagney <ac131313@redhat.com>
8629
8630 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8631 * osfsolib.c (solib_map_sections): Ditto.
8632 * irix5-nat.c (solib_map_sections): Ditto.
8633 * corelow.c (gdb_check_format): Ditto.
8634 * symfile.c (symfile_bfd_open): Ditto.
8635 * solib.c (solib_map_sections): Ditto.
8636 Fix PR gdb/354.
7e336ba1 8637
0f017ab9
AC
86382002-02-26 Andrew Cagney <ac131313@redhat.com>
8639
8640 * remote.c (_initialize_remote): By default, disable ``e'' and
8641 ``E'' step out-of-range packets.
8642
75738c29
AS
86432002-02-26 Andreas Schwab <schwab@suse.de>
8644
8645 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8646 m68k_linux_frame_saved_pc.
8647 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8648 in_sigtramp.
8649 (SIGCONTEXT_PC_OFFSET): Remove.
8650 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8651 m68k_linux_sigtramp_saved_pc): New functions.
8652 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8653 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8654 (UCONTEXT_PC_OFFSET): Define.
8655 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8656 non-RT and RT signal trampolines.
8657
7e8ed687
RE
86582002-02-26 Richard Earnshaw <rearnsha@arm.com>
8659
8660 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8661 (TARGET_NBPG, STACK_END_ADDR): Delete
8662 (VARIABLES_INSIDE_BLOCK): Delete.
8663
6972bc8b
AC
86642002-02-25 Andrew Cagney <ac131313@redhat.com>
8665
8666 * utils.c (perror_with_name): Make string parameter constant.
8667 (print_sys_errmsg): Ditto.
8668 (query): Ditto.
8669 * defs.h (perror_with_name): Update.
8670 (print_sys_errmsg): Update.
8671 (query): Update.
8672
aa32f823
DJ
86732002-02-25 Daniel Jacobowitz <drow@mvista.com>
8674
8675 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8676 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8677
19caaa45
PS
86782002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8679
8680 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8681 if it already matches the current architecture from the exec file.
8682 Include arch-utils.h for gdbarch_info_init prototype.
8683 * Makefile.in (rs6000-nat.o): Update dependencies.
8684
d951901f
EZ
86852002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8686
8687 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8688 list of exported variables.
8689
7ea81414
DJ
86902002-02-24 Daniel Jacobowitz <drow@mvista.com>
8691
8692 * gdbserver/configure.srv: New file.
8693 * gdbserver/configure.in: Use configure.srv instead
8694 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8695 from it.
8696 * gdbserver/configure: Regenerated.
8697 * gdbserver/terminal.h: New file.
8698 * gdbserver/Makefile.in: Update for configure changes. Remove
8699 more unneeded include paths.
8700
080fe24b
AC
87012002-02-24 Andrew Cagney <ac131313@redhat.com>
8702
8703 From wiz at danbala:
8704 * config/sparc/tm-sp64.h: Fix grammar and typos.
8705 Fix PR gdb/287.
8706
8605d56e
AC
87072002-02-24 Andrew Cagney <ac131313@redhat.com>
8708
8709 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8710 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8711 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8712 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8713 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8714 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8715 * s390-tdep.c: Ditto.
92362027
AC
8716 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8717 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8718 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8719 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8720 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8721 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8722 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8723 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8724 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8725 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8726 Fix PR gdb/378.
7e336ba1 8727
8ed32cc0
AC
87282002-02-23 Andrew Cagney <ac131313@redhat.com>
8729
a3007b6f
AC
8730 * lin-thread.c: Delete file.
8731 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8732 to gdb_proc_service.h.
8733 * configure: Re-generate.
8734
50a9e2f1
AC
8735 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8736 * serial.c (serial_open): Delete check for "ocd".
8737 Fix PR gdb/349.
8738
8b6e7932
AC
8739 * Makefile.in (linux-thread.o): Delete target.
8740 * linux-thread.c: Delete file.
8741
d155c46b
AC
8742 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8743 renamed SH files to be consistent.
8744
8ed32cc0
AC
8745 * symtab.c (sort_search_symbols): Use xfree.
8746
0e18d038
RE
87472002-02-23 Richard Earnshaw <rearnsha@arm.com>
8748
8749 * arm-linux-tdep.c (arm_linux_init_abi): Register
8750 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8751 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8752 definition with undef, since we don't want the sysvr4 definition.
8753 (SKIP_TRAMPOLINE_CODE): Likewise.
8754
27aac7ff
AC
87552002-02-23 Andrew Cagney <ac131313@redhat.com>
8756
8757 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8758
8759 * configure.in: (AC_CHECK_FUNCS) Added test for
8760 canonicalize_file_name Regenerated.
8761 * config.in, configure: Regenerated.
8762 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8763 defined use canonicalize_file_name.
7e336ba1 8764
65a6e0ee
MC
87652002-02-23 Michael Chastain <mec@shout.net>
8766
8767 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8768
47b95330
AC
87692002-02-23 Andrew Cagney <ac131313@redhat.com>
8770
8771 * README: Remove references to cygnus.com.
8772 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8773 dot com'' form. Remove references to cygnus.com and sourceware.
8774
696f451b
AC
87752002-02-23 Andrew Cagney <ac131313@redhat.com>
8776
8777 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8778 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8779 1003.1-2001 no longer allows "head -1".
8780 * gdb/Makefile.in (version.c): Likewise.
8781 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8782 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8783 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8784
bbaca940
AC
87852002-02-23 Andrew Cagney <ac131313@redhat.com>
8786
8787 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8788 * command.h (cmd_cfunc_eq): Declare.
8789 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8790
8791 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8792 ``struct cmd_list_element *''.
8793 * cli/cli-cmds.c (is_complete_command): Update. Use
8794 cmd_cfunc_eq.
8795 * top.c (execute_command): Pass the command to
8796 is_complete_command.
8797 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8798
b8b8b047
AC
87992002-02-23 Andrew Cagney <ac131313@redhat.com>
8800
8801 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8802 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8803 architecture defines.
8804 * s390-tdep.c (s390_gdbarch_init): Likewise.
8805
19d3fc80
RE
88062002-02-23 Richard Earnshaw <rearnsha@arm.com>
8807
8808 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8809 (arm_linux_push_arguments): Likewise.
8810 (arm_linux_init_abi): Register them. Also register linux-specific
8811 call_dummy_words.
8812 (find_minsym_and_objfile): Use strcmp, not STREQ.
8813 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8814 (arm_linux_call_dummy_words): Delete declaration.
8815 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8816 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8817 declarations.
8818 (LOWEST_PC): Delete.
8819
3ab13650
PS
88202002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8821
8822 * maint.c (print_section_info): Do not prepend `0x' to filepos
8823 output, it will be handled by local_hex_string_custom.
8824
19d3fc80 88252002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8826
8827 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8828 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8829 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8830
d85a5daf
JB
88312002-02-22 Jim Blandy <jimb@redhat.com>
8832
8833 Indicate that the bcache functions don't change the strings
8834 they're passed.
8835 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8836 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8837
eeb25b8a
PM
88382002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8839
8840 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8841
6badb179
CF
88422002-02-21 Christopher Faylor <cgf@redhat.com>
8843
8844 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8845 find the complete path to a loaded DLL.
8846
e8717518
FF
88472002-02-21 Fred Fish <fnf@redhat.com>
8848
8849 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8850 that marks the end of the range of a function, enter a line number
8851 entry that has a line number of zero and a PC offset that matches
8852 the end of the function. This starts a range of PC's for which no
8853 line number information is known.
8854 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8855 PC's for which no line number info is found (line number is zero)
8856 then we didn't find any valid line information.
8857 * symtab.h: Document use of zero line number entry.
8858
9abe5450
EZ
88592002-02-21 Elena Zannoni <ezannoni@redhat.com>
8860
8861 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8862 (have_ptrace_getvrregs): Define for run time checks.
8863 (gdb_vrregset_t): New type for Altivec register handling.
8864 (fetch_register, store_register): Fetch/store altivec register
8865 when needed.
8866 (fetch_altivec_register, store_altivec_register): New functions.
8867 (supply_vrregset, fill_vrregset): New functions.
8868 (fetch_altivec_registers, store_altivec_registers): New functions.
8869 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8870 registers as well.
8871
aaa38bb5
AJ
88722002-02-21 Jiri Smid <smid@suse.cz>
8873
8874 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8875
b34db576
RE
88762002-02-21 Richard Earnshaw <rearnsha@arm.com>
8877
8878 * Makefile.in (armnbsd-nat.o): Update dependencies.
8879 * armnbsd-nat.c (supply_gregset): New function. Common code to
8880 supply the integer register set.
8881 (supply_fparegset): New function. Similar for FPA registers.
8882 (fetch_regs, fetch_fp_regs): Use them.
8883 (fetch_core_registers): Likewise.
8884 (fetch_elfcore_registers): New function.
8885 (arm_netbsd_elfcore_fns): New core-file type specification.
8886 (_initialize_arm_netbsd_nat): Register it.
8887
3e56fc4b
RE
88882002-02-21 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * armnbsd-nat.c: Include gdbcore.h.
8891 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8892 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8893 'void' to declaration, to shut up ARI.
8894 (fetch_core_registers): Make static. Rewrite using supply_register.
8895 (arm_netbsd_core_fns): New core-file type specification.
8896 (_initialize_arm_netbsd_nat): New function.
8897
097f6b0b
CF
88982002-02-21 Christopher Faylor <cgf@redhat.com>
8899
8900 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8901 value.
8902
c914e0cc
CF
89032002-02-20 Christopher Faylor <cgf@redhat.com>
8904
8905 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8906 fails.
8907
385fa495
DJ
89082002-02-20 Daniel Jacobowitz <drow@mvista.com>
8909
8910 * jv-exp.y (parse_number): Change type of implicit longs
8911 to builtin_type_uint64.
8912
e5f1222d
DJ
89132002-02-20 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8916 to be an integer instead of a `union wait'.
8917
75c9abc6
DJ
89182002-02-20 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * mips-linux-nat.c: Call the operating system GNU/Linux.
8921 * mips-linux-tdep.c: Likewise.
8922 * mips-tdep.c: Likewise.
8923
551792a5
DJ
89242002-02-20 Daniel Jacobowitz <drow@mvista.com>
8925
8926 Fix PR gdb/265.
8927 * jv-exp.y (parse_number): Handle 64-bit integers.
8928
ee6e2b82
DJ
89292002-02-20 Daniel Jacobowitz <drow@mvista.com>
8930
8931 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8932 AC_STDC_HEADERS to AC_HEADER_STDC.
8933 * gdbserver/configure: Regenerated.
8934
a48442a0
RE
89352002-02-20 Richard Earnshaw <rearnsha@arm.com>
8936
8937 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8938 is defined.
8939 * sparc-tdep.c (get_longjmp_target): Likewise.
8940
fe419ffc
RE
89412002-02-20 Richard Earnshaw <rearnsha@arm.com>
8942
8943 * News: Add news about ARM and Multi-arch. Mention the new target
8944 arm*-*-netbsd*.
8945
5832ed7e
JB
89462002-02-19 Jim Blandy <jimb@redhat.com>
8947
8948 * stabsread.c (error_type_complaint): Improve error message.
8949
84563040
DJ
89502002-02-19 Daniel Jacobowitz <drow@mvista.com>
8951
8952 * gdbserver/README: Update documentation.
8953 * gdbserver/configure.in: Update configury to match documentation.
8954 * gdbserver/Makefile.in: Likewise.
8955 * gdbserver/configure: Regenerated.
8956 * gdbserver/aclocal.m4: New file, generated by aclocal.
8957 * gdbserver/config.in: New file, generated by autoheader.
8958
375fd65b
RE
89592002-02-19 Richard Earnshaw <rearnsha@arm.com>
8960
8961 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8962 armnbsd-nat.c.
8963
08216dd7
RE
89642002-02-19 Richard Earnshaw <rearnsha@arm.com>
8965
8966 * arm-tdep.h (enum arm_float_model): New enum.
8967 (struct gdbarch_tdep): Add fp_model.
8968 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8969 up floating-point conversions until we know the floating-point model
8970 in use by the inferior. Don't complain about being unable to
8971 determine the ABI of the inferior when we don't have one.
8972 (arm_extract_return_value): Support different floating-point models.
8973 (arm_store_return_value): Likewise.
aaa38bb5 8974 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8975 ARM_FLOAT_SOFT.
8976 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8977
65d6d66a
PS
89782002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8979
8980 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8981 of ``current_gdbarch''.
8982
47221191
RE
89832002-02-19 Richard Earnshaw <rearnsha@arm.com>
8984
8985 * armnbsd-nat.c : ANSIfy all function declarations.
8986 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8987 (fetch_inferior_registers): Re-implement in terms of above.
8988 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8989 (store_inferior_registers): Re-implement in terms of above.
8990
fdf39c9a
RE
89912002-02-19 Richard Earnshaw <rearnsha@arm.com>
8992
aaa38bb5 8993 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8994 kernel.
8995 * arm-linux-tdep.c: Likewise.
8996 * config/arm/tm-linux.h: Likewise.
8997
93247f88
RE
89982002-02-19 Richard Earnshaw <rearnsha@arm.com>
8999
9000 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9001 * config/arm/nbsd.mt (TM_FILE): Delete.
9002 * config/arm/tm-nbsd.h: Delete.
9003
d7b486e7
RE
90042002-02-19 Richard Earnshaw <rearnsha@arm.com>
9005
9006 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9007 Initialize CALL_DUMMY_LENGTH.
9008
41d39a95
RE
90092002-02-19 Richard Earnshaw <rearnsha@arm.com>
9010
9011 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9012 function.
9013 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9014 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9015 defines one thing and that is incorrect for this port.
9016 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9017
e1195560
PM
90182002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9019
9020 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9021
c1748f97
PM
90222002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9023
9024 * win32-nat.c (display_selector): New function. Displays information
9025 about the information returned by GetThreadSelectorEntry API function.
9026 (display_selectors): New function. Displays the infomation of
9027 the selector given as argument, or of CS, DS ans FS selectors
9028 if no argument is given.
9029 ( _initialize_inftarg): Add "w32" as info prefix command.
9030 Add "info w32 selector" as command calling display_selectors.
9031
e41e6bbf
PM
90322002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9033
9034 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9035 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9036 if not defined.
9037
0d3a9f48
RE
90382002-02-18 Richard Earnshaw <rearnsha@arm.com>
9039
9040 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9041
3fb4b924
RE
90422002-02-18 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9045 (arm_fix_call_dummy): Call it.
9046 (arm_call_dummy_breakpoint_offset): Delete.
9047 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9048 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9049
7f55af32
AC
90502002-02-18 Andrew Cagney <ac131313@redhat.com>
9051
9052 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9053 Default to func_frame_chain_valid.
9054 * gdbarch.h, gdbarch.c: Re-generate.
9055 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9056
05f13b9c
EZ
90572002-02-18 Elena Zannoni <ezannoni@redhat.com>
9058
9059 * ppc-linux-nat.c: Update copyright.
9060 (fetch_register, store_register): Add tid parameter, don't compute
9061 tid here.
9062 (fetch_ppc_registers, store_ppc_registers): Add tid
9063 parameter. Pass it along to callees.
9064 (fetch_inferior_registers, store_inferior_registers): Compute tid
9065 here, and pass it to calleed functions.
9066 (fill_gregset, supply_fpregset): Clean up formatting.
9067
d7afb4c9
RE
90682002-02-18 Richard Earnshaw <rearnsha@arm.com>
9069
9070 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9071 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9072
9df628e0
RE
90732002-02-18 Richard Earnshaw <rearnsha@arm.com>
9074
9075 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9076 * gdbarch.c gdbarch.h: Regenerate.
9077 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9078 function.
9079 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9080 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9081 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9082
9083 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9084 * arm-tdep.c (arm_get_longjmp_target): New function.
9085 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9086 this to a positive value register arm_get_longjmp_target as the
9087 longjmp handler.
9088 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9089 (arm_linux_init_abi): Set up longjmp description in tdep.
9090 * armnbsd-nat.c (get_longjmp_target): Delete.
9091 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9092 description in tdep.
9093 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9094 (get_longjmp_target): Delete declaration.
9095 (GET_LONGJMP_TARGET): Delete.
9096 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9097 (GET_LONGJMP_TARGET): Delete.
9098
57bc8964
KB
90992002-02-17 Kevin Buettner <kevinb@redhat.com>
9100
9101 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9102 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9103 of ``current_gdbarch''.
9104
83d31a92
TT
91052002-02-17 Tom Tromey <tromey@redhat.com>
9106
9107 * cli/cli-cmds.c (compare_strings): New function.
9108 (complete_command): Only print each unique item once.
9109 * completer.h (complete_line): Declare.
9110 * completer.c (complete_line): New function.
9111 (line_completion_function): Use it.
9112
17ef5d92
AC
91132002-02-16 Andrew Cagney <ac131313@redhat.com>
9114
9115 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9116 * gdbarch.h, gdbarch.c: Re-generate.
9117
491b8946
DJ
91182002-02-16 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9121
91222002-02-16 Daniel Jacobowitz <drow@mvista.com>
9123
9124 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9125 * valops.c (value_arg_coerce): Don't take the address of a reference
9126 to convert an argument to a reference.
9127
dfe7f3ac
CF
91282002-02-15 Christopher Faylor <cgf@redhat.com>
9129
9130 * win32-nat.c (get_image_name): New function.
9131 (handle_load_dll): Use get_image_name function.
9132 (get_child_debug_event): Avoid registering debug events until possibly
9133 execed process is started.
9134 (child_create_inferior): Allow invocation via shell so that command
9135 line redirection, etc. works ok.
9136 (_initialize_inftarg): Add new command: "set shell" to control whether
9137 a shell is used to start a process.
9138
1d33e73a
DJ
91392002-02-15 Daniel Jacobowitz <drow@mvista.com>
9140
9141 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9142 instead of find_register_by_number.
9143 (cannot_store_register): Likewise.
9144
48cd0caa
PM
91452002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9146
aaa38bb5 9147 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9148 fprintf_unfiltered (gdb_stderr, ...).
9149
8656e7d8
DJ
91502002-02-15 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * gdbserver/gdbserver.1: Document --attach.
9153
66e810cd
RE
91542002-02-15 Richard Earnshaw <rearnsha@arm.com>
9155
9156 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9157 descriptions.
9158 * arm-tdep.c (arm_default_arm_le_breakpoint)
9159 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9160 (arm_default_thumb_be_breakpoint): New. Initialize them from
9161 traditional breakpoint defines.
9162 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9163 (arm_gdbarch_init): Initialize new breakpoint variables.
9164 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9165 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9166 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9167 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9168 code out to ...
9169 (arm_netbsd_init_abi_common): ... here; new function.
9170 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9171 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9172 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9173 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9174
97e03143
RE
91752002-02-15 Richard Earnshaw <rearnsha@arm.com>
9176
9177 * arm-tdep.h (enum arm_abi): New enum.
9178 (struct gdbarch_tdep): New structure.
9179 (LOWEST_PC): Provide a default.
9180 (arm_gdbarch_register_os_abi): Declare new function.
9181 * arm-tdep.c (arm_abi_names): New array.
9182 (process_note_abi_tag_sections): New function.
9183 (get_elfosabi): New function.
9184 (arm_gdbarch_register_os_abi): New function.
9185 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9186 support for that ABI has been built in, then call the appropriate
9187 configuration routine. Use gdbarch_num_regs() to get the number
9188 of registers.
9189 (arm_dump_tdep): New function.
9190 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9191 place-holder functions.
9192 (_initialize_arm_tdep): Register them.
9193 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9194
9195 * armnbsd-tdep.c: New file.
9196 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9197 * config/arm/nbsd.mt (TDEPFILES): Add it.
9198 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9199
9200 * armnbsd-nat.c: Include regcache.h.
9201 * Makefile.in (armnbsd-nat.o): Update dependency list.
9202
9203 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9204
ad68be46
DJ
92052002-02-14 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * gdbserver/Makefile.in: Fix typos in target rules.
9208
003d6d1d
DJ
92092002-02-14 Daniel Jacobowitz <drow@mvista.com>
9210
aaa38bb5 9211 Fix part of PR gdb/267.
003d6d1d
DJ
9212 * linespec.c (find_methods): Handle constructors specially for now.
9213
6b230f1b
CV
92142002-02-14 Corinna Vinschen <vinschen@redhat.com>
9215
9216 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9217 handling.
9218 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9219 standard_coerce_float_to_double().
9220
1ea98d12
CF
92212002-02-14 Christopher Faylor <cgf@redhat.com>
9222
9223 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9224 GDBINIT_FILENAME.
9225
dd47e6fd
EZ
92262002-02-14 Elena Zannoni <ezannoni@redhat.com>
9227
9228 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9229 find_variant_by_name, because it confuses the multiarch
9230 framework. Return NULL if there isn't an architecture with the
9231 user supplied name, instead of forcing a different one without
9232 recording the change with the multiarch machinery.
9233 (find_variant_by_name): Delete.
9234
d7e39b9e
PS
92352002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9236
9237 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9238 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9239
76e42a4f
MH
92402002-02-13 Martin M. Hunt <hunt@redhat.com>
9241
aaa38bb5 9242 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9243 print_frame_info_listing_hook, set current_source_symtab.
9244
0a30fbc4
DJ
92452002-02-14 Daniel Jacobowitz <drow@mvista.com>
9246
9247 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9248 and remove unused $(INCLUDE_DIR).
9249 Add regcache.c to OBS.
9250 Add generated register protocol files to clean target.
9251 Update dependencies for new objects, obsolete old target code.
9252
9253 * gdbserver/linux-low.c: Remove all platform-specific code to
9254 new files. Remove various dead code. Update to use regcache
9255 functionality.
9256 * gdbserver/remote-utils.c (fromhex): Add return statement
9257 to quiet warning.
9258 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9259 constant.
9260 (input_interrupt): Add integer parameter to match prototype
9261 of a signal handler.
9262 (outreg): Use register_data ().
9263 (prepare_resume_reply): Use gdbserver_expedite_regs.
9264 * gdbserver/server.c (main): Dynamically allocate own_buf because
9265 PBUFSIZ is no longer constant. Use registers_to_string () and
9266 registers_from_string ().
9267 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9268 for error (), fatal (), and warning (). Update definition of
9269 PBUFSIZ to use regcache functionality. Add include guard.
9270 * gdbserver/utils.c (fatal): Add missing ``const''.
9271 (warning): New function.
9272
9273 * regformats/regdat.sh: Include "regcache.h" in generated files.
9274 Provide init_registers () function.
9275 * regformats/regdef.h: Add prototype for set_register_cache ().
9276 Add include guard.
9277
9278 * gdbserver/linux-arm-low.c: New file.
9279 * gdbserver/linux-i386-low.c: New file.
9280 * gdbserver/linux-ia64-low.c: New file.
9281 * gdbserver/linux-m68k-low.c: New file.
9282 * gdbserver/linux-mips-low.c: New file.
9283 * gdbserver/linux-ppc-low.c: New file.
9284 * gdbserver/linux-sh-low.c: New file.
9285
9286 * gdbserver/regcache.c: New file.
9287 * gdbserver/regcache.h: New file.
9288
9289 * gdbserver/low-linux.c: Removed obsolete file.
9290
4cc841d0
DJ
92912002-02-14 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9294 * config/i386/linux.mt: Likewise.
9295 * config/ia64/linux.mt: Likewise.
9296 * config/m68k/linux.mh: Likewise.
9297 * config/powerpc/linux.mh: Likewise.
9298 * config/mips/linux.mt: Likewise.
9299
9300 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9301
9302 * config/i386/i386lynx.mh: Mark gdbserver variables
9303 as (currently) obsolete for this target.
9304 * config/i386/nbsd.mt: Likewise.
9305 * config/i386/nbsdelf.mt: Likewise.
9306 * config/m32r/m32r.mt: Likewise.
9307 * config/m68k/m68klynx.mh: Likewise.
9308 * config/m68k/nbsd.mt: Likewise.
9309 * config/m68k/sun3os4.mh: Likewise.
9310 * config/mips/vr5000.mt: Likewise.
9311 * config/ns32k/nbsd.mt: Likewise.
9312 * config/pa/hppabsd.mh: Likewise.
9313 * config/pa/hppaosf.mh: Likewise.
9314 * config/powerpc/nbsd.mt: Likewise.
9315 * config/rs6000/rs6000lynx.mh: Likewise.
9316 * config/s390/s390.mt: Likewise.
9317 * config/s390/s390x.mt: Likewise.
9318 * config/sparc/sparclynx.mh: Likewise.
9319 * config/sparc/sun4os4.mh: Likewise.
9320 * config/i386/x86-64linux.mt: Likewise.
9321 * config/sparc/linux.mh: Likewise.
9322
a85f51e7
DJ
93232002-02-14 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * configure.tgt: Configure gdbserver only for known working
9326 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9327 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9328 SUBDIRS if it is configured. Update comment for ${nativefile}.
9329 * configure: Regenerated.
9330
65554fef
MS
93312002-02-13 Michael Snyder <msnyder@redhat.com>
9332
670a52db
MS
9333 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9334
6dbdc4a3
MS
9335 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9336 (default_gcore_mach): Just return 0, work around a problem in bfd.
9337 (default_gcore_target): OK to return NULL if exec_bfd is null.
9338 (make_mem_sec): Use a cast, avoid a warning.
9339
9340 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9341 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9342 sizeof (host pointer) != sizeof (target pointer)).
9343 (procfs_make_note_section): Avoid overflow in psargs string.
9344
aaa38bb5 9345 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9346 implementation return an error.
9347
93482002-02-13 Rodney Brown <rbrown64@csc.com.au>
9349
9350 * procfs.c (procfs_make_note_section): Provide a default definition
9351 (for alpha-dec-osf4.0f). Fix typos.
9352
1e4d76e7
EZ
93532002-02-13 Elena Zannoni <ezannoni@redhat.com>
9354
9355 * linux-proc.c: Add include of regcache.h.
9356 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9357
b6d1a1d5
AC
93582002-02-13 Andrew Cagney <ac131313@redhat.com>
9359
9360 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9361 * memattr.c (create_mem_region): Disallow useless empty region.
9362 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9363 non-overlapping.
b6d1a1d5 9364
6c6ea35e
MC
93652002-02-13 Michael Chastain <mec@shout.net>
9366
9367 * defs.h: Kill CONST_PTR.
9368 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9369 * c-lang.c (c_builtin_types): Likewise.
9370 * ch-lang.c (ch_builtin_types): Likewise.
9371 * f-lang.c (f_builtin_types): Likewise.
9372 * language.c (unknown_builtin_types): Likewise.
9373 * m2-lang.c (m2_builtin_types): Likewise.
9374 * p-lang.c (pascal_builtin_types): Likewise.
9375 * scm-lang.c (c_builtin_types): Likewise.
9376
3e0b0f48
KS
93772002-02-13 Keith Seitz <keiths@redhat.com>
9378
9379 * arm-tdep.h (arm_get_next_pc): Add declaration.
9380
67255d04
RE
93812002-02-13 Richard Earnshaw <rearnsha@arm.com>
9382
9383 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9384 with other related struct-returning functions.
9385 (arm_extract_struct_value_address): New function.
9386 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9387 initialize float_format, double_format and long_double_format as
9388 appropriate to the endianness of the target.
9389 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9390 (arm_use_struct_convention): Delete declaration.
9391 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9392
079777f6
KS
93932002-02-13 Keith Seitz <keiths@redhat.com>
9394
9395 * defs.h (core_addr_to_string_nz): New function.
9396
34588f23
MK
93972002-02-13 Mark Kettenis <kettenis@gnu.org>
9398
9399 Apply missing bits of 2002-01-15 patch.
9400 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9401 (fill_fpregset): Use i387_fill_fsave.
9402
49b563f9
KS
94032002-02-12 Keith Seitz <keiths@redhat.com>
9404
49b563f9
KS
9405 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9406 (core_addr_to_string_nz): New function.
9407
aeb98c60
RE
94082002-02-11 Richard Earnshaw <rearnsha@arm.com>
9409
9410 * arm-linux-nat.c: Really include arm-tdep.h.
9411 * config/arm/tm-linux.h (struct type, struct value): Declare.
9412
65554fef
MS
94132002-02-11 Michael Snyder <msnyder@redhat.com>
9414
9415 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9416 (gcore section): Ifdef for Solaris and Unixware only.
9417 (procfs_do_thread_registers): Unixware needs one lwpstatus
9418 per thread (not one prstatus or pstatus).
9419 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9420 not over all gdb threads. For unixware, call elfcore_write_pstatus
9421 once before iterating over threads.
9422
34e8f22d
RE
94232002-02-11 Richard Earnshaw <rearnsha@arm.com>
9424
9425 * arm-tdep.h: New file.
9426 * arm-tdep.c: Include arm-tdep.h.
9427 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9428 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9429 (arm_print_float_info, arm_register_type, convert_to_extended)
9430 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9431 (arm_extract_return_value, arm_register_name): Make static.
9432 (arm_software_single_step): Similarly. Fix types in declaration.
9433 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9434 (arm_store_return_value, arm_store_struct_return): New functions.
9435 (arm_gdbarch_init): Register the above functions. Also register
9436 call_dummy_start_offset, sizeof_call_dummy_words,
9437 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9438 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9439 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9440 prologue_cache.saved_regs here, rather than ...
9441 (_initialize_arm_tdep): ... here.
9442 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9443 declarations.
9444 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9445 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9446 (arm_print_float_info, arm_register_type, convert_to_extended)
9447 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9448 (arm_extract_return_value, arm_register_name): Delete declarations.
9449 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9450 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9451 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9452 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9453 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9454 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9455 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9456 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9457 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9458 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9459 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9460 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9461 interface.
9462 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9463 * remote-rdi.c remote-rdp.c: Likewise.
9464 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9465 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9466 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9467 definition.
9468
9469 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9470 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9471 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9472 from non-ARM_ prefixed definitions.
9473 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9474 all uses of above.
9475 * remote-rdi.c remote-rdp.c: Likewise.
9476 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9477
148754e5
RE
94782002-02-11 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * arm-tdep.c (arm_frameless_function_invocation)
9481 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9482 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9483 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9484 (arm_pop_frame, arm_get_next_pc): Make static.
9485 (arm_gdbarch_init): Register above in gdbarch structure.
9486 (arm_read_fp): Renamed from arm_target_read_fp.
9487 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9488 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9489 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9490 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9491 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9492 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9493 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9494 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9495 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9496 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9497 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9498
434d2d4f
DJ
94992002-02-10 Daniel Jacobowitz <drow@mvista.com>
9500
9501 * symtab.c (compare_search_syms): New function.
9502 (sort_search_symbols): New function.
9503 (search_symbols): Sort symbols after searching rather than
9504 before.
9505
55241689
AC
95062002-02-10 Andrew Cagney <ac131313@redhat.com>
9507
9508 * NEWS: Linux -> GNU/Linux.
9509
028c194b
AC
95102002-02-10 Andrew Cagney <ac131313@redhat.com>
9511
9512 * gdbarch.sh: For for level one methods, disallow a definition
9513 when partially multi-arched. Add comments explaining rationale.
9514 * gdbarch.h: Re-generate.
9515
6acf50cd
AC
95162002-02-10 Andrew Cagney <ac131313@redhat.com>
9517
9518 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9519 multi-arch partial.
aaa38bb5 9520
50248794
AC
95212002-02-10 Andrew Cagney <ac131313@redhat.com>
9522
9523 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9524 field. Use diff -u.
9525 * gdbarch.c: Re-generate.
9526
c30e0066
AC
95272002-02-10 Andrew Cagney <ac131313@redhat.com>
9528
9b56c5f3 9529 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9530 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9531 partial.
9532
6e6d6484
AC
95332002-02-10 Andrew Cagney <ac131313@redhat.com>
9534
9535 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9536 multi-arch partial.
9537 (PUSH_ARGUMENTS): Switch to using predefault.
9538 * gdbarch.c: Regenerate.
9539
c203844d
AC
95402002-02-10 Andrew Cagney <ac131313@redhat.com>
9541
9542 * valops.c (PUSH_ARGUMENTS): Delete definition.
9543 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9544 partial. Default to default_push_arguments.
9545 * gdbarch.h, gdbarch.c: Regenerate.
9546
b5a2688f
AC
95472002-02-09 Andrew Cagney <ac131313@redhat.com>
9548
9549 * defs.h (throw_exception): Rename return_to_top_level. Update
9550 comments.
9551 * utils.c (error_stream, internal_verror, quit): Ditto.
9552 * top.c (throw_exception, catcher): Ditto.
9553 * sparclet-rom.c (sparclet_load): Ditto.
9554 * remote.c (interrupt_query, minitelnet): Ditto.
9555 * remote-sds.c (interrupt_query): Ditto.
9556 * remote-mips.c (mips_error, mips_kill): Ditto.
9557 * ocd.c (interrupt_query): Ditto.
9558 * monitor.c (monitor_interrupt_query): Ditto.
9559 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9560 * target.h: Update comment.
aaa38bb5 9561
b5a2688f 9562 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9563
2fa5c1e0
AC
95642002-02-09 Andrew Cagney <ac131313@redhat.com>
9565
9566 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9567 default_double_format.
9568 * gdbarch.h, gdbarch.c: Re-generate.
9569 * findvar.c (floatformat_unknown): Delete variable definition.
9570 * doublest.h (floatformat_unknown): Delete variable declaration.
9571
da966255
JB
95722002-02-09 Jim Blandy <jimb@redhat.com>
9573
9574 * stabsread.c (read_type): Add code to parse Sun's syntax for
9575 prototyped function types.
9576
123a4891
AC
95772002-02-09 Andrew Cagney <ac131313@redhat.com>
9578
9579 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9580 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9581
fb39c8f3
PS
95822002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9583
9584 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9585 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9586 now _initialize_xcoffsolib gets called again and overrides the
9587 commands from solib.c in a native configuration.
9588
0b87a11d
MK
95892002-02-09 Mark Kettenis <kettenis@gnu.org>
9590
9591 * doublest.c (store_typed_floating): Don't try to return a value.
9592 Fixes PR gdb/290.
9593
bdc2fc72
JB
95942002-02-08 Jim Blandy <jimb@redhat.com>
9595
9596 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9597 is prototyped and has no arguments, print its argument list as
9598 `(void)'.
9599
da69bbcf
CD
96002002-02-08 Chris Demetriou <cgd@broadcom.com>
9601
9602 * MAINTAINERS (write-after-approval): Add myself.
9603 (paper-trail): I've escaped!
aaa38bb5 9604
b69571f5
CF
96052002-02-08 Christopher Faylor <cgf@redhat.com>
9606
9607 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9608 changes.
9609 (_initialize_check_for_gdb_ini): Ditto.
9610
f6871398
MH
96112002-02-08 Martin M. Hunt <hunt@redhat.com>
9612
9613 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9614 xaprintf -> xasprintf.
9615
4e52d31c
PM
96162002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9617
9618 * win32-nat.c: Remove use of printf and sprintf functions.
9619
39bbf761
RE
96202002-02-08 Richard Earnshaw <rearnsha@arm.com>
9621
9622 * arm-tdep.c (arm_frame_chain_valid): Make static.
9623 (arm_push_arguments): Likewise.
9624 (arm_gdbarch_init): New function.
9625 (_initialize_arm_tdep): Call it.
9626 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9627 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9628 (FRAME_CHAIN_VALID): Delete.
9629 (arm_frame_chain_valid): Delete declaration.
9630 (PUSH_ARGUMENTS): Delete.
9631 (arm_push_arguments): Delete declaration.
9632 (CALL_DUMMY_P): Delete.
9633
9c9532c9
CV
96342002-02-08 Andrew Cagney <ac131313@redhat.com>
9635 Corinna Vinschen <vinschen@redhat.com>
9636
9637 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9638 on builtin float types.
9639
4e8f7a8b
DJ
96402002-02-08 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * utils.c: Include <curses.h> before "bfd.h".
9643 * tui/tui-hooks.c: Likewise.
9644 * tui/tui.c: Likewise.
9645 * tui/tuiCommand.c: Likewise.
9646 * tui/tuiData.c: Likewise.
9647 * tui/tuiDataWin.c: Likewise.
9648 * tui/tuiDisassem.c: Likewise.
9649 * tui/tuiGeneralWin.c: Likewise.
9650 * tui/tuiIO.c: Likewise.
9651 * tui/tuiLayout.c: Likewise.
9652 * tui/tuiRegs.c: Likewise.
9653 * tui/tuiSource.c: Likewise.
9654 * tui/tuiSourceWin.c: Likewise.
9655 * tui/tuiStack.c: Likewise.
9656 * tui/tuiWin.c: Likewise.
9657
cd4bffcf
EZ
96582002-02-07 Elena Zannoni <ezannoni@redhat.com>
9659
9660 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9661 to include space for pseudoregs as well. Update loops accordingly.
9662 (sh_fp_frame_init_saved_regs): Ditto.
9663 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9664
26806ce2
AC
96652002-02-07 Andrew Cagney <ac131313@redhat.com>
9666
9667 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9668 Add Richard Earnshaw to Arm maintainers.
9669
97fdab62
AC
96702002-02-07 Andrew Cagney <ac131313@redhat.com>
9671
a6b98203
AC
9672 * defs.h (warning_begin): Delete declaration.
9673
97fdab62
AC
9674 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9675 Delete macro.
9676
78b29b40
MS
96772002-02-07 Michael Snyder <msnyder@redhat.com>
9678
aaa38bb5 9679 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9680 Logic bug, remove misplaced else.
9681
d8849953
KD
96822002-02-07 Klee Dienes <klee@apple.com>
9683
9684 * fork-inferior.c (fork_inferior): Add '!' to the list of
9685 characters that need to be quoted when building a string for the
9686 shell. Quote '!' specifically with a backslash, since CSH chokes
9687 when trying to evaluate "str!str".
aaa38bb5 9688
095778a0
NC
96892002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9690
9691 * rdi-share/host.h: Only provide a typedef for bool if it is not
9692 defined.
9693
1900040c
MS
96942002-02-04 Michael Snyder <msnyder@redhat.com>
9695
9696 * breakpoint.h (enum bptype): Add new overlay event bp type.
9697 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9698
1900040c
MS
9699 * breakpoint.c (create_internal_breakpoint): New function.
9700 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9701 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9702 (create_thread_event_breakpoint): Ditto.
9703 (create_solib_event_breakpoint): Ditto.
9704 (create_overlay_event_breakpoint): New function.
9705 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9706 (update_breakpoints_after_exec): Delete and re-initialize
9707 overlay event breakpoints after an exec. Add FIXME comment
9708 about longjmp breakpoint.
9709 (print_it_typical): Ignore overlay event breakpoints.
9710 (print_one_breakpoint): Ditto.
9711 (mention): Ditto.
9712 (bpstat_what): Do not stop for overlay event breakpoints.
9713 (delete_breakpoint): Don't delete overlay event breakpoints.
9714 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9715 (breakpoint_re_set): Re-create overlay event breakpoint.
9716
9717 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9718 (overlay_manual_command): Disable overlay breakpoints.
9719 (overlay_off_command): Disable overlay breakpoints.
9720
082fc60d
RE
97212002-02-06 Richard Earnshaw <rearnsha@arm.com>
9722
9723 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9724 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9725 to here from config/tm-arm.h.
9726 (coff_sym_is_thumb): Make static.
9727 (arm_elf_make_msymbol_special): New function.
9728 (arm_coff_make_msymbol_special): New function.
9729 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9730 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9731 (coff_sym_is_thumb): Delete declaration.
9732 (arm_elf_make_msymbol_special): Declare.
9733 (arm_coff_make_msymbol_special): Declare.
9734 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9735 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9736
039c5766
RE
97372002-02-06 Richard Earnshaw <rearnsha@arm.com>
9738
9739 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9740
97412002-02-06 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9744 * gdbarch.c gdbarch.h: Regenerate.
9745 * arch-utils.c (default_print_float_info): New function.
9746 * arch-utils.h (default_print_float_info): Prototype it.
9747 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9748 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9749 (PRINT_FLOAT_INFO): Document it.
9750
9751 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9752 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9753 (PRINT_FLOAT_INFO): Define.
9754
58fa08f0
PM
97552002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9756
aaa38bb5 9757 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9758 Add typecast to sprintf argument to suppress a warning.
9759
7393af7c
PM
97602002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9761
58fa08f0 9762 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9763 to allow easier handling of pass state.
9764 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9765 that gives exception name and address.
9766 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9767 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9768 exceptions added.
aaa38bb5
AJ
9769 (child_continue): Correctly report continue_status.
9770 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9771 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9772 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9773 the exception should be passed to debuggee or not.
9774
6af4589c
MS
97752002-02-05 Michael Snyder <msnyder@redhat.com>
9776
9777 * regcache.c (fetch_register): Call target_fetch_register
9778 only if we don't call FETCH_PSEUDO_REGISTER.
9779 (store_register): Call target_store_register only if we
9780 don't call STORE_PSEUDO_REGISTER.
9781
a2cf933a
EZ
97822002-02-05 Elena Zannoni <ezannoni@redhat.com>
9783
9784 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9785 ELF_MAKE_MSYMBOL_SPECIAL.
9786 * gdbarch.c, gdbarch.h: Regenerate.
9787 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9788 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9789 * elfread.c (elf_symtab_read): Compile use of
9790 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9791 multiarched.
9792 * coffread.c (coff_symtab_read): Ditto, for
9793 COFF_MAKE_MSYMBOL_SPECIAL.
9794
6bb7be43
JB
97952002-02-05 Jim Blandy <jimb@redhat.com>
9796
9797 * solib-svr4.c (svr4_truncate_ptr): New function.
9798 (svr4_relocate_section_addresses): Do the address arithmetic with
9799 the appropriate truncation for target addresses, even when
9800 CORE_ADDR is larger than a target address.
9801
e18651ec
DJ
98022002-02-05 Daniel Jacobowitz <drow@mvista.com>
9803
9804 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9805 to (int *).
9806
6b2725be
DJ
98072002-02-05 Daniel Jacobowitz <drow@mvista.com>
9808
9809 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9810 code.
9811
fca9e603
DJ
98122002-02-05 Daniel Jacobowitz <drow@mvista.com>
9813
9814 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9815
6c537a52
DJ
98162002-02-05 Daniel Jacobowitz <drow@mvista.com>
9817
9818 * gdbserver/linux-low.c: Remove unused include files.
9819
d844cde6
DJ
98202002-02-05 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9823 (read_inferior_memory): Use it.
9824 (write_inferior_memory): Likewise.
9825
d07c63e7
DJ
98262002-02-05 Daniel Jacobowitz <drow@mvista.com>
9827
9828 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9829 grubbing through sys_errlist.
9830
da6d8c04
DJ
98312002-02-05 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9834
5b421780
PM
98352002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9836 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9837
9f60d481
AC
98382002-02-04 Andrew Cagney <ac131313@redhat.com>
9839
9840 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9841 (do_sfunc, set_cmd_sfunc): New functions.
9842
9843 * command.h (struct cmd_list_element): Add field func.
9844 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9845 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9846 * cli/cli-decode.h: Ditto.
9847
9848 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9849 (help_all, help_cmd_list): Ditto.
9850 (find_cmd, complete_on_cmdlist): Ditto.
9851 * top.c (execute_command): Ditto.
9852
9853 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9854 function.sfunc.
9855
9856 * infcmd.c (notice_args_read): Fix function signature.
9857
9858 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9859 * cli/cli-decode.c (add_set_cmd): Ditto.
9860 * utils.c (initialize_utils): Ditto.
9861 * maint.c (_initialize_maint_cmds): Ditto.
9862 * infrun.c (_initialize_infrun): Ditto.
9863 * demangle.c (_initialize_demangler): Ditto.
9864 * remote.c (add_packet_config_cmd): Ditto.
9865 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9866 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9867 * proc-api.c (_initialize_proc_api): Ditto.
9868 * kod.c (_initialize_kod): Ditto.
9869 * valprint.c (_initialize_valprint): Ditto.
9870 * top.c (init_main): Ditto.
9871 * infcmd.c (_initialize_infcmd): Ditto.
9872 * corefile.c (_initialize_core): Ditto.
9873 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9874 * arch-utils.c (initialize_current_architecture): Ditto.
9875 (_initialize_gdbarch_utils): Ditto.
9876 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9877
9878 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9879 * wince.c (_initialize_inftarg): Ditto.
9880 * symfile.c (_initialize_symfile): Ditto.
9881 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9882 * language.c (_initialize_language): Ditto.
9883 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9884
f9ba0717
MS
98852002-02-04 Michael Snyder <msnyder@redhat.com>
9886
9887 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9888
0c74b2a7
DJ
98892002-02-04 Daniel Jacobowitz <drow@mvista.com>
9890
9891 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9892 Add rules for building the register data files.
9893
c638789f
DJ
98942002-02-04 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * regformats/regdat.sh: Add braces to the definition of
9897 expedite_regs_${arch}.
9898
db253027
DJ
98992002-02-04 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * regformats/regdef.h (struct reg): Add comment describing the
9902 requirements for offset and size fields.
9903
206be19c
AS
99042002-02-04 Andreas Schwab <schwab@suse.de>
9905
9906 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9907 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9908
181c1381
RE
99092002-02-04 Richard Earnshaw <rearnsha@arm.com>
9910
9911 * gdbarch.sh (copyright): Update years in generated header.
9912 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9913 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9914 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9915 * dbxread.c: Likewise.
9916 * dwarfread.c: Likewise.
9917 * elfread.c: Likewise.
9918 * somread.c: Likewise.
9919
9920 * arm-tdep.c (arm_smash_text_address): New function.
9921 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9922
fa4ba8da
PM
99232002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9924
9925 Add support for hardware watchpoints on win32 native.
aaa38bb5 9926 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9927 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9928 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9929 of debug registers.
9930 (debug_registers_changed): New variable. Reflects when debug registers
9931 are changed and need to be written to inferior.
aaa38bb5 9932 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9933 was set, used when new threads are created.
9934 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9935 i386-nat code.
9936 (thread_rec): Set dr array if id is the thread of current_event .
9937 (child_continue, child_resume): Change the debug registers for all
9938 threads if debug_registers_changed.
9939 (child_add_thread): Change the debug registers if debug_registers_used.
9940 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9941 Link nm.h to new nm-cygwin.h file.
9942 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9943 of hardware registers.
9944
a73c86fb
AC
99452002-02-03 Andrew Cagney <ac131313@redhat.com>
9946
9947 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9948 Restore behavour broken by 2002-01-20 Andrew Cagney
9949 <ac131313@redhat.com> IEEE_FLOAT removal.
9950
acf5ed49
DJ
99512002-02-03 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * c-valprint.c (c_val_print): Pass a proper valaddr to
9954 cp_print_class_method.
9955 * valops.c (search_struct_method): If there is only one method
9956 and args is NULL, return that method.
9957
493d28d5
DJ
99582002-02-03 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9961 accessing tag_name directly.
9962
7495dfdb
DJ
99632002-02-03 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9966 of accessing tag_name directly.
9967
dd6bda65
DJ
99682002-02-03 Daniel Jacobowitz <drow@mvista.com>
9969
9970 PR gdb/280
9971 * gdbtypes.c (replace_type): New function.
9972 * gdbtypes.h (replace_type): Add prototype.
9973 * stabsread.c (read_type): Use replace_type.
9974
88fe217c
RE
99752002-02-03 Richard Earnshaw <rearnsha@arm.com>
9976
9977 * Makefile.in (memattr.o): Add missing dependencies rule.
9978
e5d66720
PS
99792002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9980
9981 * breakpoint.c (break_at_finish_command): Really export.
9982 (break_at_finish_at_depth_command): Ditto.
9983 (tbreak_at_finish_command): Ditto.
9984 * hppa-tdep.c: Include completer.h.
9985 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9986 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9987
fffee0be
AC
99882002-02-01 Andrew Cagney <ac131313@redhat.com>
9989
9990 * utils.c (do_write): New function.
9991 (error_stream): Rewrite combining the code from error_begin and
9992 verror.
9993 (verror): Rewrite using error_stream.
9994 (error_begin): Delete function.
9995
255e7dbf
AC
99962002-02-01 Andrew Cagney <ac131313@redhat.com>
9997
9998 * utils.c (error_begin): Make static.
9999 * defs.h (error_begin): Delete declaration.
10000
10001 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10002 (decode_line_1): Use cplusplus_error instead of error_begin,
10003 cplusplus_hint and return_to_top_level.
10004 * coffread.c (coff_symfile_read): Use error instead of error_begin
10005 and return_to_top_level.
10006 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10007
ddfe3c15
AC
100082002-02-01 Andrew Cagney <ac131313@redhat.com>
10009
10010 * language.h (type_error, range_error): Make string parameter
10011 constant.
10012 * language.c (warning_pre_print): Delete extern declaration.
10013 * dwarfread.c (warning_pre_print): Ditto.
10014 * language.c (type_error, range_error): Rewrite to use verror and
10015 vwarning instead of warning_begin.
10016
03ac34d5
MS
100172002-02-01 Michael Snyder <msnyder@redhat.com>
10018
261c4ca2
MS
10019 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10020 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10021
e00d1dc8
AC
100222002-02-01 Andrew Cagney <ac131313@redhat.com>
10023
10024 * command.h (NO_FUNCTION): Delete macro.
10025 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10026 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10027 * tracepoint.c (_initialize_tracepoint): Ditto.
10028 * cli/cli-decode.c (add_set_cmd): Ditto.
10029 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10030
76b79d6e
DJ
100312002-02-01 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10034 Update ``this'' pointer when calling virtual functions.
10035
799f9e91
MS
100362002-02-01 Michael Snyder <msnyder@redhat.com>
10037
c7bd442c 10038 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10039 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10040
3cf384d4
DJ
100412002-02-01 Daniel Jacobowitz <drow@mvista.com>
10042
10043 * regformats/reg-arm.dat: New file.
10044 * regformats/reg-i386.dat: New file.
10045 * regformats/reg-ia64.dat: New file.
10046 * regformats/reg-m68k.dat: New file.
10047 * regformats/reg-mips.dat: New file.
10048 * regformats/reg-ppc.dat: New file.
10049 * regformats/reg-sh.dat: New file.
10050 * regformats/regdef.h: New file.
10051 * regformats/regdat.sh: New file.
10052
0defa245
RE
100532002-02-01 Richard Earnshaw <reanrsha@arm.com>
10054
10055 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10056 (arm_frame_args_address, arm_frame_locals_address): New functions.
10057 (arm_frame_num_args): New function.
10058 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10059 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10060 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10061
405f26e6
MS
100622002-01-31 Michael Snyder <msnyder@redhat.com>
10063
502fd408
MS
10064 * breakpoint.c (break_at_finish_command): Export.
10065 (break_at_finish_at_depth_command): Export.
10066 (tbreak_at_finish_command): Export.
10067 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10068 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10069 "tbreak" commands, which are HPPA specific.
10070
7d35e135
MS
10071 * printcmd.c (disassemble_command): Remove an ancient
10072 artifact of an old merge.
10073
aaa38bb5 10074 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10075 Define enum constant values for overlay mode.
10076 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10077 (overlay_is_mapped, overlay_auto_command,
10078 overlay_manual_command): Ditto.
d874f1e2 10079
aaa38bb5
AJ
10080 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10081 breakpoint_here_p, breakpoint_inserted_here_p,
10082 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10083 describe_other_breakpoints, check_duplicates, clear_command):
10084 Coding standard fixes.
10085
8add0441 10086 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10087 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10088 code: check bfd SEC_READONLY flag for section.
10089
e351066e
AC
100902002-01-31 Andrew Cagney <ac131313@redhat.com>
10091
7d35e135 10092 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10093
8a48e967
DJ
100942002-01-30 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10097 data symbols, since we search based on textlow and texthigh.
10098 (find_pc_sect_symtab): Likewise.
10099
f5a96129
AC
101002002-01-30 Andrew Cagney <ac131313@redhat.com>
10101
10102 * defs.h (vwarning): Declare.
f5a96129
AC
10103 * utils.c (vwarning): New function.
10104 (warning): Call vwarning.
10105 (warning_begin): Delete function.
10106
10107 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10108 the warning message.
10109 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10110 warning_begin.
10111
cefd4ef5
MS
101122002-01-30 Michael Snyder <msnyder@redhat.com>
10113
1a703748
MS
10114 * NEWS: Mention "set trust-readonly-sections" command.
10115 Mention generate-core-file command.
cefd4ef5 10116
3a11626d
MS
101172002-01-15 Michael Snyder <msnyder@redhat.com>
10118
10119 * target.c: New command, "set trust-readonly-sections on".
10120 (do_xfer_memory): Honor the suggestion to trust readonly sections
10121 by reading them from the object file instead of from the target.
10122 (initialize_targets): Register command "set trust-readonly-sections".
10123
d1c7e53b
AC
101242002-01-29 Andrew Cagney <ac131313@redhat.com>
10125
10126 * parse.c (target_map_name_to_register): Simplify, search regs and
10127 pseudo-regs using a single loop.
10128
e2c9a72c
AC
101292002-01-30 Andrew Cagney <ac131313@redhat.com>
10130
10131 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10132
69824b4e
MK
101332002-01-15 Rodney Brown <rbrown64@csc.com.au>
10134
10135 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10136 * config/i386/i386v42mp.mh: Add i387-nat.o .
10137 * i386v4-nat.c: Include i387-nat.h.
10138 (supply_fpregset): Use i387_supply_fsave.
10139 (fill_fpregset): Use i387_fill_fsave.
10140
6eb69eab
RE
101412002-01-30 Richard Earnshaw <rearnsha@arm.com>
10142
10143 * arm-tdep.c (arm_call_dummy_words): Define.
10144 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10145 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10146 (CALL_DUMMY_WORDS): Define.
10147 (arm_call_dummy_words): Declare.
10148 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10149 (arm_linux_call_dummy_words): Declare.
10150
9852326a
AS
101512002-01-30 Andreas Schwab <schwab@suse.de>
10152
10153 * m68klinux-nat.c: Fix last change to use regcache_collect
10154 instead of referencing registers[] directly.
10155
977a3030
AC
101562002-01-29 Andrew Cagney <ac131313@redhat.com>
10157
10158 * parse.c (target_map_name_to_register): Delete code wrapped in
10159 #ifdef REGISTER_NAME_ALIAS_HOOK.
10160
2076c72b
MS
101612002-01-28 Michael Snyder <msnyder@redhat.com>
10162
10163 * regcache.c (legacy_read_register_gen): Need to be able to
10164 read pseudo-register as well as real register.
10165 (legacy_write_register_gen): Ditto.
10166
8fcc723b
AC
101672002-01-28 Andrew Cagney <ac131313@redhat.com>
10168
10169 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10170 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10171 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10172 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10173 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10174 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10175 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10176 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10177 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10178 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10179 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10180 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10181 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10182 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10183 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10184 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10185 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10186 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10187 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10188 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10189
afe64c1a
AC
101902002-01-28 Andrew Cagney <ac131313@redhat.com>
10191
10192 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10193 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10194 (initialize_current_architecture): Update target_byte_order using
10195 information from BFD.
aaa38bb5 10196 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10197 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10198
75bc7ddf
AC
101992002-01-28 Andrew Cagney <ac131313@redhat.com>
10200
10201 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10202 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10203
10204 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10205 #ifdef INVALID_FLOAT.
10206 * infcmd.c (do_registers_info): Ditto.
10207 * values.c (unpack_double): Ditto. Add comment.
10208
10209 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10210 already commented out.
10211
0280a90a
AS
102122002-01-26 Andreas Schwab <schwab@suse.de>
10213
10214 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10215 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10216 registers and add support for PTRACE_GETREGS.
10217
7072a954
AC
102182002-01-24 Andrew Cagney <ac131313@redhat.com>
10219
10220 GDB 5.1.1 released from 5.1 branch.
10221 * NEWS: Add 5.1.1 news.
10222 * README: Sync with 5.1 branch.
10223
86f902e0
FF
102242002-01-23 Fred Fish <fnf@redhat.com>
10225
10226 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10227 stabstring on initial malloc. Reallocing will copy it for us,
10228 if necessary.
10229
8af51c36
EZ
102302002-01-23 Elena Zannoni <ezannoni@redhat.com>
10231
aaa38bb5 10232 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10233 (HFILES_NO_SRCDIR): Remove hpread.h.
10234 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10235 (hpread.o): Update dependencies.
10236 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10237
10238 * hp-psymtab-read.c: Remove file.
10239 * hp-symtab-read.c: Remove file.
10240 * hpread.h: Remove file.
10241
10242 * hpread.c: Merge all contents of hp-psymtab-read.c,
10243 hp-symtab-read.c and hpread.h into this file, as it was prior to
10244 January 1999.
10245
10246 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10247 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10248 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10249 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10250
dc5cfeb6
EZ
102512002-01-23 Elena Zannoni <ezannoni@redhat.com>
10252
10253 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10254 fill_gregset): Call gdbarch_tdep() just once, assign result to
10255 variable and use that, instead of calling the function several
10256 times.
10257
ea87b71b
AO
102582002-01-24 Alexandre Oliva <aoliva@redhat.com>
10259
10260 * configure.host: Accept sparcv9 as alias for sparc64.
10261 * configure.tgt: Likewise.
10262
13fc0c2f
KB
102632002-01-22 Kevin Buettner <kevinb@redhat.com>
10264
10265 * solib-aix5.c (build_so_list_from_mapfile)
10266 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10267 arguments is not reversed.
10268 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10269 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10270
7bd872fe
EZ
102712002-01-22 Elena Zannoni <ezannoni@redhat.com>
10272
10273 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10274 modified version of obsolete sh_fetch_pseudo_register.
10275 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10276 (sh4_register_read): New function.
10277 (sh_pseudo_register_write): New function. Renamed and modified
10278 version of obsolete sh_store_pseudo_register.
10279 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10280 (sh4_register_write): New function.
10281 (sh_gdbarch_init): Remove setting of gdbarch function
10282 fetch_pseudo_register and store_pseudo_register. Remove setting of
10283 register_convert_to_raw, register_convert_to_virtual,
10284 register_convertible.
10285 (sh_sh4_register_convertible): Delete. No longer needed. All is
10286 taken care by architecture specific functions
10287 register_read/register_write.
10288 (sh_sh4_register_convert_to_virtual): Make static.
10289 (sh_sh4_register_convert_to_raw): Ditto.
10290
069e84fd
AC
102912002-01-22 Andrew Cagney <ac131313@redhat.com>
10292
10293 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10294 (floatformat_is_nan, floatformat_mantissa): Ditto.
10295
10296 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10297 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10298 builtin_type_ieee_double_little,
10299 builtin_type_ieee_double_littlebyte_bigword,
10300 builtin_type_m68881_ext, builtin_type_i960_ext,
10301 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10302 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10303 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10304 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10305
211a4f69
CV
103062002-01-22 Corinna Vinschen <vinschen@redhat.com>
10307
10308 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10309 parameter. Set frameless flag if it exists and depended of
10310 whether the scanned function is frameless or not.
10311 (xstormy16_skip_prologue): If function is frameless, return
10312 result of xstormy16_scan_prologue().
10313 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10314 call.
10315
f81353e4
EZ
103162002-01-21 Elena Zannoni <ezannoni@redhat.com>
10317
10318 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10319 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10320 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10321 sh_sh4_register_byte, sh_sh4_register_raw_size,
10322 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10323 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10324 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10325 sh_store_pseudo_register, sh_do_pseudo_register): Call
10326 gdbarch_tdep() just once, assign result to variable and use that,
10327 instead of calling the function several times.
10328
63c73a17
MK
103292002-01-20 Mark Kettenis <kettenis@gnu.org>
10330
10331 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10332 macros instead of LAST_FPU_CTRL_REGNUM.
10333 (store_register): Likewise.
10334
39ad761d
JB
103352002-01-21 Jim Blandy <jimb@redhat.com>
10336
10337 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10338 is up-to-date before running the program, not just when a program
10339 exits.
10340
3d74b771
FF
103412002-01-21 Fred Fish <fnf@redhat.com>
10342
10343 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10344 when we have found all instructions we are looking for.
10345
966fbf70
RE
103462002-01-21 Richard Earnshaw <rearnsha@arm.com>
10347
10348 * arm-tdep.c (arm_register_name): New function.
10349 (arm_registers_names): Make static.
10350 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10351 (arm_register_name): Declare.
10352 (REGISTER_NAME): Use it.
10353
c3b4394c
RE
103542002-01-21 Richard Earnshaw <rearnsha@arm.com>
10355 Kevin Buettner <kevinb@redhat.com>
10356
10357 Convert arm targets to new FRAME interface.
10358 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10359 (arm_frame_find_save_regs): Delete.
10360 (arm_frame_init_saved_regs): New.
10361 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10362 Allocate extra_info as required. Convert all uses of fsr.regs
10363 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10364 to use extra_info.
10365 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10366 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10367 (check_prologue_cache, save_prologue_cache): Likewise.
10368 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10369 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10370 (FRAME_FIND_SAVED_REGS): Delete.
10371 (arm_frame_find_saved_regs): Delete prototype.
10372 (arm_frame_init_saved_regs): New prototype.
10373 (FRAME_INIT_SAVED_REGS): Define.
10374
61d99182
AC
103752002-01-20 Andrew Cagney <ac131313@redhat.com>
10376
10377 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10378
6aaea291
AC
103792002-01-20 Andrew Cagney <ac131313@redhat.com>
10380
10381 From Jeff Law <law@redhat.com>:
10382 * infttrace.c: Include <sys/pstat.h>.
10383 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10384 exec file if the ttrace equivalent fails.
10385
15f698d2
AC
103862002-01-20 Andrew Cagney <ac131313@redhat.com>
10387
10388 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10389 (closeLogFile): Ditto.
10390
f86ddd7c
MC
103912002-01-20 Michael Chastain <mec@shout.net>
10392
10393 * top.c (print_gdb_version): Bump copyright year to 2002.
10394
904507ce
AC
103952002-01-20 Andrew Cagney <ac131313@redhat.com>
10396
10397 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10398 Zannoni and Eli Zaretskii.
10399
d7f0b9ce
DJ
104002002-01-20 Daniel Jacobowitz <drow@mvista.com>
10401
10402 * buildsym.c: Update copyright years.
10403 * c-typeprint.c: Likewise.
10404 * dwarf2read.c: Likewise.
10405 * f-typeprint.c: Likewise.
10406 * gdbtypes.c: Likewise.
10407 * gdbtypes.h: Likewise.
10408 * hp-symtab-read.c: Likewise.
10409 * hpread.c: Likewise.
10410 * mdebugread.c: Likewise.
10411 * p-typeprint.c: Likewise.
10412
3fd3d7d2
AC
104132002-01-20 Andrew Cagney <ac131313@redhat.com>
10414
10415 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10416 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10417 byte-order selectable.
10418 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10419 * arch-utils.c: Ditto.
10420 (set_endian): Ditto.
10421 (set_endian_from_file): Ditto.
10422 * gdbserver/low-sim.c (create_inferior): Ditto.
10423 * gdbarch.sh: Ditto.
10424 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10425 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10426 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10427 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10428 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10429 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10430 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10431 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10432 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10433 macro definition.
10434 * config/mips/tm-wince.h: Remove #undef of macro
10435 TARGET_BYTE_ORDER_SELECTABLE.
10436 * config/sh/tm-wince.h: Ditto.
10437
b02dede2
DJ
104382002-01-20 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10441 member function fields. Add accessor macro
10442 TYPE_FN_FIELD_ARTIFICIAL.
10443 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10444 * c-typeprint.c (c_type_print_base): Skip artificial member
10445 functions.
10446
c3643761
DJ
104472002-01-20 Daniel Jacobowitz <drow@mvista.com>
10448
10449 * f-typeprint.c: Delete unused function f_type_print_args.
10450 * p-typeprint.c: Delete unused function pascal_type_print_args.
10451
8176bb6d
DJ
104522002-01-20 Daniel Jacobowitz <drow@mvista.com>
10453
10454 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10455 comment. Add ``artificial'' to ``union field_location''.
10456
10457 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10458
10459 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10460 * mdebugread.c (parse_symbol): Likewise.
10461 * stabsread.c (define_symbol): Likewise.
10462 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10463 initializing TYPE_FIELD_BITPOS to n (obsolete).
10464 (hpread_doc_function_type): Likewise.
10465 * hpread.c (hpread_function_type): Likewise.
10466
7fd60527
AC
104672002-01-20 Andrew Cagney <ac131313@redhat.com>
10468
10469 * configure.in (host_makefile_frag): Only require a host makefile
10470 fragment when a native build.
10471 * configure: Re-generate.
10472
c2f05ac9
AC
104732002-01-20 Andrew Cagney <ac131313@redhat.com>
10474
10475 * doublest.h (floatformat_from_type): Declare.
10476 * doublest.c (floatformat_from_type): New function.
10477 (convert_typed_floating): Use.
10478
10479 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10480 call to function floatformat_from_type.
10481
10482 * gdbarch.sh (IEEE_FLOAT): Delete.
10483 * gdbarch.h, gdbarch.c: Re-generate.
10484 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10485 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10486 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10487 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10488 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10489 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10490 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10491 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10492 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10493 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10494 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10495 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10496
10497 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10498 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10499 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10500 * sh-tdep.c (sh_gdbarch_init): Ditto.
10501 * mips-tdep.c (mips_gdbarch_init): Ditto.
10502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10503 * cris-tdep.c (cris_gdbarch_init): Ditto.
10504
abf22e64
AJ
105052002-01-20 Jiri Smid <smid@suse.cz>
10506
10507 * configure.host, configure.tgt: Support x86-64.
10508 * NEWS: Note new target x86-64.
10509
b7c4cbf8
AJ
10510 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10511 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10512 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10513 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10514 x86-64-linux-nat.o): Fix dependencies.
10515
82600034
AC
105162002-01-19 Andrew Cagney <ac131313@redhat.com>
10517
10518 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10519 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10520 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10521 * config/sparc/xm-sun4os4.h: Delete file.
10522 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10523
bbe5c628
AC
105242002-01-19 Andrew Cagney <ac131313@redhat.com>
10525
10526 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10527 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10528 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10529 * config/i386/i386lynx.mh (XM_FILE): Delete.
10530 * config/rs6000/xm-rs6000ly.h: Delete file.
10531 * config/sparc/xm-sparclynx.h: Delete file.
10532 * config/m68k/xm-m68klynx.h: Delete file.
10533 * config/i386/xm-i386lynx.h: Delete file.
10534 * config/xm-lynx.h: Delete file.
10535 * config/djgpp/fnchange.lst: Update.
10536
f8453e34
JT
105372002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10538
10539 * alpha-tdep.c (alpha_register_byte): New function.
10540 (alpha_register_raw_size): Ditto.
10541 (alpha_register_virtual_size): Ditto.
10542 (alpha_skip_prologue_internal): Renamed from
10543 alpha_skip_prologue.
10544 (alpha_skip_prologue): New version that calls
10545 alpha_skip_prologue_internal.
10546 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10547 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10548 second argument from alpha_skip_prologue.
10549 (REGISTER_BYTE): Use alpha_register_byte.
10550 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10551 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10552 (FRAMELESS_FUNCTION_INVOCATION): Use
10553 generic_frameless_function_invocation_not.
10554 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10555 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10556
52d9e613
AC
105572002-01-19 Andrew Cagney <ac131313@redhat.com>
10558
10559 * config/mips/xm-news-mips.h: Delete file.
10560 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10561
10562 * config/m88k/xm-m88k.h: Delete file.
10563 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10564 * config/m88k/xm-delta88v4.h: Ditto.
10565 * config/m88k/xm-delta88.h: Ditto.
10566
10567 * config/alpha/xm-fbsd.h: Delete file.
10568 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10569
10570 * config/sparc/xm-sparc.h: Delete file.
10571 * Makefile.in (xm-sun4os4.h): Delete dependency.
10572 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10573 * config/sparc/xm-sun4os4.h: Ditto.
10574 * config/sparc/xm-linux.h: Ditto.
10575
10576 * config/i386/xm-windows.h: Delete file.
10577
2d1b2124
AC
105782002-01-19 Andrew Cagney <ac131313@redhat.com>
10579
10580 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10581 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10582
ee1f65f0
JT
105832002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10584
10585 * alpha-tdep.c (alpha_call_dummy_words): New.
10586 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10587 (CALL_DUMMY_P): Define.
10588 (CALL_DUMMY_WORDS): Define.
10589 (SIZEOF_CALL_DUMMY_WORDS): Define.
10590
98081e55
PB
105912002-01-19 Per Bothner <per@bothner.com>
10592
10593 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10594 isn't NULL, which can happen with some gcj-3.x-produced code.
10595
0d056799
JT
105962002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10597
10598 * alpha-tdep.c (alpha_register_virtual_type): New function.
10599 (alpha_init_frame_pc_first): Ditto.
10600 (alpha_fix_call_dummy): Ditto.
10601 (alpha_store_struct_return): Ditto.
10602 (alpha_extract_struct_value_address): Ditto.
10603 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10604 alpha_register_virtual_type.
10605 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10606 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10607 alpha_extract_struct_value_address.
10608 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10609 (INIT_FRAME_PC): Use init_frame_pc_noop.
10610 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10611
4604bcad
MK
106122002-01-19 Mark Kettenis <kettenis@gnu.org>
10613
10614 * i386gnu-nat.c: Include "i386-tdep.h".
10615 (fetch_fpregs): Simplify code dealing with uninitialized floating
10616 point states such that it doesn't require FP7_REGNUM.
10617
140f9984
JT
106182002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10619
abf22e64
AJ
10620 * alpha-tdep.c (frame_extra_info): New.
10621 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10622 frame->extra_info.
10623 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10624 (alpha_frame_saved_pc): Use frame->extra_info.
10625 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10626 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10627 (init_extra_frame_info): Rename to...
10628 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10629 (alpha_print_extra_frame_info): New function.
140f9984
JT
10630 (alpha_frame_locals_address): Ditto.
10631 (alpha_frame_args_address): Ditto.
abf22e64 10632 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10633 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10634 alpha_frame_args_address.
abf22e64 10635 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10636 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10637 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10638 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10639 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10640 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10641
d734c450
JT
106422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10643
10644 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10645 (alpha_cannot_fetch_register): Ditto.
10646 (alpha_cannot_store_register): Ditto.
10647 (alpha_register_convertible): Ditto.
10648 (alpha_use_struct_convention): Ditto.
10649 * config/alpha/tm-alpha.h: Update copyright years.
10650 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10651 (INNER_THAN): Use core_addr_lessthan.
10652 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10653 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10654 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10655 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10656 (FRAME_CHAIN): Remove unnecessary cast.
10657
b4ceaee6
AC
106582002-01-18 Andrew Cagney <ac131313@redhat.com>
10659
10660 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10661 obsolete.
10662
0a65a603
AC
106632002-01-18 Andrew Cagney <ac131313@redhat.com>
10664
10665 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10666 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10667 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10668 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10669 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10670 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10671 * x86-64-linux-nat.c: Ditto.
10672
636a6dfc
JT
106732002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10674
abf22e64 10675 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10676 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10677 (REGISTER_NAME): Define.
10678
acceddb6
JT
106792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10680
10681 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10682
ec32e4be
JT
106832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10684
10685 * alpha-tdep.c: Update copyright years.
10686 (alpha_next_pc): New function.
10687 (alpha_software_single_step): Ditto.
10688 * config/alpha/tm-alpha.h: Add prototype for
10689 alpha_software_single_step.
10690
e771a871
JT
106912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10692
10693 * alphabsd-nat.c: Update copyright years.
10694 (fill_gregset): Use regcache_collect.
10695 (fill_fpregset): Likewise.
10696 (fetch_inferior_registers): Only fetch integer registers
10697 if requested to do so.
10698 (store_inferior_registers): Only store integer registers
10699 if requested to do so.
10700
7708fa01
AC
107012002-01-17 Andrew Cagney <ac131313@redhat.com>
10702
10703 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10704 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10705 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10706 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10707 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10708 * config/arm/linux.mh (XDEPFILES): Delete.
10709 * config/arm/nbsd.mh (XDEPFILES): Delete.
10710 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10711 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10712 * config/i386/i386m3.mh (XDEPFILES): Delete.
10713 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10714 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10715 * config/i386/fbsd.mh (XDEPFILES): Delete.
10716 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10717 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10718 * config/i386/i386v4.mh (XDEPFILES): Delete.
10719 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10720 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10721 * config/i386/i386aix.mh (XDEPFILES): Delete.
10722 * config/i386/go32.mh (XDEPFILES): Delete.
10723 * config/i386/cygwin.mh (XDEPFILES): Delete.
10724 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10725 * config/i386/i386mach.mh (XDEPFILES): Delete.
10726 * config/i386/i386v32.mh (XDEPFILES): Delete.
10727 * config/i386/linux.mh (XDEPFILES): Delete.
10728 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10729 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10730 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10731 * config/i386/i386sco.mh (XDEPFILES): Delete.
10732 * config/i386/i386v.mh (XDEPFILES): Delete.
10733 * config/i386/nbsd.mh (XDEPFILES): Delete.
10734 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10735 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10736 * config/i386/symmetry.mh (XDEPFILES): Delete.
10737 * config/i386/obsd.mh (XDEPFILES): Delete.
10738 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10739 * config/ia64/linux.mh (XDEPFILES): Delete.
10740 * config/ia64/aix.mh (XDEPFILES): Delete.
10741 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10742 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10743 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10744 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10745 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10746 * config/m68k/linux.mh (XDEPFILES): Delete.
10747 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10748 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10749 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10750 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10751 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10752 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10753 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10754 * config/m88k/delta88.mh (XDEPFILES): Delete.
10755 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10756 * config/m88k/m88k.mh (XDEPFILES): Delete.
10757 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10758 * config/mips/linux.mh (XDEPFILES): Delete.
10759 * config/mips/irix6.mh (XDEPFILES): Delete.
10760 * config/mips/irix5.mh (XDEPFILES): Delete.
10761 * config/mips/irix4.mh (XDEPFILES): Delete.
10762 * config/mips/irix3.mh (XDEPFILES): Delete.
10763 * config/mips/decstation.mh (XDEPFILES): Delete.
10764 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10765 (NATDEPFILES): Move core-aout.o to here.
10766 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10767 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10768 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10769 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10770 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10771 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10772 * config/pa/hpux11.mh (XDEPFILES): Delete.
10773 * config/powerpc/aix.mh (XDEPFILES): Delete.
10774 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10775 * config/powerpc/linux.mh (XDEPFILES): Delete.
10776 * config/romp/rtbsd.mh: Rename XDEPFILES.
10777 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10778 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10779 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10780 * config/s390/s390.mh (XDEPFILES): Delete.
10781 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10782 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10783 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10784 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10785 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10786 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10787 * config/sparc/linux.mh (XDEPFILES): Delete.
10788 * config/vax/vaxult.mh (XDEPFILES): Delete.
10789 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10790 * Makefile.in (DEPFILES): Remove XDEPFILES.
10791
375fc983
AC
107922002-01-17 Andrew Cagney <ac131313@redhat.com>
10793
10794 * utils.c (internal_verror): Fix comments, default is yes not no.
10795 Update queries to match. Default to quit and dump core.
10796
8926118c
AC
107972002-01-17 Andrew Cagney <ac131313@redhat.com>
10798
10799 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10800 copyright.
10801 * defs.h, event-top.c, gdbcmd.h: Ditto.
10802 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10803 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10804 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10805 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10806 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10807 * mi/mi-main.c:Ditto.
10808
10809 * stack.c, symfile.c: Update copyright.
10810
45b7b345
DJ
108112002-01-17 Daniel Jacobowitz <drow@mvista.com>
10812
db728ff7
DJ
10813 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10814 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10815 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10816 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10817
db728ff7
DJ
108182002-01-17 Daniel Jacobowitz <drow@mvista.com>
10819
10820 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10821 * gdbserver/low-lynx.c (myattach): Likewise.
10822 * gdbserver/low-nbsd.c (myattach): Likewise.
10823 * gdbserver/low-sim.c (myattach): Likewise.
10824 * gdbserver/low-sparc.c (myattach): Likewise.
10825 * gdbserver/low-sun3.c (myattach): Likewise.
10826
10827 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10828
db728ff7 10829 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10830 (main): Handle "--attach".
10831
8de3c354
AC
108322002-01-16 Andrew Cagney <ac131313@redhat.com>
10833
10834 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10835 maintainer.
10836
b0129042
DJ
108372002-01-15 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * c-typeprint.c (is_type_conversion_operator): Add additional
10840 check for non-conversion operators.
10841
ba8679fb 108422002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10843
10844 * linux-proc.c: Add "info proc" command, a la procfs.c.
10845 (read_mapping): New function, abstract and re-use code.
10846 (linux_find_memory_regions): Use new func read_mapping.
10847 (linux_info_proc_cmd): New function, implement "info proc".
10848 (_initialize_linux_proc): Add new command "info proc".
10849
e4f9b4d5
MS
108502002-01-15 Michael Snyder <msnyder@redhat.com>
10851
10852 * symfile.c (generic_load): Use bfd_map_over_sections method
10853 instead of manipulating bfd structure members directly.
10854 (add_section_size_callback): New function, bfd sections callback
10855 used by generic_load.
10856 (load_sections_callback): New function, bfd sections callback
10857 used by generic_load.
10858
08cf96df
EZ
108592002-01-15 Elena Zannoni <ezannoni@redhat.com>
10860
abf22e64 10861 [Based on work by Jim Blandy]
08cf96df
EZ
10862 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10863 (builtin_type_vec128): Export.
10864 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10865 types.
10866 (builtin_type_vec128): New builtin type for 128 bit vector
10867 registers.
10868 (build_gdbtypes): Initialize builtin_type_v16qi and
10869 builtin_type_v8hi. Create the vec128 register builtin type
10870 structure.
10871 (build_builtin_type_vec128): New function.
abf22e64 10872 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10873 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10874 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10875 AltiVec register to new builtin type.
10876
d7242108
DJ
108772001-01-15 Daniel Jacobowitz <drow@mvista.com>
10878
10879 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10880 to make_cv_type.
10881
4ee3352d
AC
108822002-01-14 Andrew Cagney <ac131313@redhat.com>
10883
10884 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10885 CLEAN_UP_REGISTER_VALUE.
10886 * regcache.c (supply_register): Update only call.
10887
f015b2e7
AC
108882002-01-14 Andrew Cagney <ac131313@redhat.com>
10889
10890 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10891 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10892 a29k-*-vxworks* targets as obsolete.
10893
356ae49d
MS
108942002-01-14 Michael Snyder <msnyder@redhat.com>
10895
10896 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10897 until we can resolve portability issues.
10898 * gregset.h: Remove references to fpxregs.
10899 * gcore.c (gcore_command): Initialize note_sec to NULL.
10900
ade8f45e
AC
109012002-01-13 Andrew Cagney <ac131313@redhat.com>
10902
10903 * signals.c (target_signal_to_name): Rewrite. Only use
10904 signals[].name when in bounds and non-NULL.
abf22e64 10905
89c49e7a
AC
109062002-01-13 Andrew Cagney <ac131313@redhat.com>
10907
10908 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10909 * signals.c (target_signal_to_name): Verify that SIG is within the
10910 bounds of the signals array.
10911
4daa9f9f
AC
109122002-01-13 Andrew Cagney <ac131313@redhat.com>
10913
10914 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10915
ba4bbdcb
KS
109162002-01-13 Keith Seitz <keiths@redhat.com>
10917
10918 * stack.c (print_frame_info_base): Print the frame's pc
10919 only if when print_frame_info_listing_hook is not defined.
10920
575bbeb6
KS
109212002-01-13 Keith Seitz <keiths@redhat.com>
10922
10923 * varobj.c (varobj_set_value): Make sure that there were no
10924 errors evaluating the object before attempting to set its
10925 value.
10926 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10927 so this offset adjustment is no longer necessary.
10928 (create_child): Don't set the error flag if the child is
10929 a CPLUS_FAKE_CHILD.
10930 (value_of_child): If value_fetch_lazy fails, return NULL
10931 so that callers will be notified that an error occurred.
10932 (c_value_of_variable): Delay check of variable's validity
10933 until later. We actually want all structs and unions to have
10934 the value "{...}".
10935 Do not return "???" for variables which could not be evaluated.
10936 This error condition must be returned to the caller so that it
10937 can get the error condition from gdb.
10938 (cplus_name_of_child): Adjust index for vptr before figuring
10939 out the name of the child.
10940 (cplus_value_of_child): If a child's (real) parent is not valid,
10941 don't even bother trying to give a value for it. Just return
10942 an error. Change all instances in this function.
10943 (cplus_type_of_child): If our parent is one of the "fake"
10944 parents, we need to get at the type of the real parent, and
10945 derive the child's true type using this information.
10946
b76898ab
AC
109472002-01-13 Andrew Cagney <ac131313@redhat.com>
10948
10949 From 2002-01-09 John Marshall <johnm@falch.net>:
10950 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10951 sources.redhat.com, and tweak some related URLs which had
10952 suffered from linkrot.
10953
b6649e88
AC
109542002-01-13 Andrew Cagney <ac131313@redhat.com>
10955
10956 From Jeff law:
10957 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10958 structures passed in registers.
10959
82cc5033
EZ
109602002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10961
10962 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10963 white space which prevented compilation. Reported by DSK
10964 <dsk@student.unsw.edu.au>.
10965
ba5f2f8a
MS
109662002-01-11 Michael Snyder <msnyder@redhat.com>
10967
fbd35540
MS
10968 * symfile.c (build_section_addr_info_from_section_tab):
10969 Use bfd access method instead of manipulating bfd directly.
10970 (syms_from_objfile): Ditto.
10971 (simple_overlay_update_1): Ditto.
10972 (simple_overlay_update): Ditto.
10973 (generic_load): Ditto.
10974 (overlay_unmapped_address): FIXME comment, bfd access methods.
10975 (sections_overlap): FIXME comment, bfd access methods.
10976 (pc_in_mapped_range): FIXME comment, bfd access methods.
10977 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10978 (section_is_mapped): FIXME comment, bfd access methods.
10979 (section_is_overlay): FIXME comment, bfd access methods.
10980
ba5f2f8a
MS
10981 * symfile.c (generic_load): Whitespace and long line cleanups.
10982 Remove duplicate variable, change several local variables to
10983 more appropriate data types.
10984 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10985
17df2af6
AC
109862002-01-12 Andrew Cagney <ac131313@redhat.com>
10987
10988 From Peter Schauer:
10989 * language.c (longest_local_hex_string_custom): Use phex_nz to
10990 convert NUM to a hex string.
10991
ec920329
EZ
109922002-01-12 Elena Zannoni <ezannoni@redhat.com>
10993
10994 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10995 the function.
538a76d6 10996 Update Copyright year.
ec920329 10997
3abd2e01
AC
109982002-01-12 Andrew Cagney <ac131313@redhat.com>
10999
11000 * language.c (longest_raw_hex_string): Delete unused function.
11001
b21b22e0
PS
110022002-01-11 Petr Sorfa <petrs@caldera.com>
11003
11004 * MAINTAINERS (write-after-approval): Add myself.
11005 * dwarf2read.c (read_tag_string_type): Handling of
11006 DW_AT_byte_size.
11007 (read_tag_string_type): FORTRAN fix to prevent propagation of
11008 first string size.
11009 (set_cu_language): Handling of DW_LANG_Fortran95
11010
747fe712
RE
110112002-01-11 Richard Earnshaw <rearnsha@arm.com>
11012
11013 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11014 GETPID(inferior_ptid).
11015 (store_inferior_registers): Likewise.
11016
f1bea926
JM
110172002-01-10 Jason Merrill <jason@redhat.com>
11018
11019 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11020 Fix DW_OP_minus.
11021
ae940673
AC
110222002-01-10 Andrew Cagney <ac131313@redhat.com>
11023
11024 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11025 and bfd/elf32-sh-nbsd.c.
11026
00546b04
MS
110272002-01-10 Michael Snyder <msnyder@redhat.com>
11028
352ed7b4
MS
11029 * NEWS: Mention --pid and corefile/proc-id behavior change.
11030
c18be923
MS
11031 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11032 * gcore.c: Include cli/cli-decode.h instead of command.h.
11033
00546b04
MS
11034 * main.c (captured_main): Add new command line option "--pid".
11035 If the second command line argument (following the symbol-file)
11036 begins with a digit, try to attach to it before trying to open
11037 it as a corefile.
11038 (print_gdb_help): Document the "--pid" argument.
11039
db60ec62
EZ
110402002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11041
11042 * completer.c (command_completer): New function.
11043
11044 * completer.h <command_completer>: Add prototype.
11045
11046 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11047 completer for the "help" command.
11048
39c22d1a
JM
110492002-01-09 Jason Merrill <jason@redhat.com>
11050
11051 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11052
c564377f
MS
110532002-01-09 Michael Snyder <msnyder@redhat.com>
11054
975aec09
MS
11055 * i386-linux-nat.c (fill_fpxregset): Make global.
11056 (store_fpxregset): Ditto.
11057
db4a10fa
MS
11058 * gregset.h (gdb_fpxregset_t): Define.
11059 (supply_fpxregset): Prototype.
11060 (fill_fpxregset): Prototype.
11061
c564377f
MS
11062 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11063
c3d45d70
RE
110642002-01-09 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11067 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11068 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11069
fcc87af1
AC
110702002-01-09 Andrew Cagney <ac131313@redhat.com>
11071
11072 * MAINTAINERS: Update target maintainer rules so that any
11073 Maintainer can approve a tested patch for a maintenance-only
11074 target.
11075
dd96c05b
RE
110762002-01-09 Richard Earnshaw <rearnsha@arm.com>
11077
d4297db9 11078 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11079
d4297db9 11080 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11081 IN_SIGTRAMP.
11082
145fdc6e
MS
110832002-01-08 Michael Snyder <msnyder@redhat.com>
11084
11085 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11086 real name of the executable, rather than the /proc name.
11087
be4d1333
MS
110882002-01-03 Michael Snyder <msnyder@redhat.com>
11089
11090 Implement a "generate-core-file" command in gdb, save target state.
11091 * gcore.c: New file. Implement new command 'generate-core-file'.
11092 Save a corefile image of the current state of the inferior.
11093 * linux-proc.c: Add linux-specific code for saving corefiles.
11094 * target.h (struct target_ops): Add new target vectors for saving
11095 corefiles; to_find_memory_regions and to_make_corefile_notes.
11096 (target_find_memory_regions): New macro.
11097 (target_make_corefile_notes): New macro.
11098 * target.c (update_current_target): Inherit new target methods.
11099 (dummy_find_memory_regions): New place-holder method.
11100 (dummy_make_corefile_notes): New place-holder method.
11101 (init_dummy_target): Initialize new dummy target vectors.
11102 * exec.c (exec_set_find_memory_regions): New function.
11103 Allow the exec_ops vector for memory regions to be taken over.
11104 (exec_make_note_section): New function, target vector method.
11105 * defs.h (exec_set_find_memory_regions): Export prototype.
11106 * procfs.c (proc_find_memory_regions): New function, corefile method.
11107 (procfs_make_note_section): New function, corefile method.
11108 (init_procfs_ops): Set new target vector pointers.
11109 (find_memory_regions_callback): New function.
11110 (procfs_do_thread_registers): New function.
11111 (procfs_corefile_thread_callback): New function.
11112 * sol-thread.c (sol_find_memory_regions): New function.
11113 (sol_make_note_section): New function.
11114 (init_sol_thread_ops): Initialize new target vectors.
11115 * inftarg.c (inftarg_set_find_memory_regions): New function.
11116 Allow to_find_memory_regions vector to be taken over.
11117 (inftarg_set_make_corefile_notes): New function.
11118 Allow to_make_corefile_notes vector to be taken over.
11119 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11120 interface layer if not target_has_execution (may be a corefile).
11121 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11122 * config/sparc/sun4sol2.mh: Ditto.
11123 * config/alpha/alpha-linux.mh: Ditto.
11124 * config/arm/linux.mh: Ditto.
11125 * config/i386/x86-64linux.mh: Ditto.
11126 * config/ia64/linux.mh: Ditto.
11127 * config/m68k/linux.mh: Ditto.
11128 * config/mips/linux.mh: Ditto.
11129 * config/powerpc/linux.mh: Ditto.
11130 * config/sparc/linux.mh: Ditto.
11131
c6b92abd
MS
111322002-01-07 Michael Snyder <msnyder@redhat.com>
11133
11134 * arm-linux-nat.c: Remove references to regcache.c internal data
11135 (registers[] and register_valid[]).
11136
4b09dc8c
MS
111372002-01-07 Michael Snyder <msnyder@redhat.com>
11138
abf22e64
AJ
11139 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11140 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11141 symbol file and shlibs.
11142 * Makefile.in: Add rule for linux-proc.o.
11143 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11144 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11145 * config/arm/linux.mh: Ditto.
11146 * config/i386/linux.mh: Ditto.
11147 * config/i386/x86-64linux.mh: Ditto.
11148 * config/ia64/linux.mh: Ditto.
11149 * config/m68k/linux.mh: Ditto.
11150 * config/mips/linux.mh: Ditto.
11151 * config/powerpc/linux.mh: Ditto.
11152 * config/sparc/linux.mh: Ditto.
11153
c25b74ac
PM
111542002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11155
11156 * win32-nat.c: Add i386-tdep.h dependency.
11157
94cd915f
MS
111582002-01-07 Michael Snyder <msnyder@redhat.com>
11159
c7cccb76
MS
11160 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11161 instead of bfd_get_arch_size. Don't bail out just because
11162 there's no exec_bfd.
abf22e64 11163
34c0bd93
MS
11164 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11165 * p-valprint.c (pascal_object_print_value): Ditto.
11166 * somread.c (som_symtab_read): Ditto.
11167 * symfile.c (simple_free_overlay_region_table): Ditto.
11168 * valops.c (value_assign): Ditto.
11169
21c1c920
MS
11170 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11171 use tilde_expand and strerror for opening save-tracepoints file.
11172
5bbd998e
MS
11173 * thread-db.c (thread_db_new_objfile): Indendation fix.
11174
94cd915f
MS
11175 * infptrace.c (GDB_MAX_ALLOCA): New define.
11176 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11177 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11178 can be overridden with whatever value is appropriate to the host).
11179 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11180 alloca to allocate potentially large buffer.
11181 * rs6000-nat.c (child_xfer_memory): Ditto.
11182 * symm-nat.c (child_xfer_memory): Ditto.
11183 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11184
494e8a93
JSC
111852002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11186
11187 From Nick Clifton <nickc@redhat.com>
11188 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11189
d0e1d48e
MS
111902002-01-07 Michael Snyder <msnyder@redhat.com>
11191
abf22e64 11192 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11193 Don't use exec_bfd if it's NULL.
11194
290b2c7a
MK
111952002-01-06 Mark Kettenis <kettenis@gnu.org>
11196
abf22e64 11197 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11198
aef21287
AC
111992002-01-06 Andrew Cagney <ac131313@redhat.com>
11200
11201 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11202 * gnu-nat.c: Ditto.
11203
30efa627
AC
112042002-01-06 Andrew Cagney <ac131313@redhat.com>
11205
11206 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11207 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11208 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11209 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11210 z8k-coff have not been multi-arched. Update z8k-coff build
11211 status.
11212
9b4ff276
AC
112132002-01-06 Andrew Cagney <ac131313@redhat.com>
11214
11215 * MAINTAINERS: Mark a29k target as obsolete.
11216 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11217 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11218 comments.
11219 * NEWS: Note that a29k targets are obsolete.
11220 * a29k-tdep.c: Mark as obsolete.
11221 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11222 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11223 a29k-*-vxworks* targets as obsolete.
11224 * remote-adapt.c: Obsolete.
11225 * remote-eb.c: Obsolete.
11226 * remote-mm.c: Obsolete.
11227 * remote-udi.c: Obsolete.
11228 * config/a29k/a29k-udi.mt: Obsolete.
11229 * config/a29k/a29k.mt: Obsolete.
11230 * config/a29k/tm-a29k.h: Obsolete.
11231 * config/a29k/tm-vx29k.h: Obsolete.
11232 * config/a29k/vx29k.mt: Obsolete.
11233
a9011d31
AC
112342002-01-05 Andrew Cagney <ac131313@redhat.com>
11235
11236 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11237 with BFD_ENDIAN_BIG.
11238
9299404e
AC
112392002-01-05 Andrew Cagney <ac131313@redhat.com>
11240
11241 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11242 * configure, config.in: Re-generate.
11243 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11244 * defs.h: Do not include <endian.h>.
11245
7e89e357
JT
112462002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11247
11248 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11249 * config.in: Regenerate.
11250 * configure.in: Update copyright years.
11251 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11252 * configure: Regenerate.
11253 * i386bsd-nat.c: Update copyright years.
11254 (fill_gregset): Use regcache_collect.
11255 (fetch_inferior_registers): Only fetch integer registers
11256 if requested to do so. Add support for XMM registers
11257 using PT_GETXMMREGS.
11258 (store_inferior_registers): Only store integer registers
11259 if requested to do so. Add support for XMM registers
11260 using PT_SETXMMREGS.
11261 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11262 (store_inferior_registers): Remove.
11263 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11264 (fetch_elfcore_registers): New function.
11265 (i386nbsd_elfcore_fns): New.
11266 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11267 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11268 i386bsd-nat.o.
11269 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11270 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11271 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11272 * config/i386/tm-nbsd.h: Update copyright years.
11273 (HAVE_SSE_REGS): Define.
11274 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11275 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11276 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11277 (SIGCONTEXT_PC_OFFSET): Remove.
11278 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11279
a752853e
AC
112802002-01-05 Andrew Cagney <ac131313@redhat.com>
11281
11282 * configure.tgt: Remove powerpc-*-macos* target.
11283 * config/m68k/xm-mpw.h: Delete file.
11284 * config/xm-mpw.h: Delete file.
11285 * ser-mac.c: Delete file.
11286 * mpw-make.sed: Delete file.
11287 * mpw-config.in: Delete file.
11288 * mac-xdep.c: Delete file.
11289 * mac-gdb.r: Delete file.
11290 * mac-defs.h: Delete file.
11291 * mac-nat.c: Delete file.
11292 * config/powerpc/macos.mh: Delete file.
11293 * config/powerpc/macos.mt: Delete file.
11294 * config/powerpc/nm-macos.h: Delete file.
11295 * config/powerpc/tm-macos.h: Delete file.
11296 * source.c (openp, open_source_file): Remove obsolete code.
11297 * top.c (gdb_readline): Ditto.
11298 * utils.c (query): Ditto.
11299 * event-top.c (display_gdb_prompt): Ditto.
11300 * Makefile.in (ser-mac.o): Delete obsolete target.
11301 * NEWS: Update.
11302
d7449b42
AC
113032002-01-04 Andrew Cagney <ac131313@redhat.com>
11304
11305 * defs.h (BIG_ENDIAN): Delete macro definition.
11306 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11307 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11308 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11309 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11310 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11311 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11312 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11313 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11314 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11315 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11316 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11317 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11318 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11319 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11320 * gdbarch.c: Re-generate.
11321
356374e8
DJ
113222002-01-04 Daniel Jacobowitz <drow@mvista.com>
11323
11324 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11325 for core files.
11326
a2b8f8f8
JT
113272002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11328
11329 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11330
12466af9
AC
113312002-01-04 Andrew Cagney <ac131313@redhat.com>
11332
11333 * value.h (value_ptr): Delete typedef.
11334
3549ab40
JT
113352002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11336
11337 * i386nbsd-nat.c: Update copyright years.
11338 Include i386-tdep.h.
11339
fedbd091
EZ
113402002-01-04 Elena Zannoni <ezannoni@redhat.com>
11341
11342 * stabsread.c: Update copyright years.
11343
11344 From Debashis Mahata <debashis.mahata@wipro.com>:
11345 (read_struct_fields): Deal with Sun C compiler erroneous stab
11346 output for structs and unions.
fec8b34f 11347 Fix PR gdb/269.
fedbd091 11348
eb43544b
DJ
113492002-01-04 Daniel Jacobowitz <drow@mvista.com>
11350
11351 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11352 prototype.
11353
1514d34e
DJ
113542002-01-04 Daniel Jacobowitz <drow@mvista.com>
11355
11356 * cp-abi.c: Fix whitespace.
11357 (baseclass_offset): New wrapper function.
11358 * cp-abi.h (baseclass_offset): Add prototype.
11359 (struct cp_abi_ops): Add baseclass_offset pointer.
11360
11361 * valops.c (vb_match): Move to...
11362 * gnu-v2-abi.c (vb_match): here.
11363 * valops.c (baseclass_offset): Move to...
11364 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11365
11366 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11367
11368 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11369 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11370 * hpacc-abi.c (init_hpacc_ops): Likewise.
11371
7f8c9282
DJ
113722002-01-04 Daniel Jacobowitz <drow@mvista.com>
11373
11374 * valops.c (find_overload_match): Accept obj as a
11375 reference parameter. Update it before returning.
11376 * value.h (find_overload_match): Update prototype.
11377 * eval.c (evaluate_subexp_standard): Pass object to
11378 find_overload_match by reference.
11379
f23631e4
AC
113802002-01-03 Andrew Cagney <ac131313@redhat.com>
11381
11382 * valarith.c: Replace value_ptr with struct value pointer. Remove
11383 register attribute from value declarations.
11384 * valops.c: Ditto.
11385 * value.h: Ditto.
11386 * scm-lang.c (scm_lookup_name): Ditto.
11387
79e10fab 113882002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11389
79e10fab
AC
11390 Abstract the functionality of iterating over mapped memory
11391 regions into a general purpose iterator function.
abf22e64 11392 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11393 iterator for memory sections.
11394 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11395 (solib_mappings_callback): New function, callback for above.
11396 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11397 (info_mappings_callback): New function, callback for above.
11398
11399 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11400
c5ad026a
MK
114012002-01-01 Mark Kettenis <kettenis@gnu.org>
11402
d2a7c97a
MK
11403 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11404 * i386-tdep.c: Include "elf-bfd.h".
11405 (process_note_abi_tag_sections): New function.
11406 (i386_gdbarch_init): Add code to recognize various OS/ABI
11407 combinations.
11408
c5ad026a
MK
11409 * maint.c (_initialize_maint_cmds): Add missing \ in
11410 string-literal.
11411
a1a5b71e 11412For older changes see ChangeLog-2001
c906108c
SS
11413\f
11414Local Variables:
11415mode: change-log
11416left-margin: 8
11417fill-column: 74
11418version-control: never
11419End:
This page took 0.827667 seconds and 4 git commands to generate.