2002-10-02 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c4ed33b9
AC
12002-10-02 Andrew Cagney <ac131313@redhat.com>
2
3 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
5 * gdbarch.h, gdbarch.c: Re-generate.
6
cef4f5dd
DJ
72002-10-02 Daniel Jacobowitz <drow@mvista.com>
8
9 Fix PR gdb/778
10 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
11 before recursing.
12 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
13 of fill_in_vptr_fieldno.
14
36dc181b
EZ
152002-10-02 Elena Zannoni <ezannoni@redhat.com>
16
17 * inferior.h (registers_info, stepi_command, nexti_command,
18 continue_command, interrupt_target_command): Export from infcmd.c.
19 * frame.h (args_info, selected_frame_level_changed_hook,
20 return_command): Export from stack.c.
21 * v850ice.c (stepi_command, nexti_command, continue_command): use
22 prototypes from inferior.h.
23 * tracepoint.c (registers_info, args_info, locals_info): Use
24 prototypes from frame.h and inferior.h.
25 * Makefile.in (mi-main.o): Add dependency on frame.h.
26
6f99cb26
AC
272002-10-02 Andrew Cagney <ac131313@redhat.com>
28
da3eff49
AC
29 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
30 value in register 3 adjusted by ppc_gp0_regnum.
31
6f99cb26
AC
32 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
33
da615bee
MM
342002-10-02 Marko Mlinar <markom@opencores.org>
35
36 * MAINTAINERS: Add myself to the Write After Approval list.
37
d154bee2
AO
382002-10-01 Alexandre Oliva <aoliva@redhat.com>
39
62a49b2c
AO
40 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
41 of the section for the N64 ABI, fixed.
42
d154bee2
AO
43 * config/mips/tm-irix6.h: Include solib.h.
44
ed348acc
EZ
452002-10-01 Elena Zannoni <ezannoni@redhat.com>
46
47 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
48 GNU operators.
49
da0f9dcd
AC
502002-10-01 Andrew Cagney <ac131313@redhat.com>
51
52 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
53 and that "mi0" syntax has been removed.
54
bdf64bac
DC
552002-09-30 David Carlton <carlton@math.stanford.edu>
56
57 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
58 * ppc-sysv-tdep.c: #include "gdb_string.h".
59 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
60 pacify GCC.
61
54c2a1e6
AC
622002-10-01 Andrew Cagney <ac131313@redhat.com>
63
64 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
65 "vrsave"'s register number.
66
cedea778
AC
672002-09-30 Andrew Cagney <ac131313@redhat.com>
68
69 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
70 use frame_unwind_signed_register to obtain the PC.
71 (mips_frame_chain): Handle a generic dummy frame.
72 (mips_init_extra_frame_info): When a generic dummy frame, don't
73 re-compute the frame base.
74 (mips_pop_frame): Handle generic dummy frames.
75 (mips_gdbarch_init): When generic dummy frames, set
76 use_generic_dummy_frames, push_dummy_frame to
77 generic_push_dummy_frame, pc_in_call_dummy to
78 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
79 generic_save_dummy_frame_tos.
80
68315eb8
AC
812002-09-30 Andrew Cagney <ac131313@redhat.com>
82
83 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
84 against TOP when TOP was explictly set.
85 (generic_push_dummy_frame): Set TOP to zero.
86
3b8630c3
EZ
872002-09-30 Elena Zannoni <ezannoni@redhat.com>
88
89 * event-loop.c (start_event_loop): Rename variable 'result' to
90 'gdb_result', to avoid conflicts with upcoming intepreters changes.
91
28ee05e9
KS
922002-09-30 Keith Seitz <keiths@redhat.com>
93
94 * gdb-events.sh (selected_thread_changed): New event.
95 * gdb-events.c: Regenerated.
96 * gdb-events.h: Regenerated.
97
6eecb1c8
HPN
982002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
99
100 * MAINTAINERS: Add self to Write After Approval list.
101
92df71f0
FN
1022002-09-30 Fernando Nasser <fnasser@redhat.com>
103
3b8630c3
EZ
104 * disasm.c: New file.
105 * disasm.h: New file.
92df71f0
FN
106 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
107 (compare_lines): Ditto.
108 (dump_insns): Ditto.
3b8630c3
EZ
109 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
110 argument.
92df71f0 111 (do_assembly_only): Ditto.
3b8630c3
EZ
112 (do_disassembly): Renamed to gdb_disassembly and moved to
113 disasm.c. Sdded uiout argument.
114 * Makefile.in: Add new files. Reorder SFILES list. Update
115 dependencies. Include libgdb.a later in the insight executable.
92df71f0 116
0c22854d
AC
1172002-09-29 Andrew Cagney <ac131313@redhat.com>
118
119 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
120 bfd/elf64-alpha-fbsd.c.
121
e67f2023
AC
1222002-09-29 Andrew Cagney <ac131313@redhat.com>
123
124 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
125 i386gnu-tdep.c.
126
89396210
AC
1272002-09-29 Andrew Cagney <ac131313@redhat.com>
128
129 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
130 __FUNCTION__.
131 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
132 function name.
133 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
134 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
135 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
136 (S_msg_sig_post_reply): Ditto.
137
7079c36c
CV
1382002-09-28 Corinna Vinschen <vinschen@redhat.com>
139
89396210
AC
140 * sh-tdep.c (sh_use_struct_convention): Use definition according
141 to ABI.
7079c36c
CV
142 (sh_push_arguments): Store in register with correct endianess.
143 (sh_default_store_return_value): Ditto.
144 (sh_gdbarch_init): Set sizeof long double to 8.
145
975ac915
MK
1462002-09-27 Mark Kettenis <kettenis@gnu.org>
147
148 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
149 Fix some whitespace problems.
150
9bbe19fb
DC
1512002-09-27 David Carlton <carlton@math.stanford.edu>
152
153 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
154 (mcore-tdep.o): Ditto.
155 (ns32k-tdep.o): Ditto.
156 (ns32knbsd-tdep.o): Ditto.
157 (sh3-rom.o): Ditto.
158 (vax-tdep.o): Ditto.
159 * cris-tdep.c: #include "gdb_string.h"
160 * mcore-tdep.c: Ditto.
161 * ns32k-tdep.c: Ditto.
162 * ns32knbsd-tdep.c: Ditto.
163 * sh3-rom.c: Ditto.
164 * vax-tdep.c: Ditto.
165
43b2fdc7
DC
1662002-09-27 David Carlton <carlton@math.stanford.edu>
167
168 * config/djgpp/fnchange.lst: Add entries for
169 gdb/testsuite/gdb.c++/m-static files.
170
e8cfbbd9
JW
1712002-09-27 Jim Wilson <wilson@redhat.com>
172
173 * MAINTAINERS: Add myself to the Write After Approval list.
174
43b2fdc7 1752002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
176
177 * mips-tdep.c (find_proc_desc): Initialize startaddr.
178
179
9f3b7f07
AC
1802002-09-26 Andrew Cagney <ac131313@redhat.com>
181
182 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
183 frame.
184
11269d7e
AC
1852002-09-26 Andrew Cagney <ac131313@redhat.com>
186
187 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
188 (rs6000_struct_return_address): Delete variable.
189 (rs6000_store_struct_return): Update.
190 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
191 deprecated_extract_struct_value_address.
192 (rs6000_frame_align): New function.
193 (rs6000_gdbarch_init): Set frame_align.
194
f15ab4a7
AC
1952002-09-26 Andrew Cagney <ac131313@redhat.com>
196
197 From Grace Sainsbury <graces@redhat.com>:
198 * Makefile.in (gdbtk-main.o): New target.
199 (gdb.o): New target.
200 (main_h): Define.
201 (main.o): Update dependencies.
202 (gdb$(EXEEXT)): Add gdb.o.
203 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
204 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
205 (SUBDIR_GDBTK_CLEAN): Set.
206 (install-gdbtk): Install the insight binary.
207 (uninstall-gdbtk): New target.
208 (all-gdbtk, clean-gdbtk): New rule.
209 * top.c (use_windows): Default to zero.
210 * main.c: Include "main.h".
211 (main): Delete.
212 (struct captured_main_args): Delete.
213 (gdb_main): New function.
214 * main.h: New file.
215 * gdb.c: New File.
216
e36180d7
AC
2172002-09-25 Andrew Cagney <cagney@redhat.com>
218
219 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
220 (frame_map_regnum_to_name): New function.
221 (frame_map_name_to_regnum): New function.
222 * frame.h (frame_map_name_to_regnum): Declare.
223 (frame_map_regnum_to_name): Declare.
224 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
225 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
226 * parse.c: Do not include "builtin-regs.h".
227 (target_map_name_to_register): Delete function.
228 (write_dollar_variable): Use frame_map_name_to_regnum.
229 * parser-defs.h (target_map_name_to_register): Delete declaration.
230 * expprint.c: Include "frame.h".
231 (print_subexp): Use frame_map_regnum_to_name.
232 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
233 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
234
8b69000d
AC
2352002-09-25 Andrew Cagney <ac131313@redhat.com>
236
237 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
238 wasn't saved, and the next innermost frame is a dummy, return the
239 dummy frame's link register.
240
046ca86a
JB
2412002-09-24 Jim Blandy <jimb@redhat.com>
242
243 Fix from Paul Breed:
244 * main.c (captured_main): Add a `break' after the case for 'b'.
245
94b66fa7
KS
2462002-09-24 Keith Seitz <keiths@redhat.com>
247
248 * varobj.c (c_type_of_child): Use get_target_type instead
249 of TYPE_TARGET_TYPE.
250
c214a6fd
FN
2512002-09-22 Fernando Nasser <fnasser@redhat.com>
252
53cb0458
FN
253 * source.c (get_current_or_default_source_symtab_and_line): Remove
254 function.
255 (set_default_source_symtab_and_line): New function. Attempts to
256 determine a source file to list lines from if one is not currently
257 defined.
258 (get_current_source_symtab_and_line): Initialize sal.pc and
259 sal.end fields.
260 (set_current_source_symtab_and_line): Mark argument as const.
261 * source.h: Update declarations and comments.
262 * linespec.c (decode_line_1): Replace call to removed routine above.
263 * stack.c (print_frame_info_base): Ditto.
264 * cli/cli-cmds.c (edit_command): Ditto.
265 (list_command): Ditto.
266
2672002-09-22 Fernando Nasser <fnasser@redhat.com>
268
269 * source.c (get_current__or_default_source_symtab_and_line): Initialize
270 sal.pc and sal.end fields.
c214a6fd
FN
271 (get_current_or_default_source_symtab_and_line): Ditto.
272 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
273 so we do not cause a new source symtab to be searched for (reverting an
274 unintentional change from the 2002-09-20 patch).
275 * scm-lang.c (scm_unpac): Ditto.
276
cc3b68a5
AC
2772002-09-21 Andrew Cagney <cagney@redhat.com>
278
279 * complaints.c (symfile_explanations): Remove new-line from
280 ``isolated_message''.
281 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
282 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
283
5835abe7
NC
2842002-09-20 Nick Clifton <nickc@redhat.com>
285
286 * NEWS: Announce that V850EA ISA is no longer supported.
287 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
288
a15ef5f5
DC
2892002-09-20 David Carlton <carlton@math.stanford.edu>
290
06ba1b39
DC
291 * Makefile.in (c-lang.o): Correct dependencies.
292 (utils.o): Gather dependencies.
293 (charset.o): Move.
a15ef5f5
DC
294 * c-lang.c: #include "gdb_string.h"
295
87885426
FN
2962002-09-20 Fernando Nasser <fnasser@redhat.com>
297
298 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
299 * cli/cli-cmds.c (list_command): New function. Implements the new
300 cli edit command.
301 (_init_cli_cmds): Add new command definition.
302 * gdb.1: Document edit command.
303 * doc/gdb.texinfo: Document edit command.
304
3052002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
306
307 * source.c: Make global variables current_source_symtab and
308 current_source_line static.
309 (list_command): Moved to cli/cli-cmds.c.
310 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
311 (get_first_line_listed): New accessor function.
312 (get_lines_to_list): New accessor function.
313 (get_current_source_symtab_and_line): New function. Retrieves the
314 position in the source code that we consider current.
315 (get_current_or_default_source_symtab_and_line): New function.
316 Like the above but attempts to determine a default position if one
317 is not currently defined.
318 (set_current_source_symtab_and_line): New function. Sets the source
319 code position considered current and returns the previously set one.
320 (clear_current_source_symtab_and_line): Reset stored information about
321 a current source line.
322 (_initialize_source): Remove registration for the "list" command and
323 its alias.
324 * source.h: Add declarations for the new functions above.
325 * symtab.h: Remove declarations for the global variables mentioned
326 above.
327 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
328 obtain current source line.
329 * linespec.c (decode_line_1): Ditto.
330 * macroscope.c (default_macro_scope): Ditto.
331 * scm-lang.c (scm_unpac): Ditto.
332 * stack.c (print_frame_info_base): Ditto.
333 * symfile.c (clear_symtab_users): Ditto.
334 * symtab.c (decode_line_spec): Ditto.
335 * cli/cli-cmds.c (list_command): Moved here from source.c.
336 (ambiguous_line_spec): Moved here from source.c.
337 (_init_cli_cmds): Add definition for "list" and its alias.
338 * Makefile.in: Update dependencies.
339
ddd216ea
CV
3402002-09-20 Corinna Vinschen <vinschen@redhat.com>
341
342 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
343 with what gcc thinks is correct.
344
6d305052
CV
3452002-09-20 Corinna Vinschen <vinschen@redhat.com>
346
347 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
348 multiple register push instruction.
349
234b45d4
KB
3502002-09-19 Jim Blandy <jimb@redhat.com>
351
352 Add support for distinct host and target character sets.
353 * charset.c, charset.h: New files.
354 * c-exp.y: #include "charset.h".
355 (yylex): Convert character and string literals to the target
356 character set, before returning them as the semantic value of the
357 token.
358 * c-lang.c: #include "charset.h".
359 (c_emit_char): Use charset-specific methods to recognize
360 characters with backslash escape forms, to decide which characters
361 to print literally and which to print using numeric escape
362 sequences, and to convert target characters to host characters
363 before printing.
364 * utils.c: #include "charset.h".
365 (no_control_char_error): New function.
366 (parse_escape): Use charset-specific methods to recognize
367 backslash escapes, parse `control character' notation, and convert
368 characters from the host character set to the target character set.
369 * configure.in: Set the default host character set.
370 Check where to find iconv, and what its argument types might be.
371 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
372 * Makefile.in (SFILES): List charset.c.
373 (COMMON_OBS): List charset.o.
374 (charset.o): New rule.
375 (charset_h): New header dependency variable.
376 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
377 (LIBICONV): New variable, set by configure.
378 (CLIBS): Include $(LIBICONV) here.
379 * aclocal.m4, config.in, configure: Regenerated.
380
525d6a61
JB
3812002-09-19 Joel Brobecker <brobecker@gnat.com>
382
383 * ada-exp.y: Add missing semicolons to end rules. Fixes a
384 bison 1.35 warning.
385
3ed93867
RE
3862002-09-19 Richard Earnshaw <rearnsha@arm.com>
387
388 * gdb_mbuild.sh: New file.
389
437666f8
AC
3902002-09-19 Andrew Cagney <ac131313@redhat.com>
391
392 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
393
389e51db
AC
3942002-09-18 Andrew Cagney <ac131313@redhat.com>
395
396 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
397 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
398 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
399 valops.c, value.h: Revert previous change.
400
3b4efeaa
MS
4012002-09-18 Michael Snyder <msnyder@redhat.com>
402
403 Preliminary support for Objective-C:
404 * defs.h (language_objc): New enum value.
405 (puts_filtered_tabular): Declaration only, exported from utils.c.
406 (skip_quoted): Delete, declared in completer.h.
407 * c-exp.y: Include completer.h.
408 * p-exp.y: Ditto.
409 * jv-exp.y: Ditto.
410 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
411 New operator enum values.
412 * language.h (CAST_IS_CONVERSION): Test for language_objc.
413 * language.c (binop_result_type): Handle language_objc case.
414 (integral_type, character_type, string_type, boolean_type,
415 structured_type, binop_type_check): Ditto.
416 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
417 (struct objc_specific): Add to general_symbol_info.
418 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
419 (SYMBOL_DEMANGLED_NAME): Handle objc case.
420 * parser-defs.h (struct objc_class_str): New struct type.
421 (start_msglist, end_msglist, add_msglist): Declaration only,
422 exported from objc-lang.c.
423 * value.h (value_of_local, value_nsstring,
424 call_function_by_hand_expecting_type): Exported from valops.c.
425 * valops.c (find_function_addr): Export.
426 (call_function_by_hand_expecting_type): New function.
427 (value_of_local): New function.
428 * symfile.c (init_filename_language_table): Add ".m" extension
429 for Objective-C.
430 * utils.c (puts_filtered_tabular): New function.
431 (fprintf_symbol_filtered): Add objc demangling support (disabled).
432 (set/show demangle): Extend help-string to refer to ObjC.
433 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
434 * stabsread.c (symbol_reference_defined): Objective-C symbols
435 may contain colons: make allowances when scanning stabs strings
436 for colons.
437 (objc_find_colon): New function.
438 * printcmd.c (address_info): If language == objc then print
439 "self" instead of "this".
440 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
441 OP_NSSTRING, and OP_SELF.
442 (prefixify_subexp): Ditto.
443 * source.c (print_source_lines): Mention objc in comment.
444 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
445 method names.
446
b9caf505
AC
4472002-09-18 Andrew Cagney <ac131313@redhat.com>
448
449 * complaints.h: Update copyright.
450 (struct complaints): Declare.
451 (struct complaint): Make `message' constant.
452 (internal_complaint): Declare.
453 (complaint): Declare.
454 (complaint_root): Delete declaration.
455 (symfile_complaints): Delete declaration.
456 (struct complaints): Add opaque declaration.
457 (clear_complaints): Add a complaints parameter.
458 * complaints.c: Update copyright.
459 (enum complaint_series): Define.
460 (complaint_root): Delete.
461 (struct complaints): Define.
462 (complaint_sentinel, symfile_complaint_book): New variables.
463 (symfile_explanations, symfile_complaints): New variables.
464 New variables.
465 (get_complaints): New function.
466 (vcomplaint): New function.
467 (complaint): New function.
468 (internal_complaint): New function.
469 (complain): Call vcomplain with symfile_complaint.
470 (clear_complaints): Rewrite.
471 (_initialize_complaints): Use add_setshow_command.
472 * Makefile.in (complaints.o): Update dependencies.
473 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
474 to call to clear_complaints.
475 (new_symfile_objfile, reread_symbols): Ditto.
476 (oldsyms_complaint): Delete.
477 (empty_symtab_complaint, unknown_option_complaint): Delete.
478 (free_named_symtabs): Use complaint instead of complain.
479
d2e6263c
MS
4802002-09-18 Michael Snyder <msnyder@redhat.com>
481
5fb2031a
AC
482 Contributed by Apple Computer, Inc. Merged with current sources
483 by Adam Fedor <fedor@doc.com> [cagney].
484
d2e6263c
MS
485 * objc-lang.c: First clean-up round: comments, indentation.
486 * objc-lang.h: Ditto.
487 * objc-lang.y: Ditto.
488
dec43320
AC
4892002-09-18 Andrew Cagney <ac131313@redhat.com>
490
491 * maint.c (maintenance_internal_error): Print the parameter as the
492 error message.
493 (maintenance_internal_warning): New function.
494 (_initialize_maint_cmds): Add command `maint internal-warning'.
495
496 * defs.h (internal_warning, internal_vwarning): Declare.
497 * utils.c (struct internal_problem): Define.
498 (internal_vproblem): New function.
499 (internal_warning): New function.
500 (internal_vwarning): New function.
501 (internal_warning_problem, internal_error_problem): New variables.
502 (internal_verror): Just call internal_vproblem.
503
b81654f1
MS
5042002-09-18 Michael Snyder <msnyder@redhat.com>
505
506 * objc-lang.c: New file, support for Objective-C.
507 Preliminary check-in, not yet integrated into gdb.
508 * objc-lang.h: New file.
509 * objc-exp.y: New file.
510
0542c381
AC
5112002-09-18 Andrew Cagney <ac131313@redhat.com>
512
7bda5e4a
AC
513 * infrun.c (signal_stop_update): Convert definition to ISO C.
514 (signal_print_update): Ditto.
515 (signal_pass_update): Ditto.
516 * inflow.c (terminal_save_ours): Ditto.
517
5247b418
AC
518 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
519 comments.
520
fc60962c
AC
521 * config/djgpp/fnchange.lst: Handle name clashes between
522 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
523 bfd/coff-tic80.c.
524
0542c381
AC
525 * i386-linux-tdep.h: Fix tipo.
526
5b924b9b
AF
5272002-09-18 Adam Fedor <fedor@gnu.org>
528
529 * MAINTAINERS: Add myself to the Write After Approval list.
530
5afc051b
JB
5312002-09-18 Jim Blandy <jimb@redhat.com>
532
533 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
534 texthigh and textlow to reader-specific structs caused
535 objfile_relocate to miss them. This is fixable, but the work that
536 the change was supposed to prepare GDB for never got done anyway.
537
eb944380
DC
5382002-09-18 David Carlton <carlton@math.stanford.edu>
539
540 * MAINTAINERS: Alphabetize Write After Approval list.
541
948e66d9
DJ
5422002-09-18 Daniel Jacobowitz <drow@mvista.com>
543
544 Fix PR gdb/709
545 * values.c (value_static_field): Call read_var_value.
546
dc604539
AC
5472002-09-18 Andrew Cagney <ac131313@redhat.com>
548
549 * valops.c (hand_function_call): Align the initial stack pointer
550 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
551 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
552 return value.
553 * mips-tdep.c (mips_frame_align): New function.
554 (mips_gdbarch_init): Set frame_align.
555 * gdbarch.sh (FRAME_ALIGN): New method.
556 * gdbarch.h, gdbarch.c: Re-generate.
557
cb7e422f
ML
5582002-09-18 Michal Ludvig <mludvig@suse.cz>
559
560 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
561 registers.
562
a094c6fb
AC
5632002-09-17 Andrew Cagney <ac131313@redhat.com>
564
565 * NEWS: Mention that MIPS $fp behavior changed.
566 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
567 reference to FP_REGNUM.
568 (mipsnbsd_cannot_store_register): Ditto.
569 * mips-linux-nat.c: Update copyright.
570 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
571 (mips_linux_cannot_store_register): Ditto.
572 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
573 * config/mips/tm-mips.h: Update copyright.
574 (FP_REGNUM): Delete macro.
575 (MIPS_REGISTER_NAMES): Replace "fp" with "".
576 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
577 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
578 (mips_r3041_reg_names, mips_r3051_reg_names)
579 (mips_r3081_reg_names): Replace "fp" with "".
580 Fix PR gdb/480.
581
45cf40d1
TR
5822002-09-17 Theodore A. Roth <troth@verinet.com>
583
584 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
585 generic_read_register_dummy() (PR gdb/703).
586 (avr_push_return_address): #if 0 out unused vars.
587 (avr_gdbarch_init): Enable use of avr_push_return_address().
588
c7e701b5
MS
5892002-09-17 Michael Snyder <msnyder@redhat.com>
590
d76ba2a5 591 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
592 RTE will take care of it.
593
20bcf01c
AC
5942002-09-17 Andrew Cagney <ac131313@redhat.com>
595
596 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
597 invalid, return SP_REGNUM.
598
009a9971 5992002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
600
601 * mips-tdep.c (mips_pop_frame): Read saved values of floating
602 point registers without sign extension.
603
135c175f
AC
6042002-09-17 Andrew Cagney <cagney@redhat.com>
605
606 * blockframe.c (deprecated_read_register_dummy): Rename
607 generic_read_register_dummy.
608 * frame.c (frame_unwind_signed_register): New function.
609 (frame_unwind_unsigned_register): New function.
610 * frame.h (frame_unwind_signed_register): Declare.
611 (frame_unwind_unsigned_register): Declare.
612 (deprecated_read_register_dummy): Rename
613 generic_read_register_dummy.
614
615 * h8300-tdep.c (h8300_frame_chain): Update.
616 (h8300_frame_saved_pc): Update.
617 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
618 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
619 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
620 (s390_frame_chain): Update.
621 * v850-tdep.c (v850_find_callers_reg): Update.
622 (v850_frame_saved_pc): Update.
623 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
624 (m32r_find_callers_reg): Update.
625 (m32r_frame_saved_pc): Update.
626 * sh-tdep.c (sh_find_callers_reg): Update.
627 (sh64_get_saved_pr): Update.
628 (sh_init_extra_frame_info): Update.
629 (sh_init_extra_frame_info): Update.
630 (sh64_init_extra_frame_info): Update.
631 (sh64_init_extra_frame_info): Update.
632 * mcore-tdep.c (mcore_find_callers_reg): Update.
633 (mcore_frame_saved_pc): Update.
634 (mcore_init_extra_frame_info): Update.
635 * i386-tdep.c (i386_frame_saved_pc): Update.
636 * ia64-tdep.c (ia64_frame_saved_pc): Update.
637 (ia64_init_extra_frame_info): Update.
638 (ia64_init_extra_frame_info): Update.
639 * d10v-tdep.c (d10v_frame_saved_pc): Update.
640 * cris-tdep.c (cris_init_extra_frame_info): Update.
641 * avr-tdep.c (avr_frame_chain): Update.
642 (avr_init_extra_frame_info): Update.
643 (avr_frame_saved_pc): Update.
644 * arm-tdep.c (arm_find_callers_reg): Update.
645 (arm_init_extra_frame_info): Update.
646 (arm_frame_saved_pc): Update.
647
a741e514
TT
6482002-09-17 Tom Tromey <tromey@redhat.com>
649
650 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
651 is "'".
652
d1a8e808
CV
6532002-09-17 Corinna Vinschen <vinschen@redhat.com>
654
655 * MAINTAINERS: Remove "non multi-arched" text from h8300.
656 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
657 NEXT_PROLOGUE_INSN.
658 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
659 NEXT_PROLOGUE_INSN.
660
d9025a18
JB
6612002-09-16 Joel Brobecker <brobecker@gnat.com>
662
663 * osfsolib.c: Remove file, replaced by solib-osf.c.
664 * Makefile.in: Remove compilation rules for osfsolib.c.
665
1b2ef1b6
DC
6662002-09-16 David Carlton <carlton@math.stanford.edu>
667
668 * cp-valprint.c (cp_print_class_method): Correct args to
669 check_stub_method_group.
670
928e48af
CV
6712002-09-16 Corinna Vinschen <vinschen@redhat.com>
672
673 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
674 `set architecture'. Unify naming convention of functions.
675 (h8300_skip_prologue): Improve prologue analysis.
676 (h8300_push_arguments): Rewritten to more closely match GCC's
677 bizarre argument-passing behavior, along with the comment describing
678 said behavior.
679 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
680 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
681 sim, remote-e7000.c, remote-hms.c and remote.c
682
5e3397bb
MK
6832002-09-15 Mark Kettenis <kettenis@gnu.org>
684
685 * i386-tdep.c (gdb_print_insn_i386): Removed.
686 (i386_print_insn): New function.
687 (i386_gdbarch_init): Set print_insn to i386_print_insns.
688 (_initialize_i386_tdep): Don't initialize tm_print_insn and
689 tm_print_insn_info.
690
f710f4fc
MK
6912002-09-14 Mark Kettenis <kettenis@gnu.org>
692
693 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
694 zero.
695
db54fef4
CV
6962002-09-14 Corinna Vinschen <vinschen@redhat.com>
697
698 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
699 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
700 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
701
2becadee
CF
7022002-09-13 Christopher Faylor <cgf@redhat.com>
703
704 * win32-nat.c (child_create_inferior): Honor 'tty' command.
705
de17c821
DJ
7062002-09-13 Daniel Jacobowitz <drow@mvista.com>
707
708 * gdbtypes.c (check_stub_method): Make static.
709 (check_stub_method_group): New function.
710 * gdbtypes.h: Update prototypes.
711 * cp-support.c: New file.
712 * cp-support.h: New file.
713
714 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
715 (update_method_name_from_physname): New function.
716 (read_member_functions): Correct method names for operators
717 and v3 constructors/destructors. Separate v2 constructors and
718 destructors.
719 * Makefile.in (stabsread.o): Update dependencies.
720 (SFILES): Add cp-support.c.
721 (COMMON_OBS): Add cp-support.o.
722 (cp_support_h, cp-support.o): Add.
723
724 * cp-valprint.c (cp_print_class_method): Call
725 check_stub_method_group instead of check_stub_method. Remove
726 extraneous QUITs.
727 * p-valprint.c (pascal_object_print_class_method): Likewise.
728 * valops.c (search_struct_method): Likewise.
729 (find_method_list, value_struct_elt_for_reference): Likewise.
730
e76cff22
AC
7312002-09-13 Andrew Cagney <cagney@redhat.com>
732
733 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
734 * gdbarch.h, gdbarch.c: Regenerate.
735
905abb3f
AC
7362002-09-13 Andrew Cagney <ac131313@redhat.com>
737
738 * frame.c (find_saved_register): Delete function.
739 * frame.h (find_saved_register): Delete declaration.
740 Fix PR gdb/631.
741
64159455
AC
742Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
743
744 * mips-tdep.c (read_next_frame_reg): Re-hack using
745 frame_register_unwind.
746
795e1e11
AC
747Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
748
749 * mips-tdep.c (mips_get_saved_register): Re-hack using
750 frame_register_unwind.
751
5720643c
JB
7522002-09-12 Joel Brobecker <brobecker@gnat.com>
753
754 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
755 vector. Will be useful for Interix.
756 * gdbarch.h, gdbarch.c: Regenerate.
757
758 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
759 name of the malloc function by NAME_OF_MALLOC.
760
3bada2a2
JB
7612002-09-12 Joel Brobecker <brobecker@gnat.com>
762
763 * value.h (find_function_in_inferior): Add const keyword to
764 one of the parameters. Allows us to invoke this function with
765 a const char *.
766 * valops.c (find_function_in_inferior): Likewise.
767
3db26b01
JB
7682002-09-12 Joel Brobecker <brobecker@gnat.com>
769
770 * exec.c (xfer_memory): Fix compilation warning with old versions
771 of GCC.
772 * tracepoint.c (trace_find_tracepoint_command): Likewise.
773
17c5ed2c
DC
7742002-09-12 David Carlton <carlton@math.stanford.edu>
775
776 * symtab.h: Run through gdb_indent.h.
777 Add 2002 to Copyright year list.
778
ecd1107e
AM
7792002-09-12 Alan Modra <amodra@bigpond.net.au>
780
781 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
782 mach constants.
783 * MAINTAINERS: Add myself to write after approval list.
784
e64f66d1
JB
7852002-09-11 J. Brobecker <brobecker@gnat.com>
786
787 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
788
f9395794
JB
7892002-09-11 J. Brobecker <brobecker@gnat.com>
790
791 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
792 Interix.
793
1a303dec
MS
7942002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
795
796 * procfs.c (do_detach): Clear current signal, not just fault.
797 Corrects problem with breakpoint trap signal leaking to detached
798 process on Tru64.
799
c0219d42
MS
8002002-09-10 Michael Snyder <msnyder@redhat.com>
801
802 * buildsym.c (finish_block): Protect against null pointer.
803
9d84ac84
AC
8042002-09-10 Andrew Cagney <cagney@redhat.com>
805
806 * infcmd.c (default_print_registers_info): Send all output to
807 ``file'' instead of ``gdb_stdout''.
808
77d8f2b4
MS
8092002-09-10 Michael Snyder <msnyder@redhat.com>
810
811 * mips-tdep.c (mips_extract_struct_value_address): Make val a
812 LONGEST, and use signed register read (addresses are sign-
813 extended for mips).
814
99656a61
SC
8152002-09-10 Stephane Carrez <stcarrez@nerim.fr>
816
817 * event-loop.c (gdb_do_one_event): Make public.
818 * event-loop.h (gdb_do_one_event): Declare.
819
da12f4d8
JL
8202002-09-10 Jeff Law <law@redhat.com>
821
822 * infttrace.c (child_resume): Simplify and rework to avoid
823 TT_PROC_CONTINUE.
824
d0aee0c4
FF
8252002-09-09 Fred Fish <fnf@intrinsity.com>
826
827 * printcmd.c (print_scalar_formatted): "len" is the number of
828 target bytes, NOT the number of target bits.
829
7cb3ec5e
EZ
8302002-09-09 Elena Zannoni <ezannoni@redhat.com>
831
832 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
833 * top.c (init_main): Set rl_terminal_name.
834
4dc81987
AS
8352002-09-08 Aidan Skinner <aidan@velvet.net>
836
837 * ada-lang.c (ada_array_bound, ada_type_match,
838 _initialize_ada_language): Fix K&R definitions.
839 * ada-tasks.c (get_current_task): Fix K&R definitions.
840 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
841
842330b4
CF
8422002-09-07 Christopher Faylor <cgf@redhat.com>
843
844 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
845 Add XP.
846
43156d82
MK
8472002-09-06 Mark Kettenis <kettenis@gnu.org>
848
66da5fd8
MK
849 * i386-tdep.c (i386_register_virtual_type,
850 i386_register_convertible, i386_register_convert_to_virtual,
851 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
852 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
853 (i386_gdbarch_init): Fix comment. Add comments on calls that set
854 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
855 Don't set push_arguments twice.
856
4b218c18
MK
857 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
858 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
859 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
860 sigtramp_end to NULL.
861 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
862 defines.
863 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
864
4cc314d5
MK
865 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
866 whitespace.
867
43156d82
MK
868 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
869 * gdbarch.h, gdbarch.c: Re-generate.
870 * blockframe.c (find_pc_sect_partial_function): Convert to use
871 SIGTRAMP_START_P predicate.
872
6672060b
MS
8732002-09-05 Michael Snyder <msnyder@redhat.com>
874
a90c3637
MS
875 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
876 generic_dummy_frame method and old method. Also distinguish
877 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 878 (arm_extract_return_value): Use new regcache method.
a90c3637 879
6672060b
MS
880 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
881 adjustment that doesn't conform to the ABI.
882 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
883 saved regcache, not from current regcache.
884
299ffc64
AC
8852002-09-05 Andrew Cagney <ac131313@redhat.com>
886
887 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
888 * README: Update.
889
a3a2ee65
JT
8902002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
891
892 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
893 if arm_apcs_32 is false.
894
2bc7eea9
AC
8952002-09-04 Andrew Cagney <ac131313@redhat.com>
896
897 GDB 5.3 branch created.
898
8a55a7c5
TR
8992002-09-03 Theodore A. Roth <troth@verinet.com>
900
901 * gdb/avr-tdep.c (avr_gdbarch_init): Use
902 generic_unwind_get_saved_register.
903
e26fb1d7
DC
9042002-09-03 David Carlton <carlton@math.stanford.edu>
905
906 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
907 argument (PR gdb/653). Update call to smash_to_method_type.
908 (read_structure_scope): Update call to dwarf2_add_member_fn.
909
30d52491
ML
9102002-09-03 Michal Ludvig <mludvig@suse.cz>
911
912 * x86-64-linux-tdep.c: Include gdb_string.h
913 * x86-64-linux-nat.c: Ditto.
914
06891d83
JT
9152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
916
917 * ada-exp.y (yyname, yyrule): Remap global variables that appear
918 when YYDEBUG is set to 1.
919 * c-exp.y: Likewise.
920 * f-exp.y: Likewise.
921 * jv-exp.y: Likewise.
922 * m2-exp.y: Likewise.
923 * p-exp.y: Likewise.
924
7d400e77
JT
9252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
926
927 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
928 dependency list.
929 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
930 solib_svr4_fetch_link_map_offsets to
931 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
932 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
933 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
934 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
935 solib-svr4.o, and solib-legacy.o.
936 * config/i386/tm-nbsd.h: Include solib.h.
937
704a27c4
JT
9382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
939
940 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
941 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
942 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
943 comment noting that this needs its own target configuration.
944 * config/i386/nbsd.mt: New file.
945 * config/i386/nbsdaout.mt: Remove.
946 * config/i386/nbsdelf.mt: Ditto.
947 * config/i386/tm-nbsdaout.h: Ditto.
948
d66198e1
JT
9492002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
950
951 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
952 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
953 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
954 tdep->sigtramp_end.
955 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
956 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
957 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
958
3cac699e
JT
9592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
960
961 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
962 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
963 * i386-tdep.h (i386bsd_init_abi): New prototype.
964 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
965 function declaration.
966 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
967 for NetBSD-a.out or NetBSD-ELF.
968 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
969 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
970 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
971 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
972 and nbsd-tdep.h.
973 (i386nbsd_pc_in_sigtramp): New function.
974 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
975 i386nbsd_pc_in_sigtramp.
976 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
977 and i386nbsdelf_init_abi OS ABI handlers.
978 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
979 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
980
7010ca0a
MK
9812002-09-02 Mark Kettenis <kettenis@gnu.org>
982
983 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
984 registers if the target really has them.
985
6dd93b72
JT
9862002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
987
988 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
989 than nbsd-tdep.h.
990
2ca8ae21
JT
9912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
992
993 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
994 list.
995 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
996 (alphanbsd_skip_sigtramp_frame): New functions.
997 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
998 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
999 to alphanbsd_sigcontext_addr.
1000
3d9b49b0
JT
10012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1002
1003 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1004 list.
1005 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1006 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1007 nbsd_pc_in_sigtramp.
1008 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1009 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1010 * nbsd-tdep.c: Include gdb_string.h.
1011 (nbsd_pc_in_sigtramp): New function.
1012 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1013 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1014 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1015 ppcnbsd_pc_in_sigtramp.
1016 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1017 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1018 shnbsd_pc_in_sigtramp.
1019 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1020 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1021 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1022
c860120c
PM
10232002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1024
1025 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1026 watchpoints to NULL.
1027 (insert_breakpoints): set val field of watchpoints if NULL.
1028
1029
c7612d53
JB
10302002-08-29 Jim Blandy <jimb@redhat.com>
1031
1032 * symtab.c (lookup_symbol_aux): In the cases where we find a
1033 minimal symbol of an appropriate name and use its address to
1034 select a symtab to read and search, use `name' (as passed to us)
1035 as the demangled name when searching the symtab's global and
1036 static blocks, not the minsym's name.
1037
66609862
KS
10382002-08-29 Keith Seitz <keiths@redhat.com>
1039
1040 * stack.c (print_frame_info_base): Always set current_source_symtab
1041 and current_source_line.
1042
151fefe2
JB
10432002-08-29 Donn Terry <donnte@microsoft.com>
1044
1045 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1046
bfb3754e
KS
10472002-08-28 Keith Seitz <keiths@redhat.com>
1048
1049 * stack.c (select_frame): Add FIXME concerning selected-frame
1050 events.
1051 (select_frame_command): Send selected-frame-level-changed
1052 event notification, but only if the level actually changed.
1053 (up_silently_base): Add selected-frame-level-changed event
1054 notification.
1055 (down_silently_base): Likewise.
1056
e822a2a0
AC
10572002-08-28 Andrew Cagney <ac131313@redhat.com>
1058
1059 * Makefile.in: Update dependencies for all gdb/*.c files.
1060
309367d4
TT
10612002-08-27 Tom Tromey <tromey@redhat.com>
1062
1063 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1064 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1065 Update dependencies.
1066 * i387-tdep.c: Include gdb_string.h.
1067 * osabi.c: Likewise.
1068 * i386-linux-nat.c: Likewise.
1069 * lin-lwp.c: Likewise.
1070 * ax-gdb.c: Likewise.
1071 * signals/signals.c: Likewise.
1072 * jv-valprint.c: Likewise.
1073 * p-lang.c: Likewise.
1074 * c-valprint.c: Likewise.
1075 * cp-abi.c: Likewise.
1076
e1507482
EZ
10772002-08-27 Elena Zannoni <ezannoni@redhat.com>
1078
1079 * cli/cli-script.h (copy_command_lines): Export.
1080 * breakpoint.c: Include cli/cli-script.h.
1081 * Makefile.in (breakpoint.o): Update dependencies.
1082
c6510018
MS
10832002-08-26 Michael Snyder <msnyder@redhat.com>
1084
1085 * breakpoint.c (insert_breakpoints): Protect all references
1086 to 'process_warning'. Shorten long lines.
1087
c2b8ed2c
MS
10882002-08-26 Joel Brobecker <brobecker@gnat.com>
1089
1090 * cli/cli-script.c (copy_command_lines): New function.
1091 * defs.h (copy_command_lines): Export.
1092 * testsuite/gdb.base/commands.exp: New tests for commands
1093 attached to a temporary breakpoint, and for commands that
1094 delete the breakpoint they are attached to.
1095
10962002-08-26 Michael Snyder <msnyder@redhat.com>
1097
1098 * breakpoint.c (bpstat_stop_status): Instead of copying the
1099 pointer to the breakpoint commands struct, make a new copy
1100 of the struct and point to that.
1101 (bpstat_clear): Free the commands struct.
1102 (bpstat_clear_actions): Free the commands struct.
1103 (bpstat_do_actions): Free the command actions. Also execute
1104 the local cleanups, instead of deleting them.
1105 (delete_breakpoint): Leave the commands field of the bpstat
1106 chain alone -- it will be freed later.
1107
64b84175
KB
11082002-08-26 Kevin Buettner <kevinb@redhat.com>
1109
1110 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1111 deleted in 2002-08-20 commit. This function is still used by
1112 ppc-linux-nat.c.
1113
55970da6
KS
11142002-08-26 Keith Seitz <keiths@redhat.com>
1115
1116 * gdb-events.sh: Add selected-frame-level-changed event.
1117 * gdb-events.c: Regenerated.
1118 * gdb-events.h: Regenerated.
1119
a790ad35
SC
11202002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1121
1122 Fix PR gdb/393:
1123 * inflow.c (terminal_save_ours): New function to save terminal
1124 settings.
1125 * inferior.h (terminal_save_ours): Declare.
1126 * target.c (debug_to_terminal_save_ours): New function.
1127 (cleanup_target): Defaults to_terminal_save_ours.
1128 (update_current_target): Inherit to_terminal_save_ours.
1129 (setup_target_debug): Set to_terminal_save_ours.
1130 * target.h (target_terminal_save_ours): New to save terminal settings.
1131 (target_ops): New member to_terminal_save_ours.
1132 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1133 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1134 * inftarg.c (init_child_ops): Likewise.
1135 * m3-nat.c (init_m3_ops): Likewise.
1136 * procfs.c (init_procfs_ops): Likewise.
1137 * wince.c (init_child_ops): Likewise.
1138 * win32-nat.c (init_child_ops): Likewise.
1139 * sol-thread.c (init_sol_thread_ops): Likewise.
1140
c00dcbe9
MK
11412002-08-26 Mark Kettenis <kettenis@gnu.org>
1142
3d7f4f49
MK
1143 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1144 use regcache_* functions.
1145 (i386_gdbarch_init): Set store_return_value instead of
1146 deprecated_store_return_value.
1147
c00dcbe9
MK
1148 * regcache.c (regcache_raw_write_signed,
1149 regcache_raw_write_unsigned): New functions.
1150 * regcache.h (regcache_raw_write_signed,
1151 regcache_raw_write_unsigned): New prototypes.
1152
0e0d15ca
AC
11532002-08-25 Andrew Cagney <ac131313@redhat.com>
1154
1155 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1156 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1157 source file dependencies. Cleanup corresponding generator rules.
1158
d3b22ed5
AC
11592002-08-25 Andrew Cagney <ac131313@redhat.com>
1160
1161 * regcache.h (register_offset_hack): Declare.
1162 (regcache_cooked_read_using_offset_hack): Declare.
1163 (regcache_cooked_write_using_offset_hack): Declare.
1164
1165 * regcache.c (register_offset_hack): New function.
1166 (regcache_cooked_read_using_offset_hack): New function.
1167 (regcache_cooked_write_using_offset_hack): New function.
1168 (regcache_dump): Check that the registers, according to their
1169 offset, are packed hard against each other.
1170 (cooked_xfer_using_offset_hack): New function.
1171
bb425013
AC
11722002-08-25 Andrew Cagney <ac131313@redhat.com>
1173
1174 * regcache.c (struct regcache_descr): Add field register_type.
1175 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1176 in as a parameter
1177 (init_regcache_descr): Initialize register_type. Pass the descr
1178 to init_legacy_regcache_descr. Use register_type instead of
1179 REGISTER_VIRTUAL_TYPE.
1180 (register_type): New function.
1181 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1182 * regcache.h (register_type): Declare.
1183
d0403e00
AC
11842002-08-25 Andrew Cagney <ac131313@redhat.com>
1185
1186 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1187 instead of deprecated_store_return_value. Fix fallout from
1188 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1189
0ed04cce
AC
11902002-08-25 Andrew Cagney <ac131313@redhat.com>
1191
1192 * regcache.c (max_register_size): New function.
1193 (init_legacy_regcache_descr): Ensure that max_register_size is
1194 large enough for REGISTER_VIRTUAL_SIZE.
1195 * regcache.h (max_register_size): Declare.
1196
46d79c04
AC
11972002-08-24 Andrew Cagney <ac131313@redhat.com>
1198
1199 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1200 store_return_value.
1201 (e500_extract_return_value): Change type of valbuf pointer to
1202 void.
1203
853c7bd0
MK
12042002-08-24 Mark Kettenis <kettenis@gnu.org>
1205
cd87e769
MK
1206 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1207 workaround.
1208
853c7bd0
MK
1209 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1210 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1211 long long) to prevent compiler warning on 64-bit systems.
1212
ebba8386
AC
12132002-08-23 Andrew Cagney <cagney@redhat.com>
1214
1215 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1216 (DEPRECATED_STORE_RETURN_VALUE): New method.
1217 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1218 * gdbarch.h, gdbarch.c: Re-generate.
1219
1220 * values.c (set_return_value): Pass current_regcache to
1221 STORE_RETURN_VALUE.
1222 * arch-utils.h (legacy_store_return_value): Declare.
1223 * arch-utils.c (legacy_store_return_value): New function.
1224 (legacy_extract_return_value): Update parameters.
1225
1226 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1227 STORE_RETURN_VALUE.
1228 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1229 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1230 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1231 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1232 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1233 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1234 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1235 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1236 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1237 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1238
1239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1240 * i386-tdep.c (i386_extract_return_value): Update.
1241 * arch-utils.c (legacy_extract_return_value): Update.
1242 * frv-tdep.c (frv_gdbarch_init): Update.
1243 * cris-tdep.c (cris_gdbarch_init): Update.
1244 * d10v-tdep.c (d10v_gdbarch_init): Update.
1245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1246 * m68k-tdep.c (m68k_gdbarch_init): Update.
1247 * mcore-tdep.c (mcore_gdbarch_init): Update.
1248 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1249 * s390-tdep.c (s390_gdbarch_init): Update.
1250 * sparc-tdep.c (sparc_gdbarch_init): Update.
1251 * sh-tdep.c (sh_gdbarch_init): Update.
1252 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1253 * v850-tdep.c (v850_gdbarch_init): Update.
1254 * avr-tdep.c (avr_gdbarch_init): Update.
1255 * ia64-tdep.c (ia64_gdbarch_init): Update.
1256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1257 * vax-tdep.c (vax_gdbarch_init): Update.
1258 * alpha-tdep.c (alpha_gdbarch_init): Update.
1259 * arm-tdep.c (arm_gdbarch_init): Update.
1260 * mips-tdep.c (mips_gdbarch_init): Update.
1261 * i386-tdep.c (i386_gdbarch_init): Update.
1262
5bd8c6d0
AC
12632002-08-23 Andrew Cagney <ac131313@redhat.com>
1264
1265 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1266 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1267
e73e1724
MK
12682002-08-24 Mark Kettenis <kettenis@gnu.org>
1269
1270 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1271 problems.
1272
3e6564e1
JB
12732002-08-23 Joel Brobecker <brobecker@gnat.com>
1274
1275 * infrun.c (handle_inferior_event): Move a comment outside of a
1276 function call, in order to avoid indent reformatting this part
1277 of the code in an unreadable way.
1278
81d0cc19
GS
12792002-08-23 Grace Sainsbury <graces@redhat.com>
1280
1281 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1282 when breakpoints fail. Move general breakpoint error messages to
1283 insert_breakpoints.
1284 * breakpoint.c (insert_breakpoints): Change warnings when
1285 breakpoints are nto inserted to specify the type. Remove call to
1286 memory_error when hardware breakpoints can't be inserted. Remove
1287 multiple calls to warning so all messages are sent to the user at
1288 once.
1289 (delete_breakpoints): Make insert error messsages more explicit.
1290
17574093
DJ
12912002-08-23 Daniel Jacobowitz <drow@mvista.com>
1292
1293 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1294 gdbserver/ChangeLog.
1295
8acc2935
MK
12962002-08-23 Mark Kettenis <kettenis@gnu.org>
1297
dfe01d39
MK
1298 * i386-tdep.c: Include "objfiles.h".
1299 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1300 skip_trampoline_code.
1301 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1302 (CPLUS_MARKER): Define to '.'.
1303
8acc2935
MK
1304 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1305 member.
1306 (linux_corefile_thread_callback): Increase args->num_notes.
1307 (linux_make_note_section): Initialize thread_args.num_notes, and
1308 use it to determine whether notes for any threads were created.
1309
151fefe2 13102002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1311
1312 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1313 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1314 and PCUNKILL.
1315 (write_with_trace): Conditionalize out the switch branch handling
1316 PCSHOLD if the corresponding macro is not defined. Likewise for
1317 PRSABORT and PRSTOP.
1318 This change will be needed by the Interix port.
1319
e1507482
EZ
13202002-08-22 Elena Zannoni <ezannoni@redhat.com>
1321
1322 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1323 write_register wherever possible instead of manipulating the
1324 register bytes directly.
1325 Assign VALUE_CONTENTS to a variable and use that.
1326 The GPR numbers are now dependent on the architecture.
1327
96ff0de4
EZ
13282002-08-22 Elena Zannoni <ezannoni@redhat.com>
1329
1330 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1331 ev_offset fields.
1332 (skip_prologue): Add support for BookE/e500 instructions.
1333 (e500_extract_return_value): New function.
1334 (frame_get_saved_regs): Add support for saving ev registers and
1335 pseudo gpr's.
1336 (e500_store_return_value): New function.
1337 (rs6000_gdbarch_init): Move up default intializations of
1338 deprecated_extract_return_value and store_return_value. Overwrite
1339 init of store_return_value with e500 specific version.
1340 Set extract_return_value for e500.
1341
fbefca5b
EZ
13422002-08-22 Elena Zannoni <ezannoni@redhat.com>
1343
1344 * blockframe.c (generic_call_dummy_register_unwind): Use
1345 regcache_cooked_read to catch cases in which the variable is
1346 stored in a pseudo register.
1347
4d210288
AC
13482002-08-22 Andrew Cagney <cagney@redhat.com>
1349
1350 * NEWS: Mention that the i960 has been made obsolete.
1351 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1352 i960-tdep.c
1353 (remote-nrom.o): Obsolete target.
1354 (remote-nindy.o, i960-tdep.o): Ditto.
1355 * remote-nrom.c: Make file obsolete.
1356 * remote-nindy.c, remote-vx960.c: Ditto.
1357 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1358 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1359 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1360 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1361 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1362 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1363 i960-*-vxworks* obsolete.
1364 * MAINTAINERS: Note that the i960 is obsolete.
1365
6c0c456d
CV
13662002-08-21 Corinna Vinschen <vinschen@redhat.com
1367
1368 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1369 detach to allow reinitialization.
1370
9f9d12b3
AC
13712002-08-22 Andrew Cagney <ac131313@redhat.com>
1372
1373 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1374 attempt).
1375
ebeb39fe
JB
13762002-08-22 Jim Blandy <jimb@redhat.com>
1377
1378 * coffread.c (coff_symfile_read): Don't try to read the line
1379 number table from disk if the image file doesn't have a symbol
1380 table; we'll never actually look at the info anyway, and Windows
1381 ships DLL's with bogus file offsets for the line number data.
1382
5bf1c677
EZ
13832002-08-21 Elena Zannoni <ezannoni@redhat.com>
1384
1385 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1386 an e500 executable.
1387
71b8ef93
MS
13882002-08-21 Michael Snyder <msnyder@redhat.com>
1389
1390 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1391 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1392 (DEFAULT_MIPS_TYPE): Delete unused macro.
1393 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1394 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1395
d174216d
JB
13962002-08-21 Jim Blandy <jimb@redhat.com>
1397
1398 * valops.c (value_cast): Simplify and correct logic for doing a
1399 static cast from a pointer to a base class to a pointer to a
1400 derived class.
1401
0ab7a791
AC
14022002-08-21 Andrew Cagney <ac131313@redhat.com>
1403
1404 * infcmd.c (default_print_registers_info): Replace
1405 do_registers_info.
1406 (registers_info): Use gdbarch_print_registers_info instead of
1407 DO_REGISTERS_INFO.
1408 * inferior.h (default_print_registers_info): Replace
1409 do_registers_info.
1410 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1411 (DO_REGISTERS_INFO): Change to a predicate function.
1412 * gdbarch.h, gdbarch.c: Regenerate.
1413
e23792cc
KS
14142002-08-21 Keith Seitz <keiths@redhat.com>
1415
1416 * gdb-events.sh: Add target-changed event.
1417 * gdb-events.c: Regenerated.
1418 * gdb-events.c: Regenerated.
1419 * valops.c (value_assign): Add target-changed event notification
1420 to inlval_register, lval_memory, and lval_reg_frame_relative.
1421
9fb14e79
JB
14222002-08-21 Joel Brobecker <brobecker@gnat.com>
1423
1424 * NEWS: Add an entry regarding the improvement of the next/step
1425 operation on Alpha Tru64 multi-processor machines.
1426
6d39a69f
AC
14272002-08-21 Andrew Cagney <ac131313@redhat.com>
1428
72acd513
AC
1429 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1430 directores.
342af04b 1431 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1432 * Makefile.in (install-gdbtk): Move to install section.
1433 (rdi-share/libangsd.a): Move to end of file.
1434
fa5f27c7
AC
14352002-08-19 Andrew Cagney <ac131313@redhat.com>
1436
1437 * frame.c (frame_register_unwind): When a register, set addrp to
1438 the register's byte.
1439
5a89d8aa
MS
14402002-08-20 Michael Snyder <msnyder@redhat.com>
1441
1442 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1443 used locally, so move them from the target machine header to here.
1444 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1445 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1446 Make static.
1447 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1448
822e978b
AC
14492002-08-20 Andrew Cagney <cagney@redhat.com>
1450
1451 * NEWS: Mention that the Apollo line was made obsolete.
1452 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1453 m68*-hp-hpux* obsolete.
1454 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1455 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1456 * buildsym.c (make_blockvector): Make static.
1457 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1458 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1459 (ALLDEPFILES): Remove dstread.c.
1460 (dstread.o): Obsolete make rule.
1461 * dstread.c: Makefile obsolete.
1462 * dst.h: Ditto.
1463 * config/m68k/hp300hpux.mt: Ditto.
1464 * config/m68k/hp300hpux.mh: Ditto.
1465 * config/m68k/hp300bsd.mt: Ditto.
1466 * config/m68k/hp300bsd.mh: Ditto.
1467 * config/m68k/apollo68b.mt: Ditto.
1468 * config/m68k/apollo68v.mh: Ditto.
1469 * config/m68k/apollo68b.mh: Ditto.
1470
e41b17f0
MS
14712002-08-20 Michael Snyder <msnyder@redhat.com>
1472
1473 * mips-tdep.c (mips_in_return_stub): Make static.
1474 (mips_gdbarch_init): Set in_solib_return_trampoline.
1475 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1476
d50355b6
MS
14772002-08-20 Michael Snyder <msnyder@redhat.com>
1478
1479 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1480 * gdbarch.c, gdbarch.h: Regenerate.
1481 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1482 Add.
1483 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1484
757a7cc6
MS
14852002-08-20 Michael Snyder <msnyder@redhat.com>
1486
1487 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1488 (mips_gdbarch_init): Set skip_trampoline_code,
1489 in_solib_call_trampoline.
1490 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1491 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1492
c8001721
EZ
14932002-08-20 Elena Zannoni <ezannoni@redhat.com>
1494
1495 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1496
1497 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1498 vector type for ev registers.
1499 (e500_pseudo_register_read): New function.
1500 (e500_pseudo_register_write): New function.
1501 (e500_dwarf2_reg_to_regnum): New function.
1502 (PPC_UISA_NOFP_SPRS): New macro.
1503 (PPC_EV_REGS): New macro.
1504 (PPC_GPRS_PSEUDO_REGS): New macro.
1505 (registers_e500): New register set for e500.
1506 (variants): Add e500 variant.
1507 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1508 before setting architectural dependent variations. Initialize ev
1509 registers numbers. Add case for e500 architecture. Set the
1510 number of pseudo registers.
1511
64366f1c
EZ
15122002-08-20 Elena Zannoni <ezannoni@redhat.com>
1513
1514 * rs6000-tdep.c: Clean up comments.
1515
7e78f0ca
AC
15162002-08-20 Andrew Cagney <cagney@redhat.com>
1517
1518 * h8300-tdep.c: Re-indent file.
1519
697f7479
JB
15202002-08-20 Jim Blandy <jimb@redhat.com>
1521
1522 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1523 default for this.
697f7479 1524
e86ae29f
KS
15252002-08-20 Keith Seitz <keiths@redhat.com>
1526
1527 * breakpoints.c (watch_command_1): Use internal breakpoint
1528 when setting a watchpoint_scope breakpoint.
1529
216b504f
EZ
15302002-08-20 Elena Zannoni <ezannoni@redhat.com>
1531
1532 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1533 (build_builtin_type_vec64i): Ditto.
1534 (build_builtin_type_vec128): Ditto.
1535 (build_builtin_type_vec128i): Ditto.
1536
f7ab6ec6
MS
15372002-08-19 Michael Snyder <msnyder@redhat.com>
1538
1539 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1540 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1541 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1542 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1543 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1544 CALL_DUMMY_ADDRESS): Delete.
1545 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1546 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1547 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1548 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1549 push_return_address.
1550 (mips_register_raw_size, mips_eabi_use_struct_convention,
1551 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1552 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1553 mips_init_extra_frame_info, mips_eabi_push_arguments,
1554 mips_n32n64_push_arguments, mips_push_return_address,
1555 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1556 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1557
b5d1566e
MS
15582002-08-19 Michael Snyder <msnyder@redhat.com>
1559
1560 * mips-tdep.c (mips_frame_num_args): New function.
1561 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1562 frame_saved_pc, frame_args_address, frame_locals_address,
1563 frame_num_args, and frame_args_skip.
1564 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1565 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1566 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1567 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1568
2f1488ce
MS
15692002-08-20 Michael Snyder <msnyder@redhat.com>
1570
1571 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1572 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1573 * mips-tdep.c (mips_store_struct_return): New function.
1574 (mips_extract_struct_value_address): New function.
1575 (mips_gdbarch_init): Set store_struct_return and
1576 extract_struct_value_address.
1577
41ff2da1
DC
15782002-08-20 David Carlton <carlton@math.stanford.edu>
1579
1580 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1581 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1582 (read_file_scope): Check that line_header is nonzero before
1583 decoding macro information.
1584
e5451d58
MK
15852002-08-20 Mark Kettenis <kettenis@gnu.org>
1586
1587 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1588 flag the general-purpose registers as floating-point on targets
1589 that don't support the floating-point registers.
1590
4a6daafa
EZ
15912002-08-20 Elena Zannoni <ezannoni@redhat.com>
1592
1593 * rs6000-tdep.c (altivec_register_p): Delete.
1594 (rs6000_do_altivec_registers): Delete.
1595 (rs6000_altivec_registers_info): Delete.
1596 (rs6000_do_registers_info): Delete.
1597 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1598 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1599
ab4327e0
EZ
16002002-08-20 Elena Zannoni <ezannoni@redhat.com>
1601
1602 * infcmd.c (do_registers_info): Print vector registers in hex
1603 format only.
1604 (print_vector_info): Check that printing registers
1605 makes sense.
1606 (print_float_info): Ditto.
1607
cb1d2653
AC
16082002-08-20 Andrew Cagney <ac131313@redhat.com>
1609
1610 * mips-tdep.c (mips_gdbarch_init): Update.
1611 (mips_o32_extract_return_value): Rewrite.
1612 (mips_o32_store_return_value): Rewrite.
1613 (mips_o32_xfer_return_value): New function.
1614 (mips_xfer_register): Tweak debug print message. Allow for
1615 buf_offset when dumping the value transfered.
1616
dfc3d9b2
AC
16172002-08-20 Andrew Cagney <ac131313@redhat.com>
1618
1619 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1620 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1621 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1622 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1623 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1624
7807aa61
MS
16252002-08-14 Michael Snyder <msnyder@redhat.com>
1626
1627 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1628
489461e2
EZ
16292002-08-19 Elena Zannoni <ezannoni@redhat.com>
1630
1631 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1632 register.
1633 (P): New macro to define a register as a pseudo register.
1634 (R, R4, R8, R16, FR32, R64, R0): Updated.
1635 (struct variant): Add new fields for number of pseudo registers
1636 and number of total registers.
1637 (tot_num_registers): New macro replacing....
1638 (num_registers): ...deleted macro.
1639 (num_registers): New function.
1640 (num_pseudo_registers): New function.
1641 (variants): Update all variants to intialize new fields correctly.
1642 Postpone initialization of number of pseudo regs and real regs.
1643 (init_variants): New function.
1644 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1645 registers offsets.
1646
fcaffe4c
DC
16472002-08-19 David Carlton <carlton@math.stanford.edu>
1648
2c2738a0
DC
1649 * valops.c (search_struct_field): Change error message to treat
1650 return value of 0 from value_static_field as meaning that field is
1651 optimized out.
1652 (value_struct_elt_for_reference): Ditto.
1653 * values.c (value_static_field): Treat an unresolved location the
1654 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1655 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1656 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1657 * MAINTAINERS: Add self to Write After Approval list.
1658
88658117
AC
16592002-08-19 Andrew Cagney <ac131313@redhat.com>
1660
1661 * mips-tdep.c (mips_xfer_register): New function.
1662 (mips_n32n64_extract_return_value): Rewrite.
1663 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1664 instead of deprecated_extract_return_value.
1665
21283beb
EZ
16662002-08-19 Elena Zannoni <ezannoni@redhat.com>
1667
1668 * rs6000-tdep.c (TDEP): Delete macro.
1669 (branch_dest): Replace use of TDEP macro with its body.
1670 (rs6000_pop_frame): Ditto.
1671 (rs6000_push_arguments): Ditto.
1672 (rs6000_skip_trampoline_code): Ditto.
1673 (rs6000_frame_saved_pc): Ditto.
1674 (rs6000_frame_chain): Ditto.
1675 (rs6000_register_name): Ditto.
1676 (rs6000_register_byte): Ditto.
1677 (rs6000_register_raw_size): Ditto.
1678 (rs6000_register_virtual_type): Ditto.
1679 (rs6000_register_convertible): Ditto.
1680 (rs6000_convert_from_func_ptr_addr): Ditto.
1681
bf072999
DJ
16822002-08-19 Daniel Jacobowitz <drow@mvista.com>
1683
1684 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1685 conditionally.
1686 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1687 MIPS_LINUX_JB_ELEMENT_SIZE.
1688 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1689 for MAX_REGISTER_RAW_SIZE arrays.
1690 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1691 MIPS_LINUX_JB_ELEMENT_SIZE.
1692
9b949a49
PM
16932002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1694
1695 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1696
6d3e79c6
AS
16972002-08-19 Aidan Skinner <aidan@velvet.net>
1698
1699 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1700 ada-valprint.c ada-tasks.c.
1701 (YYFILES): Add ada-exp.y.
1702 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1703 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1704 (ada-exp.tab.o): New target.
1705
06c0b04e
AC
17062002-08-18 Andrew Cagney <ac131313@redhat.com>
1707
1708 * regcache.c (regcache_xfer_part): New function.
1709 (regcache_raw_read_part): New function.
1710 (regcache_raw_write_part): New function.
1711 (regcache_cooked_read_part): New function.
1712 (regcache_cooked_write_part): New function.
1713 * regcache.h (regcache_raw_read_part): Declare.
1714 (regcache_raw_write_part): Declare.
1715 (regcache_cooked_read_part): Declare.
1716 (regcache_cooked_write_part): Declare.
1717
92d1e331
DJ
17182002-08-18 Daniel Jacobowitz <drow@mvista.com>
1719
1720 * remote.c (remote_open_1): Add async_p.
1721 (remote_async_open_1): Delete.
1722 (open_remote_target): Delete.
1723 (remote_open, extended_remote_open): Update calls to remote_open_1.
1724 (remote_async_open, extended_remote_async_open): Call
1725 remote_open_1 instead of remote_async_open_1.
1726
247055de
MK
17272002-08-19 Mark Kettenis <kettenis@gnu.org>
1728
1729 * blockframe.c: Fix a few coding standard violations.
1730
641eda39
MK
17312002-08-19 Mark Kettenis <kettenis@gnu.org>
1732
0b717710
MK
1733 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1734 here from ...
1735 * config/i386/tm-i386sco5.h: ... here. File removed.
1736 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1737
26d28e12 1738 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1739 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1740 (TM_FILE): Set to tm-i386.h.
1741 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1742 * config/i386/tm-i386v.h: Remove file.
1743 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1744 instead of "i386/tm-i386v.h".
1745 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1746 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1747 "i386/tm-i386v.h".
1748 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1749 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1750 "i386/tm-i386.h".
1751
d4e0bab4
MK
17522002-08-18 Mark Kettenis <kettenis@gnu.org>
1753
1754 * config/i386/nm-i386v.h: Add protection against
1755 multiple-inclusion.
1756 (i386_register_u_addr): Remove prototype.
1757 (register_u_addr): New prototype.
1758 (REGISTER_U_ADDR): Redefine accordingly.
1759 * i386v-nat.c: Improve several comments.
1760 (i386_register_u_addr): Change signature and rename to
1761 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1762 ubase variable.
1763
46cac009
AC
17642002-08-18 Andrew Cagney <ac131313@redhat.com>
1765
1766 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1767 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1768 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1769 deprecated_extract_return_value.
1770 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1771 rename mips_o32o64_push_arguments.
1772 (mips_gdbarch_init): Update.
1773 (mips_extract_return_value): Delete.
1774 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1775 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1776 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1777 (mips_n32n64_extract_return_value): Clone
1778 mips_extract_return_value.
1779 (mips_store_return_value): Delete.
1780 (mips_o32_store_return_value): Clone mips_store_return_value.
1781 (mips_o64_store_return_value): Clone mips_store_return_value.
1782 (mips_eabi_store_return_value): Clone mips_store_return_value.
1783 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1784
d2e4a39e
AS
17852002-08-18 Aidan Skinner <aidan@velvet.net>
1786
0c30c098
AS
1787 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1788 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1789
17902002-08-18 Aidan Skinner <aidan@velvet.net>
1791
1792 * ada-lang.c: Run through gdb_indent.sh.
1793 * ada-lang.h: Run through gdb_indent.sh.
1794 * ada-tasks.c: Run through gdb_indent.sh.
1795 * ada-typeprint.c: Run through gdb_indent.sh.
1796 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1797
01fc4e33
AC
17982002-08-18 Andrew Cagney <ac131313@redhat.com>
1799
1800 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1801 ABI.
1802
d8ee244c
MK
18032002-08-18 Mark Kettenis <kettenis@gnu.org>
1804
c38d8261
MK
1805 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1806
222db64c
MK
1807 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1808 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1809
c2848c82
MK
1810 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1811 write_register_gen instead of write_register_bytes.
1812
d8ee244c
MK
1813 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1814 i[3456]-*-osf1mk* configurations have been made obsolete.
1815 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1816 i[3456]86-*-osf1mk* hosts obsolete.
1817 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1818 targets obsolete.
1819 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1820 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1821 config/i386/i386m3.mt, config/i386/nm-m3.h,
1822 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1823 config/i386/i386mk.mh, config/i386/i386mk.mt,
1824 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1825 obsolete.
1826 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1827 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1828 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1829
61d8d407
AC
18302002-08-18 Andrew Cagney <ac131313@redhat.com>
1831
1832 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1833 (hppa_value_returned_from_stack): Declare.
1834 (hppa_extract_return_value): Declare.
1835 * config/pa/hppa.mt: New file.
1836 * configure.tgt: Recognize hppa*-*-*.
1837 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1838
0c52bd59
MK
18392002-08-18 Mark Kettenis <kettenis@gnu.org>
1840
1841 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1842 comment.
1843
b5686e99
MK
18442002-08-17 Mark Kettenis <kettenis@gnu.org>
1845
1846 * top.c (gdb_rl_operate_and_get_next): Make sure
1847 operate-and-get-next functions correctly even when the history
1848 list is completely filled.
1849
c1bab85b
AC
18502002-08-18 Andrew Cagney <ac131313@redhat.com>
1851
1852 * MAINTAINERS (Target Instruction Set Architectures): Rename
1853 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1854 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1855 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1856 already listed under Host/Native.
1857
1858 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1859 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1860 mips*-*-*.
1861
32089c7c
AC
18622002-08-17 Andrew Cagney <ac131313@redhat.com>
1863
1864 * config/ia64/ia64.mt: New file.
1865 * config/alpha/alpha.mt: New file.
1866 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1867 ia64-linux-gnu. Mention that ia64-elf is broken.
1868 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1869
b4671f85
MK
18702002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1871
1872 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1873 generic_func_frame_valid instead of func_frame_valid.
1874
c8edd8b4
JB
18752002-08-16 Joel Brobecker <brobecker@gnat.com>
1876
1877 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1878 procfs appears to be broken when debugging on multi-processor
1879 machines. So enable software single stepping in order to avoid
1880 using the procfs interface to do next/step operations, using
1881 internal breakpoints instead.
1882
1883 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1884 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1885 make this pc address equal to the value it would have if the
1886 system stepping capability was used. Also set a new flag used
1887 to ensure that we don't readjust the PC one more time later.
1888
1889 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1890 address by DECR_PC_AFTER_BREAK when software single step is
1891 in use for this architecture, as this has already been taken
1892 care of in handle_inferior_event().
1893
238617f6
JB
18942002-08-16 Joel Brobecker <brobecker@gnat.com>
1895
1896 * infrun.c (handle_inferior_event): Minor reformatting, to make
1897 a rather long condition expression easier to read.
1898
541a7aac
AC
18992002-08-16 Andrew Cagney <ac131313@redhat.com>
1900
1901 * Makefile.in (gdbtk.o): Move to end of file.
1902 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1903 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1904 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1905 (gdbtk-wrapper.o, gdbres.o): Ditto.
1906
f92d4a7b
AC
19072002-08-16 Andrew Cagney <ac131313@redhat.com>
1908
1909 * Makefile.in (copying.o): Separate out compile rule.
1910 (hpux-thread.o, procfs.o, signals.o): Ditto.
1911 (v850ice.o, z8k-tdep.o): Ditto.
1912 (tui-file.o): Move to TUI section.
1913 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1914 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1915
1cce71eb
JB
19162002-08-16 Joel Brobecker <brobecker@gnat.com>
1917
1918 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1919 skip_trampoline_code, for better namespace-proofing.
1920
1921 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1922
0851f23d
JB
19232002-08-16 Joel Brobecker <brobecker@gnat.com>
1924
1925 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1926
f8d40ec8
JB
19272002-08-16 Joel Brobecker <brobecker@gnat.com>
1928
1929 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1930 signal, check whether we hit a breakpoint before checking for a
1931 single step breakpoint. Otherwise, GDB fails to notice that a
1932 breakpoint has been hit when stepping onto a breakpoint.
1933
63d022e0
KS
19342002-08-16 Keith Seitz <keiths@redhat.com>
1935
1936 * gdb-events.sh (clear_gdb_event_hooks): New function.
1937 * gdb-events.c: Regenerate.
1938 * gdb-events.h: Regenerate.
1939
6e31adb3
AC
19402002-08-16 Andrew Cagney <ac131313@redhat.com>
1941
1942 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1943 not_a_sw_breakpoint.
1944 * breakpoint.h (bpstat_stop_status): Add parameter names.
1945
c8189ed1
GS
19462002-08-16 Grace Sainsbury <graces@redhat.com>
1947
1948 * remote.c (remote_insert_hw_breakpoint)
1949 (remote_remove_hw_breakpoint): Fix calculation of length field
1950 for Z-packet.
1951
d05285fa
MS
19522002-08-15 Michael Snyder <msnyder@redhat.com>
1953
466d7106
MS
1954 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1955 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1956 (supply_fpregset): Ditto.
1957
d05285fa
MS
1958 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1959 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1960 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1961 (TARGET_READ_SP): Delete.
bf1f5b4c 1962 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1963 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1964 Delete.
1965 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1966 from macros to functions.
bf1f5b4c 1967
d05285fa
MS
1968 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1969 (mips_register_convertible, mips_register_convert_to_virtual,
1970 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1971 (mips_read_sp): New function.
1972 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1973 (mips_do_registers_info): Make static.
1974 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1975 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1976 (mips_register_convert_from_type, mips_register_convert_to_type):
1977 New functions.
1978 (mips_gdbarch_init): Set up function_start_offset,
1979 register_virtual_size, pc_in_sigtramp.
d05285fa 1980
e76f1f2e
AC
19812002-08-15 Andrew Cagney <ac131313@redhat.com>
1982
1983 * infcmd.c (vector_info): New function.
1984 (_initialize_infcmd): Add command "info vector".
1985 (print_vector_info): New function.
1986
1987 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1988 * gdbarch.h, gdbarch.c: Regenerate.
1989
4782dc19
AC
19902002-08-15 Andrew Cagney <ac131313@redhat.com>
1991
1992 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1993 ``print_all''. Only print vector registers when ``print_all''.
1994
23e3a7ac
AC
19952002-08-15 Andrew Cagney <ac131313@redhat.com>
1996
8e186fd6
AC
1997 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1998 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1999
23e3a7ac
AC
2000 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2001 Add `args' parameter.
2002 * gdbarch.h, gdbarch.c: Regenerate.
2003
2004 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2005
2006 * infcmd.c (float_info): Call print_float_info.
2007 (print_float_info): New function. By default, print the
2008 floating-point registers.
2009
2010 * arch-utils.h (default_print_float_info): Delete declaration.
2011 * arch-utils.c (default_print_float_info): Delete function.
2012
e0ca2bb9
MK
20132002-08-16 Mark Kettenis <kettenis@gnu.org>
2014
3f733acc
MK
2015 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2016 out define.
2017
7d8d2918
MK
2018 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2019 FRAME.
2020
1c7cc583
MK
2021 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2022 * configure.host: Make i[3456]86-*-aix host obsolete.
2023 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2024 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2025 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2026 config/i386/xm-i386aix.h: Make files obsolete.
2027 * i386aix-nat.c: Make file obsolete.
2028 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2029 (i386aix-nat.o): Make target obsolete.
2030
e0ca2bb9
MK
2031 * config/i386/nm-gnu.h: Removed.
2032 * config/i386/nm-i386gnu.h: New file.
2033 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2034 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2035 Moved here from ...
2036 * config/i386/tm-i386gnu.h: ... here. Removed.
2037 * config/i386/xm-i386gnu.h: Removed.
2038 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2039 (NAT_FILE): Set to nm-i386gnu.h.
2040 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2041 * i386-tdep.c: New file.
2042 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2043 (i386gnu-tdep.o): Specify dependencies.
2044
16057ec7 20452002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2046
6b99ee2e
MK
2047 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2048 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2049 Adjust a few comments to reflect reality a bit closer.
2050 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2051 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2052 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2053 target_insert_watchpoint, target_remove_watchpoint):
2054 Move defines to ...
2055 * config/i386/nm-i386sco5.h: ... here.
2056 (kernel_u_size): Add prototype. Improve a few comments and add
2057 protection against multiple inclusion.
2058
d9a6f65c
MK
2059 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2060 out define.
2061
047eff6a
MK
2062 * uw-thread.c (SP_ARG0): Define if not already defined.
2063 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2064
dcdb1290
MK
2065 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2066
5d2d0b2a
MK
2067 * config/i386/tm-i386.h: Don't include "regcache.h".
2068
61113f8b
MK
2069 * i387-tdep.h (i387_print_float_info): New prototype.
2070 * i387-tdep.c (print_i387_value, print_i387_ext,
2071 print_i387_status_word, print_i387_control_word): Add `struct
2072 ui_file *' argument and use it for output.
2073 (i387_print_float_info): Renamed from i387_float_info. Add
2074 `struct gdbarch *' and `struct ui_file *' arguments and use the
2075 latter for output.
2076 * i386-tdep.c: Include "i387-tdep.h".
2077 (i386_gdbarch_init): Set print_float_info.
2078 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2079 (FLOAT_INFO): Remove define.
2080
46e0f506
MS
20812002-08-13 Michael Snyder <msnyder@redhat.com>
2082
2083 * mips-tdep.c (mips_push_arguments): Rename to
2084 mips_eabi_push_arguments, and tune for EABI.
2085 (MIPS_REGS_HAVE_HOME_P): Delete.
2086 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2087 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2088 Delete references to mips_regs_have_home_p.
2089
409268de
KS
20902002-08-14 Keith Seitz <keiths@redhat.com>
2091
2092 * Makefile.in (install-gdbtk): Create insight plugin directory.
2093 Install plugins.tcl file.
2094
ffc6a242
KS
20952002-08-14 Keith Seitz <keiths@redhat.com>
2096
2097 * configure.in: Move SUBDIRS to near top of the file so that
2098 --enable options may add things to it.
2099 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2100 * configure: Regenerate.
2101
ebafbe83
MS
21022002-08-13 Michael Snyder <msnyder@redhat.com>
2103
2104 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2105 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2106 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2107
32f6f25d
AC
21082002-08-13 Andrew Cagney <ac131313@redhat.com>
2109
2110 * vax-tdep.c (vax_get_saved_register): Delete function.
2111 (vax_gdbarch_init): Update.
2112 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2113 (ns32k_gdbarch_init): Update.
2114 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2115 (alpha_gdbarch_init): Update.
2116
53826de9
AC
21172002-08-13 Andrew Cagney <cagney@redhat.com>
2118
2119 * regcache.c (init_regcache_descr): Overallocate the
2120 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2121 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2122 nr_raw_registers.
2123 (set_register_cached): Add range checking assertions. Use
2124 current_regcache.
2125
16057ec7 21262002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2127
2128 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2129 numbers for MMX registers.
2130
7b4c2dce
AC
21312002-08-13 Andrew Cagney <cagney@redhat.com>
2132
2133 * i386-tdep.c (i386_gdbarch_init): Use
2134 generic_unwind_get_saved_register.
2135
1e03ad20
KB
21362002-08-13 Kevin Buettner <kevinb@redhat.com>
2137
2138 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2139 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2140 target vector.
2141 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2142 Delete. Add comment regarding this now-deleted target method.
2143
548bcbec
SC
21442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2145
2146 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2147 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2148 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2149 real PC and the page number (if it's within the memory bank window).
2150 (m68hc11_pseudo_register_write): Likewise when saving.
2151 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2152 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2153 (m68hc11_register_raw_size): And use 32-bit for it.
2154 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2155 16K memory bank is used by the prog; also use the virtual pc.
2156
7df11f59
SC
21572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2158
2159 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2160 (m68hc11_gdbarch_init): Install it in gdbarch.
2161 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2162 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2163 (MSYMBOL_SIZE): New for documentation.
2164 (insn_return_kind): Enum to specify how a function returns.
2165 (frame_extra_info): Cleanup and record the return mode.
2166 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2167 register in address computation.
2168 (m68hc11_get_return_insn): New to obtain the return instruction used
2169 by the function.
2170 (m68hc11_frame_init_saved_regs): Take into account the return
2171 instruction used by the function for far and interrupt functions.
2172 (m68hc11_init_extra_frame_info): Take into account page register.
2173 (m68hc11_frame_args_address): Adjust according to the return mode.
2174 (show_regs): Print page register only when it's used.
2175
5706502a
SC
21762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2177
2178 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2179 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2180 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2181 registers.
2182 (m68hc11_register_raw_size): Likewise.
2183
28fc6740
AC
21842002-08-13 Andrew Cagney <cagney@redhat.com>
2185
2186 * i386-tdep.c (i386_register_name): Handle mmx registers.
2187 (mmx_regnum_p): New function.
2188 (i386_mmx_names): New array.
2189 (mmx_num_regs): New variable.
2190 (i386_pseudo_register_read): New function.
2191 (i386_pseudo_register_write): New function.
2192 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2193
2194 * regcache.c (regcache_raw_read_unsigned): New function.
2195 (regcache_raw_read_signed): New function.
2196 * regcache.h (regcache_raw_read_unsigned): Declare.
2197 (regcache_raw_read_signed): Declare.
2198
a378f419
AC
21992002-08-13 Andrew Cagney <cagney@redhat.com>
2200
2201 * regcache.c (regcache_raw_read_as_address): Delete function.
2202 (regcache_cooked_read_signed): New function.
2203 (regcache_cooked_read_unsigned): New function.
2204 * regcache.h (regcache_cooked_read_signed): Declare.
2205 (regcache_cooked_read_unsigned): Declare.
2206 (regcache_raw_read_as_address): Delete declaration.
2207
2208 * blockframe.c (generic_read_register_dummy): Use
2209 regcache_cooked_read_unsigned.
2210 * i386-tdep.c (i386_extract_struct_value_address): Use
2211 regcache_cooked_read_unsigned.
2212
81967506
SC
22132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2214
2215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2216 double sizes according to ELF ABI flags.
2217 (gdbarch_tdep): Record elf_flags.
2218
ffe1f3ee
SC
22192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2220
2221 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2222 (m6812_prolog): They can appear in 68HC12 function prologue.
2223 (m68hc11_frame_chain): Cleanup.
2224
98216c5d
AC
22252002-08-12 Andrew Cagney <cagney@redhat.com>
2226
2227 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2228 declarations.
2229 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2230 (i386_linux_register_raw_size): Delete function.
2231 (i386_linux_init_abi): Update.
2232 * i386-tdep.c (i386_register_raw_size): Delete function.
2233 (i386_register_byte): Delete function.
2234 (i386_gdbarch_init): Update.
2235 (i386_register_size): Delete array.
2236 (i386_register_offset): Delete array.
2237
2238 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2239 (REGISTER_RAW_SIZE): Delete macro.
2240 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2241 (REGISTER_BYTE): Delete macro.
2242
3b19021e
AS
22432002-08-11 Aidan Skinner <aidan@velvet.net>
2244
2245 * ada-lang.c (ada_lookup_partial_symbol)
2246 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2247 prototype names so that grep ^func works properly.
2248
2249 * ada-lang.c (ada_array_element_type)
2250 (ada_lookup_partial_symbol): Fix typos in parameter list.
2251
2252 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2253 Fix prototype names so that grep ^func works properly.
2254
b063e7a2
AC
22552002-08-10 Andrew Cagney <cagney@redhat.com>
2256 Elena Zannoni <ezannoni@redhat.com>
2257 Martin M. Hunt <hunt@redhat.com>
2258
2259 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2260 (build_builtin_type_vec128i): Set the vector bit.
2261 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2262 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2263 (build_builtin_type_vec64): New function.
2264 (build_builtin_type_vec64i): New function.
2265 (build_gdbtypes): Initialize builtin_type_vec64 and
2266 builtin_type_vec64i.
2267
a7e3c2ad
AC
22682002-08-09 Andrew Cagney <cagney@redhat.com>
2269
2270 * regcache.c (regcache_dump): Compare the register offset
2271 with REGISTER_BYTE.
2272 * arch-utils.c (generic_register_byte): New function.
2273 * arch-utils.h (generic_register_byte): Declare.
2274 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2275 * gdbarch.h, gdbarch.c: Regenerate.
2276
af030b9a
AC
22772002-08-09 Andrew Cagney <cagney@redhat.com>
2278
2279 * regcache.c: Include "gdbcmd.h"
2280 (_initialize_regcache): Add commands "maintenance print
2281 registers", "maintenance print raw-registers" and "maintenance
2282 print cooked-registers".
2283 (enum regcache_dump_what): Define.
2284 (dump_endian_bytes): New function.
2285 (regcache_dump): New function.
2286 (regcache_print): New function.
2287 (maintenance_print_registers): New function.
2288 (maintenance_print_raw_registers): New function.
2289 (maintenance_print_cooked_registers): New function.
2290 * Makefile.in (regcache.o): Update dependencies.
2291
cb3d25d1
MS
22922002-08-09 Michael Snyder <msnyder@redhat.com>
2293
2294 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2295 (mips_push_arguments): Correct some comments. Use paddr_nz
2296 for printing addresses in debug output. Replace static
2297 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2298 (mips_n32n64_push_arguments): New function, cloned from
2299 mips_push_arguments and tuned for the n32/n64 ABI.
2300 (mips_push_register): Buffer needs dynamic allocation.
2301 (mips_print_register): Ditto.
2302 (do_gp_register_row): Ditto.
2303 (mips_store_return_value): Ditto.
2304 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2305
2163ab9d
DH
23062002-08-09 Don Howard <dhoward@redhat.com>
2307
2308 * memattr.c (mem_info_command): Print special case of upper bound
2309 as max CORE_ADDR + 1.
2310
b78bcb18
MS
23112002-08-08 Michael Snyder <msnyder@redhat.com>
2312
2313 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2314 returns structs by ref if they're too big to fit in two registers.
2315
ffabd70d
KB
23162002-08-09 Kevin Buettner <kevinb@redhat.com>
2317
2318 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2319 saved regs value.
2320 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2321 mips_find_saved_regs().
2322 (mips_pop_frame): Likewise.
2323
fbcdb4a3
KB
23242002-08-09 Kevin Buettner <kevinb@redhat.com>
2325
2326 * blockframe.c (frame_saved_regs_register_unwind): Revise
2327 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2328 frames are in use.
2329
3c3bea1c
GS
23302002-08-09 Grace Sainsbury <graces@redhat.com>
2331
2332 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2333 T-packets; the 'a' is not taken as a register number.
2334 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2335 (remote_stopped_data_address): New functions; add to target
2336 vector.
2337 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2338 prototypes to match other implementations of this
2339 function. replace integer argument with pointer -- the length
2340 field in the Z-packet is the length of what is pointed to or 1 if
2341 pointer is null. Add to target vector.
2342 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2343 target vector.
2344
2345 From Mark Salter:
2346 * remote.c (remote_wait): Add support to extract optional
2347 watchpoint information from T-packet. Ignore unrecognized
2348 optional info in T-packet.
2349 (remote_async_wait): Ditto.
2350
5d1d95de
CV
23512002-08-09 Corinna Vinschen <vinschen@redhat.com>
2352
2353 * cli/cli-dump.c: Change fopen modes to use binary open modes
2354 as defined in include/fopen-bin.h throughout.
2355
c86b5b38
MS
23562002-08-08 Michael Snyder <msnyder@redhat.com>
2357
2358 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2359
b30590dc
KB
23602002-08-08 Kevin Buettner <kevinb@redhat.com>
2361
2362 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2363 assertion failure by returning early after a warning.
2364
498868ed
KB
23652002-08-08 Kevin Buettner <kevinb@redhat.com>
2366
2367 * mips-tdep.c (mips_find_saved_regs): Make static.
2368 (mips_frame_init_saved_regs): New function.
2369 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2370 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2371 (mips_find_saved_regs): Delete declaration.
2372
b2dd6311
GS
23732002-08-08 Grace Sainsbury <graces@redhat.com>
2374
3c3bea1c
GS
2375 * remote.c (remote_wait, remote_async_wait): Change
2376 thread_num from int to ULONGEST.
2377 (unpack_varlen_hex): Change result parameter from
2378 int * to ULONGEST *.
b2dd6311 2379
ea47855f
AC
23802002-08-08 Andrew Cagney <ac131313@redhat.com>
2381
2382 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2383 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2384 powerpc*-*-*.
2385 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2386
69db8bae
AC
23872002-08-08 Andrew Cagney <cagney@redhat.com>
2388
2389 * gcore.c (override_derive_stack_segment): Delete variable.
2390 (preempt_derive_stack_segment): Delete function.
2391 (derive_stack_segment): Delete function.
2392 (default_derive_stack_segment): Renamed to derive_stack_segment.
2393 (override_derive_heap_segment): Delete variable.
2394 (preempt_derive_heap_segment): Delete function.
2395 (derive_heap_segment): Delete function.
2396 (default_derive_heap_segment): Rename to derive_heap_segment.
2397
cb811fe7
MS
23982002-08-06 Michael Snyder <msnyder@redhat.com>
2399
2400 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2401 * mips-tdep.c (mips_EABI_use_struct_convention,
2402 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2403 New functions. (mips_use_struct_convention): Delete.
2404 (mips_gdbarch_init): set use_gdbarch_convention.
2405
8b389c40
MS
24062002-08-06 Michael Snyder <msnyder@redhat.com>
2407
2408 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2409 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2410 mips_o32_reg_struct_has_addr): New functions.
2411 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2412
5c27f28a
AC
24132002-08-07 Andrew Cagney <ac131313@redhat.com>
2414
2415 * regcache.c (pseudo_register): Delete function.
2416 (fetch_register): Delete function.
2417 (store_register): Delete function.
2418 (regcache_raw_read, legacy_read_register_gen): Use
2419 target_fetch_registers instead of fetch_register.
2420 (legacy_write_register_gen, regcache_raw_write): Use
2421 target_store_register instead of store_register.
2422 (write_register_bytes): Ditto.
2423
2424 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2425 (STORE_PSEUDO_REGISTER): Delete.
2426 * gdbarch.h, gdbarch.c: Regenerate.
2427
5b331675
CV
24282002-08-06 Corinna Vinschen <vinschen@redhat.com>
2429
2430 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2431 write dump file binary.
2432
6acdf5c7
MS
24332002-08-05 Michael Snyder <msnyder@redhat.com>
2434
2435 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2436 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2437 (mips_gdbarch_init): Set N32 target to be mips64.
2438
b2f01c35
KB
24392002-08-06 Kevin Buettner <kevinb@redhat.com>
2440
2441 * frame.c (find_saved_register): Break out of loop once saved
2442 register address is found. Don't mention sparc in loop comment
2443 anymore.
2444
63db5580
KB
24452002-08-06 Kevin Buettner <kevinb@redhat.com>
2446
2447 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2448 mips_default_saved_regsize to 8.
2449
5e34e75e
AC
24502002-08-06 Andrew Cagney <ac131313@redhat.com>
2451
2452 * gcore.c: Do not include <sys/procfs.h>.
2453 * Makefile.in (gcore.o): Update dependencies.
2454
eb4c54a2
AC
24552002-08-06 Andrew Cagney <cagney@redhat.com>
2456
2457 * configure.tgt: Make arc-*-* obsolete.
2458 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2459 * MAINTAINERS: Make arc-elf obsolete.
2460 * arc-tdep.c: Make file obsolete.
2461 * config/arc/arc.mt: Ditto.
2462 * config/arc/tm-arc.h: Ditto.
2463
ced15480
TR
24642002-08-05 Theodore A. Roth <troth@verinet.com>
2465
c1bab85b 2466 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2467
b4743822
AC
24682002-08-05 Andrew Cagney <ac131313@redhat.com>
2469
2470 * mcore-tdep.c (mcore_gdbarch_init): Use
2471 generic_unwind_get_saved_register instead of
2472 generic_get_saved_register.
2473 * v850-tdep.c (v850_gdbarch_init): Ditto.
2474 * frv-tdep.c (frv_gdbarch_init): Ditto.
2475 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2476 * s390-tdep.c (s390_gdbarch_init): Ditto.
2477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2478 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2479 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2480
3956d554
JB
24812002-08-05 Joel Brobecker <brobecker@gnat.com>
2482
2483 * objfiles.h: Add missing #include "symfile.h"
2484
2485 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2486
8249c0d6
AC
24872002-08-04 Andrew Cagney <ac131313@redhat.com>
2488
2489 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2490 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2491 of FIELD_BITSIZE.
2492
b9d14705
DJ
24932002-08-04 Daniel Jacobowitz <drow@mvista.com>
2494
2495 * NEWS: Cleanup and nitpick.
2496
dd73b9bb
AC
24972002-08-03 Andrew Cagney <ac131313@redhat.com>
2498
2499 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2500
043a27f8
AC
25012002-08-03 Andrew Cagney <ac131313@redhat.com>
2502
2503 * Makefile.in (gdbtk-bp.o): Update dependencies.
2504 (gdbtk-register.o): Ditto.
2505 (gdbtk-varobj.o): Ditto.
2506
46ce284d
AC
25072002-08-03 Andrew Cagney <cagney@redhat.com>
2508
2509 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2510 m68hc11_fetch_pseudo_register.
2511 (m68hc11_pseudo_register_write): Replace
2512 m68hc11_store_pseudo_register.
2513 (m68hc11_gdbarch_init): Update.
2514
b66d6d2e
AC
2515Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2516
2517 * gdbarch.sh: Include "gdb_string.h".
2518 * gdbarch.c: Regenerate.
2519
2520 * regcache.c: Include "gdb_string.h".
2521 * ax-general.c: Ditto.
2522 * varobj.c: Ditto.
2523 * std-regs.c: Ditto.
2524 * fbsd-proc.c: Ditto.
2525 * thread.c: Ditto.
2526
2527 * Makefile.in (regcache.o): Update dependencies.
2528 (thread.o, gdbarch.o): Ditto.
2529 (ax-general.o, gdbarch.o): Ditto.
2530 (varobj.o, std-regs.o): Ditto.
2531 (fbsd-proc.o): Specify dependencies.
2532
29e1842b
AC
25332002-08-02 Andrew Cagney <cagney@redhat.com>
2534
2535 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2536 regnum.
2537 (regcache_cooked_write): Ditto.
2538
68365089
AC
25392002-08-02 Andrew Cagney <ac131313@redhat.com>
2540
2541 * regcache.c (regcache_cooked_read): New function.
2542 (regcache_cooked_write): New function.
2543 (read_register_gen): Rewrite using regcache_cooked_read.
2544 (write_register_gen): Rewrite using regcache_cooked_write.
2545
2546 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2547 Declare.
2548
d8124050
AC
25492002-08-02 Andrew Cagney <cagney@redhat.com>
2550
2551 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2552 Replace the architecture methods register_read and register_write.
2553 * gdbarch.h, gdbarch.c: Regenerate.
2554 * regcache.c (init_regcache_descr): Update.
2555 (read_register_gen): Update.
2556 (write_register_gen): Update.
2557 (supply_register): Update comment.
2558
2559 * sh-tdep.c (sh_gdbarch_init): Update.
2560 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2561 `regcache' and `gdbarch' parameters. Make `buffer' a void
2562 pointer. Update code.
2563 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2564 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2565 void pointer. Update code.
2566 (sh64_register_write): Delete.
2567 (sh4_register_read): Delete.
2568 (sh64_register_read): Delete.
2569 (sh4_register_write): Delete.
2570 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2571 void pointer, `to' parameter a void pointer.
2572 (sh_sh64_register_convert_to_raw): Ditto.
2573
a6425924
KB
25742002-08-01 Kevin Buettner <kevinb@redhat.com>
2575
2576 * mips-tdep.c (mips_register_virtual_type): Use architecture
2577 invariant return values.
2578
ff5922b5
AC
25792002-08-01 Andrew Cagney <cagney@redhat.com>
2580
2581 * linux-proc.c: Include "gdb_string.h".
2582 * Makefile.in (linux-proc.o): Update dependency list.
2583
32a6503c
KB
25842002-08-01 Kevin Buettner <kevinb@redhat.com>
2585
2586 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2587 comment.
2588
ccaa32c7
GS
25892002-08-01 Grace Sainsbury <graces@redhat.com>
2590
2591 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2592 to_insert_watchpoint, to_remove_watchpoint,
2593 to_stopped_by_watchpoint, to_stopped_data_address,
2594 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2595 target vecctor. Define their corresponding macros so they call
2596 them.
2597
2598 * target.c: Add default and debug versions of for
2599 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2600 to_insert_watchpoint, to_remove_watchpoint,
2601 to_stopped_by_watchpoint, to_stopped_data_address,
2602 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2603
78fde5f8
KB
26042002-08-01 Kevin Buettner <kevinb@redhat.com>
2605
2606 * mips-tdep.c (mips_register_virtual_type): New function.
2607 (mips_gdbarch_init): Register mips_register_virtual_type()
2608 with gdbarch machinery.
2609 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2610 this file instead of tm-bigmips.h.
2611 (MIPS_REGSIZE): Delete this macro.
2612 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2613 multiarch version in mips-tdep.c will be found.
2614
db034ac5
AC
26152002-08-01 Andrew Cagney <cagney@redhat.com>
2616
2617 * NEWS: Menion that CHILL has been made obsolete.
2618
2619 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2620 * stabsread.c (read_range_type): Ditto.
2621 * gdbtypes.h: Ditto.
2622 * language.c (binop_type_check): Ditto.
2623 (binop_result_type): Ditto.
2624 (integral_type): Ditto.
2625 (character_type): Ditto.
2626 (string_type): Ditto.
2627 (boolean_type): Ditto.
2628 (structured_type): Ditto.
2629 (lang_bool_type): Ditto.
2630 (binop_type_check): Ditto.
2631 * language.h (_LANG_chill): Ditto.
2632 * dwarfread.c (set_cu_language): Ditto.
2633 * dwarfread.c (CHILL_PRODUCER): Ditto.
2634 * dwarfread.c (handle_producer): Ditto.
2635 * expression.h (enum exp_opcode): Ditto.
2636 * eval.c: Ditto for comments.
2637 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2638 * expprint.c (print_subexp): Ditto.
2639 (print_subexp): Ditto.
2640 * valops.c (value_cast): Ditto.
2641 (search_struct_field): Ditto.
2642 * value.h (COERCE_VARYING_ARRAY): Ditto.
2643 * symfile.c (init_filename_language_table): Ditto.
2644 (add_psymbol_with_dem_name_to_list): Ditto.
2645 * valarith.c (value_binop): Ditto.
2646 (value_neg): Ditto.
2647 * valops.c (value_slice): Ditto.
2648 * symtab.h (union language_specific): Ditto.
2649 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2650 (SYMBOL_DEMANGLED_NAME): Ditto.
2651 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2652 * defs.h (enum language): Ditto.
2653 * symtab.c (got_symtab): Ditto.
2654 * utils.c (fprintf_symbol_filtered): Ditto.
2655
2656 * ch-typeprint.c: Make file obsolete.
2657 * ch-valprint.c: Make file obsolete.
2658 * ch-lang.h: Make file obsolete.
2659 * ch-exp.c: Make file obsolete.
2660 * ch-lang.c: Make file obsolete.
2661
2662 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2663 CHILL_LIB.
2664 (TARGET_FLAGS_TO_PASS): Ditto.
2665 (CHILLFLAGS): Obsolete.
2666 (CHILL): Obsolete.
2667 (CHILL_FOR_TARGET): Obsolete.
2668 (CHILL_LIB): Obsolete.
2669 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2670 ch-valprint.c.
2671 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2672 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2673 ch-lang.o.
2674 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2675 targets.
2676
8aaf0b47
JB
26772002-07-31 Joel Brobecker <brobecker@gnat.com>
2678
2679 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2680 This does not change anything at the moment, but will be helpful
2681 later when full Ada support is integrated.
2682
f3a7b3a5
KB
26832002-07-31 Kevin Buettner <kevinb@redhat.com>
2684
2685 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2686 help message.
2687
fb850278
KB
26882002-07-31 Kevin Buettner <kevinb@redhat.com>
2689
2690 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2691 and save it in a local variable. Use variable in later test.
2692
e3bddbfa
KB
26932002-07-31 Kevin Buettner <kevinb@redhat.com>
2694
2695 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2696 test. (Thanks to Daniel Jacobowitz.)
2697
28d169de
KB
26982002-07-31 Kevin Buettner <kevinb@redhat.com>
2699
2700 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2701 (mips_abi_strings): Add "n64".
2702 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2703
7fe7e44e
KB
27042002-07-31 Kevin Buettner <kevinb@redhat.com>
2705
2706 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2707 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2708
c6caf090
KB
27092002-07-31 Kevin Buettner <kevinb@redhat.com>
2710
2711 * utils.c (host_pointer_to_address, address_to_host_pointer):
2712 Use gdb_assert() instead of explicit call to internal_error().
2713
c41669e0
KB
27142002-07-30 Kevin Buettner <kevinb@redhat.com>
2715
2716 * Makefile.in (rs6000-nat.o): Update dependencies.
2717
2718 From Nicholas Duffek:
2719 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2720 (aix-thread.o): New rule.
2721 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2722 * config/powerpc/aix432.mh: New file.
2723
2fda4977
DJ
27242002-07-30 Daniel Jacobowitz <drow@mvista.com>
2725
2726 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2727 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2728 (fetch_core_registers, ppc_linux_supply_gregset)
2729 (ppc_linux_supply_fpregset): New functions.
2730 (ppc_linux_regset_core_fns): New.
2731 (_initialize_ppc_linux_tdep): Call add_core_fns.
2732 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2733 and ppc_linux_supply_gregset.
2734 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2735 (supply_fpregset): Call ppc_linux_supply_fpregset.
2736 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2737 corelow.o.
2738 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2739
729051e6
DJ
27402002-07-30 Daniel Jacobowitz <drow@mvista.com>
2741
2742 * symtab.c (lookup_symbol): Demangle before lowercasing.
2743
5f8a3188
AC
27442002-07-30 Andrew Cagney <ac131313@redhat.com>
2745
2746 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2747 declaration.
2748 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2749 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2750 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2751 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2752 "gdb_string.h".
2753 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2754 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2755 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2756 (avr-tdep.o, mon960-rom.o): Ditto.
2757 (aout_stabs_gnu_h): Define.
2758 (symtab_h): Remove $(gdb_obstack_h).
2759
67f07146
JB
27602002-07-30 Jim Blandy <jimb@redhat.com>
2761
2762 Patch from David Carlton <carlton@math.stanford.edu>:
2763 * gdbinit.in: Move the `dir' commands that add GDB's own source
2764 directory to the search path to the end, so that the `gdb' source
2765 directory will be searched first.
2766
04ea0df1
AC
27672002-07-29 Andrew Cagney <ac131313@redhat.com>
2768
2769 * gdb_obstack.h: New file.
2770 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2771 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2772 * objfiles.h: Include "gdb_obstack.h".
2773 * Makefile.in (gdb_obstack_h): Define.
2774 (symtab_h): Add $(gdb_obstack_h).
2775 (objfiles_h): Add $(gdb_obstack_h).
2776
2777 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2778 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2779 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2780 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2781 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2782 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2783 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2784 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2785
2786 * Makefile.in (bcache.o): Update dependencies.
2787 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2788 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2789 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2790 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2791 (stabsread.o, symfile.o, symmisc.o): Ditto.
2792 (symtab.o, typeprint.o, macroexp.o): Ditto.
2793 (macrotab.o, mdebugread.o): Ditto.
2794 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2795 (coff_ecoff_h, aout_aout64_h): Define.
2796 (aout_stabs_gnu_h, libaout_h): Define.
2797
d138e37a
AC
27982002-07-29 Andrew Cagney <cagney@redhat.com>
2799
2800 * regcache.c (struct regcache_descr): Rename nr_registers to
2801 nr_cooked_registers. Revise comments describing the structure
2802 member fields.
2803 (init_regcache_descr): Update.
2804 (init_legacy_regcache_descr): Update.
2805 (read_register_gen, write_register_gen): When a cooked register in
2806 the raw register range, directly access the value from the raw
2807 register cache.
2808
460e6ec3
AC
28092002-07-29 Andrew Cagney <ac131313@redhat.com>
2810
2811 * z8k-tdep.c: Do not include "obstack.h".
2812 * h8300-tdep.c, h8500-tdep.c: Ditto.
2813 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2814 * valprint.c, v850-tdep.c: Ditto.
2815 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2816 * mn10200-tdep.c: Ditto.
2817
2818 * Makefile.in (z8k-tdep.o): Update dependencies.
2819 (m68hc11-tdep.o, valprint.o): Ditto.
2820 (v850-tdep.o, d10v-tdep.o): Ditto.
2821 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2822 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2823 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2824 (sh_opc_h, gdb_sim_sh_h): Define.
2825 (elf_sh_h, elf_bfd_h): Define.
2826 (opcode_m68hc11_h): Define.
2827 (OPCODES_SRC, OPCODES_DIR): define.
2828 (OPCODES): Use $(OPCODES_DIR).
2829 (gdb_sim_d10v_h): Rename sim_d10v_h.
2830 (gdb_sim_arm_h): Rename sim_arm_h.
2831
790c9cf0
KB
28322002-07-26 Kevin Buettner <kevinb@redhat.com>
2833
2834 * utils.c (host_pointer_to_address, address_to_host_pointer):
2835 Change internal_error() message to indicate function responsible
2836 for the error.
2837
9647fa49
KB
28382002-07-26 Kevin Buettner <kevinb@redhat.com>
2839
2840 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2841 calls to local_hex_string_custom().
2842
dabbe2c0
KB
28432002-07-26 Kevin Buettner <kevinb@redhat.com>
2844
2845 * irix5-nat.c: Move IRIX shared library support from here...
2846 * solib-irix.c: ...to here. Revised substantially to work with
2847 generic solib framework.
2848
b96d0a4e
KB
2849 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2850 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2851 * mips-irix-tdep.c: New file.
2852
313fb2f6
KB
2853 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2854 (mips-irix-tdep.o, solib-irix.o): New rules.
2855 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2856 solib-irix.o.
2857 * config/mips/irix6.mt (TDEPFILES): Likewise.
2858 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2859
ab2eaf26
KB
28602002-07-26 Kevin Buettner <kevinb@redhat.com>
2861
177e4768 2862 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2863 disabled (via ``#if 0'') includes.
2864
7244546a
KB
28652002-07-26 Kevin Buettner <kevinb@redhat.com>
2866
2867 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2868 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2869 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2870 Add support for the fpscr register.
2871 * rs6000-nat.c (regmap, fetch_inferior_registers)
2872 (store_inferior_registers, fetch_core_registers): Likewise.
2873
dd7be90a
KB
28742002-07-26 Kevin Buettner <kevinb@redhat.com>
2875
2876 * rs6000-nat.c (language.h): Include.
2877 (special_regs): Delete this array.
2878 (regmap): New function.
2879 (fetch_register, store_register): Use regmap() to map gdb
2880 register numbers to ptrace register numbers. Also, use
2881 outputs from regmap() to make decisions regarding type of
2882 ptrace() call to make. In particular, don't compare against
2883 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2884 (fetch_inferior_registers, store_inferior_registers): Where
2885 possible, obtain register numbers from tdep struct. Don't
2886 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2887 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2888 (LAST_UISA_SP_REGNUM): Delete.
2889
11bf77db
KB
28902002-07-25 Kevin Buettner <kevinb@redhat.com>
2891
2892 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2893 (fetch_registers, store_register, fetch_core_registers): Don't
2894 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2895 regcache_collect() as appropriate.
2896 (find_toc_address): Format hex address with local_hex_string().
2897
06afebeb
AC
28982002-07-25 Andrew Cagney <ac131313@redhat.com>
2899
2900 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2901 bfd/elf32-frv.c.
2902
8c554d79
TT
29032002-07-24 Tom Tromey <tromey@redhat.com>
2904
2905 * jv-exp.y: Marked all strings with _().
2906 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2907 internal_error.
2908 (MethodInvocation, CastExpression, parse_number, yyerror,
2909 java_type_from_name, push_expression_name, yylex): Typo fixes.
2910
e4c242d9
DJ
29112002-07-24 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2914 (tee_file_flush, tee_file_write, tee_file_fputs)
2915 (tee_file_isatty): New.
2916 * ui-file.h (tee_file_new): Add prototype.
2917
ebf56fd3
AS
29182002-07-24 Aidan Skinner <aidan@velvet.net>
2919
2920 * ada-lang.c: Change k&r style function definitions to prototyped
2921 form.
2922 * ada-typeprint.c: Change k&r style function definitions to prototyped
2923 form.
2924 * ada-valprint.c: Change k&r style function definitions to prototyped
2925 form.
2926
7fb623f7
AC
29272002-07-24 Andrew Cagney <cagney@redhat.com>
2928
2929 * README: Remove reference to remote-bug.
2930 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2931 remote-bug.c.
2932 (m88k-nat.o): Delete rule.
2933 (m88k-tdep.o): Delete rule.
2934 (remote-bug.o): Delete rule.
2935 * MAINTAINERS: Mark as obsolete.
2936 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2937 * m88k-tdep.c: Make file obsolete.
2938 * config/m88k/m88k.mh: Ditto.
2939 * config/m88k/delta88v4.mh: Ditto.
2940 * config/m88k/delta88v4.mt: Ditto.
2941 * config/m88k/delta88.mt: Ditto.
2942 * config/m88k/delta88.mh: Ditto.
2943 * remote-bug.c: Ditto.
2944 * config/m88k/tm-delta88.h: Ditto.
2945 * config/m88k/nm-delta88v4.h: Ditto.
2946 * config/m88k/xm-delta88.h: Ditto.
2947 * config/m88k/xm-dgux.h: Ditto.
2948 * config/m88k/tm-m88k.h: Ditto.
2949 * config/m88k/nm-m88k.h: Ditto.
2950 * config/m88k/tm-delta88v4.h: Ditto.
2951 * m88k-nat.c: Ditto.
2952 * cxux-nat.c: Ditto.
2953 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2954 and m88*-*-* obsolete.
2955 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2956 m88*-*-* obsolete.
2957
37611a2b
AC
29582002-07-24 Andrew Cagney <cagney@redhat.com>
2959
2960 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2961 constant. Same for local pointer variables.
2962 (extract_signed_integer): Ditto.
2963 * defs.h (extract_unsigned_integer): Update.
2964 (extract_signed_integer): Update.
2965
1aaa5f99
AC
29662002-07-24 Andrew Cagney <cagney@redhat.com>
2967
2968 * regcache.c (regcache_raw_write): Change buf parameter to a
2969 constant void pointer.
2970 (regcache_raw_read): Change buf parameter to a void pointer.
2971 (legacy_write_register_gen): Change myaddr parameter a constant
2972 void pointer.
2973 (supply_register): Change val parameter to a const void pointer.
2974 * regcache.h (regcache_raw_write): Update declaration.
2975 (regcache_raw_read): Update declaration.
2976 (supply_register): Update declaration.
2977
b4f5539f
TT
29782002-07-24 Tom Tromey <tromey@redhat.com>
2979
2980 * defs.h (gdb_readline_wrapper): Declare.
2981 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2982 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2983 * top.c (gdb_readline_wrapper): New function.
2984 (command_line_input): Use it.
2985
0818c12a
AC
29862002-07-24 Andrew Cagney <cagney@redhat.com>
2987
2988 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2989 regcache_read and regcache_write.
2990 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2991 * regcache.c: Update.
2992 * sh-tdep.c (sh64_push_arguments): Update comment.
2993 (sh_pseudo_register_read): Update.
2994 (sh_pseudo_register_write): Update.
2995 (sh4_register_read): Update.
2996 (sh4_register_write): Update.
2997 (sh64_pseudo_register_read): Update.
2998 (sh64_pseudo_register_write): Update.
2999 (sh64_register_read): Update.
3000 (sh64_register_write): Update.
3001 * i386-tdep.c (i386_extract_return_value): Update.
3002 (i386_extract_struct_value_address): Update.
3003 (i386_extract_return_value): Update.
3004 * blockframe.c (generic_read_register_dummy): Update.
3005 (generic_call_dummy_register_unwind): Update
3006 * infrun.c (write_inferior_status_register): Update.
3007
f7321c06
JB
30082002-07-23 Jim Blandy <jimb@redhat.com>
3009
3010 * parser-defs.h (expression_context_pc): Make this extern.
3011 (Thanks to Michael Snyder.)
3012
2037aebb
AC
30132002-07-23 Andrew Cagney <ac131313@redhat.com>
3014
3015 GDB 5.2.1 released from 5.2 branch.
3016 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3017 * README: Update to mention 5.2.1.
3018
66504d44
MS
30192002-07-23 Mark Salter <msalter@redhat.com>
3020
3021 * remote.c (remote_read_bytes): Fix check for error.
3022
27bae383
KB
30232002-07-22 Kevin Buettner <kevinb@redhat.com>
3024
3025 * aix-thread.c (language.h): Include.
3026 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3027 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3028 Print newlines at end of debug messages.
3029 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3030 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3031
30322002-07-22 Kevin Buettner <kevinb@redhat.com>
3033
3034 * aix-thread.c (ppc-tdep.h): Include.
3035 (special_register_p): New function.
3036 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3037 (store_regs_user_thread): Use register number information from
3038 gdbarch_tdep struct instead of hardcoded offsets relative to
3039 FIRST_UISA_SP_REGNUM.
3040 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3041 special_register_p() instead of using FPLAST_REGNUM and
3042 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3043 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3044 will be MQ's register number.
3045
30462002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3047
3048 * aix-thread.c (ops): Rename to aix_thread_ops.
3049 (base_ops): Rename to base_target.
3050 (ops_attach): Rename to aix_thread_attach.
3051 (ops_detach): Rename to aix_thread_detach.
3052 (ops_resume): Rename to aix_thread_detach.
3053 (ops_wait): Rename to aix_thread_wait.
3054 (ops_kill): Rename to aix_thread_kill.
3055 (init_ops): Rename to init_aix_thread_ops.
3056 (ops_fetch_register): Rename to aix_thread_fetch_register.
3057 (ops_store_register): Rename to aix_thread_store_register.
3058 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3059 (ops_thread_alive): Rename to aix_thread_thread_alive.
3060 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3061 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3062 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3063 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3064 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3065 (store_regs_lib): Rename to store_regs_user_thread.
3066 (store_regs_kern): Rename to store_regs_kernel_thread.
3067
27bae383 30682002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3069
3070 * aix-thread.c (ops_prepare_to_store): Eliminate.
3071 (init_ops): Don't initialize ops.prepare_to_store.
3072 (store_regs_kern): Pre-fetch register buffers from child,
3073 because some registers may not be in the cache. Copy
3074 regs from register cache only if they are cached.
3075 (store_regs_lib): Copy regs from register cache only
3076 if they are cached.
3077 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3078 fill_gprs64): Ditto.
3079
61c5da0b
KB
30802002-07-22 Kevin Buettner <kevinb@redhat.com>
3081
3082 * aix-thread.c (gdb_assert.h): Include.
3083 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3084 register sizes (from register cache) match size of buffer holding
3085 register data.
3086 (fill_sprs32): Change parameter types to match those in the ptrace()
3087 buffer.
3088 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3089 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3090
30912002-07-22 Michael Snyder <msnyder@redhat.com>
3092
3093 * aix-thread.c (supply_sprs64): Cosmetic change.
3094 (supply_sprs32): Cosmetic change.
3095 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3096 (fill_sprs64): Use regcache_collect instead of read_register.
3097 (store_regs_lib): Use regcache_collect instead of
3098 read_register. Use fill_sprs32 instead of fill_sprs64,
3099 if debugging a 32-bit architecture.
3100 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3101 out of the register cache, instead of passing a pointer into
3102 the register cache directly to ptrace. Use regcache_collect
3103 insteaad of read_register.
3104 (ops_prepare_to_store): Use target_read_registers instead
3105 of read_register_bytes.
3106
36479eb1
AS
31072002-07-20 Aidan Skinner <aidan@velvet.net>
3108
3109 * MAINTAINERS: Add self under write after approval.
3110
80ae6ee2
AS
31112002-07-20 Aidan Skinner <aidan@velvet.net>
3112
3113 * ada-tasks.c: Change k&r style function definitions to prototyped
3114 form.
3115
8a8ab2b9
AC
31162002-07-19 Andrew Cagney <ac131313@redhat.com>
3117
3118 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3119 * x86-64-tdep.c: Include "objfiles.h".
3120 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3121 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3122
fb16b900
ML
31232002-07-17 Michal Ludvig <michal@suse.cz>
3124
3125 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3126 (update_context): Initialise cfa variable.
3127
0fe7bf7b
MS
31282002-07-17 Michael Snyder <msnyder@redhat.com>
3129
3130 * aix-thread.c: Shorten some long lines.
3131 Bring comments into line with code spec.
3132
488f131b
JB
31332002-07-18 Joel Brobecker <brobecker@gnat.com>
3134
3135 * infrun.c: Re-indent using gdb_indent.sh.
3136
46c415d2
JB
31372002-07-18 Joel Brobecker <brobecker@gnat.com>
3138
3139 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3140 Leave the indentation temporarily untouched, to minimize the diffs.
3141
cdecafbe
EZ
31422002-07-18 Elena Zannoni <ezannoni@redhat.com>
3143
3144 * stabsread.c: Make os9k sections of the code obsolete,
3145 for real this time.
3146 * stabsread.h: Make os9k sections of the code obsolete.
3147
7b6aa020
ML
31482002-07-18 Michal Ludvig <mludvig@suse.cz>
3149
09ec9b38
ML
3150 * linux-low.c (regsets_store_inferior_registers): Add free()
3151 at the end of a loop to prevent memory leak.
3152 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3153 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3154 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3155 line a comment.
4894ac5d 3156 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3157
233282cd
JB
31582002-07-17 Jim Blandy <jimb@redhat.com>
3159
3160 * macrocmd.c (info_macro_command): Remove newline from error
3161 message.
3162
7b6aa020 31632002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3164
3165 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3166 (sh_gdbarch_init): Use it for sh-dsp.
3167
f7ef9339
KB
31682002-07-16 Kevin Buettner <kevinb@redhat.com>
3169
3170 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3171 64-bit DWARF2 format.
3172
8dd72958
JB
31732002-07-16 Joel Brobecker <brobecker@gnat.com>
3174
3175 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3176 <sys/proc.h> when not available.
3177
a99a9e1b
AC
31782002-07-16 Andrew Cagney <ac131313@redhat.com>
3179
3180 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3181 * stabsread.c: Make os9k sections of the code obsolete.
3182 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3183 * config/i386/i386os9k.mt: Make file obsolete.
3184 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3185 (COMMON_OBS): Remove os9kread.o
3186 (SFILES): Remove os9kread.c.
3187 (os9kread.o, remote-os9k.o): Make target obsolete.
3188 * remote-os9k.c: Make file obsolete.
3189 * os9kread.c: Make file obsolete.
3190 * Makefile.in
3191
7a3085c1
AC
31922002-07-16 Andrew Cagney <ac131313@redhat.com>
3193
3194 * NEWS: Mention that the FR30 has been made obsolete.
3195 * fr30-tdep.c: Make file obsolete.
3196 * config/fr30/tm-fr30.h: Ditto.
3197 * config/fr30/fr30.mt: Ditto.
3198 * configure.tgt: Make fr30-*-elf obsolete.
3199 * MAINTAINERS: Make fr30-elf obsolete.
3200
28a93f5a
PM
32012002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3202
3203 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3204 found is not inside a section.
3205
be006b8b
KB
32062002-07-15 Kevin Buettner <kevinb@redhat.com>
3207
3208 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3209 strerror().
3210 (pdc_realloc): Use xrealloc() instead of realloc().
3211
14fa3751
KB
32122002-07-15 Kevin Buettner <kevinb@redhat.com>
3213
3214 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3215 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3216 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3217 macros.
3218
42cc437f
KB
32192002-07-15 Kevin Buettner <kevinb@redhat.com>
3220
3221 * aix-thread.c (ptrace_check): Eliminate goto.
3222 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3223 problem.
3224
8e2c28d4
KB
32252002-07-15 Kevin Buettner <kevinb@redhat.com>
3226
3227 * aix-thread.c (gdbcmd.h): Include.
3228 (DEBUG, DBG, DBG2, dbg): Eliminate.
3229 (debug_aix_thread): New static global.
3230 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3231 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3232 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3233 invocations to DBG and DBG2 macros to test against
3234 ``debug_aix_thread'' and call fprintf_unfiltered().
3235 (_initialize_aix_thread): Add new command "set debug aix-thread".
3236
30413464
AC
32372002-07-15 Andrew Cagney <ac131313@redhat.com>
3238
3239 From Gerhard Tonn <TON@de.ibm.com>:
3240 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3241 instead of supply_register.
3242
7c43edc1
AC
32432002-07-15 Andrew Cagney <ac131313@redhat.com>
3244
3245 * dwarf2cfi.c: Include "gdb_assert.h".
3246 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3247 non-NULL.
3248 (update_context): Do not use __func__. Add missing ``break''.
3249 (update_context): Do not use __func__.
3250
9364a0ef
EZ
32512002-07-15 Elena Zannoni <ezannoni@redhat.com>
3252
3253 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3254 and its setting. Set gdbarch instruction printing functions
3255 directly. For non-rs6000 case use new function
3256 gdb_print_insn_powerpc.
3257 (gdb_print_insn_powerpc): New function.
3258
3fbeef0b
AC
32592002-07-13 Andrew Cagney <ac131313@redhat.com>
3260
92eb23c5 3261 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3262 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3263 * configure.tgt: Mark d30v-*-* as obsolete.
3264 * d30v-tdep.c: Mark file as obsolete.
3265 * config/d30v/d30v.mt: Ditto.
3266 * config/d30v/tm-d30v.h: Ditto.
3267
aacb1f0a
AS
32682002-07-13 Aidan Skinner <aidan@velvet.net>
3269
3270 * ada-tasks.c (add_task_entry): replace calls to
3271 malloc() with xmalloc
3272 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3273
3274 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3275 ada_finish_decode_line_1, all_sals_for_line
3276 ada_breakpoint_rewrite): replace calls to free() with xfree()
3277
c11d79f2
KB
32782002-07-12 Kevin Buettner <kevinb@redhat.com>
3279
3280 From Nicholas Duffek (with minor changes by Martin Hunt,
3281 Louis Hamilton, and Kevin Buettner):
3282 * aix-thread.c: New file.
3283
8e19ed76
PS
32842002-07-12 Petr Sorfa <petrs@caldera.com>
3285
3286 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3287 complaint for invalid attribute class or form.
3288 (read_func_scope): DW_AT_frame_base
3289 better handling of DW_AT_block*.
3290 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3291 better handling of DW_AT_block*.
3292 (read_common_block): DW_AT_location
3293 better handling of DW_AT_block*.
3294 (read_partial_die): DW_AT_location better handling
3295 of DW_AT_block*.
3296 (new_symbol): DW_AT_external better handling of
3297 DW_AT_block*. Proper initialization of variable
3298 "addr".
3299 (attr_form_is_block): New function that returns true
3300 if the attribute's form is of DW_FORM_block*.
3301
295401f7
DJ
33022002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3303
3304 * valops.c (find_method_list): Remove comment about
3305 removed STATIC_MEMFUNCP argument.
3306 (value_find_oload_method_list): Likewise.
3307
e42dc924
KB
33082002-07-12 Kevin Buettner <kevinb@redhat.com>
3309
3310 From Nicholas Duffek:
3311 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3312 target_new_objfile_hook.
3313
6904b546
KB
33142002-07-12 Kevin Buettner <kevinb@redhat.com>
3315
3316 From Nicholas Duffek:
3317 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3318 csect.
3319
53fe9346
AC
33202002-07-12 Andrew Cagney <cagney@redhat.com>
3321
3322 * MAINTAINERS: Mention --enable-sim-build-warnings.
3323 (m68hc11-elf): Disable sim build warnings.
3324 (m32r-elf): Mark as broken obsolete candidate.
3325 (x86_64-linux-gnu): Mark as buildable with -Werror.
3326 (arm-elf): Change -w to ``,'' which enables warnings but not
3327 -Werror.
3328
af5f3db6
AC
33292002-07-12 Andrew Cagney <ac131313@redhat.com>
3330
3331 * bcache.h: Update copyright.
3332 (struct bstring, struct bcache): Move definition to "bcache.c".
3333 Replaced by opaque declaration.
3334 (bcache_xfree): Replace free_bcache.
3335 (bcache_xmalloc, bcache_memory_used): Declare.
3336
3337 * bcache.c: Update copyright.
3338 (struct bstring, struct bcache): Moved to here from "bcache.h".
3339 Update comments.
3340 (bcache_xmalloc, bcache_memory_used): New functions.
3341 (bcache_xfree): Replace function free_bcache.
3342
3343 * Makefile.in (objfiles.o): Add $(bcache_h).
3344 (objfiles_h): Remove $(bcache_h).
3345 (symfile.o): Add $(bcache_h).
3346
3347 * symmisc.c: Update copyright.
3348 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3349 (print_objfile_statistics): Use bcache_memory_used.
3350
3351 * symfile.c: Include "bcache.h".
3352 (reread_symbols): Use bcache_xfree.
3353 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3354 (add_psymbol_to_list): Pass psymbol_cache by value.
3355 (add_psymbol_with_dem_name_to_list): Ditto.
3356
3357 * objfiles.h: Update copyright.
3358 (struct bcache): Declare opaque. Do not include "bcache.h".
3359 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3360 bcache'' pointers.
3361 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3362
3363 * objfiles.c: Include "bcache.h". Update copyright.
3364 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3365 macro_cache.
3366 (free_objfile): Use bcache_xfree.
3367
444199e7
GS
33682002-07-11 Grace Sainsbury <graces@redhat.com>
3369
3370 * monitor.c (monitor_fetch_register): Make name a constant.
3371 (monitor_store_register): Same.
3372
261397f8
DJ
33732002-07-11 Daniel Jacobowitz <drow@mvista.com>
3374
3375 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3376 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3377 (finish_block) For non-function blocks, hash the symbol table. For
3378 function blocks, mark the symbol table as unhashed.
3379 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3380 (msymbol_hash_iw): Likewise.
3381 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3382 value.
3383 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3384 (lookup_minimal_symbol): Likewise for both.
3385 * symtab.h (struct block): Add `hashtable' flag. Comment the
3386 hashtable.
3387 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3388 (ALL_BLOCK_SYMBOLS): Update.
3389 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3390 (struct symbol): Add `hash_next' pointer.
3391 * symtab.c (lookup_block_symbol): Search using the hash table when
3392 possible.
3393 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3394 (search_symbols, find_addr_symbol): Likewise.
3395
3396 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3397 (read_dst_symtab): Likewise.
3398 * jv-lang.c (get_java_class_symtab): Likewise.
3399 * mdebugread.c: Include "gdb_assert.h".
3400 (shrink_block): Assert that the block being modified is not hashed.
3401 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3402 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3403 symbols.
3404 (dump_symtab): Recognize hashed blocks.
3405 * printcmd.c (print_frame_args): Assert that function blocks do not
3406 have hashed symbol tables.
3407 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3408 (fill_in_ada_prototype, debug_print_block): Likewise.
3409 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3410
6f0eaa01
CV
34112002-07-11 Corinna Vinschen <vinschen@redhat.com>
3412
3413 * stack.c (print_frame): Use result of frame_address_in_block()
3414 instead of fi->pc when evaluating symbols.
3415 (backtrace_command_1): Ditto.
3416
a208b0cb
AC
34172002-07-11 Andrew Cagney <cagney@redhat.com>
3418
3419 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3420 Make static.
3421
3422 * arm-tdep.c (arm_register_name): Make return type constant.
3423
a6b6b089
AC
34242002-07-10 Andrew Cagney <ac131313@redhat.com>
3425
5ae5f592
AC
3426 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3427 prototype.
3428 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3429 * s390-tdep.c (s390_fp_regnum): Ditto.
3430 (s390_read_fp): Ditto.
3431 (s390_pop_frame): Ditto.
3432 (_initialize_s390_tdep): Ditto.
3433 * remote.c (get_remote_state): Ditto.
3434 * procfs.c (mappingflags): Ditto.
3435 * memattr.c (_initialize_mem): Ditto.
3436 * mcore-tdep.c (mcore_pop_frame): Ditto.
3437 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3438 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3439 * language.c (set_case_str): Ditto.
3440 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3441 * frv-tdep.c (new_variant): Ditto.
3442 (frv_stopped_data_address): Ditto.
3443 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3444 (context_alloc): Ditto.
3445 (frame_state_alloc): Ditto.
3446 (unwind_tmp_obstack_init): Ditto.
3447 (unwind_tmp_obstack_free): Ditto.
3448 (cfi_read_fp): Ditto.
3449 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3450 (cris_pop_frame): Ditto.
3451 * c-lang.c (scanning_macro_expansion): Ditto.
3452 (finished_macro_expansion): Ditto.
3453 (c_preprocess_and_parse): Ditto.
3454 * gdbarch.sh: Ditto.
3455 * gdbarch.h, gdbarch.c: Regenerate.
3456 * config/mn10200/tm-mn10200.h: Adjust indentation.
3457 * target.c: Adjust indentation.
3458 * symtab.h: Adjust indentation.
3459 * stabsread.h: Adjust indentation.
3460 * remote-es.c: Adjust indentation.
3461 * os9kread.c: Adjust indentation.
3462
34632002-07-10 Andrew Cagney <ac131313@redhat.com>
3464
a6b6b089
AC
3465 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3466 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3467
a1789893
GS
34682002-07-10 Grace Sainsbury <graces@redhat.com>
3469
3470 * NEWS: Mention m68k, mcore multi-arching.
3471 * MAINTAINERS: Change status of m68k, mcore to reflect
3472 multi-arching.
3473
02f0d45d
DJ
34742002-07-10 Daniel Jacobowitz <drow@mvista.com>
3475
3476 * valops.c (find_overload_match): Free oload_syms.
3477
f15f768e
JB
34782002-07-09 Joel Brobecker <brobecker@gnat.com>
3479
3480 Define HAVE_SYS_PROC_H if sys/proc.h exists
3481 * configure.in: Add check for sys/proc.h
3482 * config.in: Regenerate.
3483 * configure: Regenerate.
3484
902a7139
GS
34852002-07-09 Grace Sainsbury <graces@redhat.com>
3486
3487 * config/m68k/tm-m68k.h: Remove macros wrapped in
3488 #if !GDB_MULTI_ARCH.
3489
a534e424
AC
34902002-07-08 Andrew Cagney <ac131313@redhat.com>
3491
3492 * config.in, configure: Regenerate.
3493
9b94f7bf
MK
34942002-07-08 Mark Kettenis <kettenis@gnu.org>
3495
3496 * dwarf2cfi.c: Include "gcore.h".
3497 (execute_stack_op): Fix implementation of the
3498 DW_OP_deref and DW_OP_deref_size operators by letting do their
3499 lookup in the target.
3500
1d34db41
MK
35012002-07-07 Mark Kettenis <kettenis@gnu.org>
3502
3503 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3504 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3505 tdep->sc_sp_offset.
3506
79d5b63a
DJ
35072002-07-05 Daniel Jacobowitz <drow@mvista.com>
3508
3509 Fix PR gdb/595, gdb/602
3510 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3511 Don't call value_cast, just read the vtable pointer; update comments
3512 to match.
3513
3bb912e8
GS
35142002-07-05 Grace Sainsbury <graces@redhat.com>
3515
3516 * config/mcore/tm-mcore.h: Remove file.
3517 * config/mcore/mcore.mt: Remove definition of TM_FILE
3518 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3519
ca39387d
MK
35202002-07-05 Mark Kettenis <kettenis@gnu.org>
3521
3522 * i386bsd-tdep.c: Include "gdb_string.h".
3523
efdc1108
GS
35242002-07-04 Grace Sainsbury <graces@redhat.com>
3525
3526 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3527 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3528 mcore-tdep.
3529 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3530 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3531 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3532 (RETVAL_REGNUM): Move macros from tm-mcore.h
3533 (mcore_reg_struct_has_addr): New function.
3534 (mcore_gdbarch_init): Added initializations for the macros removed
3535 from tm-mcore.h.
3536
bb21884d
MK
35372002-07-04 Mark Kettenis <kettenis@gnu.org>
3538
3539 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3540 traditonal string branding within the ELF header.
3541
228c6d41
DJ
35422002-07-04 Daniel Jacobowitz <drow@mvista.com>
3543
3544 * symtab.c (remove_params): New function.
3545 (make_symbol_overload_list): Use it instead of cplus_demangle.
3546 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3547
2404952e
MK
35482002-07-04 Mark Kettenis <kettenis@gnu.org>
3549
e5e4acad
MK
3550 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3551
baadce09
MK
3552 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3553 New variables.
3554 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3555 and tdep->sigtramp_end.
3556 * i386obsd-nat.c: New file.
3557 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3558
2404952e
MK
3559 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3560 Don't call get_current_frame().
3561
9b4f1ba7
PM
35622002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3563
3564 * i386-nat.c (child_post_startup_inferior): New function
3565 calling i386_cleanup_dregs if
3566 I386_USE_GENERIC_WATCHPOINTS is defined.
3567 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3568 conditional to acknowledge that i386-nat.c has its
3569 own child_post_startup_inferior function.
3570
c0d1d883
MK
35712002-07-04 Mark Kettenis <kettenis@gnu.org>
3572
00f8375e
MK
3573 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3574 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3575 instead of MAX_REGISTER_RAW_SIZE.
3576 (i386_extract_return_value, i386_extract_struct_value_address):
3577 Convert to use regcache.
3578 (i386_gdbarch_init): Set max_register_raw_size and
3579 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3580 Set extract_return_value and extract_struct_value_address instead
3581 of their deprecated variants.
3582
c0d1d883
MK
3583 Convert i386 target to generic dummy frames.
3584 * i386-tdep.c: Include "symfile.h".
3585 (i386_frameless_signal_p): Consider a function to be frameless if
3586 the pc points at the first instruction of the function.
3587 (i386_frame_chain): Handle (generic) call dummies.
3588 (i386_frame_saved_pc): Likewise.
3589 (i386_frame_init_saved_regs): Remove code dealing with call
3590 dummies on the stack.
3591 (i386_push_dummy_frame): Removed.
3592 (i386_call_dummy_words): Removed.
3593 (i386_fix_call_dummy): Removed.
3594 (i386_push_return_address): New function.
3595 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3596 parameter, and don't call get_current_frame.
3597 (i386_pop_frame): New function.
3598 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3599 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3600 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3601 call_dummy_length to 0, set call_dummy_words to NULL, set
3602 sizeof_call_dummy_words to 0, set fix_call_dummy to
3603 generic_fix_call_dummy, set pc_in_call_dummy to
3604 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3605 generic_push_dummy_frame, set push_return_address to
3606 i386_push_return_address and set frame_chain_valid to
3607 generic_file_frame_chain_valid.
3608
049ee0e4
AC
36092002-07-03 Andrew Cagney <ac131313@redhat.com>
3610
3611 * gdbarch.sh (struct regcache): Add opaque declaration.
3612 (EXTRACT_RETURN_VALUE): New architecture method.
3613 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3614 * gdbarch.h, gdbarch.c: Regenerate.
3615 * arch-utils.c (legacy_extract_return_value): New function.
3616 * arch-utils.h (legacy_extract_return_value): Declare.
3617 * values.c (value_being_returned): Re-enable code handling
3618 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3619 deprecated_grub_regcache_for_registers call to block handling
3620 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3621 (EXTRACT_RETURN_VALUE): Do not define.
3622
4e0d9804
GS
36232002-07-03 Grace Sainsbury <graces@redhat.com>
3624
3625 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3626 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3627 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3628 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3629 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3630 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3631 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3632 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3633 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3634 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3635 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3636 argument so the function fits the prototype in the architecture
3637 vector.
3638 (mcore_pop_frame): Remove argument so the function fits the
3639 prototype. Use get_current_frame instead of the argument.
3640 (mcore_push_arguments): Change type of struct_return so the
3641 function can be used in the architecture vector.
3642 (mcore_store_struct_return): Add.
3643 (mcore_frame_init_saved_regs): Add.
3644 (mcore_gdbarch_init): Add function calls to replace the macros
3645 removed from tm-mcore.h
3646
36160dc4
AC
36472002-07-03 Andrew Cagney <ac131313@redhat.com>
3648
3649 * infcmd.c (print_return_value): Remove compatibility code calling
3650 deprecated_grub_regcache_for_registers.
3651
3652 * values.c: Include "regcache.h".
3653 (value_being_returned): Update. Use
3654 deprecated_grub_regcache_for_registers to extract the register
3655 buffer address.
3656 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3657 ``struct regcache''.
3658 * Makefile.in (values.o): Add dependency on $(regcache_h).
3659
3660 * inferior.h (run_stack_dummy): Change type of second parameter to
3661 a ``struct regcache''.
3662 * valops.c (hand_function_call): Change type of retbuf to ``struct
3663 regcache''. Allocate using regcache_xmalloc, clean using
3664 make_cleanup_regcache_xfree.
3665 * infcmd.c (run_stack_dummy): Update. Use
3666 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3667
3668 * regcache.c (do_regcache_xfree): New function.
3669 (make_cleanup_regcache_xfree): New function.
3670 * regcache.h (make_cleanup_regcache_xfree): Declare.
3671
e64d9b3d
MH
36722002-07-03 Martin M. Hunt <hunt@redhat.com>
3673
4dd79c29
MH
3674 * event-top.c (command_line_handler): Don't read past
3675 beginning of buffer.
e64d9b3d 3676
4dd79c29
MH
36772002-07-03 Martin M. Hunt <hunt@redhat.com>
3678
e64d9b3d
MH
3679 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3680 struct frame_id.
3681 (varobj_create): Store frame_id for root.
3682 (varobj_gen_name): Use xasprintf.
3683 (varobj_update): Save and restore frame using get_frame_id() and
3684 frame_find_by_id().
3685 (create_child): Use xasprintf.
3686 (new_root_variable): Initialize frame_id.
3687 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3688 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3689 to prevent memory leak.
3690
26e6c56a
AC
36912002-07-03 Andrew Cagney <ac131313@redhat.com>
3692
3693 * valops.c (hand_function_call): Move declaration of retbuf to
3694 start of function, allocate using malloc, add a cleanup but before
3695 the inf_status cleanup, cleanup the buffer. Rename local variable
3696 old_chain to inf_status_cleanup.
3697
f436dd25
MH
36982002-07-03 Martin M. Hunt <hunt@redhat.com>
3699
3700 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3701
3702 * cli/cli-decode.c (cmd_func_p): New function.
3703 (cmd_func): New function.
3704
3705 * command.h: Add cmd_func() and cmd_func_p().
3706
4cfe2084
GS
37072002-07-03 Grace Sainsbury <graces@redhat.com>
3708
3709 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3710 (REGISTER_SIZE): Remove.
3711 (MAX_REGISTER_RAW_SIZE): Remove.
3712 (REGISTER_VIRTUAL_TYPE): Remove.
3713 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3714 (REGISTER_NAME): Remove.
3715 (USE_GENERIC_DUMMY_FRAMES): Remove.
3716 (CALL_DUMMY): Remove.
3717 (CALL_DUMMY_START_OFFSET): Remove.
3718 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3719 (CALL_DUMMY_LOCATION): Remove.
3720 (FIX_CALL_DUMMY): Remove.
3721 (CALL_DUMMY_ADDRESS): Remove.
3722 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3723 (SAVE_DUMMY_FRAME_TOS): Remove.
3724 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3725 (mcore_register_virtual_type): New function.
3726 (mcore_register_byte): New function.
3727 (mcore_register_size): New function.
3728 (mcore_register_name): New function.
3729 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3730 macros removed from tm-mcore.h.
3731 (mcore_dump_tdep): Add.
3732 (_initialize_mcore_tdep): Add gdbarch_register call.
3733
4fd667e9
MK
37342002-07-03 Mark Kettenis <kettenis@gnu.org>
3735
3736 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3737 frameless_look_for_prologue, such that we actually call this
3738 function.
3739
42f99ac2
JB
37402002-07-02 Joel Brobecker <brobecker@gnat.com>
3741
3742 * frame.h (frame_address_in_block): New function.
3743
3744 * blockframe.c (frame_address_in_block): New function extracted
3745 from get_frame_block().
3746 (get_frame_block): Use frame_address_in_block().
3747 (block_innermost_frame): Use frame_address_in_block() to match
3748 the frame pc address against the block boundaries rather than
3749 the frame pc directly. This prevents a failure when a frame pc
3750 is actually a return-address pointing immediately after the end
3751 of the given block.
3752
103a1597 37532002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3754
3755 * MAINTAINERS: Add self under write after approval.
3756
37572002-07-02 Grace Sainsbury <graces@redhat.com>
3758
103a1597
GS
3759 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3760 used in architecture vector. The default is
3761 m68k_local_breakpoint_from_pc.
3762 (m68k_local_breakpoint_from_pc): Add.
3763 (enum): Add register numbers from tm-m68k.h.
3764 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3765 vector.
3766 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3767 GDB_MULTI_ARCH_PARTIAL.
3768 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3769 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3770 m68k-tdep.c.
3771 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3772 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3773 to enum in m68k-tdep.c
3774
7a5a0534
JB
37752002-07-02 Joel Brobecker <brobecker@gnat.com>
3776
3777 * solib-osf.c (open_map): Compute the list of shared libraries
3778 loaded by the inferior, rather than the list of libraries loaded
3779 by GDB itself. Otherwise, GDB ends up reading the symbols from
3780 the wrong shared libraries...
3781
6f558d74
MK
37822002-07-02 Mark Kettenis <kettenis@gnu.org>
3783
b7d15bf7
MK
3784 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3785 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3786 macros.
3787 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3788 Remove functions.
3789 (FRAMELESS_SIGNAL): Remove function.
3790 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3791 i386_linux_saved_pc_after_call): Removed.
3792 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3793 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3794 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3795
6bff26de
MK
3796 * i386-tdep.c (i386_frameless_signal_p): New function.
3797 (i386_frame_chain): Deal with frameless signals.
3798 (i386_sigtramp_saved_sp): New function.
3799 (i386_frame_saved_pc): Deal with frameless signals.
3800 (i386_saved_pc_after_call): Make sure the correct value is
3801 returned just after entry into a sigtramp.
3802 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3803 i386fbsd4_sc_sp_offset): New variables.
3804 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3805 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3806 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3807 similiar to what we already did for sc_pc_offset.
3808 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3809 tdep->sc_sp_offset.
3810
6f558d74
MK
3811 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3812
145564b7
ML
38132002-07-02 Michal Ludvig <mludvig@suse.cz>
3814
3815 * config/i386/tm-x86-64linux.h: New.
3816 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3817 definitions.
3818 * config/i386/nm-x86-64.h: Rename to ...
3819 * config/i386/nm-x86-64linux.h: ... this one.
3820 * config/i386/x86-64linux.mh: Reflect the above change.
3821
3a1e71e3
MK
38222002-07-01 Mark Kettenis <kettenis@gnu.org>
3823
21d0e8a4
MK
3824 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3825 with sigcontext_addr. Add sc_sp_offset.
3826 (i386bsd_sigtramp_saved_pc): Remove prototype.
3827 (i386bsd_sicontext_addr): Add prototype.
3828 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3829 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3830 (i386_svr4_sigtramp_saved_pc): Removed.
3831 (i386_svr4_sigcontext_addr): New function.
3832 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3833 Initialize tdep->sigcontext_addr instead. Initialize
3834 tdep->sc_pc_offset and tdep->sc_sp_offset.
3835 (i386_gdbarch_init): Likewise.
3836 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3837 any more.
3838 (i386bsd_sigtramp_saved_pc): Remove function.
3839 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3840 Initialize tdep->sigcontext_addr instead. Initialize
3841 tdep->sc_pc_offset.
3842 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3843 of tdep->sigtramp_saved_pc.
3844 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3845 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3846 instead.
3847
3a1e71e3
MK
3848 * i386-tdep.c (i386_frameless_function_invocation,
3849 i386_frame_num_args, i386_frame_init_saved_regs,
3850 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3851 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3852 i386_extract_return_value, i386_store_return_value,
3853 i386_extract_struct_value_address, i386_register_virtual_type,
3854 i386_register_convertible, i386_register_convert_to_virtual,
3855 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3856 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3857 static.
3858
52e9098c
MK
38592002-07-01 Mark Kettenis <kettenis@gnu.org>
3860
77b13a25
MK
3861 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3862
52e9098c
MK
3863 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3864 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3865 this macro. Include "value.h".
3866
1b372fff
AS
38672002-06-30 Aidan Skinner <aidan@velvet.net>
3868
3869 * ada-exp.tab.c: remove as it's a generated file
3870 * ada-lex.c: remove as it's a generated file
3871
9c5045b5
MK
38722002-06-30 Mark Kettenis <kettenis@gnu.org>
3873
4a93c5bb
MK
3874 * config/i386/tm-i386.h (struct frame_info, struct
3875 frame_saved_regs, struct value, struct type): Remove forward
3876 declarations.
3877
322d4fe0
MK
3878 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3879 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3880 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3881 (FILL_FPXREGSET): Define.
3882
fdd8263d
MK
3883 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3884
482e577b
MK
3885 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3886 i[3456]86-*-netbsd* case.
3887 * config/i386/tm-obsd.h: Removed.
3888 * config/i386/obsd.mt: Removed.
3889 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3890 core-aout.o.
3891 (MH_CFLAGS): Add -DYYDEBUG=0.
3892
6916549a
MK
3893 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3894 i386nbsd_sc_pc_offset on OpenBSD too.
3895
9c5045b5
MK
3896 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3897 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3898 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3899 define.
3900 * i386bsd-tdep.c: Include "arch-utils.h".
3901 (i386bsd_aout_in_solib_call_trampoline): New function.
3902 (i386bsd_init_abi): Set in_solib_call_trampoline to
3903 i386bsd_aout_in_solib_call_trampoline.
3904 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3905 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3906
aa84d1bb
AC
39072002-06-28 Andrew Cagney <ac131313@redhat.com>
3908
3909 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3910 (struct obstack, struct bcache): Add opaque declarations.
3911 * Makefile.in (macrotab_h): Update
3912
b4d83933
AC
39132002-06-28 Andrew Cagney <ac131313@redhat.com>
3914
3915 * blockframe.c (generic_find_dummy_frame): Change return type to
3916 ``struct regcache''.
3917 (struct dummy_frame): Replace field ``registers'' with regcache, a
3918 struct regcache object.
3919 (generic_find_dummy_frame): Update.
3920 (generic_push_dummy_frame): Update. Use regcache_xfree,
3921 regcache_xmalloc and regcache_cpy.
3922 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3923 regcache_xfree.
3924 (deprecated_generic_find_dummy_frame): Update.
3925 (generic_read_register_dummy): Update. Use
3926 regcache_read_as_address.
3927 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3928 (generic_get_saved_register): Update. Use regcache_read.
3929
08c0b5bc
AC
39302002-06-28 Andrew Cagney <ac131313@redhat.com>
3931
3932 * Makefile.in (objfiles_h): Add $(bcache_h).
3933 * objfiles.h: Include "bcache.h".
3934
3935 * Makefile.in (symtab_h): Remove $(bcache_h).
3936 * symtab.h: Do not include "bcache.h".
3937
1f89801a
AC
39382002-06-28 Andrew Cagney <ac131313@redhat.com>
3939
3940 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3941 generic_func_frame_chain_valid.
3942
b9644b58
DB
39432002-06-28 David O'Brien <obrien@FreeBSD.org>
3944
3945 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3946 * config/i386/tm-fbsd.h: Likewise.
3947
dd486634
AC
39482002-06-28 Andrew Cagney <ac131313@redhat.com>
3949
3950 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3951 generic_unwind_get_saved_register.
3952
0b434a00
AC
39532002-06-27 Andrew Cagney <ac131313@redhat.com>
3954
3955 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3956 * regcache.c (supply_register): Add missing argument to
3957 register_buffer call.
3958
f30e5a77
AC
39592002-06-27 Andrew Cagney <ac131313@redhat.com>
3960
3961 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3962 Solaris /bin/grep does not not like it. From Peter Schauer.
3963
9f064c95
TT
39642002-06-26 Tom Tromey <tromey@redhat.com>
3965
3966 * command.h (add_setshow_cmd): Declare.
3967 (add_setshow_cmd_full): Declare.
3968 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3969 returns void. Use add_setshow_cmd_full.
3970 (add_setshow_cmd_full): New function.
3971 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3972 (add_setshow_boolean_cmd): Likewise.
3973
099c7589
JT
39742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3975
3976 * config/vax/tm-vax.h: Protect from multiple inclusion.
3977 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3978 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3979 * config/vax/tm-vaxbsd.h: ...here. New file.
3980 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3981
1d049c5e
JT
39822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3983
3984 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3985 (BELIEVE_PCC_PROMOTION): Remove.
3986 (AP_REGNUM): Move to...
3987 * config/vax/nm-vax.h: ...here.
3988 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3989 (vax_breakpoint_from_pc): New function.
3990 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3991 and gdbarch_believe_pcc_promotion.
3992
4791e091
JT
39932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3994
3995 * Makefile.in (vax_tdep_h): Define.
3996 (vax-tdep.o): Use $(vax_tdep_h).
3997 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3998 (vax_dump_tdep): New function.
3999 (_initialize_vax_tdep): Register vax_dump_tdep.
4000 * vax-tdep.h: Include osabi.h.
4001 (struct gdbarch_tdep): New.
4002
da130f98
AC
40032002-06-26 Andrew Cagney <cagney@redhat.com>
4004
4005 * frame.h (deprecated_generic_find_dummy_frame): Rename
4006 generic_find_dummy_frame.
4007 * blockframe.c (generic_find_dummy_frame): Make static.
4008 (deprecated_generic_find_dummy_frame): New function.
4009 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4010 generic_find_dummy_frame with deprecated_find_dummy_frame.
4011 (sh64_nofp_frame_init_saved_regs): Ditto.
4012 (sh_fp_frame_init_saved_regs): Ditto.
4013 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4014 (s390_frame_chain): Ditto.
4015 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4016
6300c360
GS
40172002-06-26 Grace Sainsbury <graces@redhat.com>
4018
4019 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4020 gdbarch vector are at the top.
4021 (NUM_REGS): Remove.
4022 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4023 (FRAME_ARGS_ADDRESS): Remove.
4024 (FRAME_LOCALS_ADDRESS): Remove.
4025 (FRAME_NUM_ARGS): Remove.
4026 (FRAME_ARGS_SKIP): Remove.
4027 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4028 (m68k_gdbarch_init): Add gdbarch initializations for macros
4029 undefined in tm-m68k.h
4030
1c617db8
GS
40312002-06-26 Grace Sainsbury <graces@redhat.com>
4032
4033 * monitor.h: Add the function regname to monitor_ops
4034 structure. This way NUM_REGS does not have to be a constant.
4035 * monitor.c (monitor_fetch_register): Added support for regname
4036 function. The function is called if the array regnames is NULL.
4037 (monitor_store_register): Same.
da130f98
AC
4038 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4039 regnames array.
1c617db8
GS
4040 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4041 cpu32bug_cmds.regname to point to new function.
4042 * abug-rom.c (abug_regname): Same as above.
4043 (init_abug_cmds): Same.
4044 * dbug-rom.c (dbug_regname): Same as above.
4045 (init_dbug_cmds): Same.
4046 * remote-est.c (est_regname): Same.
4047 (init_est_cmds): Same.
4048 * rom68k-rom.c (rom68k_regname): Same.
4049 (init_rom68k_cmds): Same.
4050
ea9365bb
TT
40512002-06-25 Tom Tromey <tromey@redhat.com>
4052
4053 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4054
72cec141
AC
40552002-06-25 Andrew Cagney <cagney@redhat.com>
4056
4057 * infrun.c (stop_registers): Change variable's type to ``struct
4058 regcache'''.
4059 (xmalloc_inferior_status): Delete function.
4060 (free_inferior_status): Delete function.
4061 (normal_stop): Use regcache_cpy.
4062 (struct inferior_status): Change type of fields ``stop_registers''
4063 and ``registers'' to ``struct regcache''.
4064 (write_inferior_status_register): Use regcache_write.
4065 (save_inferior_status): Instead of calling
4066 xmalloc_inferior_status, allocate the inf_status buffer directly.
4067 Use regcache_dup_no_passthrough and regcache_dup to save the
4068 buffers.
4069 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4070 Replace the stop_registers regcache instead of overriding it. Use
4071 regcache_xfree. Instead of calling free_inferior_status, xfree
4072 the buffer directly.
4073 (discard_inferior_status): Use regcache_xfree. Instead of calling
4074 free_inferior_status, xfree the buffer directly.
4075 (build_infrun): Use regcache_xmalloc.
4076 (_initialize_infrun): Delete redundant call to build_infrun.
4077
4078 * Makefile.in (infcmd.o): Add $(regcache_h).
4079
4080 * infcmd.c: Include "regcache.h".
4081 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4082 obtain the address of `stop_registers' register buffer.
4083 (print_return_value): Ditto.
4084
4085 * inferior.h (struct regcache): Add opaque declaration.
4086 (stop_registers): Change variable's declared type to ``struct
4087 regcache''.
4088
defc6f8c
TT
40892002-06-24 Tom Tromey <tromey@redhat.com>
4090
c0e624e7
TT
4091 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4092 * target.c (initialize_targets): Fixed typo in
4093 trust-readonly-sections `show' documentation.
4094
defc6f8c
TT
4095 * main.c: Marked all strings with _().
4096
2b236d82
DH
40972002-06-24 Don Howard <dhoward@redhat.com>
4098
4099 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4100 that means max CORE_ADDR+1.
4101 (lookup_mem_region): Ditto.
4102 (mem_info_command): Ditto.
4103
942dc0e9
GS
41042002-06-24 Grace Sainsbury <graces@redhat.com>
4105
4106 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4107 (REGISTER_BYTES_OK): Remove.
4108 (REGISTER_BYTES): Remove.
4109 (STORE_STRUCT_RETURN): Remove.
4110 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4111 (STORE_RETURN_VALUE): Remove.
4112 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4113 (FRAME_CHAIN): Remove.
4114 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4115 (FRAME_SAVED_PC): Remove.
4116 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4117 (m68k_store_struct_return): Add.
4118 (m68k_deprecated_extract_return_value): Add.
4119 (m68k_deprecated_extract_struct_value_address): Add.
4120 (m68k_store_return_value): Add.
4121 (m68k_frame_chain): Add.
4122 (m68k_frameless_function_invocation): Add.
4123 (m68k_frame_saved_pc): Add.
4124 (m68k_gdbarch_init): added set_gdbarch calls for new
4125 functions and deleted macros.
4126
03c30d4d
TT
41272002-06-23 Tom Tromey <tromey@redhat.com>
4128
4129 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4130 (ALLDEPFILES): Likewise.
4131 (udiheaders): Removed.
4132 (udip2soc.o): Likewise.
4133 (udi2go32.o): Likewise.
4134 (udr.o): Likewise.
4135 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4136
37e71372
AC
41372002-06-22 Andrew Cagney <ac131313@redhat.com>
4138
06a6ac57
AC
4139 * infrun.c (_initialize_infrun): Delete unnecessary call to
4140 build_infrun.
4141
37e71372
AC
4142 * regcache.h: Update comments describing the regcache_cpy family
4143 of functions.
4144 (regcache_save, regcache_restore): Delete declaration.
4145 (regcache_save_no_passthrough): Delete declaration.
4146 (regcache_restore_no_passthrough): Delete declaration.
4147 * regcache.c (regcache_save): Delete function.
4148 (regcache_save_no_passthrough): Delete function.
4149 (regcache_restore): Delete function.
4150 (regcache_restore_no_passthrough): Delete function.
4151
78f6d055
AC
41522002-06-21 Andrew Cagney <ac131313@redhat.com>
4153
4154 * config/m68k/tm-m68k.h: Fix typo.
4155 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4156 (m68k_frame_init_saved_regs): Declare.
4157
78b119cb
JB
41582002-06-21 Jim Blandy <jimb@redhat.com>
4159
4160 Remove some vestiges of Harris 88k support.
4161 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4162 register numbering quirk.
4163 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4164 odd symbols occurring in Harris 88k ELF targets.
4165
0fbb3da7
TT
41662002-06-21 Tom Tromey <tromey@redhat.com>
4167
4168 * gdb_locale.h: New file.
4169 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4170 (defs_h): Added gdb_locale.h.
4171 * configure, config.in: Rebuilt.
4172 * configure.in (PACKAGE): Define.
4173 * defs.h: Include gdb_locale.h.
4174 * main.c (captured_main): Call setlocale, bindtextdomain,
4175 textdomain.
4176
456f8b9d
DB
41772002-06-21 Dave Brolley <brolley@redhat.com>
4178
4179 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4180 * config/frv/frv.mt: New file.
4181 * config/frv/tm-frv.h: New file.
4182 * configure.tgt: Support frv-*-*.
4183 * Makefile.in (frv-tdep.o): New target.
4184 * frv-tdep.c: New file.
4185 * NEWS: Mention frv.
4186
cdd463f9
DB
41872002-06-21 Dave Brolley <brolley@redhat.com>
4188
4189 * MAINTAINERS: Add self to "Write After Approval" list.
4190
5d3ed2e3
GS
41912002-06-21 Grace Sainsbury <graces@redhat.com>
4192
4193 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4194 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4195 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4196 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4197 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4198
4199 * m68k-tdep.c: Include arch-utils.h
4200 (m68k_register_raw_size): Add.
4201 (m68k_register_virtual_size): Add.
4202 (m68k_register_virtual_type): Add.
4203 (m68k_register_name): Add.
4204 (m68k_stack_align): Add.
4205 (m68k_register_byte): Add.
4206 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4207 tm-m68k.h.
4208
7f8e7424
GS
42092002-06-21 Grace Sainsbury <graces@redhat.com>
4210
a2c6a6d5 4211 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4212 m68k_find_saved_regs.
4213 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4214 references to it with frame->saved_regs.
7f8e7424
GS
4215 (m68k_gdbarch_init): Added function calls to initialize the
4216 gdbarch structure.
a2c6a6d5
GS
4217 (m68k_fix_call_dummy): Add.
4218 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4219 (CALL_DUMMY): Remove.
4220 (CALL_DUMMY_LENGTH): Remove.
4221 (CALL_DUMMY_START_OFFSET): Remove.
4222 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4223 (FIX_CALL_DUMMY): Remove.
4224 (PUSH_DUMMY_FRAME): Remove.
4225 (POP_FRAME): Remove.
7f8e7424 4226
f461f5cf
PM
42272002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4228
4229 * parse.c (parse_fprintf): New function used to avoid calls to
4230 fprintf in bison parser generated debug code.
4231 * parser-defs.h: Declaration of new parse_fprintf function.
4232 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4233 Set YYDEBUG to 1 by default.
4234 Set YYFPRINTF as parse_fprintf.
4235
7f0c12ed
ML
42362002-06-21 Michal Ludvig <mludvig@suse.cz>
4237
4238 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4239 encoding anymore.
4240 (pointer_encoding, enum ptr_encoding): New.
4241 (execute_cfa_program): Take care about pointer encoding.
4242 (dwarf2_build_frame_info): Only call parse_frame_info for
4243 .debug_frame and .eh_frame.
4244 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4245 fixed augmentation handling, added relative addressing,
4246 ignore duplicate FDEs. Added comments.
19d833a2 4247 * dwarf2cfi.c: Reindented.
7f0c12ed 4248
87c4a039
EZ
42492002-06-20 Elena Zannoni <ezannoni@redhat.com>
4250
4251 * event-top.c (command_handler): Don't use space_at_cmd_start
4252 unless there is sbrk() on the host. Assign time and space data
4253 to union fields of the appropriate length.
4254
1cf877ad
ML
42552002-06-20 Michal Ludvig <mludvig@suse.cz>
4256
4257 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4258 x86_64_register_name. Return type changed to 'const char *'.
4259 (x86_64_register_name2nr): Rename to x86_64_register_number.
4260 (x86_64_gdbarch_init): Update to reflect the change.
4261 * x86-64-tdep.h: Ditto.
4262 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4263 (supply_fpregset): Ditto.
4264
3fadccb3
AC
42652002-06-19 Andrew Cagney <cagney@redhat.com>
4266
4267 * regcache.h: Update copyright.
4268 (struct regcache, struct gdbarch): Add opaque declarations.
4269 (current_regcache): Declare global variable.
4270 (regcache_read, regcache_write): Add gdbarch parameter.
4271 (regcache_save, regcache_save_no_passthrough)
4272 (regcache_restore, regcache_restore_no_passthrough)
4273 (regcache_dup, regcache_dup_no_passthrough)
4274 (regcache_cpy, regcache_cpy_no_passthrough)
4275 (deprecated_grub_regcache_for_registers)
4276 (deprecated_grub_regcache_for_register_valid)
4277 (regcache_valid_p): Add function declarations.
4278
4279 * regcache.c: Update copyright.
4280 (regcache_descr_handle): New global variable.
4281 (struct regcache_descr): Define.
4282 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4283 (regcache_descr, xfree_regcache_descr): New functions.
4284 (struct regcache): Define.
4285 (regcache_xmalloc, regcache_xfree): New functions.
4286 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4287 (regcache_dup, regcache_dup_no_passthrough): New functions.
4288 (regcache_valid_p, regcache_read_as_address): New functions.
4289 (deprecated_grub_regcache_for_registers): New function.
4290 (deprecated_grub_regcache_for_register_valid): New function.
4291 (current_regcache): New global variable.
4292 (register_buffer): Add regcache parameter. Update calls.
4293 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4294 (read_register_gen, write_register_gen): Update register_buffer
4295 call. Test for legacy_p instead of gdbarch_register_read_p or
4296 gdbarch_register_write_p.
4297 (regcache_collect): Update register_buffer call.
4298 (build_regcache): Rewrite. Use deprecated grub functions.
4299 (regcache_save, regcache_save_no_passthrough): New functions.
4300 (regcache_restore, regcache_restore_no_passthrough): New
4301 functions.
4302 (_initialize_regcache): Create the regcache_data_handle. Swap
4303 current_regcache global variable.
4304
4305 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4306 parameter to regcache_read and regcache_write calls.
4307 (sh4_register_read): Ditto.
4308 (sh64_pseudo_register_read): Ditto.
4309 (sh64_register_read): Ditto.
4310 (sh_pseudo_register_write): Ditto.
4311 (sh4_register_write): Ditto.
4312 (sh64_pseudo_register_write): Ditto.
4313 (sh64_register_write): Ditto.
4314
4315 * defs.h (XCALLOC): Define.
4316
152d9db6
GS
43172002-06-19 Grace Sainsbury <graces@redhat.com>
4318
4319 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4320 * m68k-tdep.c (m68k_gdbarch_init): Added.
4321 (m68k_dump_tdep): Added.
4322
170911c7
DJ
43232002-06-19 Daniel Jacobowitz <drow@mvista.com>
4324
4325 * ada-lang.c (fill_in_ada_prototype): Update comment.
4326
2e4ebe70
DJ
43272002-06-19 Daniel Jacobowitz <drow@mvista.com>
4328
4329 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4330 MIPS_ABI_LAST.
4331 (mips_abi_string, mips_abi_strings): New.
4332 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4333 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4334 tdep->mips_abi_string. Honor mips_abi_string. Default to
4335 O32 if no ABI is found.
4336 (mips_dump_tdep): Use mips_abi_strings.
4337 (mips_abi_update): New function.
4338 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4339 ``set mips abi'' and ``show mips abi''. Check the size of
4340 mips_abi_strings.
4341
16775908
AC
43422002-06-19 Andrew Cagney <cagney@redhat.com>
4343
4344 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4345 constant.
4346
5051bfa4 43472002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4348
5051bfa4
JB
4349 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4350 current frame using only the first stack size adjustment. All
4351 subsequent size adjustments are not considered to be part of
4352 the "static" part of the current frame.
4353 Compute the address of the saved registers relative to the
4354 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4355 in use in this frame.
4356
56468235
DH
43572002-06-18 Don Howard <dhoward@redhat.com>
4358
4359 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4360 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4361 suggesting this solution.
4362
0b624158
AC
43632002-06-18 Andrew Cagney <ac131313@redhat.com>
4364
4365 * config/romp/xm-rtbsd.h: Delete file.
4366 * config/romp/rtbsd.mh: Delete file.
4367
221ea385
KS
43682002-06-18 Keith Seitz <keiths@redhat.com>
4369
4370 * breakpoint.c (condition_command): Post breakpoint_modify
4371 when a condition is added to an existing breakpoint.
4372 (commands_command): Likewise for commands.
4373 (set_ignore_count): Likewise for ignore counts.
4374 If no tty, do not simply return, still need to send event
4375 notification.
4376 (ignore_command): Only print a newline if the command came
4377 from a tty.
4378 Don't call breakpoints_changed, since this is now properly
4379 handled by set_ignore_count.
4380
5402eed1
AC
43812002-06-18 Andrew Cagney <cagney@redhat.com>
4382
4383 * MAINTAINERS: Note that cris-elf target can be compiled with
4384 -Werror.
4385 * cris-tdep.c (cris_register_name): Make return type constant.
4386 (cris_breakpoint_from_pc): Ditto.
4387
cc22880b
ML
43882002-06-18 Michal Ludvig <mludvig@suse.cz>
4389
4390 * frame.h (struct frame_info): Change type of context to
4391 'struct context'.
4392
fa88f677
AC
43932002-06-17 Andrew Cagney <cagney@redhat.com>
4394
4395 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4396 pointer.
4397 * gdbarch.h, gdbarch.c: Regenerate.
4398 * config/mips/tm-mips.h (mips_register_name): Update.
4399 * i386-tdep.h (i386_register_name): Update.
4400 * mips-tdep.c (mips_register_name): Update
4401 * alpha-tdep.c (alpha_register_name): Update.
4402 * arch-utils.c (legacy_register_name): Update.
4403 * arch-utils.h (legacy_register_name): Update.
4404 * avr-tdep.c (avr_register_name): Update.
4405 * ia64-tdep.c (ia64_register_name): Update.
4406 * i386-tdep.c (i386_register_name): Update.
4407 * sparc-tdep.c (sparc32_register_name): Update.
4408 (sparc64_register_name): Update.
4409 (sparclite_register_name): Update.
4410 (sparclet_register_name): Update.
4411 * sh-tdep.c (sh_generic_register_name): Update.
4412 (sh_sh_register_name): Update.
4413 (sh_sh3_register_name): Update.
4414 (sh_sh3e_register_name): Update.
4415 (sh_sh_dsp_register_name): Update.
4416 (sh_sh3_dsp_register_name): Update.
4417 (sh_sh4_register_name): Update.
4418 (sh_sh64_register_name): Update.
4419 * s390-tdep.c (s390_register_name): Update.
4420 * rs6000-tdep.c (rs6000_register_name): Update.
4421 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4422 (ns32k_register_name_32382): Update.
4423 * d10v-tdep.c (d10v_ts2_register_name): Update.
4424 (d10v_ts3_register_name): Update.
4425 * xstormy16-tdep.c (xstormy16_register_name): Update.
4426 * vax-tdep.c (vax_register_name): Update.
4427 * v850-tdep.c (v850_register_name): Update.
4428 * m68hc11-tdep.c (m68hc11_register_name): Update.
4429 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4430 (am33_register_name): Update.
4431
ea1e7ef6
GS
44322002-06-17 Grace Sainsbury <graces@redhat.com>
4433
4434 * m68k-tdep.c: Reindented.
4435
9b02dd1b
AC
44362002-06-17 Andrew Cagney <ac131313@redhat.com>
4437
4438 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4439 list of predefined types.
4440
8758dec1
MK
44412002-06-16 Mark Kettenis <kettenis@gnu.org>
4442
b6197528
MK
4443 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4444 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4445 REGISTER_CONVERT_TO_RAW): Remove defines.
4446 (i386_register_virtual_type, i386_register_convertible,
4447 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4448 Remove prototypes.
4449 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4450 macros mentioned above.
4451
82b47e62
MK
4452 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4453 (i386lynx_saved_pc_after_call): Remove prototype.
4454 * i386ly-tdep.c: Include "i386-tdep.h".
4455 (i386lynx_saved_pc_after_call): Make static. Use
4456 read_memory_nobpt instead of read_memory. Use
4457 read_memory_unsigned_integer instead of read_memory_integer.
4458 (i386lynx_init_abi): New function.
4459 (i386lynx_coff_osabi_sniffer): New function.
4460 (_initialize_i386bsd_tdep): New function.
4461
8758dec1
MK
4462 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4463 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4464 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4465 (i386_fix_call_dummy): Remove prototype.
4466 * i386-tdep.c (i386_call_dummy_words): New variable.
4467 (i386_gdbarch_init): Adjust for removal of the
4468 macros mentioned above.
4469
e9e68a56
AC
44702002-06-15 Andrew Cagney <ac131313@redhat.com>
4471
4472 * command.h (add_setshow_auto_boolean_cmd): Replace
4473 add_set_auto_boolean_cmd.
4474 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4475 add_set_auto_boolean_cmd.
4476 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4477 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4478 mask-address'' command.
4479 (show_mask_address): Add cmd parameter.
4480 * remote.c (add_packet_config_cmd): Update. Change type of
4481 set_func and show_func to cmd_sfunc_ftype.
4482 (_initialize_remote): Update `set remote Z-packet'
4483 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4484 (show_remote_protocol_e_packet_cmd): Ditto.
4485 (show_remote_protocol_E_packet_cmd): Ditto.
4486 (show_remote_protocol_P_packet_cmd): Ditto.
4487 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4488 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4489 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4490 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4491 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4492 (show_remote_protocol_Z_packet_cmd): Ditto.
4493 (show_remote_protocol_binary_download_cmd): Ditto.
4494 (show_remote_cmd): Pass NULL to all of above.
4495
fc08ec52
MK
44962002-06-15 Mark Kettenis <kettenis@gnu.org>
4497
4498 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4499 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4500 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4501 POP_FRAME): Remove defines.
4502 (i386_push_arguments, i386_store_struct_return,
4503 i386_extract_return_value, i386_store_return_value,
4504 i386_extract_struct_value_address, i386_push_dummy_frame,
4505 i386_pop_frame): Renove prototypes.
4506 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4507 macros mentioned above.
4508
e707bbc2
AC
45092002-06-15 Andrew Cagney <ac131313@redhat.com>
4510
4511 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4512 add_set_boolean_cmd.
4513 (add_setshow_cmd): New function.
4514 * command.h (add_setshow_boolean_cmd): Replace
4515 add_set_boolean_cmd.
4516 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4517 and ``set rdiromatzero''.
4518 * maint.c (_initialize_maint_cmds): Update commented out code.
4519 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4520 * target.c (initialize_targets): Update `set
4521 trust-readonly-sections'.
4522 * remote.c (_initialize_remote): Update `set remotebreak'.
4523
42fdc8df
MK
45242002-06-15 Mark Kettenis <kettenis@gnu.org>
4525
93924b6b
MK
4526 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4527 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4528 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4529 fit into multi-arch framework.
4530 (i386_breakpoint_from_pc): New function.
4531 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4532 above.
4533
42fdc8df
MK
4534 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4535 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4536 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4537 (i386_frameless_function_invocation, i386_frame_num_args,
4538 i386_frame_init_saved_regs): Remove prototypes.
4539 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4540 macros mentioned above.
4541
9773a94b
AC
45422002-06-15 Andrew Cagney <ac131313@redhat.com>
4543
4544 * cli/cli-decode.c (set_cmd_cfunc): Update.
4545 (set_cmd_sfunc): Update.
4546 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4547 (set_cmd_sfunc, set_cmd_cfunc): Update.
4548 * cli/cli-decode.h: Update.
4549
6e157172
MK
45502002-06-15 Mark Kettenis <kettenis@gnu.org>
4551
4552 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4553 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4554
7f19b9a2
AC
45552002-06-15 Andrew Cagney <ac131313@redhat.com>
4556
4557 * defs.h (auto_boolean): Declare enum.
4558 * command.h (cmd_auto_boolean): Delete enum.
4559 * mips-tdep.c (mask_address_var): Update.
4560 (mips_mask_address_p): Update.
4561 (show_mask_address): Update.
4562 * remote.c (struct packet_config): Update.
4563 (update_packet_config): Update.
4564 (show_packet_config_cmd): Update.
4565 (packet_ok): Update.
4566 (add_packet_config_cmd): Update.
4567 (_initialize_remote):
4568 * command.h: Update.
4569 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4570 (do_setshow_command): Update.
4571 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4572 * cli/cli-decode.h: Update.
4573
1cf88de5
MK
45742002-06-15 Mark Kettenis <kettenis@gnu.org>
4575
22ba8cf2
MK
4576 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4577 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4578 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4579 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4580 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4581 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4582
762c5349
MK
4583 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4584 list of DJGPP COFF targets.
4585
091198bb
MK
4586 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4587 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4588 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4589 (FP0_REGNUM): Remove define.
4590 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4591 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4592 (i386_register_virtual_size): Remove protoype.
4593 * i386-tdep.c (i386_register_virtual_size): Removed.
4594 (i386_extract_return_value, i386_store_return_value): Use
4595 FP0_REGNUM instead of NUM_FREGS to determine whether the
4596 floating-point registers are available.
4597 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4598 Adjust for removal of macros mentioned above.
4599
46002002-06-15 Mark Kettenis <kettenis@gnu.org>
4601
fcc9bf01
MK
4602 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4603 comments.
4604 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4605 Remove prototypes.
4606 (supply_gregset, fill_gregset): Remove use of register keyword and
4607 remove declaration for regmap. Use I386_NUM_GREGS instead of
4608 NUM_REGS and NUM_FREGS.
4609 (FPREGSET_FSAVE_OFFSET): Remove.
4610 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4611 NUM_FREGS to determine whether the floating-point registers are
4612 available.
4613
65e78234
MK
4614 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4615 gnu_store_registers): Replace usage of NUM_GREGS with
4616 I386_NUM_GREGS.
4617
98df6387
MK
4618 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4619 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4620 usage of NUM_GREGS with I386_NUM_GREGS.
4621
099a9414
MK
4622 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4623
57976e88
MK
4624 * i386bsd-nat.c: Include "i386-tdep.h".
4625 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4626 I386_NUM_GREGS.
4627
b335f4a6
MK
4628 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4629 and associated comment. They no longer make any sense, since we
4630 don't use this file anymore on Linux.
4631
1cf88de5
MK
4632 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4633 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4634 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4635 elements in these arrays.
4636 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4637 MAX_NUM_REGS.
4638
daa66587
MK
46392002-06-15 Mark Kettenis <kettenis@gnu.org>
4640
4641 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4642 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4643
26e9b323
AC
46442002-06-14 Andrew Cagney <cagney@redhat.com>
4645
4646 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4647 EXTRACT_RETURN_VALUE.
4648 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4649 EXTRACT_STRUCT_VALUE_ADDRESS.
4650 * gdbarch.h, gdbarch.c: Regenerate.
4651
4652 * values.c (value_being_returned): Handle
4653 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4654 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4655
4656 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4657 * arm-tdep.c (arm_gdbarch_init): Update.
4658 * avr-tdep.c (avr_gdbarch_init): Update.
4659 * cris-tdep.c (cris_gdbarch_init): Update.
4660 * d10v-tdep.c (d10v_gdbarch_init): Update.
4661 * ia64-tdep.c (ia64_gdbarch_init): Update.
4662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4663 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4664 * s390-tdep.c (s390_gdbarch_init): Update.
4665 * sh-tdep.c (sh_gdbarch_init): Update.
4666 * s390-tdep.c (s390_gdbarch_init): Update.
4667 * sparc-tdep.c (sparc_gdbarch_init): Update.
4668 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4669 * v850-tdep.c (v850_gdbarch_init): Update.
4670 * vax-tdep.c (vax_gdbarch_init): Update.
4671 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4673
4674 * config/arc/tm-arc.h: Update.
4675 * config/d30v/tm-d30v.h: Update.
4676 * config/fr30/tm-fr30.h: Update.
4677 * config/h8300/tm-h8300.h: Update.
4678 * config/h8500/tm-h8500.h: Update.
4679 * config/i386/tm-i386.h: Update.
4680 * config/i386/tm-ptx.h: Update.
4681 * config/i386/tm-symmetry.h: Update.
4682 * config/i960/tm-i960.h: Update.
4683 * config/m32r/tm-m32r.h: Update.
4684 * config/m68k/tm-delta68.h: Update.
4685 * config/m68k/tm-linux.h: Update.
4686 * config/m68k/tm-m68k.h: Update.
4687 * config/m88k/tm-m88k.h: Update.
4688 * config/mcore/tm-mcore.h: Update.
4689 * config/mips/tm-mips.h: Update.
4690 * config/mn10200/tm-mn10200.h: Update.
4691 * config/pa/tm-hppa.h: Update.
4692 * config/pa/tm-hppa64.h: Update.
4693 * config/sparc/tm-sp64.h: Update.
4694 * config/sparc/tm-sparc.h: Update.
4695 * config/sparc/tm-sparclet.h: Update.
4696 * config/z8k/tm-z8k.h: Update.
4697
5179e78f
AC
46982002-06-14 Andrew Cagney <cagney@redhat.com>
4699
4700 * Makefile.in (i386_linux_tdep_h): Define.
4701 (i386_tdep_h, i387_tdep_h): Define.
4702 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4703 $(i386_tdep_h) and $(i387_tdep_h).
4704 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4705
8201327c
MK
47062002-06-14 Mark Kettenis <kettenis@gnu.org>
4707
edf393ac
MK
4708 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4709 Already covered by the default.
4710
896fb97d
MK
4711 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4712 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4713 (i386_gdbarch_init): Initialize long_double_format and long_double
4714 bit.
4715
8201327c
MK
4716 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4717 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4718 Move these to ...
4719 * config/i386/i386sol2.mh: ... here.
4720 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4721 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4722 (SIGCONTEXT_PC_OFFSET): Remove define.
4723 (IN_SIGTRAMP): Remove define.
4724 * i386-sol2-tdep.c: New file.
4725
4726 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4727 * config/i386/tm-i386nw.h: Removed.
4728
4729 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4730 USE_STRUCT_CONVENTION): Remove defines.
4731 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4732 (get_longjmp_target): Remove prototype.
4733 (IN_SIGTRAMP): Remove define.
4734 (i386bsd_in_sigtramp): Remove prototype.
4735 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4736 function. Update comment accordingly
4737 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4738 (FRAME_SAVED_PC): Remove define.
4739 (i386bsd_frame_saved_pc): Remove prototype.
4740 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4741 GET_LONGJMP_TARGET): Remove defines.
4742 (get_longjmp_target): Remove prototype.
4743 (IN_SIGTRAMP): Remove define.
4744 (i386bsd_in_sigtramp): Remove prototype.
4745 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4746 function. Update comment accordingly
4747 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4748 (FRAME_SAVED_PC): Remove define.
4749 (i386bsd_frame_saved_pc): Remove prototype.
4750 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4751 Remove prototype.
4752 (USE_STRUCT_CONVENTION): Remove prototype.
4753 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4754 declaration.
4755 (_initialize_i386bsd_nat): Revise logic to determine some
4756 constants at compile time when compiling a native GDB. Warn if
4757 things don't match up with what we expect.
4758 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4759 Remove variables.
4760 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4761 to use date stored in `struct gdbarch_tdep'.
4762 (i386bsd_sigcontext_offset): Remove varaible.
4763 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4764 stored in `struct gdbarch_tdep'.
4765 (i386bsd_frame_saved_pc): Make static.
4766 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4767 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4768 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4769 i386fbsd4_sc_pc_offset): New variables.
4770 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4771 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4772 functions.
4773 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4774 functions.
4775 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4776 Modify the value of i386fbsd_sigtramp_start and
4777 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4778 i386fbsd_sigtramp_end.
4779 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4780 function.
4781
4782 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4783 define to i386-linux-tdep.h.
4784 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4785 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4786 defines.
4787 (i386_linux_register_name, i386_linux_register_byte,
4788 i386_linux_register_raw_size): Remove prototypes.
4789 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4790 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4791 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4792 TARGET_WRITE_PC): Remove defines.
4793 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4794 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4795 i386_linux_write_pc): Remove prototypes.
4796 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4797 (get_longjmp_target): Remove prototype.
4798 * i386-linux-tdep.h: New file.
4799 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4800 * i386-linux-tdep.c: Include "i386-tdep.h" and
4801 "i386-linux-tdep.h".
4802 (i386_linux_register_name, i386_linux_register_byte,
4803 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4804 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4805 Make static.
4806 (i386_linux_init_abi): New function.
4807 (_initialize_i386_linux_tdep): New function.
4808
4809 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4810 (i386_saved_pc_after_call): Remove prototype.
4811 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4812 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4813 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4814 (i386_register_name, i386_stab_reg_to_regnum,
4815 i386_dwarf_reg_to_regnum): Remove prototypes.
4816 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4817 SIZEOF_SSE_REGS): Remove defines.
4818 (REGISTER_BYTES): Remove define.
4819 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4820 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4821 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4822 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4823 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4824 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4825 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4826 (get_longjmp_target): Remove prototype.
4827 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4828 (sigtramp_saved_pc): Remove define.
4829 (i386v4_sigtramp_saved_pc): Remove prototype.
4830 * config/i386/tm-go32.h (FRAME_CHAIN,
4831 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4832 (i386go32_frame_saved_pc): Remove prototype.
4833 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4834 (get_longjmp_target): Remove prototype.
4835 * i386-tdep.h: Include "osabi.h".
4836 (enum i386_abi): Removed.
4837 (enum struct_return): New enum.
4838 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4839 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4840 sc_pc_offset members.
4841 (i386_gdbarch_register_os_abi): Remove prototype.
4842 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4843 I386_SSE_NUM_REGS): New defines.
4844 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4845 I386_SSE_SIZEOF_REGS): New defines.
4846 (i386_register_name, i386_register_byte, i386_register_raw_size):
4847 New prototypes.
4848 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4849 (i386bsd_sigtramp_saved_pc): New prototype.
4850 * i386-tdep.c: Don't include "elf-bfd.h".
4851 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4852 i386_frame_chain, i386_saved_pc_after_call): Make static.
4853 (i386_frame_saved_pc): Rewrite to call architecture dependent
4854 function to deal with signal handlers. Make static.
4855 (i386go32_frame_saved_pc): Removed.
4856 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4857 Removed.
4858 (i386_get_longjmp_target): New function.
4859 (default_struct_convention, pcc_struct_convention,
4860 reg_struct_convention, valid_conventions, struct_convention): New
4861 variables.
4862 (i386_use_struct_convention): New function.
4863 (i386v4_sigtramp_saved_pc): Renamed to
4864 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4865 (i386_pc_in_sigtramp): New function.
4866 (i386_abi_names): Removed.
4867 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4868 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4869 Removed.
4870 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4871 i386_gdbarch_register_os_abi): Removed.
4872 (struct i386_abi_handler): Removed.
4873 (i386_abi_handler_list): Removed.
4874 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4875 functions.
4876 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4877 i386_nw_init_abi): New functions.
4878 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4879 Use set_gdbarch_xxx() calls instead of relying on macros for a
4880 number of calls.
4881 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4882 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4883 Register the various architecture variants defined in this file.
4884
ad2f7632
DJ
48852002-06-14 Daniel Jacobowitz <drow@mvista.com>
4886
4887 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4888 (struct main_type): Remove arg_types member. Update comments for
4889 struct field.
4890 (TYPE_ARG_TYPES): Remove.
4891 (TYPE_FN_FIELD_ARGS): Update.
4892 (smash_to_method_type): Update prototype.
4893
4894 * c-typeprint.c (cp_type_print_method_args): Take method type
4895 instead of argument list. Use new argument layout. Simplify.
4896 (c_type_print_args): Use new argument layout. Simplify.
4897 (c_type_print_base): Update call to cp_type_print_method_args.
4898 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4899 argument; use die->type instead. Update call to
4900 smash_to_method_type.
4901 (read_structure_scope): Update call to dwarf2_add_member_fn.
4902 * gdbtypes.c (allocate_stub_method): Update comment.
4903 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4904 Use new argument layout.
4905 (check_stub_method): Use new argument layout. Don't count
4906 void as an argument.
4907 (print_arg_types): Update comments. Use new argument layout.
4908 (recursive_dump_type): Don't print arg_types member.
4909 * hpread.c (hpread_read_struct_type): Use new argument layout.
4910 (fixup_class_method_type): Likewise.
4911 (hpread_type_lookup): Likewise.
4912 * stabsread.c (read_type): Update calls to read_args and
4913 smash_to_method_type.
4914 (read_args): Use new argument layout. Simplify.
4915 * valops.c (typecmp): Use new argument layout. Update parameters
4916 and comments. Simplify.
4917 (hand_function_call): Use new argument layout.
4918 (search_struct_method): Update call to typecmp.
4919 (find_overload_match): Use new argument layout.
4920
6da02953
DJ
49212002-06-13 Daniel Jacobowitz <drow@mvista.com>
4922
4923 * NEWS: Mention multithreaded debug support for gdbserver.
4924
519b2366
DJ
49252002-06-13 Daniel Jacobowitz <drow@mvista.com>
4926
4927 * MAINTAINERS: Mention NEWS.
4928
6c0d6680
DJ
49292002-06-13 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4932 (struct mips_objfile_private, compare_pdr_entries): New.
4933 (non_heuristic_proc_desc): Read the ".pdr" section if it
4934 is present.
4935
6529d2dd
AC
49362002-06-12 Andrew Cagney <ac131313@redhat.com>
4937
4938 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4939 (arm_debug): New static variable.
4940 (_initialize_arm_tdep): Add ``set debug arm'' command.
4941
26216b98
AC
49422002-06-12 Andrew Cagney <ac131313@redhat.com>
4943
4944 * Makefile.in (sim_arm_h): Define.
4945 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4946 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4947 (arm_register_sim_regno): New function, map an internal REGNUM
4948 onto a simulator register number.
4949 (arm_gdbarch_init): Set register_sim_regno.
4950
814b3ba0
AH
49512002-06-09 Aldy Hernandez <aldyh@redhat.com>
4952
4953 * MAINTAINERS: Add self.
4954
475b0867
JB
49552002-06-11 Jim Blandy <jimb@redhat.com>
4956
919d772c
JB
4957 * source.c (source_info): Mention whether the symtab has
4958 information about preprocessor macros.
4959
475b0867
JB
4960 Call the command `info macro', not `show macro'.
4961 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4962 Fix error message.
4963 (_initialize_macrocmd): Register `info_macro_command' in
4964 `infolist', not `showlist'.
4965
9e364162
DJ
49662002-06-11 Daniel Jacobowitz <drow@mvista.com>
4967
4968 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4969 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4970 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4971 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4972 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4973 unconditionally.
4974 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4975 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4976 (_initialize_mips_tdep): Remove dead code.
4977 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4978 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4979 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4980 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4981 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4982 MIPS_LAST_FP_ARG_REGNUM): Remove.
4983
23aa4c72
ML
49842002-06-11 Michal Ludvig <mludvig@suse.cz>
4985
4986 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4987 (unwind_tmp_obstack_free, parse_frame_info)
4988 (update_context, cfi_read_fp, cfi_write_fp)
4989 (cfi_frame_chain, cfi_init_extra_frame_info)
4990 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4991 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4992
70eb15a4
CV
49932002-06-11 Corinna Vinschen <vinschen@redhat.com>
4994
4995 * v850-tdep.c (v850_type_is_scalar): New function.
4996 (v850_use_struct_convention): Match current gcc implementation
4997 as close as possible.
4998 (v850_push_arguments): Fix stack_offset handling. Don't write
4999 struct_addr into register. This is done by v850_store_struct_return.
5000 (v850_extract_return_value): Care for structs.
5001 (v850_store_return_value): Ditto.
5002 (v850_store_struct_return): Actually write address.
5003
482a4d06
ML
50042002-06-11 Michal Ludvig <mludvig@suse.cz>
5005
5006 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5007 without debug information too.
5008
d855c300
AC
50092002-06-10 Andrew Cagney <ac131313@redhat.com>
5010
5011 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5012 Make multi-arch pure.
5013 * gdbarch.h, gdbarch.c: Re-generate.
5014 * arm-tdep.c (arm_print_float_info): Update.
5015 * arch-utils.h (default_print_float_info): Update.
5016 * arch-utils.c (default_print_float_info): Update.
5017 * infcmd.c (float_info): Update call.
5018
dd12a101
AC
50192002-06-10 Andrew Cagney <ac131313@redhat.com>
5020
5021 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5022 the front of the initialize list.
5023
101dcfbe
AC
50242002-06-10 Andrew Cagney <ac131313@redhat.com>
5025
5026 * infrun.c (struct inferior_status): Replace fields
5027 selected_frame_address and selected_level with field
5028 selected_frame_id.
5029 (save_inferior_status): Update. Use get_frame_id.
5030 (struct restore_selected_frame_args): Delete.
5031 (restore_selected_frame): Update. Use frame_find_by_id.
5032 (restore_inferior_status): Update.
5033
5034 * breakpoint.h (struct breakpoint): Change type of
5035 watchpoint_frame to frame_id.
5036 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5037 call to get_current_frame.
5038 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5039 get_current_frame.
5040 (watchpoint_check): Use frame_find_by_id.
5041
5042 * frame.h (record_selected_frame): Delete declaration.
5043 * stack.c (record_selected_frame): Delete function.
5044
5045 * frame.h (struct frame_id): Define.
5046 (get_frame_id): Declare.
5047 (frame_find_by_id): Declare.
5048 * frame.c (frame_find_by_id): New function.
5049 (get_frame_id): New function.
5050
304270b6
AV
50512002-06-10 Andrey Volkov <avolkov@transas.com>
5052
5053 * ser-e7kpc.c: Fix duplicated define and call of
5054 _initialize_ser_e7000pc
5055
2f2cf184
DJ
50562002-06-09 Daniel Jacobowitz <drow@mvista.com>
5057
5058 * signals/signals.c (target_signal_from_host): Fix #ifdef
5059 SIGRTMIN case.
5060 (do_target_signal_to_host): Likewise.
5061
caaa3122
DJ
50622002-06-09 Daniel Jacobowitz <drow@mvista.com>
5063
5064 * mips-tdep.c (mips_find_abi_section): New function.
5065 (mips_gdbarch_init): Call it.
5066
6ac5df3a
MK
50672002-06-09 Mark Kettenis <kettenis@gnu.org>
5068
5069 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5070 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5071 after Andrew's 2002-06-08 gdbarch change.
5072
82ea117a
MK
50732002-06-09 Mark Kettenis <kettenis@gnu.org>
5074
5075 * i386-linux-nat.c (suppy_gregset): Don't supply
5076 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5077 register cache.
5078 (fill_gregset): Don't fetch it under the same circumstances.
5079
3c25f8c7
AC
50802002-06-09 Andrew Cagney <cagney@redhat.com>
5081
5082 * Makefile.in (callback_h): Define.
5083 (remote_sim_h): Update path to remote-sim.h.
5084 (remote-rdp.o): Add $(callback_h).
5085 (remote-sim.o): Use $(callback_h).
5086 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5087 * remote-rdp.c: Include "gdb/callback.h".
5088
1029b7fa
MK
50892002-06-09 Mark Kettenis <kettenis@gnu.org>
5090
5091 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5092 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5093
616675d3
AC
50942002-06-08 Andrew Cagney <ac131313@redhat.com>
5095
a3efda28
AC
5096 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5097 * rdi-share/serpardr.c: Ditto.
5098 * rdi-share/unixcomm.c: Ditto.
5099 * rdi-share/serdrv.c: Ditto.
5100 * rdi-share/hostchan.h: Ditto.
5101 * rdi-share/hostchan.c: Ditto.
5102 * rdi-share/host.h: Ditto.
5103 * rdi-share/devsw.c: Ditto.
5104
c5f10366
AC
5105 * objfiles.h: Change type of obj_private to void pointer.
5106 * pa64solib.c: Update copyright. Don't include "assert.h", use
5107 strcmp instead of STREQ, use LONGEST, do not use PTR
5108 * somsolib.c: Ditto.
5109
616675d3
AC
5110 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5111 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5112 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5113
e4b415d9
AC
51142002-06-08 Andrew Cagney <ac131313@redhat.com>
5115
5116 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5117 (default_get_saved_register): Delete function.
5118 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5119 generic_unwind_get_saved_register.
5120 * gdbarch.h, gdbarch.c: Re-generate.
5121
ca0d0b52
AC
51222002-06-08 Andrew Cagney <ac131313@redhat.com>
5123
5124 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5125 generic_func_frame_chain_valid.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127 * blockframe.c (generic_func_frame_chain_valid): Only check
5128 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5129 passing FP to PC_IN_CALL_DUMMY.
5130 Fix PR gdb/360.
5131
76860b5f
AC
51322002-06-08 Andrew Cagney <ac131313@redhat.com>
5133
5134 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5135 (register_gdbarch_data): Initialize init_p.
5136 (gdbarch_data): Initialize data pointer using the init function.
5137 (init_gdbarch_data): Delete function.
5138 (gdbarch_update_p): Update.
5139 (initialize_non_multiarch): Update.
5140 (struct gdbarch): Add field initialized_p.
5141 * gdbarch.h, gdbarch.c: Re-generate.
5142
8dda9770
ML
51432002-06-07 Michal Ludvig <mludvig@suse.cz>
5144
5145 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5146 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5147 better do the things actually here.
5148 * x86-64-tdep.c (x86_64_register_name2nr): New.
5149 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5150 (x86_64_gdbarch_init): Respect the above change.
5151 * x86-64-tdep.h (x86_64_register_name2nr)
5152 (x86_64_register_nr2name): Add prototypes.
5153 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5154
3d79a47c
MS
51552002-06-06 Michael Snyder <msnyder@redhat.com>
5156
7bd91a28
MS
5157 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5158 Delete extra braces and re-indent.
5159 (d10v_store_return_value): Char return values
3d79a47c
MS
5160 must be shifted over by one byte in R0.
5161 (d10v_extract_return_value): Delete extra braces, re-indent.
5162
095a4c96
EZ
51632002-06-06 Elena Zannoni <ezannoni@redhat.com>
5164
5165 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5166 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5167 (d10v_integer_to_address): Rewrite.
5168 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5169 the d10v specific functions which take care of converting to the
5170 correct space.
5171
e8a77ca4
EZ
51722002-06-06 Elena Zannoni <ezannoni@redhat.com>
5173
5174 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5175 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5176
4f2e4a4f
AC
51772002-06-02 Andrew Cagney <ac131313@redhat.com>
5178
5179 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5180 includes.
5181 * config/tm-linux.h: Ditto.
5182 * config/alpha/tm-alphalinux.h: Ditto.
5183 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5184 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5185 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5186 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5187 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5188 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5189 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5190 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5191 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5192 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5193 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5194 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5195 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5196 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5197 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5198 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5199 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5200 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5201 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5202 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5203 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5204 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5205 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5206 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5207 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5208 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5209 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5210 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5211 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5212 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5213 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5214 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5215 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5216 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5217 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5218 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5219 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5220
ae2ab2ce
AS
52212002-05-04 Aidan Skinner <aidan@velvet.net>
5222
5223 * ada-exp.tab.c: New file
5224 * ada-exp.y: New file
5225 * ada-lang.c: New file
5226 * ada-lang.h: New file
5227 * ada-lex.c: New file
5228 * ada-lex.l: New file
5229 * ada-tasks.c: New file
5230 * ada-typeprint.c: New file
5231 * ada-valprint.c: New file
5232
0ddd0135
JT
52332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5234
5235 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5236 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5237
750fbacc
JT
52382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5239
5240 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5241 insetead of ppc-linux-tdep.o.
5242 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5243 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5244
df94e18a
AC
52452002-06-02 Andrew Cagney <ac131313@redhat.com>
5246
5247 2002-05-07 Christian Groessler <chris@groessler.org>
5248 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5249 bit register contents for little endian hosts.
5250
1a38ab75
AC
52512002-06-01 Andrew Cagney <ac131313@redhat.com>
5252
5253 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5254 any maintainer.
5255
8b1632ac
AC
52562002-06-01 Andrew Cagney <ac131313@redhat.com>
5257
5258 * gdbarch.h: Regenerate.
5259
627054c8
AC
52602002-06-01 Andrew Cagney <ac131313@redhat.com>
5261
5262 * MAINTAINERS: Add everyone to write-after-approval list.
5263
4f460812
AC
52642002-06-01 Andrew Cagney <ac131313@redhat.com>
5265
5266 * stack.c (frame_info): Use frame_register_unwind instead of
5267 saved_regs. Mention when the SP is on the stack or in a register.
5268
5269 * frame.h (frame_register_unwind_ftype): Define. Document.
5270 (struct frame_info): Add field register_unwind and
5271 register_unwind_cache.
5272 (frame_register_unwind): Declare.
5273 (generic_unwind_get_saved_register): Declare.
5274
5275 * frame.c (frame_register_unwind): New function.
5276 (generic_unwind_get_saved_register): New function.
5277
5278 * blockframe.c (generic_call_dummy_register_unwind): New function.
5279 (frame_saved_regs_register_unwind): New function.
5280 (set_unwind_by_pc): New function.
5281 (create_new_frame): New function.
5282 (get_prev_frame): New function.
5283
de888f76
AC
52842002-05-30 Andrew Cagney <ac131313@redhat.com>
5285
5286 * a29k-share/: Delete directory.
5287 * remote-vx29k.c: Delete file.
5288
2f2c3626
JT
52892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5290
5291 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5292 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5293
9ce5c36a
JT
52942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5295
5296 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5297 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5298 (sparc64nbsd-nat.o)
5299 (sparcnbsd-nat.o)
5300 (sparcnbsd-tdep.o): New dependency lists.
5301 * NEWS: Note new UltraSPARC NetBSD native configuration.
5302 * configure.host (sparc64-*-netbsd*): New host.
5303 * configure.tgt (sparc-*-netbsdelf*)
5304 (sparc-*-netbsd*): Set gdb_target to nbsd.
5305 (sparc64-*-netbsd*): New target.
5306 * sparc64nbsd-nat.c: New file.
5307 * sparcnbsd-nat.c: New file.
5308 * sparcnbsd-tdep.c: New file.
5309 * sparcnbsd-tdep.h: New file.
5310 * config/sparc/nbsd.mt: New file.
5311 * config/sparc/nbsd64.mh: New file.
5312 * config/sparc/nbsd64.mt: New file.
5313 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5314 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5315 (HOST_IPC): Remove.
5316 * config/sparc/nbsdaout.mt: Remove.
5317 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5318 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5319 (HOST_IPC): Remove.
5320 * config/sparc/nbsdelf.mt: Remove.
5321 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5322 sparc-nat.c compatiblity defines.
5323 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5324 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5325 * config/sparc/tm-nbsd64.h: New file.
5326 * config/sparc/tm-nbsdaout.h: Remove.
5327 * config/sparc/xm-nbsd.h: Remove.
5328
ef3cf062
JT
53292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5330
5331 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5332 * sparc-tdep.c: Include osabi.h.
5333 (gdbarch_tdep): Add osabi member.
5334 (_initialize_sparc_tdep): Use gdbarch_register.
5335 (sparc_gdbarch_init): Use generic OS ABI framework.
5336 (sparc_dump_tdep): New function.
5337
ee8ff470
KB
53382002-05-30 Kevin Buettner <kevinb@redhat.com>
5339
5340 * corefile.c (do_captured_read_memory_integer): Return non-zero
5341 result.
5342 (safe_read_memory_integer): Copy result of memory read when
5343 status is non-zero. Also, add comments.
5344
7b112f9c
JT
53452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5346
5347 * Makefile.in (ppc_tdep_h): Define.
5348 (ppc-linux-nat.o)
5349 (ppc-linux-tdep.o)
5350 (rs6000-tdep.o): Use $(ppc_tdep_h).
5351 (ppc-sysv-tdep.o)
5352 (ppcnbsd-nat.o)
5353 (ppcnbsd-tdep.o): New dependency lists.
5354 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5355 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5356 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5357 (ppc_sysv_abi_broken_use_struct_convention)
5358 (ppc_sysv_abi_use_struct_convention)
5359 (ppc_sysv_abi_push_arguments): Move to...
5360 * ppc-sysv-tdep.c: ...here.
5361 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5362 * rs6000-tdep.c (process_note_abi_tag_sections)
5363 (get_elfosabi): Remove.
5364 (rs6000_gdbarch_init): Use generic OS ABI framework.
5365 (rs6000_dump_tdep): New function.
5366 (_initialize_rs6000_tdep): Use gdbarch_register.
5367 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5368 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5369 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5370 of ppc-linux-tdep.o.
5371 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5372 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5373 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5374 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5375 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5376 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5377
480dd42a
JB
53782002-05-29 Jim Blandy <jimb@redhat.com>
5379
5380 * macroscope.c (default_macro_scope): Put `void' in empty argument
5381 list.
5382
4182591f
AC
53832002-05-29 Andrew Cagney <ac131313@redhat.com>
5384
5385 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5386 * arch-utils.c: Include "sim-regno.h".
5387 * gdbarch.sh: Don't include "sim-regno.h".
5388 * gdbarch.h, gdbarch.c: Regenerate.
5389 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5390 here.
5391 * arch-utils.h (legacy_register_sim_regno): To here.
5392 * remote-sim.c (legacy_register_sim_regno): Move function from
5393 here.
5394 * arch-utils.c (legacy_register_sim_regno): To here.
5395
8238d0bf
AC
53962002-05-28 Andrew Cagney <ac131313@redhat.com>
5397
5398 * sim-regno.h: New file.
5399 * Makefile.in (sim_regno_h): Define.
5400 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5401 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5402 (legacy_register_sim_regno): New function.
5403 (one2one_register_sim_regno): New function.
5404 (gdbsim_fetch_register): Rewrite.
5405 (gdbsim_store_register): Only store a register when
5406 REGISTER_SIM_REGNO is valid.
5407 * d10v-tdep.c: Include "sim-regno.h".
5408 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5409 (d10v_ts3_register_sim_regno): Ditto.
5410 * gdbarch.sh: Include "sim-regno.h".
5411 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5412 * gdbarch.h, gdbarch.c: Regenerate.
5413 * arch-utils.h (default_register_sim_regno): Delete declaration.
5414 * arch-utils.c (default_register_sim_regno): Delete function.
5415
485721b1
JT
54162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5417
5418 * ppcnbsd-nat.c: Rewrite.
5419 * ppcnbsd-tdep.c: New file.
5420 * ppcnbsd-tdep.h: New file.
5421 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5422 solib.o, and solib-svr4.o.
5423 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5424 nbsd-tdep.o, and corelow.o.
5425
697f244d
AC
54262002-05-28 Andrew Cagney <ac131313@redhat.com>
5427
5428 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5429 `tr' and `sed'. Mention that `broken' targets are not expected to
5430 build.
5431
f08caad1 54322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5433
5434 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5435 Let PC point right after the prologue before looking up symbols.
5436
3139facc
MH
54372002-05-27 Martin M. Hunt <hunt@redhat.com>
5438
5439 * i386-tdep.c (i386_register_virtual_type): Return
5440 builtin_type_vec128i for SSE registers.
5441
5442 * gdbtypes.h (builtin_type_vec128i): Declare.
5443
5444 * gdbtypes.c (build_builtin_type_vec128i): New function.
5445 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5446 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5447 (build_gdbtypes): Initialize new builtin vector types.
5448 (_initialize_gdbtypes): Register new vector types with gdbarch.
5449
6e3ba3b8
JT
54502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5451
5452 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5453 since it has been multi-arch'd.
5454 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5455 Move Alpha and VAX multi-arch news entries to same section
5456 as other multi-arch news.
5457
93d5585d
JT
54582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5459
5460 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5461 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5462 static. Rename some register numbers to put them in ns32k-tdep
5463 private namespace.
5464 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5465 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5466 functions.
5467 (_initialize_ns32k_tdep): Use gdbarch_register.
5468 * ns32k-tdep.h: New file.
5469 * ns32knbsd-tdep.c: New file.
5470 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5471 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5472 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5473 REGISTER_BYTES, REGISTER_BYTE): Remove.
5474 * config/ns32k/tm-ns32k.h: New file.
5475 * config/ns32k/tm-umax.h: Remove.
5476
efb2c70e
JT
54772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5478
5479 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5480 ns32k_store_struct_return, ns32k_extract_return_value,
5481 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5482 functions.
5483 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5484 ns32k_saved_pc_after_call.
5485 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5486 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5487 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5488 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5489 ns32k_extract_struct_value_address.
5490
7bcc927b
JT
54912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5492
5493 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5494 ns32k_fix_call_dummy): New.
5495 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5496 ns32k_call_dummy_words.
5497 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5498 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5499 CALL_DUMMY_NARGS): Remove.
5500 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5501
78f9d765
JT
55022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5503
5504 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5505 ns32k_frame_saved_pc, ns32k_frame_args_address,
5506 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5507 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5508 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5509 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5510 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5511 (BREAKPOINT): Remove..
5512 (FRAME_CHAIN): Define as ns32k_frame_chain.
5513 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5514 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5515 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5516 (FRAME_FIND_SAVED_REGS): Remove.
5517 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5518 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5519 (POP_FRAME): Define as ns32k_pop_frame.
5520
f2c762e0
JT
55212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5522
5523 * ns32k-tdep.c (ns32k_register_byte_32082,
5524 ns32k_register_byte_32382, ns32k_register_raw_size,
5525 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5526 functions.
5527 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5528 ns32k_register_byte_32382.
5529 * config/ns32k/tm-umax.h: Update copyright years.
5530 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5531 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5532 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5533 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5534 (ns32k_get_enter_addr): Fix prototype.
5535
af137673
JT
55362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5537
5538 * ns32k-tdep.c: Update copyright years.
5539 (ns32k_register_name_32082): New function.
5540 (ns32k_register_name_32382): Ditto.
5541 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5542 (REGISTER_NAME): Define as ns32k_register_name_32382.
5543 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5544 (REGISTER_NAME): Define as ns32k_register_name_32082.
5545
a8bc7b56
JB
55462002-05-24 Jim Blandy <jimb@redhat.com>
5547
5548 * dwarf2read.c (free_line_header): Use xfree, not free.
5549
83a45910
JT
55502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5553 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5554
0db71247
AC
55552002-05-23 Andrew Cagney <ac131313@redhat.com>
5556
5557 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5558
b9e5e4dd
AC
55592002-05-23 Andrew Cagney <ac131313@redhat.com>
5560
5561 From Ross Alexander at NEC Europe:
5562 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5563
de530e84
MS
55642002-05-23 Michael Snyder <msnyder@redhat.com>
5565
5566 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5567 for input, rather than parse_and_eval_address.
5568
b91b96f4
AC
55692002-05-23 Andrew Cagney <ac131313@redhat.com>
5570
5571 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5572 * Makefile.in (sim_d10v_h): Update definition.
5573
8b279e7a
AC
55742002-05-24 Andrew Cagney <cagney@redhat.com>
5575
5576 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5577 change `2002-05-22 Michael Snyder' below.
5578 (d10v_push_arguments): Ditto.
5579 (d10v_extract_return_value): Ditto.
5580
0a3d0425
JB
55812002-05-23 Jim Blandy <jimb@redhat.com>
5582
5583 * macrotab.c (check_for_redefinition): Don't complain if the new
5584 definition is the same as the previous one. Take more arguments
5585 to allow the comparison.
5586 (macro_define_object, macro_define_function): Pass more arguments
5587 to check_for_redefinition.
5588
78eac43e
MS
55892002-05-22 Michael Snyder <msnyder@redhat.com>
5590
5591 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5592 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5593 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5594 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5595 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5596 Add a temp variable to save a call (and a memory read).
5597 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5598 if possible (so that PC_IN_CALL_DUMMY will work).
5599
9bc1edb8
CV
56002002-05-22 Corinna Vinschen <vinschen@redhat.com>
5601
5602 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5603
005ef3d2
ML
56042002-05-22 Michal Ludvig <mludvig@suse.cz>
5605
5606 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5607 fde->cie_ptr.
5608 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5609 (dwarf2_build_frame_info): Add offset to fde->initial_location
5610 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5611 (execute_stack_op): Change type of 'result' from ULONGEST to
5612 CORE_ADDR.
005ef3d2 5613
fcf4f891
JT
56142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5615
5616 * config/alpha/tm-nbsd.h: Include solib.h.
5617
cfef91e4
JT
56182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5619
5620 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5621 assumptions about the host's byte order.
5622
9964235a
JT
56232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5624
5625 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5626 to dependency list.
5627 * alphanbsd-tdep.c: Include solib-svr4.h.
5628 * shnbsd-tdep.c: Ditto.
5629
9eeef8ef
JT
56302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5631
5632 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5633 nbsd-tdep.h to dependency list.
5634 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5635 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5636 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5637 nbsdaout.mh and nbsdelf.mh consistently.
5638 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5639 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5640 nbsdaout.mt and nbsdelf.mh consistently.
5641 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5642 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5643 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5644 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5645 a.out shared library stuff from here...
5646 * config/nm-nbsdaout.h: ...to here.
5647 * config/tm-nbsd.h: Remove.
5648 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5649 * config/arm/nbsd.mh: Remove.
5650 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5651 nbsd-tdep.o.
5652 * config/arm/nbsdaout.mh: New file.
5653 * config/arm/nbsdelf.mh: New file.
5654 * config/arm/nm-nbsdaout.h: New file.
5655 * config/i386/nbsd.mh: Remove.
5656 * config/i386/nbsd.mt: Remove.
5657 * config/i386/nbsdaout.mh: New file.
5658 * config/i386/nbsdaout.mt: New file.
5659 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5660 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5661 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5662 i386_register_u_addr): Remove.
5663 * config/i386/nm-nbsdaout.h: New file.
5664 * config/i386/nm-nbsdelf.h: Remove.
5665 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5666 (USE_STRUCT_CONVENTION): Remove.
5667 * config/i386/tm-nbsdaout.h: New file.
5668 * config/i386/tm-nbsdelf.h: Remove.
5669 * config/m68k/nbsd.mh: Remove.
5670 * config/m68k/nbsd.mt: Remove.
5671 * config/m68k/nbsdaout.mh: New file.
5672 * config/m68k/nbsdaout.mt: New file.
5673 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5674 * config/m68k/nm-nbsdaout.h: New file.
5675 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5676 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5677 * config/ns32k/nbsd.mh: Remove.
5678 * config/ns32k/nbsd.mt: Remove.
5679 * config/ns32k/nbsdaout.mh: New file.
5680 * config/ns32k/nbsdaout.mt: New file.
5681 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5682 * config/ns32k/nm-nbsdaout.h: New file.
5683 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5684 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5685 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5686 (SVR4_SHARED_LIBS): Remove.
5687 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5688 * config/sparc/nbsd.mh: Remove.
5689 * config/sparc/nbsd.mt: Remove.
5690 * config/sparc/nbsdaout.mh: New file.
5691 * config/sparc/nbsdaout.mt: New file.
5692 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5693 * config/sparc/nbsdelf.mt: New file.
5694 * config/sparc/nm-nbsdaout.h: New file.
5695 * config/sparc/nm-nbsdelf.h: Remove.
5696 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5697 * config/sparc/tm-nbsdaout.h: New file.
5698
257ce470
JT
56992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5700
5701 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5702 mipsnbsd-tdep.c
5703 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5704
76a6d5fe
JT
57052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5706
5707 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5708 shnbsd-nat.c.
5709 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5710
45888261
JT
57112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5712
5713 * NEWS: Note new MIPS NetBSD native configuration.
5714 * configure.host (mips*-*-netbsd*): New host.
5715 * configure.tgt (mips*-*-netbsd*): New target.
5716 * mipsnbsd-nat.c: New file.
5717 * mipsnbsd-tdep.c: New file.
5718 * mipsnbsd-tdep.h: New file.
5719 * config/mips/nbsd.mh: New file.
5720 * config/mips/nbsd.mt: New file.
5721 * config/mips/nm-nbsd.h: New file.
5722 * config/mips/tm-nbsd.h: New file.
5723
70f80edf
JT
57242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5725
5726 * Makefile.in (SFILES): Add osabi.c.
5727 (COMMON_OBS): Add osabi.o.
5728 (osabi.o): New dependency list.
5729 * osabi.c: New file.
5730 * osabi.h: New file.
5731 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5732
5733 * Makefile.in (alpha_tdep_h): Define and use instead of
5734 alpha-tdep.h.
5735 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5736 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5737 Remove.
5738 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5739 * alpha-tdep.h: Include osabi.h.
5740 (alpha_abi): Remove.
5741 (gdbarch_tdep): Use generic OS ABI framework.
5742 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5743 gdbarch_register_osabi.
5744 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5745 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5746 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5747
5748 * Makefile.in (sh_tdep_h): Add osabi.h.
5749 * sh-tdep.h (sh_osabi): Remove.
5750 (gdbarch_tdep): Use generic OS ABI framework.
5751 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5752 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5753 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5754 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5755
5756 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5757 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5758 gdbarch_register_osabi.
5759 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5760 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5761 (get_elfosabi): Rename to...
5762 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5763 ABI framework support routines.
5764 (arm_gdbarch_init): Use generic OS ABI framework.
5765 (arm_dump_tdep): Likewise.
5766 (_initialize_arm_tdep): Likewise.
5767 * arm-tdep.h: Include osabi.h.
5768 (arm_abi): Remove.
5769 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5770 osabi member.
5771 (arm_gdbarch_register_os_abi): Remove prototype.
5772 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5773 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5774
5775 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5776 * mips-tdep.c: Include osabi.h.
5777 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5778 OS ABI framework.
5779
d194345b
KH
57802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5781
5782 * h8300-tdep.c: Fix formatting.
5783
70c6b0d1
EZ
57842002-05-20 Elena Zannoni <ezannoni@redhat.com>
5785
5786 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5787 printing vector registers.
5788
165b8e33
AC
57892002-05-19 Andrew Cagney <ac131313@redhat.com>
5790
5791 From Fernando Nasser:
5792 * remote.c (remote_async_open_1): Re-throw the exception when the
5793 connection fails.
5794 (remote_cisco_open): Ditto.
5795 (remote_open_1): Ditto.
5796
36918e70
AC
57972002-05-19 Andrew Cagney <ac131313@redhat.com>
5798
5799 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5800 (remote_start_remote): Add uiout parameter. Pass through to
5801 remote_start_remote_dummy.
5802 (remote_open_1): Use catch_exception instead of catch_errors.
5803 (remote_async_open_1): Ditto.
5804 (remote_cisco_open): Ditto.
5805
ae44c0c4
AC
58062002-05-19 Andrew Cagney <ac131313@redhat.com>
5807
5808 * remote.c (remote_start_remote): Replace PTR with void pointer.
5809 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5810 static.
5811
8efe637d
AC
58122002-05-18 Andrew Cagney <ac131313@redhat.com>
5813
5814 * gdb_indent.sh: Allow the script to be run in the sim directory.
5815
2f1b5984
MK
58162002-05-18 Mark Kettenis <kettenis@gnu.org>
5817
f0f625e2
MK
5818 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5819 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5820
2f1b5984
MK
5821 * corelow.c (core_open): Only call set_gdbarch_from_file if
5822 exec_bfd is NULL.
5823
fc974602
AV
58242002-05-17 Andrey Volkov <avolkov@transas.com>
5825
5826 * h8300-tdep.c: Add support of EXR register
5827 * config/h8300/tm-h8300.h: Ditto.
5828
906709f4
AV
58292002-05-17 Andrey Volkov <avolkov@transas.com>
5830
5831 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5832
6e591d68
AV
58332002-05-17 Andrey Volkov <avolkov@transas.com>
5834
5835 * h8300-tdep.c: Change literal regnums to REGNO.
5836
84f0252a
JB
58372002-05-17 Jim Blandy <jimb@redhat.com>
5838
e0e9281e
JB
5839 * NEWS: Note addition of macro support.
5840
84f0252a
JB
5841 Expand preprocessor macros in C expressions.
5842 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5843 (scan_macro_expansion, scanning_macro_expansion,
5844 finished_macro_expansion): New function declarations.
5845 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5846 variable declarations.
5847 * parser-defs.h (expression_context_pc): New declaration.
5848 * parse.c (expression_context_pc): New variable.
5849 (parse_exp_1): Set expression_context_pc, as well as
5850 expression_context_block.
5851 * c-exp.y (yylex): If we're not already reading the result of a
5852 macro expansion, try to macro-expand the next token. When we're
5853 done scanning a macro expansion, switch back to the mainline text.
5854 Commas and `if's in a macro's expansion don't terminate the input.
5855 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5856 (macro_original_text, macro_expanded_text,
5857 expression_macro_lookup_func, expression_macro_lookup_baton): New
5858 variables.
5859 (scan_macro_expansion, scanning_macro_expansion,
5860 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5861 c_preprocess_and_parse): New functions.
5862 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5863 c_preprocess_and_parse, instead of c_parse.
5864 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5865 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5866
1c509ca8
JR
5867Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5868
5869 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5870 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5871 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5872
2250ee0c
CV
58732002-05-17 Corinna Vinschen <vinschen@redhat.com>
5874
5875 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5876
ab3b8126
JT
58772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5878
5879 * Makefile.in (sh_tdep_h): Define and use.
5880 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5881 register enum): Move to...
5882 * * sh-tdep.h: ...here.
5883 * sh-tdep.c: Include sh-tdep.h.
5884 * sh3-rom.c: Likewise.
5885 * shnbsd-tdep.c: Likewise.
5886
ed9d4749
MS
58872002-05-16 Michael Snyder <msnyder@redhat.com>
5888
5889 * arm-tdep.c: Spelling fix in comment.
5890
2e276125
JB
58912002-05-16 Jim Blandy <jimb@redhat.com>
5892
6821892e
JB
5893 Add commands for manually expanding macros and showing their
5894 definitions.
5895 * macrocmd.c, macroscope.c, macroscope.h: New files.
5896 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5897 (macroscope_h): New variable.
5898 (HFILES_NO_SRCDIR): Add macroscope.h.
5899 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5900 (macroscope.o, macrocmd.o): New rules.
5901
2e276125
JB
5902 Teach the Dwarf 2 reader to read macro information.
5903 * dwarf2read.c: #include "macrotab.h".
5904 (dwarf_macinfo_buffer): New variable.
5905 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5906 dwarf_macinfo_size.
5907 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5908 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5909 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5910 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5911 dwarf2_macro_spaces_in_definition): New complaints.
5912 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5913 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5914 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5915 the partial symbol table.
5916 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5917 from what's recorded in the partial symbol table.
5918 (read_file_scope): If the compilation unit has a
5919 `DW_AT_macro_info' attribute, read its macro information.
5920 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5921
2f53fe6c
DJ
59222002-05-16 Daniel Jacobowitz <drow@mvista.com>
5923
5924 Fix PR gdb/546
5925 * ser-tcp.c: Don't include <netinet/udp.h>.
5926
2be99286
SC
59272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5928
5929 * MAINTAINERS: Update my email address.
5930
c9af212b 59312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5932
5933 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5934 include file of the same name.
5935
bf5f1a52
CV
59362002-05-16 Corinna Vinschen <vinschen@redhat.com>
5937
5938 * configure.tgt: Mark v850 as multi-arched.
5939 * config/v850/tm-v850.h: Remove file.
5940 * config/v850/v850.mt: Eliminate TM_FILE.
5941
435e042a
CV
59422002-05-16 Corinna Vinschen <vinschen@redhat.com>
5943
5944 * v850-tdep.c: Full multi-arch.
5945 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5946 Define GDB_MULTI_ARCH to 2.
5947
9819c6c8
PM
59482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5949
5950 * p-exp.y (current_type): New static variable.
5951 Carries the type of the expression at the position that is parsed.
5952 (push_current_type, pop_current_type): Two new functions. Used
5953 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5954 (search_field): New static variable. Set to one after parsing a point
5955 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5956 (FIELDNAME): New token. After a point only a token belonging to
5957 current_type type definition is allowed.
5958 (all over token rules): reset and change current_type according
5959 to rules.
5960 (exp '[' rule): insert implicit array index field if
5961 exp is a pascal string type.
5962
3a06899a
CV
59632002-05-16 Corinna Vinschen <vinschen@redhat.com>
5964
5965 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5966 frame info. Use frame_info's saved_regs instead of matching member
5967 in extra_frame_info throughout.
5968 (v850_frame_init_saved_regs): New function.
5969 (v850_init_extra_frame_info): Move most functionality into
5970 v850_frame_init_saved_regs().
5971 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5972 (v850_frame_find_saved_regs): Remove declaration.
5973 (FRAME_FIND_SAVED_REGS): Remove definition.
5974 (v850_frame_init_saved_regs): Add declaration.
5975 (FRAME_INIT_SAVED_REGS): Add definition.
5976
6ed14b0e
CV
59772002-05-16 Corinna Vinschen <vinschen@redhat.com>
5978
5979 * v850-tdep.c: Begin multi-arch'ing v850.
5980 (v850_target_architecture_hook): Remove function.
5981 (v850_gdbarch_init): New function. Add code previously in
5982 v850_target_architecture_hook().
5983 (_initialize_v850_tdep): Don't set target_architecture_hook.
5984 Call register_gdbarch_init() instead.
5985
42725910
DJ
59862002-05-16 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5989 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5990 (fixup_class_method_type): Likewise.
5991
99d9066e
JB
59922002-05-15 Jim Blandy <jimb@redhat.com>
5993
5994 Add macro structures to GDB's symbol tables. Nobody puts anything
5995 in them yet.
5996 * symtab.h (struct symtab): New member: `macro_table'.
5997 * buildsym.h (pending_macros): New global variable.
5998 * buildsym.c: #include "macrotab.h".
5999 (buildsym_init): Initialize `pending_macros'.
6000 (end_symtab): If we found macro information while reading a CU's
6001 debugging info, do build a symtab structure for it. Make the
6002 symtab point to the macro information, and clear the
6003 `pending_macros' pointer which held it while we were reading the
6004 debug info.
6005 (really_free_pendings): Free any pending macro table.
6006 * objfiles.h (struct objfile): New member: `macro_cache'.
6007 * objfiles.c (allocate_objfile): Set allocate and free functions
6008 for the macro cache's objstack.
6009 (free_objfile): Empty the macro cache's obstack.
6010 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6011 set new allocate and free functions for it.
6012 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6013 free functions for the macro cache's objstack. (Why is this
6014 function building its own objfile?)
6015 * symmisc.c (print_objfile_statistics): Print statistics on the
6016 macro bcache.
6017 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6018
c899585b
RE
60192002-05-15 Richard Earnshaw <rearnsha@arm.com>
6020
6021 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6022 (REGISTER_U_ADDR): Delete definition.
6023 (arm_register_u_addr): Delete declaration.
6024
a6cdd8c5
RE
60252002-05-15 Richard Earnshaw <rearnsha@arm.com>
6026
6027 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6028 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6029
c97dcfc7
AC
60302002-05-14 Andrew Cagney <ac131313@redhat.com>
6031
6032 * regcache.c (register_valid): Revise comments refering to "Not
6033 available" and "unavailable".
6034 * frame.c (frame_register_read): Ditto.
6035 * findvar.c (value_of_register): Ditto.
6036
93021b7d
AC
60372002-05-15 Andrew Cagney <cagney@redhat.com>
6038
6039 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6040 (remote-sim.o): Update dependencies.
6041 (d10v-tdep.o): Specify dependencies.
6042 (sim_d10v_h): Define.
6043
a86bc61c
JB
60442002-05-14 Jim Blandy <jimb@redhat.com>
6045
6046 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6047 * macrotab.c (macro_lookup_inclusion, find_definition,
6048 new_macro_table): Same.
6049
6050 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6051 not `! strcmp ()'. This is a dubious improvement.
6052 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6053
6054 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6055 although it's not necessary, to avoid a warning.
6056
2fdde8f8
DJ
60572002-05-14 Daniel Jacobowitz <drow@mvista.com>
6058
6059 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6060 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6061 TYPE_INSTANCE_FLAGS.
6062 (struct main_type): New.
6063 (struct type): Move most members to struct main_type. Change
6064 cv_type and as_type to new type_chain member. Add instance_flags.
6065 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6066 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6067 (finish_cv_type): Remove prototype.
6068 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6069 Set TYPE_CHAIN.
6070 (alloc_type_instance): New function.
6071 (smash_type): New function.
6072 (make_pointer_type, make_reference_type, make_function_type)
6073 (smash_to_member_type, smash_to_method_type): Call smash_type.
6074 (make_qualified_type): New function.
6075 (make_type_with_address_space): Call make_qualified_type.
6076 (make_cv_type): Likewise.
6077 (finish_cv_type): Remove unnecessary function.
6078 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6079 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6080 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6081 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6082 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6083 * hpread.c (hpread_read_struct_type): Likewise.
6084 * stabsread.c (read_struct_type): Likewise.
6085
843fedf4
EZ
60862002-05-14 Elena Zannoni <ezannoni@redhat.com>
6087
6088 * configure.tgt: Add a catch all sh* target, for cases like
6089 sh[2,3,4]-elf and sh-hms.
6090
05a6c72c
KS
60912002-05-14 Keith Seitz <keiths@redhat.com>
6092
6093 * event-loop.c (create_file_handler): Don't do anything but
6094 update data when we are given a fd which we are already
6095 monitoring.
6096
5d085aaf
ML
60972002-05-14 Michal Ludvig <mludvig@suse.cz>
6098
6099 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6100 (update_context): Use __func__ in warnings.
6101
9db8d71f
DJ
61022002-05-14 Daniel Jacobowitz <drow@mvista.com>
6103
6104 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6105 and tcp_close to net_open and net_close.
6106 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6107 using UDP if requested. Don't try to disable Nagle on UDP
6108 sockets.
6109 * remote.c (remote_serial_open): New function. Warn about UDP.
6110 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6111
5dbc6baa
EZ
61122002-05-13 Elena Zannoni <ezannoni@redhat.com>
6113
6114 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6115
cc3023f7
EZ
61162002-05-13 Elena Zannoni <ezannoni@redhat.com>
6117
6118 * configure.tgt: Remove sh-hms target.
6119 * MAINTAINERS: Don't list sh-hms as a separate target.
6120
ec2bcbe7
JB
61212002-05-13 Jim Blandy <jimb@redhat.com>
6122
6123 Add first preprocessor macro-expansion files.
6124 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6125 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6126 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6127 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6128 (COMMON_OBS): Add macrotab.o, macroexp.o.
6129 (macroexp.o, macrotab.o): New rules.
6130
6d531722
AC
61312002-05-13 Andrew Cagney <ac131313@redhat.com>
6132
6133 * config/m88k/tm-m88k.h: Update copyright.
6134 (m88k_target_write_pc): Declare
6135 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6136 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6137 (SHIFT_INST_REGS): Update definition.
6138 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6139 using old definition of TARGET_WRITE_PC.
6140 * regcache.c (generic_target_write_pc): Delete code handling
6141 NNPC_REGNUM.
6142 * gdbarch.sh (NNPC_REGNUM): Delete.
6143 * gdbarch.h, gdbarch.c: Regenerate.
6144
3e3f2739
RE
61452002-05-13 Richard Earnshaw <rearnsha@arm.com>
6146
6147 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6148 builtin reg number.
6149
0004e5a2
DJ
61502002-05-13 Daniel Jacobowitz <drow@mvista.com>
6151
6152 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6153 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6154 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6155 access macros.
6156 * c-typeprint.c (cp_type_print_method_args): Likewise.
6157 (c_type_print_args): Likewise.
6158 * d10v-tdep.c (d10v_push_arguments): Likewise.
6159 (d10v_extract_return_value): Likewise.
6160 * expprint.c (print_subexp): Likewise.
6161 * gdbtypes.c (lookup_primitive_typename): Likewise.
6162 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6163 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6164 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6165 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6166 (TYPE_VECTOR): Likewise.
6167 * hpread.c (hpread_read_struct_type)
6168 (fix_static_member_physnames, fixup_class_method_type)
6169 (hpread_type_lookup): Likewise.
6170 * mdebugread.c (parse_symbol, parse_type): Likewise.
6171 * p-lang.c (is_pascal_string_type): Likewise.
6172 * valops.c (hand_function_call): Likewise.
6173 * x86-64-tdep.c (classify_argument): Likewise.
6174
6175 * hpread.c (hpread_read_function_type)
6176 (hpread_read_doc_function_type): Call replace_type.
6177 * dstread.c (create_new_type): Delete.
6178 (decode_dst_structure, process_dst_function): Call alloc_type.
6179 Use type access macros.
6180
dff95cc7
MK
61812002-05-12 Mark Kettenis <kettenis@gnu.org>
6182
6183 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6184 the're not supported by the current architecture.
6185 (i387_fill_fxsave): Likewise.
6186
bbcd32ad
FF
61872002-05-12 Fred Fish <fnf@redhat.com>
6188
6189 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6190 sect_index_xxx members to index the first slot in section_offsets
6191 if all of the section_offsets are zero.
6192
89cf4787
MK
61932002-05-12 Mark Kettenis <kettenis@gnu.org>
6194
6195 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6196 checked in with last change.
6197
1f77ffc5
MK
61982002-05-12 Mark Kettenis <kettenis@gnu.org>
6199
6200 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6201 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6202 config.sub.
6203
89b8b4a9
DJ
62042002-05-12 Daniel Jacobowitz <drow@mvista.com>
6205
6206 * Makefile.in: Update dependencies.
6207
14a5e767
AC
62082002-05-11 Andrew Cagney <ac131313@redhat.com>
6209
6210 * language.c (local_hex_string_custom): Simplify. Do not depend
6211 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6212
6213 * memattr.c (mem_info_command): Replace calls to
6214 longest_local_hex_string and longest_local_hex_string_custom.
6215 * buildsym.c (make_blockvector): Ditto.
6216 * solib.c (info_sharedlibrary_command): Ditto.
6217 * tracepoint.c (tracepoints_info): Ditto.
6218 * symtab.c (print_msymbol_info): Ditto.
6219
6220 * language.c (local_hex_string): Delete.
6221 (local_hex_string_custom): Delete.
6222 (longest_local_hex_string): Rename to local_hex_string.
6223 (longest_local_hex_string_custom): Rename to
6224 local_hex_string_custom.
6225 * language.h (local_hex_string): Change parameter type to LONGEST.
6226 (local_hex_string_custom): Ditto.
6227 (longest_local_hex_string): Delete declaration.
6228 (longest_local_hex_string_custom): Ditto.
6229
6230 * solib.c: Update copyright.
6231 * memattr.c: Update copyright.
6232
13d01224
AC
62332002-05-11 Andrew Cagney <ac131313@redhat.com>
6234
6235 * arch-utils.h (legacy_register_to_value): Declare.
6236 (legacy_value_to_register): Declare.
6237 (legacy_convert_register_p): Declare.
6238 * arch-utils.c (legacy_register_to_value): New function.
6239 (legacy_value_to_register): New function.
6240 (legacy_convert_register_p): New function.
6241
6242 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6243 (VALUE_TO_REGISTER): Define.
6244 (CONVERT_REGISTER_P): Define.
6245 * gdbarch.h, gdbarch.c: Regenerate.
6246
6247 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6248 VALUE_TO_REGISTER.
6249 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6250 CONVERT_REGISTER_P.
6251
4a1970e4
DJ
62522005-05-11 Daniel Jacobowitz <drow@mvista.com>
6253 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6254
6255 * Makefile.in: Update dependencies for valops.c.
6256 * valops.c: Include "gdb_assert.h".
6257 (typecmp): Skip THIS parameter to methods.
6258 (find_method_list): Remove static_memfuncp argument,
6259 update callers. Check for stub methods.
6260 (find_value_oload_method_list): Don't set *static_memfuncp.
6261 (find_overload_match): Don't check for stub methods. Assert
6262 that methods are not stubbed. Handle static methods.
6263 (value_find_oload_method_list): Remove static_memfuncp argument.
6264 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6265 to the argument list for static stub methods.
6266 * value.h (value_find_oload_method_list): Update prototype.
6267
b2e75d78
AC
62682002-05-11 Andrew Cagney <ac131313@redhat.com>
6269
6270 * arch-utils.h (generic_register_size): Declare.
6271 (generic_register_raw_size, generic_register_virtual_size): Delete
6272 declarations.
6273 * arch-utils.c (generic_register_raw_size): Delete.
6274 (generic_register_size): New function.
6275 (generic_register_virtual_size): Delete.
6276
6277 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6278 default generic_register_size.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6280
6281 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6282 register_virtual_size.
6283 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6285
451fbdda
AC
62862002-05-11 Andrew Cagney <ac131313@redhat.com>
6287
6288 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6289 * gdbarch.h, gdbarch.c: Regenerate.
6290 * gnu-v3-abi.c: Update copyright.
6291 (vtable_address_point_offset): Update.
6292 (gnuv3_rtti_type): Update.
6293 (gnuv3_baseclass_offset): Update.
6294 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6295 (init_fetch_link_map_offsets): Update.
6296 * remote.c (get_remote_state): Update.
6297
6d2f5cea
DJ
62982002-05-11 Daniel Jacobowitz <drow@mvista.com>
6299
6300 * TODO: Remove value_headof/value_from_vtable_info comment.
6301 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6302 * values.c (value_headof, value_from_vtable_info): Delete.
6303 * value.h (value_from_vtable_info): Delete prototype.
6304
d2324da4
AC
63052002-05-11 Andrew Cagney <ac131313@redhat.com>
6306
6307 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6308 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6309 $(gdb_regex_h).
6310 (gdb_assert_h): Define.
6311 (gdb_wait_h): Define.
6312 (gdb_regex_h): Define.
6313
5c717440
DJ
63142002-05-11 Daniel Jacobowitz <drow@mvista.com>
6315
6316 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6317 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6318
6c7861b3
JT
63192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6320
6321 * nbsd-tdep.c: Fix comment.
6322
ea5bc2a6
JT
63232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6324
6325 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6326 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6327 (nbsd-tdep.o): New dependency list.
6328 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6329 nbsd-tdep.h.
6330 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6331 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6332 * nbsd-tdep.c: New file.
6333 * nbsd-tdep.h: New file.
6334 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6335 nbsd-tdep.h.
6336 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6337 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6338 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6339 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6340
b28da865
JT
63412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6342
6343 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6344 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6345 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6346 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6347 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6348 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6349
4b8ff1fa
JT
63502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6351
6352 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6353 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6354 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6355 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6356 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6357 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6358 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6359
dfe6eb1f
JT
63602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6363 fetch_elfcore_registers to...
6364 * i386nbsd-tdep.c: ...here.
6365 (i386nbsd_use_struct_convention): Rename to...
6366 (i386nbsd_aout_use_struct_convention): ...this.
6367 (i386nbsd_supply_reg): New function.
6368 (i386nbsd_fill_reg): New function.
6369 (fetch_core_registers): Use i386nbsd_supply_reg.
6370 (fetch_elfcore_registers): Likewise.
6371 (_initialize_i386nbsd_tdep): New function.
6372 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6373 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6374 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6375 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6376 (i386nbsd_aout_use_struct_convention): ...this.
6377
20cb8cda
JT
63782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6379
6380 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6381 (store_inferior_registers): Use shnbsd_fill_reg.
6382 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6383 sh_nbsd_supply_register): Collapse into...
6384 (shnbsd_supply_reg): ...this.
6385 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6386 (shnbsd_fill_reg): ...this.
6387 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6388 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6389 (fetch_core_registers): Use shnbsd_supply_reg.
6390 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6391 (sh_nbsd_core_fns): Rename to...
6392 (shnbsd_core_fns): ...this.
6393 (sh_nbsd_elfcore_fns): Rename to...
6394 (shnbsd_elfcore_fns): ...this.
6395 (sh_nbsd_init_abi): Rename to...
6396 (shnbsd_init_abi): ...this.
6397 (_initialize_sh_nbsd_tdep): Rename to...
6398 (_initialize_shnbsd_tdep): ...this.
6399 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6400 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6401 sh_nbsd_fill_register): Remove prototypes.
6402 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6403
e750d25e
JT
64042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6405
6406 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6407 (i387-nat.o): Delete dependency list.
6408 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6409 (x86-64-linux-nat.o): Likewise.
6410 * i387-nat.c: Delete file, moving contents to...
6411 * i387-tdep.c: ...here.
6412 * i387-nat.h: Rename...
6413 * i387-tdep.h: ...to this.
6414 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6415 * i386-linux-nat.c: Likewise.
6416 * i386bsd-nat.c: Likewise.
6417 * i386gnu-nat.c: Likewise.
6418 * i386nbsd-nat.c: Likewise.
6419 * i386v4-nat.c: Likewise.
6420 * x86-64-linux-nat.c: Likewise.
6421 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6422 * config/i386/go32.mh (NATDEPFILES): Likewise.
6423 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6424 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6425 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6426 * config/i386/linux.mh (NATDEPFILES): Likewise.
6427 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6428 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6429 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6430 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6431
1aee598a
JT
64322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6433
6434 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6435 (alphanbsd-nat.o): Remove dependency list.
6436 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6437 * alphanbsd-nat.c: Delete. Contents moved to...
6438 * alphanbsd-tdep.c: ...here.
6439 (_initialize_alphanbsd_tdep): Register core functions.
6440 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6441
12bcb0fe
JT
64422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6445 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6446 (alphanbsd-nat.o): Likewise.
6447 (alphabsd-tdep.o): New dependency list.
6448 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6449 (fill_gregset): Use alphabsd_fill_reg.
6450 (supply_fpregset): Use alphabsd_supply_fpreg.
6451 (fill_fpregset): Use alphabsd_fill_fpreg.
6452 (fetch_inferior_registers): Use struct reg and struct fpreg
6453 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6454 and alphabsd_supply_fpreg.
6455 (store_inferior_registers): Use struct reg and struct fpreg
6456 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6457 and alphabsd_fill_fpreg.
6458 * alphabsd-tdep.c: New file.
6459 * alphabsd-tdep.h: New file.
6460 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6461 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6462 alphabsd_supply_fpreg.
6463 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6464 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6465
361d1df0
EC
64662002-05-11 Eric Christopher <echristo@redhat.com>
6467
6468 * mips-tdep.c (mips_double_register_type): Fix thinko.
6469 (mips_single_register_type): Ditto.
6470 * MAINTAINERS: Add self.
6471
92dd7cee
MK
64722002-05-11 Mark Kettenis <kettenis@gnu.org>
6473
6474 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6475 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6476 right thing on architectures with different endianness and/or
6477 integer sizes.
6478
e27da16d
JT
64792002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6480
6481 From Christian Limpach <chris@Pin.LU>
6482 * configure.in: Change sed expression which comments out
6483 NATDEPFILES to also comment out continuation lines.
6484 * configure: Regenerate.
6485
ddde02bd
EZ
64862002-05-10 Elena Zannoni <ezannoni@redhat.com>
6487
6488 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6489 big patch.
6490
1c922164
EZ
64912002-05-10 Elena Zannoni <ezannoni@redhat.com>
6492
6493 * sh-tdep.c: Include correct file.
6494
283150cd
EZ
64952002-05-10 Elena Zannoni <ezannoni@redhat.com>
6496
6497 New support for sh64-elf (sh5) target.
6498
6499 * configure.tgt: For sh64-elf target, default to sh-elf.
6500
6501 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6502 (struct gdbarch_tdep): Add new fields for new registers and ABI
6503 info.
361d1df0 6504
283150cd
EZ
6505 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6506 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6507 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6508 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6509 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6510 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6511 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6512 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6513 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6514 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6515 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6516 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6517 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6518 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6519 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6520 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6521 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6522 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6523 sign_extend, sh64_nofp_frame_init_saved_regs,
6524 sh64_init_extra_frame_info, sh64_get_saved_register,
6525 sh64_extract_struct_value_address, sh64_pop_frame,
6526 sh64_push_arguments, sh64_extract_return_value,
6527 sh64_store_return_value, sh64_show_media_regs,
6528 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6529 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6530 sh_sh64_register_virtual_type,
6531 sh_sh64_register_convert_to_virtual,
6532 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6533 sh64_register_read, sh64_pseudo_register_write,
6534 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6535 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6536 sh64_do_pseudo_register, sh_compact_do_registers_info,
6537 sh64_do_registers_info, sh_gdbarch_init): New functions.
6538
3117ed25
EZ
65392002-05-10 Elena Zannoni <ezannoni@redhat.com>
6540
6541 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6542
2654e6d4
DJ
65432002-05-10 Daniel Jacobowitz <drow@mvista.com>
6544
6545 * linespec.c (decode_line_1): Check for a double quote after
6546 a filename correctly.
6547
9ab3e532
JB
65482002-05-10 Jim Blandy <jimb@redhat.com>
6549
6550 Properly track the size of the current objfile's .debug_line section.
6551 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6552 (DWARF_LINE_SIZE): New macro.
6553 (dwarf2_build_psymtabs_hard): Record the line section's size in
6554 the partial symbol table.
6555 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6556 symbol table.
6557
126fa72d
PS
65582002-05-10 Petr Sorfa <petrs@caldera.com>
6559
6560 * ia64-tdep.c: Handle breakpoints on L instruction type
6561 in MLX instruction bundle by moving the breakpoint to
6562 the third slot (X instruction type) as L holds only data.
6563
1f077a3e
KB
65642002-05-10 Kevin Buettner <kevinb@redhat.com>
6565
6566 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6567 (process_one_symbol): Complain about discarding local symbols
6568 due to a misplaced N_LBRAC entry.
6569
8120c9d5 65702002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6571
6572 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6573 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6574 decrease the depth we are at, in the case of templates.
361d1df0 6575
67b2c998
DJ
65762002-05-09 Daniel Jacobowitz <drow@mvista.com>
6577
6578 * mips-tdep.c (mips_float_register_type): New function.
6579 (mips_double_register_type): New function.
6580 (mips_print_register): Use them.
6581 (do_fp_register_row): Likewise.
6582
fd326606
DJ
65832002-05-09 Daniel Jacobowitz <drow@mvista.com>
6584
6609d9af 6585 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6586 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6587 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6588
bef35864
MS
65892002-05-09 Michael Snyder <msnyder@redhat.com>
6590
6591 * remote-rdp.c (remote_rdp_can_run): Remove.
6592
c55a3f73
TT
65932002-05-09 Tom Tromey <tromey@redhat.com>
6594
6595 * jv-valprint.c (java_val_print): Handle `char' as a special case
6596 of TYPE_CODE_INT.
6597
b8d5e71d
MS
65982002-05-09 Michael Snyder <msnyder@redhat.com>
6599
6600 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6601 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6602 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6603 str r(0123),[sp,#nn].
361d1df0 6604 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6605 order-independent by placing it in a loop.
6606
e2cd42dd
MS
66072002-05-06 Michael Snyder <msnyder@redhat.com>
6608
6609 * stabsread.c (read_type): Add recognition for new attribute:
6610 "@V;" means that an array type is actually a vector.
6611 This is analogous to the vector flag that's been added to dwarf2.
6612
3ce1502b
MK
66132002-05-09 Mark Kettenis <kettenis@gnu.org>
6614
6615 * i386-tdep.h (i386_abi): New enum.
6616 (struct gdbarch_tdep): Replace os_ident member with abi.
6617 (i386_gdbarch_register_os_abi): New prototype.
6618 * i386-tdep.c (i386_abi_names): New array.
6619 (process_note_abi_tag_sections): Removed.
6620 (process_note_sections): New function.
6621 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6622 (struct i386_abi_handler): New struct.
6623 (i386_abi_handler_list): New variable.
6624 (i386_gdbarch_register_os_abi): New function.
6625 (i386_gdbarch_init): Adapt for the changes given above.
6626
084c156a
DJ
66272002-05-08 Daniel Jacobowitz <drow@mvista.com>
6628
6629 * gregset.h: Say "GNU/Linux".
6630
6599f021
EZ
66312002-05-08 Elena Zannoni <ezannoni@redhat.com>
6632
6633 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6634 (build_gdbtypes): Build builtin_type_v2_float.
6635 (_initialize_gdbtypes): Register new builtin type.
6636
40af4b0c
AC
66372002-05-08 Andrew Cagney <ac131313@redhat.com>
6638
6639 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6640 (clear_gdbarch_swap): New function.
6641 (initialize_non_multiarch): Call.
6642 (gdbarch_update_p): Before calling init(), swap out and clear the
6643 existing architecture.
6644 * gdbarch.c: Regenerate.
6645
4fe84f46
JT
66462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6647
6648 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6649 alphanbsd-tdep.c.
6650
4015edd1
JT
66512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6652
6653 * sh-nbsd-nat.c: Rename to...
6654 * shnbsd-nat.c: ...this.
6655 * sh-nbsd-tdep.c: Rename to...
6656 * shnbsd-tdep.c: ...this.
6657 * sh-nbsd-tdep.h: Rename to...
6658 * shnbsd-tdep.h: ...this.
6659 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6660 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6661
0e2bd219
RE
66622002-05-08 Richard Earnshaw <rearnsha@arm.com>
6663
6664 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6665 concatenation for command help messages.
6666
13a38d45
JT
66672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6668
6669 * NEWS: Note new sh*-*-netbsdelf* configuration.
6670 * configure.host: Set gdb_host_cpu to sh for all sh*.
6671 (sh*-*-netbsdelf*): New host.
6672 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6673 (sh*-*-netbsdelf*): New target.
6674 * sh-nbsd-nat.c: New file.
6675 * sh-nbsd-tdep.c: New file.
6676 * sh-nbsd-tdep.h: New file.
6677 * config/sh/nbsd.mh: New file.
6678 * config/sh/nbsd.mt: New file.
6679 * config/sh/nm-nbsd.h: New file.
6680 * config/sh/tm-nbsd.h: New file.
6681
d658f924
JT
66822002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6683
6684 * sh-tdep.c (sh_osabi_names): Declare.
6685 (process_note_abi_tag_sections): New function.
6686 (get_elfosabi): Ditto.
6687 (sh_gdbarch_register_os_abi): Ditto.
6688 (sh_dump_tdep): Ditto.
6689 _initialize_sh_tdep): Use gdbarch_register to register
6690 sh_gdbarch_init and sh_dump_tdep.
6691 * config/sh/tm-sh.h (sh_osabi): Declare.
6692 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6693
848cfffb
AC
66942002-05-07 Andrew Cagney <ac131313@redhat.com>
6695
6696 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6697 (thumb_scan_prologue): Ditto.
6698 (arm_find_callers_reg): Ditto.
6699 (arm_frame_chain): Ditto.
6700 (arm_init_extra_frame_info): Ditto.
6701 (arm_frame_saved_pc): Ditto.
6702 (arm_pop_frame): Ditto.
6703 (arm_push_return_address): New function.
6704 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6705 call_dummy_location, call_dummy_breakpoint_offset_p,
6706 call_dummy_breakpoint_offset, call_dummy_p,
6707 call_dummy_stack_adjust_p, call_dummy_words,
6708 sizeof_call_dummy_words, call_dummy_start_offset,
6709 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6710 call_dummy_address, push_return_address and push_dummy_frame for
6711 generic dummy frames.
6712
e7d717c0
JT
67132002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6714
6715 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6716 size computation for alloca.
6717 (sh_fp_frame_init_saved_regs): Likewise.
6718
7bbcf283
RE
67192002-05-07 Richard Earnshaw <rearnsha@arm.com>
6720
6721 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6722 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6723 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6724 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6725 * remote-rdp.c (remote_rdp_fetch_register): Use
6726 ARM_MAX_REGISTER_RAW_SIZE.
6727 (remote_rdp_store_register): Likewise.
6728
4657573b
ML
67292002-05-07 Michal Ludvig <mludvig@suse.cz>
6730
361d1df0 6731 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6732 added default labels to switch {} statements.
6733 * x86-64-tdep.c: Ditto.
6734 * x86-64-linux-nat.c: Ditto.
6735
010f3b2f
JT
67362002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6737
6738 * solib.h: Protect against multiple inclusion.
6739
debd256d
JB
67402002-05-06 Jim Blandy <jimb@redhat.com>
6741
9ab3e532
JB
6742 Add first preprocessor macro-expansion files.
6743 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6744 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6745 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6746 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6747 (COMMON_OBS): Add macrotab.o, macroexp.o.
6748 (macroexp.o, macrotab.o): New rules.
6749
debd256d
JB
6750 Separate the job of reading the line number info statement program
6751 header (...expialidocious) out into its own function.
6752 * dwarf2read.c (struct line_head, struct filenames, struct
6753 directories): Replace with...
6754 (struct line_header): New structure, containing the full
6755 contents of the statement program header, including the
6756 include directory and file name tables.
6757 (read_file_scope): If we have line number info, instead of just
6758 calling dwarf_decode_lines to do all the work, call
6759 dwarf_decode_line_header first to get a `struct line_header'
6760 containing the data in the statement program header, and then
6761 pass that to dwarf_decode_lines, which will pick up where that
6762 left off. Be sure to clean up the `struct line_header' object.
6763 (dwarf_decode_line_header, free_line_header, add_include_dir,
6764 add_file_name): New functions.
6765 (dwarf_decode_lines): Move all the code to read the statement
6766 program header into dwarf_decode_line_header. Take the line
6767 header it built as the first argument, instead of the offset to
6768 the compilation unit's line number info. Use the new `struct
6769 line_header' type instead of the old structures. No need to do
6770 cleanups here now, since we don't allocate anything.
6771 (dwarf2_statement_list_fits_in_line_number_section,
6772 dwarf2_line_header_too_long): New complaints.
6773
ac3aafc7
EZ
67742002-05-06 Elena Zannoni <ezannoni@redhat.com>
6775
6776 * gdbtypes.c (init_vector_type): New function.
6777 (build_builtin_type_vec128): Simplify the representation of SIMD
6778 registers.
6779 (build_gdbtypes): Initialize new builtin vector types.
6780 (_initialize_gdbtypes): Register new vector types with gdbarch.
6781 (builtin_type_v4_float, builtin_type_v4_int32,
6782 builtin_type_v8_int16, builtin_type_v16_int8,
6783 builtin_type_v2_int32, builtin_type_v4_int16,
6784 builtin_type_v8_int8): New (renamed) SIMD types.
6785
13e49980
MK
67862002-05-06 Mark Kettenis <kettenis@gnu.org>
6787
6788 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6789 (i387_fill_fxsave): Likewise.
6790
997b20b8
AO
67912002-05-05 Alexandre Oliva <aoliva@redhat.com>
6792
6793 * alpha-tdep.c (alpha_extract_return_value): Don't use
6794 non-constant array size in prototype.
6795
535c96ce
AC
67962002-05-04 Andrew Cagney <ac131313@redhat.com>
6797
6798 From Brian Taylor <briant at model dot com>:
6799 * ui-out.c (ui_out_field_core_addr): Use the function
6800 longest_local_hex_string_custom'to format addresses > 32 bits
6801 wide.
6802
6803 * ui-out.c (ui_out_field_core_addr): Update comment.
6804
bedfa57b
AC
68052002-05-04 Andrew Cagney <ac131313@redhat.com>
6806
6807 * stack.c (select_and_print_frame): Make static. Delete the
6808 parameter `level'.
6809 (func_command): Update call.
6810 (select_frame_command): Delete code computing the frame level.
6811 * frame.h (select_and_print_frame): Delete declaration.
6812
f621c63e
AC
68132002-05-04 Andrew Cagney <ac131313@redhat.com>
6814
6815 * sparc-tdep.c (sparc_get_saved_register): Comment why
6816 get_prev_frame call is safe.
6817
0f7d239c
AC
68182002-05-04 Andrew Cagney <ac131313@redhat.com>
6819
6820 * frame.h (select_frame): Delete level parameter.
6821 * stack.c (select_frame): Update. Use frame_relative_level to
6822 obtain the frame's level.
6823 (select_and_print_frame): Update call.
6824 (select_frame_command): Ditto.
6825 (up_silently_base): Ditto.
6826 (down_silently_base): Ditto.
6827 * ocd.c (ocd_start_remote): Ditto.
6828 * remote-rdp.c (remote_rdp_open): Ditto.
6829 * remote-mips.c (mips_initialize): Ditto.
6830 (common_open): Ditto.
6831 * remote-e7000.c (e7000_start_remote): Ditto.
6832 * m3-nat.c (select_thread): Ditto.
6833 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6834 (child_get_current_exception_event): Ditto.
6835 * varobj.c (varobj_create): Ditto.
6836 (varobj_update): Ditto.
6837 (c_value_of_root): Ditto.
6838 * tracepoint.c (finish_tfind_command): Ditto.
6839 * corelow.c (core_open): Ditto.
6840 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6841 * thread.c (info_threads_command): Ditto.
6842 (switch_to_thread): Ditto.
6843 * infrun.c (normal_stop): Ditto.
6844 (restore_selected_frame): Ditto.
6845 (restore_inferior_status): Ditto.
6846 * breakpoint.c (insert_breakpoints): Ditto.
6847 (watchpoint_check): Ditto.
6848 (bpstat_stop_status): Ditto.
6849 (do_enable_breakpoint): Ditto.
6850 * blockframe.c (flush_cached_frames): Ditto.
6851 (reinit_frame_cache): Ditto.
6852
71d6c7b1
AC
68532002-05-04 Andrew Cagney <ac131313@redhat.com>
6854
6855 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6856 maintainer.
6857
cda6c68a
JB
68582002-05-04 Jim Blandy <jimb@redhat.com>
6859
6860 * gdbtypes.c (replace_type): Doc fix.
6861
5c1c87f0
AC
68622002-05-04 Andrew Cagney <ac131313@redhat.com>
6863
6864 * valprint.c (strcat_longest): Delete commented out function.
6865 Update copyright.
6866
cd9bfe15
AC
68672002-05-04 Andrew Cagney <ac131313@redhat.com>
6868
6869 * MAINTAINERS: Mark a29k as deleted.
6870 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6871 Move new configurations to the top.
6872 * configure.tgt: Remove a29k.
6873 * config/a29k/tm-vx29k.h: Delete.
6874 * config/a29k/vx29k.mt: Delete.
6875 * config/a29k/tm-a29k.h: Delete.
6876 * config/a29k/a29k-udi.mt: Delete.
6877 * config/a29k/a29k.mt: Delete.
6878 * a29k-tdep.c: Delete.
6879 * remote-udi.c: Delete.
6880 * remote-mm.c: Delete.
6881 * remote-eb.c: Delete.
6882 * remote-adapt.c: Delete.
6883 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6884 * config/s390/s390x.mt: Ditto.
6885 * config/s390/s390.mt: Ditto.
6886 * config/sparc/sparclynx.mh: Ditto.
6887 * config/sparc/linux.mh: Ditto.
6888 * config/pa/hppaosf.mh: Ditto.
6889 * config/pa/hppabsd.mh: Ditto.
6890 * config/ns32k/nbsd.mt: Ditto.
6891 * config/mips/vr5000.mt: Ditto.
6892 * config/m68k/sun3os4.mh: Ditto.
6893 * config/m68k/nbsd.mt: Ditto.
6894 * config/m68k/m68klynx.mh: Ditto.
6895 * config/m32r/m32r.mt: Ditto.
6896 * config/i386/x86-64linux.mt: Ditto.
6897 * config/i386/nbsdelf.mt: Ditto.
6898 * config/i386/nbsd.mt: Ditto.
6899 * config/i386/i386lynx.mh: Ditto.
6900
bf0c5130
AC
69012002-05-04 Andrew Cagney <ac131313@redhat.com>
6902
6903 * target.c (debug_print_register): New function. Handle oversize
6904 registers.
6905 (debug_to_fetch_registers): Call.
6906 (debug_to_store_registers): Call.
6907
2ae1c2d2
JB
69082002-05-03 Jim Blandy <jimb@redhat.com>
6909
13a393b0
JB
6910 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6911 (read_type): Doc fix.
6912 * gdbtypes.c (replace_type): Doc fix.
6913
2ae1c2d2
JB
6914 * stabsread.c (multiply_defined_struct): New complaint.
6915 (read_struct_type): If the type we were passed isn't empty, or
6916 incomplete, don't read the new struct type into it; complain,
6917 and return the original type unchanged. Take a new `type_code'
6918 argument, which is the type code for the new type.
6919 (read_type): Rather than storing the type's type code here, pass
6920 it as an argument to read_struct_type, and let that take care of
6921 storing it. That way, we don't overwrite the original type code,
6922 so read_struct_type can use it to decide whether we're overwriting
6923 something we shouldn't.
6924 (complain_about_struct_wipeout): New function.
6925
8de9bdc4
AC
69262002-05-03 Andrew Cagney <ac131313@redhat.com>
6927
6928 * gdbarch.sh: Assert that gdbarch is non-NULL.
6929 * gdbarch.c: Regenerate.
6930
f773fdbb
JM
69312002-05-03 Jason Merrill <jason@redhat.com>
6932
6933 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6934 and return NULL.
6935
0e04a514
ML
69362002-05-03 Michal Ludvig <mludvig@suse.cz>
6937
6938 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6939 (x86_64_dwarf2gdb_regno_map_length),
6940 (x86_64_dwarf2_reg_to_regnum): Added.
6941 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6942 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6943 (_initialize_x86_64_tdep): Synced with the change above.
6944 (x86_64_skip_prologue): Reformulated message.
6945
065432a8
PM
69462002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6947
6948 * f-exp.y: Also use new prev_lexptr variable
6949 to improve error reporting. Based on Michael Snyder
6950 2002-04-24 dated patch to c-exp.y.
6951 * jv-exp.y: Likewise.
6952 * m2-exp.y: Likewise.
6953
a3162708
EZ
69542002-05-02 Elena Zannoni <ezannoni@redhat.com>
6955
6956 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6957 we are dealing with vectors.
6958
03620c38
PM
69592002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6960
6961 * config/m68k/tm-nbsd.h: Obvious fix,
6962 correct machine name.
6963
6604db2e
PM
69642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6965
6966 * p-typeprint.c (pascal_type_print_base): Add support
6967 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6968
0906b739
PM
69692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6970
6971 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6972 for fondamental pascal 'char' type.
6973
e2625b33
PM
69742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6975
6976 * p-lang.h (is_pascal_string_type): Declaration changed,
6977 new sixth argument of type char ** added.
361d1df0 6978 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6979 changed. Args length_pos, length_size, string_pos, char_size
6980 can now be NULL. New argument arrayname set to the field
6981 name of the char array. Return value set to char array
6982 field index plus one.
361d1df0 6983 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6984 is_pascal_string_type function.
6985
cf17c188
AC
69862002-05-02 Andrew Cagney <cagney@redhat.com>
6987
6988 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6989 <cagney@redhat.com> change.
6990 * gdbarch.c: Regenerate.
6991
52bca491
AC
69922002-05-02 Andrew Cagney <cagney@redhat.com>
6993
6994 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6995 before probing for a new one. Detect errorenous gdbarch_init
6996 functions.
6997 * gdbarch.c: Regenerate.
6998
d5e72505
AC
69992002-05-01 Andrew Cagney <cagney@redhat.com>
7000
7001 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7002 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7003 * config/v850/tm-v850.h: Ditto. Update copyright.
7004
af566d9f
AC
70052002-04-30 Andrew Cagney <ac131313@redhat.com>
7006
7007 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7008 current_gdbarch.
7009
880d85fa
MS
70102002-04-30 Michael Snyder <msnyder@redhat.com>
7011
94c30b78
MS
7012 * arm-tdep.c: Whitespace clean-ups.
7013 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7014 should have been removed as part of 4/24 change.
7015
6f5987a6
KB
70162002-04-30 Kevin Buettner <kevinb@redhat.com>
7017
7018 * rs6000-tdep.c: Added comment describing how fpscr register
7019 numbers were chosen.
7020
1a113c93
MS
70212002-04-30 Michael Snyder <msnyder@redhat.com>
7022
7023 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7024
9a6f53fe
EZ
70252002-04-29 Elena Zannoni <ezannoni@redhat.com>
7026
7027 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7028 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7029 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7030
11ed25ac
KB
70312002-04-29 Kevin Buettner <kevinb@redhat.com>
7032
7033 From Louis Hamilton <hamilton@redhat.com>:
7034 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7035 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7036 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7037 not bfd-private xcoff data, to determine wordsize.
7038 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7039
ae232405
AC
70402002-04-29 Andrew Cagney <ac131313@redhat.com>
7041
7042 GDB 5.2 released from 5.2 branch.
7043
91fd20f7
ML
70442002-04-29 Michal Ludvig <mludvig@suse.cz>
7045
7046 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7047 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7048 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7049
2dc5091b
EZ
70502002-04-29 Elena Zannoni <ezannoni@redhat.com>
7051
7052 * rs6000-tdep.c (rs6000_extract_return_value,
7053 rs6000_store_return_value): Handle returning vectors.
7054 (rs6000_gdbarch_init): Use
7055 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7056 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7057 New function.
7058 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7059 vectors.
7060 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7061 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7062
2b9848d8
PM
70632002-04-24 Pierre Muller <ics.u-strasbg.fr>
7064
7065 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7066 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7067 with fprintf_unfiltered (gdb_stderr,...).
7068
f8d17dc5
PM
70692002-04-24 Pierre Muller <ics.u-strasbg.fr>
7070
7071 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7072 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7073 Replace fprintf (stderr,...
7074 with fprintf_unfiltered (gdb_stderr,....
7075 * remote-es.c: Likewise.
7076 * remote-os9k.c: Likewise.
7077 * remote-st.c: Likewise.
7078
2f2f1ad1
AS
70792002-04-28 Andreas Schwab <schwab@suse.de>
7080
7081 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7082 linux-proc.o and gcore.o.
7083
b6779aa2
AC
70842002-04-26 Michal Ludvig <mludvig@suse.cz>
7085
7086 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7087 code without frame pointers.
7088
7e57f5f4
AC
70892002-04-26 Andrew Cagney <ac131313@redhat.com>
7090
7091 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7092 ON_STACK is needed.
7093
2ceb85d0
BE
70942002-04-26 Ben Elliston <bje@redhat.com>
7095
7096 * target.c (do_xfer_memory): Correct reference to the new option
7097 "trust-readonly-sections".
7098
f5f8a009
EZ
70992002-04-26 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7102 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7103 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7104 vectors.
7105 (read_array_type): Record the fact that this array type is really a
7106 vector (i.e. are passed in by value).
7107
5868c862
JT
71082002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7111 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7112 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7113 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7114 * alpha-linux-tdep.c: Include frame.h.
7115 (alpha_linux_sigcontext_addr): New function.
7116 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7117 alpha_linux_sigcontext_addr.
7118 * alpha-osf1-tdep.c: Include gdbcore.h.
7119 (alpha_osf1_sigcontext_addr): New function.
7120 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7121 alpha_osf1_sigcontext_addr.
7122 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7123 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7124
bfb01f37
AC
71252002-04-26 Andrew Cagney <ac131313@redhat.com>
7126
361d1df0 7127 * stack.c (selected_frame_level):
bfb01f37
AC
7128 (select_frame): Do not set selected_frame_level.
7129 * frame.h (selected_frame_level): Delete declaration.
7130
15813d3f
AC
71312002-04-26 Andrew Cagney <ac131313@redhat.com>
7132
7133 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7134 convert_from_func_ptr-addr when AIX / PowerOpen.
7135
6096c27a
AC
71362002-04-25 Andrew Cagney <ac131313@redhat.com>
7137
7138 * valops.c (hand_function_call): Call
7139 generic_save_call_dummy_addr.
7140 * frame.h (generic_save_call_dummy_addr): Declare.
7141 * blockframe.c (struct dummy_frame): Add fields call_lo and
7142 call_hi.
7143 (generic_find_dummy_frame): Check for PC in range call_lo to
7144 call_hi instead of entry_point_address.
7145 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7146 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7147 (generic_save_call_dummy_addr): New function.
7148
f510d44e
DM
71492002-04-24 David S. Miller <davem@redhat.com>
7150
7151 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7152 sparc_skip_prologue.
7153 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7154 information to find prologue when possible.
7155 (sparc_prologue_frameless_p): Call examine_prologue directly.
7156 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7157 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7158 second argument.
7159 (SKIP_PROLOGUE): Likewise.
7160
15d72a92
JT
71612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7162
7163 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7164 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7165 indicate that the condition it was testing is always true.
7166 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7167 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7168 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7169
accc6d1f
JT
71702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7171
7172 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7173 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7174 tdep->jb_pc and tdep->jb_elt_size.
7175 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7176 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7177 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7178 * alpha-nat.c (get_longjmp_target): Remove.
7179 (JB_ELEMENT_SIZE): Ditto.
7180 (JB_PC): Ditto.
7181 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7182 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7183 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7184 to alpha_get_longjmp_target.
7185 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7186 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7187 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7188
1bfdc549
AC
71892002-04-25 Andrew Cagney <ac131313@redhat.com>
7190
7191 * README: Update to GDB 5.2.
7192
1bd316f0
AC
71932002-04-25 Andrew Cagney <ac131313@redhat.com>
7194
7195 * gdbarch.sh (LC_ALL): Set to `c'.
7196
2e5ff58c
TR
71972002-04-25 Theodore A. Roth <troth@verinet.com>
7198
7199 * avr-tdep.c: Ran through gdb_indent.sh.
7200
e33ce519
TR
72012002-04-25 Theodore A. Roth <troth@verinet.com>
7202
7203 * MAINTAINERS: Add myself as AVR maintainer.
7204 * NEWS: Note new target avr.
7205
8818c391
TR
72062002-04-25 Theodore A. Roth <troth@verinet.com>
7207
7208 * Makefile.in: Add support for AVR target.
7209 * configure.tgt: Add support for AVR target.
7210 * avr-tdep.c: New file
7211 * config/avr/avr.mt: New file.
7212
79509c2d
TR
72132002-04-25 Theodore A. Roth <troth@verinet.com>
7214
7215 * MAINTAINERS: Add myself to write-after-approval.
7216
dac8068e
PM
72172002-04-24 Pierre Muller <ics.u-strasbg.fr>
7218
7219 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7220 with fprintf_unfiltered (gdb_stderr,....
7221
25bf3106
PM
72222002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7223
7224 Fix PR gdb/508.
7225 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7226
24467a86
PM
72272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7228
7229 * p-exp.y: Also use new prev_lexptr variable
7230 to improve error reporting. Based on Michael Snyder
7231 2002-04-24 dated patch to c-exp.y.
7232
95b80706
JT
72332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7234
7235 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7236 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7237 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7238 to 0.
7239 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7240 and struct value.
7241 (FUNCTION_START_OFFSET): Remove.
7242 (BREAKPOINT): Ditto.
7243
e90cc612
JT
72442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7245
7246 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7247 * NEWS: Ditto.
7248
6c72f9f9
JT
72492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7250
7251 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7252 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7253 alpha_linux_pc_in_sigtramp.
7254 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7255 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7256 alpha_osf1_pc_in_sigtramp.
7257 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7258 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7259 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7260 alphafbsd_pc_in_sigtramp.
7261 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7262 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7263 alphanbsd_pc_in_sigtramp.
7264 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7265 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7266
5e4f3379
JT
72672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7270
da8ca43d
JT
72712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7274 alphanbsd-tdep.c.
7275 (alphanbsd-nat.o): New dependency list.
7276 (alphanbsd-tdep.o): Ditto.
7277 * NEWS: Note new native NetBSD/alpha configuration.
7278 * alphanbsd-nat.c: New file.
7279 * alphanbsd-tdep.c: Ditto.
7280 * configure.host (alpha*-*-netbsd*): New host.
7281 * configure.tgt (alpha*-*-netbsd*): New target.
7282 * config/alpha/nbsd.mh: New file.
7283 * config/alpha/nbsd.mt: Ditto.
7284 * config/alpha/nm-nbsd.h: Ditto.
7285 * config/alpha/tm-nbsd.h: Ditto.
7286
36a6271d
JT
72872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7288
7289 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7290 (alpha-osf1-tdep.o): New dependency list.
7291 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7292 and skip_sigtramp_frame members.
7293 * alpha-linux-tdep.c: Include gdbcore.h.
7294 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7295 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7296 * alpha-osf1-tdep.c: New file.
7297 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7298 alpha-osf1-dep.c.
7299 (alpha_frame_past_sigtramp_frame): New function.
7300 (alpha_dynamic_sigtramp_offset): Ditto.
7301 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7302 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7303 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7304 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7305 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7306 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7307 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7308 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7309 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7310 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7311 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7312 to find_solib_trampoline_target.
7313 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7314 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7315 (SKIP_TRAMPOLINE_CODE): Remove.
7316 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7317 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7318 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7319 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7320 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7321 (PROC_SIGTRAMP_MAGIC): Ditto.
7322 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7323 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7324 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7325 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7326 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7327
2f4bc57b
JT
73282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7329
7330 * NEWS: Note that Alpha targets are now multi-arch.
7331
665132f9
MS
73322002-04-24 Michael Snyder <msnyder@redhat.com>
7333
7334 * parser-defs.h (prev_lexptr): New external variable.
7335 * parse.c (parse_exp_1): Set prev_lexptr to null before
7336 calling the language-specific parser.
7337 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7338 (yyerror): Use prev_lexptr in error reporting.
7339
32872fa7
DJ
73402002-04-24 Daniel Jacobowitz <drow@mvista.com>
7341
7342 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7343 * gregset.h: If FILL_FPXREGSET is defined, provide
7344 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7345 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7346 is defined, call fill_fpxregset.
7347
57e76fac
MS
73482002-04-24 Roland McGrath <roland@frob.com>
7349
7350 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7351 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7352 (supply_gregset, supply_fpregset): New functions.
7353
7354 * gnu-nat.c (gnu_find_memory_regions): New function.
7355 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7356 (gnu_xfer_memory): Add a cast.
7357
f43845b3
MS
73582002-04-24 Michael Snyder <msnyder@redhat.com>
7359
361d1df0 7360 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7361 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7362 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7363 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7364 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7365 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7366
a0abec03
AC
7367Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7368
7369 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7370 NUM_PSEUDO_REGS can be used.
7371
d7bd68ca
AC
73722002-04-24 Andrew Cagney <ac131313@redhat.com>
7373
7374 * arch-utils.h: Update copyright.
7375
7376 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7377 * gdbarch.h, gdbarch.c: Re-generate.
7378
7379 * inferior.h (IN_SIGTRAMP): Delete definition.
7380 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7381 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7382
7383 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7384 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7385 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7386 (find_proc_framesize): Ditto.
7387 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7388 (alpha_init_extra_frame_info): Ditto.
7389 * infrun.c (handle_inferior_event): Ditto.
7390 (handle_inferior_event): Ditto.
7391 (check_sigtramp2): Ditto.
7392 * blockframe.c (create_new_frame): Ditto.
7393 (get_prev_frame): Ditto.
7394 * ppc-linux-tdep.c: Update comments.
7395 * i386-linux-tdep.c: Update comments.
7396 * breakpoint.c (bpstat_what): Update comment.
7397
4867e41e
DM
73982002-04-24 David S. Miller <davem@redhat.com>
7399
21d83aa5
DM
7400 * i960-tdep.c (register_in_window_p): New function.
7401 (i960_find_saved_register): Use it instead of
7402 REGISTER_IN_WINDOW_P.
7403 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7404
4867e41e
DM
7405 * symtab.h (find_stab_function_addr): Kill extern.
7406 * minsyms.c (find_stab_function_addr): Remove from here...
7407 * dbxread.c: ... to here, and mark it static.
7408
69cdf6a2
DM
74092002-04-20 David S. Miller <davem@redhat.com>
7410
7411 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7412 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7413
5a595886
DM
74142002-04-21 David S. Miller <davem@redhat.com>
7415
7416 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7417 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7418 (vx_write_register): Likewise.
7419
1da1a192
JB
74202002-04-23 J. Brobecker <brobecker@gnat.com>
7421
7422 * source.c (is_regular_file): New function.
7423 (openp): Check wether file to open is a regular file
7424 to avoid opening directories.
7425
baa6f10b
JT
74262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7427
7428 * findvar.c (extract_signed_integer): Cast printf argument
7429 to suppress format warning.
7430 (extract_unsigned_integer): Likewise.
7431 * infcmd.c (registers_info): Likewise.
7432 * top.c (get_prompt_1): Likewise.
7433 * valops.c (value_assign): Likewise.
7434 * valprint.c (print_decimal): Likewise.
7435
b2c4da81
L
74362002-04-22 H.J. Lu (hjl@gnu.org)
7437
7438 * c-exp.y (typebase): Support
361d1df0 7439
b2c4da81
L
7440 [long|long long|short] [signed|unsigned] [int|]
7441
7442 and
7443
7444 signed [long|long long|short] int
7445
f267bd6a
JT
74462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7447
7448 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7449 and vax-tdep.h.
7450 * vax-tdep.h: New file.
7451 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7452 Make several routines static.
7453 (vax_get_saved_register): New function.
7454 (vax_gdbarch_init): New function.
7455 (_initialize_vax_tdep): Register vax_gdbarch_init.
7456 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7457 Remove macros now under the control of gdbarch.
7458
da3c6d4a
MS
74592002-04-22 Michael Snyder <msnyder@redhat.com>
7460
11d3b27d
MS
7461 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7462 Some whitespace and coding standards tweaks.
da3c6d4a 7463
a33f7558
JT
74642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * vax-tdep.c: Include regcache.h.
7467 (vax_call_dummy_words): New.
7468 (sizeof_vax_call_dummy_words): New.
7469 (vax_fix_call_dummy): New function.
7470 (vax_saved_pc_after_call): Ditto.
7471 * config/vax/tm-vax.h: Don't include regcache.h.
7472 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7473 (CALL_DUMMY): Remove.
7474 (CALL_DUMMY_WORDS): Define.
7475 (SIZEOF_CALL_DUMMY_WORDS): Define.
7476 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7477
47a73475
MS
74782002-04-18 Michael Snyder <msnyder@redhat.com>
7479
7480 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7481
52efde73
JT
74822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7483
7484 * vax-tdep.c (vax_frame_chain): New function.
7485 (vax_push_dummy_frame): Ditto.
7486 (vax_pop_frame): Ditto.
7487 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7488 (FRAMELESS_FUNCTION_INVOCATION): Use
7489 generic_frameless_function_invocation_not.
7490 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7491 (POP_FRAME): Use vax_pop_frame.
7492
ea74468c
JT
74932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7494
7495 * vax-tdep.c (vax_store_struct_return): New function.
7496 (vax_extract_return_value): Ditto.
7497 (vax_store_return_value): Ditto.
7498 (vax_extract_struct_value_address): Ditto.
7499 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7500 vax_store_struct_return.
7501 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7502 (STORE_RETURN_VALUE): Use vax_store_return_value.
7503 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7504
5516aa92
JT
75052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7506
7507 * vax-tdep.c (vax_frame_saved_pc): New function.
7508 (vax_frame_args_address_correct): Ditto.
7509 (vax_frame_args_address): Ditto.
7510 (vax_frame_locals_address): Ditto.
7511 (vax_frame_num_args): Move code to be in proximity to
7512 other frame-related functions.
7513 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7514 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7515 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7516 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7517 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7518
36af0b35
L
75192002-04-22 H.J. Lu (hjl@gnu.org)
7520
7521 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7522 includedir.
7523
ab62c900
JT
75242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7525
7526 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7527 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7528 (FRAME_INIT_SAVED_REGS): New macro.
7529
7232b100
JT
75302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7533
b70d2aee
JT
75342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7535
7536 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7537 where needed.
7538 (fetch_osf_core_registers): Likewise.
7539 (supply_gregset): Likewise.
7540
a0e8a2d1 75412002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7542
a0e8a2d1
JB
7543 * symfile.h (get_section_index): Define.
7544 * symfile.c (get_section_index): New function.
7545 * mdebugread.c (SC_IS_SBSS): New macro.
7546 (SC_IS_BSS): Return true for the scBss storage class only, as
7547 the scSBss storage class refers to the .sbss section.
7548 (parse_partial_symbols): Discard the symbols which associated
7549 section does not exist.
7550 Make sure to use the .sbss section index for symbols which
7551 storage class is scBss, rather than using the .bss section index.
7552
51eb8b08
JT
75532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * vax-tdep.c: Update copyright years.
7556 (vax_register_name): New function.
7557 (vax_register_byte): Ditto.
7558 (vax_register_raw_size): Ditto.
7559 (vax_register_virtual_size): Ditto.
7560 (vax_register_virtual_type): Ditto.
7561 * config/vax/tm-vax.h: Update copyright years.
7562 (REGISTER_NAMES): Remove.
7563 (REGISTER_NAME): Define.
7564 (REGISTER_BYTE): Use vax_register_byte.
7565 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7566 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7567 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7568
6cc1c0a8
AC
75692002-04-21 Andrew Cagney <ac131313@redhat.com>
7570
7571 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7572 declaration
7573 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7574
9319a2fe
DM
75752002-04-21 David S. Miller <davem@redhat.com>
7576
7577 * arch-utils.c (generic_prologue_frameless_p): Kill
7578 SKIP_PROLOGUE_FRAMELESS_P code.
7579 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7580 references.
7581 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7582 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7583 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7584 references.
7585 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7586 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7587 (sparc_gdbarch_init): Pass it to
7588 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7589
e9ed6d01
JT
75902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7591
7592 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7593 (alphabsd-nat.o): New dependency list.
7594
36012033
JT
75952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7598 alphafbsd-tdep.c.
7599 (alpha-linux-tdep.o): New dependency list.
7600 (alphafbsd-tdep.o): Likewise.
7601
3379287a
JT
76022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7603
7604 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7605 to here...
7606 * alpha-tdep.c: ...from here.
7607 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7608
4bcbd6cb
JT
76092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7612 prototype from here...
7613 * alpha-tdep.h: ...to here.
7614
b31da25e
AC
76152002-04-21 Andrew Cagney <ac131313@redhat.com>
7616
7617 * frame.h (selected_frame_level): Document as deprecated.
7618 (frame_relative_level): Declare.
7619 * stack.c (frame_relative_level): New function.
7620 (selected_frame_level): Document as deprecated.
7621 (select_frame): Do not set the selected_frame_level.
7622
7623 * stack.c (frame_info, record_selected_frame): Update.
7624 (frame_command, current_frame_command): Update.
7625 (up_silently_base, up_command, down_silently_base): Update.
7626 (down_command): Update.
7627 * inflow.c (kill_command): Update.
7628 * tracepoint.c (finish_tfind_command): Update.
7629 * corelow.c (core_open): Update.
7630 * thread.c (info_threads_command): Update.
7631 (do_captured_thread_select): Update.
7632 * infcmd.c (finish_command): Update.
7633 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7634
9c1d6fe5
JT
76352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7638
ab89facf
AC
76392002-04-21 Andrew Cagney <ac131313@redhat.com>
7640
7641 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7642 type const.
7643
82a4efa1
JT
76442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * alphafbsd-tdep.c: Update copyright years. Include
7647 alpha-tdep.h.
7648 (alphafbsd_use_struct_convention): Make static.
7649 (alphafbsd_init_abi): New function.
7650 (_initialize_alphafbsd_tdep): New function.
7651 * config/alpha/tm-fbsd.h: Update copyright years.
7652 (USE_STRUCT_CONVENTION): Remove.
7653
44dffaac
JT
76542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7655
7656 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7657 an Alpha ABI variant.
7658 (alpha_abi_handler_list): Declare.
7659 (alpha_gdbarch_register_os_abi): New function.
7660 (alpha_gdbarch_init): Give registered ABI variant handlers a
7661 chance to tweak the gdbarch once we have set up defaults.
7662 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7663
65585be4
JT
76642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7665
7666 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7667 to standard_coerce_float_to_double.
7668 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7669
d9b023cc
JT
76702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7673 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7674 from gdbarch_tdep rather than a constant.
7675 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7676 the default text address for all Alpha Unix ABIs.
7677 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7678 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7679
dc129d82
JT
76802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7681
7682 * alpha-tdep.h: New file. Includes several Alpha target constants
7683 taken from...
7684 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7685 let gdbarch deal with.
7686 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7687 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7688 to dependency list.
7689 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7690 Alpha target register names.
7691 * alphabsd-nat.c: Likewise.
7692 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7693 Alpha target register names. Make serveral routines static.
7694 (alpha_get_saved_register): New function.
7695 (alpha_abi_names): New.
7696 (process_note_abi_tag_sections): New function.
7697 (get_elfosabi): New function.
7698 (alpha_gdbarch_init): New function.
7699 (alpha_dump_tdep): New function.
7700 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7701
d49d1e0a
AC
77022002-04-21 Andrew Cagney <ac131313@redhat.com>
7703
7704 * frame.c (find_saved_register): Delete #ifdef
7705 HAVE_REGISTER_WINDOWS code.
7706 * config/sparc/tm-sparc.h: Update comments.
7707 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7708
92e8c9ed
AC
77092002-04-21 Andrew Cagney <ac131313@redhat.com>
7710
7711 * i960-tdep.c (i960_find_saved_register): New function.
7712 (i960_get_saved_register): New function.
7713 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7714 (i960_get_saved_register): Declare.
7715 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7716
e1925118
DM
77172002-04-20 David S. Miller <davem@redhat.com>
7718
7719 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7720
29673b29
AC
77212002-04-20 Andrew Cagney <ac131313@redhat.com>
7722
7723 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7724 instead of NUM_PSEUDO_REGS.
7725
6c86dcd5
DM
77262002-04-20 David S. Miller <davem@redhat.com>
7727
7728 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7729 GDB_MULTI_ARCH_PARTIAL
7730 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7731 define, let tm-sp64.h do it.
7732
aa40ec90
JT
77332002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * frame.c (find_saved_register): Avoid a NULL pointer
7736 dereference and actually walk the frame list.
7737
0f79675b
AC
77382002-04-20 Andrew Cagney <ac131313@redhat.com>
7739
7740 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7741 sorted in most most-recent-used order. Document.
7742 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7743
f91305dd 77442002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7745
7746 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7747 instead of ->prev.
7748 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7749 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7750 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7751 instead of ->prev.
7752
73d322b1
EZ
77532002-04-19 Elena Zannoni <ezannoni@redhat.com>
7754
7755 Fix PR gdb/471.
7756 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7757 (build_builtin_type_vec128): Ditto.
7758 (append_composite_type_field): Fix calculation of type length in
7759 union case.
7760
ccd9a834
EZ
77612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7762
7763 * config/djgpp/README: Update.
7764
7765 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7766 compiler warnings.
7767
a57f9e49
JT
77682002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7771 (alpha_setup_arbitrary_frame): ...to this.
7772 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7773 for alpha_setup_arbitrary_frame.
7774
f4f9705a
AC
77752002-04-18 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7778 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7779
f4f9705a
AC
7780 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7781 * target.h (memory_breakpoint_from_pc): Update declaration.
7782 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7783
7784 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7785 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7786 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7787 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7788 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7789 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7790 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7791 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7792 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7793 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7794 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7795 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7796
7797 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7798 const pointer.
7799 * monitor.c (monitor_insert_breakpoint): Ditto.
7800 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7801
7802 * config/mcore/tm-mcore.h: Update copyright.
7803 * mem-break.c: Ditto.
7804 * xstormy16-tdep.c: Ditto.
7805
29f319b8
PM
78062002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7807
7808 * p-exp.y: Add precedence rule for '^' token.
7809 This removes the shift/reduce conflicts.
7810 Remove the comment concerning these shift/reduce conflicts.
7811
ebeac11a
EZ
78122002-04-18 Elena Zannoni <ezannoni@redhat.com>
7813
7814 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7815 (registers_powerpc_nofp): New register set for processors
7816 without floating point unit.
7817
27c31547
DM
78182002-04-18 David S. Miller <davem@redhat.com>
7819
7820 * MAINTAINERS: Add myself to write-after-approval.
7821
47a73475
MS
78222002-04-17 Michael Snyder <msnyder@redhat.com>
7823
7824 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7825
953836b2
AC
78262002-04-17 Andrew Cagney <ac131313@redhat.com>
7827
7828 * rs6000-tdep.c (frame_initial_stack_address): Use
7829 frame_register_read to read the alloca_reg.
7830
8b0d4340
AC
78312002-04-17 Andrew Cagney <ac131313@redhat.com>
7832
7833 * frame.c (find_saved_register): Find saved registers in the next
7834 not prev frame.
7835 Fix PR gdb/365.
7836
d8864532
AC
78372002-04-17 Andrew Cagney <ac131313@redhat.com>
7838
7839 * gdbarch.sh (LANG): Set to ``c''.
7840
36cc83a3 78412002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7842
36cc83a3 7843 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7844
2f4150cc 78452002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7846
7847 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7848 Update copyright.
7849
628703c6 7850 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7851 Also fix PR gdb/391.
361d1df0 7852
56157b4a
AC
78532002-04-14 Andrew Cagney <ac131313@redhat.com>
7854
7855 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7856 * aclocal.m4, configure: Re-generate.
7857 Fix PR gdb/391.
361d1df0 7858
6d1e3329
EZ
78592002-04-14 Elena Zannoni <ezannoni@redhat.com>
7860
7861 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7862 instead of tm_print_insn.
7863
cb06fa07
EZ
78642002-04-14 Elena Zannoni <ezannoni@redhat.com>
7865
7866 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7867
f208ba17
AC
78682002-04-14 Andrew Cagney <ac131313@redhat.com>
7869
7870 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7871 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7872 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7873
20f01a46
DH
78742002-04-12 Don Howard <dhoward@redhat.com>
7875
7876 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7877 max_user_call_depth.
7878 (init_cmd_lists): Initialize the new value;
7879 * cli/cli-script.c (execute_user_command): Limit the call depth of
7880 user defined commands. This avoids a core-dump when user commands
7881 are infinitly recursive.
7882
a88376a3
KB
78832002-04-12 Kevin Buettner <kevinb@redhat.com>
7884
7885 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7886 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7887 from tdep struct instead of DEFAULT_LR_SAVE.
7888 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7889 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7890 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7891
f2172603
MS
78922002-04-12 Michael Snyder <msnyder@redhat.com>
7893
694f61fb 7894 * Remote.c: Spelling fix.
20fe79c8
MS
7895 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7896 If no symbol found for "sbrk", try "_sbrk".
7897 (make_output_phdrs): Use bfd_section_name.
7898 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7899 * eval.c: Indentation fix-ups.
169a7369
MS
7900 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7901 in case it gets applied to an address that is already
7902 in the instruction space.
de74f71f
MS
7903 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7904 * symfile.c: Fix indentation, long lines.
f2172603
MS
7905 * source.c: White space fix-up.
7906
cda5a58a
AC
79072002-04-12 Andrew Cagney <cagney@redhat.com>
7908
7909 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7910 * frame.c (frame_register_read): New function. Return non-zero on
7911 success.
7912 (read_relative_register_raw_bytes_for_frame): Delete.
7913 (read_relative_register_raw_bytes): Delete.
7914 * frame.h (frame_register_read): Declare.
7915 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7916 * sh-tdep.c: Ditto.
7917 * infcmd.c (do_registers_info): Ditto.
7918 * hppa-tdep.c: Ditto.
7919 * rs6000-tdep.c: Ditto.
7920 * h8500-tdep.c: Ditto.
7921 * mips-tdep.c: Ditto.
7922 * h8300-tdep.c: Ditto.
7923 * z8k-tdep.c: Ditto.
7924
2ea5f656
KB
79252002-04-12 Kevin Buettner <kevinb@redhat.com>
7926
7927 From Jimi X <jimix@watson.ibm.com>:
7928 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7929 64-bit SysV ABI.
7930
27b15785
KB
79312002-04-12 Kevin Buettner <kevinb@redhat.com>
7932
7933 From Jimi X <jimix@watson.ibm.com>:
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7935 bfd info.
7936
5d57ee30
KB
79372002-04-12 Kevin Buettner <kevinb@redhat.com>
7938
7939 From Jimi X <jimix@watson.ibm.com>:
7940 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7941 register sets for these processor variants.
7942
bc1e36ca
DJ
79432002-04-11 Daniel Jacobowitz <drow@mvista.com>
7944
bc1e36ca
DJ
7945 * regformats/reg-ppc.dat: Support FPSCR.
7946
e3f36dbd
KB
79472002-04-11 Kevin Buettner <kevinb@redhat.com>
7948
7949 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7950 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7951 Add fpscr as an invalid/unfetchable register.
7952 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7953 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7954 (fill_fpregset): Add support for register fpscr.
7955 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7956 (fill_gregset): Account for the fact that register ``mq'' might
7957 not exist.
7958 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7959 (registers_power): Add fpscr to register set at slot 71.
7960 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7961 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7962
943c9c25
MS
79632002-04-11 Michael Snyder <msnyder@redhat.com>
7964
7965 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7966 * configure: Regenerate.
7967 * config.in: Regenerate.
7968 * acconfig.h: Add define for _SYSCALL32.
7969 * core-sol2.c: Remove #define _SYSCALL32.
7970 * solib-legacy.c: Remove #define _SYSCALL32.
7971
d8c0a2e7
AC
79722002-04-10 Andrew Cagney <ac131313@redhat.com>
7973
7974 * stack.c (select_frame): Cleanup internal error message, do not
7975 use %p.
7976
7cc19214
AC
79772002-04-10 Andrew Cagney <ac131313@redhat.com>
7978
7979 * stack.c (select_frame): Check that selected_frame and the
7980 specified level are as expected.
7981 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7982 Update copyright.
7983 * frame.h (struct frame_info): Add field `level'. Update
7984 copyright.
7985 Work-in-progress PR gdb/464.
7986
67a2b77e
AC
79872002-04-10 Andrew Cagney <ac131313@redhat.com>
7988
7989 * maint.c (maint_print_section_info): Rename print_section_info.
7990 (print_bfd_section_info, print_objfile_section_info): Update.
7991 * inferior.h (struct gdbarch): Add opaque declaration.
7992 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7993 * gdbarch.h: Regenerate.
7994
8cfda98c
ML
79952002-04-10 Michal Ludvig <mludvig@suse.cz>
7996
7997 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7998 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7999 (kernel_u_size): Added.
8000 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8001 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8002
ca439ad2 80032002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8004
ca439ad2
JI
8005 * valarith.c (find_size_for_pointer_math): New function, either returns
8006 the size for a pointer's target, returns 1 for void *, or errors for
8007 incomplete types.
8008 (value_add, value_sub): use find_size_for_pointer_math.
8009
2f2893d9
DJ
80102002-04-09 Daniel Jacobowitz <drow@mvista.com>
8011
8012 * linux-low.c (linux_look_up_symbols): New hook.
8013 (linux_target_ops): Add linux_look_up_symbols.
8014 * remote-utils.c (decode_address): New function.
8015 (look_up_one_symbol): New function.
8016 * server.c (handle_query): Call target look_up_symbols hook.
8017 * server.h (look_up_one_symbol): Add prototype.
8018 * target.h (struct target_ops): Add look_up_symbols hook.
8019
96cb11df
AC
80202002-04-09 Andrew Cagney <ac131313@redhat.com>
8021
8022 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8023 override FP_REGNUM with frame->fp. Update copyright.
8024 * parse.c (num_std_regs, std_regs): Delete.
8025 (target_map_name_to_register): Do not search std_regs. Update
8026 function description.
8027 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8028 declarations. Update copyright.
8029 Fix PR gdb/251.
361d1df0 8030
97658e92
DJ
80312002-04-09 Daniel Jacobowitz <drow@mvista.com>
8032
8033 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8034 after the last symbol in a block.
8035
6044e3eb
PM
80362002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8037
8038 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8039 is non zero as a found symbol.
8040
0406ec40
AC
80412002-04-08 Andrew Cagney <ac131313@redhat.com>
8042
8043 * findvar.c: Include "builtin-regs.h".
8044 (value_of_register): Call value_of_builtin_reg when applicable.
8045 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8046 (target_map_name_to_register): Call
8047 builtin_reg_map_name_to_regnum.
8048 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8049 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8050 (builtin_regs_h): Define.
8051 (builtin-regs.o): New target.
8052 (findvar.o): Add $(builtin_regs_h).
8053 * builtin-regs.c, builtin-regs.h: New files.
8054 * std-regs.c: New file.
8055 Partial fix for PR gdb/251.
8056
56a6dfb9
KB
80572002-04-08 Kevin Buettner <kevinb@redhat.com>
8058
8059 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8060 it's no longer required.
8061
3a808432
AC
80622002-04-08 Andrew Cagney <ac131313@redhat.com>
8063
8064 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8065
7c40d541
KB
80662002-04-08 Kevin Buettner <kevinb@redhat.com>
8067
8068 From Jimi X <jimix@watson.ibm.com>:
8069 * rs6000-tdep.c (rs6000_software_single_step): Use
8070 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8071 and size. Use target_insert_breakpoint() and
8072 target_remove_breakpoint() to insert and remove breakpoints
8073 instead of explicit memory reads and writes.
8074
cc9836a8
KB
80752002-04-08 Kevin Buettner <kevinb@redhat.com>
8076
8077 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8078 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8079 ELF_OBJECT_FORMAT ifdef.
8080
7495d1dc
KB
80812002-04-08 Kevin Buettner <kevinb@redhat.com>
8082
8083 From Jimi X <jimix@watson.ibm.com>:
8084 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8085
4288e836
KB
80862002-04-08 Kevin Buettner <kevinb@redhat.com>
8087
8088 From Jimi X <jimix@watson.ibm.com>:
8089 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8090 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8091
a4e4e501
MK
80922002-04-07 Mark Kettenis <kettenis@gnu.org>
8093
8094 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8095 s/asprintf/xasprintf/.
8096 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8097
006defba
AC
80982002-04-07 Andrew Cagney <ac131313@redhat.com>
8099
8100 I believe Jeff Law denies responsability for this one:
8101 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8102 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8103 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8104 Work-around for PR gdb/366.
8105
7aa83cac
EZ
81062002-04-07 Elena Zannoni <ezannoni@redhat.com>
8107
8108 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8109 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8110 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8111
cf1fcca1
EZ
81122002-04-07 Elena Zannoni <ezannoni@redhat.com>
8113
8114 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8115 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8116 information.
8117
3f289e6f
AC
81182002-04-07 Andrew Cagney <ac131313@redhat.com>
8119
8120 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8121 maintainer.
8122
129188f6
AC
81232002-04-07 Andrew Cagney <ac131313@redhat.com>
8124
8125 * README (Reporting Bugs in GDB): Document the bug web page as the
8126 prefered way of submitting bugs.
8127 Fix PR gdb/402.
8128
1200cd6e
AC
81292002-04-06 Andrew Cagney <ac131313@redhat.com>
8130
8131 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8132 -1. Update comment.
8133 * gdbarch.h, gdbarch.c: Re-generate.
8134
2853c33c
AS
81352002-04-07 Andreas Schwab <schwab@suse.de>
8136
8137 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8138 buffer to regcache_collect.
8139
c2169756
AC
81402002-04-06 Andrew Cagney <ac131313@redhat.com>
8141
8142 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8143 * gdbarch.c, gdbarch.h: Re-generate.
8144
25f1b008
AC
81452002-04-06 Andrew Cagney <ac131313@redhat.com>
8146
8147 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8148 declaration. Fix -Werror.
8149
59263426
DJ
81502002-04-05 Daniel Jacobowitz <drow@mvista.com>
8151
8152 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8153 * gdbarch.c: Regenerate.
8154
f5db4da3
MS
81552002-04-05 Michael Snyder <msnyder@redhat.com>
8156
80f8a6eb
MS
8157 * breakpoint.c (clear_command): Rewrite middle section to
8158 combine two loops with identical control conditions.
8159 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8160 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8161
ad3dcc5c
L
81622002-04-05 H.J. Lu (hjl@gnu.org)
8163
8164 * solib-svr4.c (bkpt_names): Add "__start".
8165
f32e7a74
AC
81662002-04-04 Andrew Cagney <ac131313@redhat.com>
8167
8168 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8169 as test for 64 bit target.
8170
8227c0ff
AC
81712002-04-05 Andrew Cagney <ac131313@redhat.com>
8172
8173 * h8500-tdep.c (h8500_write_fp): Delete function.
8174 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8175 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8176 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8178 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8179 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8180 (s390_write_fp):
8181 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8182 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8183 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8184 (d10v_write_fp): Delete function.
8185 * inferior.h (write_fp, generic_target_write_fp): Delete
8186 declarations.
8187 * regcache.c (generic_target_write_fp): Delete function.
8188 (write_fp): Delete function.
8189 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8190 * gdbarch.h, gdbarch.c: Regenerate.
8191 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8192 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8193 (sparc64_write_fp): Delete declaration.
8194 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8195 (h8500_write_fp): Delete declaration.
8196
2757dd86
AC
81972002-04-04 Andrew Cagney <ac131313@redhat.com>
8198
8199 * sparc-tdep.c (sparc64_write_fp): Delete.
8200 (sparc_push_dummy_frame): Replace write_fp call with code to store
8201 the FP directly.
8202 (sparc_gdbarch_init): Do not initialize write_fp.
8203
c69255e1
KB
82042002-04-05 Kevin Buettner <kevinb@redhat.com>
8205
8206 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8207 clause.
8208
ae767bfb
JB
82092002-03-29 Jim Blandy <jimb@redhat.com>
8210
8211 * stack.c (get_selected_block): Add new argument `addr_in_block',
8212 used to return the exact code address we used to select the block,
8213 not just the block.
8214 * blockframe.c (get_frame_block, get_current_block): Same.
8215 * frame.h (get_frame_block, get_current_block,
8216 get_selected_block): Update declarations.
8217 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8218 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8219
84d2ac95
MS
82202002-04-05 Michael Snyder <msnyder@redhat.com>
8221
8222 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8223 warning message.
8224
596aa3bf
JB
82252002-04-05 J. Brobecker <brobecker@gnat.com>
8226
8227 * utils.c (xfullpath): New function.
8228 * defs.h (xfullpath): Add declaration.
8229 * source.c (openp): Use xfullpath in place of gdb_realpath to
8230 avoid resolving the basename part of filenames when the
8231 associated file is a symbolic link. This fixes a potential
8232 inconsistency between the filenames known to GDB and the
8233 filenames it prints in the annotations.
8234 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8235 to be able to match a filename with either the real filename, or
8236 the name of any symbolic link to this file.
8237 (lookup_partial_symtab): Ditto.
8238
c02f5703
MS
82392002-04-04 Michael Snyder <msnyder@redhat.com>
8240
8241 * breakpoint.c: Add support for hardware breakpoints in overlays.
8242 (overlay_events_enabled): New state variable.
8243 (insert_breakpoints): Use overlay_events_enabled to decide
8244 whether to attempt to set a breakpoint at the overlay load addr.
8245 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8246 (remove_breakpoint): Use overlay_events_enabled to decide
8247 whether breakpoints need to be removed from overlay load addr.
8248 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8249 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8250 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8251 disable_overlay_breakpoints): Update overlay_events_enabled.
8252
5fb290d7
DJ
82532002-04-04 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * dwarf2read.c (struct function_range): New.
8256 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8257 (check_cu_functions): New.
8258 (read_file_scope): Initialize global function lists.
8259 Call dwarf_decode_line after processing children.
8260 (read_func_scope): Add to global function list.
8261 (dwarf_decode_lines): Call check_cu_functions everywhere
8262 record_line is called. Call record_line with a linenumber
8263 of 0 to mark sequence ends.
8264
7b3fabf0
ML
82652002-04-04 Michal Ludvig <mludvig@suse.cz>
8266
361d1df0 8267 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8268 change sync with glibc.
8269
bce58c09
JB
82702002-04-03 Jim Blandy <jimb@redhat.com>
8271
8272 * configure.in: Call AC_C_INLINE.
8273 * configure: Regenerated.
361d1df0 8274
2fccf04a
DJ
82752002-04-01 Daniel Jacobowitz <drow@mvista.com>
8276
8277 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8278 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8279
2d1bfe2e
MK
82802002-03-31 Mark Kettenis <kettenis@gnu.org>
8281
a5941fbf
MK
8282 * NEWS: Mention gcore support on FreeBSD/i386.
8283
a90cd31d
MK
8284 * fbsd-proc.c: New file.
8285 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8286 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8287
2d1bfe2e
MK
8288 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8289 while statement.
8290
9eb6e5a1
JB
82912002-03-29 Jim Blandy <jimb@redhat.com>
8292
8293 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8294 unescaped newlines in string literals, but newer ones don't. So
8295 escape them.
8296
f02df580
MS
82972002-03-26 Michael Snyder <msnyder@redhat.com>
8298 Andrew Cagney <cagney@redhat.com>
8299
361d1df0 8300 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8301 restore file to memory.
8302 * cli/cli-dump.h: New file.
8303 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8304 * NEWS: Mention new commands.
f02df580 8305
109f874e
MS
83062002-03-28 Michael Snyder <msnyder@redhat.com>
8307
8308 * symfile.c (symbol_file_add): Move test for null symbols to later.
8309
520f6ade
AC
83102002-03-27 Andrew Cagney <ac131313@redhat.com>
8311
8312 From veksler at il.ibm.com:
8313 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8314 the xstrduped original path.
8315 Fix PR gdb/417.
8316
d4654627
MS
83172002-03-27 Michael Snyder <msnyder@redhat.com>
8318
8319 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8320 * infcmd.c (_initialize_infcmd): Ditto.
8321 * language.c (_initialize_language): Ditto.
8322 * symfile.c (_initialize_symfile): Ditto.
8323 * top.c (_init_main): Ditto.
8324 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8325
6be8bc0c
EZ
83262002-03-27 Elena Zannoni <ezannoni@redhat.com>
8327
8328 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8329 vector registers handling.
8330 (skip_prologue): Handle new AltiVec instructions. Fill in new
8331 fields of frame data.
8332 (frame_get_saved_regs): Fill in information for AltiVec registers.
8333
12af6855
JB
83342002-03-27 Jim Blandy <jimb@redhat.com>
8335
8336 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8337 a function; leave this macro here to invoke that function.
8338 (symbol_init_mangled_name): Declaration for that function.
8339 * symtab.c (symbol_init_mangled_name): New function.
8340
dc672865
AC
83412002-03-27 Andrew Cagney <ac131313@redhat.com>
8342
8343 * valarith.c: Replace strerror with safe_strerror.
8344 * tracepoint.c: Ditto.
8345 * lin-lwp.c: Ditto.
8346 * go32-nat.c: Ditto.
8347 * inflow.c: Ditto.
8348 * gnu-nat.c: Ditto.
8349
d96429cd
AS
83502002-03-27 Andreas Schwab <schwab@suse.de>
8351
8352 * event-top.c (command_line_handler): Remove useless if.
8353
7e336ba1
AJ
83542002-03-27 Andreas Jaeger <aj@suse.de>
8355
8356 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8357 comment.
8358
de220d0f
ML
83592002-03-27 Michal Ludvig <mludvig@suse.cz>
8360
8361 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8362 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8363 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8364 (x86_64_linux_dr_get_status, supply_gregset),
8365 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8366 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8367 (x86_64_register_info_table): Add.
8368 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8369 (x86_64_register_raw_size, x86_64_register_virtual_type),
8370 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8371 general x86_64_register_info_table.
8372 (i386_gdbarch_init): gdbarch_register_bytes is now set
8373 dynamicaly during initialization.
8374 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8375 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8376
0e98d0a7
DJ
83772002-03-27 Daniel Jacobowitz <drow@mvista.com>
8378
8379 * gdbserver/server.c (main): Call target_signal_to_host_p
8380 and target_signal_to_host on signals received from the remote.
8381 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8382 target_signal_from_host on signals sent to the remote.
8383 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8384 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8385
3130066b
DJ
83862002-03-27 Daniel Jacobowitz <drow@mvista.com>
8387
8388 * signals/signals.c: Include "server.h" in gdbserver build.
8389 (target_signal_from_name): Don't use STREQ.
8390 (_initialize_signals): Likewise. Don't include function in
8391 gdbserver build.
8392
9aedf4f4
DJ
83932002-03-27 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * signals.c: Moved to...
8396 * signals/signals.c: Here.
7e336ba1 8397 * Makefile (signals.o): Update.
9aedf4f4 8398
3fa41cdb
JL
83992002-03-26 Jeff Law (law@redhat.com)
8400
8401 * somread.c (som_symtab_read): Remove some commented out code and
8402 updated related comments. Do not set the minimal symbol table to
8403 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8404 in a dynamic executable.
8405 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8406 where we are unable to find the minimal symbol for the given
8407 PC value.
8408
ee677e8d
MS
84092002-03-25 Jeff Law (law@redhat.com)
8410
8411 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8412
e76e1718
ML
84132002-03-25 Michal Ludvig <mludvig@suse.cz>
8414
8415 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8416
18a642a1
AC
84172002-03-23 Andrew Cagney <ac131313@redhat.com>
8418
8419 * command.h: Update copyright.
8420 (struct cmd_list_element): Replace definition with opaque
8421 declaration.
8422 (enum cmd_types): Document that it will eventually be moved to
8423 cli/cli-decode.h
8424 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8425 (MALLOCED_REPLACEMENT): Delete macro.
8426 * Makefile.in (cli_decode_h): Add $(command_h).
8427 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8428 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8429 * completer.c: Include "cli/cli-decode.h".
8430 * maint.c: Include "cli/cli-decode.h".
8431 * cli/cli-decode.h: Include "command.h".
8432 (enum command_class): Delete.
8433 (enum cmd_types): Comment out.
8434 (enum cmd_auto_boolean): Delete.
8435 (enum var_types): Delete.
8436
b2875cc0
AC
84372002-03-23 Andrew Cagney <ac131313@redhat.com>
8438
8439 * cli/cli-decode.c: Include "gdb_assert.h".
8440 (add_set_or_show_cmd): New static function.
8441 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8442 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8443 all fields, such as func, from the set command.
8444
3b45974e
AC
84452002-03-23 Andrew Cagney <ac131313@redhat.com>
8446
8447 * MAINTAINERS (sh-elf): Change warning flag to -w.
8448
823ca731
AC
84492002-03-23 Andrew Cagney <cagney@redhat.com>
8450
8451 * defs.h (error): Add printf format attribute.
8452 * thread-db.c (thread_from_lwp): Fix error format string.
8453 * stack.c (parse_frame_specification): Ditto.
8454 * cli/cli-decode.c (undef_cmd_error): Ditto.
8455 * scm-lang.c (scm_lookup_name): Ditto.
8456 * tracepoint.c (trace_error): Ditto.
8457 * remote-utils.c (usage): Ditto.
8458 * remote.c (compare_sections_command): Ditto.
8459 Fix PR gdb/328.
8460
0e101458
AC
84612002-03-22 Andrew Cagney <ac131313@redhat.com>
8462
8463 * gdbtypes.c (append_composite_type_field): New function.
8464 (init_composite_type): New function.
8465 * gdbtypes.h (append_composite_type_field): Declare.
8466 (init_composite_type): Ditto.
8467
8e0662df
EZ
84682002-03-22 Elena Zannoni <ezannoni@redhat.com>
8469
8470 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8471 function.
8e0662df
EZ
8472 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8473 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8474 structure returning convention for SYSV ABI case, but not
8475 for GNU/Linux, FreeBSD, or NetBSD.
8476
3121eff0
DJ
84772002-03-22 Daniel Jacobowitz <drow@mvista.com>
8478
8479 * symtab.h (lookup_block_symbol): Add mangled_name argument
8480 to prototype.
8481
8482 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8483 with new mangled_name argument.
8484 * linespec.c (decode_line_1): Likewise.
8485 * valops (value_of_this): Likewise.
8486 * symtab.c (lookup_transparent_type): Likewise.
8487 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8488 (lookup_symbol): If we are given a mangled name, pass it down
8489 to lookup_symbol_aux.
8490 (lookup_block_symbol): If we are given a mangled name to check
8491 against, only return symbols which match it.
8492
349b409f
CF
84932002-03-22 Christopher Faylor <cgf@redhat.com>
8494
8495 * win32-nat.c (child_create_inferior): Check for proper shell to use
8496 here, in case the user changes it on the fly.
8497 (_initialize_inftarg): Remove shell path considerations.
8498
2a873819
EZ
84992002-03-21 Elena Zannoni <ezannoni@redhat.com>
8500
8501 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8502 for gdbarch_max_register_raw_size and max_register_virtual_size.
8503 Adjust copyright year.
8504
a1b9830c
DJ
85052002-03-21 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8508 in a function to cover the entire beginning of the function
8509 as well if it does not already.
8510
8b5790f2
TR
85112002-03-21 Tom Rix <trix@redhat.com>
8512
8513 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8514 (rs6000_ptrace64): Renamed from ptrace64.
8515
bdbe5747
MH
85162002-03-20 Martin M. Hunt <hunt@redhat.com>
8517
8518 * gdbserver/remote-utils.c (remote_open): Don't call
8519 getprotobyname, we're all using TCP here so just use
8520 IPPROTO_TCP.
7e336ba1 8521 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8522
85232002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8524
bdbe5747
MH
8525 * regcache.c (_initialize_regcache): No need to call
8526 build_regcache() at this time; it gets called whenever
8527 the gdbarch changes.
8528
7781cd62
DB
85292002-03-20 David O'Brien <obrien@FreeBSD.org>
8530
8531 * sparc-nat.c: Include sys/param.h where possible.
8532
f65ca430
DJ
85332002-03-20 Daniel Jacobowitz <drow@mvista.com>
8534
8535 Fix PR gdb/422.
8536 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8537 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8538 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8539 complex types.
8540 * stabsread.c (rs6000_builtin_type): Likewise.
8541 (read_sun_floating_type): Likewise.
8542
0c867556
PS
85432002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8544
8545 * stabsread.c (read_member_functions): Remove skip code for duplicate
8546 constructor/destructor methods. Use standard parsing for these
8547 methods and just do not chain them to the list of methods after
8548 parsing.
8549
12b9c64f
AO
85502002-03-19 Alexandre Oliva <aoliva@redhat.com>
8551
8552 * coffread.c: Remove redundant static declarations. Replace
8553 occurrences of `PTR' with `void *'.
8554 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8555 * top.h (quit_cover): Likewise.
8556 * defs.h (catch_errors): Likewise.
8557
349c5d5f
AC
85582002-03-18 Andrew Cagney <ac131313@redhat.com>
8559
8560 * defs.h (XMALLOC): Define.
8561 * gdb-events.sh (XMALLOC): Delete macro.
8562 * gdb-events.c, gdb-events.h: Regenerate.
8563 * gdbarch.sh (XMALLOC): Delete macro.
8564 * gdbarch.c: Regenerate.
8565 * serial.c (XMALLOC): Delete macro.
8566 * ui-file.c (XMALLOC): Ditto.
8567 * ser-unix.h (XMALLOC): Ditto.
8568 * sh-tdep.c (XMALLOC): Ditto.
8569 * ui-out.c (XMALLOC): Ditto.
8570 * utils.c (XMALLOC): Ditto.
8571 * i386-tdep.c (XMALLOC): Ditto.
8572 * gdb-events.c (XMALLOC): Ditto.
8573 * d10v-tdep.c (XMALLOC): Ditto.
8574 * cli-out.c (XMALLOC): Ditto.
8575
8576 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8577 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8578 * ui-file.c, ui-out.c: Ditto.
8579
7d0766f3
AC
85802002-03-18 Andrew Cagney <ac131313@redhat.com>
8581
8582 * command.h (struct cmd_list_element): Add field context.
8583 (set_cmd_context, get_cmd_context): Declare.
8584 * cli/cli-decode.h: Ditto.
8585 * cli/cli-decode.c (get_cmd_context): New function.
8586 (set_cmd_context): New function.
8587 (add_cmd): Initialize context.
8588 Part of fixing PR gdb/145 and PR gdb/146.
8589
5913bcb0
AC
85902002-03-17 Andrew Cagney <ac131313@redhat.com>
8591
1868c04e
AC
8592 * cli/cli-decode.c (cmd_type): New function.
8593 * command.h (cmd_type): Declare.
8594 * infrun.c (set_schedlock_func): Call function cmd_type.
8595 * kod.c (kod_set_os): Call cmd_type.
8596 * cris-tdep.c (cris_version_update): Use function cmd_type.
8597 (cris_mode_update, cris_abi_update): Ditto.
8598
5913bcb0
AC
8599 * command.h: (execute_cmd_post_hook): Declare.
8600 (execute_cmd_pre_hook): Declare.
8601 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8602 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8603 functions. Execute pre/post hook while ensuring that afterwords
8604 hook_in is cleared.
8605 * top.c (execute_command): Use execute_cmd_post_hook, and
8606 execute_cmd_pre_hook to execute pre/post commands.
8607 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8608 hook_stop_stub.
8609 (hook_stop_stub): Call execute_cmd_pre_hook.
8610
b51450c9
AC
86112002-03-17 Andrew Cagney <ac131313@redhat.com>
8612
8613 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8614 set'' and this leads to a core dump. Move xstrdup of
8615 operating_system to after check that it is not NULL.
8616
f66c9f11
AC
86172002-03-17 Andrew Cagney <ac131313@redhat.com>
8618
8e694ecf
AC
8619 * kod.c (kod_set_os): Remove unnecessary check that
8620 ``command->type'' is set_cmd.
8621
f66c9f11
AC
8622 * valprint.c (set_input_radix): Use input_radix.
8623 (set_output_radix): Use output_radix.
8624 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8625 isn't reverted.
8626
9d01611c
AC
86272002-03-16 Andrew Cagney <ac131313@redhat.com>
8628
8629 * value.h (struct value): Delete field ``substring_addr''. Change
8630 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8631 force_core_addr_align and force_pointer_aligh.
8632
8633 * value.h (struct value): Fix typo in above change.
9d01611c 8634
4156bb53
PS
86352002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8636
8637 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8638 to fix internal_error from ``maintenance print architecture''.
8639
0e5e3ea6
PS
86402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8641
8642 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8643 for gcc versions after gcc-2.8.1.
8644
9b013045
PS
86452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8646
8647 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8648 for method resolution. Restore adjustment of ``this'' pointer after
8649 calling value_struct_elt, which was accidentally removed during the
8650 HP merge.
8651
376c9600
AC
86522002-03-15 Andrew Cagney <ac131313@redhat.com>
8653
8654 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8655 value_of_register.
8656 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8657 get_saved_register.
8658 * value.h (value_of_register): Update.
8659
a4db0f07
RH
86602002-03-14 Richard Henderson <rth@redhat.com>
8661
8662 * configure.in: Detect declaration for canonicalize_file_name.
8663 * utils.c (canonicalize_file_name): Declare, if needed.
8664 (gdb_realpath): Prefer realpath if available and usable.
8665 * config.in, configure: Rebuild.
8666
96383835
RH
86672002-03-14 Richard Henderson <rth@redhat.com>
8668
8669 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8670 a constant array bound.
8671
8672 * MAINTAINERS: Add myself to write-after-approval.
8673
75245b24
MS
86742002-03-14 Michael Snyder <msnyder@redhat.com>
8675
8676 * symfile.c (syms_from_objfile): Return immediately if no syms.
8677 (symbol_file_add): Return immediately if no syms.
8678 (find_sym_fns): Return immediately if no syms.
8679
e641a1ca
ML
86802002-03-13 Michal Ludvig <mludvig@suse.cz>
8681
8682 * gdbserver/remote-util.c (remote_open): Print remote-side's
8683 IP address when remote debugging over the network.
7e336ba1 8684
df08bfec
DB
86852002-03-12 David O'Brien <obrien@FreeBSD.org>
8686
8687 * config/sparc/fbsd.mh: Fix copyright.
8688 * config/sparc/fbsd.mt: Likewise.
8689
9a57864f
RE
86902002-03-11 Richard Earnshaw <rearnsha@arm.com>
8691
8692 * MAINTAINERS: Fix typo in name of gdb warnings option.
8693 (x86-64): Fix formating so that this can be parsed by awk.
8694
dd7bf85e
DJ
86952002-03-10 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8698 * defs.h: Include "gdb/signals.h".
8699 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8700
33a0a2ac
ML
87012002-03-10 Michal Ludvig <mludvig@suse.cz>
8702
8703 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8704 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8705 from x86-64-tdep.h
8706
dd824b04
DJ
87072002-03-10 Daniel Jacobowitz <drow@mvista.com>
8708 Don Howard <dhoward@redhat.com>
8709
8710 * mips-tdep.c (ST0_FR): Define.
8711 (mips2_fp_compat): New function, temporarily disabled.
8712 (mips_read_fp_register_single): New function.
8713 (mips_read_fp_register_double): New function.
8714 (mips_print_register): Use them.
8715 (do_fp_register_row): Likewise.
8716
6a41ff59
AC
87172002-03-09 Andrew Cagney <ac131313@redhat.com>
8718
8719 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8720 approval''.
8721
4ea09c10
PS
87222002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8723
8724 * stabsread.c (read_member_functions): Fix is_stub test for
8725 static member functions, improve comment.
8726
6ccc741d
RE
87272002-03-07 Richard Earnshaw <rearnsha@arm.com>
8728
8729 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8730 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8731 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8732 commands that set boolean values.
8733 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8734 (arm_rdi_resume): Always initialize PC.
8735 (arm_rdi_open): Don't use rslt as a boolean.
8736 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8737 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8738 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8739 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8740
438013df
AO
87412002-03-06 Alexandre Oliva <aoliva@redhat.com>
8742
8743 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8744 * configure: Rebuilt.
8745
70ed8774
SC
87462002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8747
8748 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8749 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8750
5ba2abeb
AC
87512002-03-06 Andrew Cagney <ac131313@redhat.com>
8752
8753 * cli/cli-decode.c (set_cmd_completer): New function.
8754 * command.h (set_cmd_completer): Declare.
8755 * cli/cli-decode.h (set_cmd_completer): Ditto.
8756
8757 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8758 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8759 * win32-nat.c (_initialize_inftarg): Ditto.
8760 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8761 * proc-api.c (_initialize_proc_api): Ditto.
8762 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8763 * source.c (_initialize_source): Ditto.
8764 * exec.c (_initialize_exec): Ditto.
8765 * solib.c (_initialize_solib): Ditto.
8766 * top.c (init_main): Ditto.
8767 * tracepoint.c (_initialize_tracepoint): Ditto.
8768 * symfile.c (_initialize_symfile): Ditto.
8769 * printcmd.c (_initialize_printcmd): Ditto.
8770 * infcmd.c (_initialize_infcmd): Ditto.
8771 * corefile.c (_initialize_core): Ditto.
8772
f779ca99
AC
87732002-03-05 Andrew Cagney <ac131313@redhat.com>
8774
8775 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8776
01a3934b
AC
87772002-03-05 Andrew Cagney <ac131313@redhat.com>
8778
8779 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8780
37057839
AC
87812002-03-05 Andrew Cagney <ac131313@redhat.com>
8782
8783 * NEWS: Update headings, 5.2 has branched.
8784
c6ecbae5
DJ
87852002-03-04 Daniel Jacobowitz <drow@mvista.com>
8786
8787 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8788 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8789 (register_addr, REGISTER_RAW_SIZE): Likewise.
8790 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8791 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8792
e9f30c21
ML
87932002-03-03 Michal Ludvig <mludvig@suse.cz>
8794
8795 * MAINTAINERS (x86-64): Add myself.
8796 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8797 changed value_ptr -> struct value *
8798
54394ac3
DB
87992002-03-01 David O'Brien <obrien@FreeBSD.org>
8800
8801 * configure.host (sparc64-*-freebsd): Add.
8802 * configure.tgt: Likewise.
8803 * config/sparc/fbsd.mh: New file.
8804 * config/sparc/fbsd.mt: Likewise.
8805 * config/sparc/nm-fbsd.h: Likewise.
8806 * config/sparc/tm-fbsd.h: Likewise.
8807
bfe95955
DJ
88082002-03-01 Daniel Jacobowitz <drow@mvista.com>
8809
8810 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8811 regformats/reg-s390x.dat.
8812
f33c6cbf
AC
88132002-03-01 Andrew Cagney <ac131313@redhat.com>
8814
8815 * utils.c: Add FIXME explaining true/false problem.
8816
5ecaa7dd
AC
88172002-02-28 Andrew Cagney <ac131313@redhat.com>
8818
8819 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8820
2a251cc2
MC
88212002-02-28 Michael Chastain <mec@shout.net>
8822
8823 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8824
6a8031a3 88252002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8826
8827 * gdbserver/linux-s390-low.c: New file.
8828 * regformats/reg-s390.dat: New file.
8829 * regformats/reg-s390x.dat: New file.
8830 * gdbserver/configure.srv: Add S/390.
8831 * gdbserver/Makefile.in: Add S/390.
8832 * configure.tgt: Enable gdbserver for S/390.
8833
ac469903
EZ
88342002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8835
8836 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8837 first line of the doc string for "info dos", except at the end of
8838 the sentence, since the short help stops at the first period.
8839
985cb1a3
JM
88402002-02-28 Jason Merrill <jason@redhat.com>
8841
8842 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8843
c570663e
FF
88442002-02-27 Fred Fish <fnf@redhat.com>
8845
8846 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8847 comment (dumy -> dummy).
8848
43630227
PS
88492002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8850
8851 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8852
b84911e8
RB
88532002-02-27 Rodney Brown <rbrown64@csc.com.au>
8854
8855 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8856
58caa3dc
DJ
88572002-02-27 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * gdbserver/acconfig.h: New file.
8860 * gdbserver/i387-fp.c: New file.
8861 * gdbserver/i387-fp.h: New file.
8862 * gdbserver/linux-x86-64.c: New file.
8863 * regformats/reg-x86-64.dat: New file.
8864 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8865 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8866 * gdbserver/configure.in: Add support for regsets.
8867 * gdbserver/config.in: Regenerate.
8868 * gdbserver/configure: Regenerate.
8869 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8870 * gdbserver/linux-low.h: New file.
8871 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8872 for regsets.
8873 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8874 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8875 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8876 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8877 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8878 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8879 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8880 "i387-fp.h". Add PTRACE_GETREGS and friends.
8881 * gdbserver/regcache.c (supply_register): New function.
8882 (supply_register_by_name): New function.
8883 (collect_register): New function.
8884 (collect_register_by_name): New function.
8885
93652174
DJ
88862002-02-27 Daniel Jacobowitz <drow@mvista.com>
8887
8888 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8889 (config.status): Add configure.srv dependency.
8890 (server_h): Add config.h dependency.
8891
a02e4a61
DJ
88922002-02-27 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8895 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8896 * gdbserver/configure.srv: Change i386-*-linux* to use
8897 reg-i386-linux.o.
8898
ce0eebec
AC
88992002-02-26 Andrew Cagney <ac131313@redhat.com>
8900
8901 * x86-64-tdep.c: Re-indent. Update copyright date.
8902
82dbc5f7
AC
89032002-02-26 Andrew Cagney <ac131313@redhat.com>
8904
8905 From Michal Ludvig <mludvig@suse.cz>:
8906 * x86-64-tdep.c (value.h): Delete.
8907 (gdb_assert.h): Include.
8908 (x86_64_register_convert_to_virtual,
8909 x86_64_register_convert_to_raw ): Add check which lets only
8910 floating-point values to be converted.
8911 (value_push): Delete.
8912 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8913 (i386_gdbarch_init): Number of register_bytes fixed.
8914
e4621584
AC
89152002-02-26 Andrew Cagney <ac131313@redhat.com>
8916
8917 * MAINTAINERS: Add x86-64 target.
8918
81a9a963
AC
89192002-02-26 Andrew Cagney <ac131313@redhat.com>
8920
8921 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8922 * osfsolib.c (solib_map_sections): Ditto.
8923 * irix5-nat.c (solib_map_sections): Ditto.
8924 * corelow.c (gdb_check_format): Ditto.
8925 * symfile.c (symfile_bfd_open): Ditto.
8926 * solib.c (solib_map_sections): Ditto.
8927 Fix PR gdb/354.
7e336ba1 8928
0f017ab9
AC
89292002-02-26 Andrew Cagney <ac131313@redhat.com>
8930
8931 * remote.c (_initialize_remote): By default, disable ``e'' and
8932 ``E'' step out-of-range packets.
8933
75738c29
AS
89342002-02-26 Andreas Schwab <schwab@suse.de>
8935
8936 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8937 m68k_linux_frame_saved_pc.
8938 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8939 in_sigtramp.
8940 (SIGCONTEXT_PC_OFFSET): Remove.
8941 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8942 m68k_linux_sigtramp_saved_pc): New functions.
8943 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8944 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8945 (UCONTEXT_PC_OFFSET): Define.
8946 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8947 non-RT and RT signal trampolines.
8948
7e8ed687
RE
89492002-02-26 Richard Earnshaw <rearnsha@arm.com>
8950
8951 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8952 (TARGET_NBPG, STACK_END_ADDR): Delete
8953 (VARIABLES_INSIDE_BLOCK): Delete.
8954
6972bc8b
AC
89552002-02-25 Andrew Cagney <ac131313@redhat.com>
8956
8957 * utils.c (perror_with_name): Make string parameter constant.
8958 (print_sys_errmsg): Ditto.
8959 (query): Ditto.
8960 * defs.h (perror_with_name): Update.
8961 (print_sys_errmsg): Update.
8962 (query): Update.
8963
aa32f823
DJ
89642002-02-25 Daniel Jacobowitz <drow@mvista.com>
8965
8966 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8967 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8968
19caaa45
PS
89692002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8970
8971 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8972 if it already matches the current architecture from the exec file.
8973 Include arch-utils.h for gdbarch_info_init prototype.
8974 * Makefile.in (rs6000-nat.o): Update dependencies.
8975
d951901f
EZ
89762002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8977
8978 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8979 list of exported variables.
8980
7ea81414
DJ
89812002-02-24 Daniel Jacobowitz <drow@mvista.com>
8982
8983 * gdbserver/configure.srv: New file.
8984 * gdbserver/configure.in: Use configure.srv instead
8985 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8986 from it.
8987 * gdbserver/configure: Regenerated.
8988 * gdbserver/terminal.h: New file.
8989 * gdbserver/Makefile.in: Update for configure changes. Remove
8990 more unneeded include paths.
8991
080fe24b
AC
89922002-02-24 Andrew Cagney <ac131313@redhat.com>
8993
8994 From wiz at danbala:
8995 * config/sparc/tm-sp64.h: Fix grammar and typos.
8996 Fix PR gdb/287.
8997
8605d56e
AC
89982002-02-24 Andrew Cagney <ac131313@redhat.com>
8999
9000 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9001 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9002 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9003 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9004 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9005 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9006 * s390-tdep.c: Ditto.
92362027
AC
9007 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9008 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9009 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9010 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9011 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9012 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9013 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9014 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9015 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9016 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9017 Fix PR gdb/378.
7e336ba1 9018
8ed32cc0
AC
90192002-02-23 Andrew Cagney <ac131313@redhat.com>
9020
a3007b6f
AC
9021 * lin-thread.c: Delete file.
9022 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9023 to gdb_proc_service.h.
9024 * configure: Re-generate.
9025
50a9e2f1
AC
9026 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9027 * serial.c (serial_open): Delete check for "ocd".
9028 Fix PR gdb/349.
9029
8b6e7932
AC
9030 * Makefile.in (linux-thread.o): Delete target.
9031 * linux-thread.c: Delete file.
9032
d155c46b
AC
9033 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9034 renamed SH files to be consistent.
9035
8ed32cc0
AC
9036 * symtab.c (sort_search_symbols): Use xfree.
9037
0e18d038
RE
90382002-02-23 Richard Earnshaw <rearnsha@arm.com>
9039
9040 * arm-linux-tdep.c (arm_linux_init_abi): Register
9041 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9042 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9043 definition with undef, since we don't want the sysvr4 definition.
9044 (SKIP_TRAMPOLINE_CODE): Likewise.
9045
27aac7ff
AC
90462002-02-23 Andrew Cagney <ac131313@redhat.com>
9047
9048 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9049
9050 * configure.in: (AC_CHECK_FUNCS) Added test for
9051 canonicalize_file_name Regenerated.
9052 * config.in, configure: Regenerated.
9053 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9054 defined use canonicalize_file_name.
7e336ba1 9055
65a6e0ee
MC
90562002-02-23 Michael Chastain <mec@shout.net>
9057
9058 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9059
47b95330
AC
90602002-02-23 Andrew Cagney <ac131313@redhat.com>
9061
9062 * README: Remove references to cygnus.com.
9063 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9064 dot com'' form. Remove references to cygnus.com and sourceware.
9065
696f451b
AC
90662002-02-23 Andrew Cagney <ac131313@redhat.com>
9067
9068 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9069 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9070 1003.1-2001 no longer allows "head -1".
9071 * gdb/Makefile.in (version.c): Likewise.
9072 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9073 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9074 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9075
bbaca940
AC
90762002-02-23 Andrew Cagney <ac131313@redhat.com>
9077
9078 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9079 * command.h (cmd_cfunc_eq): Declare.
9080 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9081
9082 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9083 ``struct cmd_list_element *''.
9084 * cli/cli-cmds.c (is_complete_command): Update. Use
9085 cmd_cfunc_eq.
9086 * top.c (execute_command): Pass the command to
9087 is_complete_command.
9088 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9089
b8b8b047
AC
90902002-02-23 Andrew Cagney <ac131313@redhat.com>
9091
9092 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9093 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9094 architecture defines.
9095 * s390-tdep.c (s390_gdbarch_init): Likewise.
9096
19d3fc80
RE
90972002-02-23 Richard Earnshaw <rearnsha@arm.com>
9098
9099 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9100 (arm_linux_push_arguments): Likewise.
9101 (arm_linux_init_abi): Register them. Also register linux-specific
9102 call_dummy_words.
9103 (find_minsym_and_objfile): Use strcmp, not STREQ.
9104 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9105 (arm_linux_call_dummy_words): Delete declaration.
9106 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9107 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9108 declarations.
9109 (LOWEST_PC): Delete.
9110
3ab13650
PS
91112002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9112
9113 * maint.c (print_section_info): Do not prepend `0x' to filepos
9114 output, it will be handled by local_hex_string_custom.
9115
19d3fc80 91162002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9117
9118 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9119 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9120 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9121
d85a5daf
JB
91222002-02-22 Jim Blandy <jimb@redhat.com>
9123
9124 Indicate that the bcache functions don't change the strings
9125 they're passed.
9126 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9127 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9128
eeb25b8a
PM
91292002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9130
9131 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9132
6badb179
CF
91332002-02-21 Christopher Faylor <cgf@redhat.com>
9134
9135 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9136 find the complete path to a loaded DLL.
9137
e8717518
FF
91382002-02-21 Fred Fish <fnf@redhat.com>
9139
9140 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9141 that marks the end of the range of a function, enter a line number
9142 entry that has a line number of zero and a PC offset that matches
9143 the end of the function. This starts a range of PC's for which no
9144 line number information is known.
9145 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9146 PC's for which no line number info is found (line number is zero)
9147 then we didn't find any valid line information.
9148 * symtab.h: Document use of zero line number entry.
9149
9abe5450
EZ
91502002-02-21 Elena Zannoni <ezannoni@redhat.com>
9151
9152 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9153 (have_ptrace_getvrregs): Define for run time checks.
9154 (gdb_vrregset_t): New type for Altivec register handling.
9155 (fetch_register, store_register): Fetch/store altivec register
9156 when needed.
9157 (fetch_altivec_register, store_altivec_register): New functions.
9158 (supply_vrregset, fill_vrregset): New functions.
9159 (fetch_altivec_registers, store_altivec_registers): New functions.
9160 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9161 registers as well.
9162
aaa38bb5
AJ
91632002-02-21 Jiri Smid <smid@suse.cz>
9164
9165 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9166
b34db576
RE
91672002-02-21 Richard Earnshaw <rearnsha@arm.com>
9168
9169 * Makefile.in (armnbsd-nat.o): Update dependencies.
9170 * armnbsd-nat.c (supply_gregset): New function. Common code to
9171 supply the integer register set.
9172 (supply_fparegset): New function. Similar for FPA registers.
9173 (fetch_regs, fetch_fp_regs): Use them.
9174 (fetch_core_registers): Likewise.
9175 (fetch_elfcore_registers): New function.
9176 (arm_netbsd_elfcore_fns): New core-file type specification.
9177 (_initialize_arm_netbsd_nat): Register it.
9178
3e56fc4b
RE
91792002-02-21 Richard Earnshaw <rearnsha@arm.com>
9180
9181 * armnbsd-nat.c: Include gdbcore.h.
9182 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9183 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9184 'void' to declaration, to shut up ARI.
9185 (fetch_core_registers): Make static. Rewrite using supply_register.
9186 (arm_netbsd_core_fns): New core-file type specification.
9187 (_initialize_arm_netbsd_nat): New function.
9188
097f6b0b
CF
91892002-02-21 Christopher Faylor <cgf@redhat.com>
9190
9191 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9192 value.
9193
c914e0cc
CF
91942002-02-20 Christopher Faylor <cgf@redhat.com>
9195
9196 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9197 fails.
9198
385fa495
DJ
91992002-02-20 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * jv-exp.y (parse_number): Change type of implicit longs
9202 to builtin_type_uint64.
9203
e5f1222d
DJ
92042002-02-20 Daniel Jacobowitz <drow@mvista.com>
9205
9206 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9207 to be an integer instead of a `union wait'.
9208
75c9abc6
DJ
92092002-02-20 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * mips-linux-nat.c: Call the operating system GNU/Linux.
9212 * mips-linux-tdep.c: Likewise.
9213 * mips-tdep.c: Likewise.
9214
551792a5
DJ
92152002-02-20 Daniel Jacobowitz <drow@mvista.com>
9216
9217 Fix PR gdb/265.
9218 * jv-exp.y (parse_number): Handle 64-bit integers.
9219
ee6e2b82
DJ
92202002-02-20 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9223 AC_STDC_HEADERS to AC_HEADER_STDC.
9224 * gdbserver/configure: Regenerated.
9225
a48442a0
RE
92262002-02-20 Richard Earnshaw <rearnsha@arm.com>
9227
9228 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9229 is defined.
9230 * sparc-tdep.c (get_longjmp_target): Likewise.
9231
fe419ffc
RE
92322002-02-20 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * News: Add news about ARM and Multi-arch. Mention the new target
9235 arm*-*-netbsd*.
9236
5832ed7e
JB
92372002-02-19 Jim Blandy <jimb@redhat.com>
9238
9239 * stabsread.c (error_type_complaint): Improve error message.
9240
84563040
DJ
92412002-02-19 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * gdbserver/README: Update documentation.
9244 * gdbserver/configure.in: Update configury to match documentation.
9245 * gdbserver/Makefile.in: Likewise.
9246 * gdbserver/configure: Regenerated.
9247 * gdbserver/aclocal.m4: New file, generated by aclocal.
9248 * gdbserver/config.in: New file, generated by autoheader.
9249
375fd65b
RE
92502002-02-19 Richard Earnshaw <rearnsha@arm.com>
9251
9252 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9253 armnbsd-nat.c.
9254
08216dd7
RE
92552002-02-19 Richard Earnshaw <rearnsha@arm.com>
9256
9257 * arm-tdep.h (enum arm_float_model): New enum.
9258 (struct gdbarch_tdep): Add fp_model.
9259 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9260 up floating-point conversions until we know the floating-point model
9261 in use by the inferior. Don't complain about being unable to
9262 determine the ABI of the inferior when we don't have one.
9263 (arm_extract_return_value): Support different floating-point models.
9264 (arm_store_return_value): Likewise.
aaa38bb5 9265 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9266 ARM_FLOAT_SOFT.
9267 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9268
65d6d66a
PS
92692002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9270
9271 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9272 of ``current_gdbarch''.
9273
47221191
RE
92742002-02-19 Richard Earnshaw <rearnsha@arm.com>
9275
9276 * armnbsd-nat.c : ANSIfy all function declarations.
9277 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9278 (fetch_inferior_registers): Re-implement in terms of above.
9279 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9280 (store_inferior_registers): Re-implement in terms of above.
9281
fdf39c9a
RE
92822002-02-19 Richard Earnshaw <rearnsha@arm.com>
9283
aaa38bb5 9284 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9285 kernel.
9286 * arm-linux-tdep.c: Likewise.
9287 * config/arm/tm-linux.h: Likewise.
9288
93247f88
RE
92892002-02-19 Richard Earnshaw <rearnsha@arm.com>
9290
9291 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9292 * config/arm/nbsd.mt (TM_FILE): Delete.
9293 * config/arm/tm-nbsd.h: Delete.
9294
d7b486e7
RE
92952002-02-19 Richard Earnshaw <rearnsha@arm.com>
9296
9297 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9298 Initialize CALL_DUMMY_LENGTH.
9299
41d39a95
RE
93002002-02-19 Richard Earnshaw <rearnsha@arm.com>
9301
9302 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9303 function.
9304 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9305 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9306 defines one thing and that is incorrect for this port.
9307 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9308
e1195560
PM
93092002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9310
9311 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9312
c1748f97
PM
93132002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9314
9315 * win32-nat.c (display_selector): New function. Displays information
9316 about the information returned by GetThreadSelectorEntry API function.
9317 (display_selectors): New function. Displays the infomation of
9318 the selector given as argument, or of CS, DS ans FS selectors
9319 if no argument is given.
9320 ( _initialize_inftarg): Add "w32" as info prefix command.
9321 Add "info w32 selector" as command calling display_selectors.
9322
e41e6bbf
PM
93232002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9324
9325 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9326 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9327 if not defined.
9328
0d3a9f48
RE
93292002-02-18 Richard Earnshaw <rearnsha@arm.com>
9330
9331 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9332
3fb4b924
RE
93332002-02-18 Richard Earnshaw <rearnsha@arm.com>
9334
9335 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9336 (arm_fix_call_dummy): Call it.
9337 (arm_call_dummy_breakpoint_offset): Delete.
9338 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9339 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9340
7f55af32
AC
93412002-02-18 Andrew Cagney <ac131313@redhat.com>
9342
9343 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9344 Default to func_frame_chain_valid.
9345 * gdbarch.h, gdbarch.c: Re-generate.
9346 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9347
05f13b9c
EZ
93482002-02-18 Elena Zannoni <ezannoni@redhat.com>
9349
9350 * ppc-linux-nat.c: Update copyright.
9351 (fetch_register, store_register): Add tid parameter, don't compute
9352 tid here.
9353 (fetch_ppc_registers, store_ppc_registers): Add tid
9354 parameter. Pass it along to callees.
9355 (fetch_inferior_registers, store_inferior_registers): Compute tid
9356 here, and pass it to calleed functions.
9357 (fill_gregset, supply_fpregset): Clean up formatting.
9358
d7afb4c9
RE
93592002-02-18 Richard Earnshaw <rearnsha@arm.com>
9360
9361 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9362 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9363
9df628e0
RE
93642002-02-18 Richard Earnshaw <rearnsha@arm.com>
9365
9366 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9367 * gdbarch.c gdbarch.h: Regenerate.
9368 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9369 function.
9370 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9371 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9372 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9373
9374 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9375 * arm-tdep.c (arm_get_longjmp_target): New function.
9376 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9377 this to a positive value register arm_get_longjmp_target as the
9378 longjmp handler.
9379 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9380 (arm_linux_init_abi): Set up longjmp description in tdep.
9381 * armnbsd-nat.c (get_longjmp_target): Delete.
9382 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9383 description in tdep.
9384 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9385 (get_longjmp_target): Delete declaration.
9386 (GET_LONGJMP_TARGET): Delete.
9387 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9388 (GET_LONGJMP_TARGET): Delete.
9389
57bc8964
KB
93902002-02-17 Kevin Buettner <kevinb@redhat.com>
9391
9392 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9393 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9394 of ``current_gdbarch''.
9395
83d31a92
TT
93962002-02-17 Tom Tromey <tromey@redhat.com>
9397
9398 * cli/cli-cmds.c (compare_strings): New function.
9399 (complete_command): Only print each unique item once.
9400 * completer.h (complete_line): Declare.
9401 * completer.c (complete_line): New function.
9402 (line_completion_function): Use it.
9403
17ef5d92
AC
94042002-02-16 Andrew Cagney <ac131313@redhat.com>
9405
9406 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9407 * gdbarch.h, gdbarch.c: Re-generate.
9408
491b8946
DJ
94092002-02-16 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9412
94132002-02-16 Daniel Jacobowitz <drow@mvista.com>
9414
9415 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9416 * valops.c (value_arg_coerce): Don't take the address of a reference
9417 to convert an argument to a reference.
9418
dfe7f3ac
CF
94192002-02-15 Christopher Faylor <cgf@redhat.com>
9420
9421 * win32-nat.c (get_image_name): New function.
9422 (handle_load_dll): Use get_image_name function.
9423 (get_child_debug_event): Avoid registering debug events until possibly
9424 execed process is started.
9425 (child_create_inferior): Allow invocation via shell so that command
9426 line redirection, etc. works ok.
9427 (_initialize_inftarg): Add new command: "set shell" to control whether
9428 a shell is used to start a process.
9429
1d33e73a
DJ
94302002-02-15 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9433 instead of find_register_by_number.
9434 (cannot_store_register): Likewise.
9435
48cd0caa
PM
94362002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9437
aaa38bb5 9438 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9439 fprintf_unfiltered (gdb_stderr, ...).
9440
8656e7d8
DJ
94412002-02-15 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * gdbserver/gdbserver.1: Document --attach.
9444
66e810cd
RE
94452002-02-15 Richard Earnshaw <rearnsha@arm.com>
9446
9447 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9448 descriptions.
9449 * arm-tdep.c (arm_default_arm_le_breakpoint)
9450 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9451 (arm_default_thumb_be_breakpoint): New. Initialize them from
9452 traditional breakpoint defines.
9453 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9454 (arm_gdbarch_init): Initialize new breakpoint variables.
9455 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9456 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9457 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9458 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9459 code out to ...
9460 (arm_netbsd_init_abi_common): ... here; new function.
9461 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9462 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9463 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9464 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9465
97e03143
RE
94662002-02-15 Richard Earnshaw <rearnsha@arm.com>
9467
9468 * arm-tdep.h (enum arm_abi): New enum.
9469 (struct gdbarch_tdep): New structure.
9470 (LOWEST_PC): Provide a default.
9471 (arm_gdbarch_register_os_abi): Declare new function.
9472 * arm-tdep.c (arm_abi_names): New array.
9473 (process_note_abi_tag_sections): New function.
9474 (get_elfosabi): New function.
9475 (arm_gdbarch_register_os_abi): New function.
9476 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9477 support for that ABI has been built in, then call the appropriate
9478 configuration routine. Use gdbarch_num_regs() to get the number
9479 of registers.
9480 (arm_dump_tdep): New function.
9481 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9482 place-holder functions.
9483 (_initialize_arm_tdep): Register them.
9484 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9485
9486 * armnbsd-tdep.c: New file.
9487 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9488 * config/arm/nbsd.mt (TDEPFILES): Add it.
9489 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9490
9491 * armnbsd-nat.c: Include regcache.h.
9492 * Makefile.in (armnbsd-nat.o): Update dependency list.
9493
9494 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9495
ad68be46
DJ
94962002-02-14 Daniel Jacobowitz <drow@mvista.com>
9497
9498 * gdbserver/Makefile.in: Fix typos in target rules.
9499
003d6d1d
DJ
95002002-02-14 Daniel Jacobowitz <drow@mvista.com>
9501
aaa38bb5 9502 Fix part of PR gdb/267.
003d6d1d
DJ
9503 * linespec.c (find_methods): Handle constructors specially for now.
9504
6b230f1b
CV
95052002-02-14 Corinna Vinschen <vinschen@redhat.com>
9506
9507 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9508 handling.
9509 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9510 standard_coerce_float_to_double().
9511
1ea98d12
CF
95122002-02-14 Christopher Faylor <cgf@redhat.com>
9513
9514 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9515 GDBINIT_FILENAME.
9516
dd47e6fd
EZ
95172002-02-14 Elena Zannoni <ezannoni@redhat.com>
9518
9519 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9520 find_variant_by_name, because it confuses the multiarch
9521 framework. Return NULL if there isn't an architecture with the
9522 user supplied name, instead of forcing a different one without
9523 recording the change with the multiarch machinery.
9524 (find_variant_by_name): Delete.
9525
d7e39b9e
PS
95262002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9527
9528 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9529 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9530
76e42a4f
MH
95312002-02-13 Martin M. Hunt <hunt@redhat.com>
9532
aaa38bb5 9533 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9534 print_frame_info_listing_hook, set current_source_symtab.
9535
0a30fbc4
DJ
95362002-02-14 Daniel Jacobowitz <drow@mvista.com>
9537
9538 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9539 and remove unused $(INCLUDE_DIR).
9540 Add regcache.c to OBS.
9541 Add generated register protocol files to clean target.
9542 Update dependencies for new objects, obsolete old target code.
9543
9544 * gdbserver/linux-low.c: Remove all platform-specific code to
9545 new files. Remove various dead code. Update to use regcache
9546 functionality.
9547 * gdbserver/remote-utils.c (fromhex): Add return statement
9548 to quiet warning.
9549 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9550 constant.
9551 (input_interrupt): Add integer parameter to match prototype
9552 of a signal handler.
9553 (outreg): Use register_data ().
9554 (prepare_resume_reply): Use gdbserver_expedite_regs.
9555 * gdbserver/server.c (main): Dynamically allocate own_buf because
9556 PBUFSIZ is no longer constant. Use registers_to_string () and
9557 registers_from_string ().
9558 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9559 for error (), fatal (), and warning (). Update definition of
9560 PBUFSIZ to use regcache functionality. Add include guard.
9561 * gdbserver/utils.c (fatal): Add missing ``const''.
9562 (warning): New function.
9563
9564 * regformats/regdat.sh: Include "regcache.h" in generated files.
9565 Provide init_registers () function.
9566 * regformats/regdef.h: Add prototype for set_register_cache ().
9567 Add include guard.
9568
9569 * gdbserver/linux-arm-low.c: New file.
9570 * gdbserver/linux-i386-low.c: New file.
9571 * gdbserver/linux-ia64-low.c: New file.
9572 * gdbserver/linux-m68k-low.c: New file.
9573 * gdbserver/linux-mips-low.c: New file.
9574 * gdbserver/linux-ppc-low.c: New file.
9575 * gdbserver/linux-sh-low.c: New file.
9576
9577 * gdbserver/regcache.c: New file.
9578 * gdbserver/regcache.h: New file.
9579
9580 * gdbserver/low-linux.c: Removed obsolete file.
9581
4cc841d0
DJ
95822002-02-14 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9585 * config/i386/linux.mt: Likewise.
9586 * config/ia64/linux.mt: Likewise.
9587 * config/m68k/linux.mh: Likewise.
9588 * config/powerpc/linux.mh: Likewise.
9589 * config/mips/linux.mt: Likewise.
9590
9591 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9592
9593 * config/i386/i386lynx.mh: Mark gdbserver variables
9594 as (currently) obsolete for this target.
9595 * config/i386/nbsd.mt: Likewise.
9596 * config/i386/nbsdelf.mt: Likewise.
9597 * config/m32r/m32r.mt: Likewise.
9598 * config/m68k/m68klynx.mh: Likewise.
9599 * config/m68k/nbsd.mt: Likewise.
9600 * config/m68k/sun3os4.mh: Likewise.
9601 * config/mips/vr5000.mt: Likewise.
9602 * config/ns32k/nbsd.mt: Likewise.
9603 * config/pa/hppabsd.mh: Likewise.
9604 * config/pa/hppaosf.mh: Likewise.
9605 * config/powerpc/nbsd.mt: Likewise.
9606 * config/rs6000/rs6000lynx.mh: Likewise.
9607 * config/s390/s390.mt: Likewise.
9608 * config/s390/s390x.mt: Likewise.
9609 * config/sparc/sparclynx.mh: Likewise.
9610 * config/sparc/sun4os4.mh: Likewise.
9611 * config/i386/x86-64linux.mt: Likewise.
9612 * config/sparc/linux.mh: Likewise.
9613
a85f51e7
DJ
96142002-02-14 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * configure.tgt: Configure gdbserver only for known working
9617 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9618 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9619 SUBDIRS if it is configured. Update comment for ${nativefile}.
9620 * configure: Regenerated.
9621
65554fef
MS
96222002-02-13 Michael Snyder <msnyder@redhat.com>
9623
670a52db
MS
9624 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9625
6dbdc4a3
MS
9626 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9627 (default_gcore_mach): Just return 0, work around a problem in bfd.
9628 (default_gcore_target): OK to return NULL if exec_bfd is null.
9629 (make_mem_sec): Use a cast, avoid a warning.
9630
9631 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9632 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9633 sizeof (host pointer) != sizeof (target pointer)).
9634 (procfs_make_note_section): Avoid overflow in psargs string.
9635
aaa38bb5 9636 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9637 implementation return an error.
9638
96392002-02-13 Rodney Brown <rbrown64@csc.com.au>
9640
9641 * procfs.c (procfs_make_note_section): Provide a default definition
9642 (for alpha-dec-osf4.0f). Fix typos.
9643
1e4d76e7
EZ
96442002-02-13 Elena Zannoni <ezannoni@redhat.com>
9645
9646 * linux-proc.c: Add include of regcache.h.
9647 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9648
b6d1a1d5
AC
96492002-02-13 Andrew Cagney <ac131313@redhat.com>
9650
9651 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9652 * memattr.c (create_mem_region): Disallow useless empty region.
9653 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9654 non-overlapping.
b6d1a1d5 9655
6c6ea35e
MC
96562002-02-13 Michael Chastain <mec@shout.net>
9657
9658 * defs.h: Kill CONST_PTR.
9659 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9660 * c-lang.c (c_builtin_types): Likewise.
9661 * ch-lang.c (ch_builtin_types): Likewise.
9662 * f-lang.c (f_builtin_types): Likewise.
9663 * language.c (unknown_builtin_types): Likewise.
9664 * m2-lang.c (m2_builtin_types): Likewise.
9665 * p-lang.c (pascal_builtin_types): Likewise.
9666 * scm-lang.c (c_builtin_types): Likewise.
9667
3e0b0f48
KS
96682002-02-13 Keith Seitz <keiths@redhat.com>
9669
9670 * arm-tdep.h (arm_get_next_pc): Add declaration.
9671
67255d04
RE
96722002-02-13 Richard Earnshaw <rearnsha@arm.com>
9673
9674 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9675 with other related struct-returning functions.
9676 (arm_extract_struct_value_address): New function.
9677 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9678 initialize float_format, double_format and long_double_format as
9679 appropriate to the endianness of the target.
9680 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9681 (arm_use_struct_convention): Delete declaration.
9682 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9683
079777f6
KS
96842002-02-13 Keith Seitz <keiths@redhat.com>
9685
9686 * defs.h (core_addr_to_string_nz): New function.
9687
34588f23
MK
96882002-02-13 Mark Kettenis <kettenis@gnu.org>
9689
9690 Apply missing bits of 2002-01-15 patch.
9691 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9692 (fill_fpregset): Use i387_fill_fsave.
9693
49b563f9
KS
96942002-02-12 Keith Seitz <keiths@redhat.com>
9695
49b563f9
KS
9696 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9697 (core_addr_to_string_nz): New function.
9698
aeb98c60
RE
96992002-02-11 Richard Earnshaw <rearnsha@arm.com>
9700
9701 * arm-linux-nat.c: Really include arm-tdep.h.
9702 * config/arm/tm-linux.h (struct type, struct value): Declare.
9703
65554fef
MS
97042002-02-11 Michael Snyder <msnyder@redhat.com>
9705
9706 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9707 (gcore section): Ifdef for Solaris and Unixware only.
9708 (procfs_do_thread_registers): Unixware needs one lwpstatus
9709 per thread (not one prstatus or pstatus).
9710 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9711 not over all gdb threads. For unixware, call elfcore_write_pstatus
9712 once before iterating over threads.
9713
34e8f22d
RE
97142002-02-11 Richard Earnshaw <rearnsha@arm.com>
9715
9716 * arm-tdep.h: New file.
9717 * arm-tdep.c: Include arm-tdep.h.
9718 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9719 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9720 (arm_print_float_info, arm_register_type, convert_to_extended)
9721 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9722 (arm_extract_return_value, arm_register_name): Make static.
9723 (arm_software_single_step): Similarly. Fix types in declaration.
9724 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9725 (arm_store_return_value, arm_store_struct_return): New functions.
9726 (arm_gdbarch_init): Register the above functions. Also register
9727 call_dummy_start_offset, sizeof_call_dummy_words,
9728 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9729 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9730 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9731 prologue_cache.saved_regs here, rather than ...
9732 (_initialize_arm_tdep): ... here.
9733 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9734 declarations.
9735 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9736 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9737 (arm_print_float_info, arm_register_type, convert_to_extended)
9738 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9739 (arm_extract_return_value, arm_register_name): Delete declarations.
9740 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9741 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9742 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9743 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9744 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9745 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9746 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9747 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9748 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9749 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9750 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9751 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9752 interface.
9753 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9754 * remote-rdi.c remote-rdp.c: Likewise.
9755 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9756 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9757 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9758 definition.
9759
9760 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9761 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9762 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9763 from non-ARM_ prefixed definitions.
9764 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9765 all uses of above.
9766 * remote-rdi.c remote-rdp.c: Likewise.
9767 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9768
148754e5
RE
97692002-02-11 Richard Earnshaw <rearnsha@arm.com>
9770
9771 * arm-tdep.c (arm_frameless_function_invocation)
9772 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9773 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9774 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9775 (arm_pop_frame, arm_get_next_pc): Make static.
9776 (arm_gdbarch_init): Register above in gdbarch structure.
9777 (arm_read_fp): Renamed from arm_target_read_fp.
9778 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9779 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9780 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9781 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9782 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9783 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9784 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9785 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9786 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9787 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9788 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9789
434d2d4f
DJ
97902002-02-10 Daniel Jacobowitz <drow@mvista.com>
9791
9792 * symtab.c (compare_search_syms): New function.
9793 (sort_search_symbols): New function.
9794 (search_symbols): Sort symbols after searching rather than
9795 before.
9796
55241689
AC
97972002-02-10 Andrew Cagney <ac131313@redhat.com>
9798
9799 * NEWS: Linux -> GNU/Linux.
9800
028c194b
AC
98012002-02-10 Andrew Cagney <ac131313@redhat.com>
9802
9803 * gdbarch.sh: For for level one methods, disallow a definition
9804 when partially multi-arched. Add comments explaining rationale.
9805 * gdbarch.h: Re-generate.
9806
6acf50cd
AC
98072002-02-10 Andrew Cagney <ac131313@redhat.com>
9808
9809 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9810 multi-arch partial.
aaa38bb5 9811
50248794
AC
98122002-02-10 Andrew Cagney <ac131313@redhat.com>
9813
9814 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9815 field. Use diff -u.
9816 * gdbarch.c: Re-generate.
9817
c30e0066
AC
98182002-02-10 Andrew Cagney <ac131313@redhat.com>
9819
9b56c5f3 9820 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9821 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9822 partial.
9823
6e6d6484
AC
98242002-02-10 Andrew Cagney <ac131313@redhat.com>
9825
9826 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9827 multi-arch partial.
9828 (PUSH_ARGUMENTS): Switch to using predefault.
9829 * gdbarch.c: Regenerate.
9830
c203844d
AC
98312002-02-10 Andrew Cagney <ac131313@redhat.com>
9832
9833 * valops.c (PUSH_ARGUMENTS): Delete definition.
9834 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9835 partial. Default to default_push_arguments.
9836 * gdbarch.h, gdbarch.c: Regenerate.
9837
b5a2688f
AC
98382002-02-09 Andrew Cagney <ac131313@redhat.com>
9839
9840 * defs.h (throw_exception): Rename return_to_top_level. Update
9841 comments.
9842 * utils.c (error_stream, internal_verror, quit): Ditto.
9843 * top.c (throw_exception, catcher): Ditto.
9844 * sparclet-rom.c (sparclet_load): Ditto.
9845 * remote.c (interrupt_query, minitelnet): Ditto.
9846 * remote-sds.c (interrupt_query): Ditto.
9847 * remote-mips.c (mips_error, mips_kill): Ditto.
9848 * ocd.c (interrupt_query): Ditto.
9849 * monitor.c (monitor_interrupt_query): Ditto.
9850 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9851 * target.h: Update comment.
aaa38bb5 9852
b5a2688f 9853 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9854
2fa5c1e0
AC
98552002-02-09 Andrew Cagney <ac131313@redhat.com>
9856
9857 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9858 default_double_format.
9859 * gdbarch.h, gdbarch.c: Re-generate.
9860 * findvar.c (floatformat_unknown): Delete variable definition.
9861 * doublest.h (floatformat_unknown): Delete variable declaration.
9862
da966255
JB
98632002-02-09 Jim Blandy <jimb@redhat.com>
9864
9865 * stabsread.c (read_type): Add code to parse Sun's syntax for
9866 prototyped function types.
9867
123a4891
AC
98682002-02-09 Andrew Cagney <ac131313@redhat.com>
9869
9870 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9871 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9872
fb39c8f3
PS
98732002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9874
9875 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9876 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9877 now _initialize_xcoffsolib gets called again and overrides the
9878 commands from solib.c in a native configuration.
9879
0b87a11d
MK
98802002-02-09 Mark Kettenis <kettenis@gnu.org>
9881
9882 * doublest.c (store_typed_floating): Don't try to return a value.
9883 Fixes PR gdb/290.
9884
bdc2fc72
JB
98852002-02-08 Jim Blandy <jimb@redhat.com>
9886
9887 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9888 is prototyped and has no arguments, print its argument list as
9889 `(void)'.
9890
da69bbcf
CD
98912002-02-08 Chris Demetriou <cgd@broadcom.com>
9892
9893 * MAINTAINERS (write-after-approval): Add myself.
9894 (paper-trail): I've escaped!
aaa38bb5 9895
b69571f5
CF
98962002-02-08 Christopher Faylor <cgf@redhat.com>
9897
9898 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9899 changes.
9900 (_initialize_check_for_gdb_ini): Ditto.
9901
f6871398
MH
99022002-02-08 Martin M. Hunt <hunt@redhat.com>
9903
9904 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9905 xaprintf -> xasprintf.
9906
4e52d31c
PM
99072002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9908
9909 * win32-nat.c: Remove use of printf and sprintf functions.
9910
39bbf761
RE
99112002-02-08 Richard Earnshaw <rearnsha@arm.com>
9912
9913 * arm-tdep.c (arm_frame_chain_valid): Make static.
9914 (arm_push_arguments): Likewise.
9915 (arm_gdbarch_init): New function.
9916 (_initialize_arm_tdep): Call it.
9917 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9918 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9919 (FRAME_CHAIN_VALID): Delete.
9920 (arm_frame_chain_valid): Delete declaration.
9921 (PUSH_ARGUMENTS): Delete.
9922 (arm_push_arguments): Delete declaration.
9923 (CALL_DUMMY_P): Delete.
9924
9c9532c9
CV
99252002-02-08 Andrew Cagney <ac131313@redhat.com>
9926 Corinna Vinschen <vinschen@redhat.com>
9927
9928 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9929 on builtin float types.
9930
4e8f7a8b
DJ
99312002-02-08 Daniel Jacobowitz <drow@mvista.com>
9932
9933 * utils.c: Include <curses.h> before "bfd.h".
9934 * tui/tui-hooks.c: Likewise.
9935 * tui/tui.c: Likewise.
9936 * tui/tuiCommand.c: Likewise.
9937 * tui/tuiData.c: Likewise.
9938 * tui/tuiDataWin.c: Likewise.
9939 * tui/tuiDisassem.c: Likewise.
9940 * tui/tuiGeneralWin.c: Likewise.
9941 * tui/tuiIO.c: Likewise.
9942 * tui/tuiLayout.c: Likewise.
9943 * tui/tuiRegs.c: Likewise.
9944 * tui/tuiSource.c: Likewise.
9945 * tui/tuiSourceWin.c: Likewise.
9946 * tui/tuiStack.c: Likewise.
9947 * tui/tuiWin.c: Likewise.
9948
cd4bffcf
EZ
99492002-02-07 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9952 to include space for pseudoregs as well. Update loops accordingly.
9953 (sh_fp_frame_init_saved_regs): Ditto.
9954 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9955
26806ce2
AC
99562002-02-07 Andrew Cagney <ac131313@redhat.com>
9957
9958 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9959 Add Richard Earnshaw to Arm maintainers.
9960
97fdab62
AC
99612002-02-07 Andrew Cagney <ac131313@redhat.com>
9962
a6b98203
AC
9963 * defs.h (warning_begin): Delete declaration.
9964
97fdab62
AC
9965 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9966 Delete macro.
9967
78b29b40
MS
99682002-02-07 Michael Snyder <msnyder@redhat.com>
9969
aaa38bb5 9970 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9971 Logic bug, remove misplaced else.
9972
d8849953
KD
99732002-02-07 Klee Dienes <klee@apple.com>
9974
9975 * fork-inferior.c (fork_inferior): Add '!' to the list of
9976 characters that need to be quoted when building a string for the
9977 shell. Quote '!' specifically with a backslash, since CSH chokes
9978 when trying to evaluate "str!str".
aaa38bb5 9979
095778a0
NC
99802002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9981
9982 * rdi-share/host.h: Only provide a typedef for bool if it is not
9983 defined.
9984
1900040c
MS
99852002-02-04 Michael Snyder <msnyder@redhat.com>
9986
9987 * breakpoint.h (enum bptype): Add new overlay event bp type.
9988 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9989
1900040c
MS
9990 * breakpoint.c (create_internal_breakpoint): New function.
9991 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9992 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9993 (create_thread_event_breakpoint): Ditto.
9994 (create_solib_event_breakpoint): Ditto.
9995 (create_overlay_event_breakpoint): New function.
9996 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9997 (update_breakpoints_after_exec): Delete and re-initialize
9998 overlay event breakpoints after an exec. Add FIXME comment
9999 about longjmp breakpoint.
10000 (print_it_typical): Ignore overlay event breakpoints.
10001 (print_one_breakpoint): Ditto.
10002 (mention): Ditto.
10003 (bpstat_what): Do not stop for overlay event breakpoints.
10004 (delete_breakpoint): Don't delete overlay event breakpoints.
10005 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10006 (breakpoint_re_set): Re-create overlay event breakpoint.
10007
10008 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10009 (overlay_manual_command): Disable overlay breakpoints.
10010 (overlay_off_command): Disable overlay breakpoints.
10011
082fc60d
RE
100122002-02-06 Richard Earnshaw <rearnsha@arm.com>
10013
10014 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10015 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10016 to here from config/tm-arm.h.
10017 (coff_sym_is_thumb): Make static.
10018 (arm_elf_make_msymbol_special): New function.
10019 (arm_coff_make_msymbol_special): New function.
10020 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10021 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10022 (coff_sym_is_thumb): Delete declaration.
10023 (arm_elf_make_msymbol_special): Declare.
10024 (arm_coff_make_msymbol_special): Declare.
10025 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10026 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10027
039c5766
RE
100282002-02-06 Richard Earnshaw <rearnsha@arm.com>
10029
10030 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10031
100322002-02-06 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10035 * gdbarch.c gdbarch.h: Regenerate.
10036 * arch-utils.c (default_print_float_info): New function.
10037 * arch-utils.h (default_print_float_info): Prototype it.
10038 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10039 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10040 (PRINT_FLOAT_INFO): Document it.
10041
10042 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10043 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10044 (PRINT_FLOAT_INFO): Define.
10045
58fa08f0
PM
100462002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10047
aaa38bb5 10048 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10049 Add typecast to sprintf argument to suppress a warning.
10050
7393af7c
PM
100512002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10052
58fa08f0 10053 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10054 to allow easier handling of pass state.
10055 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10056 that gives exception name and address.
10057 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10058 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10059 exceptions added.
aaa38bb5
AJ
10060 (child_continue): Correctly report continue_status.
10061 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10062 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10063 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10064 the exception should be passed to debuggee or not.
10065
6af4589c
MS
100662002-02-05 Michael Snyder <msnyder@redhat.com>
10067
10068 * regcache.c (fetch_register): Call target_fetch_register
10069 only if we don't call FETCH_PSEUDO_REGISTER.
10070 (store_register): Call target_store_register only if we
10071 don't call STORE_PSEUDO_REGISTER.
10072
a2cf933a
EZ
100732002-02-05 Elena Zannoni <ezannoni@redhat.com>
10074
10075 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10076 ELF_MAKE_MSYMBOL_SPECIAL.
10077 * gdbarch.c, gdbarch.h: Regenerate.
10078 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10079 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10080 * elfread.c (elf_symtab_read): Compile use of
10081 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10082 multiarched.
10083 * coffread.c (coff_symtab_read): Ditto, for
10084 COFF_MAKE_MSYMBOL_SPECIAL.
10085
6bb7be43
JB
100862002-02-05 Jim Blandy <jimb@redhat.com>
10087
10088 * solib-svr4.c (svr4_truncate_ptr): New function.
10089 (svr4_relocate_section_addresses): Do the address arithmetic with
10090 the appropriate truncation for target addresses, even when
10091 CORE_ADDR is larger than a target address.
10092
e18651ec
DJ
100932002-02-05 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10096 to (int *).
10097
6b2725be
DJ
100982002-02-05 Daniel Jacobowitz <drow@mvista.com>
10099
10100 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10101 code.
10102
fca9e603
DJ
101032002-02-05 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10106
6c537a52
DJ
101072002-02-05 Daniel Jacobowitz <drow@mvista.com>
10108
10109 * gdbserver/linux-low.c: Remove unused include files.
10110
d844cde6
DJ
101112002-02-05 Daniel Jacobowitz <drow@mvista.com>
10112
10113 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10114 (read_inferior_memory): Use it.
10115 (write_inferior_memory): Likewise.
10116
d07c63e7
DJ
101172002-02-05 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10120 grubbing through sys_errlist.
10121
da6d8c04
DJ
101222002-02-05 Daniel Jacobowitz <drow@mvista.com>
10123
10124 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10125
5b421780
PM
101262002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10127 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10128
9f60d481
AC
101292002-02-04 Andrew Cagney <ac131313@redhat.com>
10130
10131 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10132 (do_sfunc, set_cmd_sfunc): New functions.
10133
10134 * command.h (struct cmd_list_element): Add field func.
10135 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10136 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10137 * cli/cli-decode.h: Ditto.
10138
10139 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10140 (help_all, help_cmd_list): Ditto.
10141 (find_cmd, complete_on_cmdlist): Ditto.
10142 * top.c (execute_command): Ditto.
10143
10144 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10145 function.sfunc.
10146
10147 * infcmd.c (notice_args_read): Fix function signature.
10148
10149 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10150 * cli/cli-decode.c (add_set_cmd): Ditto.
10151 * utils.c (initialize_utils): Ditto.
10152 * maint.c (_initialize_maint_cmds): Ditto.
10153 * infrun.c (_initialize_infrun): Ditto.
10154 * demangle.c (_initialize_demangler): Ditto.
10155 * remote.c (add_packet_config_cmd): Ditto.
10156 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10157 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10158 * proc-api.c (_initialize_proc_api): Ditto.
10159 * kod.c (_initialize_kod): Ditto.
10160 * valprint.c (_initialize_valprint): Ditto.
10161 * top.c (init_main): Ditto.
10162 * infcmd.c (_initialize_infcmd): Ditto.
10163 * corefile.c (_initialize_core): Ditto.
10164 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10165 * arch-utils.c (initialize_current_architecture): Ditto.
10166 (_initialize_gdbarch_utils): Ditto.
10167 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10168
10169 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10170 * wince.c (_initialize_inftarg): Ditto.
10171 * symfile.c (_initialize_symfile): Ditto.
10172 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10173 * language.c (_initialize_language): Ditto.
10174 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10175
f9ba0717
MS
101762002-02-04 Michael Snyder <msnyder@redhat.com>
10177
10178 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10179
0c74b2a7
DJ
101802002-02-04 Daniel Jacobowitz <drow@mvista.com>
10181
10182 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10183 Add rules for building the register data files.
10184
c638789f
DJ
101852002-02-04 Daniel Jacobowitz <drow@mvista.com>
10186
10187 * regformats/regdat.sh: Add braces to the definition of
10188 expedite_regs_${arch}.
10189
db253027
DJ
101902002-02-04 Daniel Jacobowitz <drow@mvista.com>
10191
10192 * regformats/regdef.h (struct reg): Add comment describing the
10193 requirements for offset and size fields.
10194
206be19c
AS
101952002-02-04 Andreas Schwab <schwab@suse.de>
10196
10197 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10198 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10199
181c1381
RE
102002002-02-04 Richard Earnshaw <rearnsha@arm.com>
10201
10202 * gdbarch.sh (copyright): Update years in generated header.
10203 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10204 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10205 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10206 * dbxread.c: Likewise.
10207 * dwarfread.c: Likewise.
10208 * elfread.c: Likewise.
10209 * somread.c: Likewise.
10210
10211 * arm-tdep.c (arm_smash_text_address): New function.
10212 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10213
fa4ba8da
PM
102142002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10215
10216 Add support for hardware watchpoints on win32 native.
aaa38bb5 10217 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10218 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10219 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10220 of debug registers.
10221 (debug_registers_changed): New variable. Reflects when debug registers
10222 are changed and need to be written to inferior.
aaa38bb5 10223 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10224 was set, used when new threads are created.
10225 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10226 i386-nat code.
10227 (thread_rec): Set dr array if id is the thread of current_event .
10228 (child_continue, child_resume): Change the debug registers for all
10229 threads if debug_registers_changed.
10230 (child_add_thread): Change the debug registers if debug_registers_used.
10231 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10232 Link nm.h to new nm-cygwin.h file.
10233 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10234 of hardware registers.
10235
a73c86fb
AC
102362002-02-03 Andrew Cagney <ac131313@redhat.com>
10237
10238 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10239 Restore behavour broken by 2002-01-20 Andrew Cagney
10240 <ac131313@redhat.com> IEEE_FLOAT removal.
10241
acf5ed49
DJ
102422002-02-03 Daniel Jacobowitz <drow@mvista.com>
10243
10244 * c-valprint.c (c_val_print): Pass a proper valaddr to
10245 cp_print_class_method.
10246 * valops.c (search_struct_method): If there is only one method
10247 and args is NULL, return that method.
10248
493d28d5
DJ
102492002-02-03 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10252 accessing tag_name directly.
10253
7495dfdb
DJ
102542002-02-03 Daniel Jacobowitz <drow@mvista.com>
10255
10256 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10257 of accessing tag_name directly.
10258
dd6bda65
DJ
102592002-02-03 Daniel Jacobowitz <drow@mvista.com>
10260
10261 PR gdb/280
10262 * gdbtypes.c (replace_type): New function.
10263 * gdbtypes.h (replace_type): Add prototype.
10264 * stabsread.c (read_type): Use replace_type.
10265
88fe217c
RE
102662002-02-03 Richard Earnshaw <rearnsha@arm.com>
10267
10268 * Makefile.in (memattr.o): Add missing dependencies rule.
10269
e5d66720
PS
102702002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10271
10272 * breakpoint.c (break_at_finish_command): Really export.
10273 (break_at_finish_at_depth_command): Ditto.
10274 (tbreak_at_finish_command): Ditto.
10275 * hppa-tdep.c: Include completer.h.
10276 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10277 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10278
fffee0be
AC
102792002-02-01 Andrew Cagney <ac131313@redhat.com>
10280
10281 * utils.c (do_write): New function.
10282 (error_stream): Rewrite combining the code from error_begin and
10283 verror.
10284 (verror): Rewrite using error_stream.
10285 (error_begin): Delete function.
10286
255e7dbf
AC
102872002-02-01 Andrew Cagney <ac131313@redhat.com>
10288
10289 * utils.c (error_begin): Make static.
10290 * defs.h (error_begin): Delete declaration.
10291
10292 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10293 (decode_line_1): Use cplusplus_error instead of error_begin,
10294 cplusplus_hint and return_to_top_level.
10295 * coffread.c (coff_symfile_read): Use error instead of error_begin
10296 and return_to_top_level.
10297 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10298
ddfe3c15
AC
102992002-02-01 Andrew Cagney <ac131313@redhat.com>
10300
10301 * language.h (type_error, range_error): Make string parameter
10302 constant.
10303 * language.c (warning_pre_print): Delete extern declaration.
10304 * dwarfread.c (warning_pre_print): Ditto.
10305 * language.c (type_error, range_error): Rewrite to use verror and
10306 vwarning instead of warning_begin.
10307
03ac34d5
MS
103082002-02-01 Michael Snyder <msnyder@redhat.com>
10309
261c4ca2
MS
10310 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10311 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10312
e00d1dc8
AC
103132002-02-01 Andrew Cagney <ac131313@redhat.com>
10314
10315 * command.h (NO_FUNCTION): Delete macro.
10316 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10317 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10318 * tracepoint.c (_initialize_tracepoint): Ditto.
10319 * cli/cli-decode.c (add_set_cmd): Ditto.
10320 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10321
76b79d6e
DJ
103222002-02-01 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10325 Update ``this'' pointer when calling virtual functions.
10326
799f9e91
MS
103272002-02-01 Michael Snyder <msnyder@redhat.com>
10328
c7bd442c 10329 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10330 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10331
3cf384d4
DJ
103322002-02-01 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * regformats/reg-arm.dat: New file.
10335 * regformats/reg-i386.dat: New file.
10336 * regformats/reg-ia64.dat: New file.
10337 * regformats/reg-m68k.dat: New file.
10338 * regformats/reg-mips.dat: New file.
10339 * regformats/reg-ppc.dat: New file.
10340 * regformats/reg-sh.dat: New file.
10341 * regformats/regdef.h: New file.
10342 * regformats/regdat.sh: New file.
10343
0defa245
RE
103442002-02-01 Richard Earnshaw <reanrsha@arm.com>
10345
10346 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10347 (arm_frame_args_address, arm_frame_locals_address): New functions.
10348 (arm_frame_num_args): New function.
10349 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10350 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10351 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10352
405f26e6
MS
103532002-01-31 Michael Snyder <msnyder@redhat.com>
10354
502fd408
MS
10355 * breakpoint.c (break_at_finish_command): Export.
10356 (break_at_finish_at_depth_command): Export.
10357 (tbreak_at_finish_command): Export.
10358 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10359 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10360 "tbreak" commands, which are HPPA specific.
10361
7d35e135
MS
10362 * printcmd.c (disassemble_command): Remove an ancient
10363 artifact of an old merge.
10364
aaa38bb5 10365 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10366 Define enum constant values for overlay mode.
10367 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10368 (overlay_is_mapped, overlay_auto_command,
10369 overlay_manual_command): Ditto.
d874f1e2 10370
aaa38bb5
AJ
10371 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10372 breakpoint_here_p, breakpoint_inserted_here_p,
10373 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10374 describe_other_breakpoints, check_duplicates, clear_command):
10375 Coding standard fixes.
10376
8add0441 10377 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10378 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10379 code: check bfd SEC_READONLY flag for section.
10380
e351066e
AC
103812002-01-31 Andrew Cagney <ac131313@redhat.com>
10382
7d35e135 10383 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10384
8a48e967
DJ
103852002-01-30 Daniel Jacobowitz <drow@mvista.com>
10386
10387 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10388 data symbols, since we search based on textlow and texthigh.
10389 (find_pc_sect_symtab): Likewise.
10390
f5a96129
AC
103912002-01-30 Andrew Cagney <ac131313@redhat.com>
10392
10393 * defs.h (vwarning): Declare.
f5a96129
AC
10394 * utils.c (vwarning): New function.
10395 (warning): Call vwarning.
10396 (warning_begin): Delete function.
10397
10398 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10399 the warning message.
10400 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10401 warning_begin.
10402
cefd4ef5
MS
104032002-01-30 Michael Snyder <msnyder@redhat.com>
10404
1a703748
MS
10405 * NEWS: Mention "set trust-readonly-sections" command.
10406 Mention generate-core-file command.
cefd4ef5 10407
3a11626d
MS
104082002-01-15 Michael Snyder <msnyder@redhat.com>
10409
10410 * target.c: New command, "set trust-readonly-sections on".
10411 (do_xfer_memory): Honor the suggestion to trust readonly sections
10412 by reading them from the object file instead of from the target.
10413 (initialize_targets): Register command "set trust-readonly-sections".
10414
d1c7e53b
AC
104152002-01-29 Andrew Cagney <ac131313@redhat.com>
10416
10417 * parse.c (target_map_name_to_register): Simplify, search regs and
10418 pseudo-regs using a single loop.
10419
e2c9a72c
AC
104202002-01-30 Andrew Cagney <ac131313@redhat.com>
10421
10422 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10423
69824b4e
MK
104242002-01-15 Rodney Brown <rbrown64@csc.com.au>
10425
10426 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10427 * config/i386/i386v42mp.mh: Add i387-nat.o .
10428 * i386v4-nat.c: Include i387-nat.h.
10429 (supply_fpregset): Use i387_supply_fsave.
10430 (fill_fpregset): Use i387_fill_fsave.
10431
6eb69eab
RE
104322002-01-30 Richard Earnshaw <rearnsha@arm.com>
10433
10434 * arm-tdep.c (arm_call_dummy_words): Define.
10435 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10436 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10437 (CALL_DUMMY_WORDS): Define.
10438 (arm_call_dummy_words): Declare.
10439 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10440 (arm_linux_call_dummy_words): Declare.
10441
9852326a
AS
104422002-01-30 Andreas Schwab <schwab@suse.de>
10443
10444 * m68klinux-nat.c: Fix last change to use regcache_collect
10445 instead of referencing registers[] directly.
10446
977a3030
AC
104472002-01-29 Andrew Cagney <ac131313@redhat.com>
10448
10449 * parse.c (target_map_name_to_register): Delete code wrapped in
10450 #ifdef REGISTER_NAME_ALIAS_HOOK.
10451
2076c72b
MS
104522002-01-28 Michael Snyder <msnyder@redhat.com>
10453
10454 * regcache.c (legacy_read_register_gen): Need to be able to
10455 read pseudo-register as well as real register.
10456 (legacy_write_register_gen): Ditto.
10457
8fcc723b
AC
104582002-01-28 Andrew Cagney <ac131313@redhat.com>
10459
10460 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10461 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10462 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10463 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10464 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10465 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10466 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10467 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10468 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10469 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10470 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10471 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10472 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10473 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10474 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10475 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10476 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10477 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10478 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10479 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10480
afe64c1a
AC
104812002-01-28 Andrew Cagney <ac131313@redhat.com>
10482
10483 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10484 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10485 (initialize_current_architecture): Update target_byte_order using
10486 information from BFD.
aaa38bb5 10487 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10488 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10489
75bc7ddf
AC
104902002-01-28 Andrew Cagney <ac131313@redhat.com>
10491
10492 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10493 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10494
10495 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10496 #ifdef INVALID_FLOAT.
10497 * infcmd.c (do_registers_info): Ditto.
10498 * values.c (unpack_double): Ditto. Add comment.
10499
10500 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10501 already commented out.
10502
0280a90a
AS
105032002-01-26 Andreas Schwab <schwab@suse.de>
10504
10505 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10506 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10507 registers and add support for PTRACE_GETREGS.
10508
7072a954
AC
105092002-01-24 Andrew Cagney <ac131313@redhat.com>
10510
10511 GDB 5.1.1 released from 5.1 branch.
10512 * NEWS: Add 5.1.1 news.
10513 * README: Sync with 5.1 branch.
10514
86f902e0
FF
105152002-01-23 Fred Fish <fnf@redhat.com>
10516
10517 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10518 stabstring on initial malloc. Reallocing will copy it for us,
10519 if necessary.
10520
8af51c36
EZ
105212002-01-23 Elena Zannoni <ezannoni@redhat.com>
10522
aaa38bb5 10523 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10524 (HFILES_NO_SRCDIR): Remove hpread.h.
10525 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10526 (hpread.o): Update dependencies.
10527 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10528
10529 * hp-psymtab-read.c: Remove file.
10530 * hp-symtab-read.c: Remove file.
10531 * hpread.h: Remove file.
10532
10533 * hpread.c: Merge all contents of hp-psymtab-read.c,
10534 hp-symtab-read.c and hpread.h into this file, as it was prior to
10535 January 1999.
10536
10537 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10538 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10539 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10540 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10541
dc5cfeb6
EZ
105422002-01-23 Elena Zannoni <ezannoni@redhat.com>
10543
10544 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10545 fill_gregset): Call gdbarch_tdep() just once, assign result to
10546 variable and use that, instead of calling the function several
10547 times.
10548
ea87b71b
AO
105492002-01-24 Alexandre Oliva <aoliva@redhat.com>
10550
10551 * configure.host: Accept sparcv9 as alias for sparc64.
10552 * configure.tgt: Likewise.
10553
13fc0c2f
KB
105542002-01-22 Kevin Buettner <kevinb@redhat.com>
10555
10556 * solib-aix5.c (build_so_list_from_mapfile)
10557 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10558 arguments is not reversed.
10559 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10560 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10561
7bd872fe
EZ
105622002-01-22 Elena Zannoni <ezannoni@redhat.com>
10563
10564 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10565 modified version of obsolete sh_fetch_pseudo_register.
10566 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10567 (sh4_register_read): New function.
10568 (sh_pseudo_register_write): New function. Renamed and modified
10569 version of obsolete sh_store_pseudo_register.
10570 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10571 (sh4_register_write): New function.
10572 (sh_gdbarch_init): Remove setting of gdbarch function
10573 fetch_pseudo_register and store_pseudo_register. Remove setting of
10574 register_convert_to_raw, register_convert_to_virtual,
10575 register_convertible.
10576 (sh_sh4_register_convertible): Delete. No longer needed. All is
10577 taken care by architecture specific functions
10578 register_read/register_write.
10579 (sh_sh4_register_convert_to_virtual): Make static.
10580 (sh_sh4_register_convert_to_raw): Ditto.
10581
069e84fd
AC
105822002-01-22 Andrew Cagney <ac131313@redhat.com>
10583
10584 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10585 (floatformat_is_nan, floatformat_mantissa): Ditto.
10586
10587 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10588 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10589 builtin_type_ieee_double_little,
10590 builtin_type_ieee_double_littlebyte_bigword,
10591 builtin_type_m68881_ext, builtin_type_i960_ext,
10592 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10593 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10594 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10595 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10596
211a4f69
CV
105972002-01-22 Corinna Vinschen <vinschen@redhat.com>
10598
10599 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10600 parameter. Set frameless flag if it exists and depended of
10601 whether the scanned function is frameless or not.
10602 (xstormy16_skip_prologue): If function is frameless, return
10603 result of xstormy16_scan_prologue().
10604 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10605 call.
10606
f81353e4
EZ
106072002-01-21 Elena Zannoni <ezannoni@redhat.com>
10608
10609 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10610 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10611 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10612 sh_sh4_register_byte, sh_sh4_register_raw_size,
10613 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10614 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10615 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10616 sh_store_pseudo_register, sh_do_pseudo_register): Call
10617 gdbarch_tdep() just once, assign result to variable and use that,
10618 instead of calling the function several times.
10619
63c73a17
MK
106202002-01-20 Mark Kettenis <kettenis@gnu.org>
10621
10622 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10623 macros instead of LAST_FPU_CTRL_REGNUM.
10624 (store_register): Likewise.
10625
39ad761d
JB
106262002-01-21 Jim Blandy <jimb@redhat.com>
10627
10628 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10629 is up-to-date before running the program, not just when a program
10630 exits.
10631
3d74b771
FF
106322002-01-21 Fred Fish <fnf@redhat.com>
10633
10634 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10635 when we have found all instructions we are looking for.
10636
966fbf70
RE
106372002-01-21 Richard Earnshaw <rearnsha@arm.com>
10638
10639 * arm-tdep.c (arm_register_name): New function.
10640 (arm_registers_names): Make static.
10641 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10642 (arm_register_name): Declare.
10643 (REGISTER_NAME): Use it.
10644
c3b4394c
RE
106452002-01-21 Richard Earnshaw <rearnsha@arm.com>
10646 Kevin Buettner <kevinb@redhat.com>
10647
10648 Convert arm targets to new FRAME interface.
10649 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10650 (arm_frame_find_save_regs): Delete.
10651 (arm_frame_init_saved_regs): New.
10652 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10653 Allocate extra_info as required. Convert all uses of fsr.regs
10654 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10655 to use extra_info.
10656 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10657 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10658 (check_prologue_cache, save_prologue_cache): Likewise.
10659 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10660 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10661 (FRAME_FIND_SAVED_REGS): Delete.
10662 (arm_frame_find_saved_regs): Delete prototype.
10663 (arm_frame_init_saved_regs): New prototype.
10664 (FRAME_INIT_SAVED_REGS): Define.
10665
61d99182
AC
106662002-01-20 Andrew Cagney <ac131313@redhat.com>
10667
10668 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10669
6aaea291
AC
106702002-01-20 Andrew Cagney <ac131313@redhat.com>
10671
10672 From Jeff Law <law@redhat.com>:
10673 * infttrace.c: Include <sys/pstat.h>.
10674 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10675 exec file if the ttrace equivalent fails.
10676
15f698d2
AC
106772002-01-20 Andrew Cagney <ac131313@redhat.com>
10678
10679 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10680 (closeLogFile): Ditto.
10681
f86ddd7c
MC
106822002-01-20 Michael Chastain <mec@shout.net>
10683
10684 * top.c (print_gdb_version): Bump copyright year to 2002.
10685
904507ce
AC
106862002-01-20 Andrew Cagney <ac131313@redhat.com>
10687
10688 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10689 Zannoni and Eli Zaretskii.
10690
d7f0b9ce
DJ
106912002-01-20 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * buildsym.c: Update copyright years.
10694 * c-typeprint.c: Likewise.
10695 * dwarf2read.c: Likewise.
10696 * f-typeprint.c: Likewise.
10697 * gdbtypes.c: Likewise.
10698 * gdbtypes.h: Likewise.
10699 * hp-symtab-read.c: Likewise.
10700 * hpread.c: Likewise.
10701 * mdebugread.c: Likewise.
10702 * p-typeprint.c: Likewise.
10703
3fd3d7d2
AC
107042002-01-20 Andrew Cagney <ac131313@redhat.com>
10705
10706 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10707 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10708 byte-order selectable.
10709 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10710 * arch-utils.c: Ditto.
10711 (set_endian): Ditto.
10712 (set_endian_from_file): Ditto.
10713 * gdbserver/low-sim.c (create_inferior): Ditto.
10714 * gdbarch.sh: Ditto.
10715 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10716 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10717 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10718 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10719 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10720 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10721 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10722 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10723 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10724 macro definition.
10725 * config/mips/tm-wince.h: Remove #undef of macro
10726 TARGET_BYTE_ORDER_SELECTABLE.
10727 * config/sh/tm-wince.h: Ditto.
10728
b02dede2
DJ
107292002-01-20 Daniel Jacobowitz <drow@mvista.com>
10730
10731 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10732 member function fields. Add accessor macro
10733 TYPE_FN_FIELD_ARTIFICIAL.
10734 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10735 * c-typeprint.c (c_type_print_base): Skip artificial member
10736 functions.
10737
c3643761
DJ
107382002-01-20 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * f-typeprint.c: Delete unused function f_type_print_args.
10741 * p-typeprint.c: Delete unused function pascal_type_print_args.
10742
8176bb6d
DJ
107432002-01-20 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10746 comment. Add ``artificial'' to ``union field_location''.
10747
10748 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10749
10750 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10751 * mdebugread.c (parse_symbol): Likewise.
10752 * stabsread.c (define_symbol): Likewise.
10753 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10754 initializing TYPE_FIELD_BITPOS to n (obsolete).
10755 (hpread_doc_function_type): Likewise.
10756 * hpread.c (hpread_function_type): Likewise.
10757
7fd60527
AC
107582002-01-20 Andrew Cagney <ac131313@redhat.com>
10759
10760 * configure.in (host_makefile_frag): Only require a host makefile
10761 fragment when a native build.
10762 * configure: Re-generate.
10763
c2f05ac9
AC
107642002-01-20 Andrew Cagney <ac131313@redhat.com>
10765
10766 * doublest.h (floatformat_from_type): Declare.
10767 * doublest.c (floatformat_from_type): New function.
10768 (convert_typed_floating): Use.
10769
10770 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10771 call to function floatformat_from_type.
10772
10773 * gdbarch.sh (IEEE_FLOAT): Delete.
10774 * gdbarch.h, gdbarch.c: Re-generate.
10775 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10776 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10777 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10778 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10779 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10780 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10781 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10782 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10783 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10784 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10785 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10786 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10787
10788 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10789 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10790 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10791 * sh-tdep.c (sh_gdbarch_init): Ditto.
10792 * mips-tdep.c (mips_gdbarch_init): Ditto.
10793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10794 * cris-tdep.c (cris_gdbarch_init): Ditto.
10795
abf22e64
AJ
107962002-01-20 Jiri Smid <smid@suse.cz>
10797
10798 * configure.host, configure.tgt: Support x86-64.
10799 * NEWS: Note new target x86-64.
10800
b7c4cbf8
AJ
10801 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10802 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10803 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10804 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10805 x86-64-linux-nat.o): Fix dependencies.
10806
82600034
AC
108072002-01-19 Andrew Cagney <ac131313@redhat.com>
10808
10809 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10810 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10811 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10812 * config/sparc/xm-sun4os4.h: Delete file.
10813 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10814
bbe5c628
AC
108152002-01-19 Andrew Cagney <ac131313@redhat.com>
10816
10817 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10818 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10819 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10820 * config/i386/i386lynx.mh (XM_FILE): Delete.
10821 * config/rs6000/xm-rs6000ly.h: Delete file.
10822 * config/sparc/xm-sparclynx.h: Delete file.
10823 * config/m68k/xm-m68klynx.h: Delete file.
10824 * config/i386/xm-i386lynx.h: Delete file.
10825 * config/xm-lynx.h: Delete file.
10826 * config/djgpp/fnchange.lst: Update.
10827
f8453e34
JT
108282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10829
10830 * alpha-tdep.c (alpha_register_byte): New function.
10831 (alpha_register_raw_size): Ditto.
10832 (alpha_register_virtual_size): Ditto.
10833 (alpha_skip_prologue_internal): Renamed from
10834 alpha_skip_prologue.
10835 (alpha_skip_prologue): New version that calls
10836 alpha_skip_prologue_internal.
10837 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10838 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10839 second argument from alpha_skip_prologue.
10840 (REGISTER_BYTE): Use alpha_register_byte.
10841 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10842 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10843 (FRAMELESS_FUNCTION_INVOCATION): Use
10844 generic_frameless_function_invocation_not.
10845 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10846 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10847
52d9e613
AC
108482002-01-19 Andrew Cagney <ac131313@redhat.com>
10849
10850 * config/mips/xm-news-mips.h: Delete file.
10851 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10852
10853 * config/m88k/xm-m88k.h: Delete file.
10854 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10855 * config/m88k/xm-delta88v4.h: Ditto.
10856 * config/m88k/xm-delta88.h: Ditto.
10857
10858 * config/alpha/xm-fbsd.h: Delete file.
10859 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10860
10861 * config/sparc/xm-sparc.h: Delete file.
10862 * Makefile.in (xm-sun4os4.h): Delete dependency.
10863 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10864 * config/sparc/xm-sun4os4.h: Ditto.
10865 * config/sparc/xm-linux.h: Ditto.
10866
10867 * config/i386/xm-windows.h: Delete file.
10868
2d1b2124
AC
108692002-01-19 Andrew Cagney <ac131313@redhat.com>
10870
10871 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10872 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10873
ee1f65f0
JT
108742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10875
10876 * alpha-tdep.c (alpha_call_dummy_words): New.
10877 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10878 (CALL_DUMMY_P): Define.
10879 (CALL_DUMMY_WORDS): Define.
10880 (SIZEOF_CALL_DUMMY_WORDS): Define.
10881
98081e55
PB
108822002-01-19 Per Bothner <per@bothner.com>
10883
10884 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10885 isn't NULL, which can happen with some gcj-3.x-produced code.
10886
0d056799
JT
108872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10888
10889 * alpha-tdep.c (alpha_register_virtual_type): New function.
10890 (alpha_init_frame_pc_first): Ditto.
10891 (alpha_fix_call_dummy): Ditto.
10892 (alpha_store_struct_return): Ditto.
10893 (alpha_extract_struct_value_address): Ditto.
10894 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10895 alpha_register_virtual_type.
10896 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10897 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10898 alpha_extract_struct_value_address.
10899 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10900 (INIT_FRAME_PC): Use init_frame_pc_noop.
10901 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10902
4604bcad
MK
109032002-01-19 Mark Kettenis <kettenis@gnu.org>
10904
10905 * i386gnu-nat.c: Include "i386-tdep.h".
10906 (fetch_fpregs): Simplify code dealing with uninitialized floating
10907 point states such that it doesn't require FP7_REGNUM.
10908
140f9984
JT
109092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10910
abf22e64
AJ
10911 * alpha-tdep.c (frame_extra_info): New.
10912 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10913 frame->extra_info.
10914 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10915 (alpha_frame_saved_pc): Use frame->extra_info.
10916 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10917 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10918 (init_extra_frame_info): Rename to...
10919 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10920 (alpha_print_extra_frame_info): New function.
140f9984
JT
10921 (alpha_frame_locals_address): Ditto.
10922 (alpha_frame_args_address): Ditto.
abf22e64 10923 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10924 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10925 alpha_frame_args_address.
abf22e64 10926 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10927 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10928 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10929 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10930 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10931 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10932
d734c450
JT
109332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10934
10935 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10936 (alpha_cannot_fetch_register): Ditto.
10937 (alpha_cannot_store_register): Ditto.
10938 (alpha_register_convertible): Ditto.
10939 (alpha_use_struct_convention): Ditto.
10940 * config/alpha/tm-alpha.h: Update copyright years.
10941 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10942 (INNER_THAN): Use core_addr_lessthan.
10943 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10944 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10945 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10946 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10947 (FRAME_CHAIN): Remove unnecessary cast.
10948
b4ceaee6
AC
109492002-01-18 Andrew Cagney <ac131313@redhat.com>
10950
10951 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10952 obsolete.
10953
0a65a603
AC
109542002-01-18 Andrew Cagney <ac131313@redhat.com>
10955
10956 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10957 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10958 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10959 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10960 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10961 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10962 * x86-64-linux-nat.c: Ditto.
10963
636a6dfc
JT
109642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10965
abf22e64 10966 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10967 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10968 (REGISTER_NAME): Define.
10969
acceddb6
JT
109702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10971
10972 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10973
ec32e4be
JT
109742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10975
10976 * alpha-tdep.c: Update copyright years.
10977 (alpha_next_pc): New function.
10978 (alpha_software_single_step): Ditto.
10979 * config/alpha/tm-alpha.h: Add prototype for
10980 alpha_software_single_step.
10981
e771a871
JT
109822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10983
10984 * alphabsd-nat.c: Update copyright years.
10985 (fill_gregset): Use regcache_collect.
10986 (fill_fpregset): Likewise.
10987 (fetch_inferior_registers): Only fetch integer registers
10988 if requested to do so.
10989 (store_inferior_registers): Only store integer registers
10990 if requested to do so.
10991
7708fa01
AC
109922002-01-17 Andrew Cagney <ac131313@redhat.com>
10993
10994 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10995 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10996 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10997 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10998 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10999 * config/arm/linux.mh (XDEPFILES): Delete.
11000 * config/arm/nbsd.mh (XDEPFILES): Delete.
11001 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11002 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11003 * config/i386/i386m3.mh (XDEPFILES): Delete.
11004 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11005 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11006 * config/i386/fbsd.mh (XDEPFILES): Delete.
11007 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11008 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11009 * config/i386/i386v4.mh (XDEPFILES): Delete.
11010 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11011 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11012 * config/i386/i386aix.mh (XDEPFILES): Delete.
11013 * config/i386/go32.mh (XDEPFILES): Delete.
11014 * config/i386/cygwin.mh (XDEPFILES): Delete.
11015 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11016 * config/i386/i386mach.mh (XDEPFILES): Delete.
11017 * config/i386/i386v32.mh (XDEPFILES): Delete.
11018 * config/i386/linux.mh (XDEPFILES): Delete.
11019 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11020 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11021 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11022 * config/i386/i386sco.mh (XDEPFILES): Delete.
11023 * config/i386/i386v.mh (XDEPFILES): Delete.
11024 * config/i386/nbsd.mh (XDEPFILES): Delete.
11025 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11026 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11027 * config/i386/symmetry.mh (XDEPFILES): Delete.
11028 * config/i386/obsd.mh (XDEPFILES): Delete.
11029 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11030 * config/ia64/linux.mh (XDEPFILES): Delete.
11031 * config/ia64/aix.mh (XDEPFILES): Delete.
11032 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11033 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11034 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11035 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11036 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11037 * config/m68k/linux.mh (XDEPFILES): Delete.
11038 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11039 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11040 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11041 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11042 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11043 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11044 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11045 * config/m88k/delta88.mh (XDEPFILES): Delete.
11046 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11047 * config/m88k/m88k.mh (XDEPFILES): Delete.
11048 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11049 * config/mips/linux.mh (XDEPFILES): Delete.
11050 * config/mips/irix6.mh (XDEPFILES): Delete.
11051 * config/mips/irix5.mh (XDEPFILES): Delete.
11052 * config/mips/irix4.mh (XDEPFILES): Delete.
11053 * config/mips/irix3.mh (XDEPFILES): Delete.
11054 * config/mips/decstation.mh (XDEPFILES): Delete.
11055 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11056 (NATDEPFILES): Move core-aout.o to here.
11057 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11058 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11059 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11060 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11061 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11062 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11063 * config/pa/hpux11.mh (XDEPFILES): Delete.
11064 * config/powerpc/aix.mh (XDEPFILES): Delete.
11065 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11066 * config/powerpc/linux.mh (XDEPFILES): Delete.
11067 * config/romp/rtbsd.mh: Rename XDEPFILES.
11068 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11069 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11070 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11071 * config/s390/s390.mh (XDEPFILES): Delete.
11072 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11073 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11074 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11075 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11076 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11077 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11078 * config/sparc/linux.mh (XDEPFILES): Delete.
11079 * config/vax/vaxult.mh (XDEPFILES): Delete.
11080 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11081 * Makefile.in (DEPFILES): Remove XDEPFILES.
11082
375fc983
AC
110832002-01-17 Andrew Cagney <ac131313@redhat.com>
11084
11085 * utils.c (internal_verror): Fix comments, default is yes not no.
11086 Update queries to match. Default to quit and dump core.
11087
8926118c
AC
110882002-01-17 Andrew Cagney <ac131313@redhat.com>
11089
11090 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11091 copyright.
11092 * defs.h, event-top.c, gdbcmd.h: Ditto.
11093 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11094 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11095 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11096 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11097 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11098 * mi/mi-main.c:Ditto.
11099
11100 * stack.c, symfile.c: Update copyright.
11101
45b7b345
DJ
111022002-01-17 Daniel Jacobowitz <drow@mvista.com>
11103
db728ff7
DJ
11104 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11105 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11106 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11107 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11108
db728ff7
DJ
111092002-01-17 Daniel Jacobowitz <drow@mvista.com>
11110
11111 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11112 * gdbserver/low-lynx.c (myattach): Likewise.
11113 * gdbserver/low-nbsd.c (myattach): Likewise.
11114 * gdbserver/low-sim.c (myattach): Likewise.
11115 * gdbserver/low-sparc.c (myattach): Likewise.
11116 * gdbserver/low-sun3.c (myattach): Likewise.
11117
11118 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11119
db728ff7 11120 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11121 (main): Handle "--attach".
11122
8de3c354
AC
111232002-01-16 Andrew Cagney <ac131313@redhat.com>
11124
11125 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11126 maintainer.
11127
b0129042
DJ
111282002-01-15 Daniel Jacobowitz <drow@mvista.com>
11129
11130 * c-typeprint.c (is_type_conversion_operator): Add additional
11131 check for non-conversion operators.
11132
ba8679fb 111332002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11134
11135 * linux-proc.c: Add "info proc" command, a la procfs.c.
11136 (read_mapping): New function, abstract and re-use code.
11137 (linux_find_memory_regions): Use new func read_mapping.
11138 (linux_info_proc_cmd): New function, implement "info proc".
11139 (_initialize_linux_proc): Add new command "info proc".
11140
e4f9b4d5
MS
111412002-01-15 Michael Snyder <msnyder@redhat.com>
11142
11143 * symfile.c (generic_load): Use bfd_map_over_sections method
11144 instead of manipulating bfd structure members directly.
11145 (add_section_size_callback): New function, bfd sections callback
11146 used by generic_load.
11147 (load_sections_callback): New function, bfd sections callback
11148 used by generic_load.
11149
08cf96df
EZ
111502002-01-15 Elena Zannoni <ezannoni@redhat.com>
11151
abf22e64 11152 [Based on work by Jim Blandy]
08cf96df
EZ
11153 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11154 (builtin_type_vec128): Export.
11155 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11156 types.
11157 (builtin_type_vec128): New builtin type for 128 bit vector
11158 registers.
11159 (build_gdbtypes): Initialize builtin_type_v16qi and
11160 builtin_type_v8hi. Create the vec128 register builtin type
11161 structure.
11162 (build_builtin_type_vec128): New function.
abf22e64 11163 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11164 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11165 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11166 AltiVec register to new builtin type.
11167
d7242108
DJ
111682001-01-15 Daniel Jacobowitz <drow@mvista.com>
11169
11170 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11171 to make_cv_type.
11172
4ee3352d
AC
111732002-01-14 Andrew Cagney <ac131313@redhat.com>
11174
11175 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11176 CLEAN_UP_REGISTER_VALUE.
11177 * regcache.c (supply_register): Update only call.
11178
f015b2e7
AC
111792002-01-14 Andrew Cagney <ac131313@redhat.com>
11180
11181 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11182 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11183 a29k-*-vxworks* targets as obsolete.
11184
356ae49d
MS
111852002-01-14 Michael Snyder <msnyder@redhat.com>
11186
11187 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11188 until we can resolve portability issues.
11189 * gregset.h: Remove references to fpxregs.
11190 * gcore.c (gcore_command): Initialize note_sec to NULL.
11191
ade8f45e
AC
111922002-01-13 Andrew Cagney <ac131313@redhat.com>
11193
11194 * signals.c (target_signal_to_name): Rewrite. Only use
11195 signals[].name when in bounds and non-NULL.
abf22e64 11196
89c49e7a
AC
111972002-01-13 Andrew Cagney <ac131313@redhat.com>
11198
11199 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11200 * signals.c (target_signal_to_name): Verify that SIG is within the
11201 bounds of the signals array.
11202
4daa9f9f
AC
112032002-01-13 Andrew Cagney <ac131313@redhat.com>
11204
11205 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11206
ba4bbdcb
KS
112072002-01-13 Keith Seitz <keiths@redhat.com>
11208
11209 * stack.c (print_frame_info_base): Print the frame's pc
11210 only if when print_frame_info_listing_hook is not defined.
11211
575bbeb6
KS
112122002-01-13 Keith Seitz <keiths@redhat.com>
11213
11214 * varobj.c (varobj_set_value): Make sure that there were no
11215 errors evaluating the object before attempting to set its
11216 value.
11217 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11218 so this offset adjustment is no longer necessary.
11219 (create_child): Don't set the error flag if the child is
11220 a CPLUS_FAKE_CHILD.
11221 (value_of_child): If value_fetch_lazy fails, return NULL
11222 so that callers will be notified that an error occurred.
11223 (c_value_of_variable): Delay check of variable's validity
11224 until later. We actually want all structs and unions to have
11225 the value "{...}".
11226 Do not return "???" for variables which could not be evaluated.
11227 This error condition must be returned to the caller so that it
11228 can get the error condition from gdb.
11229 (cplus_name_of_child): Adjust index for vptr before figuring
11230 out the name of the child.
11231 (cplus_value_of_child): If a child's (real) parent is not valid,
11232 don't even bother trying to give a value for it. Just return
11233 an error. Change all instances in this function.
11234 (cplus_type_of_child): If our parent is one of the "fake"
11235 parents, we need to get at the type of the real parent, and
11236 derive the child's true type using this information.
11237
b76898ab
AC
112382002-01-13 Andrew Cagney <ac131313@redhat.com>
11239
11240 From 2002-01-09 John Marshall <johnm@falch.net>:
11241 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11242 sources.redhat.com, and tweak some related URLs which had
11243 suffered from linkrot.
11244
b6649e88
AC
112452002-01-13 Andrew Cagney <ac131313@redhat.com>
11246
11247 From Jeff law:
11248 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11249 structures passed in registers.
11250
82cc5033
EZ
112512002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11252
11253 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11254 white space which prevented compilation. Reported by DSK
11255 <dsk@student.unsw.edu.au>.
11256
ba5f2f8a
MS
112572002-01-11 Michael Snyder <msnyder@redhat.com>
11258
fbd35540
MS
11259 * symfile.c (build_section_addr_info_from_section_tab):
11260 Use bfd access method instead of manipulating bfd directly.
11261 (syms_from_objfile): Ditto.
11262 (simple_overlay_update_1): Ditto.
11263 (simple_overlay_update): Ditto.
11264 (generic_load): Ditto.
11265 (overlay_unmapped_address): FIXME comment, bfd access methods.
11266 (sections_overlap): FIXME comment, bfd access methods.
11267 (pc_in_mapped_range): FIXME comment, bfd access methods.
11268 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11269 (section_is_mapped): FIXME comment, bfd access methods.
11270 (section_is_overlay): FIXME comment, bfd access methods.
11271
ba5f2f8a
MS
11272 * symfile.c (generic_load): Whitespace and long line cleanups.
11273 Remove duplicate variable, change several local variables to
11274 more appropriate data types.
11275 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11276
17df2af6
AC
112772002-01-12 Andrew Cagney <ac131313@redhat.com>
11278
11279 From Peter Schauer:
11280 * language.c (longest_local_hex_string_custom): Use phex_nz to
11281 convert NUM to a hex string.
11282
ec920329
EZ
112832002-01-12 Elena Zannoni <ezannoni@redhat.com>
11284
11285 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11286 the function.
538a76d6 11287 Update Copyright year.
ec920329 11288
3abd2e01
AC
112892002-01-12 Andrew Cagney <ac131313@redhat.com>
11290
11291 * language.c (longest_raw_hex_string): Delete unused function.
11292
b21b22e0
PS
112932002-01-11 Petr Sorfa <petrs@caldera.com>
11294
11295 * MAINTAINERS (write-after-approval): Add myself.
11296 * dwarf2read.c (read_tag_string_type): Handling of
11297 DW_AT_byte_size.
11298 (read_tag_string_type): FORTRAN fix to prevent propagation of
11299 first string size.
11300 (set_cu_language): Handling of DW_LANG_Fortran95
11301
747fe712
RE
113022002-01-11 Richard Earnshaw <rearnsha@arm.com>
11303
11304 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11305 GETPID(inferior_ptid).
11306 (store_inferior_registers): Likewise.
11307
f1bea926
JM
113082002-01-10 Jason Merrill <jason@redhat.com>
11309
11310 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11311 Fix DW_OP_minus.
11312
ae940673
AC
113132002-01-10 Andrew Cagney <ac131313@redhat.com>
11314
11315 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11316 and bfd/elf32-sh-nbsd.c.
11317
00546b04
MS
113182002-01-10 Michael Snyder <msnyder@redhat.com>
11319
352ed7b4
MS
11320 * NEWS: Mention --pid and corefile/proc-id behavior change.
11321
c18be923
MS
11322 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11323 * gcore.c: Include cli/cli-decode.h instead of command.h.
11324
00546b04
MS
11325 * main.c (captured_main): Add new command line option "--pid".
11326 If the second command line argument (following the symbol-file)
11327 begins with a digit, try to attach to it before trying to open
11328 it as a corefile.
11329 (print_gdb_help): Document the "--pid" argument.
11330
db60ec62
EZ
113312002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11332
11333 * completer.c (command_completer): New function.
11334
11335 * completer.h <command_completer>: Add prototype.
11336
11337 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11338 completer for the "help" command.
11339
39c22d1a
JM
113402002-01-09 Jason Merrill <jason@redhat.com>
11341
11342 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11343
c564377f
MS
113442002-01-09 Michael Snyder <msnyder@redhat.com>
11345
975aec09
MS
11346 * i386-linux-nat.c (fill_fpxregset): Make global.
11347 (store_fpxregset): Ditto.
11348
db4a10fa
MS
11349 * gregset.h (gdb_fpxregset_t): Define.
11350 (supply_fpxregset): Prototype.
11351 (fill_fpxregset): Prototype.
11352
c564377f
MS
11353 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11354
c3d45d70
RE
113552002-01-09 Richard Earnshaw <rearnsha@arm.com>
11356
11357 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11358 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11359 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11360
fcc87af1
AC
113612002-01-09 Andrew Cagney <ac131313@redhat.com>
11362
11363 * MAINTAINERS: Update target maintainer rules so that any
11364 Maintainer can approve a tested patch for a maintenance-only
11365 target.
11366
dd96c05b
RE
113672002-01-09 Richard Earnshaw <rearnsha@arm.com>
11368
d4297db9 11369 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11370
d4297db9 11371 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11372 IN_SIGTRAMP.
11373
145fdc6e
MS
113742002-01-08 Michael Snyder <msnyder@redhat.com>
11375
11376 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11377 real name of the executable, rather than the /proc name.
11378
be4d1333
MS
113792002-01-03 Michael Snyder <msnyder@redhat.com>
11380
11381 Implement a "generate-core-file" command in gdb, save target state.
11382 * gcore.c: New file. Implement new command 'generate-core-file'.
11383 Save a corefile image of the current state of the inferior.
11384 * linux-proc.c: Add linux-specific code for saving corefiles.
11385 * target.h (struct target_ops): Add new target vectors for saving
11386 corefiles; to_find_memory_regions and to_make_corefile_notes.
11387 (target_find_memory_regions): New macro.
11388 (target_make_corefile_notes): New macro.
11389 * target.c (update_current_target): Inherit new target methods.
11390 (dummy_find_memory_regions): New place-holder method.
11391 (dummy_make_corefile_notes): New place-holder method.
11392 (init_dummy_target): Initialize new dummy target vectors.
11393 * exec.c (exec_set_find_memory_regions): New function.
11394 Allow the exec_ops vector for memory regions to be taken over.
11395 (exec_make_note_section): New function, target vector method.
11396 * defs.h (exec_set_find_memory_regions): Export prototype.
11397 * procfs.c (proc_find_memory_regions): New function, corefile method.
11398 (procfs_make_note_section): New function, corefile method.
11399 (init_procfs_ops): Set new target vector pointers.
11400 (find_memory_regions_callback): New function.
11401 (procfs_do_thread_registers): New function.
11402 (procfs_corefile_thread_callback): New function.
11403 * sol-thread.c (sol_find_memory_regions): New function.
11404 (sol_make_note_section): New function.
11405 (init_sol_thread_ops): Initialize new target vectors.
11406 * inftarg.c (inftarg_set_find_memory_regions): New function.
11407 Allow to_find_memory_regions vector to be taken over.
11408 (inftarg_set_make_corefile_notes): New function.
11409 Allow to_make_corefile_notes vector to be taken over.
11410 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11411 interface layer if not target_has_execution (may be a corefile).
11412 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11413 * config/sparc/sun4sol2.mh: Ditto.
11414 * config/alpha/alpha-linux.mh: Ditto.
11415 * config/arm/linux.mh: Ditto.
11416 * config/i386/x86-64linux.mh: Ditto.
11417 * config/ia64/linux.mh: Ditto.
11418 * config/m68k/linux.mh: Ditto.
11419 * config/mips/linux.mh: Ditto.
11420 * config/powerpc/linux.mh: Ditto.
11421 * config/sparc/linux.mh: Ditto.
11422
c6b92abd
MS
114232002-01-07 Michael Snyder <msnyder@redhat.com>
11424
11425 * arm-linux-nat.c: Remove references to regcache.c internal data
11426 (registers[] and register_valid[]).
11427
4b09dc8c
MS
114282002-01-07 Michael Snyder <msnyder@redhat.com>
11429
abf22e64
AJ
11430 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11431 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11432 symbol file and shlibs.
11433 * Makefile.in: Add rule for linux-proc.o.
11434 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11435 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11436 * config/arm/linux.mh: Ditto.
11437 * config/i386/linux.mh: Ditto.
11438 * config/i386/x86-64linux.mh: Ditto.
11439 * config/ia64/linux.mh: Ditto.
11440 * config/m68k/linux.mh: Ditto.
11441 * config/mips/linux.mh: Ditto.
11442 * config/powerpc/linux.mh: Ditto.
11443 * config/sparc/linux.mh: Ditto.
11444
c25b74ac
PM
114452002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11446
11447 * win32-nat.c: Add i386-tdep.h dependency.
11448
94cd915f
MS
114492002-01-07 Michael Snyder <msnyder@redhat.com>
11450
c7cccb76
MS
11451 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11452 instead of bfd_get_arch_size. Don't bail out just because
11453 there's no exec_bfd.
abf22e64 11454
34c0bd93
MS
11455 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11456 * p-valprint.c (pascal_object_print_value): Ditto.
11457 * somread.c (som_symtab_read): Ditto.
11458 * symfile.c (simple_free_overlay_region_table): Ditto.
11459 * valops.c (value_assign): Ditto.
11460
21c1c920
MS
11461 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11462 use tilde_expand and strerror for opening save-tracepoints file.
11463
5bbd998e
MS
11464 * thread-db.c (thread_db_new_objfile): Indendation fix.
11465
94cd915f
MS
11466 * infptrace.c (GDB_MAX_ALLOCA): New define.
11467 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11468 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11469 can be overridden with whatever value is appropriate to the host).
11470 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11471 alloca to allocate potentially large buffer.
11472 * rs6000-nat.c (child_xfer_memory): Ditto.
11473 * symm-nat.c (child_xfer_memory): Ditto.
11474 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11475
494e8a93
JSC
114762002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11477
11478 From Nick Clifton <nickc@redhat.com>
11479 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11480
d0e1d48e
MS
114812002-01-07 Michael Snyder <msnyder@redhat.com>
11482
abf22e64 11483 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11484 Don't use exec_bfd if it's NULL.
11485
290b2c7a
MK
114862002-01-06 Mark Kettenis <kettenis@gnu.org>
11487
abf22e64 11488 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11489
aef21287
AC
114902002-01-06 Andrew Cagney <ac131313@redhat.com>
11491
11492 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11493 * gnu-nat.c: Ditto.
11494
30efa627
AC
114952002-01-06 Andrew Cagney <ac131313@redhat.com>
11496
11497 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11498 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11499 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11500 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11501 z8k-coff have not been multi-arched. Update z8k-coff build
11502 status.
11503
9b4ff276
AC
115042002-01-06 Andrew Cagney <ac131313@redhat.com>
11505
11506 * MAINTAINERS: Mark a29k target as obsolete.
11507 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11508 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11509 comments.
11510 * NEWS: Note that a29k targets are obsolete.
11511 * a29k-tdep.c: Mark as obsolete.
11512 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11513 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11514 a29k-*-vxworks* targets as obsolete.
11515 * remote-adapt.c: Obsolete.
11516 * remote-eb.c: Obsolete.
11517 * remote-mm.c: Obsolete.
11518 * remote-udi.c: Obsolete.
11519 * config/a29k/a29k-udi.mt: Obsolete.
11520 * config/a29k/a29k.mt: Obsolete.
11521 * config/a29k/tm-a29k.h: Obsolete.
11522 * config/a29k/tm-vx29k.h: Obsolete.
11523 * config/a29k/vx29k.mt: Obsolete.
11524
a9011d31
AC
115252002-01-05 Andrew Cagney <ac131313@redhat.com>
11526
11527 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11528 with BFD_ENDIAN_BIG.
11529
9299404e
AC
115302002-01-05 Andrew Cagney <ac131313@redhat.com>
11531
11532 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11533 * configure, config.in: Re-generate.
11534 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11535 * defs.h: Do not include <endian.h>.
11536
7e89e357
JT
115372002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11538
11539 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11540 * config.in: Regenerate.
11541 * configure.in: Update copyright years.
11542 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11543 * configure: Regenerate.
11544 * i386bsd-nat.c: Update copyright years.
11545 (fill_gregset): Use regcache_collect.
11546 (fetch_inferior_registers): Only fetch integer registers
11547 if requested to do so. Add support for XMM registers
11548 using PT_GETXMMREGS.
11549 (store_inferior_registers): Only store integer registers
11550 if requested to do so. Add support for XMM registers
11551 using PT_SETXMMREGS.
11552 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11553 (store_inferior_registers): Remove.
11554 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11555 (fetch_elfcore_registers): New function.
11556 (i386nbsd_elfcore_fns): New.
11557 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11558 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11559 i386bsd-nat.o.
11560 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11561 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11562 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11563 * config/i386/tm-nbsd.h: Update copyright years.
11564 (HAVE_SSE_REGS): Define.
11565 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11566 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11567 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11568 (SIGCONTEXT_PC_OFFSET): Remove.
11569 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11570
a752853e
AC
115712002-01-05 Andrew Cagney <ac131313@redhat.com>
11572
11573 * configure.tgt: Remove powerpc-*-macos* target.
11574 * config/m68k/xm-mpw.h: Delete file.
11575 * config/xm-mpw.h: Delete file.
11576 * ser-mac.c: Delete file.
11577 * mpw-make.sed: Delete file.
11578 * mpw-config.in: Delete file.
11579 * mac-xdep.c: Delete file.
11580 * mac-gdb.r: Delete file.
11581 * mac-defs.h: Delete file.
11582 * mac-nat.c: Delete file.
11583 * config/powerpc/macos.mh: Delete file.
11584 * config/powerpc/macos.mt: Delete file.
11585 * config/powerpc/nm-macos.h: Delete file.
11586 * config/powerpc/tm-macos.h: Delete file.
11587 * source.c (openp, open_source_file): Remove obsolete code.
11588 * top.c (gdb_readline): Ditto.
11589 * utils.c (query): Ditto.
11590 * event-top.c (display_gdb_prompt): Ditto.
11591 * Makefile.in (ser-mac.o): Delete obsolete target.
11592 * NEWS: Update.
11593
d7449b42
AC
115942002-01-04 Andrew Cagney <ac131313@redhat.com>
11595
11596 * defs.h (BIG_ENDIAN): Delete macro definition.
11597 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11598 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11599 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11600 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11601 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11602 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11603 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11604 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11605 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11606 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11607 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11608 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11609 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11610 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11611 * gdbarch.c: Re-generate.
11612
356374e8
DJ
116132002-01-04 Daniel Jacobowitz <drow@mvista.com>
11614
11615 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11616 for core files.
11617
a2b8f8f8
JT
116182002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11619
11620 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11621
12466af9
AC
116222002-01-04 Andrew Cagney <ac131313@redhat.com>
11623
11624 * value.h (value_ptr): Delete typedef.
11625
3549ab40
JT
116262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11627
11628 * i386nbsd-nat.c: Update copyright years.
11629 Include i386-tdep.h.
11630
fedbd091
EZ
116312002-01-04 Elena Zannoni <ezannoni@redhat.com>
11632
11633 * stabsread.c: Update copyright years.
11634
11635 From Debashis Mahata <debashis.mahata@wipro.com>:
11636 (read_struct_fields): Deal with Sun C compiler erroneous stab
11637 output for structs and unions.
fec8b34f 11638 Fix PR gdb/269.
fedbd091 11639
eb43544b
DJ
116402002-01-04 Daniel Jacobowitz <drow@mvista.com>
11641
11642 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11643 prototype.
11644
1514d34e
DJ
116452002-01-04 Daniel Jacobowitz <drow@mvista.com>
11646
11647 * cp-abi.c: Fix whitespace.
11648 (baseclass_offset): New wrapper function.
11649 * cp-abi.h (baseclass_offset): Add prototype.
11650 (struct cp_abi_ops): Add baseclass_offset pointer.
11651
11652 * valops.c (vb_match): Move to...
11653 * gnu-v2-abi.c (vb_match): here.
11654 * valops.c (baseclass_offset): Move to...
11655 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11656
11657 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11658
11659 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11660 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11661 * hpacc-abi.c (init_hpacc_ops): Likewise.
11662
7f8c9282
DJ
116632002-01-04 Daniel Jacobowitz <drow@mvista.com>
11664
11665 * valops.c (find_overload_match): Accept obj as a
11666 reference parameter. Update it before returning.
11667 * value.h (find_overload_match): Update prototype.
11668 * eval.c (evaluate_subexp_standard): Pass object to
11669 find_overload_match by reference.
11670
f23631e4
AC
116712002-01-03 Andrew Cagney <ac131313@redhat.com>
11672
11673 * valarith.c: Replace value_ptr with struct value pointer. Remove
11674 register attribute from value declarations.
11675 * valops.c: Ditto.
11676 * value.h: Ditto.
11677 * scm-lang.c (scm_lookup_name): Ditto.
11678
79e10fab 116792002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11680
79e10fab
AC
11681 Abstract the functionality of iterating over mapped memory
11682 regions into a general purpose iterator function.
abf22e64 11683 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11684 iterator for memory sections.
11685 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11686 (solib_mappings_callback): New function, callback for above.
11687 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11688 (info_mappings_callback): New function, callback for above.
11689
11690 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11691
c5ad026a
MK
116922002-01-01 Mark Kettenis <kettenis@gnu.org>
11693
d2a7c97a
MK
11694 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11695 * i386-tdep.c: Include "elf-bfd.h".
11696 (process_note_abi_tag_sections): New function.
11697 (i386_gdbarch_init): Add code to recognize various OS/ABI
11698 combinations.
11699
c5ad026a
MK
11700 * maint.c (_initialize_maint_cmds): Add missing \ in
11701 string-literal.
11702
a1a5b71e 11703For older changes see ChangeLog-2001
c906108c
SS
11704\f
11705Local Variables:
11706mode: change-log
11707left-margin: 8
11708fill-column: 74
11709version-control: never
11710End:
This page took 0.833591 seconds and 4 git commands to generate.