* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
36dc181b
EZ
12002-10-02 Elena Zannoni <ezannoni@redhat.com>
2
3 * inferior.h (registers_info, stepi_command, nexti_command,
4 continue_command, interrupt_target_command): Export from infcmd.c.
5 * frame.h (args_info, selected_frame_level_changed_hook,
6 return_command): Export from stack.c.
7 * v850ice.c (stepi_command, nexti_command, continue_command): use
8 prototypes from inferior.h.
9 * tracepoint.c (registers_info, args_info, locals_info): Use
10 prototypes from frame.h and inferior.h.
11 * Makefile.in (mi-main.o): Add dependency on frame.h.
12
6f99cb26
AC
132002-10-02 Andrew Cagney <ac131313@redhat.com>
14
da3eff49
AC
15 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
16 value in register 3 adjusted by ppc_gp0_regnum.
17
6f99cb26
AC
18 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
19
da615bee
MM
202002-10-02 Marko Mlinar <markom@opencores.org>
21
22 * MAINTAINERS: Add myself to the Write After Approval list.
23
d154bee2
AO
242002-10-01 Alexandre Oliva <aoliva@redhat.com>
25
62a49b2c
AO
26 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
27 of the section for the N64 ABI, fixed.
28
d154bee2
AO
29 * config/mips/tm-irix6.h: Include solib.h.
30
ed348acc
EZ
312002-10-01 Elena Zannoni <ezannoni@redhat.com>
32
33 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
34 GNU operators.
35
da0f9dcd
AC
362002-10-01 Andrew Cagney <ac131313@redhat.com>
37
38 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
39 and that "mi0" syntax has been removed.
40
bdf64bac
DC
412002-09-30 David Carlton <carlton@math.stanford.edu>
42
43 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
44 * ppc-sysv-tdep.c: #include "gdb_string.h".
45 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
46 pacify GCC.
47
54c2a1e6
AC
482002-10-01 Andrew Cagney <ac131313@redhat.com>
49
50 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
51 "vrsave"'s register number.
52
cedea778
AC
532002-09-30 Andrew Cagney <ac131313@redhat.com>
54
55 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
56 use frame_unwind_signed_register to obtain the PC.
57 (mips_frame_chain): Handle a generic dummy frame.
58 (mips_init_extra_frame_info): When a generic dummy frame, don't
59 re-compute the frame base.
60 (mips_pop_frame): Handle generic dummy frames.
61 (mips_gdbarch_init): When generic dummy frames, set
62 use_generic_dummy_frames, push_dummy_frame to
63 generic_push_dummy_frame, pc_in_call_dummy to
64 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
65 generic_save_dummy_frame_tos.
66
68315eb8
AC
672002-09-30 Andrew Cagney <ac131313@redhat.com>
68
69 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
70 against TOP when TOP was explictly set.
71 (generic_push_dummy_frame): Set TOP to zero.
72
3b8630c3
EZ
732002-09-30 Elena Zannoni <ezannoni@redhat.com>
74
75 * event-loop.c (start_event_loop): Rename variable 'result' to
76 'gdb_result', to avoid conflicts with upcoming intepreters changes.
77
28ee05e9
KS
782002-09-30 Keith Seitz <keiths@redhat.com>
79
80 * gdb-events.sh (selected_thread_changed): New event.
81 * gdb-events.c: Regenerated.
82 * gdb-events.h: Regenerated.
83
6eecb1c8
HPN
842002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
85
86 * MAINTAINERS: Add self to Write After Approval list.
87
92df71f0
FN
882002-09-30 Fernando Nasser <fnasser@redhat.com>
89
3b8630c3
EZ
90 * disasm.c: New file.
91 * disasm.h: New file.
92df71f0
FN
92 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
93 (compare_lines): Ditto.
94 (dump_insns): Ditto.
3b8630c3
EZ
95 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
96 argument.
92df71f0 97 (do_assembly_only): Ditto.
3b8630c3
EZ
98 (do_disassembly): Renamed to gdb_disassembly and moved to
99 disasm.c. Sdded uiout argument.
100 * Makefile.in: Add new files. Reorder SFILES list. Update
101 dependencies. Include libgdb.a later in the insight executable.
92df71f0 102
0c22854d
AC
1032002-09-29 Andrew Cagney <ac131313@redhat.com>
104
105 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
106 bfd/elf64-alpha-fbsd.c.
107
e67f2023
AC
1082002-09-29 Andrew Cagney <ac131313@redhat.com>
109
110 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
111 i386gnu-tdep.c.
112
89396210
AC
1132002-09-29 Andrew Cagney <ac131313@redhat.com>
114
115 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
116 __FUNCTION__.
117 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
118 function name.
119 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
120 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
121 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
122 (S_msg_sig_post_reply): Ditto.
123
7079c36c
CV
1242002-09-28 Corinna Vinschen <vinschen@redhat.com>
125
89396210
AC
126 * sh-tdep.c (sh_use_struct_convention): Use definition according
127 to ABI.
7079c36c
CV
128 (sh_push_arguments): Store in register with correct endianess.
129 (sh_default_store_return_value): Ditto.
130 (sh_gdbarch_init): Set sizeof long double to 8.
131
975ac915
MK
1322002-09-27 Mark Kettenis <kettenis@gnu.org>
133
134 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
135 Fix some whitespace problems.
136
9bbe19fb
DC
1372002-09-27 David Carlton <carlton@math.stanford.edu>
138
139 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
140 (mcore-tdep.o): Ditto.
141 (ns32k-tdep.o): Ditto.
142 (ns32knbsd-tdep.o): Ditto.
143 (sh3-rom.o): Ditto.
144 (vax-tdep.o): Ditto.
145 * cris-tdep.c: #include "gdb_string.h"
146 * mcore-tdep.c: Ditto.
147 * ns32k-tdep.c: Ditto.
148 * ns32knbsd-tdep.c: Ditto.
149 * sh3-rom.c: Ditto.
150 * vax-tdep.c: Ditto.
151
43b2fdc7
DC
1522002-09-27 David Carlton <carlton@math.stanford.edu>
153
154 * config/djgpp/fnchange.lst: Add entries for
155 gdb/testsuite/gdb.c++/m-static files.
156
e8cfbbd9
JW
1572002-09-27 Jim Wilson <wilson@redhat.com>
158
159 * MAINTAINERS: Add myself to the Write After Approval list.
160
43b2fdc7 1612002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
162
163 * mips-tdep.c (find_proc_desc): Initialize startaddr.
164
165
9f3b7f07
AC
1662002-09-26 Andrew Cagney <ac131313@redhat.com>
167
168 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
169 frame.
170
11269d7e
AC
1712002-09-26 Andrew Cagney <ac131313@redhat.com>
172
173 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
174 (rs6000_struct_return_address): Delete variable.
175 (rs6000_store_struct_return): Update.
176 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
177 deprecated_extract_struct_value_address.
178 (rs6000_frame_align): New function.
179 (rs6000_gdbarch_init): Set frame_align.
180
f15ab4a7
AC
1812002-09-26 Andrew Cagney <ac131313@redhat.com>
182
183 From Grace Sainsbury <graces@redhat.com>:
184 * Makefile.in (gdbtk-main.o): New target.
185 (gdb.o): New target.
186 (main_h): Define.
187 (main.o): Update dependencies.
188 (gdb$(EXEEXT)): Add gdb.o.
189 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
190 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
191 (SUBDIR_GDBTK_CLEAN): Set.
192 (install-gdbtk): Install the insight binary.
193 (uninstall-gdbtk): New target.
194 (all-gdbtk, clean-gdbtk): New rule.
195 * top.c (use_windows): Default to zero.
196 * main.c: Include "main.h".
197 (main): Delete.
198 (struct captured_main_args): Delete.
199 (gdb_main): New function.
200 * main.h: New file.
201 * gdb.c: New File.
202
e36180d7
AC
2032002-09-25 Andrew Cagney <cagney@redhat.com>
204
205 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
206 (frame_map_regnum_to_name): New function.
207 (frame_map_name_to_regnum): New function.
208 * frame.h (frame_map_name_to_regnum): Declare.
209 (frame_map_regnum_to_name): Declare.
210 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
211 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
212 * parse.c: Do not include "builtin-regs.h".
213 (target_map_name_to_register): Delete function.
214 (write_dollar_variable): Use frame_map_name_to_regnum.
215 * parser-defs.h (target_map_name_to_register): Delete declaration.
216 * expprint.c: Include "frame.h".
217 (print_subexp): Use frame_map_regnum_to_name.
218 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
219 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
220
8b69000d
AC
2212002-09-25 Andrew Cagney <ac131313@redhat.com>
222
223 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
224 wasn't saved, and the next innermost frame is a dummy, return the
225 dummy frame's link register.
226
046ca86a
JB
2272002-09-24 Jim Blandy <jimb@redhat.com>
228
229 Fix from Paul Breed:
230 * main.c (captured_main): Add a `break' after the case for 'b'.
231
94b66fa7
KS
2322002-09-24 Keith Seitz <keiths@redhat.com>
233
234 * varobj.c (c_type_of_child): Use get_target_type instead
235 of TYPE_TARGET_TYPE.
236
c214a6fd
FN
2372002-09-22 Fernando Nasser <fnasser@redhat.com>
238
53cb0458
FN
239 * source.c (get_current_or_default_source_symtab_and_line): Remove
240 function.
241 (set_default_source_symtab_and_line): New function. Attempts to
242 determine a source file to list lines from if one is not currently
243 defined.
244 (get_current_source_symtab_and_line): Initialize sal.pc and
245 sal.end fields.
246 (set_current_source_symtab_and_line): Mark argument as const.
247 * source.h: Update declarations and comments.
248 * linespec.c (decode_line_1): Replace call to removed routine above.
249 * stack.c (print_frame_info_base): Ditto.
250 * cli/cli-cmds.c (edit_command): Ditto.
251 (list_command): Ditto.
252
2532002-09-22 Fernando Nasser <fnasser@redhat.com>
254
255 * source.c (get_current__or_default_source_symtab_and_line): Initialize
256 sal.pc and sal.end fields.
c214a6fd
FN
257 (get_current_or_default_source_symtab_and_line): Ditto.
258 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
259 so we do not cause a new source symtab to be searched for (reverting an
260 unintentional change from the 2002-09-20 patch).
261 * scm-lang.c (scm_unpac): Ditto.
262
cc3b68a5
AC
2632002-09-21 Andrew Cagney <cagney@redhat.com>
264
265 * complaints.c (symfile_explanations): Remove new-line from
266 ``isolated_message''.
267 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
268 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
269
5835abe7
NC
2702002-09-20 Nick Clifton <nickc@redhat.com>
271
272 * NEWS: Announce that V850EA ISA is no longer supported.
273 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
274
a15ef5f5
DC
2752002-09-20 David Carlton <carlton@math.stanford.edu>
276
06ba1b39
DC
277 * Makefile.in (c-lang.o): Correct dependencies.
278 (utils.o): Gather dependencies.
279 (charset.o): Move.
a15ef5f5
DC
280 * c-lang.c: #include "gdb_string.h"
281
87885426
FN
2822002-09-20 Fernando Nasser <fnasser@redhat.com>
283
284 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
285 * cli/cli-cmds.c (list_command): New function. Implements the new
286 cli edit command.
287 (_init_cli_cmds): Add new command definition.
288 * gdb.1: Document edit command.
289 * doc/gdb.texinfo: Document edit command.
290
2912002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
292
293 * source.c: Make global variables current_source_symtab and
294 current_source_line static.
295 (list_command): Moved to cli/cli-cmds.c.
296 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
297 (get_first_line_listed): New accessor function.
298 (get_lines_to_list): New accessor function.
299 (get_current_source_symtab_and_line): New function. Retrieves the
300 position in the source code that we consider current.
301 (get_current_or_default_source_symtab_and_line): New function.
302 Like the above but attempts to determine a default position if one
303 is not currently defined.
304 (set_current_source_symtab_and_line): New function. Sets the source
305 code position considered current and returns the previously set one.
306 (clear_current_source_symtab_and_line): Reset stored information about
307 a current source line.
308 (_initialize_source): Remove registration for the "list" command and
309 its alias.
310 * source.h: Add declarations for the new functions above.
311 * symtab.h: Remove declarations for the global variables mentioned
312 above.
313 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
314 obtain current source line.
315 * linespec.c (decode_line_1): Ditto.
316 * macroscope.c (default_macro_scope): Ditto.
317 * scm-lang.c (scm_unpac): Ditto.
318 * stack.c (print_frame_info_base): Ditto.
319 * symfile.c (clear_symtab_users): Ditto.
320 * symtab.c (decode_line_spec): Ditto.
321 * cli/cli-cmds.c (list_command): Moved here from source.c.
322 (ambiguous_line_spec): Moved here from source.c.
323 (_init_cli_cmds): Add definition for "list" and its alias.
324 * Makefile.in: Update dependencies.
325
ddd216ea
CV
3262002-09-20 Corinna Vinschen <vinschen@redhat.com>
327
328 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
329 with what gcc thinks is correct.
330
6d305052
CV
3312002-09-20 Corinna Vinschen <vinschen@redhat.com>
332
333 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
334 multiple register push instruction.
335
234b45d4
KB
3362002-09-19 Jim Blandy <jimb@redhat.com>
337
338 Add support for distinct host and target character sets.
339 * charset.c, charset.h: New files.
340 * c-exp.y: #include "charset.h".
341 (yylex): Convert character and string literals to the target
342 character set, before returning them as the semantic value of the
343 token.
344 * c-lang.c: #include "charset.h".
345 (c_emit_char): Use charset-specific methods to recognize
346 characters with backslash escape forms, to decide which characters
347 to print literally and which to print using numeric escape
348 sequences, and to convert target characters to host characters
349 before printing.
350 * utils.c: #include "charset.h".
351 (no_control_char_error): New function.
352 (parse_escape): Use charset-specific methods to recognize
353 backslash escapes, parse `control character' notation, and convert
354 characters from the host character set to the target character set.
355 * configure.in: Set the default host character set.
356 Check where to find iconv, and what its argument types might be.
357 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
358 * Makefile.in (SFILES): List charset.c.
359 (COMMON_OBS): List charset.o.
360 (charset.o): New rule.
361 (charset_h): New header dependency variable.
362 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
363 (LIBICONV): New variable, set by configure.
364 (CLIBS): Include $(LIBICONV) here.
365 * aclocal.m4, config.in, configure: Regenerated.
366
525d6a61
JB
3672002-09-19 Joel Brobecker <brobecker@gnat.com>
368
369 * ada-exp.y: Add missing semicolons to end rules. Fixes a
370 bison 1.35 warning.
371
3ed93867
RE
3722002-09-19 Richard Earnshaw <rearnsha@arm.com>
373
374 * gdb_mbuild.sh: New file.
375
437666f8
AC
3762002-09-19 Andrew Cagney <ac131313@redhat.com>
377
378 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
379
389e51db
AC
3802002-09-18 Andrew Cagney <ac131313@redhat.com>
381
382 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
383 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
384 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
385 valops.c, value.h: Revert previous change.
386
3b4efeaa
MS
3872002-09-18 Michael Snyder <msnyder@redhat.com>
388
389 Preliminary support for Objective-C:
390 * defs.h (language_objc): New enum value.
391 (puts_filtered_tabular): Declaration only, exported from utils.c.
392 (skip_quoted): Delete, declared in completer.h.
393 * c-exp.y: Include completer.h.
394 * p-exp.y: Ditto.
395 * jv-exp.y: Ditto.
396 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
397 New operator enum values.
398 * language.h (CAST_IS_CONVERSION): Test for language_objc.
399 * language.c (binop_result_type): Handle language_objc case.
400 (integral_type, character_type, string_type, boolean_type,
401 structured_type, binop_type_check): Ditto.
402 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
403 (struct objc_specific): Add to general_symbol_info.
404 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
405 (SYMBOL_DEMANGLED_NAME): Handle objc case.
406 * parser-defs.h (struct objc_class_str): New struct type.
407 (start_msglist, end_msglist, add_msglist): Declaration only,
408 exported from objc-lang.c.
409 * value.h (value_of_local, value_nsstring,
410 call_function_by_hand_expecting_type): Exported from valops.c.
411 * valops.c (find_function_addr): Export.
412 (call_function_by_hand_expecting_type): New function.
413 (value_of_local): New function.
414 * symfile.c (init_filename_language_table): Add ".m" extension
415 for Objective-C.
416 * utils.c (puts_filtered_tabular): New function.
417 (fprintf_symbol_filtered): Add objc demangling support (disabled).
418 (set/show demangle): Extend help-string to refer to ObjC.
419 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
420 * stabsread.c (symbol_reference_defined): Objective-C symbols
421 may contain colons: make allowances when scanning stabs strings
422 for colons.
423 (objc_find_colon): New function.
424 * printcmd.c (address_info): If language == objc then print
425 "self" instead of "this".
426 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
427 OP_NSSTRING, and OP_SELF.
428 (prefixify_subexp): Ditto.
429 * source.c (print_source_lines): Mention objc in comment.
430 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
431 method names.
432
b9caf505
AC
4332002-09-18 Andrew Cagney <ac131313@redhat.com>
434
435 * complaints.h: Update copyright.
436 (struct complaints): Declare.
437 (struct complaint): Make `message' constant.
438 (internal_complaint): Declare.
439 (complaint): Declare.
440 (complaint_root): Delete declaration.
441 (symfile_complaints): Delete declaration.
442 (struct complaints): Add opaque declaration.
443 (clear_complaints): Add a complaints parameter.
444 * complaints.c: Update copyright.
445 (enum complaint_series): Define.
446 (complaint_root): Delete.
447 (struct complaints): Define.
448 (complaint_sentinel, symfile_complaint_book): New variables.
449 (symfile_explanations, symfile_complaints): New variables.
450 New variables.
451 (get_complaints): New function.
452 (vcomplaint): New function.
453 (complaint): New function.
454 (internal_complaint): New function.
455 (complain): Call vcomplain with symfile_complaint.
456 (clear_complaints): Rewrite.
457 (_initialize_complaints): Use add_setshow_command.
458 * Makefile.in (complaints.o): Update dependencies.
459 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
460 to call to clear_complaints.
461 (new_symfile_objfile, reread_symbols): Ditto.
462 (oldsyms_complaint): Delete.
463 (empty_symtab_complaint, unknown_option_complaint): Delete.
464 (free_named_symtabs): Use complaint instead of complain.
465
d2e6263c
MS
4662002-09-18 Michael Snyder <msnyder@redhat.com>
467
5fb2031a
AC
468 Contributed by Apple Computer, Inc. Merged with current sources
469 by Adam Fedor <fedor@doc.com> [cagney].
470
d2e6263c
MS
471 * objc-lang.c: First clean-up round: comments, indentation.
472 * objc-lang.h: Ditto.
473 * objc-lang.y: Ditto.
474
dec43320
AC
4752002-09-18 Andrew Cagney <ac131313@redhat.com>
476
477 * maint.c (maintenance_internal_error): Print the parameter as the
478 error message.
479 (maintenance_internal_warning): New function.
480 (_initialize_maint_cmds): Add command `maint internal-warning'.
481
482 * defs.h (internal_warning, internal_vwarning): Declare.
483 * utils.c (struct internal_problem): Define.
484 (internal_vproblem): New function.
485 (internal_warning): New function.
486 (internal_vwarning): New function.
487 (internal_warning_problem, internal_error_problem): New variables.
488 (internal_verror): Just call internal_vproblem.
489
b81654f1
MS
4902002-09-18 Michael Snyder <msnyder@redhat.com>
491
492 * objc-lang.c: New file, support for Objective-C.
493 Preliminary check-in, not yet integrated into gdb.
494 * objc-lang.h: New file.
495 * objc-exp.y: New file.
496
0542c381
AC
4972002-09-18 Andrew Cagney <ac131313@redhat.com>
498
7bda5e4a
AC
499 * infrun.c (signal_stop_update): Convert definition to ISO C.
500 (signal_print_update): Ditto.
501 (signal_pass_update): Ditto.
502 * inflow.c (terminal_save_ours): Ditto.
503
5247b418
AC
504 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
505 comments.
506
fc60962c
AC
507 * config/djgpp/fnchange.lst: Handle name clashes between
508 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
509 bfd/coff-tic80.c.
510
0542c381
AC
511 * i386-linux-tdep.h: Fix tipo.
512
5b924b9b
AF
5132002-09-18 Adam Fedor <fedor@gnu.org>
514
515 * MAINTAINERS: Add myself to the Write After Approval list.
516
5afc051b
JB
5172002-09-18 Jim Blandy <jimb@redhat.com>
518
519 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
520 texthigh and textlow to reader-specific structs caused
521 objfile_relocate to miss them. This is fixable, but the work that
522 the change was supposed to prepare GDB for never got done anyway.
523
eb944380
DC
5242002-09-18 David Carlton <carlton@math.stanford.edu>
525
526 * MAINTAINERS: Alphabetize Write After Approval list.
527
948e66d9
DJ
5282002-09-18 Daniel Jacobowitz <drow@mvista.com>
529
530 Fix PR gdb/709
531 * values.c (value_static_field): Call read_var_value.
532
dc604539
AC
5332002-09-18 Andrew Cagney <ac131313@redhat.com>
534
535 * valops.c (hand_function_call): Align the initial stack pointer
536 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
537 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
538 return value.
539 * mips-tdep.c (mips_frame_align): New function.
540 (mips_gdbarch_init): Set frame_align.
541 * gdbarch.sh (FRAME_ALIGN): New method.
542 * gdbarch.h, gdbarch.c: Re-generate.
543
cb7e422f
ML
5442002-09-18 Michal Ludvig <mludvig@suse.cz>
545
546 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
547 registers.
548
a094c6fb
AC
5492002-09-17 Andrew Cagney <ac131313@redhat.com>
550
551 * NEWS: Mention that MIPS $fp behavior changed.
552 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
553 reference to FP_REGNUM.
554 (mipsnbsd_cannot_store_register): Ditto.
555 * mips-linux-nat.c: Update copyright.
556 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
557 (mips_linux_cannot_store_register): Ditto.
558 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
559 * config/mips/tm-mips.h: Update copyright.
560 (FP_REGNUM): Delete macro.
561 (MIPS_REGISTER_NAMES): Replace "fp" with "".
562 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
563 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
564 (mips_r3041_reg_names, mips_r3051_reg_names)
565 (mips_r3081_reg_names): Replace "fp" with "".
566 Fix PR gdb/480.
567
45cf40d1
TR
5682002-09-17 Theodore A. Roth <troth@verinet.com>
569
570 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
571 generic_read_register_dummy() (PR gdb/703).
572 (avr_push_return_address): #if 0 out unused vars.
573 (avr_gdbarch_init): Enable use of avr_push_return_address().
574
c7e701b5
MS
5752002-09-17 Michael Snyder <msnyder@redhat.com>
576
d76ba2a5 577 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
578 RTE will take care of it.
579
20bcf01c
AC
5802002-09-17 Andrew Cagney <ac131313@redhat.com>
581
582 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
583 invalid, return SP_REGNUM.
584
009a9971 5852002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
586
587 * mips-tdep.c (mips_pop_frame): Read saved values of floating
588 point registers without sign extension.
589
135c175f
AC
5902002-09-17 Andrew Cagney <cagney@redhat.com>
591
592 * blockframe.c (deprecated_read_register_dummy): Rename
593 generic_read_register_dummy.
594 * frame.c (frame_unwind_signed_register): New function.
595 (frame_unwind_unsigned_register): New function.
596 * frame.h (frame_unwind_signed_register): Declare.
597 (frame_unwind_unsigned_register): Declare.
598 (deprecated_read_register_dummy): Rename
599 generic_read_register_dummy.
600
601 * h8300-tdep.c (h8300_frame_chain): Update.
602 (h8300_frame_saved_pc): Update.
603 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
604 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
605 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
606 (s390_frame_chain): Update.
607 * v850-tdep.c (v850_find_callers_reg): Update.
608 (v850_frame_saved_pc): Update.
609 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
610 (m32r_find_callers_reg): Update.
611 (m32r_frame_saved_pc): Update.
612 * sh-tdep.c (sh_find_callers_reg): Update.
613 (sh64_get_saved_pr): Update.
614 (sh_init_extra_frame_info): Update.
615 (sh_init_extra_frame_info): Update.
616 (sh64_init_extra_frame_info): Update.
617 (sh64_init_extra_frame_info): Update.
618 * mcore-tdep.c (mcore_find_callers_reg): Update.
619 (mcore_frame_saved_pc): Update.
620 (mcore_init_extra_frame_info): Update.
621 * i386-tdep.c (i386_frame_saved_pc): Update.
622 * ia64-tdep.c (ia64_frame_saved_pc): Update.
623 (ia64_init_extra_frame_info): Update.
624 (ia64_init_extra_frame_info): Update.
625 * d10v-tdep.c (d10v_frame_saved_pc): Update.
626 * cris-tdep.c (cris_init_extra_frame_info): Update.
627 * avr-tdep.c (avr_frame_chain): Update.
628 (avr_init_extra_frame_info): Update.
629 (avr_frame_saved_pc): Update.
630 * arm-tdep.c (arm_find_callers_reg): Update.
631 (arm_init_extra_frame_info): Update.
632 (arm_frame_saved_pc): Update.
633
a741e514
TT
6342002-09-17 Tom Tromey <tromey@redhat.com>
635
636 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
637 is "'".
638
d1a8e808
CV
6392002-09-17 Corinna Vinschen <vinschen@redhat.com>
640
641 * MAINTAINERS: Remove "non multi-arched" text from h8300.
642 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
643 NEXT_PROLOGUE_INSN.
644 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
645 NEXT_PROLOGUE_INSN.
646
d9025a18
JB
6472002-09-16 Joel Brobecker <brobecker@gnat.com>
648
649 * osfsolib.c: Remove file, replaced by solib-osf.c.
650 * Makefile.in: Remove compilation rules for osfsolib.c.
651
1b2ef1b6
DC
6522002-09-16 David Carlton <carlton@math.stanford.edu>
653
654 * cp-valprint.c (cp_print_class_method): Correct args to
655 check_stub_method_group.
656
928e48af
CV
6572002-09-16 Corinna Vinschen <vinschen@redhat.com>
658
659 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
660 `set architecture'. Unify naming convention of functions.
661 (h8300_skip_prologue): Improve prologue analysis.
662 (h8300_push_arguments): Rewritten to more closely match GCC's
663 bizarre argument-passing behavior, along with the comment describing
664 said behavior.
665 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
666 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
667 sim, remote-e7000.c, remote-hms.c and remote.c
668
5e3397bb
MK
6692002-09-15 Mark Kettenis <kettenis@gnu.org>
670
671 * i386-tdep.c (gdb_print_insn_i386): Removed.
672 (i386_print_insn): New function.
673 (i386_gdbarch_init): Set print_insn to i386_print_insns.
674 (_initialize_i386_tdep): Don't initialize tm_print_insn and
675 tm_print_insn_info.
676
f710f4fc
MK
6772002-09-14 Mark Kettenis <kettenis@gnu.org>
678
679 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
680 zero.
681
db54fef4
CV
6822002-09-14 Corinna Vinschen <vinschen@redhat.com>
683
684 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
685 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
686 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
687
2becadee
CF
6882002-09-13 Christopher Faylor <cgf@redhat.com>
689
690 * win32-nat.c (child_create_inferior): Honor 'tty' command.
691
de17c821
DJ
6922002-09-13 Daniel Jacobowitz <drow@mvista.com>
693
694 * gdbtypes.c (check_stub_method): Make static.
695 (check_stub_method_group): New function.
696 * gdbtypes.h: Update prototypes.
697 * cp-support.c: New file.
698 * cp-support.h: New file.
699
700 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
701 (update_method_name_from_physname): New function.
702 (read_member_functions): Correct method names for operators
703 and v3 constructors/destructors. Separate v2 constructors and
704 destructors.
705 * Makefile.in (stabsread.o): Update dependencies.
706 (SFILES): Add cp-support.c.
707 (COMMON_OBS): Add cp-support.o.
708 (cp_support_h, cp-support.o): Add.
709
710 * cp-valprint.c (cp_print_class_method): Call
711 check_stub_method_group instead of check_stub_method. Remove
712 extraneous QUITs.
713 * p-valprint.c (pascal_object_print_class_method): Likewise.
714 * valops.c (search_struct_method): Likewise.
715 (find_method_list, value_struct_elt_for_reference): Likewise.
716
e76cff22
AC
7172002-09-13 Andrew Cagney <cagney@redhat.com>
718
719 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
720 * gdbarch.h, gdbarch.c: Regenerate.
721
905abb3f
AC
7222002-09-13 Andrew Cagney <ac131313@redhat.com>
723
724 * frame.c (find_saved_register): Delete function.
725 * frame.h (find_saved_register): Delete declaration.
726 Fix PR gdb/631.
727
64159455
AC
728Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
729
730 * mips-tdep.c (read_next_frame_reg): Re-hack using
731 frame_register_unwind.
732
795e1e11
AC
733Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
734
735 * mips-tdep.c (mips_get_saved_register): Re-hack using
736 frame_register_unwind.
737
5720643c
JB
7382002-09-12 Joel Brobecker <brobecker@gnat.com>
739
740 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
741 vector. Will be useful for Interix.
742 * gdbarch.h, gdbarch.c: Regenerate.
743
744 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
745 name of the malloc function by NAME_OF_MALLOC.
746
3bada2a2
JB
7472002-09-12 Joel Brobecker <brobecker@gnat.com>
748
749 * value.h (find_function_in_inferior): Add const keyword to
750 one of the parameters. Allows us to invoke this function with
751 a const char *.
752 * valops.c (find_function_in_inferior): Likewise.
753
3db26b01
JB
7542002-09-12 Joel Brobecker <brobecker@gnat.com>
755
756 * exec.c (xfer_memory): Fix compilation warning with old versions
757 of GCC.
758 * tracepoint.c (trace_find_tracepoint_command): Likewise.
759
17c5ed2c
DC
7602002-09-12 David Carlton <carlton@math.stanford.edu>
761
762 * symtab.h: Run through gdb_indent.h.
763 Add 2002 to Copyright year list.
764
ecd1107e
AM
7652002-09-12 Alan Modra <amodra@bigpond.net.au>
766
767 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
768 mach constants.
769 * MAINTAINERS: Add myself to write after approval list.
770
e64f66d1
JB
7712002-09-11 J. Brobecker <brobecker@gnat.com>
772
773 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
774
f9395794
JB
7752002-09-11 J. Brobecker <brobecker@gnat.com>
776
777 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
778 Interix.
779
1a303dec
MS
7802002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
781
782 * procfs.c (do_detach): Clear current signal, not just fault.
783 Corrects problem with breakpoint trap signal leaking to detached
784 process on Tru64.
785
c0219d42
MS
7862002-09-10 Michael Snyder <msnyder@redhat.com>
787
788 * buildsym.c (finish_block): Protect against null pointer.
789
9d84ac84
AC
7902002-09-10 Andrew Cagney <cagney@redhat.com>
791
792 * infcmd.c (default_print_registers_info): Send all output to
793 ``file'' instead of ``gdb_stdout''.
794
77d8f2b4
MS
7952002-09-10 Michael Snyder <msnyder@redhat.com>
796
797 * mips-tdep.c (mips_extract_struct_value_address): Make val a
798 LONGEST, and use signed register read (addresses are sign-
799 extended for mips).
800
99656a61
SC
8012002-09-10 Stephane Carrez <stcarrez@nerim.fr>
802
803 * event-loop.c (gdb_do_one_event): Make public.
804 * event-loop.h (gdb_do_one_event): Declare.
805
da12f4d8
JL
8062002-09-10 Jeff Law <law@redhat.com>
807
808 * infttrace.c (child_resume): Simplify and rework to avoid
809 TT_PROC_CONTINUE.
810
d0aee0c4
FF
8112002-09-09 Fred Fish <fnf@intrinsity.com>
812
813 * printcmd.c (print_scalar_formatted): "len" is the number of
814 target bytes, NOT the number of target bits.
815
7cb3ec5e
EZ
8162002-09-09 Elena Zannoni <ezannoni@redhat.com>
817
818 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
819 * top.c (init_main): Set rl_terminal_name.
820
4dc81987
AS
8212002-09-08 Aidan Skinner <aidan@velvet.net>
822
823 * ada-lang.c (ada_array_bound, ada_type_match,
824 _initialize_ada_language): Fix K&R definitions.
825 * ada-tasks.c (get_current_task): Fix K&R definitions.
826 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
827
842330b4
CF
8282002-09-07 Christopher Faylor <cgf@redhat.com>
829
830 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
831 Add XP.
832
43156d82
MK
8332002-09-06 Mark Kettenis <kettenis@gnu.org>
834
66da5fd8
MK
835 * i386-tdep.c (i386_register_virtual_type,
836 i386_register_convertible, i386_register_convert_to_virtual,
837 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
838 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
839 (i386_gdbarch_init): Fix comment. Add comments on calls that set
840 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
841 Don't set push_arguments twice.
842
4b218c18
MK
843 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
844 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
845 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
846 sigtramp_end to NULL.
847 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
848 defines.
849 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
850
4cc314d5
MK
851 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
852 whitespace.
853
43156d82
MK
854 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
855 * gdbarch.h, gdbarch.c: Re-generate.
856 * blockframe.c (find_pc_sect_partial_function): Convert to use
857 SIGTRAMP_START_P predicate.
858
6672060b
MS
8592002-09-05 Michael Snyder <msnyder@redhat.com>
860
a90c3637
MS
861 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
862 generic_dummy_frame method and old method. Also distinguish
863 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 864 (arm_extract_return_value): Use new regcache method.
a90c3637 865
6672060b
MS
866 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
867 adjustment that doesn't conform to the ABI.
868 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
869 saved regcache, not from current regcache.
870
299ffc64
AC
8712002-09-05 Andrew Cagney <ac131313@redhat.com>
872
873 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
874 * README: Update.
875
a3a2ee65
JT
8762002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
877
878 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
879 if arm_apcs_32 is false.
880
2bc7eea9
AC
8812002-09-04 Andrew Cagney <ac131313@redhat.com>
882
883 GDB 5.3 branch created.
884
8a55a7c5
TR
8852002-09-03 Theodore A. Roth <troth@verinet.com>
886
887 * gdb/avr-tdep.c (avr_gdbarch_init): Use
888 generic_unwind_get_saved_register.
889
e26fb1d7
DC
8902002-09-03 David Carlton <carlton@math.stanford.edu>
891
892 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
893 argument (PR gdb/653). Update call to smash_to_method_type.
894 (read_structure_scope): Update call to dwarf2_add_member_fn.
895
30d52491
ML
8962002-09-03 Michal Ludvig <mludvig@suse.cz>
897
898 * x86-64-linux-tdep.c: Include gdb_string.h
899 * x86-64-linux-nat.c: Ditto.
900
06891d83
JT
9012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
902
903 * ada-exp.y (yyname, yyrule): Remap global variables that appear
904 when YYDEBUG is set to 1.
905 * c-exp.y: Likewise.
906 * f-exp.y: Likewise.
907 * jv-exp.y: Likewise.
908 * m2-exp.y: Likewise.
909 * p-exp.y: Likewise.
910
7d400e77
JT
9112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
912
913 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
914 dependency list.
915 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
916 solib_svr4_fetch_link_map_offsets to
917 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
918 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
919 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
920 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
921 solib-svr4.o, and solib-legacy.o.
922 * config/i386/tm-nbsd.h: Include solib.h.
923
704a27c4
JT
9242002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
925
926 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
927 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
928 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
929 comment noting that this needs its own target configuration.
930 * config/i386/nbsd.mt: New file.
931 * config/i386/nbsdaout.mt: Remove.
932 * config/i386/nbsdelf.mt: Ditto.
933 * config/i386/tm-nbsdaout.h: Ditto.
934
d66198e1
JT
9352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
936
937 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
938 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
939 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
940 tdep->sigtramp_end.
941 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
942 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
943 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
944
3cac699e
JT
9452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
946
947 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
948 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
949 * i386-tdep.h (i386bsd_init_abi): New prototype.
950 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
951 function declaration.
952 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
953 for NetBSD-a.out or NetBSD-ELF.
954 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
955 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
956 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
957 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
958 and nbsd-tdep.h.
959 (i386nbsd_pc_in_sigtramp): New function.
960 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
961 i386nbsd_pc_in_sigtramp.
962 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
963 and i386nbsdelf_init_abi OS ABI handlers.
964 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
965 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
966
7010ca0a
MK
9672002-09-02 Mark Kettenis <kettenis@gnu.org>
968
969 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
970 registers if the target really has them.
971
6dd93b72
JT
9722002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
973
974 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
975 than nbsd-tdep.h.
976
2ca8ae21
JT
9772002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
978
979 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
980 list.
981 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
982 (alphanbsd_skip_sigtramp_frame): New functions.
983 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
984 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
985 to alphanbsd_sigcontext_addr.
986
3d9b49b0
JT
9872002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
988
989 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
990 list.
991 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
992 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
993 nbsd_pc_in_sigtramp.
994 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
995 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
996 * nbsd-tdep.c: Include gdb_string.h.
997 (nbsd_pc_in_sigtramp): New function.
998 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
999 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1000 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1001 ppcnbsd_pc_in_sigtramp.
1002 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1003 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1004 shnbsd_pc_in_sigtramp.
1005 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1006 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1007 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1008
c860120c
PM
10092002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1010
1011 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1012 watchpoints to NULL.
1013 (insert_breakpoints): set val field of watchpoints if NULL.
1014
1015
c7612d53
JB
10162002-08-29 Jim Blandy <jimb@redhat.com>
1017
1018 * symtab.c (lookup_symbol_aux): In the cases where we find a
1019 minimal symbol of an appropriate name and use its address to
1020 select a symtab to read and search, use `name' (as passed to us)
1021 as the demangled name when searching the symtab's global and
1022 static blocks, not the minsym's name.
1023
66609862
KS
10242002-08-29 Keith Seitz <keiths@redhat.com>
1025
1026 * stack.c (print_frame_info_base): Always set current_source_symtab
1027 and current_source_line.
1028
151fefe2
JB
10292002-08-29 Donn Terry <donnte@microsoft.com>
1030
1031 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1032
bfb3754e
KS
10332002-08-28 Keith Seitz <keiths@redhat.com>
1034
1035 * stack.c (select_frame): Add FIXME concerning selected-frame
1036 events.
1037 (select_frame_command): Send selected-frame-level-changed
1038 event notification, but only if the level actually changed.
1039 (up_silently_base): Add selected-frame-level-changed event
1040 notification.
1041 (down_silently_base): Likewise.
1042
e822a2a0
AC
10432002-08-28 Andrew Cagney <ac131313@redhat.com>
1044
1045 * Makefile.in: Update dependencies for all gdb/*.c files.
1046
309367d4
TT
10472002-08-27 Tom Tromey <tromey@redhat.com>
1048
1049 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1050 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1051 Update dependencies.
1052 * i387-tdep.c: Include gdb_string.h.
1053 * osabi.c: Likewise.
1054 * i386-linux-nat.c: Likewise.
1055 * lin-lwp.c: Likewise.
1056 * ax-gdb.c: Likewise.
1057 * signals/signals.c: Likewise.
1058 * jv-valprint.c: Likewise.
1059 * p-lang.c: Likewise.
1060 * c-valprint.c: Likewise.
1061 * cp-abi.c: Likewise.
1062
e1507482
EZ
10632002-08-27 Elena Zannoni <ezannoni@redhat.com>
1064
1065 * cli/cli-script.h (copy_command_lines): Export.
1066 * breakpoint.c: Include cli/cli-script.h.
1067 * Makefile.in (breakpoint.o): Update dependencies.
1068
c6510018
MS
10692002-08-26 Michael Snyder <msnyder@redhat.com>
1070
1071 * breakpoint.c (insert_breakpoints): Protect all references
1072 to 'process_warning'. Shorten long lines.
1073
c2b8ed2c
MS
10742002-08-26 Joel Brobecker <brobecker@gnat.com>
1075
1076 * cli/cli-script.c (copy_command_lines): New function.
1077 * defs.h (copy_command_lines): Export.
1078 * testsuite/gdb.base/commands.exp: New tests for commands
1079 attached to a temporary breakpoint, and for commands that
1080 delete the breakpoint they are attached to.
1081
10822002-08-26 Michael Snyder <msnyder@redhat.com>
1083
1084 * breakpoint.c (bpstat_stop_status): Instead of copying the
1085 pointer to the breakpoint commands struct, make a new copy
1086 of the struct and point to that.
1087 (bpstat_clear): Free the commands struct.
1088 (bpstat_clear_actions): Free the commands struct.
1089 (bpstat_do_actions): Free the command actions. Also execute
1090 the local cleanups, instead of deleting them.
1091 (delete_breakpoint): Leave the commands field of the bpstat
1092 chain alone -- it will be freed later.
1093
64b84175
KB
10942002-08-26 Kevin Buettner <kevinb@redhat.com>
1095
1096 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1097 deleted in 2002-08-20 commit. This function is still used by
1098 ppc-linux-nat.c.
1099
55970da6
KS
11002002-08-26 Keith Seitz <keiths@redhat.com>
1101
1102 * gdb-events.sh: Add selected-frame-level-changed event.
1103 * gdb-events.c: Regenerated.
1104 * gdb-events.h: Regenerated.
1105
a790ad35
SC
11062002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1107
1108 Fix PR gdb/393:
1109 * inflow.c (terminal_save_ours): New function to save terminal
1110 settings.
1111 * inferior.h (terminal_save_ours): Declare.
1112 * target.c (debug_to_terminal_save_ours): New function.
1113 (cleanup_target): Defaults to_terminal_save_ours.
1114 (update_current_target): Inherit to_terminal_save_ours.
1115 (setup_target_debug): Set to_terminal_save_ours.
1116 * target.h (target_terminal_save_ours): New to save terminal settings.
1117 (target_ops): New member to_terminal_save_ours.
1118 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1119 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1120 * inftarg.c (init_child_ops): Likewise.
1121 * m3-nat.c (init_m3_ops): Likewise.
1122 * procfs.c (init_procfs_ops): Likewise.
1123 * wince.c (init_child_ops): Likewise.
1124 * win32-nat.c (init_child_ops): Likewise.
1125 * sol-thread.c (init_sol_thread_ops): Likewise.
1126
c00dcbe9
MK
11272002-08-26 Mark Kettenis <kettenis@gnu.org>
1128
3d7f4f49
MK
1129 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1130 use regcache_* functions.
1131 (i386_gdbarch_init): Set store_return_value instead of
1132 deprecated_store_return_value.
1133
c00dcbe9
MK
1134 * regcache.c (regcache_raw_write_signed,
1135 regcache_raw_write_unsigned): New functions.
1136 * regcache.h (regcache_raw_write_signed,
1137 regcache_raw_write_unsigned): New prototypes.
1138
0e0d15ca
AC
11392002-08-25 Andrew Cagney <ac131313@redhat.com>
1140
1141 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1142 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1143 source file dependencies. Cleanup corresponding generator rules.
1144
d3b22ed5
AC
11452002-08-25 Andrew Cagney <ac131313@redhat.com>
1146
1147 * regcache.h (register_offset_hack): Declare.
1148 (regcache_cooked_read_using_offset_hack): Declare.
1149 (regcache_cooked_write_using_offset_hack): Declare.
1150
1151 * regcache.c (register_offset_hack): New function.
1152 (regcache_cooked_read_using_offset_hack): New function.
1153 (regcache_cooked_write_using_offset_hack): New function.
1154 (regcache_dump): Check that the registers, according to their
1155 offset, are packed hard against each other.
1156 (cooked_xfer_using_offset_hack): New function.
1157
bb425013
AC
11582002-08-25 Andrew Cagney <ac131313@redhat.com>
1159
1160 * regcache.c (struct regcache_descr): Add field register_type.
1161 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1162 in as a parameter
1163 (init_regcache_descr): Initialize register_type. Pass the descr
1164 to init_legacy_regcache_descr. Use register_type instead of
1165 REGISTER_VIRTUAL_TYPE.
1166 (register_type): New function.
1167 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1168 * regcache.h (register_type): Declare.
1169
d0403e00
AC
11702002-08-25 Andrew Cagney <ac131313@redhat.com>
1171
1172 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1173 instead of deprecated_store_return_value. Fix fallout from
1174 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1175
0ed04cce
AC
11762002-08-25 Andrew Cagney <ac131313@redhat.com>
1177
1178 * regcache.c (max_register_size): New function.
1179 (init_legacy_regcache_descr): Ensure that max_register_size is
1180 large enough for REGISTER_VIRTUAL_SIZE.
1181 * regcache.h (max_register_size): Declare.
1182
46d79c04
AC
11832002-08-24 Andrew Cagney <ac131313@redhat.com>
1184
1185 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1186 store_return_value.
1187 (e500_extract_return_value): Change type of valbuf pointer to
1188 void.
1189
853c7bd0
MK
11902002-08-24 Mark Kettenis <kettenis@gnu.org>
1191
cd87e769
MK
1192 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1193 workaround.
1194
853c7bd0
MK
1195 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1196 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1197 long long) to prevent compiler warning on 64-bit systems.
1198
ebba8386
AC
11992002-08-23 Andrew Cagney <cagney@redhat.com>
1200
1201 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1202 (DEPRECATED_STORE_RETURN_VALUE): New method.
1203 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1204 * gdbarch.h, gdbarch.c: Re-generate.
1205
1206 * values.c (set_return_value): Pass current_regcache to
1207 STORE_RETURN_VALUE.
1208 * arch-utils.h (legacy_store_return_value): Declare.
1209 * arch-utils.c (legacy_store_return_value): New function.
1210 (legacy_extract_return_value): Update parameters.
1211
1212 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1213 STORE_RETURN_VALUE.
1214 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1215 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1216 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1217 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1218 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1219 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1220 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1221 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1222 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1223 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1224
1225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1226 * i386-tdep.c (i386_extract_return_value): Update.
1227 * arch-utils.c (legacy_extract_return_value): Update.
1228 * frv-tdep.c (frv_gdbarch_init): Update.
1229 * cris-tdep.c (cris_gdbarch_init): Update.
1230 * d10v-tdep.c (d10v_gdbarch_init): Update.
1231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1232 * m68k-tdep.c (m68k_gdbarch_init): Update.
1233 * mcore-tdep.c (mcore_gdbarch_init): Update.
1234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1235 * s390-tdep.c (s390_gdbarch_init): Update.
1236 * sparc-tdep.c (sparc_gdbarch_init): Update.
1237 * sh-tdep.c (sh_gdbarch_init): Update.
1238 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1239 * v850-tdep.c (v850_gdbarch_init): Update.
1240 * avr-tdep.c (avr_gdbarch_init): Update.
1241 * ia64-tdep.c (ia64_gdbarch_init): Update.
1242 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1243 * vax-tdep.c (vax_gdbarch_init): Update.
1244 * alpha-tdep.c (alpha_gdbarch_init): Update.
1245 * arm-tdep.c (arm_gdbarch_init): Update.
1246 * mips-tdep.c (mips_gdbarch_init): Update.
1247 * i386-tdep.c (i386_gdbarch_init): Update.
1248
5bd8c6d0
AC
12492002-08-23 Andrew Cagney <ac131313@redhat.com>
1250
1251 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1252 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1253
e73e1724
MK
12542002-08-24 Mark Kettenis <kettenis@gnu.org>
1255
1256 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1257 problems.
1258
3e6564e1
JB
12592002-08-23 Joel Brobecker <brobecker@gnat.com>
1260
1261 * infrun.c (handle_inferior_event): Move a comment outside of a
1262 function call, in order to avoid indent reformatting this part
1263 of the code in an unreadable way.
1264
81d0cc19
GS
12652002-08-23 Grace Sainsbury <graces@redhat.com>
1266
1267 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1268 when breakpoints fail. Move general breakpoint error messages to
1269 insert_breakpoints.
1270 * breakpoint.c (insert_breakpoints): Change warnings when
1271 breakpoints are nto inserted to specify the type. Remove call to
1272 memory_error when hardware breakpoints can't be inserted. Remove
1273 multiple calls to warning so all messages are sent to the user at
1274 once.
1275 (delete_breakpoints): Make insert error messsages more explicit.
1276
17574093
DJ
12772002-08-23 Daniel Jacobowitz <drow@mvista.com>
1278
1279 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1280 gdbserver/ChangeLog.
1281
8acc2935
MK
12822002-08-23 Mark Kettenis <kettenis@gnu.org>
1283
dfe01d39
MK
1284 * i386-tdep.c: Include "objfiles.h".
1285 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1286 skip_trampoline_code.
1287 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1288 (CPLUS_MARKER): Define to '.'.
1289
8acc2935
MK
1290 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1291 member.
1292 (linux_corefile_thread_callback): Increase args->num_notes.
1293 (linux_make_note_section): Initialize thread_args.num_notes, and
1294 use it to determine whether notes for any threads were created.
1295
151fefe2 12962002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1297
1298 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1299 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1300 and PCUNKILL.
1301 (write_with_trace): Conditionalize out the switch branch handling
1302 PCSHOLD if the corresponding macro is not defined. Likewise for
1303 PRSABORT and PRSTOP.
1304 This change will be needed by the Interix port.
1305
e1507482
EZ
13062002-08-22 Elena Zannoni <ezannoni@redhat.com>
1307
1308 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1309 write_register wherever possible instead of manipulating the
1310 register bytes directly.
1311 Assign VALUE_CONTENTS to a variable and use that.
1312 The GPR numbers are now dependent on the architecture.
1313
96ff0de4
EZ
13142002-08-22 Elena Zannoni <ezannoni@redhat.com>
1315
1316 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1317 ev_offset fields.
1318 (skip_prologue): Add support for BookE/e500 instructions.
1319 (e500_extract_return_value): New function.
1320 (frame_get_saved_regs): Add support for saving ev registers and
1321 pseudo gpr's.
1322 (e500_store_return_value): New function.
1323 (rs6000_gdbarch_init): Move up default intializations of
1324 deprecated_extract_return_value and store_return_value. Overwrite
1325 init of store_return_value with e500 specific version.
1326 Set extract_return_value for e500.
1327
fbefca5b
EZ
13282002-08-22 Elena Zannoni <ezannoni@redhat.com>
1329
1330 * blockframe.c (generic_call_dummy_register_unwind): Use
1331 regcache_cooked_read to catch cases in which the variable is
1332 stored in a pseudo register.
1333
4d210288
AC
13342002-08-22 Andrew Cagney <cagney@redhat.com>
1335
1336 * NEWS: Mention that the i960 has been made obsolete.
1337 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1338 i960-tdep.c
1339 (remote-nrom.o): Obsolete target.
1340 (remote-nindy.o, i960-tdep.o): Ditto.
1341 * remote-nrom.c: Make file obsolete.
1342 * remote-nindy.c, remote-vx960.c: Ditto.
1343 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1344 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1345 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1346 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1347 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1348 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1349 i960-*-vxworks* obsolete.
1350 * MAINTAINERS: Note that the i960 is obsolete.
1351
6c0c456d
CV
13522002-08-21 Corinna Vinschen <vinschen@redhat.com
1353
1354 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1355 detach to allow reinitialization.
1356
9f9d12b3
AC
13572002-08-22 Andrew Cagney <ac131313@redhat.com>
1358
1359 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1360 attempt).
1361
ebeb39fe
JB
13622002-08-22 Jim Blandy <jimb@redhat.com>
1363
1364 * coffread.c (coff_symfile_read): Don't try to read the line
1365 number table from disk if the image file doesn't have a symbol
1366 table; we'll never actually look at the info anyway, and Windows
1367 ships DLL's with bogus file offsets for the line number data.
1368
5bf1c677
EZ
13692002-08-21 Elena Zannoni <ezannoni@redhat.com>
1370
1371 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1372 an e500 executable.
1373
71b8ef93
MS
13742002-08-21 Michael Snyder <msnyder@redhat.com>
1375
1376 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1377 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1378 (DEFAULT_MIPS_TYPE): Delete unused macro.
1379 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1380 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1381
d174216d
JB
13822002-08-21 Jim Blandy <jimb@redhat.com>
1383
1384 * valops.c (value_cast): Simplify and correct logic for doing a
1385 static cast from a pointer to a base class to a pointer to a
1386 derived class.
1387
0ab7a791
AC
13882002-08-21 Andrew Cagney <ac131313@redhat.com>
1389
1390 * infcmd.c (default_print_registers_info): Replace
1391 do_registers_info.
1392 (registers_info): Use gdbarch_print_registers_info instead of
1393 DO_REGISTERS_INFO.
1394 * inferior.h (default_print_registers_info): Replace
1395 do_registers_info.
1396 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1397 (DO_REGISTERS_INFO): Change to a predicate function.
1398 * gdbarch.h, gdbarch.c: Regenerate.
1399
e23792cc
KS
14002002-08-21 Keith Seitz <keiths@redhat.com>
1401
1402 * gdb-events.sh: Add target-changed event.
1403 * gdb-events.c: Regenerated.
1404 * gdb-events.c: Regenerated.
1405 * valops.c (value_assign): Add target-changed event notification
1406 to inlval_register, lval_memory, and lval_reg_frame_relative.
1407
9fb14e79
JB
14082002-08-21 Joel Brobecker <brobecker@gnat.com>
1409
1410 * NEWS: Add an entry regarding the improvement of the next/step
1411 operation on Alpha Tru64 multi-processor machines.
1412
6d39a69f
AC
14132002-08-21 Andrew Cagney <ac131313@redhat.com>
1414
72acd513
AC
1415 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1416 directores.
342af04b 1417 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1418 * Makefile.in (install-gdbtk): Move to install section.
1419 (rdi-share/libangsd.a): Move to end of file.
1420
fa5f27c7
AC
14212002-08-19 Andrew Cagney <ac131313@redhat.com>
1422
1423 * frame.c (frame_register_unwind): When a register, set addrp to
1424 the register's byte.
1425
5a89d8aa
MS
14262002-08-20 Michael Snyder <msnyder@redhat.com>
1427
1428 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1429 used locally, so move them from the target machine header to here.
1430 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1431 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1432 Make static.
1433 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1434
822e978b
AC
14352002-08-20 Andrew Cagney <cagney@redhat.com>
1436
1437 * NEWS: Mention that the Apollo line was made obsolete.
1438 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1439 m68*-hp-hpux* obsolete.
1440 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1441 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1442 * buildsym.c (make_blockvector): Make static.
1443 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1444 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1445 (ALLDEPFILES): Remove dstread.c.
1446 (dstread.o): Obsolete make rule.
1447 * dstread.c: Makefile obsolete.
1448 * dst.h: Ditto.
1449 * config/m68k/hp300hpux.mt: Ditto.
1450 * config/m68k/hp300hpux.mh: Ditto.
1451 * config/m68k/hp300bsd.mt: Ditto.
1452 * config/m68k/hp300bsd.mh: Ditto.
1453 * config/m68k/apollo68b.mt: Ditto.
1454 * config/m68k/apollo68v.mh: Ditto.
1455 * config/m68k/apollo68b.mh: Ditto.
1456
e41b17f0
MS
14572002-08-20 Michael Snyder <msnyder@redhat.com>
1458
1459 * mips-tdep.c (mips_in_return_stub): Make static.
1460 (mips_gdbarch_init): Set in_solib_return_trampoline.
1461 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1462
d50355b6
MS
14632002-08-20 Michael Snyder <msnyder@redhat.com>
1464
1465 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1466 * gdbarch.c, gdbarch.h: Regenerate.
1467 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1468 Add.
1469 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1470
757a7cc6
MS
14712002-08-20 Michael Snyder <msnyder@redhat.com>
1472
1473 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1474 (mips_gdbarch_init): Set skip_trampoline_code,
1475 in_solib_call_trampoline.
1476 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1477 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1478
c8001721
EZ
14792002-08-20 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1482
1483 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1484 vector type for ev registers.
1485 (e500_pseudo_register_read): New function.
1486 (e500_pseudo_register_write): New function.
1487 (e500_dwarf2_reg_to_regnum): New function.
1488 (PPC_UISA_NOFP_SPRS): New macro.
1489 (PPC_EV_REGS): New macro.
1490 (PPC_GPRS_PSEUDO_REGS): New macro.
1491 (registers_e500): New register set for e500.
1492 (variants): Add e500 variant.
1493 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1494 before setting architectural dependent variations. Initialize ev
1495 registers numbers. Add case for e500 architecture. Set the
1496 number of pseudo registers.
1497
64366f1c
EZ
14982002-08-20 Elena Zannoni <ezannoni@redhat.com>
1499
1500 * rs6000-tdep.c: Clean up comments.
1501
7e78f0ca
AC
15022002-08-20 Andrew Cagney <cagney@redhat.com>
1503
1504 * h8300-tdep.c: Re-indent file.
1505
697f7479
JB
15062002-08-20 Jim Blandy <jimb@redhat.com>
1507
1508 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1509 default for this.
697f7479 1510
e86ae29f
KS
15112002-08-20 Keith Seitz <keiths@redhat.com>
1512
1513 * breakpoints.c (watch_command_1): Use internal breakpoint
1514 when setting a watchpoint_scope breakpoint.
1515
216b504f
EZ
15162002-08-20 Elena Zannoni <ezannoni@redhat.com>
1517
1518 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1519 (build_builtin_type_vec64i): Ditto.
1520 (build_builtin_type_vec128): Ditto.
1521 (build_builtin_type_vec128i): Ditto.
1522
f7ab6ec6
MS
15232002-08-19 Michael Snyder <msnyder@redhat.com>
1524
1525 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1526 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1527 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1528 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1529 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1530 CALL_DUMMY_ADDRESS): Delete.
1531 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1532 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1533 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1534 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1535 push_return_address.
1536 (mips_register_raw_size, mips_eabi_use_struct_convention,
1537 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1538 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1539 mips_init_extra_frame_info, mips_eabi_push_arguments,
1540 mips_n32n64_push_arguments, mips_push_return_address,
1541 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1542 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1543
b5d1566e
MS
15442002-08-19 Michael Snyder <msnyder@redhat.com>
1545
1546 * mips-tdep.c (mips_frame_num_args): New function.
1547 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1548 frame_saved_pc, frame_args_address, frame_locals_address,
1549 frame_num_args, and frame_args_skip.
1550 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1551 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1552 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1553 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1554
2f1488ce
MS
15552002-08-20 Michael Snyder <msnyder@redhat.com>
1556
1557 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1558 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1559 * mips-tdep.c (mips_store_struct_return): New function.
1560 (mips_extract_struct_value_address): New function.
1561 (mips_gdbarch_init): Set store_struct_return and
1562 extract_struct_value_address.
1563
41ff2da1
DC
15642002-08-20 David Carlton <carlton@math.stanford.edu>
1565
1566 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1567 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1568 (read_file_scope): Check that line_header is nonzero before
1569 decoding macro information.
1570
e5451d58
MK
15712002-08-20 Mark Kettenis <kettenis@gnu.org>
1572
1573 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1574 flag the general-purpose registers as floating-point on targets
1575 that don't support the floating-point registers.
1576
4a6daafa
EZ
15772002-08-20 Elena Zannoni <ezannoni@redhat.com>
1578
1579 * rs6000-tdep.c (altivec_register_p): Delete.
1580 (rs6000_do_altivec_registers): Delete.
1581 (rs6000_altivec_registers_info): Delete.
1582 (rs6000_do_registers_info): Delete.
1583 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1584 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1585
ab4327e0
EZ
15862002-08-20 Elena Zannoni <ezannoni@redhat.com>
1587
1588 * infcmd.c (do_registers_info): Print vector registers in hex
1589 format only.
1590 (print_vector_info): Check that printing registers
1591 makes sense.
1592 (print_float_info): Ditto.
1593
cb1d2653
AC
15942002-08-20 Andrew Cagney <ac131313@redhat.com>
1595
1596 * mips-tdep.c (mips_gdbarch_init): Update.
1597 (mips_o32_extract_return_value): Rewrite.
1598 (mips_o32_store_return_value): Rewrite.
1599 (mips_o32_xfer_return_value): New function.
1600 (mips_xfer_register): Tweak debug print message. Allow for
1601 buf_offset when dumping the value transfered.
1602
dfc3d9b2
AC
16032002-08-20 Andrew Cagney <ac131313@redhat.com>
1604
1605 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1606 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1607 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1608 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1609 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1610
7807aa61
MS
16112002-08-14 Michael Snyder <msnyder@redhat.com>
1612
1613 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1614
489461e2
EZ
16152002-08-19 Elena Zannoni <ezannoni@redhat.com>
1616
1617 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1618 register.
1619 (P): New macro to define a register as a pseudo register.
1620 (R, R4, R8, R16, FR32, R64, R0): Updated.
1621 (struct variant): Add new fields for number of pseudo registers
1622 and number of total registers.
1623 (tot_num_registers): New macro replacing....
1624 (num_registers): ...deleted macro.
1625 (num_registers): New function.
1626 (num_pseudo_registers): New function.
1627 (variants): Update all variants to intialize new fields correctly.
1628 Postpone initialization of number of pseudo regs and real regs.
1629 (init_variants): New function.
1630 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1631 registers offsets.
1632
fcaffe4c
DC
16332002-08-19 David Carlton <carlton@math.stanford.edu>
1634
2c2738a0
DC
1635 * valops.c (search_struct_field): Change error message to treat
1636 return value of 0 from value_static_field as meaning that field is
1637 optimized out.
1638 (value_struct_elt_for_reference): Ditto.
1639 * values.c (value_static_field): Treat an unresolved location the
1640 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1641 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1642 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1643 * MAINTAINERS: Add self to Write After Approval list.
1644
88658117
AC
16452002-08-19 Andrew Cagney <ac131313@redhat.com>
1646
1647 * mips-tdep.c (mips_xfer_register): New function.
1648 (mips_n32n64_extract_return_value): Rewrite.
1649 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1650 instead of deprecated_extract_return_value.
1651
21283beb
EZ
16522002-08-19 Elena Zannoni <ezannoni@redhat.com>
1653
1654 * rs6000-tdep.c (TDEP): Delete macro.
1655 (branch_dest): Replace use of TDEP macro with its body.
1656 (rs6000_pop_frame): Ditto.
1657 (rs6000_push_arguments): Ditto.
1658 (rs6000_skip_trampoline_code): Ditto.
1659 (rs6000_frame_saved_pc): Ditto.
1660 (rs6000_frame_chain): Ditto.
1661 (rs6000_register_name): Ditto.
1662 (rs6000_register_byte): Ditto.
1663 (rs6000_register_raw_size): Ditto.
1664 (rs6000_register_virtual_type): Ditto.
1665 (rs6000_register_convertible): Ditto.
1666 (rs6000_convert_from_func_ptr_addr): Ditto.
1667
bf072999
DJ
16682002-08-19 Daniel Jacobowitz <drow@mvista.com>
1669
1670 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1671 conditionally.
1672 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1673 MIPS_LINUX_JB_ELEMENT_SIZE.
1674 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1675 for MAX_REGISTER_RAW_SIZE arrays.
1676 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1677 MIPS_LINUX_JB_ELEMENT_SIZE.
1678
9b949a49
PM
16792002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1680
1681 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1682
6d3e79c6
AS
16832002-08-19 Aidan Skinner <aidan@velvet.net>
1684
1685 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1686 ada-valprint.c ada-tasks.c.
1687 (YYFILES): Add ada-exp.y.
1688 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1689 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1690 (ada-exp.tab.o): New target.
1691
06c0b04e
AC
16922002-08-18 Andrew Cagney <ac131313@redhat.com>
1693
1694 * regcache.c (regcache_xfer_part): New function.
1695 (regcache_raw_read_part): New function.
1696 (regcache_raw_write_part): New function.
1697 (regcache_cooked_read_part): New function.
1698 (regcache_cooked_write_part): New function.
1699 * regcache.h (regcache_raw_read_part): Declare.
1700 (regcache_raw_write_part): Declare.
1701 (regcache_cooked_read_part): Declare.
1702 (regcache_cooked_write_part): Declare.
1703
92d1e331
DJ
17042002-08-18 Daniel Jacobowitz <drow@mvista.com>
1705
1706 * remote.c (remote_open_1): Add async_p.
1707 (remote_async_open_1): Delete.
1708 (open_remote_target): Delete.
1709 (remote_open, extended_remote_open): Update calls to remote_open_1.
1710 (remote_async_open, extended_remote_async_open): Call
1711 remote_open_1 instead of remote_async_open_1.
1712
247055de
MK
17132002-08-19 Mark Kettenis <kettenis@gnu.org>
1714
1715 * blockframe.c: Fix a few coding standard violations.
1716
641eda39
MK
17172002-08-19 Mark Kettenis <kettenis@gnu.org>
1718
0b717710
MK
1719 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1720 here from ...
1721 * config/i386/tm-i386sco5.h: ... here. File removed.
1722 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1723
26d28e12 1724 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1725 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1726 (TM_FILE): Set to tm-i386.h.
1727 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1728 * config/i386/tm-i386v.h: Remove file.
1729 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1730 instead of "i386/tm-i386v.h".
1731 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1732 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1733 "i386/tm-i386v.h".
1734 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1735 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1736 "i386/tm-i386.h".
1737
d4e0bab4
MK
17382002-08-18 Mark Kettenis <kettenis@gnu.org>
1739
1740 * config/i386/nm-i386v.h: Add protection against
1741 multiple-inclusion.
1742 (i386_register_u_addr): Remove prototype.
1743 (register_u_addr): New prototype.
1744 (REGISTER_U_ADDR): Redefine accordingly.
1745 * i386v-nat.c: Improve several comments.
1746 (i386_register_u_addr): Change signature and rename to
1747 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1748 ubase variable.
1749
46cac009
AC
17502002-08-18 Andrew Cagney <ac131313@redhat.com>
1751
1752 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1753 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1754 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1755 deprecated_extract_return_value.
1756 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1757 rename mips_o32o64_push_arguments.
1758 (mips_gdbarch_init): Update.
1759 (mips_extract_return_value): Delete.
1760 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1761 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1762 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1763 (mips_n32n64_extract_return_value): Clone
1764 mips_extract_return_value.
1765 (mips_store_return_value): Delete.
1766 (mips_o32_store_return_value): Clone mips_store_return_value.
1767 (mips_o64_store_return_value): Clone mips_store_return_value.
1768 (mips_eabi_store_return_value): Clone mips_store_return_value.
1769 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1770
d2e4a39e
AS
17712002-08-18 Aidan Skinner <aidan@velvet.net>
1772
0c30c098
AS
1773 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1774 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1775
17762002-08-18 Aidan Skinner <aidan@velvet.net>
1777
1778 * ada-lang.c: Run through gdb_indent.sh.
1779 * ada-lang.h: Run through gdb_indent.sh.
1780 * ada-tasks.c: Run through gdb_indent.sh.
1781 * ada-typeprint.c: Run through gdb_indent.sh.
1782 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1783
01fc4e33
AC
17842002-08-18 Andrew Cagney <ac131313@redhat.com>
1785
1786 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1787 ABI.
1788
d8ee244c
MK
17892002-08-18 Mark Kettenis <kettenis@gnu.org>
1790
c38d8261
MK
1791 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1792
222db64c
MK
1793 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1794 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1795
c2848c82
MK
1796 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1797 write_register_gen instead of write_register_bytes.
1798
d8ee244c
MK
1799 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1800 i[3456]-*-osf1mk* configurations have been made obsolete.
1801 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1802 i[3456]86-*-osf1mk* hosts obsolete.
1803 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1804 targets obsolete.
1805 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1806 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1807 config/i386/i386m3.mt, config/i386/nm-m3.h,
1808 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1809 config/i386/i386mk.mh, config/i386/i386mk.mt,
1810 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1811 obsolete.
1812 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1813 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1814 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1815
61d8d407
AC
18162002-08-18 Andrew Cagney <ac131313@redhat.com>
1817
1818 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1819 (hppa_value_returned_from_stack): Declare.
1820 (hppa_extract_return_value): Declare.
1821 * config/pa/hppa.mt: New file.
1822 * configure.tgt: Recognize hppa*-*-*.
1823 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1824
0c52bd59
MK
18252002-08-18 Mark Kettenis <kettenis@gnu.org>
1826
1827 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1828 comment.
1829
b5686e99
MK
18302002-08-17 Mark Kettenis <kettenis@gnu.org>
1831
1832 * top.c (gdb_rl_operate_and_get_next): Make sure
1833 operate-and-get-next functions correctly even when the history
1834 list is completely filled.
1835
c1bab85b
AC
18362002-08-18 Andrew Cagney <ac131313@redhat.com>
1837
1838 * MAINTAINERS (Target Instruction Set Architectures): Rename
1839 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1840 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1841 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1842 already listed under Host/Native.
1843
1844 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1845 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1846 mips*-*-*.
1847
32089c7c
AC
18482002-08-17 Andrew Cagney <ac131313@redhat.com>
1849
1850 * config/ia64/ia64.mt: New file.
1851 * config/alpha/alpha.mt: New file.
1852 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1853 ia64-linux-gnu. Mention that ia64-elf is broken.
1854 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1855
b4671f85
MK
18562002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1857
1858 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1859 generic_func_frame_valid instead of func_frame_valid.
1860
c8edd8b4
JB
18612002-08-16 Joel Brobecker <brobecker@gnat.com>
1862
1863 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1864 procfs appears to be broken when debugging on multi-processor
1865 machines. So enable software single stepping in order to avoid
1866 using the procfs interface to do next/step operations, using
1867 internal breakpoints instead.
1868
1869 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1870 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1871 make this pc address equal to the value it would have if the
1872 system stepping capability was used. Also set a new flag used
1873 to ensure that we don't readjust the PC one more time later.
1874
1875 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1876 address by DECR_PC_AFTER_BREAK when software single step is
1877 in use for this architecture, as this has already been taken
1878 care of in handle_inferior_event().
1879
238617f6
JB
18802002-08-16 Joel Brobecker <brobecker@gnat.com>
1881
1882 * infrun.c (handle_inferior_event): Minor reformatting, to make
1883 a rather long condition expression easier to read.
1884
541a7aac
AC
18852002-08-16 Andrew Cagney <ac131313@redhat.com>
1886
1887 * Makefile.in (gdbtk.o): Move to end of file.
1888 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1889 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1890 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1891 (gdbtk-wrapper.o, gdbres.o): Ditto.
1892
f92d4a7b
AC
18932002-08-16 Andrew Cagney <ac131313@redhat.com>
1894
1895 * Makefile.in (copying.o): Separate out compile rule.
1896 (hpux-thread.o, procfs.o, signals.o): Ditto.
1897 (v850ice.o, z8k-tdep.o): Ditto.
1898 (tui-file.o): Move to TUI section.
1899 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1900 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1901
1cce71eb
JB
19022002-08-16 Joel Brobecker <brobecker@gnat.com>
1903
1904 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1905 skip_trampoline_code, for better namespace-proofing.
1906
1907 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1908
0851f23d
JB
19092002-08-16 Joel Brobecker <brobecker@gnat.com>
1910
1911 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1912
f8d40ec8
JB
19132002-08-16 Joel Brobecker <brobecker@gnat.com>
1914
1915 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1916 signal, check whether we hit a breakpoint before checking for a
1917 single step breakpoint. Otherwise, GDB fails to notice that a
1918 breakpoint has been hit when stepping onto a breakpoint.
1919
63d022e0
KS
19202002-08-16 Keith Seitz <keiths@redhat.com>
1921
1922 * gdb-events.sh (clear_gdb_event_hooks): New function.
1923 * gdb-events.c: Regenerate.
1924 * gdb-events.h: Regenerate.
1925
6e31adb3
AC
19262002-08-16 Andrew Cagney <ac131313@redhat.com>
1927
1928 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1929 not_a_sw_breakpoint.
1930 * breakpoint.h (bpstat_stop_status): Add parameter names.
1931
c8189ed1
GS
19322002-08-16 Grace Sainsbury <graces@redhat.com>
1933
1934 * remote.c (remote_insert_hw_breakpoint)
1935 (remote_remove_hw_breakpoint): Fix calculation of length field
1936 for Z-packet.
1937
d05285fa
MS
19382002-08-15 Michael Snyder <msnyder@redhat.com>
1939
466d7106
MS
1940 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1941 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1942 (supply_fpregset): Ditto.
1943
d05285fa
MS
1944 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1945 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1946 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1947 (TARGET_READ_SP): Delete.
bf1f5b4c 1948 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1949 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1950 Delete.
1951 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1952 from macros to functions.
bf1f5b4c 1953
d05285fa
MS
1954 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1955 (mips_register_convertible, mips_register_convert_to_virtual,
1956 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1957 (mips_read_sp): New function.
1958 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1959 (mips_do_registers_info): Make static.
1960 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1961 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1962 (mips_register_convert_from_type, mips_register_convert_to_type):
1963 New functions.
1964 (mips_gdbarch_init): Set up function_start_offset,
1965 register_virtual_size, pc_in_sigtramp.
d05285fa 1966
e76f1f2e
AC
19672002-08-15 Andrew Cagney <ac131313@redhat.com>
1968
1969 * infcmd.c (vector_info): New function.
1970 (_initialize_infcmd): Add command "info vector".
1971 (print_vector_info): New function.
1972
1973 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1974 * gdbarch.h, gdbarch.c: Regenerate.
1975
4782dc19
AC
19762002-08-15 Andrew Cagney <ac131313@redhat.com>
1977
1978 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1979 ``print_all''. Only print vector registers when ``print_all''.
1980
23e3a7ac
AC
19812002-08-15 Andrew Cagney <ac131313@redhat.com>
1982
8e186fd6
AC
1983 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1984 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1985
23e3a7ac
AC
1986 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1987 Add `args' parameter.
1988 * gdbarch.h, gdbarch.c: Regenerate.
1989
1990 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1991
1992 * infcmd.c (float_info): Call print_float_info.
1993 (print_float_info): New function. By default, print the
1994 floating-point registers.
1995
1996 * arch-utils.h (default_print_float_info): Delete declaration.
1997 * arch-utils.c (default_print_float_info): Delete function.
1998
e0ca2bb9
MK
19992002-08-16 Mark Kettenis <kettenis@gnu.org>
2000
3f733acc
MK
2001 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2002 out define.
2003
7d8d2918
MK
2004 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2005 FRAME.
2006
1c7cc583
MK
2007 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2008 * configure.host: Make i[3456]86-*-aix host obsolete.
2009 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2010 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2011 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2012 config/i386/xm-i386aix.h: Make files obsolete.
2013 * i386aix-nat.c: Make file obsolete.
2014 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2015 (i386aix-nat.o): Make target obsolete.
2016
e0ca2bb9
MK
2017 * config/i386/nm-gnu.h: Removed.
2018 * config/i386/nm-i386gnu.h: New file.
2019 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2020 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2021 Moved here from ...
2022 * config/i386/tm-i386gnu.h: ... here. Removed.
2023 * config/i386/xm-i386gnu.h: Removed.
2024 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2025 (NAT_FILE): Set to nm-i386gnu.h.
2026 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2027 * i386-tdep.c: New file.
2028 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2029 (i386gnu-tdep.o): Specify dependencies.
2030
16057ec7 20312002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2032
6b99ee2e
MK
2033 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2034 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2035 Adjust a few comments to reflect reality a bit closer.
2036 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2037 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2038 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2039 target_insert_watchpoint, target_remove_watchpoint):
2040 Move defines to ...
2041 * config/i386/nm-i386sco5.h: ... here.
2042 (kernel_u_size): Add prototype. Improve a few comments and add
2043 protection against multiple inclusion.
2044
d9a6f65c
MK
2045 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2046 out define.
2047
047eff6a
MK
2048 * uw-thread.c (SP_ARG0): Define if not already defined.
2049 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2050
dcdb1290
MK
2051 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2052
5d2d0b2a
MK
2053 * config/i386/tm-i386.h: Don't include "regcache.h".
2054
61113f8b
MK
2055 * i387-tdep.h (i387_print_float_info): New prototype.
2056 * i387-tdep.c (print_i387_value, print_i387_ext,
2057 print_i387_status_word, print_i387_control_word): Add `struct
2058 ui_file *' argument and use it for output.
2059 (i387_print_float_info): Renamed from i387_float_info. Add
2060 `struct gdbarch *' and `struct ui_file *' arguments and use the
2061 latter for output.
2062 * i386-tdep.c: Include "i387-tdep.h".
2063 (i386_gdbarch_init): Set print_float_info.
2064 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2065 (FLOAT_INFO): Remove define.
2066
46e0f506
MS
20672002-08-13 Michael Snyder <msnyder@redhat.com>
2068
2069 * mips-tdep.c (mips_push_arguments): Rename to
2070 mips_eabi_push_arguments, and tune for EABI.
2071 (MIPS_REGS_HAVE_HOME_P): Delete.
2072 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2073 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2074 Delete references to mips_regs_have_home_p.
2075
409268de
KS
20762002-08-14 Keith Seitz <keiths@redhat.com>
2077
2078 * Makefile.in (install-gdbtk): Create insight plugin directory.
2079 Install plugins.tcl file.
2080
ffc6a242
KS
20812002-08-14 Keith Seitz <keiths@redhat.com>
2082
2083 * configure.in: Move SUBDIRS to near top of the file so that
2084 --enable options may add things to it.
2085 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2086 * configure: Regenerate.
2087
ebafbe83
MS
20882002-08-13 Michael Snyder <msnyder@redhat.com>
2089
2090 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2091 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2092 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2093
32f6f25d
AC
20942002-08-13 Andrew Cagney <ac131313@redhat.com>
2095
2096 * vax-tdep.c (vax_get_saved_register): Delete function.
2097 (vax_gdbarch_init): Update.
2098 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2099 (ns32k_gdbarch_init): Update.
2100 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2101 (alpha_gdbarch_init): Update.
2102
53826de9
AC
21032002-08-13 Andrew Cagney <cagney@redhat.com>
2104
2105 * regcache.c (init_regcache_descr): Overallocate the
2106 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2107 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2108 nr_raw_registers.
2109 (set_register_cached): Add range checking assertions. Use
2110 current_regcache.
2111
16057ec7 21122002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2113
2114 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2115 numbers for MMX registers.
2116
7b4c2dce
AC
21172002-08-13 Andrew Cagney <cagney@redhat.com>
2118
2119 * i386-tdep.c (i386_gdbarch_init): Use
2120 generic_unwind_get_saved_register.
2121
1e03ad20
KB
21222002-08-13 Kevin Buettner <kevinb@redhat.com>
2123
2124 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2125 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2126 target vector.
2127 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2128 Delete. Add comment regarding this now-deleted target method.
2129
548bcbec
SC
21302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2131
2132 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2133 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2134 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2135 real PC and the page number (if it's within the memory bank window).
2136 (m68hc11_pseudo_register_write): Likewise when saving.
2137 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2138 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2139 (m68hc11_register_raw_size): And use 32-bit for it.
2140 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2141 16K memory bank is used by the prog; also use the virtual pc.
2142
7df11f59
SC
21432002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2144
2145 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2146 (m68hc11_gdbarch_init): Install it in gdbarch.
2147 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2148 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2149 (MSYMBOL_SIZE): New for documentation.
2150 (insn_return_kind): Enum to specify how a function returns.
2151 (frame_extra_info): Cleanup and record the return mode.
2152 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2153 register in address computation.
2154 (m68hc11_get_return_insn): New to obtain the return instruction used
2155 by the function.
2156 (m68hc11_frame_init_saved_regs): Take into account the return
2157 instruction used by the function for far and interrupt functions.
2158 (m68hc11_init_extra_frame_info): Take into account page register.
2159 (m68hc11_frame_args_address): Adjust according to the return mode.
2160 (show_regs): Print page register only when it's used.
2161
5706502a
SC
21622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2163
2164 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2165 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2166 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2167 registers.
2168 (m68hc11_register_raw_size): Likewise.
2169
28fc6740
AC
21702002-08-13 Andrew Cagney <cagney@redhat.com>
2171
2172 * i386-tdep.c (i386_register_name): Handle mmx registers.
2173 (mmx_regnum_p): New function.
2174 (i386_mmx_names): New array.
2175 (mmx_num_regs): New variable.
2176 (i386_pseudo_register_read): New function.
2177 (i386_pseudo_register_write): New function.
2178 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2179
2180 * regcache.c (regcache_raw_read_unsigned): New function.
2181 (regcache_raw_read_signed): New function.
2182 * regcache.h (regcache_raw_read_unsigned): Declare.
2183 (regcache_raw_read_signed): Declare.
2184
a378f419
AC
21852002-08-13 Andrew Cagney <cagney@redhat.com>
2186
2187 * regcache.c (regcache_raw_read_as_address): Delete function.
2188 (regcache_cooked_read_signed): New function.
2189 (regcache_cooked_read_unsigned): New function.
2190 * regcache.h (regcache_cooked_read_signed): Declare.
2191 (regcache_cooked_read_unsigned): Declare.
2192 (regcache_raw_read_as_address): Delete declaration.
2193
2194 * blockframe.c (generic_read_register_dummy): Use
2195 regcache_cooked_read_unsigned.
2196 * i386-tdep.c (i386_extract_struct_value_address): Use
2197 regcache_cooked_read_unsigned.
2198
81967506
SC
21992002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2200
2201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2202 double sizes according to ELF ABI flags.
2203 (gdbarch_tdep): Record elf_flags.
2204
ffe1f3ee
SC
22052002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2206
2207 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2208 (m6812_prolog): They can appear in 68HC12 function prologue.
2209 (m68hc11_frame_chain): Cleanup.
2210
98216c5d
AC
22112002-08-12 Andrew Cagney <cagney@redhat.com>
2212
2213 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2214 declarations.
2215 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2216 (i386_linux_register_raw_size): Delete function.
2217 (i386_linux_init_abi): Update.
2218 * i386-tdep.c (i386_register_raw_size): Delete function.
2219 (i386_register_byte): Delete function.
2220 (i386_gdbarch_init): Update.
2221 (i386_register_size): Delete array.
2222 (i386_register_offset): Delete array.
2223
2224 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2225 (REGISTER_RAW_SIZE): Delete macro.
2226 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2227 (REGISTER_BYTE): Delete macro.
2228
3b19021e
AS
22292002-08-11 Aidan Skinner <aidan@velvet.net>
2230
2231 * ada-lang.c (ada_lookup_partial_symbol)
2232 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2233 prototype names so that grep ^func works properly.
2234
2235 * ada-lang.c (ada_array_element_type)
2236 (ada_lookup_partial_symbol): Fix typos in parameter list.
2237
2238 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2239 Fix prototype names so that grep ^func works properly.
2240
b063e7a2
AC
22412002-08-10 Andrew Cagney <cagney@redhat.com>
2242 Elena Zannoni <ezannoni@redhat.com>
2243 Martin M. Hunt <hunt@redhat.com>
2244
2245 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2246 (build_builtin_type_vec128i): Set the vector bit.
2247 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2248 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2249 (build_builtin_type_vec64): New function.
2250 (build_builtin_type_vec64i): New function.
2251 (build_gdbtypes): Initialize builtin_type_vec64 and
2252 builtin_type_vec64i.
2253
a7e3c2ad
AC
22542002-08-09 Andrew Cagney <cagney@redhat.com>
2255
2256 * regcache.c (regcache_dump): Compare the register offset
2257 with REGISTER_BYTE.
2258 * arch-utils.c (generic_register_byte): New function.
2259 * arch-utils.h (generic_register_byte): Declare.
2260 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2261 * gdbarch.h, gdbarch.c: Regenerate.
2262
af030b9a
AC
22632002-08-09 Andrew Cagney <cagney@redhat.com>
2264
2265 * regcache.c: Include "gdbcmd.h"
2266 (_initialize_regcache): Add commands "maintenance print
2267 registers", "maintenance print raw-registers" and "maintenance
2268 print cooked-registers".
2269 (enum regcache_dump_what): Define.
2270 (dump_endian_bytes): New function.
2271 (regcache_dump): New function.
2272 (regcache_print): New function.
2273 (maintenance_print_registers): New function.
2274 (maintenance_print_raw_registers): New function.
2275 (maintenance_print_cooked_registers): New function.
2276 * Makefile.in (regcache.o): Update dependencies.
2277
cb3d25d1
MS
22782002-08-09 Michael Snyder <msnyder@redhat.com>
2279
2280 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2281 (mips_push_arguments): Correct some comments. Use paddr_nz
2282 for printing addresses in debug output. Replace static
2283 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2284 (mips_n32n64_push_arguments): New function, cloned from
2285 mips_push_arguments and tuned for the n32/n64 ABI.
2286 (mips_push_register): Buffer needs dynamic allocation.
2287 (mips_print_register): Ditto.
2288 (do_gp_register_row): Ditto.
2289 (mips_store_return_value): Ditto.
2290 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2291
2163ab9d
DH
22922002-08-09 Don Howard <dhoward@redhat.com>
2293
2294 * memattr.c (mem_info_command): Print special case of upper bound
2295 as max CORE_ADDR + 1.
2296
b78bcb18
MS
22972002-08-08 Michael Snyder <msnyder@redhat.com>
2298
2299 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2300 returns structs by ref if they're too big to fit in two registers.
2301
ffabd70d
KB
23022002-08-09 Kevin Buettner <kevinb@redhat.com>
2303
2304 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2305 saved regs value.
2306 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2307 mips_find_saved_regs().
2308 (mips_pop_frame): Likewise.
2309
fbcdb4a3
KB
23102002-08-09 Kevin Buettner <kevinb@redhat.com>
2311
2312 * blockframe.c (frame_saved_regs_register_unwind): Revise
2313 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2314 frames are in use.
2315
3c3bea1c
GS
23162002-08-09 Grace Sainsbury <graces@redhat.com>
2317
2318 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2319 T-packets; the 'a' is not taken as a register number.
2320 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2321 (remote_stopped_data_address): New functions; add to target
2322 vector.
2323 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2324 prototypes to match other implementations of this
2325 function. replace integer argument with pointer -- the length
2326 field in the Z-packet is the length of what is pointed to or 1 if
2327 pointer is null. Add to target vector.
2328 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2329 target vector.
2330
2331 From Mark Salter:
2332 * remote.c (remote_wait): Add support to extract optional
2333 watchpoint information from T-packet. Ignore unrecognized
2334 optional info in T-packet.
2335 (remote_async_wait): Ditto.
2336
5d1d95de
CV
23372002-08-09 Corinna Vinschen <vinschen@redhat.com>
2338
2339 * cli/cli-dump.c: Change fopen modes to use binary open modes
2340 as defined in include/fopen-bin.h throughout.
2341
c86b5b38
MS
23422002-08-08 Michael Snyder <msnyder@redhat.com>
2343
2344 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2345
b30590dc
KB
23462002-08-08 Kevin Buettner <kevinb@redhat.com>
2347
2348 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2349 assertion failure by returning early after a warning.
2350
498868ed
KB
23512002-08-08 Kevin Buettner <kevinb@redhat.com>
2352
2353 * mips-tdep.c (mips_find_saved_regs): Make static.
2354 (mips_frame_init_saved_regs): New function.
2355 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2356 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2357 (mips_find_saved_regs): Delete declaration.
2358
b2dd6311
GS
23592002-08-08 Grace Sainsbury <graces@redhat.com>
2360
3c3bea1c
GS
2361 * remote.c (remote_wait, remote_async_wait): Change
2362 thread_num from int to ULONGEST.
2363 (unpack_varlen_hex): Change result parameter from
2364 int * to ULONGEST *.
b2dd6311 2365
ea47855f
AC
23662002-08-08 Andrew Cagney <ac131313@redhat.com>
2367
2368 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2369 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2370 powerpc*-*-*.
2371 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2372
69db8bae
AC
23732002-08-08 Andrew Cagney <cagney@redhat.com>
2374
2375 * gcore.c (override_derive_stack_segment): Delete variable.
2376 (preempt_derive_stack_segment): Delete function.
2377 (derive_stack_segment): Delete function.
2378 (default_derive_stack_segment): Renamed to derive_stack_segment.
2379 (override_derive_heap_segment): Delete variable.
2380 (preempt_derive_heap_segment): Delete function.
2381 (derive_heap_segment): Delete function.
2382 (default_derive_heap_segment): Rename to derive_heap_segment.
2383
cb811fe7
MS
23842002-08-06 Michael Snyder <msnyder@redhat.com>
2385
2386 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2387 * mips-tdep.c (mips_EABI_use_struct_convention,
2388 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2389 New functions. (mips_use_struct_convention): Delete.
2390 (mips_gdbarch_init): set use_gdbarch_convention.
2391
8b389c40
MS
23922002-08-06 Michael Snyder <msnyder@redhat.com>
2393
2394 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2395 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2396 mips_o32_reg_struct_has_addr): New functions.
2397 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2398
5c27f28a
AC
23992002-08-07 Andrew Cagney <ac131313@redhat.com>
2400
2401 * regcache.c (pseudo_register): Delete function.
2402 (fetch_register): Delete function.
2403 (store_register): Delete function.
2404 (regcache_raw_read, legacy_read_register_gen): Use
2405 target_fetch_registers instead of fetch_register.
2406 (legacy_write_register_gen, regcache_raw_write): Use
2407 target_store_register instead of store_register.
2408 (write_register_bytes): Ditto.
2409
2410 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2411 (STORE_PSEUDO_REGISTER): Delete.
2412 * gdbarch.h, gdbarch.c: Regenerate.
2413
5b331675
CV
24142002-08-06 Corinna Vinschen <vinschen@redhat.com>
2415
2416 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2417 write dump file binary.
2418
6acdf5c7
MS
24192002-08-05 Michael Snyder <msnyder@redhat.com>
2420
2421 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2422 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2423 (mips_gdbarch_init): Set N32 target to be mips64.
2424
b2f01c35
KB
24252002-08-06 Kevin Buettner <kevinb@redhat.com>
2426
2427 * frame.c (find_saved_register): Break out of loop once saved
2428 register address is found. Don't mention sparc in loop comment
2429 anymore.
2430
63db5580
KB
24312002-08-06 Kevin Buettner <kevinb@redhat.com>
2432
2433 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2434 mips_default_saved_regsize to 8.
2435
5e34e75e
AC
24362002-08-06 Andrew Cagney <ac131313@redhat.com>
2437
2438 * gcore.c: Do not include <sys/procfs.h>.
2439 * Makefile.in (gcore.o): Update dependencies.
2440
eb4c54a2
AC
24412002-08-06 Andrew Cagney <cagney@redhat.com>
2442
2443 * configure.tgt: Make arc-*-* obsolete.
2444 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2445 * MAINTAINERS: Make arc-elf obsolete.
2446 * arc-tdep.c: Make file obsolete.
2447 * config/arc/arc.mt: Ditto.
2448 * config/arc/tm-arc.h: Ditto.
2449
ced15480
TR
24502002-08-05 Theodore A. Roth <troth@verinet.com>
2451
c1bab85b 2452 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2453
b4743822
AC
24542002-08-05 Andrew Cagney <ac131313@redhat.com>
2455
2456 * mcore-tdep.c (mcore_gdbarch_init): Use
2457 generic_unwind_get_saved_register instead of
2458 generic_get_saved_register.
2459 * v850-tdep.c (v850_gdbarch_init): Ditto.
2460 * frv-tdep.c (frv_gdbarch_init): Ditto.
2461 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2462 * s390-tdep.c (s390_gdbarch_init): Ditto.
2463 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2464 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2465 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2466
3956d554
JB
24672002-08-05 Joel Brobecker <brobecker@gnat.com>
2468
2469 * objfiles.h: Add missing #include "symfile.h"
2470
2471 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2472
8249c0d6
AC
24732002-08-04 Andrew Cagney <ac131313@redhat.com>
2474
2475 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2476 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2477 of FIELD_BITSIZE.
2478
b9d14705
DJ
24792002-08-04 Daniel Jacobowitz <drow@mvista.com>
2480
2481 * NEWS: Cleanup and nitpick.
2482
dd73b9bb
AC
24832002-08-03 Andrew Cagney <ac131313@redhat.com>
2484
2485 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2486
043a27f8
AC
24872002-08-03 Andrew Cagney <ac131313@redhat.com>
2488
2489 * Makefile.in (gdbtk-bp.o): Update dependencies.
2490 (gdbtk-register.o): Ditto.
2491 (gdbtk-varobj.o): Ditto.
2492
46ce284d
AC
24932002-08-03 Andrew Cagney <cagney@redhat.com>
2494
2495 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2496 m68hc11_fetch_pseudo_register.
2497 (m68hc11_pseudo_register_write): Replace
2498 m68hc11_store_pseudo_register.
2499 (m68hc11_gdbarch_init): Update.
2500
b66d6d2e
AC
2501Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2502
2503 * gdbarch.sh: Include "gdb_string.h".
2504 * gdbarch.c: Regenerate.
2505
2506 * regcache.c: Include "gdb_string.h".
2507 * ax-general.c: Ditto.
2508 * varobj.c: Ditto.
2509 * std-regs.c: Ditto.
2510 * fbsd-proc.c: Ditto.
2511 * thread.c: Ditto.
2512
2513 * Makefile.in (regcache.o): Update dependencies.
2514 (thread.o, gdbarch.o): Ditto.
2515 (ax-general.o, gdbarch.o): Ditto.
2516 (varobj.o, std-regs.o): Ditto.
2517 (fbsd-proc.o): Specify dependencies.
2518
29e1842b
AC
25192002-08-02 Andrew Cagney <cagney@redhat.com>
2520
2521 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2522 regnum.
2523 (regcache_cooked_write): Ditto.
2524
68365089
AC
25252002-08-02 Andrew Cagney <ac131313@redhat.com>
2526
2527 * regcache.c (regcache_cooked_read): New function.
2528 (regcache_cooked_write): New function.
2529 (read_register_gen): Rewrite using regcache_cooked_read.
2530 (write_register_gen): Rewrite using regcache_cooked_write.
2531
2532 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2533 Declare.
2534
d8124050
AC
25352002-08-02 Andrew Cagney <cagney@redhat.com>
2536
2537 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2538 Replace the architecture methods register_read and register_write.
2539 * gdbarch.h, gdbarch.c: Regenerate.
2540 * regcache.c (init_regcache_descr): Update.
2541 (read_register_gen): Update.
2542 (write_register_gen): Update.
2543 (supply_register): Update comment.
2544
2545 * sh-tdep.c (sh_gdbarch_init): Update.
2546 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2547 `regcache' and `gdbarch' parameters. Make `buffer' a void
2548 pointer. Update code.
2549 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2550 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2551 void pointer. Update code.
2552 (sh64_register_write): Delete.
2553 (sh4_register_read): Delete.
2554 (sh64_register_read): Delete.
2555 (sh4_register_write): Delete.
2556 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2557 void pointer, `to' parameter a void pointer.
2558 (sh_sh64_register_convert_to_raw): Ditto.
2559
a6425924
KB
25602002-08-01 Kevin Buettner <kevinb@redhat.com>
2561
2562 * mips-tdep.c (mips_register_virtual_type): Use architecture
2563 invariant return values.
2564
ff5922b5
AC
25652002-08-01 Andrew Cagney <cagney@redhat.com>
2566
2567 * linux-proc.c: Include "gdb_string.h".
2568 * Makefile.in (linux-proc.o): Update dependency list.
2569
32a6503c
KB
25702002-08-01 Kevin Buettner <kevinb@redhat.com>
2571
2572 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2573 comment.
2574
ccaa32c7
GS
25752002-08-01 Grace Sainsbury <graces@redhat.com>
2576
2577 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2578 to_insert_watchpoint, to_remove_watchpoint,
2579 to_stopped_by_watchpoint, to_stopped_data_address,
2580 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2581 target vecctor. Define their corresponding macros so they call
2582 them.
2583
2584 * target.c: Add default and debug versions of for
2585 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2586 to_insert_watchpoint, to_remove_watchpoint,
2587 to_stopped_by_watchpoint, to_stopped_data_address,
2588 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2589
78fde5f8
KB
25902002-08-01 Kevin Buettner <kevinb@redhat.com>
2591
2592 * mips-tdep.c (mips_register_virtual_type): New function.
2593 (mips_gdbarch_init): Register mips_register_virtual_type()
2594 with gdbarch machinery.
2595 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2596 this file instead of tm-bigmips.h.
2597 (MIPS_REGSIZE): Delete this macro.
2598 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2599 multiarch version in mips-tdep.c will be found.
2600
db034ac5
AC
26012002-08-01 Andrew Cagney <cagney@redhat.com>
2602
2603 * NEWS: Menion that CHILL has been made obsolete.
2604
2605 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2606 * stabsread.c (read_range_type): Ditto.
2607 * gdbtypes.h: Ditto.
2608 * language.c (binop_type_check): Ditto.
2609 (binop_result_type): Ditto.
2610 (integral_type): Ditto.
2611 (character_type): Ditto.
2612 (string_type): Ditto.
2613 (boolean_type): Ditto.
2614 (structured_type): Ditto.
2615 (lang_bool_type): Ditto.
2616 (binop_type_check): Ditto.
2617 * language.h (_LANG_chill): Ditto.
2618 * dwarfread.c (set_cu_language): Ditto.
2619 * dwarfread.c (CHILL_PRODUCER): Ditto.
2620 * dwarfread.c (handle_producer): Ditto.
2621 * expression.h (enum exp_opcode): Ditto.
2622 * eval.c: Ditto for comments.
2623 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2624 * expprint.c (print_subexp): Ditto.
2625 (print_subexp): Ditto.
2626 * valops.c (value_cast): Ditto.
2627 (search_struct_field): Ditto.
2628 * value.h (COERCE_VARYING_ARRAY): Ditto.
2629 * symfile.c (init_filename_language_table): Ditto.
2630 (add_psymbol_with_dem_name_to_list): Ditto.
2631 * valarith.c (value_binop): Ditto.
2632 (value_neg): Ditto.
2633 * valops.c (value_slice): Ditto.
2634 * symtab.h (union language_specific): Ditto.
2635 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2636 (SYMBOL_DEMANGLED_NAME): Ditto.
2637 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2638 * defs.h (enum language): Ditto.
2639 * symtab.c (got_symtab): Ditto.
2640 * utils.c (fprintf_symbol_filtered): Ditto.
2641
2642 * ch-typeprint.c: Make file obsolete.
2643 * ch-valprint.c: Make file obsolete.
2644 * ch-lang.h: Make file obsolete.
2645 * ch-exp.c: Make file obsolete.
2646 * ch-lang.c: Make file obsolete.
2647
2648 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2649 CHILL_LIB.
2650 (TARGET_FLAGS_TO_PASS): Ditto.
2651 (CHILLFLAGS): Obsolete.
2652 (CHILL): Obsolete.
2653 (CHILL_FOR_TARGET): Obsolete.
2654 (CHILL_LIB): Obsolete.
2655 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2656 ch-valprint.c.
2657 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2658 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2659 ch-lang.o.
2660 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2661 targets.
2662
8aaf0b47
JB
26632002-07-31 Joel Brobecker <brobecker@gnat.com>
2664
2665 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2666 This does not change anything at the moment, but will be helpful
2667 later when full Ada support is integrated.
2668
f3a7b3a5
KB
26692002-07-31 Kevin Buettner <kevinb@redhat.com>
2670
2671 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2672 help message.
2673
fb850278
KB
26742002-07-31 Kevin Buettner <kevinb@redhat.com>
2675
2676 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2677 and save it in a local variable. Use variable in later test.
2678
e3bddbfa
KB
26792002-07-31 Kevin Buettner <kevinb@redhat.com>
2680
2681 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2682 test. (Thanks to Daniel Jacobowitz.)
2683
28d169de
KB
26842002-07-31 Kevin Buettner <kevinb@redhat.com>
2685
2686 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2687 (mips_abi_strings): Add "n64".
2688 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2689
7fe7e44e
KB
26902002-07-31 Kevin Buettner <kevinb@redhat.com>
2691
2692 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2693 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2694
c6caf090
KB
26952002-07-31 Kevin Buettner <kevinb@redhat.com>
2696
2697 * utils.c (host_pointer_to_address, address_to_host_pointer):
2698 Use gdb_assert() instead of explicit call to internal_error().
2699
c41669e0
KB
27002002-07-30 Kevin Buettner <kevinb@redhat.com>
2701
2702 * Makefile.in (rs6000-nat.o): Update dependencies.
2703
2704 From Nicholas Duffek:
2705 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2706 (aix-thread.o): New rule.
2707 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2708 * config/powerpc/aix432.mh: New file.
2709
2fda4977
DJ
27102002-07-30 Daniel Jacobowitz <drow@mvista.com>
2711
2712 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2713 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2714 (fetch_core_registers, ppc_linux_supply_gregset)
2715 (ppc_linux_supply_fpregset): New functions.
2716 (ppc_linux_regset_core_fns): New.
2717 (_initialize_ppc_linux_tdep): Call add_core_fns.
2718 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2719 and ppc_linux_supply_gregset.
2720 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2721 (supply_fpregset): Call ppc_linux_supply_fpregset.
2722 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2723 corelow.o.
2724 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2725
729051e6
DJ
27262002-07-30 Daniel Jacobowitz <drow@mvista.com>
2727
2728 * symtab.c (lookup_symbol): Demangle before lowercasing.
2729
5f8a3188
AC
27302002-07-30 Andrew Cagney <ac131313@redhat.com>
2731
2732 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2733 declaration.
2734 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2735 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2736 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2737 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2738 "gdb_string.h".
2739 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2740 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2741 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2742 (avr-tdep.o, mon960-rom.o): Ditto.
2743 (aout_stabs_gnu_h): Define.
2744 (symtab_h): Remove $(gdb_obstack_h).
2745
67f07146
JB
27462002-07-30 Jim Blandy <jimb@redhat.com>
2747
2748 Patch from David Carlton <carlton@math.stanford.edu>:
2749 * gdbinit.in: Move the `dir' commands that add GDB's own source
2750 directory to the search path to the end, so that the `gdb' source
2751 directory will be searched first.
2752
04ea0df1
AC
27532002-07-29 Andrew Cagney <ac131313@redhat.com>
2754
2755 * gdb_obstack.h: New file.
2756 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2757 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2758 * objfiles.h: Include "gdb_obstack.h".
2759 * Makefile.in (gdb_obstack_h): Define.
2760 (symtab_h): Add $(gdb_obstack_h).
2761 (objfiles_h): Add $(gdb_obstack_h).
2762
2763 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2764 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2765 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2766 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2767 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2768 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2769 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2770 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2771
2772 * Makefile.in (bcache.o): Update dependencies.
2773 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2774 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2775 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2776 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2777 (stabsread.o, symfile.o, symmisc.o): Ditto.
2778 (symtab.o, typeprint.o, macroexp.o): Ditto.
2779 (macrotab.o, mdebugread.o): Ditto.
2780 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2781 (coff_ecoff_h, aout_aout64_h): Define.
2782 (aout_stabs_gnu_h, libaout_h): Define.
2783
d138e37a
AC
27842002-07-29 Andrew Cagney <cagney@redhat.com>
2785
2786 * regcache.c (struct regcache_descr): Rename nr_registers to
2787 nr_cooked_registers. Revise comments describing the structure
2788 member fields.
2789 (init_regcache_descr): Update.
2790 (init_legacy_regcache_descr): Update.
2791 (read_register_gen, write_register_gen): When a cooked register in
2792 the raw register range, directly access the value from the raw
2793 register cache.
2794
460e6ec3
AC
27952002-07-29 Andrew Cagney <ac131313@redhat.com>
2796
2797 * z8k-tdep.c: Do not include "obstack.h".
2798 * h8300-tdep.c, h8500-tdep.c: Ditto.
2799 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2800 * valprint.c, v850-tdep.c: Ditto.
2801 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2802 * mn10200-tdep.c: Ditto.
2803
2804 * Makefile.in (z8k-tdep.o): Update dependencies.
2805 (m68hc11-tdep.o, valprint.o): Ditto.
2806 (v850-tdep.o, d10v-tdep.o): Ditto.
2807 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2808 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2809 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2810 (sh_opc_h, gdb_sim_sh_h): Define.
2811 (elf_sh_h, elf_bfd_h): Define.
2812 (opcode_m68hc11_h): Define.
2813 (OPCODES_SRC, OPCODES_DIR): define.
2814 (OPCODES): Use $(OPCODES_DIR).
2815 (gdb_sim_d10v_h): Rename sim_d10v_h.
2816 (gdb_sim_arm_h): Rename sim_arm_h.
2817
790c9cf0
KB
28182002-07-26 Kevin Buettner <kevinb@redhat.com>
2819
2820 * utils.c (host_pointer_to_address, address_to_host_pointer):
2821 Change internal_error() message to indicate function responsible
2822 for the error.
2823
9647fa49
KB
28242002-07-26 Kevin Buettner <kevinb@redhat.com>
2825
2826 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2827 calls to local_hex_string_custom().
2828
dabbe2c0
KB
28292002-07-26 Kevin Buettner <kevinb@redhat.com>
2830
2831 * irix5-nat.c: Move IRIX shared library support from here...
2832 * solib-irix.c: ...to here. Revised substantially to work with
2833 generic solib framework.
2834
b96d0a4e
KB
2835 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2836 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2837 * mips-irix-tdep.c: New file.
2838
313fb2f6
KB
2839 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2840 (mips-irix-tdep.o, solib-irix.o): New rules.
2841 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2842 solib-irix.o.
2843 * config/mips/irix6.mt (TDEPFILES): Likewise.
2844 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2845
ab2eaf26
KB
28462002-07-26 Kevin Buettner <kevinb@redhat.com>
2847
177e4768 2848 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2849 disabled (via ``#if 0'') includes.
2850
7244546a
KB
28512002-07-26 Kevin Buettner <kevinb@redhat.com>
2852
2853 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2854 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2855 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2856 Add support for the fpscr register.
2857 * rs6000-nat.c (regmap, fetch_inferior_registers)
2858 (store_inferior_registers, fetch_core_registers): Likewise.
2859
dd7be90a
KB
28602002-07-26 Kevin Buettner <kevinb@redhat.com>
2861
2862 * rs6000-nat.c (language.h): Include.
2863 (special_regs): Delete this array.
2864 (regmap): New function.
2865 (fetch_register, store_register): Use regmap() to map gdb
2866 register numbers to ptrace register numbers. Also, use
2867 outputs from regmap() to make decisions regarding type of
2868 ptrace() call to make. In particular, don't compare against
2869 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2870 (fetch_inferior_registers, store_inferior_registers): Where
2871 possible, obtain register numbers from tdep struct. Don't
2872 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2873 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2874 (LAST_UISA_SP_REGNUM): Delete.
2875
11bf77db
KB
28762002-07-25 Kevin Buettner <kevinb@redhat.com>
2877
2878 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2879 (fetch_registers, store_register, fetch_core_registers): Don't
2880 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2881 regcache_collect() as appropriate.
2882 (find_toc_address): Format hex address with local_hex_string().
2883
06afebeb
AC
28842002-07-25 Andrew Cagney <ac131313@redhat.com>
2885
2886 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2887 bfd/elf32-frv.c.
2888
8c554d79
TT
28892002-07-24 Tom Tromey <tromey@redhat.com>
2890
2891 * jv-exp.y: Marked all strings with _().
2892 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2893 internal_error.
2894 (MethodInvocation, CastExpression, parse_number, yyerror,
2895 java_type_from_name, push_expression_name, yylex): Typo fixes.
2896
e4c242d9
DJ
28972002-07-24 Daniel Jacobowitz <drow@mvista.com>
2898
2899 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2900 (tee_file_flush, tee_file_write, tee_file_fputs)
2901 (tee_file_isatty): New.
2902 * ui-file.h (tee_file_new): Add prototype.
2903
ebf56fd3
AS
29042002-07-24 Aidan Skinner <aidan@velvet.net>
2905
2906 * ada-lang.c: Change k&r style function definitions to prototyped
2907 form.
2908 * ada-typeprint.c: Change k&r style function definitions to prototyped
2909 form.
2910 * ada-valprint.c: Change k&r style function definitions to prototyped
2911 form.
2912
7fb623f7
AC
29132002-07-24 Andrew Cagney <cagney@redhat.com>
2914
2915 * README: Remove reference to remote-bug.
2916 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2917 remote-bug.c.
2918 (m88k-nat.o): Delete rule.
2919 (m88k-tdep.o): Delete rule.
2920 (remote-bug.o): Delete rule.
2921 * MAINTAINERS: Mark as obsolete.
2922 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2923 * m88k-tdep.c: Make file obsolete.
2924 * config/m88k/m88k.mh: Ditto.
2925 * config/m88k/delta88v4.mh: Ditto.
2926 * config/m88k/delta88v4.mt: Ditto.
2927 * config/m88k/delta88.mt: Ditto.
2928 * config/m88k/delta88.mh: Ditto.
2929 * remote-bug.c: Ditto.
2930 * config/m88k/tm-delta88.h: Ditto.
2931 * config/m88k/nm-delta88v4.h: Ditto.
2932 * config/m88k/xm-delta88.h: Ditto.
2933 * config/m88k/xm-dgux.h: Ditto.
2934 * config/m88k/tm-m88k.h: Ditto.
2935 * config/m88k/nm-m88k.h: Ditto.
2936 * config/m88k/tm-delta88v4.h: Ditto.
2937 * m88k-nat.c: Ditto.
2938 * cxux-nat.c: Ditto.
2939 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2940 and m88*-*-* obsolete.
2941 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2942 m88*-*-* obsolete.
2943
37611a2b
AC
29442002-07-24 Andrew Cagney <cagney@redhat.com>
2945
2946 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2947 constant. Same for local pointer variables.
2948 (extract_signed_integer): Ditto.
2949 * defs.h (extract_unsigned_integer): Update.
2950 (extract_signed_integer): Update.
2951
1aaa5f99
AC
29522002-07-24 Andrew Cagney <cagney@redhat.com>
2953
2954 * regcache.c (regcache_raw_write): Change buf parameter to a
2955 constant void pointer.
2956 (regcache_raw_read): Change buf parameter to a void pointer.
2957 (legacy_write_register_gen): Change myaddr parameter a constant
2958 void pointer.
2959 (supply_register): Change val parameter to a const void pointer.
2960 * regcache.h (regcache_raw_write): Update declaration.
2961 (regcache_raw_read): Update declaration.
2962 (supply_register): Update declaration.
2963
b4f5539f
TT
29642002-07-24 Tom Tromey <tromey@redhat.com>
2965
2966 * defs.h (gdb_readline_wrapper): Declare.
2967 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2968 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2969 * top.c (gdb_readline_wrapper): New function.
2970 (command_line_input): Use it.
2971
0818c12a
AC
29722002-07-24 Andrew Cagney <cagney@redhat.com>
2973
2974 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2975 regcache_read and regcache_write.
2976 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2977 * regcache.c: Update.
2978 * sh-tdep.c (sh64_push_arguments): Update comment.
2979 (sh_pseudo_register_read): Update.
2980 (sh_pseudo_register_write): Update.
2981 (sh4_register_read): Update.
2982 (sh4_register_write): Update.
2983 (sh64_pseudo_register_read): Update.
2984 (sh64_pseudo_register_write): Update.
2985 (sh64_register_read): Update.
2986 (sh64_register_write): Update.
2987 * i386-tdep.c (i386_extract_return_value): Update.
2988 (i386_extract_struct_value_address): Update.
2989 (i386_extract_return_value): Update.
2990 * blockframe.c (generic_read_register_dummy): Update.
2991 (generic_call_dummy_register_unwind): Update
2992 * infrun.c (write_inferior_status_register): Update.
2993
f7321c06
JB
29942002-07-23 Jim Blandy <jimb@redhat.com>
2995
2996 * parser-defs.h (expression_context_pc): Make this extern.
2997 (Thanks to Michael Snyder.)
2998
2037aebb
AC
29992002-07-23 Andrew Cagney <ac131313@redhat.com>
3000
3001 GDB 5.2.1 released from 5.2 branch.
3002 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3003 * README: Update to mention 5.2.1.
3004
66504d44
MS
30052002-07-23 Mark Salter <msalter@redhat.com>
3006
3007 * remote.c (remote_read_bytes): Fix check for error.
3008
27bae383
KB
30092002-07-22 Kevin Buettner <kevinb@redhat.com>
3010
3011 * aix-thread.c (language.h): Include.
3012 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3013 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3014 Print newlines at end of debug messages.
3015 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3016 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3017
30182002-07-22 Kevin Buettner <kevinb@redhat.com>
3019
3020 * aix-thread.c (ppc-tdep.h): Include.
3021 (special_register_p): New function.
3022 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3023 (store_regs_user_thread): Use register number information from
3024 gdbarch_tdep struct instead of hardcoded offsets relative to
3025 FIRST_UISA_SP_REGNUM.
3026 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3027 special_register_p() instead of using FPLAST_REGNUM and
3028 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3029 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3030 will be MQ's register number.
3031
30322002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3033
3034 * aix-thread.c (ops): Rename to aix_thread_ops.
3035 (base_ops): Rename to base_target.
3036 (ops_attach): Rename to aix_thread_attach.
3037 (ops_detach): Rename to aix_thread_detach.
3038 (ops_resume): Rename to aix_thread_detach.
3039 (ops_wait): Rename to aix_thread_wait.
3040 (ops_kill): Rename to aix_thread_kill.
3041 (init_ops): Rename to init_aix_thread_ops.
3042 (ops_fetch_register): Rename to aix_thread_fetch_register.
3043 (ops_store_register): Rename to aix_thread_store_register.
3044 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3045 (ops_thread_alive): Rename to aix_thread_thread_alive.
3046 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3047 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3048 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3049 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3050 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3051 (store_regs_lib): Rename to store_regs_user_thread.
3052 (store_regs_kern): Rename to store_regs_kernel_thread.
3053
27bae383 30542002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3055
3056 * aix-thread.c (ops_prepare_to_store): Eliminate.
3057 (init_ops): Don't initialize ops.prepare_to_store.
3058 (store_regs_kern): Pre-fetch register buffers from child,
3059 because some registers may not be in the cache. Copy
3060 regs from register cache only if they are cached.
3061 (store_regs_lib): Copy regs from register cache only
3062 if they are cached.
3063 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3064 fill_gprs64): Ditto.
3065
61c5da0b
KB
30662002-07-22 Kevin Buettner <kevinb@redhat.com>
3067
3068 * aix-thread.c (gdb_assert.h): Include.
3069 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3070 register sizes (from register cache) match size of buffer holding
3071 register data.
3072 (fill_sprs32): Change parameter types to match those in the ptrace()
3073 buffer.
3074 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3075 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3076
30772002-07-22 Michael Snyder <msnyder@redhat.com>
3078
3079 * aix-thread.c (supply_sprs64): Cosmetic change.
3080 (supply_sprs32): Cosmetic change.
3081 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3082 (fill_sprs64): Use regcache_collect instead of read_register.
3083 (store_regs_lib): Use regcache_collect instead of
3084 read_register. Use fill_sprs32 instead of fill_sprs64,
3085 if debugging a 32-bit architecture.
3086 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3087 out of the register cache, instead of passing a pointer into
3088 the register cache directly to ptrace. Use regcache_collect
3089 insteaad of read_register.
3090 (ops_prepare_to_store): Use target_read_registers instead
3091 of read_register_bytes.
3092
36479eb1
AS
30932002-07-20 Aidan Skinner <aidan@velvet.net>
3094
3095 * MAINTAINERS: Add self under write after approval.
3096
80ae6ee2
AS
30972002-07-20 Aidan Skinner <aidan@velvet.net>
3098
3099 * ada-tasks.c: Change k&r style function definitions to prototyped
3100 form.
3101
8a8ab2b9
AC
31022002-07-19 Andrew Cagney <ac131313@redhat.com>
3103
3104 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3105 * x86-64-tdep.c: Include "objfiles.h".
3106 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3107 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3108
fb16b900
ML
31092002-07-17 Michal Ludvig <michal@suse.cz>
3110
3111 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3112 (update_context): Initialise cfa variable.
3113
0fe7bf7b
MS
31142002-07-17 Michael Snyder <msnyder@redhat.com>
3115
3116 * aix-thread.c: Shorten some long lines.
3117 Bring comments into line with code spec.
3118
488f131b
JB
31192002-07-18 Joel Brobecker <brobecker@gnat.com>
3120
3121 * infrun.c: Re-indent using gdb_indent.sh.
3122
46c415d2
JB
31232002-07-18 Joel Brobecker <brobecker@gnat.com>
3124
3125 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3126 Leave the indentation temporarily untouched, to minimize the diffs.
3127
cdecafbe
EZ
31282002-07-18 Elena Zannoni <ezannoni@redhat.com>
3129
3130 * stabsread.c: Make os9k sections of the code obsolete,
3131 for real this time.
3132 * stabsread.h: Make os9k sections of the code obsolete.
3133
7b6aa020
ML
31342002-07-18 Michal Ludvig <mludvig@suse.cz>
3135
09ec9b38
ML
3136 * linux-low.c (regsets_store_inferior_registers): Add free()
3137 at the end of a loop to prevent memory leak.
3138 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3139 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3140 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3141 line a comment.
4894ac5d 3142 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3143
233282cd
JB
31442002-07-17 Jim Blandy <jimb@redhat.com>
3145
3146 * macrocmd.c (info_macro_command): Remove newline from error
3147 message.
3148
7b6aa020 31492002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3150
3151 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3152 (sh_gdbarch_init): Use it for sh-dsp.
3153
f7ef9339
KB
31542002-07-16 Kevin Buettner <kevinb@redhat.com>
3155
3156 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3157 64-bit DWARF2 format.
3158
8dd72958
JB
31592002-07-16 Joel Brobecker <brobecker@gnat.com>
3160
3161 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3162 <sys/proc.h> when not available.
3163
a99a9e1b
AC
31642002-07-16 Andrew Cagney <ac131313@redhat.com>
3165
3166 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3167 * stabsread.c: Make os9k sections of the code obsolete.
3168 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3169 * config/i386/i386os9k.mt: Make file obsolete.
3170 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3171 (COMMON_OBS): Remove os9kread.o
3172 (SFILES): Remove os9kread.c.
3173 (os9kread.o, remote-os9k.o): Make target obsolete.
3174 * remote-os9k.c: Make file obsolete.
3175 * os9kread.c: Make file obsolete.
3176 * Makefile.in
3177
7a3085c1
AC
31782002-07-16 Andrew Cagney <ac131313@redhat.com>
3179
3180 * NEWS: Mention that the FR30 has been made obsolete.
3181 * fr30-tdep.c: Make file obsolete.
3182 * config/fr30/tm-fr30.h: Ditto.
3183 * config/fr30/fr30.mt: Ditto.
3184 * configure.tgt: Make fr30-*-elf obsolete.
3185 * MAINTAINERS: Make fr30-elf obsolete.
3186
28a93f5a
PM
31872002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3188
3189 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3190 found is not inside a section.
3191
be006b8b
KB
31922002-07-15 Kevin Buettner <kevinb@redhat.com>
3193
3194 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3195 strerror().
3196 (pdc_realloc): Use xrealloc() instead of realloc().
3197
14fa3751
KB
31982002-07-15 Kevin Buettner <kevinb@redhat.com>
3199
3200 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3201 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3202 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3203 macros.
3204
42cc437f
KB
32052002-07-15 Kevin Buettner <kevinb@redhat.com>
3206
3207 * aix-thread.c (ptrace_check): Eliminate goto.
3208 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3209 problem.
3210
8e2c28d4
KB
32112002-07-15 Kevin Buettner <kevinb@redhat.com>
3212
3213 * aix-thread.c (gdbcmd.h): Include.
3214 (DEBUG, DBG, DBG2, dbg): Eliminate.
3215 (debug_aix_thread): New static global.
3216 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3217 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3218 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3219 invocations to DBG and DBG2 macros to test against
3220 ``debug_aix_thread'' and call fprintf_unfiltered().
3221 (_initialize_aix_thread): Add new command "set debug aix-thread".
3222
30413464
AC
32232002-07-15 Andrew Cagney <ac131313@redhat.com>
3224
3225 From Gerhard Tonn <TON@de.ibm.com>:
3226 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3227 instead of supply_register.
3228
7c43edc1
AC
32292002-07-15 Andrew Cagney <ac131313@redhat.com>
3230
3231 * dwarf2cfi.c: Include "gdb_assert.h".
3232 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3233 non-NULL.
3234 (update_context): Do not use __func__. Add missing ``break''.
3235 (update_context): Do not use __func__.
3236
9364a0ef
EZ
32372002-07-15 Elena Zannoni <ezannoni@redhat.com>
3238
3239 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3240 and its setting. Set gdbarch instruction printing functions
3241 directly. For non-rs6000 case use new function
3242 gdb_print_insn_powerpc.
3243 (gdb_print_insn_powerpc): New function.
3244
3fbeef0b
AC
32452002-07-13 Andrew Cagney <ac131313@redhat.com>
3246
92eb23c5 3247 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3248 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3249 * configure.tgt: Mark d30v-*-* as obsolete.
3250 * d30v-tdep.c: Mark file as obsolete.
3251 * config/d30v/d30v.mt: Ditto.
3252 * config/d30v/tm-d30v.h: Ditto.
3253
aacb1f0a
AS
32542002-07-13 Aidan Skinner <aidan@velvet.net>
3255
3256 * ada-tasks.c (add_task_entry): replace calls to
3257 malloc() with xmalloc
3258 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3259
3260 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3261 ada_finish_decode_line_1, all_sals_for_line
3262 ada_breakpoint_rewrite): replace calls to free() with xfree()
3263
c11d79f2
KB
32642002-07-12 Kevin Buettner <kevinb@redhat.com>
3265
3266 From Nicholas Duffek (with minor changes by Martin Hunt,
3267 Louis Hamilton, and Kevin Buettner):
3268 * aix-thread.c: New file.
3269
8e19ed76
PS
32702002-07-12 Petr Sorfa <petrs@caldera.com>
3271
3272 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3273 complaint for invalid attribute class or form.
3274 (read_func_scope): DW_AT_frame_base
3275 better handling of DW_AT_block*.
3276 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3277 better handling of DW_AT_block*.
3278 (read_common_block): DW_AT_location
3279 better handling of DW_AT_block*.
3280 (read_partial_die): DW_AT_location better handling
3281 of DW_AT_block*.
3282 (new_symbol): DW_AT_external better handling of
3283 DW_AT_block*. Proper initialization of variable
3284 "addr".
3285 (attr_form_is_block): New function that returns true
3286 if the attribute's form is of DW_FORM_block*.
3287
295401f7
DJ
32882002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3289
3290 * valops.c (find_method_list): Remove comment about
3291 removed STATIC_MEMFUNCP argument.
3292 (value_find_oload_method_list): Likewise.
3293
e42dc924
KB
32942002-07-12 Kevin Buettner <kevinb@redhat.com>
3295
3296 From Nicholas Duffek:
3297 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3298 target_new_objfile_hook.
3299
6904b546
KB
33002002-07-12 Kevin Buettner <kevinb@redhat.com>
3301
3302 From Nicholas Duffek:
3303 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3304 csect.
3305
53fe9346
AC
33062002-07-12 Andrew Cagney <cagney@redhat.com>
3307
3308 * MAINTAINERS: Mention --enable-sim-build-warnings.
3309 (m68hc11-elf): Disable sim build warnings.
3310 (m32r-elf): Mark as broken obsolete candidate.
3311 (x86_64-linux-gnu): Mark as buildable with -Werror.
3312 (arm-elf): Change -w to ``,'' which enables warnings but not
3313 -Werror.
3314
af5f3db6
AC
33152002-07-12 Andrew Cagney <ac131313@redhat.com>
3316
3317 * bcache.h: Update copyright.
3318 (struct bstring, struct bcache): Move definition to "bcache.c".
3319 Replaced by opaque declaration.
3320 (bcache_xfree): Replace free_bcache.
3321 (bcache_xmalloc, bcache_memory_used): Declare.
3322
3323 * bcache.c: Update copyright.
3324 (struct bstring, struct bcache): Moved to here from "bcache.h".
3325 Update comments.
3326 (bcache_xmalloc, bcache_memory_used): New functions.
3327 (bcache_xfree): Replace function free_bcache.
3328
3329 * Makefile.in (objfiles.o): Add $(bcache_h).
3330 (objfiles_h): Remove $(bcache_h).
3331 (symfile.o): Add $(bcache_h).
3332
3333 * symmisc.c: Update copyright.
3334 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3335 (print_objfile_statistics): Use bcache_memory_used.
3336
3337 * symfile.c: Include "bcache.h".
3338 (reread_symbols): Use bcache_xfree.
3339 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3340 (add_psymbol_to_list): Pass psymbol_cache by value.
3341 (add_psymbol_with_dem_name_to_list): Ditto.
3342
3343 * objfiles.h: Update copyright.
3344 (struct bcache): Declare opaque. Do not include "bcache.h".
3345 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3346 bcache'' pointers.
3347 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3348
3349 * objfiles.c: Include "bcache.h". Update copyright.
3350 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3351 macro_cache.
3352 (free_objfile): Use bcache_xfree.
3353
444199e7
GS
33542002-07-11 Grace Sainsbury <graces@redhat.com>
3355
3356 * monitor.c (monitor_fetch_register): Make name a constant.
3357 (monitor_store_register): Same.
3358
261397f8
DJ
33592002-07-11 Daniel Jacobowitz <drow@mvista.com>
3360
3361 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3362 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3363 (finish_block) For non-function blocks, hash the symbol table. For
3364 function blocks, mark the symbol table as unhashed.
3365 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3366 (msymbol_hash_iw): Likewise.
3367 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3368 value.
3369 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3370 (lookup_minimal_symbol): Likewise for both.
3371 * symtab.h (struct block): Add `hashtable' flag. Comment the
3372 hashtable.
3373 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3374 (ALL_BLOCK_SYMBOLS): Update.
3375 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3376 (struct symbol): Add `hash_next' pointer.
3377 * symtab.c (lookup_block_symbol): Search using the hash table when
3378 possible.
3379 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3380 (search_symbols, find_addr_symbol): Likewise.
3381
3382 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3383 (read_dst_symtab): Likewise.
3384 * jv-lang.c (get_java_class_symtab): Likewise.
3385 * mdebugread.c: Include "gdb_assert.h".
3386 (shrink_block): Assert that the block being modified is not hashed.
3387 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3388 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3389 symbols.
3390 (dump_symtab): Recognize hashed blocks.
3391 * printcmd.c (print_frame_args): Assert that function blocks do not
3392 have hashed symbol tables.
3393 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3394 (fill_in_ada_prototype, debug_print_block): Likewise.
3395 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3396
6f0eaa01
CV
33972002-07-11 Corinna Vinschen <vinschen@redhat.com>
3398
3399 * stack.c (print_frame): Use result of frame_address_in_block()
3400 instead of fi->pc when evaluating symbols.
3401 (backtrace_command_1): Ditto.
3402
a208b0cb
AC
34032002-07-11 Andrew Cagney <cagney@redhat.com>
3404
3405 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3406 Make static.
3407
3408 * arm-tdep.c (arm_register_name): Make return type constant.
3409
a6b6b089
AC
34102002-07-10 Andrew Cagney <ac131313@redhat.com>
3411
5ae5f592
AC
3412 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3413 prototype.
3414 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3415 * s390-tdep.c (s390_fp_regnum): Ditto.
3416 (s390_read_fp): Ditto.
3417 (s390_pop_frame): Ditto.
3418 (_initialize_s390_tdep): Ditto.
3419 * remote.c (get_remote_state): Ditto.
3420 * procfs.c (mappingflags): Ditto.
3421 * memattr.c (_initialize_mem): Ditto.
3422 * mcore-tdep.c (mcore_pop_frame): Ditto.
3423 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3424 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3425 * language.c (set_case_str): Ditto.
3426 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3427 * frv-tdep.c (new_variant): Ditto.
3428 (frv_stopped_data_address): Ditto.
3429 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3430 (context_alloc): Ditto.
3431 (frame_state_alloc): Ditto.
3432 (unwind_tmp_obstack_init): Ditto.
3433 (unwind_tmp_obstack_free): Ditto.
3434 (cfi_read_fp): Ditto.
3435 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3436 (cris_pop_frame): Ditto.
3437 * c-lang.c (scanning_macro_expansion): Ditto.
3438 (finished_macro_expansion): Ditto.
3439 (c_preprocess_and_parse): Ditto.
3440 * gdbarch.sh: Ditto.
3441 * gdbarch.h, gdbarch.c: Regenerate.
3442 * config/mn10200/tm-mn10200.h: Adjust indentation.
3443 * target.c: Adjust indentation.
3444 * symtab.h: Adjust indentation.
3445 * stabsread.h: Adjust indentation.
3446 * remote-es.c: Adjust indentation.
3447 * os9kread.c: Adjust indentation.
3448
34492002-07-10 Andrew Cagney <ac131313@redhat.com>
3450
a6b6b089
AC
3451 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3452 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3453
a1789893
GS
34542002-07-10 Grace Sainsbury <graces@redhat.com>
3455
3456 * NEWS: Mention m68k, mcore multi-arching.
3457 * MAINTAINERS: Change status of m68k, mcore to reflect
3458 multi-arching.
3459
02f0d45d
DJ
34602002-07-10 Daniel Jacobowitz <drow@mvista.com>
3461
3462 * valops.c (find_overload_match): Free oload_syms.
3463
f15f768e
JB
34642002-07-09 Joel Brobecker <brobecker@gnat.com>
3465
3466 Define HAVE_SYS_PROC_H if sys/proc.h exists
3467 * configure.in: Add check for sys/proc.h
3468 * config.in: Regenerate.
3469 * configure: Regenerate.
3470
902a7139
GS
34712002-07-09 Grace Sainsbury <graces@redhat.com>
3472
3473 * config/m68k/tm-m68k.h: Remove macros wrapped in
3474 #if !GDB_MULTI_ARCH.
3475
a534e424
AC
34762002-07-08 Andrew Cagney <ac131313@redhat.com>
3477
3478 * config.in, configure: Regenerate.
3479
9b94f7bf
MK
34802002-07-08 Mark Kettenis <kettenis@gnu.org>
3481
3482 * dwarf2cfi.c: Include "gcore.h".
3483 (execute_stack_op): Fix implementation of the
3484 DW_OP_deref and DW_OP_deref_size operators by letting do their
3485 lookup in the target.
3486
1d34db41
MK
34872002-07-07 Mark Kettenis <kettenis@gnu.org>
3488
3489 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3490 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3491 tdep->sc_sp_offset.
3492
79d5b63a
DJ
34932002-07-05 Daniel Jacobowitz <drow@mvista.com>
3494
3495 Fix PR gdb/595, gdb/602
3496 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3497 Don't call value_cast, just read the vtable pointer; update comments
3498 to match.
3499
3bb912e8
GS
35002002-07-05 Grace Sainsbury <graces@redhat.com>
3501
3502 * config/mcore/tm-mcore.h: Remove file.
3503 * config/mcore/mcore.mt: Remove definition of TM_FILE
3504 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3505
ca39387d
MK
35062002-07-05 Mark Kettenis <kettenis@gnu.org>
3507
3508 * i386bsd-tdep.c: Include "gdb_string.h".
3509
efdc1108
GS
35102002-07-04 Grace Sainsbury <graces@redhat.com>
3511
3512 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3513 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3514 mcore-tdep.
3515 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3516 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3517 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3518 (RETVAL_REGNUM): Move macros from tm-mcore.h
3519 (mcore_reg_struct_has_addr): New function.
3520 (mcore_gdbarch_init): Added initializations for the macros removed
3521 from tm-mcore.h.
3522
bb21884d
MK
35232002-07-04 Mark Kettenis <kettenis@gnu.org>
3524
3525 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3526 traditonal string branding within the ELF header.
3527
228c6d41
DJ
35282002-07-04 Daniel Jacobowitz <drow@mvista.com>
3529
3530 * symtab.c (remove_params): New function.
3531 (make_symbol_overload_list): Use it instead of cplus_demangle.
3532 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3533
2404952e
MK
35342002-07-04 Mark Kettenis <kettenis@gnu.org>
3535
e5e4acad
MK
3536 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3537
baadce09
MK
3538 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3539 New variables.
3540 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3541 and tdep->sigtramp_end.
3542 * i386obsd-nat.c: New file.
3543 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3544
2404952e
MK
3545 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3546 Don't call get_current_frame().
3547
9b4f1ba7
PM
35482002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3549
3550 * i386-nat.c (child_post_startup_inferior): New function
3551 calling i386_cleanup_dregs if
3552 I386_USE_GENERIC_WATCHPOINTS is defined.
3553 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3554 conditional to acknowledge that i386-nat.c has its
3555 own child_post_startup_inferior function.
3556
c0d1d883
MK
35572002-07-04 Mark Kettenis <kettenis@gnu.org>
3558
00f8375e
MK
3559 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3560 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3561 instead of MAX_REGISTER_RAW_SIZE.
3562 (i386_extract_return_value, i386_extract_struct_value_address):
3563 Convert to use regcache.
3564 (i386_gdbarch_init): Set max_register_raw_size and
3565 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3566 Set extract_return_value and extract_struct_value_address instead
3567 of their deprecated variants.
3568
c0d1d883
MK
3569 Convert i386 target to generic dummy frames.
3570 * i386-tdep.c: Include "symfile.h".
3571 (i386_frameless_signal_p): Consider a function to be frameless if
3572 the pc points at the first instruction of the function.
3573 (i386_frame_chain): Handle (generic) call dummies.
3574 (i386_frame_saved_pc): Likewise.
3575 (i386_frame_init_saved_regs): Remove code dealing with call
3576 dummies on the stack.
3577 (i386_push_dummy_frame): Removed.
3578 (i386_call_dummy_words): Removed.
3579 (i386_fix_call_dummy): Removed.
3580 (i386_push_return_address): New function.
3581 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3582 parameter, and don't call get_current_frame.
3583 (i386_pop_frame): New function.
3584 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3585 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3586 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3587 call_dummy_length to 0, set call_dummy_words to NULL, set
3588 sizeof_call_dummy_words to 0, set fix_call_dummy to
3589 generic_fix_call_dummy, set pc_in_call_dummy to
3590 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3591 generic_push_dummy_frame, set push_return_address to
3592 i386_push_return_address and set frame_chain_valid to
3593 generic_file_frame_chain_valid.
3594
049ee0e4
AC
35952002-07-03 Andrew Cagney <ac131313@redhat.com>
3596
3597 * gdbarch.sh (struct regcache): Add opaque declaration.
3598 (EXTRACT_RETURN_VALUE): New architecture method.
3599 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3600 * gdbarch.h, gdbarch.c: Regenerate.
3601 * arch-utils.c (legacy_extract_return_value): New function.
3602 * arch-utils.h (legacy_extract_return_value): Declare.
3603 * values.c (value_being_returned): Re-enable code handling
3604 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3605 deprecated_grub_regcache_for_registers call to block handling
3606 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3607 (EXTRACT_RETURN_VALUE): Do not define.
3608
4e0d9804
GS
36092002-07-03 Grace Sainsbury <graces@redhat.com>
3610
3611 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3612 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3613 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3614 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3615 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3616 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3617 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3618 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3619 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3620 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3621 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3622 argument so the function fits the prototype in the architecture
3623 vector.
3624 (mcore_pop_frame): Remove argument so the function fits the
3625 prototype. Use get_current_frame instead of the argument.
3626 (mcore_push_arguments): Change type of struct_return so the
3627 function can be used in the architecture vector.
3628 (mcore_store_struct_return): Add.
3629 (mcore_frame_init_saved_regs): Add.
3630 (mcore_gdbarch_init): Add function calls to replace the macros
3631 removed from tm-mcore.h
3632
36160dc4
AC
36332002-07-03 Andrew Cagney <ac131313@redhat.com>
3634
3635 * infcmd.c (print_return_value): Remove compatibility code calling
3636 deprecated_grub_regcache_for_registers.
3637
3638 * values.c: Include "regcache.h".
3639 (value_being_returned): Update. Use
3640 deprecated_grub_regcache_for_registers to extract the register
3641 buffer address.
3642 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3643 ``struct regcache''.
3644 * Makefile.in (values.o): Add dependency on $(regcache_h).
3645
3646 * inferior.h (run_stack_dummy): Change type of second parameter to
3647 a ``struct regcache''.
3648 * valops.c (hand_function_call): Change type of retbuf to ``struct
3649 regcache''. Allocate using regcache_xmalloc, clean using
3650 make_cleanup_regcache_xfree.
3651 * infcmd.c (run_stack_dummy): Update. Use
3652 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3653
3654 * regcache.c (do_regcache_xfree): New function.
3655 (make_cleanup_regcache_xfree): New function.
3656 * regcache.h (make_cleanup_regcache_xfree): Declare.
3657
e64d9b3d
MH
36582002-07-03 Martin M. Hunt <hunt@redhat.com>
3659
4dd79c29
MH
3660 * event-top.c (command_line_handler): Don't read past
3661 beginning of buffer.
e64d9b3d 3662
4dd79c29
MH
36632002-07-03 Martin M. Hunt <hunt@redhat.com>
3664
e64d9b3d
MH
3665 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3666 struct frame_id.
3667 (varobj_create): Store frame_id for root.
3668 (varobj_gen_name): Use xasprintf.
3669 (varobj_update): Save and restore frame using get_frame_id() and
3670 frame_find_by_id().
3671 (create_child): Use xasprintf.
3672 (new_root_variable): Initialize frame_id.
3673 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3674 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3675 to prevent memory leak.
3676
26e6c56a
AC
36772002-07-03 Andrew Cagney <ac131313@redhat.com>
3678
3679 * valops.c (hand_function_call): Move declaration of retbuf to
3680 start of function, allocate using malloc, add a cleanup but before
3681 the inf_status cleanup, cleanup the buffer. Rename local variable
3682 old_chain to inf_status_cleanup.
3683
f436dd25
MH
36842002-07-03 Martin M. Hunt <hunt@redhat.com>
3685
3686 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3687
3688 * cli/cli-decode.c (cmd_func_p): New function.
3689 (cmd_func): New function.
3690
3691 * command.h: Add cmd_func() and cmd_func_p().
3692
4cfe2084
GS
36932002-07-03 Grace Sainsbury <graces@redhat.com>
3694
3695 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3696 (REGISTER_SIZE): Remove.
3697 (MAX_REGISTER_RAW_SIZE): Remove.
3698 (REGISTER_VIRTUAL_TYPE): Remove.
3699 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3700 (REGISTER_NAME): Remove.
3701 (USE_GENERIC_DUMMY_FRAMES): Remove.
3702 (CALL_DUMMY): Remove.
3703 (CALL_DUMMY_START_OFFSET): Remove.
3704 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3705 (CALL_DUMMY_LOCATION): Remove.
3706 (FIX_CALL_DUMMY): Remove.
3707 (CALL_DUMMY_ADDRESS): Remove.
3708 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3709 (SAVE_DUMMY_FRAME_TOS): Remove.
3710 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3711 (mcore_register_virtual_type): New function.
3712 (mcore_register_byte): New function.
3713 (mcore_register_size): New function.
3714 (mcore_register_name): New function.
3715 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3716 macros removed from tm-mcore.h.
3717 (mcore_dump_tdep): Add.
3718 (_initialize_mcore_tdep): Add gdbarch_register call.
3719
4fd667e9
MK
37202002-07-03 Mark Kettenis <kettenis@gnu.org>
3721
3722 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3723 frameless_look_for_prologue, such that we actually call this
3724 function.
3725
42f99ac2
JB
37262002-07-02 Joel Brobecker <brobecker@gnat.com>
3727
3728 * frame.h (frame_address_in_block): New function.
3729
3730 * blockframe.c (frame_address_in_block): New function extracted
3731 from get_frame_block().
3732 (get_frame_block): Use frame_address_in_block().
3733 (block_innermost_frame): Use frame_address_in_block() to match
3734 the frame pc address against the block boundaries rather than
3735 the frame pc directly. This prevents a failure when a frame pc
3736 is actually a return-address pointing immediately after the end
3737 of the given block.
3738
103a1597 37392002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3740
3741 * MAINTAINERS: Add self under write after approval.
3742
37432002-07-02 Grace Sainsbury <graces@redhat.com>
3744
103a1597
GS
3745 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3746 used in architecture vector. The default is
3747 m68k_local_breakpoint_from_pc.
3748 (m68k_local_breakpoint_from_pc): Add.
3749 (enum): Add register numbers from tm-m68k.h.
3750 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3751 vector.
3752 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3753 GDB_MULTI_ARCH_PARTIAL.
3754 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3755 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3756 m68k-tdep.c.
3757 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3758 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3759 to enum in m68k-tdep.c
3760
7a5a0534
JB
37612002-07-02 Joel Brobecker <brobecker@gnat.com>
3762
3763 * solib-osf.c (open_map): Compute the list of shared libraries
3764 loaded by the inferior, rather than the list of libraries loaded
3765 by GDB itself. Otherwise, GDB ends up reading the symbols from
3766 the wrong shared libraries...
3767
6f558d74
MK
37682002-07-02 Mark Kettenis <kettenis@gnu.org>
3769
b7d15bf7
MK
3770 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3771 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3772 macros.
3773 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3774 Remove functions.
3775 (FRAMELESS_SIGNAL): Remove function.
3776 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3777 i386_linux_saved_pc_after_call): Removed.
3778 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3779 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3780 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3781
6bff26de
MK
3782 * i386-tdep.c (i386_frameless_signal_p): New function.
3783 (i386_frame_chain): Deal with frameless signals.
3784 (i386_sigtramp_saved_sp): New function.
3785 (i386_frame_saved_pc): Deal with frameless signals.
3786 (i386_saved_pc_after_call): Make sure the correct value is
3787 returned just after entry into a sigtramp.
3788 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3789 i386fbsd4_sc_sp_offset): New variables.
3790 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3791 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3792 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3793 similiar to what we already did for sc_pc_offset.
3794 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3795 tdep->sc_sp_offset.
3796
6f558d74
MK
3797 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3798
145564b7
ML
37992002-07-02 Michal Ludvig <mludvig@suse.cz>
3800
3801 * config/i386/tm-x86-64linux.h: New.
3802 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3803 definitions.
3804 * config/i386/nm-x86-64.h: Rename to ...
3805 * config/i386/nm-x86-64linux.h: ... this one.
3806 * config/i386/x86-64linux.mh: Reflect the above change.
3807
3a1e71e3
MK
38082002-07-01 Mark Kettenis <kettenis@gnu.org>
3809
21d0e8a4
MK
3810 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3811 with sigcontext_addr. Add sc_sp_offset.
3812 (i386bsd_sigtramp_saved_pc): Remove prototype.
3813 (i386bsd_sicontext_addr): Add prototype.
3814 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3815 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3816 (i386_svr4_sigtramp_saved_pc): Removed.
3817 (i386_svr4_sigcontext_addr): New function.
3818 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3819 Initialize tdep->sigcontext_addr instead. Initialize
3820 tdep->sc_pc_offset and tdep->sc_sp_offset.
3821 (i386_gdbarch_init): Likewise.
3822 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3823 any more.
3824 (i386bsd_sigtramp_saved_pc): Remove function.
3825 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3826 Initialize tdep->sigcontext_addr instead. Initialize
3827 tdep->sc_pc_offset.
3828 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3829 of tdep->sigtramp_saved_pc.
3830 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3831 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3832 instead.
3833
3a1e71e3
MK
3834 * i386-tdep.c (i386_frameless_function_invocation,
3835 i386_frame_num_args, i386_frame_init_saved_regs,
3836 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3837 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3838 i386_extract_return_value, i386_store_return_value,
3839 i386_extract_struct_value_address, i386_register_virtual_type,
3840 i386_register_convertible, i386_register_convert_to_virtual,
3841 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3842 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3843 static.
3844
52e9098c
MK
38452002-07-01 Mark Kettenis <kettenis@gnu.org>
3846
77b13a25
MK
3847 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3848
52e9098c
MK
3849 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3850 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3851 this macro. Include "value.h".
3852
1b372fff
AS
38532002-06-30 Aidan Skinner <aidan@velvet.net>
3854
3855 * ada-exp.tab.c: remove as it's a generated file
3856 * ada-lex.c: remove as it's a generated file
3857
9c5045b5
MK
38582002-06-30 Mark Kettenis <kettenis@gnu.org>
3859
4a93c5bb
MK
3860 * config/i386/tm-i386.h (struct frame_info, struct
3861 frame_saved_regs, struct value, struct type): Remove forward
3862 declarations.
3863
322d4fe0
MK
3864 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3865 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3866 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3867 (FILL_FPXREGSET): Define.
3868
fdd8263d
MK
3869 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3870
482e577b
MK
3871 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3872 i[3456]86-*-netbsd* case.
3873 * config/i386/tm-obsd.h: Removed.
3874 * config/i386/obsd.mt: Removed.
3875 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3876 core-aout.o.
3877 (MH_CFLAGS): Add -DYYDEBUG=0.
3878
6916549a
MK
3879 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3880 i386nbsd_sc_pc_offset on OpenBSD too.
3881
9c5045b5
MK
3882 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3883 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3884 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3885 define.
3886 * i386bsd-tdep.c: Include "arch-utils.h".
3887 (i386bsd_aout_in_solib_call_trampoline): New function.
3888 (i386bsd_init_abi): Set in_solib_call_trampoline to
3889 i386bsd_aout_in_solib_call_trampoline.
3890 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3891 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3892
aa84d1bb
AC
38932002-06-28 Andrew Cagney <ac131313@redhat.com>
3894
3895 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3896 (struct obstack, struct bcache): Add opaque declarations.
3897 * Makefile.in (macrotab_h): Update
3898
b4d83933
AC
38992002-06-28 Andrew Cagney <ac131313@redhat.com>
3900
3901 * blockframe.c (generic_find_dummy_frame): Change return type to
3902 ``struct regcache''.
3903 (struct dummy_frame): Replace field ``registers'' with regcache, a
3904 struct regcache object.
3905 (generic_find_dummy_frame): Update.
3906 (generic_push_dummy_frame): Update. Use regcache_xfree,
3907 regcache_xmalloc and regcache_cpy.
3908 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3909 regcache_xfree.
3910 (deprecated_generic_find_dummy_frame): Update.
3911 (generic_read_register_dummy): Update. Use
3912 regcache_read_as_address.
3913 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3914 (generic_get_saved_register): Update. Use regcache_read.
3915
08c0b5bc
AC
39162002-06-28 Andrew Cagney <ac131313@redhat.com>
3917
3918 * Makefile.in (objfiles_h): Add $(bcache_h).
3919 * objfiles.h: Include "bcache.h".
3920
3921 * Makefile.in (symtab_h): Remove $(bcache_h).
3922 * symtab.h: Do not include "bcache.h".
3923
1f89801a
AC
39242002-06-28 Andrew Cagney <ac131313@redhat.com>
3925
3926 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3927 generic_func_frame_chain_valid.
3928
b9644b58
DB
39292002-06-28 David O'Brien <obrien@FreeBSD.org>
3930
3931 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3932 * config/i386/tm-fbsd.h: Likewise.
3933
dd486634
AC
39342002-06-28 Andrew Cagney <ac131313@redhat.com>
3935
3936 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3937 generic_unwind_get_saved_register.
3938
0b434a00
AC
39392002-06-27 Andrew Cagney <ac131313@redhat.com>
3940
3941 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3942 * regcache.c (supply_register): Add missing argument to
3943 register_buffer call.
3944
f30e5a77
AC
39452002-06-27 Andrew Cagney <ac131313@redhat.com>
3946
3947 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3948 Solaris /bin/grep does not not like it. From Peter Schauer.
3949
9f064c95
TT
39502002-06-26 Tom Tromey <tromey@redhat.com>
3951
3952 * command.h (add_setshow_cmd): Declare.
3953 (add_setshow_cmd_full): Declare.
3954 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3955 returns void. Use add_setshow_cmd_full.
3956 (add_setshow_cmd_full): New function.
3957 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3958 (add_setshow_boolean_cmd): Likewise.
3959
099c7589
JT
39602002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3961
3962 * config/vax/tm-vax.h: Protect from multiple inclusion.
3963 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3964 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3965 * config/vax/tm-vaxbsd.h: ...here. New file.
3966 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3967
1d049c5e
JT
39682002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3969
3970 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3971 (BELIEVE_PCC_PROMOTION): Remove.
3972 (AP_REGNUM): Move to...
3973 * config/vax/nm-vax.h: ...here.
3974 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3975 (vax_breakpoint_from_pc): New function.
3976 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3977 and gdbarch_believe_pcc_promotion.
3978
4791e091
JT
39792002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3980
3981 * Makefile.in (vax_tdep_h): Define.
3982 (vax-tdep.o): Use $(vax_tdep_h).
3983 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3984 (vax_dump_tdep): New function.
3985 (_initialize_vax_tdep): Register vax_dump_tdep.
3986 * vax-tdep.h: Include osabi.h.
3987 (struct gdbarch_tdep): New.
3988
da130f98
AC
39892002-06-26 Andrew Cagney <cagney@redhat.com>
3990
3991 * frame.h (deprecated_generic_find_dummy_frame): Rename
3992 generic_find_dummy_frame.
3993 * blockframe.c (generic_find_dummy_frame): Make static.
3994 (deprecated_generic_find_dummy_frame): New function.
3995 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3996 generic_find_dummy_frame with deprecated_find_dummy_frame.
3997 (sh64_nofp_frame_init_saved_regs): Ditto.
3998 (sh_fp_frame_init_saved_regs): Ditto.
3999 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4000 (s390_frame_chain): Ditto.
4001 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4002
6300c360
GS
40032002-06-26 Grace Sainsbury <graces@redhat.com>
4004
4005 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4006 gdbarch vector are at the top.
4007 (NUM_REGS): Remove.
4008 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4009 (FRAME_ARGS_ADDRESS): Remove.
4010 (FRAME_LOCALS_ADDRESS): Remove.
4011 (FRAME_NUM_ARGS): Remove.
4012 (FRAME_ARGS_SKIP): Remove.
4013 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4014 (m68k_gdbarch_init): Add gdbarch initializations for macros
4015 undefined in tm-m68k.h
4016
1c617db8
GS
40172002-06-26 Grace Sainsbury <graces@redhat.com>
4018
4019 * monitor.h: Add the function regname to monitor_ops
4020 structure. This way NUM_REGS does not have to be a constant.
4021 * monitor.c (monitor_fetch_register): Added support for regname
4022 function. The function is called if the array regnames is NULL.
4023 (monitor_store_register): Same.
da130f98
AC
4024 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4025 regnames array.
1c617db8
GS
4026 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4027 cpu32bug_cmds.regname to point to new function.
4028 * abug-rom.c (abug_regname): Same as above.
4029 (init_abug_cmds): Same.
4030 * dbug-rom.c (dbug_regname): Same as above.
4031 (init_dbug_cmds): Same.
4032 * remote-est.c (est_regname): Same.
4033 (init_est_cmds): Same.
4034 * rom68k-rom.c (rom68k_regname): Same.
4035 (init_rom68k_cmds): Same.
4036
ea9365bb
TT
40372002-06-25 Tom Tromey <tromey@redhat.com>
4038
4039 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4040
72cec141
AC
40412002-06-25 Andrew Cagney <cagney@redhat.com>
4042
4043 * infrun.c (stop_registers): Change variable's type to ``struct
4044 regcache'''.
4045 (xmalloc_inferior_status): Delete function.
4046 (free_inferior_status): Delete function.
4047 (normal_stop): Use regcache_cpy.
4048 (struct inferior_status): Change type of fields ``stop_registers''
4049 and ``registers'' to ``struct regcache''.
4050 (write_inferior_status_register): Use regcache_write.
4051 (save_inferior_status): Instead of calling
4052 xmalloc_inferior_status, allocate the inf_status buffer directly.
4053 Use regcache_dup_no_passthrough and regcache_dup to save the
4054 buffers.
4055 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4056 Replace the stop_registers regcache instead of overriding it. Use
4057 regcache_xfree. Instead of calling free_inferior_status, xfree
4058 the buffer directly.
4059 (discard_inferior_status): Use regcache_xfree. Instead of calling
4060 free_inferior_status, xfree the buffer directly.
4061 (build_infrun): Use regcache_xmalloc.
4062 (_initialize_infrun): Delete redundant call to build_infrun.
4063
4064 * Makefile.in (infcmd.o): Add $(regcache_h).
4065
4066 * infcmd.c: Include "regcache.h".
4067 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4068 obtain the address of `stop_registers' register buffer.
4069 (print_return_value): Ditto.
4070
4071 * inferior.h (struct regcache): Add opaque declaration.
4072 (stop_registers): Change variable's declared type to ``struct
4073 regcache''.
4074
defc6f8c
TT
40752002-06-24 Tom Tromey <tromey@redhat.com>
4076
c0e624e7
TT
4077 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4078 * target.c (initialize_targets): Fixed typo in
4079 trust-readonly-sections `show' documentation.
4080
defc6f8c
TT
4081 * main.c: Marked all strings with _().
4082
2b236d82
DH
40832002-06-24 Don Howard <dhoward@redhat.com>
4084
4085 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4086 that means max CORE_ADDR+1.
4087 (lookup_mem_region): Ditto.
4088 (mem_info_command): Ditto.
4089
942dc0e9
GS
40902002-06-24 Grace Sainsbury <graces@redhat.com>
4091
4092 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4093 (REGISTER_BYTES_OK): Remove.
4094 (REGISTER_BYTES): Remove.
4095 (STORE_STRUCT_RETURN): Remove.
4096 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4097 (STORE_RETURN_VALUE): Remove.
4098 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4099 (FRAME_CHAIN): Remove.
4100 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4101 (FRAME_SAVED_PC): Remove.
4102 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4103 (m68k_store_struct_return): Add.
4104 (m68k_deprecated_extract_return_value): Add.
4105 (m68k_deprecated_extract_struct_value_address): Add.
4106 (m68k_store_return_value): Add.
4107 (m68k_frame_chain): Add.
4108 (m68k_frameless_function_invocation): Add.
4109 (m68k_frame_saved_pc): Add.
4110 (m68k_gdbarch_init): added set_gdbarch calls for new
4111 functions and deleted macros.
4112
03c30d4d
TT
41132002-06-23 Tom Tromey <tromey@redhat.com>
4114
4115 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4116 (ALLDEPFILES): Likewise.
4117 (udiheaders): Removed.
4118 (udip2soc.o): Likewise.
4119 (udi2go32.o): Likewise.
4120 (udr.o): Likewise.
4121 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4122
37e71372
AC
41232002-06-22 Andrew Cagney <ac131313@redhat.com>
4124
06a6ac57
AC
4125 * infrun.c (_initialize_infrun): Delete unnecessary call to
4126 build_infrun.
4127
37e71372
AC
4128 * regcache.h: Update comments describing the regcache_cpy family
4129 of functions.
4130 (regcache_save, regcache_restore): Delete declaration.
4131 (regcache_save_no_passthrough): Delete declaration.
4132 (regcache_restore_no_passthrough): Delete declaration.
4133 * regcache.c (regcache_save): Delete function.
4134 (regcache_save_no_passthrough): Delete function.
4135 (regcache_restore): Delete function.
4136 (regcache_restore_no_passthrough): Delete function.
4137
78f6d055
AC
41382002-06-21 Andrew Cagney <ac131313@redhat.com>
4139
4140 * config/m68k/tm-m68k.h: Fix typo.
4141 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4142 (m68k_frame_init_saved_regs): Declare.
4143
78b119cb
JB
41442002-06-21 Jim Blandy <jimb@redhat.com>
4145
4146 Remove some vestiges of Harris 88k support.
4147 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4148 register numbering quirk.
4149 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4150 odd symbols occurring in Harris 88k ELF targets.
4151
0fbb3da7
TT
41522002-06-21 Tom Tromey <tromey@redhat.com>
4153
4154 * gdb_locale.h: New file.
4155 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4156 (defs_h): Added gdb_locale.h.
4157 * configure, config.in: Rebuilt.
4158 * configure.in (PACKAGE): Define.
4159 * defs.h: Include gdb_locale.h.
4160 * main.c (captured_main): Call setlocale, bindtextdomain,
4161 textdomain.
4162
456f8b9d
DB
41632002-06-21 Dave Brolley <brolley@redhat.com>
4164
4165 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4166 * config/frv/frv.mt: New file.
4167 * config/frv/tm-frv.h: New file.
4168 * configure.tgt: Support frv-*-*.
4169 * Makefile.in (frv-tdep.o): New target.
4170 * frv-tdep.c: New file.
4171 * NEWS: Mention frv.
4172
cdd463f9
DB
41732002-06-21 Dave Brolley <brolley@redhat.com>
4174
4175 * MAINTAINERS: Add self to "Write After Approval" list.
4176
5d3ed2e3
GS
41772002-06-21 Grace Sainsbury <graces@redhat.com>
4178
4179 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4180 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4181 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4182 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4183 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4184
4185 * m68k-tdep.c: Include arch-utils.h
4186 (m68k_register_raw_size): Add.
4187 (m68k_register_virtual_size): Add.
4188 (m68k_register_virtual_type): Add.
4189 (m68k_register_name): Add.
4190 (m68k_stack_align): Add.
4191 (m68k_register_byte): Add.
4192 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4193 tm-m68k.h.
4194
7f8e7424
GS
41952002-06-21 Grace Sainsbury <graces@redhat.com>
4196
a2c6a6d5 4197 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4198 m68k_find_saved_regs.
4199 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4200 references to it with frame->saved_regs.
7f8e7424
GS
4201 (m68k_gdbarch_init): Added function calls to initialize the
4202 gdbarch structure.
a2c6a6d5
GS
4203 (m68k_fix_call_dummy): Add.
4204 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4205 (CALL_DUMMY): Remove.
4206 (CALL_DUMMY_LENGTH): Remove.
4207 (CALL_DUMMY_START_OFFSET): Remove.
4208 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4209 (FIX_CALL_DUMMY): Remove.
4210 (PUSH_DUMMY_FRAME): Remove.
4211 (POP_FRAME): Remove.
7f8e7424 4212
f461f5cf
PM
42132002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4214
4215 * parse.c (parse_fprintf): New function used to avoid calls to
4216 fprintf in bison parser generated debug code.
4217 * parser-defs.h: Declaration of new parse_fprintf function.
4218 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4219 Set YYDEBUG to 1 by default.
4220 Set YYFPRINTF as parse_fprintf.
4221
7f0c12ed
ML
42222002-06-21 Michal Ludvig <mludvig@suse.cz>
4223
4224 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4225 encoding anymore.
4226 (pointer_encoding, enum ptr_encoding): New.
4227 (execute_cfa_program): Take care about pointer encoding.
4228 (dwarf2_build_frame_info): Only call parse_frame_info for
4229 .debug_frame and .eh_frame.
4230 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4231 fixed augmentation handling, added relative addressing,
4232 ignore duplicate FDEs. Added comments.
19d833a2 4233 * dwarf2cfi.c: Reindented.
7f0c12ed 4234
87c4a039
EZ
42352002-06-20 Elena Zannoni <ezannoni@redhat.com>
4236
4237 * event-top.c (command_handler): Don't use space_at_cmd_start
4238 unless there is sbrk() on the host. Assign time and space data
4239 to union fields of the appropriate length.
4240
1cf877ad
ML
42412002-06-20 Michal Ludvig <mludvig@suse.cz>
4242
4243 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4244 x86_64_register_name. Return type changed to 'const char *'.
4245 (x86_64_register_name2nr): Rename to x86_64_register_number.
4246 (x86_64_gdbarch_init): Update to reflect the change.
4247 * x86-64-tdep.h: Ditto.
4248 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4249 (supply_fpregset): Ditto.
4250
3fadccb3
AC
42512002-06-19 Andrew Cagney <cagney@redhat.com>
4252
4253 * regcache.h: Update copyright.
4254 (struct regcache, struct gdbarch): Add opaque declarations.
4255 (current_regcache): Declare global variable.
4256 (regcache_read, regcache_write): Add gdbarch parameter.
4257 (regcache_save, regcache_save_no_passthrough)
4258 (regcache_restore, regcache_restore_no_passthrough)
4259 (regcache_dup, regcache_dup_no_passthrough)
4260 (regcache_cpy, regcache_cpy_no_passthrough)
4261 (deprecated_grub_regcache_for_registers)
4262 (deprecated_grub_regcache_for_register_valid)
4263 (regcache_valid_p): Add function declarations.
4264
4265 * regcache.c: Update copyright.
4266 (regcache_descr_handle): New global variable.
4267 (struct regcache_descr): Define.
4268 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4269 (regcache_descr, xfree_regcache_descr): New functions.
4270 (struct regcache): Define.
4271 (regcache_xmalloc, regcache_xfree): New functions.
4272 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4273 (regcache_dup, regcache_dup_no_passthrough): New functions.
4274 (regcache_valid_p, regcache_read_as_address): New functions.
4275 (deprecated_grub_regcache_for_registers): New function.
4276 (deprecated_grub_regcache_for_register_valid): New function.
4277 (current_regcache): New global variable.
4278 (register_buffer): Add regcache parameter. Update calls.
4279 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4280 (read_register_gen, write_register_gen): Update register_buffer
4281 call. Test for legacy_p instead of gdbarch_register_read_p or
4282 gdbarch_register_write_p.
4283 (regcache_collect): Update register_buffer call.
4284 (build_regcache): Rewrite. Use deprecated grub functions.
4285 (regcache_save, regcache_save_no_passthrough): New functions.
4286 (regcache_restore, regcache_restore_no_passthrough): New
4287 functions.
4288 (_initialize_regcache): Create the regcache_data_handle. Swap
4289 current_regcache global variable.
4290
4291 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4292 parameter to regcache_read and regcache_write calls.
4293 (sh4_register_read): Ditto.
4294 (sh64_pseudo_register_read): Ditto.
4295 (sh64_register_read): Ditto.
4296 (sh_pseudo_register_write): Ditto.
4297 (sh4_register_write): Ditto.
4298 (sh64_pseudo_register_write): Ditto.
4299 (sh64_register_write): Ditto.
4300
4301 * defs.h (XCALLOC): Define.
4302
152d9db6
GS
43032002-06-19 Grace Sainsbury <graces@redhat.com>
4304
4305 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4306 * m68k-tdep.c (m68k_gdbarch_init): Added.
4307 (m68k_dump_tdep): Added.
4308
170911c7
DJ
43092002-06-19 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * ada-lang.c (fill_in_ada_prototype): Update comment.
4312
2e4ebe70
DJ
43132002-06-19 Daniel Jacobowitz <drow@mvista.com>
4314
4315 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4316 MIPS_ABI_LAST.
4317 (mips_abi_string, mips_abi_strings): New.
4318 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4319 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4320 tdep->mips_abi_string. Honor mips_abi_string. Default to
4321 O32 if no ABI is found.
4322 (mips_dump_tdep): Use mips_abi_strings.
4323 (mips_abi_update): New function.
4324 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4325 ``set mips abi'' and ``show mips abi''. Check the size of
4326 mips_abi_strings.
4327
16775908
AC
43282002-06-19 Andrew Cagney <cagney@redhat.com>
4329
4330 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4331 constant.
4332
5051bfa4 43332002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4334
5051bfa4
JB
4335 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4336 current frame using only the first stack size adjustment. All
4337 subsequent size adjustments are not considered to be part of
4338 the "static" part of the current frame.
4339 Compute the address of the saved registers relative to the
4340 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4341 in use in this frame.
4342
56468235
DH
43432002-06-18 Don Howard <dhoward@redhat.com>
4344
4345 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4346 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4347 suggesting this solution.
4348
0b624158
AC
43492002-06-18 Andrew Cagney <ac131313@redhat.com>
4350
4351 * config/romp/xm-rtbsd.h: Delete file.
4352 * config/romp/rtbsd.mh: Delete file.
4353
221ea385
KS
43542002-06-18 Keith Seitz <keiths@redhat.com>
4355
4356 * breakpoint.c (condition_command): Post breakpoint_modify
4357 when a condition is added to an existing breakpoint.
4358 (commands_command): Likewise for commands.
4359 (set_ignore_count): Likewise for ignore counts.
4360 If no tty, do not simply return, still need to send event
4361 notification.
4362 (ignore_command): Only print a newline if the command came
4363 from a tty.
4364 Don't call breakpoints_changed, since this is now properly
4365 handled by set_ignore_count.
4366
5402eed1
AC
43672002-06-18 Andrew Cagney <cagney@redhat.com>
4368
4369 * MAINTAINERS: Note that cris-elf target can be compiled with
4370 -Werror.
4371 * cris-tdep.c (cris_register_name): Make return type constant.
4372 (cris_breakpoint_from_pc): Ditto.
4373
cc22880b
ML
43742002-06-18 Michal Ludvig <mludvig@suse.cz>
4375
4376 * frame.h (struct frame_info): Change type of context to
4377 'struct context'.
4378
fa88f677
AC
43792002-06-17 Andrew Cagney <cagney@redhat.com>
4380
4381 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4382 pointer.
4383 * gdbarch.h, gdbarch.c: Regenerate.
4384 * config/mips/tm-mips.h (mips_register_name): Update.
4385 * i386-tdep.h (i386_register_name): Update.
4386 * mips-tdep.c (mips_register_name): Update
4387 * alpha-tdep.c (alpha_register_name): Update.
4388 * arch-utils.c (legacy_register_name): Update.
4389 * arch-utils.h (legacy_register_name): Update.
4390 * avr-tdep.c (avr_register_name): Update.
4391 * ia64-tdep.c (ia64_register_name): Update.
4392 * i386-tdep.c (i386_register_name): Update.
4393 * sparc-tdep.c (sparc32_register_name): Update.
4394 (sparc64_register_name): Update.
4395 (sparclite_register_name): Update.
4396 (sparclet_register_name): Update.
4397 * sh-tdep.c (sh_generic_register_name): Update.
4398 (sh_sh_register_name): Update.
4399 (sh_sh3_register_name): Update.
4400 (sh_sh3e_register_name): Update.
4401 (sh_sh_dsp_register_name): Update.
4402 (sh_sh3_dsp_register_name): Update.
4403 (sh_sh4_register_name): Update.
4404 (sh_sh64_register_name): Update.
4405 * s390-tdep.c (s390_register_name): Update.
4406 * rs6000-tdep.c (rs6000_register_name): Update.
4407 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4408 (ns32k_register_name_32382): Update.
4409 * d10v-tdep.c (d10v_ts2_register_name): Update.
4410 (d10v_ts3_register_name): Update.
4411 * xstormy16-tdep.c (xstormy16_register_name): Update.
4412 * vax-tdep.c (vax_register_name): Update.
4413 * v850-tdep.c (v850_register_name): Update.
4414 * m68hc11-tdep.c (m68hc11_register_name): Update.
4415 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4416 (am33_register_name): Update.
4417
ea1e7ef6
GS
44182002-06-17 Grace Sainsbury <graces@redhat.com>
4419
4420 * m68k-tdep.c: Reindented.
4421
9b02dd1b
AC
44222002-06-17 Andrew Cagney <ac131313@redhat.com>
4423
4424 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4425 list of predefined types.
4426
8758dec1
MK
44272002-06-16 Mark Kettenis <kettenis@gnu.org>
4428
b6197528
MK
4429 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4430 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4431 REGISTER_CONVERT_TO_RAW): Remove defines.
4432 (i386_register_virtual_type, i386_register_convertible,
4433 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4434 Remove prototypes.
4435 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4436 macros mentioned above.
4437
82b47e62
MK
4438 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4439 (i386lynx_saved_pc_after_call): Remove prototype.
4440 * i386ly-tdep.c: Include "i386-tdep.h".
4441 (i386lynx_saved_pc_after_call): Make static. Use
4442 read_memory_nobpt instead of read_memory. Use
4443 read_memory_unsigned_integer instead of read_memory_integer.
4444 (i386lynx_init_abi): New function.
4445 (i386lynx_coff_osabi_sniffer): New function.
4446 (_initialize_i386bsd_tdep): New function.
4447
8758dec1
MK
4448 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4449 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4450 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4451 (i386_fix_call_dummy): Remove prototype.
4452 * i386-tdep.c (i386_call_dummy_words): New variable.
4453 (i386_gdbarch_init): Adjust for removal of the
4454 macros mentioned above.
4455
e9e68a56
AC
44562002-06-15 Andrew Cagney <ac131313@redhat.com>
4457
4458 * command.h (add_setshow_auto_boolean_cmd): Replace
4459 add_set_auto_boolean_cmd.
4460 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4461 add_set_auto_boolean_cmd.
4462 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4463 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4464 mask-address'' command.
4465 (show_mask_address): Add cmd parameter.
4466 * remote.c (add_packet_config_cmd): Update. Change type of
4467 set_func and show_func to cmd_sfunc_ftype.
4468 (_initialize_remote): Update `set remote Z-packet'
4469 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4470 (show_remote_protocol_e_packet_cmd): Ditto.
4471 (show_remote_protocol_E_packet_cmd): Ditto.
4472 (show_remote_protocol_P_packet_cmd): Ditto.
4473 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4474 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4475 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4476 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4477 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4478 (show_remote_protocol_Z_packet_cmd): Ditto.
4479 (show_remote_protocol_binary_download_cmd): Ditto.
4480 (show_remote_cmd): Pass NULL to all of above.
4481
fc08ec52
MK
44822002-06-15 Mark Kettenis <kettenis@gnu.org>
4483
4484 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4485 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4487 POP_FRAME): Remove defines.
4488 (i386_push_arguments, i386_store_struct_return,
4489 i386_extract_return_value, i386_store_return_value,
4490 i386_extract_struct_value_address, i386_push_dummy_frame,
4491 i386_pop_frame): Renove prototypes.
4492 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4493 macros mentioned above.
4494
e707bbc2
AC
44952002-06-15 Andrew Cagney <ac131313@redhat.com>
4496
4497 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4498 add_set_boolean_cmd.
4499 (add_setshow_cmd): New function.
4500 * command.h (add_setshow_boolean_cmd): Replace
4501 add_set_boolean_cmd.
4502 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4503 and ``set rdiromatzero''.
4504 * maint.c (_initialize_maint_cmds): Update commented out code.
4505 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4506 * target.c (initialize_targets): Update `set
4507 trust-readonly-sections'.
4508 * remote.c (_initialize_remote): Update `set remotebreak'.
4509
42fdc8df
MK
45102002-06-15 Mark Kettenis <kettenis@gnu.org>
4511
93924b6b
MK
4512 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4513 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4514 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4515 fit into multi-arch framework.
4516 (i386_breakpoint_from_pc): New function.
4517 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4518 above.
4519
42fdc8df
MK
4520 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4521 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4522 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4523 (i386_frameless_function_invocation, i386_frame_num_args,
4524 i386_frame_init_saved_regs): Remove prototypes.
4525 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4526 macros mentioned above.
4527
9773a94b
AC
45282002-06-15 Andrew Cagney <ac131313@redhat.com>
4529
4530 * cli/cli-decode.c (set_cmd_cfunc): Update.
4531 (set_cmd_sfunc): Update.
4532 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4533 (set_cmd_sfunc, set_cmd_cfunc): Update.
4534 * cli/cli-decode.h: Update.
4535
6e157172
MK
45362002-06-15 Mark Kettenis <kettenis@gnu.org>
4537
4538 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4539 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4540
7f19b9a2
AC
45412002-06-15 Andrew Cagney <ac131313@redhat.com>
4542
4543 * defs.h (auto_boolean): Declare enum.
4544 * command.h (cmd_auto_boolean): Delete enum.
4545 * mips-tdep.c (mask_address_var): Update.
4546 (mips_mask_address_p): Update.
4547 (show_mask_address): Update.
4548 * remote.c (struct packet_config): Update.
4549 (update_packet_config): Update.
4550 (show_packet_config_cmd): Update.
4551 (packet_ok): Update.
4552 (add_packet_config_cmd): Update.
4553 (_initialize_remote):
4554 * command.h: Update.
4555 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4556 (do_setshow_command): Update.
4557 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4558 * cli/cli-decode.h: Update.
4559
1cf88de5
MK
45602002-06-15 Mark Kettenis <kettenis@gnu.org>
4561
22ba8cf2
MK
4562 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4563 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4564 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4565 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4566 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4567 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4568
762c5349
MK
4569 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4570 list of DJGPP COFF targets.
4571
091198bb
MK
4572 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4573 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4574 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4575 (FP0_REGNUM): Remove define.
4576 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4577 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4578 (i386_register_virtual_size): Remove protoype.
4579 * i386-tdep.c (i386_register_virtual_size): Removed.
4580 (i386_extract_return_value, i386_store_return_value): Use
4581 FP0_REGNUM instead of NUM_FREGS to determine whether the
4582 floating-point registers are available.
4583 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4584 Adjust for removal of macros mentioned above.
4585
45862002-06-15 Mark Kettenis <kettenis@gnu.org>
4587
fcc9bf01
MK
4588 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4589 comments.
4590 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4591 Remove prototypes.
4592 (supply_gregset, fill_gregset): Remove use of register keyword and
4593 remove declaration for regmap. Use I386_NUM_GREGS instead of
4594 NUM_REGS and NUM_FREGS.
4595 (FPREGSET_FSAVE_OFFSET): Remove.
4596 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4597 NUM_FREGS to determine whether the floating-point registers are
4598 available.
4599
65e78234
MK
4600 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4601 gnu_store_registers): Replace usage of NUM_GREGS with
4602 I386_NUM_GREGS.
4603
98df6387
MK
4604 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4605 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4606 usage of NUM_GREGS with I386_NUM_GREGS.
4607
099a9414
MK
4608 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4609
57976e88
MK
4610 * i386bsd-nat.c: Include "i386-tdep.h".
4611 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4612 I386_NUM_GREGS.
4613
b335f4a6
MK
4614 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4615 and associated comment. They no longer make any sense, since we
4616 don't use this file anymore on Linux.
4617
1cf88de5
MK
4618 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4619 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4620 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4621 elements in these arrays.
4622 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4623 MAX_NUM_REGS.
4624
daa66587
MK
46252002-06-15 Mark Kettenis <kettenis@gnu.org>
4626
4627 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4628 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4629
26e9b323
AC
46302002-06-14 Andrew Cagney <cagney@redhat.com>
4631
4632 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4633 EXTRACT_RETURN_VALUE.
4634 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4635 EXTRACT_STRUCT_VALUE_ADDRESS.
4636 * gdbarch.h, gdbarch.c: Regenerate.
4637
4638 * values.c (value_being_returned): Handle
4639 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4640 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4641
4642 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4643 * arm-tdep.c (arm_gdbarch_init): Update.
4644 * avr-tdep.c (avr_gdbarch_init): Update.
4645 * cris-tdep.c (cris_gdbarch_init): Update.
4646 * d10v-tdep.c (d10v_gdbarch_init): Update.
4647 * ia64-tdep.c (ia64_gdbarch_init): Update.
4648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4650 * s390-tdep.c (s390_gdbarch_init): Update.
4651 * sh-tdep.c (sh_gdbarch_init): Update.
4652 * s390-tdep.c (s390_gdbarch_init): Update.
4653 * sparc-tdep.c (sparc_gdbarch_init): Update.
4654 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4655 * v850-tdep.c (v850_gdbarch_init): Update.
4656 * vax-tdep.c (vax_gdbarch_init): Update.
4657 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4659
4660 * config/arc/tm-arc.h: Update.
4661 * config/d30v/tm-d30v.h: Update.
4662 * config/fr30/tm-fr30.h: Update.
4663 * config/h8300/tm-h8300.h: Update.
4664 * config/h8500/tm-h8500.h: Update.
4665 * config/i386/tm-i386.h: Update.
4666 * config/i386/tm-ptx.h: Update.
4667 * config/i386/tm-symmetry.h: Update.
4668 * config/i960/tm-i960.h: Update.
4669 * config/m32r/tm-m32r.h: Update.
4670 * config/m68k/tm-delta68.h: Update.
4671 * config/m68k/tm-linux.h: Update.
4672 * config/m68k/tm-m68k.h: Update.
4673 * config/m88k/tm-m88k.h: Update.
4674 * config/mcore/tm-mcore.h: Update.
4675 * config/mips/tm-mips.h: Update.
4676 * config/mn10200/tm-mn10200.h: Update.
4677 * config/pa/tm-hppa.h: Update.
4678 * config/pa/tm-hppa64.h: Update.
4679 * config/sparc/tm-sp64.h: Update.
4680 * config/sparc/tm-sparc.h: Update.
4681 * config/sparc/tm-sparclet.h: Update.
4682 * config/z8k/tm-z8k.h: Update.
4683
5179e78f
AC
46842002-06-14 Andrew Cagney <cagney@redhat.com>
4685
4686 * Makefile.in (i386_linux_tdep_h): Define.
4687 (i386_tdep_h, i387_tdep_h): Define.
4688 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4689 $(i386_tdep_h) and $(i387_tdep_h).
4690 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4691
8201327c
MK
46922002-06-14 Mark Kettenis <kettenis@gnu.org>
4693
edf393ac
MK
4694 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4695 Already covered by the default.
4696
896fb97d
MK
4697 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4698 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4699 (i386_gdbarch_init): Initialize long_double_format and long_double
4700 bit.
4701
8201327c
MK
4702 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4703 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4704 Move these to ...
4705 * config/i386/i386sol2.mh: ... here.
4706 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4707 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4708 (SIGCONTEXT_PC_OFFSET): Remove define.
4709 (IN_SIGTRAMP): Remove define.
4710 * i386-sol2-tdep.c: New file.
4711
4712 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4713 * config/i386/tm-i386nw.h: Removed.
4714
4715 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4716 USE_STRUCT_CONVENTION): Remove defines.
4717 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4718 (get_longjmp_target): Remove prototype.
4719 (IN_SIGTRAMP): Remove define.
4720 (i386bsd_in_sigtramp): Remove prototype.
4721 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4722 function. Update comment accordingly
4723 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4724 (FRAME_SAVED_PC): Remove define.
4725 (i386bsd_frame_saved_pc): Remove prototype.
4726 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4727 GET_LONGJMP_TARGET): Remove defines.
4728 (get_longjmp_target): Remove prototype.
4729 (IN_SIGTRAMP): Remove define.
4730 (i386bsd_in_sigtramp): Remove prototype.
4731 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4732 function. Update comment accordingly
4733 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4734 (FRAME_SAVED_PC): Remove define.
4735 (i386bsd_frame_saved_pc): Remove prototype.
4736 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4737 Remove prototype.
4738 (USE_STRUCT_CONVENTION): Remove prototype.
4739 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4740 declaration.
4741 (_initialize_i386bsd_nat): Revise logic to determine some
4742 constants at compile time when compiling a native GDB. Warn if
4743 things don't match up with what we expect.
4744 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4745 Remove variables.
4746 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4747 to use date stored in `struct gdbarch_tdep'.
4748 (i386bsd_sigcontext_offset): Remove varaible.
4749 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4750 stored in `struct gdbarch_tdep'.
4751 (i386bsd_frame_saved_pc): Make static.
4752 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4753 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4754 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4755 i386fbsd4_sc_pc_offset): New variables.
4756 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4757 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4758 functions.
4759 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4760 functions.
4761 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4762 Modify the value of i386fbsd_sigtramp_start and
4763 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4764 i386fbsd_sigtramp_end.
4765 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4766 function.
4767
4768 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4769 define to i386-linux-tdep.h.
4770 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4771 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4772 defines.
4773 (i386_linux_register_name, i386_linux_register_byte,
4774 i386_linux_register_raw_size): Remove prototypes.
4775 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4776 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4777 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4778 TARGET_WRITE_PC): Remove defines.
4779 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4780 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4781 i386_linux_write_pc): Remove prototypes.
4782 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4783 (get_longjmp_target): Remove prototype.
4784 * i386-linux-tdep.h: New file.
4785 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4786 * i386-linux-tdep.c: Include "i386-tdep.h" and
4787 "i386-linux-tdep.h".
4788 (i386_linux_register_name, i386_linux_register_byte,
4789 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4790 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4791 Make static.
4792 (i386_linux_init_abi): New function.
4793 (_initialize_i386_linux_tdep): New function.
4794
4795 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4796 (i386_saved_pc_after_call): Remove prototype.
4797 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4798 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4799 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4800 (i386_register_name, i386_stab_reg_to_regnum,
4801 i386_dwarf_reg_to_regnum): Remove prototypes.
4802 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4803 SIZEOF_SSE_REGS): Remove defines.
4804 (REGISTER_BYTES): Remove define.
4805 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4806 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4807 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4808 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4809 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4810 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4811 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4812 (get_longjmp_target): Remove prototype.
4813 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4814 (sigtramp_saved_pc): Remove define.
4815 (i386v4_sigtramp_saved_pc): Remove prototype.
4816 * config/i386/tm-go32.h (FRAME_CHAIN,
4817 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4818 (i386go32_frame_saved_pc): Remove prototype.
4819 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4820 (get_longjmp_target): Remove prototype.
4821 * i386-tdep.h: Include "osabi.h".
4822 (enum i386_abi): Removed.
4823 (enum struct_return): New enum.
4824 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4825 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4826 sc_pc_offset members.
4827 (i386_gdbarch_register_os_abi): Remove prototype.
4828 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4829 I386_SSE_NUM_REGS): New defines.
4830 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4831 I386_SSE_SIZEOF_REGS): New defines.
4832 (i386_register_name, i386_register_byte, i386_register_raw_size):
4833 New prototypes.
4834 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4835 (i386bsd_sigtramp_saved_pc): New prototype.
4836 * i386-tdep.c: Don't include "elf-bfd.h".
4837 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4838 i386_frame_chain, i386_saved_pc_after_call): Make static.
4839 (i386_frame_saved_pc): Rewrite to call architecture dependent
4840 function to deal with signal handlers. Make static.
4841 (i386go32_frame_saved_pc): Removed.
4842 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4843 Removed.
4844 (i386_get_longjmp_target): New function.
4845 (default_struct_convention, pcc_struct_convention,
4846 reg_struct_convention, valid_conventions, struct_convention): New
4847 variables.
4848 (i386_use_struct_convention): New function.
4849 (i386v4_sigtramp_saved_pc): Renamed to
4850 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4851 (i386_pc_in_sigtramp): New function.
4852 (i386_abi_names): Removed.
4853 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4854 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4855 Removed.
4856 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4857 i386_gdbarch_register_os_abi): Removed.
4858 (struct i386_abi_handler): Removed.
4859 (i386_abi_handler_list): Removed.
4860 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4861 functions.
4862 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4863 i386_nw_init_abi): New functions.
4864 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4865 Use set_gdbarch_xxx() calls instead of relying on macros for a
4866 number of calls.
4867 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4868 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4869 Register the various architecture variants defined in this file.
4870
ad2f7632
DJ
48712002-06-14 Daniel Jacobowitz <drow@mvista.com>
4872
4873 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4874 (struct main_type): Remove arg_types member. Update comments for
4875 struct field.
4876 (TYPE_ARG_TYPES): Remove.
4877 (TYPE_FN_FIELD_ARGS): Update.
4878 (smash_to_method_type): Update prototype.
4879
4880 * c-typeprint.c (cp_type_print_method_args): Take method type
4881 instead of argument list. Use new argument layout. Simplify.
4882 (c_type_print_args): Use new argument layout. Simplify.
4883 (c_type_print_base): Update call to cp_type_print_method_args.
4884 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4885 argument; use die->type instead. Update call to
4886 smash_to_method_type.
4887 (read_structure_scope): Update call to dwarf2_add_member_fn.
4888 * gdbtypes.c (allocate_stub_method): Update comment.
4889 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4890 Use new argument layout.
4891 (check_stub_method): Use new argument layout. Don't count
4892 void as an argument.
4893 (print_arg_types): Update comments. Use new argument layout.
4894 (recursive_dump_type): Don't print arg_types member.
4895 * hpread.c (hpread_read_struct_type): Use new argument layout.
4896 (fixup_class_method_type): Likewise.
4897 (hpread_type_lookup): Likewise.
4898 * stabsread.c (read_type): Update calls to read_args and
4899 smash_to_method_type.
4900 (read_args): Use new argument layout. Simplify.
4901 * valops.c (typecmp): Use new argument layout. Update parameters
4902 and comments. Simplify.
4903 (hand_function_call): Use new argument layout.
4904 (search_struct_method): Update call to typecmp.
4905 (find_overload_match): Use new argument layout.
4906
6da02953
DJ
49072002-06-13 Daniel Jacobowitz <drow@mvista.com>
4908
4909 * NEWS: Mention multithreaded debug support for gdbserver.
4910
519b2366
DJ
49112002-06-13 Daniel Jacobowitz <drow@mvista.com>
4912
4913 * MAINTAINERS: Mention NEWS.
4914
6c0d6680
DJ
49152002-06-13 Daniel Jacobowitz <drow@mvista.com>
4916
4917 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4918 (struct mips_objfile_private, compare_pdr_entries): New.
4919 (non_heuristic_proc_desc): Read the ".pdr" section if it
4920 is present.
4921
6529d2dd
AC
49222002-06-12 Andrew Cagney <ac131313@redhat.com>
4923
4924 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4925 (arm_debug): New static variable.
4926 (_initialize_arm_tdep): Add ``set debug arm'' command.
4927
26216b98
AC
49282002-06-12 Andrew Cagney <ac131313@redhat.com>
4929
4930 * Makefile.in (sim_arm_h): Define.
4931 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4932 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4933 (arm_register_sim_regno): New function, map an internal REGNUM
4934 onto a simulator register number.
4935 (arm_gdbarch_init): Set register_sim_regno.
4936
814b3ba0
AH
49372002-06-09 Aldy Hernandez <aldyh@redhat.com>
4938
4939 * MAINTAINERS: Add self.
4940
475b0867
JB
49412002-06-11 Jim Blandy <jimb@redhat.com>
4942
919d772c
JB
4943 * source.c (source_info): Mention whether the symtab has
4944 information about preprocessor macros.
4945
475b0867
JB
4946 Call the command `info macro', not `show macro'.
4947 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4948 Fix error message.
4949 (_initialize_macrocmd): Register `info_macro_command' in
4950 `infolist', not `showlist'.
4951
9e364162
DJ
49522002-06-11 Daniel Jacobowitz <drow@mvista.com>
4953
4954 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4955 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4956 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4957 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4958 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4959 unconditionally.
4960 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4961 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4962 (_initialize_mips_tdep): Remove dead code.
4963 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4964 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4965 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4966 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4967 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4968 MIPS_LAST_FP_ARG_REGNUM): Remove.
4969
23aa4c72
ML
49702002-06-11 Michal Ludvig <mludvig@suse.cz>
4971
4972 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4973 (unwind_tmp_obstack_free, parse_frame_info)
4974 (update_context, cfi_read_fp, cfi_write_fp)
4975 (cfi_frame_chain, cfi_init_extra_frame_info)
4976 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4977 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4978
70eb15a4
CV
49792002-06-11 Corinna Vinschen <vinschen@redhat.com>
4980
4981 * v850-tdep.c (v850_type_is_scalar): New function.
4982 (v850_use_struct_convention): Match current gcc implementation
4983 as close as possible.
4984 (v850_push_arguments): Fix stack_offset handling. Don't write
4985 struct_addr into register. This is done by v850_store_struct_return.
4986 (v850_extract_return_value): Care for structs.
4987 (v850_store_return_value): Ditto.
4988 (v850_store_struct_return): Actually write address.
4989
482a4d06
ML
49902002-06-11 Michal Ludvig <mludvig@suse.cz>
4991
4992 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4993 without debug information too.
4994
d855c300
AC
49952002-06-10 Andrew Cagney <ac131313@redhat.com>
4996
4997 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4998 Make multi-arch pure.
4999 * gdbarch.h, gdbarch.c: Re-generate.
5000 * arm-tdep.c (arm_print_float_info): Update.
5001 * arch-utils.h (default_print_float_info): Update.
5002 * arch-utils.c (default_print_float_info): Update.
5003 * infcmd.c (float_info): Update call.
5004
dd12a101
AC
50052002-06-10 Andrew Cagney <ac131313@redhat.com>
5006
5007 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5008 the front of the initialize list.
5009
101dcfbe
AC
50102002-06-10 Andrew Cagney <ac131313@redhat.com>
5011
5012 * infrun.c (struct inferior_status): Replace fields
5013 selected_frame_address and selected_level with field
5014 selected_frame_id.
5015 (save_inferior_status): Update. Use get_frame_id.
5016 (struct restore_selected_frame_args): Delete.
5017 (restore_selected_frame): Update. Use frame_find_by_id.
5018 (restore_inferior_status): Update.
5019
5020 * breakpoint.h (struct breakpoint): Change type of
5021 watchpoint_frame to frame_id.
5022 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5023 call to get_current_frame.
5024 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5025 get_current_frame.
5026 (watchpoint_check): Use frame_find_by_id.
5027
5028 * frame.h (record_selected_frame): Delete declaration.
5029 * stack.c (record_selected_frame): Delete function.
5030
5031 * frame.h (struct frame_id): Define.
5032 (get_frame_id): Declare.
5033 (frame_find_by_id): Declare.
5034 * frame.c (frame_find_by_id): New function.
5035 (get_frame_id): New function.
5036
304270b6
AV
50372002-06-10 Andrey Volkov <avolkov@transas.com>
5038
5039 * ser-e7kpc.c: Fix duplicated define and call of
5040 _initialize_ser_e7000pc
5041
2f2cf184
DJ
50422002-06-09 Daniel Jacobowitz <drow@mvista.com>
5043
5044 * signals/signals.c (target_signal_from_host): Fix #ifdef
5045 SIGRTMIN case.
5046 (do_target_signal_to_host): Likewise.
5047
caaa3122
DJ
50482002-06-09 Daniel Jacobowitz <drow@mvista.com>
5049
5050 * mips-tdep.c (mips_find_abi_section): New function.
5051 (mips_gdbarch_init): Call it.
5052
6ac5df3a
MK
50532002-06-09 Mark Kettenis <kettenis@gnu.org>
5054
5055 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5056 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5057 after Andrew's 2002-06-08 gdbarch change.
5058
82ea117a
MK
50592002-06-09 Mark Kettenis <kettenis@gnu.org>
5060
5061 * i386-linux-nat.c (suppy_gregset): Don't supply
5062 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5063 register cache.
5064 (fill_gregset): Don't fetch it under the same circumstances.
5065
3c25f8c7
AC
50662002-06-09 Andrew Cagney <cagney@redhat.com>
5067
5068 * Makefile.in (callback_h): Define.
5069 (remote_sim_h): Update path to remote-sim.h.
5070 (remote-rdp.o): Add $(callback_h).
5071 (remote-sim.o): Use $(callback_h).
5072 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5073 * remote-rdp.c: Include "gdb/callback.h".
5074
1029b7fa
MK
50752002-06-09 Mark Kettenis <kettenis@gnu.org>
5076
5077 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5078 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5079
616675d3
AC
50802002-06-08 Andrew Cagney <ac131313@redhat.com>
5081
a3efda28
AC
5082 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5083 * rdi-share/serpardr.c: Ditto.
5084 * rdi-share/unixcomm.c: Ditto.
5085 * rdi-share/serdrv.c: Ditto.
5086 * rdi-share/hostchan.h: Ditto.
5087 * rdi-share/hostchan.c: Ditto.
5088 * rdi-share/host.h: Ditto.
5089 * rdi-share/devsw.c: Ditto.
5090
c5f10366
AC
5091 * objfiles.h: Change type of obj_private to void pointer.
5092 * pa64solib.c: Update copyright. Don't include "assert.h", use
5093 strcmp instead of STREQ, use LONGEST, do not use PTR
5094 * somsolib.c: Ditto.
5095
616675d3
AC
5096 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5097 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5098 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5099
e4b415d9
AC
51002002-06-08 Andrew Cagney <ac131313@redhat.com>
5101
5102 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5103 (default_get_saved_register): Delete function.
5104 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5105 generic_unwind_get_saved_register.
5106 * gdbarch.h, gdbarch.c: Re-generate.
5107
ca0d0b52
AC
51082002-06-08 Andrew Cagney <ac131313@redhat.com>
5109
5110 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5111 generic_func_frame_chain_valid.
5112 * gdbarch.h, gdbarch.c: Re-generate.
5113 * blockframe.c (generic_func_frame_chain_valid): Only check
5114 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5115 passing FP to PC_IN_CALL_DUMMY.
5116 Fix PR gdb/360.
5117
76860b5f
AC
51182002-06-08 Andrew Cagney <ac131313@redhat.com>
5119
5120 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5121 (register_gdbarch_data): Initialize init_p.
5122 (gdbarch_data): Initialize data pointer using the init function.
5123 (init_gdbarch_data): Delete function.
5124 (gdbarch_update_p): Update.
5125 (initialize_non_multiarch): Update.
5126 (struct gdbarch): Add field initialized_p.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128
8dda9770
ML
51292002-06-07 Michal Ludvig <mludvig@suse.cz>
5130
5131 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5132 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5133 better do the things actually here.
5134 * x86-64-tdep.c (x86_64_register_name2nr): New.
5135 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5136 (x86_64_gdbarch_init): Respect the above change.
5137 * x86-64-tdep.h (x86_64_register_name2nr)
5138 (x86_64_register_nr2name): Add prototypes.
5139 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5140
3d79a47c
MS
51412002-06-06 Michael Snyder <msnyder@redhat.com>
5142
7bd91a28
MS
5143 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5144 Delete extra braces and re-indent.
5145 (d10v_store_return_value): Char return values
3d79a47c
MS
5146 must be shifted over by one byte in R0.
5147 (d10v_extract_return_value): Delete extra braces, re-indent.
5148
095a4c96
EZ
51492002-06-06 Elena Zannoni <ezannoni@redhat.com>
5150
5151 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5152 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5153 (d10v_integer_to_address): Rewrite.
5154 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5155 the d10v specific functions which take care of converting to the
5156 correct space.
5157
e8a77ca4
EZ
51582002-06-06 Elena Zannoni <ezannoni@redhat.com>
5159
5160 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5161 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5162
4f2e4a4f
AC
51632002-06-02 Andrew Cagney <ac131313@redhat.com>
5164
5165 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5166 includes.
5167 * config/tm-linux.h: Ditto.
5168 * config/alpha/tm-alphalinux.h: Ditto.
5169 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5170 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5171 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5172 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5173 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5174 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5175 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5176 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5177 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5178 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5179 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5180 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5181 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5182 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5183 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5184 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5185 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5186 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5187 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5188 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5189 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5190 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5191 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5192 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5193 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5194 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5195 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5196 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5197 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5198 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5199 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5200 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5201 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5202 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5203 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5204 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5205 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5206
ae2ab2ce
AS
52072002-05-04 Aidan Skinner <aidan@velvet.net>
5208
5209 * ada-exp.tab.c: New file
5210 * ada-exp.y: New file
5211 * ada-lang.c: New file
5212 * ada-lang.h: New file
5213 * ada-lex.c: New file
5214 * ada-lex.l: New file
5215 * ada-tasks.c: New file
5216 * ada-typeprint.c: New file
5217 * ada-valprint.c: New file
5218
0ddd0135
JT
52192002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5220
5221 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5222 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5223
750fbacc
JT
52242002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5225
5226 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5227 insetead of ppc-linux-tdep.o.
5228 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5229 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5230
df94e18a
AC
52312002-06-02 Andrew Cagney <ac131313@redhat.com>
5232
5233 2002-05-07 Christian Groessler <chris@groessler.org>
5234 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5235 bit register contents for little endian hosts.
5236
1a38ab75
AC
52372002-06-01 Andrew Cagney <ac131313@redhat.com>
5238
5239 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5240 any maintainer.
5241
8b1632ac
AC
52422002-06-01 Andrew Cagney <ac131313@redhat.com>
5243
5244 * gdbarch.h: Regenerate.
5245
627054c8
AC
52462002-06-01 Andrew Cagney <ac131313@redhat.com>
5247
5248 * MAINTAINERS: Add everyone to write-after-approval list.
5249
4f460812
AC
52502002-06-01 Andrew Cagney <ac131313@redhat.com>
5251
5252 * stack.c (frame_info): Use frame_register_unwind instead of
5253 saved_regs. Mention when the SP is on the stack or in a register.
5254
5255 * frame.h (frame_register_unwind_ftype): Define. Document.
5256 (struct frame_info): Add field register_unwind and
5257 register_unwind_cache.
5258 (frame_register_unwind): Declare.
5259 (generic_unwind_get_saved_register): Declare.
5260
5261 * frame.c (frame_register_unwind): New function.
5262 (generic_unwind_get_saved_register): New function.
5263
5264 * blockframe.c (generic_call_dummy_register_unwind): New function.
5265 (frame_saved_regs_register_unwind): New function.
5266 (set_unwind_by_pc): New function.
5267 (create_new_frame): New function.
5268 (get_prev_frame): New function.
5269
de888f76
AC
52702002-05-30 Andrew Cagney <ac131313@redhat.com>
5271
5272 * a29k-share/: Delete directory.
5273 * remote-vx29k.c: Delete file.
5274
2f2c3626
JT
52752002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5276
5277 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5278 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5279
9ce5c36a
JT
52802002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5281
5282 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5283 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5284 (sparc64nbsd-nat.o)
5285 (sparcnbsd-nat.o)
5286 (sparcnbsd-tdep.o): New dependency lists.
5287 * NEWS: Note new UltraSPARC NetBSD native configuration.
5288 * configure.host (sparc64-*-netbsd*): New host.
5289 * configure.tgt (sparc-*-netbsdelf*)
5290 (sparc-*-netbsd*): Set gdb_target to nbsd.
5291 (sparc64-*-netbsd*): New target.
5292 * sparc64nbsd-nat.c: New file.
5293 * sparcnbsd-nat.c: New file.
5294 * sparcnbsd-tdep.c: New file.
5295 * sparcnbsd-tdep.h: New file.
5296 * config/sparc/nbsd.mt: New file.
5297 * config/sparc/nbsd64.mh: New file.
5298 * config/sparc/nbsd64.mt: New file.
5299 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5300 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5301 (HOST_IPC): Remove.
5302 * config/sparc/nbsdaout.mt: Remove.
5303 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5304 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5305 (HOST_IPC): Remove.
5306 * config/sparc/nbsdelf.mt: Remove.
5307 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5308 sparc-nat.c compatiblity defines.
5309 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5310 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5311 * config/sparc/tm-nbsd64.h: New file.
5312 * config/sparc/tm-nbsdaout.h: Remove.
5313 * config/sparc/xm-nbsd.h: Remove.
5314
ef3cf062
JT
53152002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5316
5317 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5318 * sparc-tdep.c: Include osabi.h.
5319 (gdbarch_tdep): Add osabi member.
5320 (_initialize_sparc_tdep): Use gdbarch_register.
5321 (sparc_gdbarch_init): Use generic OS ABI framework.
5322 (sparc_dump_tdep): New function.
5323
ee8ff470
KB
53242002-05-30 Kevin Buettner <kevinb@redhat.com>
5325
5326 * corefile.c (do_captured_read_memory_integer): Return non-zero
5327 result.
5328 (safe_read_memory_integer): Copy result of memory read when
5329 status is non-zero. Also, add comments.
5330
7b112f9c
JT
53312002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5332
5333 * Makefile.in (ppc_tdep_h): Define.
5334 (ppc-linux-nat.o)
5335 (ppc-linux-tdep.o)
5336 (rs6000-tdep.o): Use $(ppc_tdep_h).
5337 (ppc-sysv-tdep.o)
5338 (ppcnbsd-nat.o)
5339 (ppcnbsd-tdep.o): New dependency lists.
5340 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5341 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5342 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5343 (ppc_sysv_abi_broken_use_struct_convention)
5344 (ppc_sysv_abi_use_struct_convention)
5345 (ppc_sysv_abi_push_arguments): Move to...
5346 * ppc-sysv-tdep.c: ...here.
5347 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5348 * rs6000-tdep.c (process_note_abi_tag_sections)
5349 (get_elfosabi): Remove.
5350 (rs6000_gdbarch_init): Use generic OS ABI framework.
5351 (rs6000_dump_tdep): New function.
5352 (_initialize_rs6000_tdep): Use gdbarch_register.
5353 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5354 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5355 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5356 of ppc-linux-tdep.o.
5357 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5358 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5359 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5360 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5361 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5362 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5363
480dd42a
JB
53642002-05-29 Jim Blandy <jimb@redhat.com>
5365
5366 * macroscope.c (default_macro_scope): Put `void' in empty argument
5367 list.
5368
4182591f
AC
53692002-05-29 Andrew Cagney <ac131313@redhat.com>
5370
5371 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5372 * arch-utils.c: Include "sim-regno.h".
5373 * gdbarch.sh: Don't include "sim-regno.h".
5374 * gdbarch.h, gdbarch.c: Regenerate.
5375 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5376 here.
5377 * arch-utils.h (legacy_register_sim_regno): To here.
5378 * remote-sim.c (legacy_register_sim_regno): Move function from
5379 here.
5380 * arch-utils.c (legacy_register_sim_regno): To here.
5381
8238d0bf
AC
53822002-05-28 Andrew Cagney <ac131313@redhat.com>
5383
5384 * sim-regno.h: New file.
5385 * Makefile.in (sim_regno_h): Define.
5386 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5387 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5388 (legacy_register_sim_regno): New function.
5389 (one2one_register_sim_regno): New function.
5390 (gdbsim_fetch_register): Rewrite.
5391 (gdbsim_store_register): Only store a register when
5392 REGISTER_SIM_REGNO is valid.
5393 * d10v-tdep.c: Include "sim-regno.h".
5394 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5395 (d10v_ts3_register_sim_regno): Ditto.
5396 * gdbarch.sh: Include "sim-regno.h".
5397 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5398 * gdbarch.h, gdbarch.c: Regenerate.
5399 * arch-utils.h (default_register_sim_regno): Delete declaration.
5400 * arch-utils.c (default_register_sim_regno): Delete function.
5401
485721b1
JT
54022002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5403
5404 * ppcnbsd-nat.c: Rewrite.
5405 * ppcnbsd-tdep.c: New file.
5406 * ppcnbsd-tdep.h: New file.
5407 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5408 solib.o, and solib-svr4.o.
5409 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5410 nbsd-tdep.o, and corelow.o.
5411
697f244d
AC
54122002-05-28 Andrew Cagney <ac131313@redhat.com>
5413
5414 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5415 `tr' and `sed'. Mention that `broken' targets are not expected to
5416 build.
5417
f08caad1 54182002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5419
5420 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5421 Let PC point right after the prologue before looking up symbols.
5422
3139facc
MH
54232002-05-27 Martin M. Hunt <hunt@redhat.com>
5424
5425 * i386-tdep.c (i386_register_virtual_type): Return
5426 builtin_type_vec128i for SSE registers.
5427
5428 * gdbtypes.h (builtin_type_vec128i): Declare.
5429
5430 * gdbtypes.c (build_builtin_type_vec128i): New function.
5431 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5432 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5433 (build_gdbtypes): Initialize new builtin vector types.
5434 (_initialize_gdbtypes): Register new vector types with gdbarch.
5435
6e3ba3b8
JT
54362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5437
5438 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5439 since it has been multi-arch'd.
5440 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5441 Move Alpha and VAX multi-arch news entries to same section
5442 as other multi-arch news.
5443
93d5585d
JT
54442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5445
5446 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5447 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5448 static. Rename some register numbers to put them in ns32k-tdep
5449 private namespace.
5450 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5451 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5452 functions.
5453 (_initialize_ns32k_tdep): Use gdbarch_register.
5454 * ns32k-tdep.h: New file.
5455 * ns32knbsd-tdep.c: New file.
5456 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5457 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5458 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5459 REGISTER_BYTES, REGISTER_BYTE): Remove.
5460 * config/ns32k/tm-ns32k.h: New file.
5461 * config/ns32k/tm-umax.h: Remove.
5462
efb2c70e
JT
54632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5464
5465 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5466 ns32k_store_struct_return, ns32k_extract_return_value,
5467 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5468 functions.
5469 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5470 ns32k_saved_pc_after_call.
5471 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5472 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5473 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5474 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5475 ns32k_extract_struct_value_address.
5476
7bcc927b
JT
54772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5478
5479 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5480 ns32k_fix_call_dummy): New.
5481 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5482 ns32k_call_dummy_words.
5483 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5484 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5485 CALL_DUMMY_NARGS): Remove.
5486 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5487
78f9d765
JT
54882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5489
5490 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5491 ns32k_frame_saved_pc, ns32k_frame_args_address,
5492 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5493 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5494 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5495 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5496 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5497 (BREAKPOINT): Remove..
5498 (FRAME_CHAIN): Define as ns32k_frame_chain.
5499 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5500 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5501 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5502 (FRAME_FIND_SAVED_REGS): Remove.
5503 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5504 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5505 (POP_FRAME): Define as ns32k_pop_frame.
5506
f2c762e0
JT
55072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5508
5509 * ns32k-tdep.c (ns32k_register_byte_32082,
5510 ns32k_register_byte_32382, ns32k_register_raw_size,
5511 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5512 functions.
5513 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5514 ns32k_register_byte_32382.
5515 * config/ns32k/tm-umax.h: Update copyright years.
5516 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5517 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5518 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5519 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5520 (ns32k_get_enter_addr): Fix prototype.
5521
af137673
JT
55222002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * ns32k-tdep.c: Update copyright years.
5525 (ns32k_register_name_32082): New function.
5526 (ns32k_register_name_32382): Ditto.
5527 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5528 (REGISTER_NAME): Define as ns32k_register_name_32382.
5529 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5530 (REGISTER_NAME): Define as ns32k_register_name_32082.
5531
a8bc7b56
JB
55322002-05-24 Jim Blandy <jimb@redhat.com>
5533
5534 * dwarf2read.c (free_line_header): Use xfree, not free.
5535
83a45910
JT
55362002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5537
5538 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5539 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5540
0db71247
AC
55412002-05-23 Andrew Cagney <ac131313@redhat.com>
5542
5543 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5544
b9e5e4dd
AC
55452002-05-23 Andrew Cagney <ac131313@redhat.com>
5546
5547 From Ross Alexander at NEC Europe:
5548 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5549
de530e84
MS
55502002-05-23 Michael Snyder <msnyder@redhat.com>
5551
5552 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5553 for input, rather than parse_and_eval_address.
5554
b91b96f4
AC
55552002-05-23 Andrew Cagney <ac131313@redhat.com>
5556
5557 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5558 * Makefile.in (sim_d10v_h): Update definition.
5559
8b279e7a
AC
55602002-05-24 Andrew Cagney <cagney@redhat.com>
5561
5562 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5563 change `2002-05-22 Michael Snyder' below.
5564 (d10v_push_arguments): Ditto.
5565 (d10v_extract_return_value): Ditto.
5566
0a3d0425
JB
55672002-05-23 Jim Blandy <jimb@redhat.com>
5568
5569 * macrotab.c (check_for_redefinition): Don't complain if the new
5570 definition is the same as the previous one. Take more arguments
5571 to allow the comparison.
5572 (macro_define_object, macro_define_function): Pass more arguments
5573 to check_for_redefinition.
5574
78eac43e
MS
55752002-05-22 Michael Snyder <msnyder@redhat.com>
5576
5577 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5578 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5579 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5580 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5581 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5582 Add a temp variable to save a call (and a memory read).
5583 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5584 if possible (so that PC_IN_CALL_DUMMY will work).
5585
9bc1edb8
CV
55862002-05-22 Corinna Vinschen <vinschen@redhat.com>
5587
5588 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5589
005ef3d2
ML
55902002-05-22 Michal Ludvig <mludvig@suse.cz>
5591
5592 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5593 fde->cie_ptr.
5594 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5595 (dwarf2_build_frame_info): Add offset to fde->initial_location
5596 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5597 (execute_stack_op): Change type of 'result' from ULONGEST to
5598 CORE_ADDR.
005ef3d2 5599
fcf4f891
JT
56002002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5601
5602 * config/alpha/tm-nbsd.h: Include solib.h.
5603
cfef91e4
JT
56042002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5605
5606 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5607 assumptions about the host's byte order.
5608
9964235a
JT
56092002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5610
5611 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5612 to dependency list.
5613 * alphanbsd-tdep.c: Include solib-svr4.h.
5614 * shnbsd-tdep.c: Ditto.
5615
9eeef8ef
JT
56162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5617
5618 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5619 nbsd-tdep.h to dependency list.
5620 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5621 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5622 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5623 nbsdaout.mh and nbsdelf.mh consistently.
5624 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5625 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5626 nbsdaout.mt and nbsdelf.mh consistently.
5627 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5628 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5629 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5630 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5631 a.out shared library stuff from here...
5632 * config/nm-nbsdaout.h: ...to here.
5633 * config/tm-nbsd.h: Remove.
5634 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5635 * config/arm/nbsd.mh: Remove.
5636 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5637 nbsd-tdep.o.
5638 * config/arm/nbsdaout.mh: New file.
5639 * config/arm/nbsdelf.mh: New file.
5640 * config/arm/nm-nbsdaout.h: New file.
5641 * config/i386/nbsd.mh: Remove.
5642 * config/i386/nbsd.mt: Remove.
5643 * config/i386/nbsdaout.mh: New file.
5644 * config/i386/nbsdaout.mt: New file.
5645 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5646 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5647 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5648 i386_register_u_addr): Remove.
5649 * config/i386/nm-nbsdaout.h: New file.
5650 * config/i386/nm-nbsdelf.h: Remove.
5651 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5652 (USE_STRUCT_CONVENTION): Remove.
5653 * config/i386/tm-nbsdaout.h: New file.
5654 * config/i386/tm-nbsdelf.h: Remove.
5655 * config/m68k/nbsd.mh: Remove.
5656 * config/m68k/nbsd.mt: Remove.
5657 * config/m68k/nbsdaout.mh: New file.
5658 * config/m68k/nbsdaout.mt: New file.
5659 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5660 * config/m68k/nm-nbsdaout.h: New file.
5661 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5662 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5663 * config/ns32k/nbsd.mh: Remove.
5664 * config/ns32k/nbsd.mt: Remove.
5665 * config/ns32k/nbsdaout.mh: New file.
5666 * config/ns32k/nbsdaout.mt: New file.
5667 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5668 * config/ns32k/nm-nbsdaout.h: New file.
5669 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5670 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5671 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5672 (SVR4_SHARED_LIBS): Remove.
5673 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5674 * config/sparc/nbsd.mh: Remove.
5675 * config/sparc/nbsd.mt: Remove.
5676 * config/sparc/nbsdaout.mh: New file.
5677 * config/sparc/nbsdaout.mt: New file.
5678 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5679 * config/sparc/nbsdelf.mt: New file.
5680 * config/sparc/nm-nbsdaout.h: New file.
5681 * config/sparc/nm-nbsdelf.h: Remove.
5682 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5683 * config/sparc/tm-nbsdaout.h: New file.
5684
257ce470
JT
56852002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5686
5687 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5688 mipsnbsd-tdep.c
5689 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5690
76a6d5fe
JT
56912002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5692
5693 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5694 shnbsd-nat.c.
5695 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5696
45888261
JT
56972002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5698
5699 * NEWS: Note new MIPS NetBSD native configuration.
5700 * configure.host (mips*-*-netbsd*): New host.
5701 * configure.tgt (mips*-*-netbsd*): New target.
5702 * mipsnbsd-nat.c: New file.
5703 * mipsnbsd-tdep.c: New file.
5704 * mipsnbsd-tdep.h: New file.
5705 * config/mips/nbsd.mh: New file.
5706 * config/mips/nbsd.mt: New file.
5707 * config/mips/nm-nbsd.h: New file.
5708 * config/mips/tm-nbsd.h: New file.
5709
70f80edf
JT
57102002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5711
5712 * Makefile.in (SFILES): Add osabi.c.
5713 (COMMON_OBS): Add osabi.o.
5714 (osabi.o): New dependency list.
5715 * osabi.c: New file.
5716 * osabi.h: New file.
5717 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5718
5719 * Makefile.in (alpha_tdep_h): Define and use instead of
5720 alpha-tdep.h.
5721 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5722 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5723 Remove.
5724 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5725 * alpha-tdep.h: Include osabi.h.
5726 (alpha_abi): Remove.
5727 (gdbarch_tdep): Use generic OS ABI framework.
5728 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5729 gdbarch_register_osabi.
5730 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5731 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5732 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5733
5734 * Makefile.in (sh_tdep_h): Add osabi.h.
5735 * sh-tdep.h (sh_osabi): Remove.
5736 (gdbarch_tdep): Use generic OS ABI framework.
5737 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5738 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5739 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5740 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5741
5742 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5743 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5744 gdbarch_register_osabi.
5745 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5746 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5747 (get_elfosabi): Rename to...
5748 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5749 ABI framework support routines.
5750 (arm_gdbarch_init): Use generic OS ABI framework.
5751 (arm_dump_tdep): Likewise.
5752 (_initialize_arm_tdep): Likewise.
5753 * arm-tdep.h: Include osabi.h.
5754 (arm_abi): Remove.
5755 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5756 osabi member.
5757 (arm_gdbarch_register_os_abi): Remove prototype.
5758 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5759 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5760
5761 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5762 * mips-tdep.c: Include osabi.h.
5763 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5764 OS ABI framework.
5765
d194345b
KH
57662002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5767
5768 * h8300-tdep.c: Fix formatting.
5769
70c6b0d1
EZ
57702002-05-20 Elena Zannoni <ezannoni@redhat.com>
5771
5772 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5773 printing vector registers.
5774
165b8e33
AC
57752002-05-19 Andrew Cagney <ac131313@redhat.com>
5776
5777 From Fernando Nasser:
5778 * remote.c (remote_async_open_1): Re-throw the exception when the
5779 connection fails.
5780 (remote_cisco_open): Ditto.
5781 (remote_open_1): Ditto.
5782
36918e70
AC
57832002-05-19 Andrew Cagney <ac131313@redhat.com>
5784
5785 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5786 (remote_start_remote): Add uiout parameter. Pass through to
5787 remote_start_remote_dummy.
5788 (remote_open_1): Use catch_exception instead of catch_errors.
5789 (remote_async_open_1): Ditto.
5790 (remote_cisco_open): Ditto.
5791
ae44c0c4
AC
57922002-05-19 Andrew Cagney <ac131313@redhat.com>
5793
5794 * remote.c (remote_start_remote): Replace PTR with void pointer.
5795 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5796 static.
5797
8efe637d
AC
57982002-05-18 Andrew Cagney <ac131313@redhat.com>
5799
5800 * gdb_indent.sh: Allow the script to be run in the sim directory.
5801
2f1b5984
MK
58022002-05-18 Mark Kettenis <kettenis@gnu.org>
5803
f0f625e2
MK
5804 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5805 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5806
2f1b5984
MK
5807 * corelow.c (core_open): Only call set_gdbarch_from_file if
5808 exec_bfd is NULL.
5809
fc974602
AV
58102002-05-17 Andrey Volkov <avolkov@transas.com>
5811
5812 * h8300-tdep.c: Add support of EXR register
5813 * config/h8300/tm-h8300.h: Ditto.
5814
906709f4
AV
58152002-05-17 Andrey Volkov <avolkov@transas.com>
5816
5817 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5818
6e591d68
AV
58192002-05-17 Andrey Volkov <avolkov@transas.com>
5820
5821 * h8300-tdep.c: Change literal regnums to REGNO.
5822
84f0252a
JB
58232002-05-17 Jim Blandy <jimb@redhat.com>
5824
e0e9281e
JB
5825 * NEWS: Note addition of macro support.
5826
84f0252a
JB
5827 Expand preprocessor macros in C expressions.
5828 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5829 (scan_macro_expansion, scanning_macro_expansion,
5830 finished_macro_expansion): New function declarations.
5831 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5832 variable declarations.
5833 * parser-defs.h (expression_context_pc): New declaration.
5834 * parse.c (expression_context_pc): New variable.
5835 (parse_exp_1): Set expression_context_pc, as well as
5836 expression_context_block.
5837 * c-exp.y (yylex): If we're not already reading the result of a
5838 macro expansion, try to macro-expand the next token. When we're
5839 done scanning a macro expansion, switch back to the mainline text.
5840 Commas and `if's in a macro's expansion don't terminate the input.
5841 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5842 (macro_original_text, macro_expanded_text,
5843 expression_macro_lookup_func, expression_macro_lookup_baton): New
5844 variables.
5845 (scan_macro_expansion, scanning_macro_expansion,
5846 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5847 c_preprocess_and_parse): New functions.
5848 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5849 c_preprocess_and_parse, instead of c_parse.
5850 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5851 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5852
1c509ca8
JR
5853Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5854
5855 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5856 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5857 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5858
2250ee0c
CV
58592002-05-17 Corinna Vinschen <vinschen@redhat.com>
5860
5861 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5862
ab3b8126
JT
58632002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5864
5865 * Makefile.in (sh_tdep_h): Define and use.
5866 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5867 register enum): Move to...
5868 * * sh-tdep.h: ...here.
5869 * sh-tdep.c: Include sh-tdep.h.
5870 * sh3-rom.c: Likewise.
5871 * shnbsd-tdep.c: Likewise.
5872
ed9d4749
MS
58732002-05-16 Michael Snyder <msnyder@redhat.com>
5874
5875 * arm-tdep.c: Spelling fix in comment.
5876
2e276125
JB
58772002-05-16 Jim Blandy <jimb@redhat.com>
5878
6821892e
JB
5879 Add commands for manually expanding macros and showing their
5880 definitions.
5881 * macrocmd.c, macroscope.c, macroscope.h: New files.
5882 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5883 (macroscope_h): New variable.
5884 (HFILES_NO_SRCDIR): Add macroscope.h.
5885 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5886 (macroscope.o, macrocmd.o): New rules.
5887
2e276125
JB
5888 Teach the Dwarf 2 reader to read macro information.
5889 * dwarf2read.c: #include "macrotab.h".
5890 (dwarf_macinfo_buffer): New variable.
5891 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5892 dwarf_macinfo_size.
5893 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5894 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5895 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5896 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5897 dwarf2_macro_spaces_in_definition): New complaints.
5898 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5899 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5900 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5901 the partial symbol table.
5902 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5903 from what's recorded in the partial symbol table.
5904 (read_file_scope): If the compilation unit has a
5905 `DW_AT_macro_info' attribute, read its macro information.
5906 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5907
2f53fe6c
DJ
59082002-05-16 Daniel Jacobowitz <drow@mvista.com>
5909
5910 Fix PR gdb/546
5911 * ser-tcp.c: Don't include <netinet/udp.h>.
5912
2be99286
SC
59132002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5914
5915 * MAINTAINERS: Update my email address.
5916
c9af212b 59172002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5918
5919 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5920 include file of the same name.
5921
bf5f1a52
CV
59222002-05-16 Corinna Vinschen <vinschen@redhat.com>
5923
5924 * configure.tgt: Mark v850 as multi-arched.
5925 * config/v850/tm-v850.h: Remove file.
5926 * config/v850/v850.mt: Eliminate TM_FILE.
5927
435e042a
CV
59282002-05-16 Corinna Vinschen <vinschen@redhat.com>
5929
5930 * v850-tdep.c: Full multi-arch.
5931 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5932 Define GDB_MULTI_ARCH to 2.
5933
9819c6c8
PM
59342002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5935
5936 * p-exp.y (current_type): New static variable.
5937 Carries the type of the expression at the position that is parsed.
5938 (push_current_type, pop_current_type): Two new functions. Used
5939 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5940 (search_field): New static variable. Set to one after parsing a point
5941 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5942 (FIELDNAME): New token. After a point only a token belonging to
5943 current_type type definition is allowed.
5944 (all over token rules): reset and change current_type according
5945 to rules.
5946 (exp '[' rule): insert implicit array index field if
5947 exp is a pascal string type.
5948
3a06899a
CV
59492002-05-16 Corinna Vinschen <vinschen@redhat.com>
5950
5951 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5952 frame info. Use frame_info's saved_regs instead of matching member
5953 in extra_frame_info throughout.
5954 (v850_frame_init_saved_regs): New function.
5955 (v850_init_extra_frame_info): Move most functionality into
5956 v850_frame_init_saved_regs().
5957 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5958 (v850_frame_find_saved_regs): Remove declaration.
5959 (FRAME_FIND_SAVED_REGS): Remove definition.
5960 (v850_frame_init_saved_regs): Add declaration.
5961 (FRAME_INIT_SAVED_REGS): Add definition.
5962
6ed14b0e
CV
59632002-05-16 Corinna Vinschen <vinschen@redhat.com>
5964
5965 * v850-tdep.c: Begin multi-arch'ing v850.
5966 (v850_target_architecture_hook): Remove function.
5967 (v850_gdbarch_init): New function. Add code previously in
5968 v850_target_architecture_hook().
5969 (_initialize_v850_tdep): Don't set target_architecture_hook.
5970 Call register_gdbarch_init() instead.
5971
42725910
DJ
59722002-05-16 Daniel Jacobowitz <drow@mvista.com>
5973
5974 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5975 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5976 (fixup_class_method_type): Likewise.
5977
99d9066e
JB
59782002-05-15 Jim Blandy <jimb@redhat.com>
5979
5980 Add macro structures to GDB's symbol tables. Nobody puts anything
5981 in them yet.
5982 * symtab.h (struct symtab): New member: `macro_table'.
5983 * buildsym.h (pending_macros): New global variable.
5984 * buildsym.c: #include "macrotab.h".
5985 (buildsym_init): Initialize `pending_macros'.
5986 (end_symtab): If we found macro information while reading a CU's
5987 debugging info, do build a symtab structure for it. Make the
5988 symtab point to the macro information, and clear the
5989 `pending_macros' pointer which held it while we were reading the
5990 debug info.
5991 (really_free_pendings): Free any pending macro table.
5992 * objfiles.h (struct objfile): New member: `macro_cache'.
5993 * objfiles.c (allocate_objfile): Set allocate and free functions
5994 for the macro cache's objstack.
5995 (free_objfile): Empty the macro cache's obstack.
5996 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5997 set new allocate and free functions for it.
5998 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5999 free functions for the macro cache's objstack. (Why is this
6000 function building its own objfile?)
6001 * symmisc.c (print_objfile_statistics): Print statistics on the
6002 macro bcache.
6003 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6004
c899585b
RE
60052002-05-15 Richard Earnshaw <rearnsha@arm.com>
6006
6007 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6008 (REGISTER_U_ADDR): Delete definition.
6009 (arm_register_u_addr): Delete declaration.
6010
a6cdd8c5
RE
60112002-05-15 Richard Earnshaw <rearnsha@arm.com>
6012
6013 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6014 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6015
c97dcfc7
AC
60162002-05-14 Andrew Cagney <ac131313@redhat.com>
6017
6018 * regcache.c (register_valid): Revise comments refering to "Not
6019 available" and "unavailable".
6020 * frame.c (frame_register_read): Ditto.
6021 * findvar.c (value_of_register): Ditto.
6022
93021b7d
AC
60232002-05-15 Andrew Cagney <cagney@redhat.com>
6024
6025 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6026 (remote-sim.o): Update dependencies.
6027 (d10v-tdep.o): Specify dependencies.
6028 (sim_d10v_h): Define.
6029
a86bc61c
JB
60302002-05-14 Jim Blandy <jimb@redhat.com>
6031
6032 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6033 * macrotab.c (macro_lookup_inclusion, find_definition,
6034 new_macro_table): Same.
6035
6036 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6037 not `! strcmp ()'. This is a dubious improvement.
6038 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6039
6040 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6041 although it's not necessary, to avoid a warning.
6042
2fdde8f8
DJ
60432002-05-14 Daniel Jacobowitz <drow@mvista.com>
6044
6045 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6046 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6047 TYPE_INSTANCE_FLAGS.
6048 (struct main_type): New.
6049 (struct type): Move most members to struct main_type. Change
6050 cv_type and as_type to new type_chain member. Add instance_flags.
6051 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6052 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6053 (finish_cv_type): Remove prototype.
6054 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6055 Set TYPE_CHAIN.
6056 (alloc_type_instance): New function.
6057 (smash_type): New function.
6058 (make_pointer_type, make_reference_type, make_function_type)
6059 (smash_to_member_type, smash_to_method_type): Call smash_type.
6060 (make_qualified_type): New function.
6061 (make_type_with_address_space): Call make_qualified_type.
6062 (make_cv_type): Likewise.
6063 (finish_cv_type): Remove unnecessary function.
6064 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6065 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6066 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6067 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6068 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6069 * hpread.c (hpread_read_struct_type): Likewise.
6070 * stabsread.c (read_struct_type): Likewise.
6071
843fedf4
EZ
60722002-05-14 Elena Zannoni <ezannoni@redhat.com>
6073
6074 * configure.tgt: Add a catch all sh* target, for cases like
6075 sh[2,3,4]-elf and sh-hms.
6076
05a6c72c
KS
60772002-05-14 Keith Seitz <keiths@redhat.com>
6078
6079 * event-loop.c (create_file_handler): Don't do anything but
6080 update data when we are given a fd which we are already
6081 monitoring.
6082
5d085aaf
ML
60832002-05-14 Michal Ludvig <mludvig@suse.cz>
6084
6085 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6086 (update_context): Use __func__ in warnings.
6087
9db8d71f
DJ
60882002-05-14 Daniel Jacobowitz <drow@mvista.com>
6089
6090 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6091 and tcp_close to net_open and net_close.
6092 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6093 using UDP if requested. Don't try to disable Nagle on UDP
6094 sockets.
6095 * remote.c (remote_serial_open): New function. Warn about UDP.
6096 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6097
5dbc6baa
EZ
60982002-05-13 Elena Zannoni <ezannoni@redhat.com>
6099
6100 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6101
cc3023f7
EZ
61022002-05-13 Elena Zannoni <ezannoni@redhat.com>
6103
6104 * configure.tgt: Remove sh-hms target.
6105 * MAINTAINERS: Don't list sh-hms as a separate target.
6106
ec2bcbe7
JB
61072002-05-13 Jim Blandy <jimb@redhat.com>
6108
6109 Add first preprocessor macro-expansion files.
6110 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6111 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6112 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6113 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6114 (COMMON_OBS): Add macrotab.o, macroexp.o.
6115 (macroexp.o, macrotab.o): New rules.
6116
6d531722
AC
61172002-05-13 Andrew Cagney <ac131313@redhat.com>
6118
6119 * config/m88k/tm-m88k.h: Update copyright.
6120 (m88k_target_write_pc): Declare
6121 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6122 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6123 (SHIFT_INST_REGS): Update definition.
6124 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6125 using old definition of TARGET_WRITE_PC.
6126 * regcache.c (generic_target_write_pc): Delete code handling
6127 NNPC_REGNUM.
6128 * gdbarch.sh (NNPC_REGNUM): Delete.
6129 * gdbarch.h, gdbarch.c: Regenerate.
6130
3e3f2739
RE
61312002-05-13 Richard Earnshaw <rearnsha@arm.com>
6132
6133 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6134 builtin reg number.
6135
0004e5a2
DJ
61362002-05-13 Daniel Jacobowitz <drow@mvista.com>
6137
6138 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6139 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6140 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6141 access macros.
6142 * c-typeprint.c (cp_type_print_method_args): Likewise.
6143 (c_type_print_args): Likewise.
6144 * d10v-tdep.c (d10v_push_arguments): Likewise.
6145 (d10v_extract_return_value): Likewise.
6146 * expprint.c (print_subexp): Likewise.
6147 * gdbtypes.c (lookup_primitive_typename): Likewise.
6148 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6149 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6150 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6151 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6152 (TYPE_VECTOR): Likewise.
6153 * hpread.c (hpread_read_struct_type)
6154 (fix_static_member_physnames, fixup_class_method_type)
6155 (hpread_type_lookup): Likewise.
6156 * mdebugread.c (parse_symbol, parse_type): Likewise.
6157 * p-lang.c (is_pascal_string_type): Likewise.
6158 * valops.c (hand_function_call): Likewise.
6159 * x86-64-tdep.c (classify_argument): Likewise.
6160
6161 * hpread.c (hpread_read_function_type)
6162 (hpread_read_doc_function_type): Call replace_type.
6163 * dstread.c (create_new_type): Delete.
6164 (decode_dst_structure, process_dst_function): Call alloc_type.
6165 Use type access macros.
6166
dff95cc7
MK
61672002-05-12 Mark Kettenis <kettenis@gnu.org>
6168
6169 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6170 the're not supported by the current architecture.
6171 (i387_fill_fxsave): Likewise.
6172
bbcd32ad
FF
61732002-05-12 Fred Fish <fnf@redhat.com>
6174
6175 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6176 sect_index_xxx members to index the first slot in section_offsets
6177 if all of the section_offsets are zero.
6178
89cf4787
MK
61792002-05-12 Mark Kettenis <kettenis@gnu.org>
6180
6181 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6182 checked in with last change.
6183
1f77ffc5
MK
61842002-05-12 Mark Kettenis <kettenis@gnu.org>
6185
6186 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6187 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6188 config.sub.
6189
89b8b4a9
DJ
61902002-05-12 Daniel Jacobowitz <drow@mvista.com>
6191
6192 * Makefile.in: Update dependencies.
6193
14a5e767
AC
61942002-05-11 Andrew Cagney <ac131313@redhat.com>
6195
6196 * language.c (local_hex_string_custom): Simplify. Do not depend
6197 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6198
6199 * memattr.c (mem_info_command): Replace calls to
6200 longest_local_hex_string and longest_local_hex_string_custom.
6201 * buildsym.c (make_blockvector): Ditto.
6202 * solib.c (info_sharedlibrary_command): Ditto.
6203 * tracepoint.c (tracepoints_info): Ditto.
6204 * symtab.c (print_msymbol_info): Ditto.
6205
6206 * language.c (local_hex_string): Delete.
6207 (local_hex_string_custom): Delete.
6208 (longest_local_hex_string): Rename to local_hex_string.
6209 (longest_local_hex_string_custom): Rename to
6210 local_hex_string_custom.
6211 * language.h (local_hex_string): Change parameter type to LONGEST.
6212 (local_hex_string_custom): Ditto.
6213 (longest_local_hex_string): Delete declaration.
6214 (longest_local_hex_string_custom): Ditto.
6215
6216 * solib.c: Update copyright.
6217 * memattr.c: Update copyright.
6218
13d01224
AC
62192002-05-11 Andrew Cagney <ac131313@redhat.com>
6220
6221 * arch-utils.h (legacy_register_to_value): Declare.
6222 (legacy_value_to_register): Declare.
6223 (legacy_convert_register_p): Declare.
6224 * arch-utils.c (legacy_register_to_value): New function.
6225 (legacy_value_to_register): New function.
6226 (legacy_convert_register_p): New function.
6227
6228 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6229 (VALUE_TO_REGISTER): Define.
6230 (CONVERT_REGISTER_P): Define.
6231 * gdbarch.h, gdbarch.c: Regenerate.
6232
6233 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6234 VALUE_TO_REGISTER.
6235 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6236 CONVERT_REGISTER_P.
6237
4a1970e4
DJ
62382005-05-11 Daniel Jacobowitz <drow@mvista.com>
6239 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6240
6241 * Makefile.in: Update dependencies for valops.c.
6242 * valops.c: Include "gdb_assert.h".
6243 (typecmp): Skip THIS parameter to methods.
6244 (find_method_list): Remove static_memfuncp argument,
6245 update callers. Check for stub methods.
6246 (find_value_oload_method_list): Don't set *static_memfuncp.
6247 (find_overload_match): Don't check for stub methods. Assert
6248 that methods are not stubbed. Handle static methods.
6249 (value_find_oload_method_list): Remove static_memfuncp argument.
6250 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6251 to the argument list for static stub methods.
6252 * value.h (value_find_oload_method_list): Update prototype.
6253
b2e75d78
AC
62542002-05-11 Andrew Cagney <ac131313@redhat.com>
6255
6256 * arch-utils.h (generic_register_size): Declare.
6257 (generic_register_raw_size, generic_register_virtual_size): Delete
6258 declarations.
6259 * arch-utils.c (generic_register_raw_size): Delete.
6260 (generic_register_size): New function.
6261 (generic_register_virtual_size): Delete.
6262
6263 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6264 default generic_register_size.
6265 * gdbarch.h, gdbarch.c: Re-generate.
6266
6267 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6268 register_virtual_size.
6269 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6270 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6271
451fbdda
AC
62722002-05-11 Andrew Cagney <ac131313@redhat.com>
6273
6274 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6275 * gdbarch.h, gdbarch.c: Regenerate.
6276 * gnu-v3-abi.c: Update copyright.
6277 (vtable_address_point_offset): Update.
6278 (gnuv3_rtti_type): Update.
6279 (gnuv3_baseclass_offset): Update.
6280 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6281 (init_fetch_link_map_offsets): Update.
6282 * remote.c (get_remote_state): Update.
6283
6d2f5cea
DJ
62842002-05-11 Daniel Jacobowitz <drow@mvista.com>
6285
6286 * TODO: Remove value_headof/value_from_vtable_info comment.
6287 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6288 * values.c (value_headof, value_from_vtable_info): Delete.
6289 * value.h (value_from_vtable_info): Delete prototype.
6290
d2324da4
AC
62912002-05-11 Andrew Cagney <ac131313@redhat.com>
6292
6293 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6294 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6295 $(gdb_regex_h).
6296 (gdb_assert_h): Define.
6297 (gdb_wait_h): Define.
6298 (gdb_regex_h): Define.
6299
5c717440
DJ
63002002-05-11 Daniel Jacobowitz <drow@mvista.com>
6301
6302 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6303 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6304
6c7861b3
JT
63052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6306
6307 * nbsd-tdep.c: Fix comment.
6308
ea5bc2a6
JT
63092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6310
6311 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6312 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6313 (nbsd-tdep.o): New dependency list.
6314 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6315 nbsd-tdep.h.
6316 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6317 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6318 * nbsd-tdep.c: New file.
6319 * nbsd-tdep.h: New file.
6320 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6321 nbsd-tdep.h.
6322 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6323 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6324 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6325 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6326
b28da865
JT
63272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6328
6329 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6330 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6331 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6332 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6333 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6334 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6335
4b8ff1fa
JT
63362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6337
6338 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6339 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6340 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6341 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6342 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6343 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6344 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6345
dfe6eb1f
JT
63462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6347
6348 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6349 fetch_elfcore_registers to...
6350 * i386nbsd-tdep.c: ...here.
6351 (i386nbsd_use_struct_convention): Rename to...
6352 (i386nbsd_aout_use_struct_convention): ...this.
6353 (i386nbsd_supply_reg): New function.
6354 (i386nbsd_fill_reg): New function.
6355 (fetch_core_registers): Use i386nbsd_supply_reg.
6356 (fetch_elfcore_registers): Likewise.
6357 (_initialize_i386nbsd_tdep): New function.
6358 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6359 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6360 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6361 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6362 (i386nbsd_aout_use_struct_convention): ...this.
6363
20cb8cda
JT
63642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6365
6366 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6367 (store_inferior_registers): Use shnbsd_fill_reg.
6368 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6369 sh_nbsd_supply_register): Collapse into...
6370 (shnbsd_supply_reg): ...this.
6371 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6372 (shnbsd_fill_reg): ...this.
6373 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6374 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6375 (fetch_core_registers): Use shnbsd_supply_reg.
6376 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6377 (sh_nbsd_core_fns): Rename to...
6378 (shnbsd_core_fns): ...this.
6379 (sh_nbsd_elfcore_fns): Rename to...
6380 (shnbsd_elfcore_fns): ...this.
6381 (sh_nbsd_init_abi): Rename to...
6382 (shnbsd_init_abi): ...this.
6383 (_initialize_sh_nbsd_tdep): Rename to...
6384 (_initialize_shnbsd_tdep): ...this.
6385 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6386 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6387 sh_nbsd_fill_register): Remove prototypes.
6388 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6389
e750d25e
JT
63902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6391
6392 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6393 (i387-nat.o): Delete dependency list.
6394 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6395 (x86-64-linux-nat.o): Likewise.
6396 * i387-nat.c: Delete file, moving contents to...
6397 * i387-tdep.c: ...here.
6398 * i387-nat.h: Rename...
6399 * i387-tdep.h: ...to this.
6400 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6401 * i386-linux-nat.c: Likewise.
6402 * i386bsd-nat.c: Likewise.
6403 * i386gnu-nat.c: Likewise.
6404 * i386nbsd-nat.c: Likewise.
6405 * i386v4-nat.c: Likewise.
6406 * x86-64-linux-nat.c: Likewise.
6407 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6408 * config/i386/go32.mh (NATDEPFILES): Likewise.
6409 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6410 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6411 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6412 * config/i386/linux.mh (NATDEPFILES): Likewise.
6413 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6414 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6415 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6416 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6417
1aee598a
JT
64182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6419
6420 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6421 (alphanbsd-nat.o): Remove dependency list.
6422 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6423 * alphanbsd-nat.c: Delete. Contents moved to...
6424 * alphanbsd-tdep.c: ...here.
6425 (_initialize_alphanbsd_tdep): Register core functions.
6426 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6427
12bcb0fe
JT
64282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6429
6430 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6431 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6432 (alphanbsd-nat.o): Likewise.
6433 (alphabsd-tdep.o): New dependency list.
6434 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6435 (fill_gregset): Use alphabsd_fill_reg.
6436 (supply_fpregset): Use alphabsd_supply_fpreg.
6437 (fill_fpregset): Use alphabsd_fill_fpreg.
6438 (fetch_inferior_registers): Use struct reg and struct fpreg
6439 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6440 and alphabsd_supply_fpreg.
6441 (store_inferior_registers): Use struct reg and struct fpreg
6442 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6443 and alphabsd_fill_fpreg.
6444 * alphabsd-tdep.c: New file.
6445 * alphabsd-tdep.h: New file.
6446 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6447 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6448 alphabsd_supply_fpreg.
6449 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6450 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6451
361d1df0
EC
64522002-05-11 Eric Christopher <echristo@redhat.com>
6453
6454 * mips-tdep.c (mips_double_register_type): Fix thinko.
6455 (mips_single_register_type): Ditto.
6456 * MAINTAINERS: Add self.
6457
92dd7cee
MK
64582002-05-11 Mark Kettenis <kettenis@gnu.org>
6459
6460 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6461 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6462 right thing on architectures with different endianness and/or
6463 integer sizes.
6464
e27da16d
JT
64652002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6466
6467 From Christian Limpach <chris@Pin.LU>
6468 * configure.in: Change sed expression which comments out
6469 NATDEPFILES to also comment out continuation lines.
6470 * configure: Regenerate.
6471
ddde02bd
EZ
64722002-05-10 Elena Zannoni <ezannoni@redhat.com>
6473
6474 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6475 big patch.
6476
1c922164
EZ
64772002-05-10 Elena Zannoni <ezannoni@redhat.com>
6478
6479 * sh-tdep.c: Include correct file.
6480
283150cd
EZ
64812002-05-10 Elena Zannoni <ezannoni@redhat.com>
6482
6483 New support for sh64-elf (sh5) target.
6484
6485 * configure.tgt: For sh64-elf target, default to sh-elf.
6486
6487 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6488 (struct gdbarch_tdep): Add new fields for new registers and ABI
6489 info.
361d1df0 6490
283150cd
EZ
6491 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6492 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6493 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6494 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6495 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6496 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6497 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6498 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6499 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6500 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6501 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6502 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6503 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6504 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6505 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6506 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6507 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6508 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6509 sign_extend, sh64_nofp_frame_init_saved_regs,
6510 sh64_init_extra_frame_info, sh64_get_saved_register,
6511 sh64_extract_struct_value_address, sh64_pop_frame,
6512 sh64_push_arguments, sh64_extract_return_value,
6513 sh64_store_return_value, sh64_show_media_regs,
6514 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6515 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6516 sh_sh64_register_virtual_type,
6517 sh_sh64_register_convert_to_virtual,
6518 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6519 sh64_register_read, sh64_pseudo_register_write,
6520 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6521 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6522 sh64_do_pseudo_register, sh_compact_do_registers_info,
6523 sh64_do_registers_info, sh_gdbarch_init): New functions.
6524
3117ed25
EZ
65252002-05-10 Elena Zannoni <ezannoni@redhat.com>
6526
6527 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6528
2654e6d4
DJ
65292002-05-10 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * linespec.c (decode_line_1): Check for a double quote after
6532 a filename correctly.
6533
9ab3e532
JB
65342002-05-10 Jim Blandy <jimb@redhat.com>
6535
6536 Properly track the size of the current objfile's .debug_line section.
6537 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6538 (DWARF_LINE_SIZE): New macro.
6539 (dwarf2_build_psymtabs_hard): Record the line section's size in
6540 the partial symbol table.
6541 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6542 symbol table.
6543
126fa72d
PS
65442002-05-10 Petr Sorfa <petrs@caldera.com>
6545
6546 * ia64-tdep.c: Handle breakpoints on L instruction type
6547 in MLX instruction bundle by moving the breakpoint to
6548 the third slot (X instruction type) as L holds only data.
6549
1f077a3e
KB
65502002-05-10 Kevin Buettner <kevinb@redhat.com>
6551
6552 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6553 (process_one_symbol): Complain about discarding local symbols
6554 due to a misplaced N_LBRAC entry.
6555
8120c9d5 65562002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6557
6558 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6559 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6560 decrease the depth we are at, in the case of templates.
361d1df0 6561
67b2c998
DJ
65622002-05-09 Daniel Jacobowitz <drow@mvista.com>
6563
6564 * mips-tdep.c (mips_float_register_type): New function.
6565 (mips_double_register_type): New function.
6566 (mips_print_register): Use them.
6567 (do_fp_register_row): Likewise.
6568
fd326606
DJ
65692002-05-09 Daniel Jacobowitz <drow@mvista.com>
6570
6609d9af 6571 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6572 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6573 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6574
bef35864
MS
65752002-05-09 Michael Snyder <msnyder@redhat.com>
6576
6577 * remote-rdp.c (remote_rdp_can_run): Remove.
6578
c55a3f73
TT
65792002-05-09 Tom Tromey <tromey@redhat.com>
6580
6581 * jv-valprint.c (java_val_print): Handle `char' as a special case
6582 of TYPE_CODE_INT.
6583
b8d5e71d
MS
65842002-05-09 Michael Snyder <msnyder@redhat.com>
6585
6586 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6587 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6588 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6589 str r(0123),[sp,#nn].
361d1df0 6590 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6591 order-independent by placing it in a loop.
6592
e2cd42dd
MS
65932002-05-06 Michael Snyder <msnyder@redhat.com>
6594
6595 * stabsread.c (read_type): Add recognition for new attribute:
6596 "@V;" means that an array type is actually a vector.
6597 This is analogous to the vector flag that's been added to dwarf2.
6598
3ce1502b
MK
65992002-05-09 Mark Kettenis <kettenis@gnu.org>
6600
6601 * i386-tdep.h (i386_abi): New enum.
6602 (struct gdbarch_tdep): Replace os_ident member with abi.
6603 (i386_gdbarch_register_os_abi): New prototype.
6604 * i386-tdep.c (i386_abi_names): New array.
6605 (process_note_abi_tag_sections): Removed.
6606 (process_note_sections): New function.
6607 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6608 (struct i386_abi_handler): New struct.
6609 (i386_abi_handler_list): New variable.
6610 (i386_gdbarch_register_os_abi): New function.
6611 (i386_gdbarch_init): Adapt for the changes given above.
6612
084c156a
DJ
66132002-05-08 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * gregset.h: Say "GNU/Linux".
6616
6599f021
EZ
66172002-05-08 Elena Zannoni <ezannoni@redhat.com>
6618
6619 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6620 (build_gdbtypes): Build builtin_type_v2_float.
6621 (_initialize_gdbtypes): Register new builtin type.
6622
40af4b0c
AC
66232002-05-08 Andrew Cagney <ac131313@redhat.com>
6624
6625 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6626 (clear_gdbarch_swap): New function.
6627 (initialize_non_multiarch): Call.
6628 (gdbarch_update_p): Before calling init(), swap out and clear the
6629 existing architecture.
6630 * gdbarch.c: Regenerate.
6631
4fe84f46
JT
66322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6633
6634 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6635 alphanbsd-tdep.c.
6636
4015edd1
JT
66372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6638
6639 * sh-nbsd-nat.c: Rename to...
6640 * shnbsd-nat.c: ...this.
6641 * sh-nbsd-tdep.c: Rename to...
6642 * shnbsd-tdep.c: ...this.
6643 * sh-nbsd-tdep.h: Rename to...
6644 * shnbsd-tdep.h: ...this.
6645 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6646 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6647
0e2bd219
RE
66482002-05-08 Richard Earnshaw <rearnsha@arm.com>
6649
6650 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6651 concatenation for command help messages.
6652
13a38d45
JT
66532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * NEWS: Note new sh*-*-netbsdelf* configuration.
6656 * configure.host: Set gdb_host_cpu to sh for all sh*.
6657 (sh*-*-netbsdelf*): New host.
6658 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6659 (sh*-*-netbsdelf*): New target.
6660 * sh-nbsd-nat.c: New file.
6661 * sh-nbsd-tdep.c: New file.
6662 * sh-nbsd-tdep.h: New file.
6663 * config/sh/nbsd.mh: New file.
6664 * config/sh/nbsd.mt: New file.
6665 * config/sh/nm-nbsd.h: New file.
6666 * config/sh/tm-nbsd.h: New file.
6667
d658f924
JT
66682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6669
6670 * sh-tdep.c (sh_osabi_names): Declare.
6671 (process_note_abi_tag_sections): New function.
6672 (get_elfosabi): Ditto.
6673 (sh_gdbarch_register_os_abi): Ditto.
6674 (sh_dump_tdep): Ditto.
6675 _initialize_sh_tdep): Use gdbarch_register to register
6676 sh_gdbarch_init and sh_dump_tdep.
6677 * config/sh/tm-sh.h (sh_osabi): Declare.
6678 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6679
848cfffb
AC
66802002-05-07 Andrew Cagney <ac131313@redhat.com>
6681
6682 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6683 (thumb_scan_prologue): Ditto.
6684 (arm_find_callers_reg): Ditto.
6685 (arm_frame_chain): Ditto.
6686 (arm_init_extra_frame_info): Ditto.
6687 (arm_frame_saved_pc): Ditto.
6688 (arm_pop_frame): Ditto.
6689 (arm_push_return_address): New function.
6690 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6691 call_dummy_location, call_dummy_breakpoint_offset_p,
6692 call_dummy_breakpoint_offset, call_dummy_p,
6693 call_dummy_stack_adjust_p, call_dummy_words,
6694 sizeof_call_dummy_words, call_dummy_start_offset,
6695 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6696 call_dummy_address, push_return_address and push_dummy_frame for
6697 generic dummy frames.
6698
e7d717c0
JT
66992002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6700
6701 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6702 size computation for alloca.
6703 (sh_fp_frame_init_saved_regs): Likewise.
6704
7bbcf283
RE
67052002-05-07 Richard Earnshaw <rearnsha@arm.com>
6706
6707 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6708 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6709 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6710 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6711 * remote-rdp.c (remote_rdp_fetch_register): Use
6712 ARM_MAX_REGISTER_RAW_SIZE.
6713 (remote_rdp_store_register): Likewise.
6714
4657573b
ML
67152002-05-07 Michal Ludvig <mludvig@suse.cz>
6716
361d1df0 6717 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6718 added default labels to switch {} statements.
6719 * x86-64-tdep.c: Ditto.
6720 * x86-64-linux-nat.c: Ditto.
6721
010f3b2f
JT
67222002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6723
6724 * solib.h: Protect against multiple inclusion.
6725
debd256d
JB
67262002-05-06 Jim Blandy <jimb@redhat.com>
6727
9ab3e532
JB
6728 Add first preprocessor macro-expansion files.
6729 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6730 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6731 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6732 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6733 (COMMON_OBS): Add macrotab.o, macroexp.o.
6734 (macroexp.o, macrotab.o): New rules.
6735
debd256d
JB
6736 Separate the job of reading the line number info statement program
6737 header (...expialidocious) out into its own function.
6738 * dwarf2read.c (struct line_head, struct filenames, struct
6739 directories): Replace with...
6740 (struct line_header): New structure, containing the full
6741 contents of the statement program header, including the
6742 include directory and file name tables.
6743 (read_file_scope): If we have line number info, instead of just
6744 calling dwarf_decode_lines to do all the work, call
6745 dwarf_decode_line_header first to get a `struct line_header'
6746 containing the data in the statement program header, and then
6747 pass that to dwarf_decode_lines, which will pick up where that
6748 left off. Be sure to clean up the `struct line_header' object.
6749 (dwarf_decode_line_header, free_line_header, add_include_dir,
6750 add_file_name): New functions.
6751 (dwarf_decode_lines): Move all the code to read the statement
6752 program header into dwarf_decode_line_header. Take the line
6753 header it built as the first argument, instead of the offset to
6754 the compilation unit's line number info. Use the new `struct
6755 line_header' type instead of the old structures. No need to do
6756 cleanups here now, since we don't allocate anything.
6757 (dwarf2_statement_list_fits_in_line_number_section,
6758 dwarf2_line_header_too_long): New complaints.
6759
ac3aafc7
EZ
67602002-05-06 Elena Zannoni <ezannoni@redhat.com>
6761
6762 * gdbtypes.c (init_vector_type): New function.
6763 (build_builtin_type_vec128): Simplify the representation of SIMD
6764 registers.
6765 (build_gdbtypes): Initialize new builtin vector types.
6766 (_initialize_gdbtypes): Register new vector types with gdbarch.
6767 (builtin_type_v4_float, builtin_type_v4_int32,
6768 builtin_type_v8_int16, builtin_type_v16_int8,
6769 builtin_type_v2_int32, builtin_type_v4_int16,
6770 builtin_type_v8_int8): New (renamed) SIMD types.
6771
13e49980
MK
67722002-05-06 Mark Kettenis <kettenis@gnu.org>
6773
6774 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6775 (i387_fill_fxsave): Likewise.
6776
997b20b8
AO
67772002-05-05 Alexandre Oliva <aoliva@redhat.com>
6778
6779 * alpha-tdep.c (alpha_extract_return_value): Don't use
6780 non-constant array size in prototype.
6781
535c96ce
AC
67822002-05-04 Andrew Cagney <ac131313@redhat.com>
6783
6784 From Brian Taylor <briant at model dot com>:
6785 * ui-out.c (ui_out_field_core_addr): Use the function
6786 longest_local_hex_string_custom'to format addresses > 32 bits
6787 wide.
6788
6789 * ui-out.c (ui_out_field_core_addr): Update comment.
6790
bedfa57b
AC
67912002-05-04 Andrew Cagney <ac131313@redhat.com>
6792
6793 * stack.c (select_and_print_frame): Make static. Delete the
6794 parameter `level'.
6795 (func_command): Update call.
6796 (select_frame_command): Delete code computing the frame level.
6797 * frame.h (select_and_print_frame): Delete declaration.
6798
f621c63e
AC
67992002-05-04 Andrew Cagney <ac131313@redhat.com>
6800
6801 * sparc-tdep.c (sparc_get_saved_register): Comment why
6802 get_prev_frame call is safe.
6803
0f7d239c
AC
68042002-05-04 Andrew Cagney <ac131313@redhat.com>
6805
6806 * frame.h (select_frame): Delete level parameter.
6807 * stack.c (select_frame): Update. Use frame_relative_level to
6808 obtain the frame's level.
6809 (select_and_print_frame): Update call.
6810 (select_frame_command): Ditto.
6811 (up_silently_base): Ditto.
6812 (down_silently_base): Ditto.
6813 * ocd.c (ocd_start_remote): Ditto.
6814 * remote-rdp.c (remote_rdp_open): Ditto.
6815 * remote-mips.c (mips_initialize): Ditto.
6816 (common_open): Ditto.
6817 * remote-e7000.c (e7000_start_remote): Ditto.
6818 * m3-nat.c (select_thread): Ditto.
6819 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6820 (child_get_current_exception_event): Ditto.
6821 * varobj.c (varobj_create): Ditto.
6822 (varobj_update): Ditto.
6823 (c_value_of_root): Ditto.
6824 * tracepoint.c (finish_tfind_command): Ditto.
6825 * corelow.c (core_open): Ditto.
6826 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6827 * thread.c (info_threads_command): Ditto.
6828 (switch_to_thread): Ditto.
6829 * infrun.c (normal_stop): Ditto.
6830 (restore_selected_frame): Ditto.
6831 (restore_inferior_status): Ditto.
6832 * breakpoint.c (insert_breakpoints): Ditto.
6833 (watchpoint_check): Ditto.
6834 (bpstat_stop_status): Ditto.
6835 (do_enable_breakpoint): Ditto.
6836 * blockframe.c (flush_cached_frames): Ditto.
6837 (reinit_frame_cache): Ditto.
6838
71d6c7b1
AC
68392002-05-04 Andrew Cagney <ac131313@redhat.com>
6840
6841 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6842 maintainer.
6843
cda6c68a
JB
68442002-05-04 Jim Blandy <jimb@redhat.com>
6845
6846 * gdbtypes.c (replace_type): Doc fix.
6847
5c1c87f0
AC
68482002-05-04 Andrew Cagney <ac131313@redhat.com>
6849
6850 * valprint.c (strcat_longest): Delete commented out function.
6851 Update copyright.
6852
cd9bfe15
AC
68532002-05-04 Andrew Cagney <ac131313@redhat.com>
6854
6855 * MAINTAINERS: Mark a29k as deleted.
6856 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6857 Move new configurations to the top.
6858 * configure.tgt: Remove a29k.
6859 * config/a29k/tm-vx29k.h: Delete.
6860 * config/a29k/vx29k.mt: Delete.
6861 * config/a29k/tm-a29k.h: Delete.
6862 * config/a29k/a29k-udi.mt: Delete.
6863 * config/a29k/a29k.mt: Delete.
6864 * a29k-tdep.c: Delete.
6865 * remote-udi.c: Delete.
6866 * remote-mm.c: Delete.
6867 * remote-eb.c: Delete.
6868 * remote-adapt.c: Delete.
6869 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6870 * config/s390/s390x.mt: Ditto.
6871 * config/s390/s390.mt: Ditto.
6872 * config/sparc/sparclynx.mh: Ditto.
6873 * config/sparc/linux.mh: Ditto.
6874 * config/pa/hppaosf.mh: Ditto.
6875 * config/pa/hppabsd.mh: Ditto.
6876 * config/ns32k/nbsd.mt: Ditto.
6877 * config/mips/vr5000.mt: Ditto.
6878 * config/m68k/sun3os4.mh: Ditto.
6879 * config/m68k/nbsd.mt: Ditto.
6880 * config/m68k/m68klynx.mh: Ditto.
6881 * config/m32r/m32r.mt: Ditto.
6882 * config/i386/x86-64linux.mt: Ditto.
6883 * config/i386/nbsdelf.mt: Ditto.
6884 * config/i386/nbsd.mt: Ditto.
6885 * config/i386/i386lynx.mh: Ditto.
6886
bf0c5130
AC
68872002-05-04 Andrew Cagney <ac131313@redhat.com>
6888
6889 * target.c (debug_print_register): New function. Handle oversize
6890 registers.
6891 (debug_to_fetch_registers): Call.
6892 (debug_to_store_registers): Call.
6893
2ae1c2d2
JB
68942002-05-03 Jim Blandy <jimb@redhat.com>
6895
13a393b0
JB
6896 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6897 (read_type): Doc fix.
6898 * gdbtypes.c (replace_type): Doc fix.
6899
2ae1c2d2
JB
6900 * stabsread.c (multiply_defined_struct): New complaint.
6901 (read_struct_type): If the type we were passed isn't empty, or
6902 incomplete, don't read the new struct type into it; complain,
6903 and return the original type unchanged. Take a new `type_code'
6904 argument, which is the type code for the new type.
6905 (read_type): Rather than storing the type's type code here, pass
6906 it as an argument to read_struct_type, and let that take care of
6907 storing it. That way, we don't overwrite the original type code,
6908 so read_struct_type can use it to decide whether we're overwriting
6909 something we shouldn't.
6910 (complain_about_struct_wipeout): New function.
6911
8de9bdc4
AC
69122002-05-03 Andrew Cagney <ac131313@redhat.com>
6913
6914 * gdbarch.sh: Assert that gdbarch is non-NULL.
6915 * gdbarch.c: Regenerate.
6916
f773fdbb
JM
69172002-05-03 Jason Merrill <jason@redhat.com>
6918
6919 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6920 and return NULL.
6921
0e04a514
ML
69222002-05-03 Michal Ludvig <mludvig@suse.cz>
6923
6924 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6925 (x86_64_dwarf2gdb_regno_map_length),
6926 (x86_64_dwarf2_reg_to_regnum): Added.
6927 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6928 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6929 (_initialize_x86_64_tdep): Synced with the change above.
6930 (x86_64_skip_prologue): Reformulated message.
6931
065432a8
PM
69322002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6933
6934 * f-exp.y: Also use new prev_lexptr variable
6935 to improve error reporting. Based on Michael Snyder
6936 2002-04-24 dated patch to c-exp.y.
6937 * jv-exp.y: Likewise.
6938 * m2-exp.y: Likewise.
6939
a3162708
EZ
69402002-05-02 Elena Zannoni <ezannoni@redhat.com>
6941
6942 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6943 we are dealing with vectors.
6944
03620c38
PM
69452002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6946
6947 * config/m68k/tm-nbsd.h: Obvious fix,
6948 correct machine name.
6949
6604db2e
PM
69502002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6951
6952 * p-typeprint.c (pascal_type_print_base): Add support
6953 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6954
0906b739
PM
69552002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6956
6957 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6958 for fondamental pascal 'char' type.
6959
e2625b33
PM
69602002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6961
6962 * p-lang.h (is_pascal_string_type): Declaration changed,
6963 new sixth argument of type char ** added.
361d1df0 6964 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6965 changed. Args length_pos, length_size, string_pos, char_size
6966 can now be NULL. New argument arrayname set to the field
6967 name of the char array. Return value set to char array
6968 field index plus one.
361d1df0 6969 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6970 is_pascal_string_type function.
6971
cf17c188
AC
69722002-05-02 Andrew Cagney <cagney@redhat.com>
6973
6974 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6975 <cagney@redhat.com> change.
6976 * gdbarch.c: Regenerate.
6977
52bca491
AC
69782002-05-02 Andrew Cagney <cagney@redhat.com>
6979
6980 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6981 before probing for a new one. Detect errorenous gdbarch_init
6982 functions.
6983 * gdbarch.c: Regenerate.
6984
d5e72505
AC
69852002-05-01 Andrew Cagney <cagney@redhat.com>
6986
6987 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6988 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6989 * config/v850/tm-v850.h: Ditto. Update copyright.
6990
af566d9f
AC
69912002-04-30 Andrew Cagney <ac131313@redhat.com>
6992
6993 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6994 current_gdbarch.
6995
880d85fa
MS
69962002-04-30 Michael Snyder <msnyder@redhat.com>
6997
94c30b78
MS
6998 * arm-tdep.c: Whitespace clean-ups.
6999 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7000 should have been removed as part of 4/24 change.
7001
6f5987a6
KB
70022002-04-30 Kevin Buettner <kevinb@redhat.com>
7003
7004 * rs6000-tdep.c: Added comment describing how fpscr register
7005 numbers were chosen.
7006
1a113c93
MS
70072002-04-30 Michael Snyder <msnyder@redhat.com>
7008
7009 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7010
9a6f53fe
EZ
70112002-04-29 Elena Zannoni <ezannoni@redhat.com>
7012
7013 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7014 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7015 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7016
11ed25ac
KB
70172002-04-29 Kevin Buettner <kevinb@redhat.com>
7018
7019 From Louis Hamilton <hamilton@redhat.com>:
7020 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7021 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7023 not bfd-private xcoff data, to determine wordsize.
7024 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7025
ae232405
AC
70262002-04-29 Andrew Cagney <ac131313@redhat.com>
7027
7028 GDB 5.2 released from 5.2 branch.
7029
91fd20f7
ML
70302002-04-29 Michal Ludvig <mludvig@suse.cz>
7031
7032 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7033 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7034 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7035
2dc5091b
EZ
70362002-04-29 Elena Zannoni <ezannoni@redhat.com>
7037
7038 * rs6000-tdep.c (rs6000_extract_return_value,
7039 rs6000_store_return_value): Handle returning vectors.
7040 (rs6000_gdbarch_init): Use
7041 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7042 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7043 New function.
7044 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7045 vectors.
7046 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7047 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7048
2b9848d8
PM
70492002-04-24 Pierre Muller <ics.u-strasbg.fr>
7050
7051 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7052 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7053 with fprintf_unfiltered (gdb_stderr,...).
7054
f8d17dc5
PM
70552002-04-24 Pierre Muller <ics.u-strasbg.fr>
7056
7057 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7058 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7059 Replace fprintf (stderr,...
7060 with fprintf_unfiltered (gdb_stderr,....
7061 * remote-es.c: Likewise.
7062 * remote-os9k.c: Likewise.
7063 * remote-st.c: Likewise.
7064
2f2f1ad1
AS
70652002-04-28 Andreas Schwab <schwab@suse.de>
7066
7067 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7068 linux-proc.o and gcore.o.
7069
b6779aa2
AC
70702002-04-26 Michal Ludvig <mludvig@suse.cz>
7071
7072 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7073 code without frame pointers.
7074
7e57f5f4
AC
70752002-04-26 Andrew Cagney <ac131313@redhat.com>
7076
7077 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7078 ON_STACK is needed.
7079
2ceb85d0
BE
70802002-04-26 Ben Elliston <bje@redhat.com>
7081
7082 * target.c (do_xfer_memory): Correct reference to the new option
7083 "trust-readonly-sections".
7084
f5f8a009
EZ
70852002-04-26 Elena Zannoni <ezannoni@redhat.com>
7086
7087 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7088 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7089 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7090 vectors.
7091 (read_array_type): Record the fact that this array type is really a
7092 vector (i.e. are passed in by value).
7093
5868c862
JT
70942002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7095
7096 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7097 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7098 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7099 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7100 * alpha-linux-tdep.c: Include frame.h.
7101 (alpha_linux_sigcontext_addr): New function.
7102 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7103 alpha_linux_sigcontext_addr.
7104 * alpha-osf1-tdep.c: Include gdbcore.h.
7105 (alpha_osf1_sigcontext_addr): New function.
7106 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7107 alpha_osf1_sigcontext_addr.
7108 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7109 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7110
bfb01f37
AC
71112002-04-26 Andrew Cagney <ac131313@redhat.com>
7112
361d1df0 7113 * stack.c (selected_frame_level):
bfb01f37
AC
7114 (select_frame): Do not set selected_frame_level.
7115 * frame.h (selected_frame_level): Delete declaration.
7116
15813d3f
AC
71172002-04-26 Andrew Cagney <ac131313@redhat.com>
7118
7119 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7120 convert_from_func_ptr-addr when AIX / PowerOpen.
7121
6096c27a
AC
71222002-04-25 Andrew Cagney <ac131313@redhat.com>
7123
7124 * valops.c (hand_function_call): Call
7125 generic_save_call_dummy_addr.
7126 * frame.h (generic_save_call_dummy_addr): Declare.
7127 * blockframe.c (struct dummy_frame): Add fields call_lo and
7128 call_hi.
7129 (generic_find_dummy_frame): Check for PC in range call_lo to
7130 call_hi instead of entry_point_address.
7131 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7132 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7133 (generic_save_call_dummy_addr): New function.
7134
f510d44e
DM
71352002-04-24 David S. Miller <davem@redhat.com>
7136
7137 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7138 sparc_skip_prologue.
7139 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7140 information to find prologue when possible.
7141 (sparc_prologue_frameless_p): Call examine_prologue directly.
7142 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7143 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7144 second argument.
7145 (SKIP_PROLOGUE): Likewise.
7146
15d72a92
JT
71472002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7148
7149 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7150 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7151 indicate that the condition it was testing is always true.
7152 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7153 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7154 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7155
accc6d1f
JT
71562002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7159 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7160 tdep->jb_pc and tdep->jb_elt_size.
7161 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7162 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7163 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7164 * alpha-nat.c (get_longjmp_target): Remove.
7165 (JB_ELEMENT_SIZE): Ditto.
7166 (JB_PC): Ditto.
7167 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7168 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7169 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7170 to alpha_get_longjmp_target.
7171 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7172 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7173 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7174
1bfdc549
AC
71752002-04-25 Andrew Cagney <ac131313@redhat.com>
7176
7177 * README: Update to GDB 5.2.
7178
1bd316f0
AC
71792002-04-25 Andrew Cagney <ac131313@redhat.com>
7180
7181 * gdbarch.sh (LC_ALL): Set to `c'.
7182
2e5ff58c
TR
71832002-04-25 Theodore A. Roth <troth@verinet.com>
7184
7185 * avr-tdep.c: Ran through gdb_indent.sh.
7186
e33ce519
TR
71872002-04-25 Theodore A. Roth <troth@verinet.com>
7188
7189 * MAINTAINERS: Add myself as AVR maintainer.
7190 * NEWS: Note new target avr.
7191
8818c391
TR
71922002-04-25 Theodore A. Roth <troth@verinet.com>
7193
7194 * Makefile.in: Add support for AVR target.
7195 * configure.tgt: Add support for AVR target.
7196 * avr-tdep.c: New file
7197 * config/avr/avr.mt: New file.
7198
79509c2d
TR
71992002-04-25 Theodore A. Roth <troth@verinet.com>
7200
7201 * MAINTAINERS: Add myself to write-after-approval.
7202
dac8068e
PM
72032002-04-24 Pierre Muller <ics.u-strasbg.fr>
7204
7205 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7206 with fprintf_unfiltered (gdb_stderr,....
7207
25bf3106
PM
72082002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7209
7210 Fix PR gdb/508.
7211 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7212
24467a86
PM
72132002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7214
7215 * p-exp.y: Also use new prev_lexptr variable
7216 to improve error reporting. Based on Michael Snyder
7217 2002-04-24 dated patch to c-exp.y.
7218
95b80706
JT
72192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7220
7221 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7222 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7223 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7224 to 0.
7225 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7226 and struct value.
7227 (FUNCTION_START_OFFSET): Remove.
7228 (BREAKPOINT): Ditto.
7229
e90cc612
JT
72302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7231
7232 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7233 * NEWS: Ditto.
7234
6c72f9f9
JT
72352002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7236
7237 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7238 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7239 alpha_linux_pc_in_sigtramp.
7240 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7241 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7242 alpha_osf1_pc_in_sigtramp.
7243 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7244 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7245 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7246 alphafbsd_pc_in_sigtramp.
7247 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7248 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7249 alphanbsd_pc_in_sigtramp.
7250 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7251 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7252
5e4f3379
JT
72532002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7254
7255 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7256
da8ca43d
JT
72572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7258
7259 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7260 alphanbsd-tdep.c.
7261 (alphanbsd-nat.o): New dependency list.
7262 (alphanbsd-tdep.o): Ditto.
7263 * NEWS: Note new native NetBSD/alpha configuration.
7264 * alphanbsd-nat.c: New file.
7265 * alphanbsd-tdep.c: Ditto.
7266 * configure.host (alpha*-*-netbsd*): New host.
7267 * configure.tgt (alpha*-*-netbsd*): New target.
7268 * config/alpha/nbsd.mh: New file.
7269 * config/alpha/nbsd.mt: Ditto.
7270 * config/alpha/nm-nbsd.h: Ditto.
7271 * config/alpha/tm-nbsd.h: Ditto.
7272
36a6271d
JT
72732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7274
7275 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7276 (alpha-osf1-tdep.o): New dependency list.
7277 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7278 and skip_sigtramp_frame members.
7279 * alpha-linux-tdep.c: Include gdbcore.h.
7280 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7281 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7282 * alpha-osf1-tdep.c: New file.
7283 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7284 alpha-osf1-dep.c.
7285 (alpha_frame_past_sigtramp_frame): New function.
7286 (alpha_dynamic_sigtramp_offset): Ditto.
7287 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7288 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7289 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7290 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7291 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7292 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7293 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7294 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7295 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7296 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7297 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7298 to find_solib_trampoline_target.
7299 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7300 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7301 (SKIP_TRAMPOLINE_CODE): Remove.
7302 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7303 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7304 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7305 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7306 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7307 (PROC_SIGTRAMP_MAGIC): Ditto.
7308 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7309 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7310 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7311 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7312 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7313
2f4bc57b
JT
73142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * NEWS: Note that Alpha targets are now multi-arch.
7317
665132f9
MS
73182002-04-24 Michael Snyder <msnyder@redhat.com>
7319
7320 * parser-defs.h (prev_lexptr): New external variable.
7321 * parse.c (parse_exp_1): Set prev_lexptr to null before
7322 calling the language-specific parser.
7323 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7324 (yyerror): Use prev_lexptr in error reporting.
7325
32872fa7
DJ
73262002-04-24 Daniel Jacobowitz <drow@mvista.com>
7327
7328 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7329 * gregset.h: If FILL_FPXREGSET is defined, provide
7330 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7331 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7332 is defined, call fill_fpxregset.
7333
57e76fac
MS
73342002-04-24 Roland McGrath <roland@frob.com>
7335
7336 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7337 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7338 (supply_gregset, supply_fpregset): New functions.
7339
7340 * gnu-nat.c (gnu_find_memory_regions): New function.
7341 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7342 (gnu_xfer_memory): Add a cast.
7343
f43845b3
MS
73442002-04-24 Michael Snyder <msnyder@redhat.com>
7345
361d1df0 7346 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7347 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7348 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7349 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7350 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7351 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7352
a0abec03
AC
7353Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7354
7355 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7356 NUM_PSEUDO_REGS can be used.
7357
d7bd68ca
AC
73582002-04-24 Andrew Cagney <ac131313@redhat.com>
7359
7360 * arch-utils.h: Update copyright.
7361
7362 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7363 * gdbarch.h, gdbarch.c: Re-generate.
7364
7365 * inferior.h (IN_SIGTRAMP): Delete definition.
7366 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7367 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7368
7369 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7370 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7371 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7372 (find_proc_framesize): Ditto.
7373 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7374 (alpha_init_extra_frame_info): Ditto.
7375 * infrun.c (handle_inferior_event): Ditto.
7376 (handle_inferior_event): Ditto.
7377 (check_sigtramp2): Ditto.
7378 * blockframe.c (create_new_frame): Ditto.
7379 (get_prev_frame): Ditto.
7380 * ppc-linux-tdep.c: Update comments.
7381 * i386-linux-tdep.c: Update comments.
7382 * breakpoint.c (bpstat_what): Update comment.
7383
4867e41e
DM
73842002-04-24 David S. Miller <davem@redhat.com>
7385
21d83aa5
DM
7386 * i960-tdep.c (register_in_window_p): New function.
7387 (i960_find_saved_register): Use it instead of
7388 REGISTER_IN_WINDOW_P.
7389 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7390
4867e41e
DM
7391 * symtab.h (find_stab_function_addr): Kill extern.
7392 * minsyms.c (find_stab_function_addr): Remove from here...
7393 * dbxread.c: ... to here, and mark it static.
7394
69cdf6a2
DM
73952002-04-20 David S. Miller <davem@redhat.com>
7396
7397 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7398 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7399
5a595886
DM
74002002-04-21 David S. Miller <davem@redhat.com>
7401
7402 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7403 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7404 (vx_write_register): Likewise.
7405
1da1a192
JB
74062002-04-23 J. Brobecker <brobecker@gnat.com>
7407
7408 * source.c (is_regular_file): New function.
7409 (openp): Check wether file to open is a regular file
7410 to avoid opening directories.
7411
baa6f10b
JT
74122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7413
7414 * findvar.c (extract_signed_integer): Cast printf argument
7415 to suppress format warning.
7416 (extract_unsigned_integer): Likewise.
7417 * infcmd.c (registers_info): Likewise.
7418 * top.c (get_prompt_1): Likewise.
7419 * valops.c (value_assign): Likewise.
7420 * valprint.c (print_decimal): Likewise.
7421
b2c4da81
L
74222002-04-22 H.J. Lu (hjl@gnu.org)
7423
7424 * c-exp.y (typebase): Support
361d1df0 7425
b2c4da81
L
7426 [long|long long|short] [signed|unsigned] [int|]
7427
7428 and
7429
7430 signed [long|long long|short] int
7431
f267bd6a
JT
74322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7435 and vax-tdep.h.
7436 * vax-tdep.h: New file.
7437 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7438 Make several routines static.
7439 (vax_get_saved_register): New function.
7440 (vax_gdbarch_init): New function.
7441 (_initialize_vax_tdep): Register vax_gdbarch_init.
7442 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7443 Remove macros now under the control of gdbarch.
7444
da3c6d4a
MS
74452002-04-22 Michael Snyder <msnyder@redhat.com>
7446
11d3b27d
MS
7447 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7448 Some whitespace and coding standards tweaks.
da3c6d4a 7449
a33f7558
JT
74502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * vax-tdep.c: Include regcache.h.
7453 (vax_call_dummy_words): New.
7454 (sizeof_vax_call_dummy_words): New.
7455 (vax_fix_call_dummy): New function.
7456 (vax_saved_pc_after_call): Ditto.
7457 * config/vax/tm-vax.h: Don't include regcache.h.
7458 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7459 (CALL_DUMMY): Remove.
7460 (CALL_DUMMY_WORDS): Define.
7461 (SIZEOF_CALL_DUMMY_WORDS): Define.
7462 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7463
47a73475
MS
74642002-04-18 Michael Snyder <msnyder@redhat.com>
7465
7466 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7467
52efde73
JT
74682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7469
7470 * vax-tdep.c (vax_frame_chain): New function.
7471 (vax_push_dummy_frame): Ditto.
7472 (vax_pop_frame): Ditto.
7473 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7474 (FRAMELESS_FUNCTION_INVOCATION): Use
7475 generic_frameless_function_invocation_not.
7476 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7477 (POP_FRAME): Use vax_pop_frame.
7478
ea74468c
JT
74792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7480
7481 * vax-tdep.c (vax_store_struct_return): New function.
7482 (vax_extract_return_value): Ditto.
7483 (vax_store_return_value): Ditto.
7484 (vax_extract_struct_value_address): Ditto.
7485 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7486 vax_store_struct_return.
7487 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7488 (STORE_RETURN_VALUE): Use vax_store_return_value.
7489 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7490
5516aa92
JT
74912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7492
7493 * vax-tdep.c (vax_frame_saved_pc): New function.
7494 (vax_frame_args_address_correct): Ditto.
7495 (vax_frame_args_address): Ditto.
7496 (vax_frame_locals_address): Ditto.
7497 (vax_frame_num_args): Move code to be in proximity to
7498 other frame-related functions.
7499 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7500 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7501 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7502 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7503 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7504
36af0b35
L
75052002-04-22 H.J. Lu (hjl@gnu.org)
7506
7507 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7508 includedir.
7509
ab62c900
JT
75102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7513 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7514 (FRAME_INIT_SAVED_REGS): New macro.
7515
7232b100
JT
75162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7517
7518 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7519
b70d2aee
JT
75202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7521
7522 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7523 where needed.
7524 (fetch_osf_core_registers): Likewise.
7525 (supply_gregset): Likewise.
7526
a0e8a2d1 75272002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7528
a0e8a2d1
JB
7529 * symfile.h (get_section_index): Define.
7530 * symfile.c (get_section_index): New function.
7531 * mdebugread.c (SC_IS_SBSS): New macro.
7532 (SC_IS_BSS): Return true for the scBss storage class only, as
7533 the scSBss storage class refers to the .sbss section.
7534 (parse_partial_symbols): Discard the symbols which associated
7535 section does not exist.
7536 Make sure to use the .sbss section index for symbols which
7537 storage class is scBss, rather than using the .bss section index.
7538
51eb8b08
JT
75392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7540
7541 * vax-tdep.c: Update copyright years.
7542 (vax_register_name): New function.
7543 (vax_register_byte): Ditto.
7544 (vax_register_raw_size): Ditto.
7545 (vax_register_virtual_size): Ditto.
7546 (vax_register_virtual_type): Ditto.
7547 * config/vax/tm-vax.h: Update copyright years.
7548 (REGISTER_NAMES): Remove.
7549 (REGISTER_NAME): Define.
7550 (REGISTER_BYTE): Use vax_register_byte.
7551 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7552 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7553 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7554
6cc1c0a8
AC
75552002-04-21 Andrew Cagney <ac131313@redhat.com>
7556
7557 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7558 declaration
7559 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7560
9319a2fe
DM
75612002-04-21 David S. Miller <davem@redhat.com>
7562
7563 * arch-utils.c (generic_prologue_frameless_p): Kill
7564 SKIP_PROLOGUE_FRAMELESS_P code.
7565 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7566 references.
7567 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7568 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7569 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7570 references.
7571 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7572 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7573 (sparc_gdbarch_init): Pass it to
7574 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7575
e9ed6d01
JT
75762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7577
7578 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7579 (alphabsd-nat.o): New dependency list.
7580
36012033
JT
75812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7582
7583 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7584 alphafbsd-tdep.c.
7585 (alpha-linux-tdep.o): New dependency list.
7586 (alphafbsd-tdep.o): Likewise.
7587
3379287a
JT
75882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7589
7590 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7591 to here...
7592 * alpha-tdep.c: ...from here.
7593 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7594
4bcbd6cb
JT
75952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7598 prototype from here...
7599 * alpha-tdep.h: ...to here.
7600
b31da25e
AC
76012002-04-21 Andrew Cagney <ac131313@redhat.com>
7602
7603 * frame.h (selected_frame_level): Document as deprecated.
7604 (frame_relative_level): Declare.
7605 * stack.c (frame_relative_level): New function.
7606 (selected_frame_level): Document as deprecated.
7607 (select_frame): Do not set the selected_frame_level.
7608
7609 * stack.c (frame_info, record_selected_frame): Update.
7610 (frame_command, current_frame_command): Update.
7611 (up_silently_base, up_command, down_silently_base): Update.
7612 (down_command): Update.
7613 * inflow.c (kill_command): Update.
7614 * tracepoint.c (finish_tfind_command): Update.
7615 * corelow.c (core_open): Update.
7616 * thread.c (info_threads_command): Update.
7617 (do_captured_thread_select): Update.
7618 * infcmd.c (finish_command): Update.
7619 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7620
9c1d6fe5
JT
76212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7622
7623 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7624
ab89facf
AC
76252002-04-21 Andrew Cagney <ac131313@redhat.com>
7626
7627 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7628 type const.
7629
82a4efa1
JT
76302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7631
7632 * alphafbsd-tdep.c: Update copyright years. Include
7633 alpha-tdep.h.
7634 (alphafbsd_use_struct_convention): Make static.
7635 (alphafbsd_init_abi): New function.
7636 (_initialize_alphafbsd_tdep): New function.
7637 * config/alpha/tm-fbsd.h: Update copyright years.
7638 (USE_STRUCT_CONVENTION): Remove.
7639
44dffaac
JT
76402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7643 an Alpha ABI variant.
7644 (alpha_abi_handler_list): Declare.
7645 (alpha_gdbarch_register_os_abi): New function.
7646 (alpha_gdbarch_init): Give registered ABI variant handlers a
7647 chance to tweak the gdbarch once we have set up defaults.
7648 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7649
65585be4
JT
76502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7653 to standard_coerce_float_to_double.
7654 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7655
d9b023cc
JT
76562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7659 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7660 from gdbarch_tdep rather than a constant.
7661 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7662 the default text address for all Alpha Unix ABIs.
7663 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7664 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7665
dc129d82
JT
76662002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7667
7668 * alpha-tdep.h: New file. Includes several Alpha target constants
7669 taken from...
7670 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7671 let gdbarch deal with.
7672 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7673 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7674 to dependency list.
7675 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7676 Alpha target register names.
7677 * alphabsd-nat.c: Likewise.
7678 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7679 Alpha target register names. Make serveral routines static.
7680 (alpha_get_saved_register): New function.
7681 (alpha_abi_names): New.
7682 (process_note_abi_tag_sections): New function.
7683 (get_elfosabi): New function.
7684 (alpha_gdbarch_init): New function.
7685 (alpha_dump_tdep): New function.
7686 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7687
d49d1e0a
AC
76882002-04-21 Andrew Cagney <ac131313@redhat.com>
7689
7690 * frame.c (find_saved_register): Delete #ifdef
7691 HAVE_REGISTER_WINDOWS code.
7692 * config/sparc/tm-sparc.h: Update comments.
7693 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7694
92e8c9ed
AC
76952002-04-21 Andrew Cagney <ac131313@redhat.com>
7696
7697 * i960-tdep.c (i960_find_saved_register): New function.
7698 (i960_get_saved_register): New function.
7699 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7700 (i960_get_saved_register): Declare.
7701 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7702
e1925118
DM
77032002-04-20 David S. Miller <davem@redhat.com>
7704
7705 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7706
29673b29
AC
77072002-04-20 Andrew Cagney <ac131313@redhat.com>
7708
7709 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7710 instead of NUM_PSEUDO_REGS.
7711
6c86dcd5
DM
77122002-04-20 David S. Miller <davem@redhat.com>
7713
7714 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7715 GDB_MULTI_ARCH_PARTIAL
7716 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7717 define, let tm-sp64.h do it.
7718
aa40ec90
JT
77192002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * frame.c (find_saved_register): Avoid a NULL pointer
7722 dereference and actually walk the frame list.
7723
0f79675b
AC
77242002-04-20 Andrew Cagney <ac131313@redhat.com>
7725
7726 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7727 sorted in most most-recent-used order. Document.
7728 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7729
f91305dd 77302002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7731
7732 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7733 instead of ->prev.
7734 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7735 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7736 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7737 instead of ->prev.
7738
73d322b1
EZ
77392002-04-19 Elena Zannoni <ezannoni@redhat.com>
7740
7741 Fix PR gdb/471.
7742 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7743 (build_builtin_type_vec128): Ditto.
7744 (append_composite_type_field): Fix calculation of type length in
7745 union case.
7746
ccd9a834
EZ
77472002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7748
7749 * config/djgpp/README: Update.
7750
7751 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7752 compiler warnings.
7753
a57f9e49
JT
77542002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7757 (alpha_setup_arbitrary_frame): ...to this.
7758 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7759 for alpha_setup_arbitrary_frame.
7760
f4f9705a
AC
77612002-04-18 Andrew Cagney <cagney@redhat.com>
7762
7763 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7764 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7765
f4f9705a
AC
7766 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7767 * target.h (memory_breakpoint_from_pc): Update declaration.
7768 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7769
7770 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7771 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7772 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7773 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7774 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7775 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7776 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7777 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7778 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7779 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7780 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7781 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7782
7783 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7784 const pointer.
7785 * monitor.c (monitor_insert_breakpoint): Ditto.
7786 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7787
7788 * config/mcore/tm-mcore.h: Update copyright.
7789 * mem-break.c: Ditto.
7790 * xstormy16-tdep.c: Ditto.
7791
29f319b8
PM
77922002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7793
7794 * p-exp.y: Add precedence rule for '^' token.
7795 This removes the shift/reduce conflicts.
7796 Remove the comment concerning these shift/reduce conflicts.
7797
ebeac11a
EZ
77982002-04-18 Elena Zannoni <ezannoni@redhat.com>
7799
7800 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7801 (registers_powerpc_nofp): New register set for processors
7802 without floating point unit.
7803
27c31547
DM
78042002-04-18 David S. Miller <davem@redhat.com>
7805
7806 * MAINTAINERS: Add myself to write-after-approval.
7807
47a73475
MS
78082002-04-17 Michael Snyder <msnyder@redhat.com>
7809
7810 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7811
953836b2
AC
78122002-04-17 Andrew Cagney <ac131313@redhat.com>
7813
7814 * rs6000-tdep.c (frame_initial_stack_address): Use
7815 frame_register_read to read the alloca_reg.
7816
8b0d4340
AC
78172002-04-17 Andrew Cagney <ac131313@redhat.com>
7818
7819 * frame.c (find_saved_register): Find saved registers in the next
7820 not prev frame.
7821 Fix PR gdb/365.
7822
d8864532
AC
78232002-04-17 Andrew Cagney <ac131313@redhat.com>
7824
7825 * gdbarch.sh (LANG): Set to ``c''.
7826
36cc83a3 78272002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7828
36cc83a3 7829 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7830
2f4150cc 78312002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7832
7833 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7834 Update copyright.
7835
628703c6 7836 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7837 Also fix PR gdb/391.
361d1df0 7838
56157b4a
AC
78392002-04-14 Andrew Cagney <ac131313@redhat.com>
7840
7841 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7842 * aclocal.m4, configure: Re-generate.
7843 Fix PR gdb/391.
361d1df0 7844
6d1e3329
EZ
78452002-04-14 Elena Zannoni <ezannoni@redhat.com>
7846
7847 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7848 instead of tm_print_insn.
7849
cb06fa07
EZ
78502002-04-14 Elena Zannoni <ezannoni@redhat.com>
7851
7852 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7853
f208ba17
AC
78542002-04-14 Andrew Cagney <ac131313@redhat.com>
7855
7856 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7857 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7858 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7859
20f01a46
DH
78602002-04-12 Don Howard <dhoward@redhat.com>
7861
7862 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7863 max_user_call_depth.
7864 (init_cmd_lists): Initialize the new value;
7865 * cli/cli-script.c (execute_user_command): Limit the call depth of
7866 user defined commands. This avoids a core-dump when user commands
7867 are infinitly recursive.
7868
a88376a3
KB
78692002-04-12 Kevin Buettner <kevinb@redhat.com>
7870
7871 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7872 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7873 from tdep struct instead of DEFAULT_LR_SAVE.
7874 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7875 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7876 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7877
f2172603
MS
78782002-04-12 Michael Snyder <msnyder@redhat.com>
7879
694f61fb 7880 * Remote.c: Spelling fix.
20fe79c8
MS
7881 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7882 If no symbol found for "sbrk", try "_sbrk".
7883 (make_output_phdrs): Use bfd_section_name.
7884 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7885 * eval.c: Indentation fix-ups.
169a7369
MS
7886 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7887 in case it gets applied to an address that is already
7888 in the instruction space.
de74f71f
MS
7889 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7890 * symfile.c: Fix indentation, long lines.
f2172603
MS
7891 * source.c: White space fix-up.
7892
cda5a58a
AC
78932002-04-12 Andrew Cagney <cagney@redhat.com>
7894
7895 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7896 * frame.c (frame_register_read): New function. Return non-zero on
7897 success.
7898 (read_relative_register_raw_bytes_for_frame): Delete.
7899 (read_relative_register_raw_bytes): Delete.
7900 * frame.h (frame_register_read): Declare.
7901 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7902 * sh-tdep.c: Ditto.
7903 * infcmd.c (do_registers_info): Ditto.
7904 * hppa-tdep.c: Ditto.
7905 * rs6000-tdep.c: Ditto.
7906 * h8500-tdep.c: Ditto.
7907 * mips-tdep.c: Ditto.
7908 * h8300-tdep.c: Ditto.
7909 * z8k-tdep.c: Ditto.
7910
2ea5f656
KB
79112002-04-12 Kevin Buettner <kevinb@redhat.com>
7912
7913 From Jimi X <jimix@watson.ibm.com>:
7914 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7915 64-bit SysV ABI.
7916
27b15785
KB
79172002-04-12 Kevin Buettner <kevinb@redhat.com>
7918
7919 From Jimi X <jimix@watson.ibm.com>:
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7921 bfd info.
7922
5d57ee30
KB
79232002-04-12 Kevin Buettner <kevinb@redhat.com>
7924
7925 From Jimi X <jimix@watson.ibm.com>:
7926 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7927 register sets for these processor variants.
7928
bc1e36ca
DJ
79292002-04-11 Daniel Jacobowitz <drow@mvista.com>
7930
bc1e36ca
DJ
7931 * regformats/reg-ppc.dat: Support FPSCR.
7932
e3f36dbd
KB
79332002-04-11 Kevin Buettner <kevinb@redhat.com>
7934
7935 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7936 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7937 Add fpscr as an invalid/unfetchable register.
7938 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7939 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7940 (fill_fpregset): Add support for register fpscr.
7941 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7942 (fill_gregset): Account for the fact that register ``mq'' might
7943 not exist.
7944 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7945 (registers_power): Add fpscr to register set at slot 71.
7946 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7947 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7948
943c9c25
MS
79492002-04-11 Michael Snyder <msnyder@redhat.com>
7950
7951 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7952 * configure: Regenerate.
7953 * config.in: Regenerate.
7954 * acconfig.h: Add define for _SYSCALL32.
7955 * core-sol2.c: Remove #define _SYSCALL32.
7956 * solib-legacy.c: Remove #define _SYSCALL32.
7957
d8c0a2e7
AC
79582002-04-10 Andrew Cagney <ac131313@redhat.com>
7959
7960 * stack.c (select_frame): Cleanup internal error message, do not
7961 use %p.
7962
7cc19214
AC
79632002-04-10 Andrew Cagney <ac131313@redhat.com>
7964
7965 * stack.c (select_frame): Check that selected_frame and the
7966 specified level are as expected.
7967 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7968 Update copyright.
7969 * frame.h (struct frame_info): Add field `level'. Update
7970 copyright.
7971 Work-in-progress PR gdb/464.
7972
67a2b77e
AC
79732002-04-10 Andrew Cagney <ac131313@redhat.com>
7974
7975 * maint.c (maint_print_section_info): Rename print_section_info.
7976 (print_bfd_section_info, print_objfile_section_info): Update.
7977 * inferior.h (struct gdbarch): Add opaque declaration.
7978 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7979 * gdbarch.h: Regenerate.
7980
8cfda98c
ML
79812002-04-10 Michal Ludvig <mludvig@suse.cz>
7982
7983 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7984 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7985 (kernel_u_size): Added.
7986 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7987 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7988
ca439ad2 79892002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7990
ca439ad2
JI
7991 * valarith.c (find_size_for_pointer_math): New function, either returns
7992 the size for a pointer's target, returns 1 for void *, or errors for
7993 incomplete types.
7994 (value_add, value_sub): use find_size_for_pointer_math.
7995
2f2893d9
DJ
79962002-04-09 Daniel Jacobowitz <drow@mvista.com>
7997
7998 * linux-low.c (linux_look_up_symbols): New hook.
7999 (linux_target_ops): Add linux_look_up_symbols.
8000 * remote-utils.c (decode_address): New function.
8001 (look_up_one_symbol): New function.
8002 * server.c (handle_query): Call target look_up_symbols hook.
8003 * server.h (look_up_one_symbol): Add prototype.
8004 * target.h (struct target_ops): Add look_up_symbols hook.
8005
96cb11df
AC
80062002-04-09 Andrew Cagney <ac131313@redhat.com>
8007
8008 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8009 override FP_REGNUM with frame->fp. Update copyright.
8010 * parse.c (num_std_regs, std_regs): Delete.
8011 (target_map_name_to_register): Do not search std_regs. Update
8012 function description.
8013 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8014 declarations. Update copyright.
8015 Fix PR gdb/251.
361d1df0 8016
97658e92
DJ
80172002-04-09 Daniel Jacobowitz <drow@mvista.com>
8018
8019 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8020 after the last symbol in a block.
8021
6044e3eb
PM
80222002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8023
8024 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8025 is non zero as a found symbol.
8026
0406ec40
AC
80272002-04-08 Andrew Cagney <ac131313@redhat.com>
8028
8029 * findvar.c: Include "builtin-regs.h".
8030 (value_of_register): Call value_of_builtin_reg when applicable.
8031 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8032 (target_map_name_to_register): Call
8033 builtin_reg_map_name_to_regnum.
8034 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8035 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8036 (builtin_regs_h): Define.
8037 (builtin-regs.o): New target.
8038 (findvar.o): Add $(builtin_regs_h).
8039 * builtin-regs.c, builtin-regs.h: New files.
8040 * std-regs.c: New file.
8041 Partial fix for PR gdb/251.
8042
56a6dfb9
KB
80432002-04-08 Kevin Buettner <kevinb@redhat.com>
8044
8045 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8046 it's no longer required.
8047
3a808432
AC
80482002-04-08 Andrew Cagney <ac131313@redhat.com>
8049
8050 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8051
7c40d541
KB
80522002-04-08 Kevin Buettner <kevinb@redhat.com>
8053
8054 From Jimi X <jimix@watson.ibm.com>:
8055 * rs6000-tdep.c (rs6000_software_single_step): Use
8056 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8057 and size. Use target_insert_breakpoint() and
8058 target_remove_breakpoint() to insert and remove breakpoints
8059 instead of explicit memory reads and writes.
8060
cc9836a8
KB
80612002-04-08 Kevin Buettner <kevinb@redhat.com>
8062
8063 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8064 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8065 ELF_OBJECT_FORMAT ifdef.
8066
7495d1dc
KB
80672002-04-08 Kevin Buettner <kevinb@redhat.com>
8068
8069 From Jimi X <jimix@watson.ibm.com>:
8070 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8071
4288e836
KB
80722002-04-08 Kevin Buettner <kevinb@redhat.com>
8073
8074 From Jimi X <jimix@watson.ibm.com>:
8075 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8076 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8077
a4e4e501
MK
80782002-04-07 Mark Kettenis <kettenis@gnu.org>
8079
8080 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8081 s/asprintf/xasprintf/.
8082 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8083
006defba
AC
80842002-04-07 Andrew Cagney <ac131313@redhat.com>
8085
8086 I believe Jeff Law denies responsability for this one:
8087 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8088 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8089 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8090 Work-around for PR gdb/366.
8091
7aa83cac
EZ
80922002-04-07 Elena Zannoni <ezannoni@redhat.com>
8093
8094 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8095 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8096 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8097
cf1fcca1
EZ
80982002-04-07 Elena Zannoni <ezannoni@redhat.com>
8099
8100 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8101 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8102 information.
8103
3f289e6f
AC
81042002-04-07 Andrew Cagney <ac131313@redhat.com>
8105
8106 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8107 maintainer.
8108
129188f6
AC
81092002-04-07 Andrew Cagney <ac131313@redhat.com>
8110
8111 * README (Reporting Bugs in GDB): Document the bug web page as the
8112 prefered way of submitting bugs.
8113 Fix PR gdb/402.
8114
1200cd6e
AC
81152002-04-06 Andrew Cagney <ac131313@redhat.com>
8116
8117 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8118 -1. Update comment.
8119 * gdbarch.h, gdbarch.c: Re-generate.
8120
2853c33c
AS
81212002-04-07 Andreas Schwab <schwab@suse.de>
8122
8123 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8124 buffer to regcache_collect.
8125
c2169756
AC
81262002-04-06 Andrew Cagney <ac131313@redhat.com>
8127
8128 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8129 * gdbarch.c, gdbarch.h: Re-generate.
8130
25f1b008
AC
81312002-04-06 Andrew Cagney <ac131313@redhat.com>
8132
8133 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8134 declaration. Fix -Werror.
8135
59263426
DJ
81362002-04-05 Daniel Jacobowitz <drow@mvista.com>
8137
8138 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8139 * gdbarch.c: Regenerate.
8140
f5db4da3
MS
81412002-04-05 Michael Snyder <msnyder@redhat.com>
8142
80f8a6eb
MS
8143 * breakpoint.c (clear_command): Rewrite middle section to
8144 combine two loops with identical control conditions.
8145 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8146 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8147
ad3dcc5c
L
81482002-04-05 H.J. Lu (hjl@gnu.org)
8149
8150 * solib-svr4.c (bkpt_names): Add "__start".
8151
f32e7a74
AC
81522002-04-04 Andrew Cagney <ac131313@redhat.com>
8153
8154 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8155 as test for 64 bit target.
8156
8227c0ff
AC
81572002-04-05 Andrew Cagney <ac131313@redhat.com>
8158
8159 * h8500-tdep.c (h8500_write_fp): Delete function.
8160 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8161 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8162 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8164 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8165 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8166 (s390_write_fp):
8167 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8168 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8169 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8170 (d10v_write_fp): Delete function.
8171 * inferior.h (write_fp, generic_target_write_fp): Delete
8172 declarations.
8173 * regcache.c (generic_target_write_fp): Delete function.
8174 (write_fp): Delete function.
8175 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8176 * gdbarch.h, gdbarch.c: Regenerate.
8177 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8178 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8179 (sparc64_write_fp): Delete declaration.
8180 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8181 (h8500_write_fp): Delete declaration.
8182
2757dd86
AC
81832002-04-04 Andrew Cagney <ac131313@redhat.com>
8184
8185 * sparc-tdep.c (sparc64_write_fp): Delete.
8186 (sparc_push_dummy_frame): Replace write_fp call with code to store
8187 the FP directly.
8188 (sparc_gdbarch_init): Do not initialize write_fp.
8189
c69255e1
KB
81902002-04-05 Kevin Buettner <kevinb@redhat.com>
8191
8192 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8193 clause.
8194
ae767bfb
JB
81952002-03-29 Jim Blandy <jimb@redhat.com>
8196
8197 * stack.c (get_selected_block): Add new argument `addr_in_block',
8198 used to return the exact code address we used to select the block,
8199 not just the block.
8200 * blockframe.c (get_frame_block, get_current_block): Same.
8201 * frame.h (get_frame_block, get_current_block,
8202 get_selected_block): Update declarations.
8203 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8204 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8205
84d2ac95
MS
82062002-04-05 Michael Snyder <msnyder@redhat.com>
8207
8208 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8209 warning message.
8210
596aa3bf
JB
82112002-04-05 J. Brobecker <brobecker@gnat.com>
8212
8213 * utils.c (xfullpath): New function.
8214 * defs.h (xfullpath): Add declaration.
8215 * source.c (openp): Use xfullpath in place of gdb_realpath to
8216 avoid resolving the basename part of filenames when the
8217 associated file is a symbolic link. This fixes a potential
8218 inconsistency between the filenames known to GDB and the
8219 filenames it prints in the annotations.
8220 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8221 to be able to match a filename with either the real filename, or
8222 the name of any symbolic link to this file.
8223 (lookup_partial_symtab): Ditto.
8224
c02f5703
MS
82252002-04-04 Michael Snyder <msnyder@redhat.com>
8226
8227 * breakpoint.c: Add support for hardware breakpoints in overlays.
8228 (overlay_events_enabled): New state variable.
8229 (insert_breakpoints): Use overlay_events_enabled to decide
8230 whether to attempt to set a breakpoint at the overlay load addr.
8231 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8232 (remove_breakpoint): Use overlay_events_enabled to decide
8233 whether breakpoints need to be removed from overlay load addr.
8234 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8235 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8236 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8237 disable_overlay_breakpoints): Update overlay_events_enabled.
8238
5fb290d7
DJ
82392002-04-04 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * dwarf2read.c (struct function_range): New.
8242 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8243 (check_cu_functions): New.
8244 (read_file_scope): Initialize global function lists.
8245 Call dwarf_decode_line after processing children.
8246 (read_func_scope): Add to global function list.
8247 (dwarf_decode_lines): Call check_cu_functions everywhere
8248 record_line is called. Call record_line with a linenumber
8249 of 0 to mark sequence ends.
8250
7b3fabf0
ML
82512002-04-04 Michal Ludvig <mludvig@suse.cz>
8252
361d1df0 8253 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8254 change sync with glibc.
8255
bce58c09
JB
82562002-04-03 Jim Blandy <jimb@redhat.com>
8257
8258 * configure.in: Call AC_C_INLINE.
8259 * configure: Regenerated.
361d1df0 8260
2fccf04a
DJ
82612002-04-01 Daniel Jacobowitz <drow@mvista.com>
8262
8263 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8264 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8265
2d1bfe2e
MK
82662002-03-31 Mark Kettenis <kettenis@gnu.org>
8267
a5941fbf
MK
8268 * NEWS: Mention gcore support on FreeBSD/i386.
8269
a90cd31d
MK
8270 * fbsd-proc.c: New file.
8271 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8272 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8273
2d1bfe2e
MK
8274 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8275 while statement.
8276
9eb6e5a1
JB
82772002-03-29 Jim Blandy <jimb@redhat.com>
8278
8279 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8280 unescaped newlines in string literals, but newer ones don't. So
8281 escape them.
8282
f02df580
MS
82832002-03-26 Michael Snyder <msnyder@redhat.com>
8284 Andrew Cagney <cagney@redhat.com>
8285
361d1df0 8286 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8287 restore file to memory.
8288 * cli/cli-dump.h: New file.
8289 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8290 * NEWS: Mention new commands.
f02df580 8291
109f874e
MS
82922002-03-28 Michael Snyder <msnyder@redhat.com>
8293
8294 * symfile.c (symbol_file_add): Move test for null symbols to later.
8295
520f6ade
AC
82962002-03-27 Andrew Cagney <ac131313@redhat.com>
8297
8298 From veksler at il.ibm.com:
8299 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8300 the xstrduped original path.
8301 Fix PR gdb/417.
8302
d4654627
MS
83032002-03-27 Michael Snyder <msnyder@redhat.com>
8304
8305 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8306 * infcmd.c (_initialize_infcmd): Ditto.
8307 * language.c (_initialize_language): Ditto.
8308 * symfile.c (_initialize_symfile): Ditto.
8309 * top.c (_init_main): Ditto.
8310 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8311
6be8bc0c
EZ
83122002-03-27 Elena Zannoni <ezannoni@redhat.com>
8313
8314 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8315 vector registers handling.
8316 (skip_prologue): Handle new AltiVec instructions. Fill in new
8317 fields of frame data.
8318 (frame_get_saved_regs): Fill in information for AltiVec registers.
8319
12af6855
JB
83202002-03-27 Jim Blandy <jimb@redhat.com>
8321
8322 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8323 a function; leave this macro here to invoke that function.
8324 (symbol_init_mangled_name): Declaration for that function.
8325 * symtab.c (symbol_init_mangled_name): New function.
8326
dc672865
AC
83272002-03-27 Andrew Cagney <ac131313@redhat.com>
8328
8329 * valarith.c: Replace strerror with safe_strerror.
8330 * tracepoint.c: Ditto.
8331 * lin-lwp.c: Ditto.
8332 * go32-nat.c: Ditto.
8333 * inflow.c: Ditto.
8334 * gnu-nat.c: Ditto.
8335
d96429cd
AS
83362002-03-27 Andreas Schwab <schwab@suse.de>
8337
8338 * event-top.c (command_line_handler): Remove useless if.
8339
7e336ba1
AJ
83402002-03-27 Andreas Jaeger <aj@suse.de>
8341
8342 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8343 comment.
8344
de220d0f
ML
83452002-03-27 Michal Ludvig <mludvig@suse.cz>
8346
8347 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8348 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8349 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8350 (x86_64_linux_dr_get_status, supply_gregset),
8351 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8352 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8353 (x86_64_register_info_table): Add.
8354 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8355 (x86_64_register_raw_size, x86_64_register_virtual_type),
8356 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8357 general x86_64_register_info_table.
8358 (i386_gdbarch_init): gdbarch_register_bytes is now set
8359 dynamicaly during initialization.
8360 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8361 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8362
0e98d0a7
DJ
83632002-03-27 Daniel Jacobowitz <drow@mvista.com>
8364
8365 * gdbserver/server.c (main): Call target_signal_to_host_p
8366 and target_signal_to_host on signals received from the remote.
8367 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8368 target_signal_from_host on signals sent to the remote.
8369 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8370 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8371
3130066b
DJ
83722002-03-27 Daniel Jacobowitz <drow@mvista.com>
8373
8374 * signals/signals.c: Include "server.h" in gdbserver build.
8375 (target_signal_from_name): Don't use STREQ.
8376 (_initialize_signals): Likewise. Don't include function in
8377 gdbserver build.
8378
9aedf4f4
DJ
83792002-03-27 Daniel Jacobowitz <drow@mvista.com>
8380
8381 * signals.c: Moved to...
8382 * signals/signals.c: Here.
7e336ba1 8383 * Makefile (signals.o): Update.
9aedf4f4 8384
3fa41cdb
JL
83852002-03-26 Jeff Law (law@redhat.com)
8386
8387 * somread.c (som_symtab_read): Remove some commented out code and
8388 updated related comments. Do not set the minimal symbol table to
8389 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8390 in a dynamic executable.
8391 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8392 where we are unable to find the minimal symbol for the given
8393 PC value.
8394
ee677e8d
MS
83952002-03-25 Jeff Law (law@redhat.com)
8396
8397 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8398
e76e1718
ML
83992002-03-25 Michal Ludvig <mludvig@suse.cz>
8400
8401 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8402
18a642a1
AC
84032002-03-23 Andrew Cagney <ac131313@redhat.com>
8404
8405 * command.h: Update copyright.
8406 (struct cmd_list_element): Replace definition with opaque
8407 declaration.
8408 (enum cmd_types): Document that it will eventually be moved to
8409 cli/cli-decode.h
8410 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8411 (MALLOCED_REPLACEMENT): Delete macro.
8412 * Makefile.in (cli_decode_h): Add $(command_h).
8413 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8414 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8415 * completer.c: Include "cli/cli-decode.h".
8416 * maint.c: Include "cli/cli-decode.h".
8417 * cli/cli-decode.h: Include "command.h".
8418 (enum command_class): Delete.
8419 (enum cmd_types): Comment out.
8420 (enum cmd_auto_boolean): Delete.
8421 (enum var_types): Delete.
8422
b2875cc0
AC
84232002-03-23 Andrew Cagney <ac131313@redhat.com>
8424
8425 * cli/cli-decode.c: Include "gdb_assert.h".
8426 (add_set_or_show_cmd): New static function.
8427 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8428 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8429 all fields, such as func, from the set command.
8430
3b45974e
AC
84312002-03-23 Andrew Cagney <ac131313@redhat.com>
8432
8433 * MAINTAINERS (sh-elf): Change warning flag to -w.
8434
823ca731
AC
84352002-03-23 Andrew Cagney <cagney@redhat.com>
8436
8437 * defs.h (error): Add printf format attribute.
8438 * thread-db.c (thread_from_lwp): Fix error format string.
8439 * stack.c (parse_frame_specification): Ditto.
8440 * cli/cli-decode.c (undef_cmd_error): Ditto.
8441 * scm-lang.c (scm_lookup_name): Ditto.
8442 * tracepoint.c (trace_error): Ditto.
8443 * remote-utils.c (usage): Ditto.
8444 * remote.c (compare_sections_command): Ditto.
8445 Fix PR gdb/328.
8446
0e101458
AC
84472002-03-22 Andrew Cagney <ac131313@redhat.com>
8448
8449 * gdbtypes.c (append_composite_type_field): New function.
8450 (init_composite_type): New function.
8451 * gdbtypes.h (append_composite_type_field): Declare.
8452 (init_composite_type): Ditto.
8453
8e0662df
EZ
84542002-03-22 Elena Zannoni <ezannoni@redhat.com>
8455
8456 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8457 function.
8e0662df
EZ
8458 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8459 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8460 structure returning convention for SYSV ABI case, but not
8461 for GNU/Linux, FreeBSD, or NetBSD.
8462
3121eff0
DJ
84632002-03-22 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * symtab.h (lookup_block_symbol): Add mangled_name argument
8466 to prototype.
8467
8468 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8469 with new mangled_name argument.
8470 * linespec.c (decode_line_1): Likewise.
8471 * valops (value_of_this): Likewise.
8472 * symtab.c (lookup_transparent_type): Likewise.
8473 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8474 (lookup_symbol): If we are given a mangled name, pass it down
8475 to lookup_symbol_aux.
8476 (lookup_block_symbol): If we are given a mangled name to check
8477 against, only return symbols which match it.
8478
349b409f
CF
84792002-03-22 Christopher Faylor <cgf@redhat.com>
8480
8481 * win32-nat.c (child_create_inferior): Check for proper shell to use
8482 here, in case the user changes it on the fly.
8483 (_initialize_inftarg): Remove shell path considerations.
8484
2a873819
EZ
84852002-03-21 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8488 for gdbarch_max_register_raw_size and max_register_virtual_size.
8489 Adjust copyright year.
8490
a1b9830c
DJ
84912002-03-21 Daniel Jacobowitz <drow@mvista.com>
8492
8493 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8494 in a function to cover the entire beginning of the function
8495 as well if it does not already.
8496
8b5790f2
TR
84972002-03-21 Tom Rix <trix@redhat.com>
8498
8499 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8500 (rs6000_ptrace64): Renamed from ptrace64.
8501
bdbe5747
MH
85022002-03-20 Martin M. Hunt <hunt@redhat.com>
8503
8504 * gdbserver/remote-utils.c (remote_open): Don't call
8505 getprotobyname, we're all using TCP here so just use
8506 IPPROTO_TCP.
7e336ba1 8507 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8508
85092002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8510
bdbe5747
MH
8511 * regcache.c (_initialize_regcache): No need to call
8512 build_regcache() at this time; it gets called whenever
8513 the gdbarch changes.
8514
7781cd62
DB
85152002-03-20 David O'Brien <obrien@FreeBSD.org>
8516
8517 * sparc-nat.c: Include sys/param.h where possible.
8518
f65ca430
DJ
85192002-03-20 Daniel Jacobowitz <drow@mvista.com>
8520
8521 Fix PR gdb/422.
8522 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8523 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8524 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8525 complex types.
8526 * stabsread.c (rs6000_builtin_type): Likewise.
8527 (read_sun_floating_type): Likewise.
8528
0c867556
PS
85292002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8530
8531 * stabsread.c (read_member_functions): Remove skip code for duplicate
8532 constructor/destructor methods. Use standard parsing for these
8533 methods and just do not chain them to the list of methods after
8534 parsing.
8535
12b9c64f
AO
85362002-03-19 Alexandre Oliva <aoliva@redhat.com>
8537
8538 * coffread.c: Remove redundant static declarations. Replace
8539 occurrences of `PTR' with `void *'.
8540 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8541 * top.h (quit_cover): Likewise.
8542 * defs.h (catch_errors): Likewise.
8543
349c5d5f
AC
85442002-03-18 Andrew Cagney <ac131313@redhat.com>
8545
8546 * defs.h (XMALLOC): Define.
8547 * gdb-events.sh (XMALLOC): Delete macro.
8548 * gdb-events.c, gdb-events.h: Regenerate.
8549 * gdbarch.sh (XMALLOC): Delete macro.
8550 * gdbarch.c: Regenerate.
8551 * serial.c (XMALLOC): Delete macro.
8552 * ui-file.c (XMALLOC): Ditto.
8553 * ser-unix.h (XMALLOC): Ditto.
8554 * sh-tdep.c (XMALLOC): Ditto.
8555 * ui-out.c (XMALLOC): Ditto.
8556 * utils.c (XMALLOC): Ditto.
8557 * i386-tdep.c (XMALLOC): Ditto.
8558 * gdb-events.c (XMALLOC): Ditto.
8559 * d10v-tdep.c (XMALLOC): Ditto.
8560 * cli-out.c (XMALLOC): Ditto.
8561
8562 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8563 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8564 * ui-file.c, ui-out.c: Ditto.
8565
7d0766f3
AC
85662002-03-18 Andrew Cagney <ac131313@redhat.com>
8567
8568 * command.h (struct cmd_list_element): Add field context.
8569 (set_cmd_context, get_cmd_context): Declare.
8570 * cli/cli-decode.h: Ditto.
8571 * cli/cli-decode.c (get_cmd_context): New function.
8572 (set_cmd_context): New function.
8573 (add_cmd): Initialize context.
8574 Part of fixing PR gdb/145 and PR gdb/146.
8575
5913bcb0
AC
85762002-03-17 Andrew Cagney <ac131313@redhat.com>
8577
1868c04e
AC
8578 * cli/cli-decode.c (cmd_type): New function.
8579 * command.h (cmd_type): Declare.
8580 * infrun.c (set_schedlock_func): Call function cmd_type.
8581 * kod.c (kod_set_os): Call cmd_type.
8582 * cris-tdep.c (cris_version_update): Use function cmd_type.
8583 (cris_mode_update, cris_abi_update): Ditto.
8584
5913bcb0
AC
8585 * command.h: (execute_cmd_post_hook): Declare.
8586 (execute_cmd_pre_hook): Declare.
8587 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8588 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8589 functions. Execute pre/post hook while ensuring that afterwords
8590 hook_in is cleared.
8591 * top.c (execute_command): Use execute_cmd_post_hook, and
8592 execute_cmd_pre_hook to execute pre/post commands.
8593 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8594 hook_stop_stub.
8595 (hook_stop_stub): Call execute_cmd_pre_hook.
8596
b51450c9
AC
85972002-03-17 Andrew Cagney <ac131313@redhat.com>
8598
8599 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8600 set'' and this leads to a core dump. Move xstrdup of
8601 operating_system to after check that it is not NULL.
8602
f66c9f11
AC
86032002-03-17 Andrew Cagney <ac131313@redhat.com>
8604
8e694ecf
AC
8605 * kod.c (kod_set_os): Remove unnecessary check that
8606 ``command->type'' is set_cmd.
8607
f66c9f11
AC
8608 * valprint.c (set_input_radix): Use input_radix.
8609 (set_output_radix): Use output_radix.
8610 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8611 isn't reverted.
8612
9d01611c
AC
86132002-03-16 Andrew Cagney <ac131313@redhat.com>
8614
8615 * value.h (struct value): Delete field ``substring_addr''. Change
8616 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8617 force_core_addr_align and force_pointer_aligh.
8618
8619 * value.h (struct value): Fix typo in above change.
9d01611c 8620
4156bb53
PS
86212002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8622
8623 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8624 to fix internal_error from ``maintenance print architecture''.
8625
0e5e3ea6
PS
86262002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8627
8628 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8629 for gcc versions after gcc-2.8.1.
8630
9b013045
PS
86312002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8632
8633 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8634 for method resolution. Restore adjustment of ``this'' pointer after
8635 calling value_struct_elt, which was accidentally removed during the
8636 HP merge.
8637
376c9600
AC
86382002-03-15 Andrew Cagney <ac131313@redhat.com>
8639
8640 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8641 value_of_register.
8642 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8643 get_saved_register.
8644 * value.h (value_of_register): Update.
8645
a4db0f07
RH
86462002-03-14 Richard Henderson <rth@redhat.com>
8647
8648 * configure.in: Detect declaration for canonicalize_file_name.
8649 * utils.c (canonicalize_file_name): Declare, if needed.
8650 (gdb_realpath): Prefer realpath if available and usable.
8651 * config.in, configure: Rebuild.
8652
96383835
RH
86532002-03-14 Richard Henderson <rth@redhat.com>
8654
8655 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8656 a constant array bound.
8657
8658 * MAINTAINERS: Add myself to write-after-approval.
8659
75245b24
MS
86602002-03-14 Michael Snyder <msnyder@redhat.com>
8661
8662 * symfile.c (syms_from_objfile): Return immediately if no syms.
8663 (symbol_file_add): Return immediately if no syms.
8664 (find_sym_fns): Return immediately if no syms.
8665
e641a1ca
ML
86662002-03-13 Michal Ludvig <mludvig@suse.cz>
8667
8668 * gdbserver/remote-util.c (remote_open): Print remote-side's
8669 IP address when remote debugging over the network.
7e336ba1 8670
df08bfec
DB
86712002-03-12 David O'Brien <obrien@FreeBSD.org>
8672
8673 * config/sparc/fbsd.mh: Fix copyright.
8674 * config/sparc/fbsd.mt: Likewise.
8675
9a57864f
RE
86762002-03-11 Richard Earnshaw <rearnsha@arm.com>
8677
8678 * MAINTAINERS: Fix typo in name of gdb warnings option.
8679 (x86-64): Fix formating so that this can be parsed by awk.
8680
dd7bf85e
DJ
86812002-03-10 Daniel Jacobowitz <drow@mvista.com>
8682
8683 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8684 * defs.h: Include "gdb/signals.h".
8685 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8686
33a0a2ac
ML
86872002-03-10 Michal Ludvig <mludvig@suse.cz>
8688
8689 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8690 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8691 from x86-64-tdep.h
8692
dd824b04
DJ
86932002-03-10 Daniel Jacobowitz <drow@mvista.com>
8694 Don Howard <dhoward@redhat.com>
8695
8696 * mips-tdep.c (ST0_FR): Define.
8697 (mips2_fp_compat): New function, temporarily disabled.
8698 (mips_read_fp_register_single): New function.
8699 (mips_read_fp_register_double): New function.
8700 (mips_print_register): Use them.
8701 (do_fp_register_row): Likewise.
8702
6a41ff59
AC
87032002-03-09 Andrew Cagney <ac131313@redhat.com>
8704
8705 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8706 approval''.
8707
4ea09c10
PS
87082002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8709
8710 * stabsread.c (read_member_functions): Fix is_stub test for
8711 static member functions, improve comment.
8712
6ccc741d
RE
87132002-03-07 Richard Earnshaw <rearnsha@arm.com>
8714
8715 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8716 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8717 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8718 commands that set boolean values.
8719 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8720 (arm_rdi_resume): Always initialize PC.
8721 (arm_rdi_open): Don't use rslt as a boolean.
8722 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8723 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8724 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8725 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8726
438013df
AO
87272002-03-06 Alexandre Oliva <aoliva@redhat.com>
8728
8729 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8730 * configure: Rebuilt.
8731
70ed8774
SC
87322002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8733
8734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8735 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8736
5ba2abeb
AC
87372002-03-06 Andrew Cagney <ac131313@redhat.com>
8738
8739 * cli/cli-decode.c (set_cmd_completer): New function.
8740 * command.h (set_cmd_completer): Declare.
8741 * cli/cli-decode.h (set_cmd_completer): Ditto.
8742
8743 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8744 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8745 * win32-nat.c (_initialize_inftarg): Ditto.
8746 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8747 * proc-api.c (_initialize_proc_api): Ditto.
8748 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8749 * source.c (_initialize_source): Ditto.
8750 * exec.c (_initialize_exec): Ditto.
8751 * solib.c (_initialize_solib): Ditto.
8752 * top.c (init_main): Ditto.
8753 * tracepoint.c (_initialize_tracepoint): Ditto.
8754 * symfile.c (_initialize_symfile): Ditto.
8755 * printcmd.c (_initialize_printcmd): Ditto.
8756 * infcmd.c (_initialize_infcmd): Ditto.
8757 * corefile.c (_initialize_core): Ditto.
8758
f779ca99
AC
87592002-03-05 Andrew Cagney <ac131313@redhat.com>
8760
8761 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8762
01a3934b
AC
87632002-03-05 Andrew Cagney <ac131313@redhat.com>
8764
8765 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8766
37057839
AC
87672002-03-05 Andrew Cagney <ac131313@redhat.com>
8768
8769 * NEWS: Update headings, 5.2 has branched.
8770
c6ecbae5
DJ
87712002-03-04 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8774 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8775 (register_addr, REGISTER_RAW_SIZE): Likewise.
8776 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8777 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8778
e9f30c21
ML
87792002-03-03 Michal Ludvig <mludvig@suse.cz>
8780
8781 * MAINTAINERS (x86-64): Add myself.
8782 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8783 changed value_ptr -> struct value *
8784
54394ac3
DB
87852002-03-01 David O'Brien <obrien@FreeBSD.org>
8786
8787 * configure.host (sparc64-*-freebsd): Add.
8788 * configure.tgt: Likewise.
8789 * config/sparc/fbsd.mh: New file.
8790 * config/sparc/fbsd.mt: Likewise.
8791 * config/sparc/nm-fbsd.h: Likewise.
8792 * config/sparc/tm-fbsd.h: Likewise.
8793
bfe95955
DJ
87942002-03-01 Daniel Jacobowitz <drow@mvista.com>
8795
8796 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8797 regformats/reg-s390x.dat.
8798
f33c6cbf
AC
87992002-03-01 Andrew Cagney <ac131313@redhat.com>
8800
8801 * utils.c: Add FIXME explaining true/false problem.
8802
5ecaa7dd
AC
88032002-02-28 Andrew Cagney <ac131313@redhat.com>
8804
8805 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8806
2a251cc2
MC
88072002-02-28 Michael Chastain <mec@shout.net>
8808
8809 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8810
6a8031a3 88112002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8812
8813 * gdbserver/linux-s390-low.c: New file.
8814 * regformats/reg-s390.dat: New file.
8815 * regformats/reg-s390x.dat: New file.
8816 * gdbserver/configure.srv: Add S/390.
8817 * gdbserver/Makefile.in: Add S/390.
8818 * configure.tgt: Enable gdbserver for S/390.
8819
ac469903
EZ
88202002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8821
8822 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8823 first line of the doc string for "info dos", except at the end of
8824 the sentence, since the short help stops at the first period.
8825
985cb1a3
JM
88262002-02-28 Jason Merrill <jason@redhat.com>
8827
8828 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8829
c570663e
FF
88302002-02-27 Fred Fish <fnf@redhat.com>
8831
8832 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8833 comment (dumy -> dummy).
8834
43630227
PS
88352002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8836
8837 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8838
b84911e8
RB
88392002-02-27 Rodney Brown <rbrown64@csc.com.au>
8840
8841 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8842
58caa3dc
DJ
88432002-02-27 Daniel Jacobowitz <drow@mvista.com>
8844
8845 * gdbserver/acconfig.h: New file.
8846 * gdbserver/i387-fp.c: New file.
8847 * gdbserver/i387-fp.h: New file.
8848 * gdbserver/linux-x86-64.c: New file.
8849 * regformats/reg-x86-64.dat: New file.
8850 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8851 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8852 * gdbserver/configure.in: Add support for regsets.
8853 * gdbserver/config.in: Regenerate.
8854 * gdbserver/configure: Regenerate.
8855 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8856 * gdbserver/linux-low.h: New file.
8857 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8858 for regsets.
8859 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8860 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8861 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8862 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8863 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8864 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8865 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8866 "i387-fp.h". Add PTRACE_GETREGS and friends.
8867 * gdbserver/regcache.c (supply_register): New function.
8868 (supply_register_by_name): New function.
8869 (collect_register): New function.
8870 (collect_register_by_name): New function.
8871
93652174
DJ
88722002-02-27 Daniel Jacobowitz <drow@mvista.com>
8873
8874 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8875 (config.status): Add configure.srv dependency.
8876 (server_h): Add config.h dependency.
8877
a02e4a61
DJ
88782002-02-27 Daniel Jacobowitz <drow@mvista.com>
8879
8880 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8881 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8882 * gdbserver/configure.srv: Change i386-*-linux* to use
8883 reg-i386-linux.o.
8884
ce0eebec
AC
88852002-02-26 Andrew Cagney <ac131313@redhat.com>
8886
8887 * x86-64-tdep.c: Re-indent. Update copyright date.
8888
82dbc5f7
AC
88892002-02-26 Andrew Cagney <ac131313@redhat.com>
8890
8891 From Michal Ludvig <mludvig@suse.cz>:
8892 * x86-64-tdep.c (value.h): Delete.
8893 (gdb_assert.h): Include.
8894 (x86_64_register_convert_to_virtual,
8895 x86_64_register_convert_to_raw ): Add check which lets only
8896 floating-point values to be converted.
8897 (value_push): Delete.
8898 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8899 (i386_gdbarch_init): Number of register_bytes fixed.
8900
e4621584
AC
89012002-02-26 Andrew Cagney <ac131313@redhat.com>
8902
8903 * MAINTAINERS: Add x86-64 target.
8904
81a9a963
AC
89052002-02-26 Andrew Cagney <ac131313@redhat.com>
8906
8907 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8908 * osfsolib.c (solib_map_sections): Ditto.
8909 * irix5-nat.c (solib_map_sections): Ditto.
8910 * corelow.c (gdb_check_format): Ditto.
8911 * symfile.c (symfile_bfd_open): Ditto.
8912 * solib.c (solib_map_sections): Ditto.
8913 Fix PR gdb/354.
7e336ba1 8914
0f017ab9
AC
89152002-02-26 Andrew Cagney <ac131313@redhat.com>
8916
8917 * remote.c (_initialize_remote): By default, disable ``e'' and
8918 ``E'' step out-of-range packets.
8919
75738c29
AS
89202002-02-26 Andreas Schwab <schwab@suse.de>
8921
8922 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8923 m68k_linux_frame_saved_pc.
8924 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8925 in_sigtramp.
8926 (SIGCONTEXT_PC_OFFSET): Remove.
8927 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8928 m68k_linux_sigtramp_saved_pc): New functions.
8929 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8930 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8931 (UCONTEXT_PC_OFFSET): Define.
8932 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8933 non-RT and RT signal trampolines.
8934
7e8ed687
RE
89352002-02-26 Richard Earnshaw <rearnsha@arm.com>
8936
8937 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8938 (TARGET_NBPG, STACK_END_ADDR): Delete
8939 (VARIABLES_INSIDE_BLOCK): Delete.
8940
6972bc8b
AC
89412002-02-25 Andrew Cagney <ac131313@redhat.com>
8942
8943 * utils.c (perror_with_name): Make string parameter constant.
8944 (print_sys_errmsg): Ditto.
8945 (query): Ditto.
8946 * defs.h (perror_with_name): Update.
8947 (print_sys_errmsg): Update.
8948 (query): Update.
8949
aa32f823
DJ
89502002-02-25 Daniel Jacobowitz <drow@mvista.com>
8951
8952 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8953 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8954
19caaa45
PS
89552002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8956
8957 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8958 if it already matches the current architecture from the exec file.
8959 Include arch-utils.h for gdbarch_info_init prototype.
8960 * Makefile.in (rs6000-nat.o): Update dependencies.
8961
d951901f
EZ
89622002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8963
8964 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8965 list of exported variables.
8966
7ea81414
DJ
89672002-02-24 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * gdbserver/configure.srv: New file.
8970 * gdbserver/configure.in: Use configure.srv instead
8971 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8972 from it.
8973 * gdbserver/configure: Regenerated.
8974 * gdbserver/terminal.h: New file.
8975 * gdbserver/Makefile.in: Update for configure changes. Remove
8976 more unneeded include paths.
8977
080fe24b
AC
89782002-02-24 Andrew Cagney <ac131313@redhat.com>
8979
8980 From wiz at danbala:
8981 * config/sparc/tm-sp64.h: Fix grammar and typos.
8982 Fix PR gdb/287.
8983
8605d56e
AC
89842002-02-24 Andrew Cagney <ac131313@redhat.com>
8985
8986 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8987 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8988 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8989 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8990 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8991 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8992 * s390-tdep.c: Ditto.
92362027
AC
8993 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8994 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8995 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8996 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8997 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8998 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8999 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9000 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9001 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9002 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9003 Fix PR gdb/378.
7e336ba1 9004
8ed32cc0
AC
90052002-02-23 Andrew Cagney <ac131313@redhat.com>
9006
a3007b6f
AC
9007 * lin-thread.c: Delete file.
9008 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9009 to gdb_proc_service.h.
9010 * configure: Re-generate.
9011
50a9e2f1
AC
9012 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9013 * serial.c (serial_open): Delete check for "ocd".
9014 Fix PR gdb/349.
9015
8b6e7932
AC
9016 * Makefile.in (linux-thread.o): Delete target.
9017 * linux-thread.c: Delete file.
9018
d155c46b
AC
9019 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9020 renamed SH files to be consistent.
9021
8ed32cc0
AC
9022 * symtab.c (sort_search_symbols): Use xfree.
9023
0e18d038
RE
90242002-02-23 Richard Earnshaw <rearnsha@arm.com>
9025
9026 * arm-linux-tdep.c (arm_linux_init_abi): Register
9027 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9028 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9029 definition with undef, since we don't want the sysvr4 definition.
9030 (SKIP_TRAMPOLINE_CODE): Likewise.
9031
27aac7ff
AC
90322002-02-23 Andrew Cagney <ac131313@redhat.com>
9033
9034 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9035
9036 * configure.in: (AC_CHECK_FUNCS) Added test for
9037 canonicalize_file_name Regenerated.
9038 * config.in, configure: Regenerated.
9039 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9040 defined use canonicalize_file_name.
7e336ba1 9041
65a6e0ee
MC
90422002-02-23 Michael Chastain <mec@shout.net>
9043
9044 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9045
47b95330
AC
90462002-02-23 Andrew Cagney <ac131313@redhat.com>
9047
9048 * README: Remove references to cygnus.com.
9049 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9050 dot com'' form. Remove references to cygnus.com and sourceware.
9051
696f451b
AC
90522002-02-23 Andrew Cagney <ac131313@redhat.com>
9053
9054 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9055 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9056 1003.1-2001 no longer allows "head -1".
9057 * gdb/Makefile.in (version.c): Likewise.
9058 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9059 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9060 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9061
bbaca940
AC
90622002-02-23 Andrew Cagney <ac131313@redhat.com>
9063
9064 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9065 * command.h (cmd_cfunc_eq): Declare.
9066 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9067
9068 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9069 ``struct cmd_list_element *''.
9070 * cli/cli-cmds.c (is_complete_command): Update. Use
9071 cmd_cfunc_eq.
9072 * top.c (execute_command): Pass the command to
9073 is_complete_command.
9074 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9075
b8b8b047
AC
90762002-02-23 Andrew Cagney <ac131313@redhat.com>
9077
9078 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9079 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9080 architecture defines.
9081 * s390-tdep.c (s390_gdbarch_init): Likewise.
9082
19d3fc80
RE
90832002-02-23 Richard Earnshaw <rearnsha@arm.com>
9084
9085 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9086 (arm_linux_push_arguments): Likewise.
9087 (arm_linux_init_abi): Register them. Also register linux-specific
9088 call_dummy_words.
9089 (find_minsym_and_objfile): Use strcmp, not STREQ.
9090 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9091 (arm_linux_call_dummy_words): Delete declaration.
9092 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9093 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9094 declarations.
9095 (LOWEST_PC): Delete.
9096
3ab13650
PS
90972002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9098
9099 * maint.c (print_section_info): Do not prepend `0x' to filepos
9100 output, it will be handled by local_hex_string_custom.
9101
19d3fc80 91022002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9103
9104 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9105 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9106 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9107
d85a5daf
JB
91082002-02-22 Jim Blandy <jimb@redhat.com>
9109
9110 Indicate that the bcache functions don't change the strings
9111 they're passed.
9112 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9113 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9114
eeb25b8a
PM
91152002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9116
9117 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9118
6badb179
CF
91192002-02-21 Christopher Faylor <cgf@redhat.com>
9120
9121 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9122 find the complete path to a loaded DLL.
9123
e8717518
FF
91242002-02-21 Fred Fish <fnf@redhat.com>
9125
9126 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9127 that marks the end of the range of a function, enter a line number
9128 entry that has a line number of zero and a PC offset that matches
9129 the end of the function. This starts a range of PC's for which no
9130 line number information is known.
9131 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9132 PC's for which no line number info is found (line number is zero)
9133 then we didn't find any valid line information.
9134 * symtab.h: Document use of zero line number entry.
9135
9abe5450
EZ
91362002-02-21 Elena Zannoni <ezannoni@redhat.com>
9137
9138 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9139 (have_ptrace_getvrregs): Define for run time checks.
9140 (gdb_vrregset_t): New type for Altivec register handling.
9141 (fetch_register, store_register): Fetch/store altivec register
9142 when needed.
9143 (fetch_altivec_register, store_altivec_register): New functions.
9144 (supply_vrregset, fill_vrregset): New functions.
9145 (fetch_altivec_registers, store_altivec_registers): New functions.
9146 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9147 registers as well.
9148
aaa38bb5
AJ
91492002-02-21 Jiri Smid <smid@suse.cz>
9150
9151 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9152
b34db576
RE
91532002-02-21 Richard Earnshaw <rearnsha@arm.com>
9154
9155 * Makefile.in (armnbsd-nat.o): Update dependencies.
9156 * armnbsd-nat.c (supply_gregset): New function. Common code to
9157 supply the integer register set.
9158 (supply_fparegset): New function. Similar for FPA registers.
9159 (fetch_regs, fetch_fp_regs): Use them.
9160 (fetch_core_registers): Likewise.
9161 (fetch_elfcore_registers): New function.
9162 (arm_netbsd_elfcore_fns): New core-file type specification.
9163 (_initialize_arm_netbsd_nat): Register it.
9164
3e56fc4b
RE
91652002-02-21 Richard Earnshaw <rearnsha@arm.com>
9166
9167 * armnbsd-nat.c: Include gdbcore.h.
9168 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9169 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9170 'void' to declaration, to shut up ARI.
9171 (fetch_core_registers): Make static. Rewrite using supply_register.
9172 (arm_netbsd_core_fns): New core-file type specification.
9173 (_initialize_arm_netbsd_nat): New function.
9174
097f6b0b
CF
91752002-02-21 Christopher Faylor <cgf@redhat.com>
9176
9177 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9178 value.
9179
c914e0cc
CF
91802002-02-20 Christopher Faylor <cgf@redhat.com>
9181
9182 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9183 fails.
9184
385fa495
DJ
91852002-02-20 Daniel Jacobowitz <drow@mvista.com>
9186
9187 * jv-exp.y (parse_number): Change type of implicit longs
9188 to builtin_type_uint64.
9189
e5f1222d
DJ
91902002-02-20 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9193 to be an integer instead of a `union wait'.
9194
75c9abc6
DJ
91952002-02-20 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * mips-linux-nat.c: Call the operating system GNU/Linux.
9198 * mips-linux-tdep.c: Likewise.
9199 * mips-tdep.c: Likewise.
9200
551792a5
DJ
92012002-02-20 Daniel Jacobowitz <drow@mvista.com>
9202
9203 Fix PR gdb/265.
9204 * jv-exp.y (parse_number): Handle 64-bit integers.
9205
ee6e2b82
DJ
92062002-02-20 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9209 AC_STDC_HEADERS to AC_HEADER_STDC.
9210 * gdbserver/configure: Regenerated.
9211
a48442a0
RE
92122002-02-20 Richard Earnshaw <rearnsha@arm.com>
9213
9214 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9215 is defined.
9216 * sparc-tdep.c (get_longjmp_target): Likewise.
9217
fe419ffc
RE
92182002-02-20 Richard Earnshaw <rearnsha@arm.com>
9219
9220 * News: Add news about ARM and Multi-arch. Mention the new target
9221 arm*-*-netbsd*.
9222
5832ed7e
JB
92232002-02-19 Jim Blandy <jimb@redhat.com>
9224
9225 * stabsread.c (error_type_complaint): Improve error message.
9226
84563040
DJ
92272002-02-19 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * gdbserver/README: Update documentation.
9230 * gdbserver/configure.in: Update configury to match documentation.
9231 * gdbserver/Makefile.in: Likewise.
9232 * gdbserver/configure: Regenerated.
9233 * gdbserver/aclocal.m4: New file, generated by aclocal.
9234 * gdbserver/config.in: New file, generated by autoheader.
9235
375fd65b
RE
92362002-02-19 Richard Earnshaw <rearnsha@arm.com>
9237
9238 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9239 armnbsd-nat.c.
9240
08216dd7
RE
92412002-02-19 Richard Earnshaw <rearnsha@arm.com>
9242
9243 * arm-tdep.h (enum arm_float_model): New enum.
9244 (struct gdbarch_tdep): Add fp_model.
9245 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9246 up floating-point conversions until we know the floating-point model
9247 in use by the inferior. Don't complain about being unable to
9248 determine the ABI of the inferior when we don't have one.
9249 (arm_extract_return_value): Support different floating-point models.
9250 (arm_store_return_value): Likewise.
aaa38bb5 9251 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9252 ARM_FLOAT_SOFT.
9253 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9254
65d6d66a
PS
92552002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9256
9257 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9258 of ``current_gdbarch''.
9259
47221191
RE
92602002-02-19 Richard Earnshaw <rearnsha@arm.com>
9261
9262 * armnbsd-nat.c : ANSIfy all function declarations.
9263 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9264 (fetch_inferior_registers): Re-implement in terms of above.
9265 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9266 (store_inferior_registers): Re-implement in terms of above.
9267
fdf39c9a
RE
92682002-02-19 Richard Earnshaw <rearnsha@arm.com>
9269
aaa38bb5 9270 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9271 kernel.
9272 * arm-linux-tdep.c: Likewise.
9273 * config/arm/tm-linux.h: Likewise.
9274
93247f88
RE
92752002-02-19 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9278 * config/arm/nbsd.mt (TM_FILE): Delete.
9279 * config/arm/tm-nbsd.h: Delete.
9280
d7b486e7
RE
92812002-02-19 Richard Earnshaw <rearnsha@arm.com>
9282
9283 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9284 Initialize CALL_DUMMY_LENGTH.
9285
41d39a95
RE
92862002-02-19 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9289 function.
9290 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9291 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9292 defines one thing and that is incorrect for this port.
9293 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9294
e1195560
PM
92952002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9296
9297 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9298
c1748f97
PM
92992002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9300
9301 * win32-nat.c (display_selector): New function. Displays information
9302 about the information returned by GetThreadSelectorEntry API function.
9303 (display_selectors): New function. Displays the infomation of
9304 the selector given as argument, or of CS, DS ans FS selectors
9305 if no argument is given.
9306 ( _initialize_inftarg): Add "w32" as info prefix command.
9307 Add "info w32 selector" as command calling display_selectors.
9308
e41e6bbf
PM
93092002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9310
9311 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9312 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9313 if not defined.
9314
0d3a9f48
RE
93152002-02-18 Richard Earnshaw <rearnsha@arm.com>
9316
9317 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9318
3fb4b924
RE
93192002-02-18 Richard Earnshaw <rearnsha@arm.com>
9320
9321 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9322 (arm_fix_call_dummy): Call it.
9323 (arm_call_dummy_breakpoint_offset): Delete.
9324 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9325 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9326
7f55af32
AC
93272002-02-18 Andrew Cagney <ac131313@redhat.com>
9328
9329 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9330 Default to func_frame_chain_valid.
9331 * gdbarch.h, gdbarch.c: Re-generate.
9332 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9333
05f13b9c
EZ
93342002-02-18 Elena Zannoni <ezannoni@redhat.com>
9335
9336 * ppc-linux-nat.c: Update copyright.
9337 (fetch_register, store_register): Add tid parameter, don't compute
9338 tid here.
9339 (fetch_ppc_registers, store_ppc_registers): Add tid
9340 parameter. Pass it along to callees.
9341 (fetch_inferior_registers, store_inferior_registers): Compute tid
9342 here, and pass it to calleed functions.
9343 (fill_gregset, supply_fpregset): Clean up formatting.
9344
d7afb4c9
RE
93452002-02-18 Richard Earnshaw <rearnsha@arm.com>
9346
9347 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9348 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9349
9df628e0
RE
93502002-02-18 Richard Earnshaw <rearnsha@arm.com>
9351
9352 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9353 * gdbarch.c gdbarch.h: Regenerate.
9354 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9355 function.
9356 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9357 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9358 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9359
9360 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9361 * arm-tdep.c (arm_get_longjmp_target): New function.
9362 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9363 this to a positive value register arm_get_longjmp_target as the
9364 longjmp handler.
9365 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9366 (arm_linux_init_abi): Set up longjmp description in tdep.
9367 * armnbsd-nat.c (get_longjmp_target): Delete.
9368 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9369 description in tdep.
9370 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9371 (get_longjmp_target): Delete declaration.
9372 (GET_LONGJMP_TARGET): Delete.
9373 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9374 (GET_LONGJMP_TARGET): Delete.
9375
57bc8964
KB
93762002-02-17 Kevin Buettner <kevinb@redhat.com>
9377
9378 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9379 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9380 of ``current_gdbarch''.
9381
83d31a92
TT
93822002-02-17 Tom Tromey <tromey@redhat.com>
9383
9384 * cli/cli-cmds.c (compare_strings): New function.
9385 (complete_command): Only print each unique item once.
9386 * completer.h (complete_line): Declare.
9387 * completer.c (complete_line): New function.
9388 (line_completion_function): Use it.
9389
17ef5d92
AC
93902002-02-16 Andrew Cagney <ac131313@redhat.com>
9391
9392 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9393 * gdbarch.h, gdbarch.c: Re-generate.
9394
491b8946
DJ
93952002-02-16 Daniel Jacobowitz <drow@mvista.com>
9396
9397 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9398
93992002-02-16 Daniel Jacobowitz <drow@mvista.com>
9400
9401 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9402 * valops.c (value_arg_coerce): Don't take the address of a reference
9403 to convert an argument to a reference.
9404
dfe7f3ac
CF
94052002-02-15 Christopher Faylor <cgf@redhat.com>
9406
9407 * win32-nat.c (get_image_name): New function.
9408 (handle_load_dll): Use get_image_name function.
9409 (get_child_debug_event): Avoid registering debug events until possibly
9410 execed process is started.
9411 (child_create_inferior): Allow invocation via shell so that command
9412 line redirection, etc. works ok.
9413 (_initialize_inftarg): Add new command: "set shell" to control whether
9414 a shell is used to start a process.
9415
1d33e73a
DJ
94162002-02-15 Daniel Jacobowitz <drow@mvista.com>
9417
9418 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9419 instead of find_register_by_number.
9420 (cannot_store_register): Likewise.
9421
48cd0caa
PM
94222002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9423
aaa38bb5 9424 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9425 fprintf_unfiltered (gdb_stderr, ...).
9426
8656e7d8
DJ
94272002-02-15 Daniel Jacobowitz <drow@mvista.com>
9428
9429 * gdbserver/gdbserver.1: Document --attach.
9430
66e810cd
RE
94312002-02-15 Richard Earnshaw <rearnsha@arm.com>
9432
9433 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9434 descriptions.
9435 * arm-tdep.c (arm_default_arm_le_breakpoint)
9436 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9437 (arm_default_thumb_be_breakpoint): New. Initialize them from
9438 traditional breakpoint defines.
9439 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9440 (arm_gdbarch_init): Initialize new breakpoint variables.
9441 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9442 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9443 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9444 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9445 code out to ...
9446 (arm_netbsd_init_abi_common): ... here; new function.
9447 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9448 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9449 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9450 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9451
97e03143
RE
94522002-02-15 Richard Earnshaw <rearnsha@arm.com>
9453
9454 * arm-tdep.h (enum arm_abi): New enum.
9455 (struct gdbarch_tdep): New structure.
9456 (LOWEST_PC): Provide a default.
9457 (arm_gdbarch_register_os_abi): Declare new function.
9458 * arm-tdep.c (arm_abi_names): New array.
9459 (process_note_abi_tag_sections): New function.
9460 (get_elfosabi): New function.
9461 (arm_gdbarch_register_os_abi): New function.
9462 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9463 support for that ABI has been built in, then call the appropriate
9464 configuration routine. Use gdbarch_num_regs() to get the number
9465 of registers.
9466 (arm_dump_tdep): New function.
9467 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9468 place-holder functions.
9469 (_initialize_arm_tdep): Register them.
9470 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9471
9472 * armnbsd-tdep.c: New file.
9473 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9474 * config/arm/nbsd.mt (TDEPFILES): Add it.
9475 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9476
9477 * armnbsd-nat.c: Include regcache.h.
9478 * Makefile.in (armnbsd-nat.o): Update dependency list.
9479
9480 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9481
ad68be46
DJ
94822002-02-14 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * gdbserver/Makefile.in: Fix typos in target rules.
9485
003d6d1d
DJ
94862002-02-14 Daniel Jacobowitz <drow@mvista.com>
9487
aaa38bb5 9488 Fix part of PR gdb/267.
003d6d1d
DJ
9489 * linespec.c (find_methods): Handle constructors specially for now.
9490
6b230f1b
CV
94912002-02-14 Corinna Vinschen <vinschen@redhat.com>
9492
9493 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9494 handling.
9495 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9496 standard_coerce_float_to_double().
9497
1ea98d12
CF
94982002-02-14 Christopher Faylor <cgf@redhat.com>
9499
9500 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9501 GDBINIT_FILENAME.
9502
dd47e6fd
EZ
95032002-02-14 Elena Zannoni <ezannoni@redhat.com>
9504
9505 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9506 find_variant_by_name, because it confuses the multiarch
9507 framework. Return NULL if there isn't an architecture with the
9508 user supplied name, instead of forcing a different one without
9509 recording the change with the multiarch machinery.
9510 (find_variant_by_name): Delete.
9511
d7e39b9e
PS
95122002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9513
9514 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9515 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9516
76e42a4f
MH
95172002-02-13 Martin M. Hunt <hunt@redhat.com>
9518
aaa38bb5 9519 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9520 print_frame_info_listing_hook, set current_source_symtab.
9521
0a30fbc4
DJ
95222002-02-14 Daniel Jacobowitz <drow@mvista.com>
9523
9524 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9525 and remove unused $(INCLUDE_DIR).
9526 Add regcache.c to OBS.
9527 Add generated register protocol files to clean target.
9528 Update dependencies for new objects, obsolete old target code.
9529
9530 * gdbserver/linux-low.c: Remove all platform-specific code to
9531 new files. Remove various dead code. Update to use regcache
9532 functionality.
9533 * gdbserver/remote-utils.c (fromhex): Add return statement
9534 to quiet warning.
9535 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9536 constant.
9537 (input_interrupt): Add integer parameter to match prototype
9538 of a signal handler.
9539 (outreg): Use register_data ().
9540 (prepare_resume_reply): Use gdbserver_expedite_regs.
9541 * gdbserver/server.c (main): Dynamically allocate own_buf because
9542 PBUFSIZ is no longer constant. Use registers_to_string () and
9543 registers_from_string ().
9544 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9545 for error (), fatal (), and warning (). Update definition of
9546 PBUFSIZ to use regcache functionality. Add include guard.
9547 * gdbserver/utils.c (fatal): Add missing ``const''.
9548 (warning): New function.
9549
9550 * regformats/regdat.sh: Include "regcache.h" in generated files.
9551 Provide init_registers () function.
9552 * regformats/regdef.h: Add prototype for set_register_cache ().
9553 Add include guard.
9554
9555 * gdbserver/linux-arm-low.c: New file.
9556 * gdbserver/linux-i386-low.c: New file.
9557 * gdbserver/linux-ia64-low.c: New file.
9558 * gdbserver/linux-m68k-low.c: New file.
9559 * gdbserver/linux-mips-low.c: New file.
9560 * gdbserver/linux-ppc-low.c: New file.
9561 * gdbserver/linux-sh-low.c: New file.
9562
9563 * gdbserver/regcache.c: New file.
9564 * gdbserver/regcache.h: New file.
9565
9566 * gdbserver/low-linux.c: Removed obsolete file.
9567
4cc841d0
DJ
95682002-02-14 Daniel Jacobowitz <drow@mvista.com>
9569
9570 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9571 * config/i386/linux.mt: Likewise.
9572 * config/ia64/linux.mt: Likewise.
9573 * config/m68k/linux.mh: Likewise.
9574 * config/powerpc/linux.mh: Likewise.
9575 * config/mips/linux.mt: Likewise.
9576
9577 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9578
9579 * config/i386/i386lynx.mh: Mark gdbserver variables
9580 as (currently) obsolete for this target.
9581 * config/i386/nbsd.mt: Likewise.
9582 * config/i386/nbsdelf.mt: Likewise.
9583 * config/m32r/m32r.mt: Likewise.
9584 * config/m68k/m68klynx.mh: Likewise.
9585 * config/m68k/nbsd.mt: Likewise.
9586 * config/m68k/sun3os4.mh: Likewise.
9587 * config/mips/vr5000.mt: Likewise.
9588 * config/ns32k/nbsd.mt: Likewise.
9589 * config/pa/hppabsd.mh: Likewise.
9590 * config/pa/hppaosf.mh: Likewise.
9591 * config/powerpc/nbsd.mt: Likewise.
9592 * config/rs6000/rs6000lynx.mh: Likewise.
9593 * config/s390/s390.mt: Likewise.
9594 * config/s390/s390x.mt: Likewise.
9595 * config/sparc/sparclynx.mh: Likewise.
9596 * config/sparc/sun4os4.mh: Likewise.
9597 * config/i386/x86-64linux.mt: Likewise.
9598 * config/sparc/linux.mh: Likewise.
9599
a85f51e7
DJ
96002002-02-14 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * configure.tgt: Configure gdbserver only for known working
9603 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9604 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9605 SUBDIRS if it is configured. Update comment for ${nativefile}.
9606 * configure: Regenerated.
9607
65554fef
MS
96082002-02-13 Michael Snyder <msnyder@redhat.com>
9609
670a52db
MS
9610 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9611
6dbdc4a3
MS
9612 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9613 (default_gcore_mach): Just return 0, work around a problem in bfd.
9614 (default_gcore_target): OK to return NULL if exec_bfd is null.
9615 (make_mem_sec): Use a cast, avoid a warning.
9616
9617 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9618 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9619 sizeof (host pointer) != sizeof (target pointer)).
9620 (procfs_make_note_section): Avoid overflow in psargs string.
9621
aaa38bb5 9622 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9623 implementation return an error.
9624
96252002-02-13 Rodney Brown <rbrown64@csc.com.au>
9626
9627 * procfs.c (procfs_make_note_section): Provide a default definition
9628 (for alpha-dec-osf4.0f). Fix typos.
9629
1e4d76e7
EZ
96302002-02-13 Elena Zannoni <ezannoni@redhat.com>
9631
9632 * linux-proc.c: Add include of regcache.h.
9633 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9634
b6d1a1d5
AC
96352002-02-13 Andrew Cagney <ac131313@redhat.com>
9636
9637 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9638 * memattr.c (create_mem_region): Disallow useless empty region.
9639 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9640 non-overlapping.
b6d1a1d5 9641
6c6ea35e
MC
96422002-02-13 Michael Chastain <mec@shout.net>
9643
9644 * defs.h: Kill CONST_PTR.
9645 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9646 * c-lang.c (c_builtin_types): Likewise.
9647 * ch-lang.c (ch_builtin_types): Likewise.
9648 * f-lang.c (f_builtin_types): Likewise.
9649 * language.c (unknown_builtin_types): Likewise.
9650 * m2-lang.c (m2_builtin_types): Likewise.
9651 * p-lang.c (pascal_builtin_types): Likewise.
9652 * scm-lang.c (c_builtin_types): Likewise.
9653
3e0b0f48
KS
96542002-02-13 Keith Seitz <keiths@redhat.com>
9655
9656 * arm-tdep.h (arm_get_next_pc): Add declaration.
9657
67255d04
RE
96582002-02-13 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9661 with other related struct-returning functions.
9662 (arm_extract_struct_value_address): New function.
9663 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9664 initialize float_format, double_format and long_double_format as
9665 appropriate to the endianness of the target.
9666 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9667 (arm_use_struct_convention): Delete declaration.
9668 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9669
079777f6
KS
96702002-02-13 Keith Seitz <keiths@redhat.com>
9671
9672 * defs.h (core_addr_to_string_nz): New function.
9673
34588f23
MK
96742002-02-13 Mark Kettenis <kettenis@gnu.org>
9675
9676 Apply missing bits of 2002-01-15 patch.
9677 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9678 (fill_fpregset): Use i387_fill_fsave.
9679
49b563f9
KS
96802002-02-12 Keith Seitz <keiths@redhat.com>
9681
49b563f9
KS
9682 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9683 (core_addr_to_string_nz): New function.
9684
aeb98c60
RE
96852002-02-11 Richard Earnshaw <rearnsha@arm.com>
9686
9687 * arm-linux-nat.c: Really include arm-tdep.h.
9688 * config/arm/tm-linux.h (struct type, struct value): Declare.
9689
65554fef
MS
96902002-02-11 Michael Snyder <msnyder@redhat.com>
9691
9692 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9693 (gcore section): Ifdef for Solaris and Unixware only.
9694 (procfs_do_thread_registers): Unixware needs one lwpstatus
9695 per thread (not one prstatus or pstatus).
9696 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9697 not over all gdb threads. For unixware, call elfcore_write_pstatus
9698 once before iterating over threads.
9699
34e8f22d
RE
97002002-02-11 Richard Earnshaw <rearnsha@arm.com>
9701
9702 * arm-tdep.h: New file.
9703 * arm-tdep.c: Include arm-tdep.h.
9704 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9705 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9706 (arm_print_float_info, arm_register_type, convert_to_extended)
9707 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9708 (arm_extract_return_value, arm_register_name): Make static.
9709 (arm_software_single_step): Similarly. Fix types in declaration.
9710 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9711 (arm_store_return_value, arm_store_struct_return): New functions.
9712 (arm_gdbarch_init): Register the above functions. Also register
9713 call_dummy_start_offset, sizeof_call_dummy_words,
9714 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9715 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9716 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9717 prologue_cache.saved_regs here, rather than ...
9718 (_initialize_arm_tdep): ... here.
9719 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9720 declarations.
9721 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9722 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9723 (arm_print_float_info, arm_register_type, convert_to_extended)
9724 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9725 (arm_extract_return_value, arm_register_name): Delete declarations.
9726 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9727 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9728 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9729 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9730 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9731 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9732 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9733 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9734 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9735 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9736 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9737 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9738 interface.
9739 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9740 * remote-rdi.c remote-rdp.c: Likewise.
9741 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9742 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9743 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9744 definition.
9745
9746 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9747 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9748 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9749 from non-ARM_ prefixed definitions.
9750 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9751 all uses of above.
9752 * remote-rdi.c remote-rdp.c: Likewise.
9753 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9754
148754e5
RE
97552002-02-11 Richard Earnshaw <rearnsha@arm.com>
9756
9757 * arm-tdep.c (arm_frameless_function_invocation)
9758 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9759 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9760 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9761 (arm_pop_frame, arm_get_next_pc): Make static.
9762 (arm_gdbarch_init): Register above in gdbarch structure.
9763 (arm_read_fp): Renamed from arm_target_read_fp.
9764 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9765 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9766 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9767 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9768 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9769 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9770 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9771 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9772 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9773 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9774 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9775
434d2d4f
DJ
97762002-02-10 Daniel Jacobowitz <drow@mvista.com>
9777
9778 * symtab.c (compare_search_syms): New function.
9779 (sort_search_symbols): New function.
9780 (search_symbols): Sort symbols after searching rather than
9781 before.
9782
55241689
AC
97832002-02-10 Andrew Cagney <ac131313@redhat.com>
9784
9785 * NEWS: Linux -> GNU/Linux.
9786
028c194b
AC
97872002-02-10 Andrew Cagney <ac131313@redhat.com>
9788
9789 * gdbarch.sh: For for level one methods, disallow a definition
9790 when partially multi-arched. Add comments explaining rationale.
9791 * gdbarch.h: Re-generate.
9792
6acf50cd
AC
97932002-02-10 Andrew Cagney <ac131313@redhat.com>
9794
9795 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9796 multi-arch partial.
aaa38bb5 9797
50248794
AC
97982002-02-10 Andrew Cagney <ac131313@redhat.com>
9799
9800 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9801 field. Use diff -u.
9802 * gdbarch.c: Re-generate.
9803
c30e0066
AC
98042002-02-10 Andrew Cagney <ac131313@redhat.com>
9805
9b56c5f3 9806 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9807 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9808 partial.
9809
6e6d6484
AC
98102002-02-10 Andrew Cagney <ac131313@redhat.com>
9811
9812 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9813 multi-arch partial.
9814 (PUSH_ARGUMENTS): Switch to using predefault.
9815 * gdbarch.c: Regenerate.
9816
c203844d
AC
98172002-02-10 Andrew Cagney <ac131313@redhat.com>
9818
9819 * valops.c (PUSH_ARGUMENTS): Delete definition.
9820 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9821 partial. Default to default_push_arguments.
9822 * gdbarch.h, gdbarch.c: Regenerate.
9823
b5a2688f
AC
98242002-02-09 Andrew Cagney <ac131313@redhat.com>
9825
9826 * defs.h (throw_exception): Rename return_to_top_level. Update
9827 comments.
9828 * utils.c (error_stream, internal_verror, quit): Ditto.
9829 * top.c (throw_exception, catcher): Ditto.
9830 * sparclet-rom.c (sparclet_load): Ditto.
9831 * remote.c (interrupt_query, minitelnet): Ditto.
9832 * remote-sds.c (interrupt_query): Ditto.
9833 * remote-mips.c (mips_error, mips_kill): Ditto.
9834 * ocd.c (interrupt_query): Ditto.
9835 * monitor.c (monitor_interrupt_query): Ditto.
9836 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9837 * target.h: Update comment.
aaa38bb5 9838
b5a2688f 9839 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9840
2fa5c1e0
AC
98412002-02-09 Andrew Cagney <ac131313@redhat.com>
9842
9843 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9844 default_double_format.
9845 * gdbarch.h, gdbarch.c: Re-generate.
9846 * findvar.c (floatformat_unknown): Delete variable definition.
9847 * doublest.h (floatformat_unknown): Delete variable declaration.
9848
da966255
JB
98492002-02-09 Jim Blandy <jimb@redhat.com>
9850
9851 * stabsread.c (read_type): Add code to parse Sun's syntax for
9852 prototyped function types.
9853
123a4891
AC
98542002-02-09 Andrew Cagney <ac131313@redhat.com>
9855
9856 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9857 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9858
fb39c8f3
PS
98592002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9860
9861 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9862 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9863 now _initialize_xcoffsolib gets called again and overrides the
9864 commands from solib.c in a native configuration.
9865
0b87a11d
MK
98662002-02-09 Mark Kettenis <kettenis@gnu.org>
9867
9868 * doublest.c (store_typed_floating): Don't try to return a value.
9869 Fixes PR gdb/290.
9870
bdc2fc72
JB
98712002-02-08 Jim Blandy <jimb@redhat.com>
9872
9873 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9874 is prototyped and has no arguments, print its argument list as
9875 `(void)'.
9876
da69bbcf
CD
98772002-02-08 Chris Demetriou <cgd@broadcom.com>
9878
9879 * MAINTAINERS (write-after-approval): Add myself.
9880 (paper-trail): I've escaped!
aaa38bb5 9881
b69571f5
CF
98822002-02-08 Christopher Faylor <cgf@redhat.com>
9883
9884 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9885 changes.
9886 (_initialize_check_for_gdb_ini): Ditto.
9887
f6871398
MH
98882002-02-08 Martin M. Hunt <hunt@redhat.com>
9889
9890 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9891 xaprintf -> xasprintf.
9892
4e52d31c
PM
98932002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9894
9895 * win32-nat.c: Remove use of printf and sprintf functions.
9896
39bbf761
RE
98972002-02-08 Richard Earnshaw <rearnsha@arm.com>
9898
9899 * arm-tdep.c (arm_frame_chain_valid): Make static.
9900 (arm_push_arguments): Likewise.
9901 (arm_gdbarch_init): New function.
9902 (_initialize_arm_tdep): Call it.
9903 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9904 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9905 (FRAME_CHAIN_VALID): Delete.
9906 (arm_frame_chain_valid): Delete declaration.
9907 (PUSH_ARGUMENTS): Delete.
9908 (arm_push_arguments): Delete declaration.
9909 (CALL_DUMMY_P): Delete.
9910
9c9532c9
CV
99112002-02-08 Andrew Cagney <ac131313@redhat.com>
9912 Corinna Vinschen <vinschen@redhat.com>
9913
9914 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9915 on builtin float types.
9916
4e8f7a8b
DJ
99172002-02-08 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * utils.c: Include <curses.h> before "bfd.h".
9920 * tui/tui-hooks.c: Likewise.
9921 * tui/tui.c: Likewise.
9922 * tui/tuiCommand.c: Likewise.
9923 * tui/tuiData.c: Likewise.
9924 * tui/tuiDataWin.c: Likewise.
9925 * tui/tuiDisassem.c: Likewise.
9926 * tui/tuiGeneralWin.c: Likewise.
9927 * tui/tuiIO.c: Likewise.
9928 * tui/tuiLayout.c: Likewise.
9929 * tui/tuiRegs.c: Likewise.
9930 * tui/tuiSource.c: Likewise.
9931 * tui/tuiSourceWin.c: Likewise.
9932 * tui/tuiStack.c: Likewise.
9933 * tui/tuiWin.c: Likewise.
9934
cd4bffcf
EZ
99352002-02-07 Elena Zannoni <ezannoni@redhat.com>
9936
9937 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9938 to include space for pseudoregs as well. Update loops accordingly.
9939 (sh_fp_frame_init_saved_regs): Ditto.
9940 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9941
26806ce2
AC
99422002-02-07 Andrew Cagney <ac131313@redhat.com>
9943
9944 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9945 Add Richard Earnshaw to Arm maintainers.
9946
97fdab62
AC
99472002-02-07 Andrew Cagney <ac131313@redhat.com>
9948
a6b98203
AC
9949 * defs.h (warning_begin): Delete declaration.
9950
97fdab62
AC
9951 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9952 Delete macro.
9953
78b29b40
MS
99542002-02-07 Michael Snyder <msnyder@redhat.com>
9955
aaa38bb5 9956 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9957 Logic bug, remove misplaced else.
9958
d8849953
KD
99592002-02-07 Klee Dienes <klee@apple.com>
9960
9961 * fork-inferior.c (fork_inferior): Add '!' to the list of
9962 characters that need to be quoted when building a string for the
9963 shell. Quote '!' specifically with a backslash, since CSH chokes
9964 when trying to evaluate "str!str".
aaa38bb5 9965
095778a0
NC
99662002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9967
9968 * rdi-share/host.h: Only provide a typedef for bool if it is not
9969 defined.
9970
1900040c
MS
99712002-02-04 Michael Snyder <msnyder@redhat.com>
9972
9973 * breakpoint.h (enum bptype): Add new overlay event bp type.
9974 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9975
1900040c
MS
9976 * breakpoint.c (create_internal_breakpoint): New function.
9977 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9978 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9979 (create_thread_event_breakpoint): Ditto.
9980 (create_solib_event_breakpoint): Ditto.
9981 (create_overlay_event_breakpoint): New function.
9982 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9983 (update_breakpoints_after_exec): Delete and re-initialize
9984 overlay event breakpoints after an exec. Add FIXME comment
9985 about longjmp breakpoint.
9986 (print_it_typical): Ignore overlay event breakpoints.
9987 (print_one_breakpoint): Ditto.
9988 (mention): Ditto.
9989 (bpstat_what): Do not stop for overlay event breakpoints.
9990 (delete_breakpoint): Don't delete overlay event breakpoints.
9991 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9992 (breakpoint_re_set): Re-create overlay event breakpoint.
9993
9994 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9995 (overlay_manual_command): Disable overlay breakpoints.
9996 (overlay_off_command): Disable overlay breakpoints.
9997
082fc60d
RE
99982002-02-06 Richard Earnshaw <rearnsha@arm.com>
9999
10000 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10001 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10002 to here from config/tm-arm.h.
10003 (coff_sym_is_thumb): Make static.
10004 (arm_elf_make_msymbol_special): New function.
10005 (arm_coff_make_msymbol_special): New function.
10006 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10007 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10008 (coff_sym_is_thumb): Delete declaration.
10009 (arm_elf_make_msymbol_special): Declare.
10010 (arm_coff_make_msymbol_special): Declare.
10011 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10012 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10013
039c5766
RE
100142002-02-06 Richard Earnshaw <rearnsha@arm.com>
10015
10016 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10017
100182002-02-06 Richard Earnshaw <rearnsha@arm.com>
10019
10020 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10021 * gdbarch.c gdbarch.h: Regenerate.
10022 * arch-utils.c (default_print_float_info): New function.
10023 * arch-utils.h (default_print_float_info): Prototype it.
10024 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10025 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10026 (PRINT_FLOAT_INFO): Document it.
10027
10028 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10029 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10030 (PRINT_FLOAT_INFO): Define.
10031
58fa08f0
PM
100322002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10033
aaa38bb5 10034 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10035 Add typecast to sprintf argument to suppress a warning.
10036
7393af7c
PM
100372002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10038
58fa08f0 10039 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10040 to allow easier handling of pass state.
10041 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10042 that gives exception name and address.
10043 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10044 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10045 exceptions added.
aaa38bb5
AJ
10046 (child_continue): Correctly report continue_status.
10047 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10048 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10049 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10050 the exception should be passed to debuggee or not.
10051
6af4589c
MS
100522002-02-05 Michael Snyder <msnyder@redhat.com>
10053
10054 * regcache.c (fetch_register): Call target_fetch_register
10055 only if we don't call FETCH_PSEUDO_REGISTER.
10056 (store_register): Call target_store_register only if we
10057 don't call STORE_PSEUDO_REGISTER.
10058
a2cf933a
EZ
100592002-02-05 Elena Zannoni <ezannoni@redhat.com>
10060
10061 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10062 ELF_MAKE_MSYMBOL_SPECIAL.
10063 * gdbarch.c, gdbarch.h: Regenerate.
10064 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10065 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10066 * elfread.c (elf_symtab_read): Compile use of
10067 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10068 multiarched.
10069 * coffread.c (coff_symtab_read): Ditto, for
10070 COFF_MAKE_MSYMBOL_SPECIAL.
10071
6bb7be43
JB
100722002-02-05 Jim Blandy <jimb@redhat.com>
10073
10074 * solib-svr4.c (svr4_truncate_ptr): New function.
10075 (svr4_relocate_section_addresses): Do the address arithmetic with
10076 the appropriate truncation for target addresses, even when
10077 CORE_ADDR is larger than a target address.
10078
e18651ec
DJ
100792002-02-05 Daniel Jacobowitz <drow@mvista.com>
10080
10081 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10082 to (int *).
10083
6b2725be
DJ
100842002-02-05 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10087 code.
10088
fca9e603
DJ
100892002-02-05 Daniel Jacobowitz <drow@mvista.com>
10090
10091 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10092
6c537a52
DJ
100932002-02-05 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * gdbserver/linux-low.c: Remove unused include files.
10096
d844cde6
DJ
100972002-02-05 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10100 (read_inferior_memory): Use it.
10101 (write_inferior_memory): Likewise.
10102
d07c63e7
DJ
101032002-02-05 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10106 grubbing through sys_errlist.
10107
da6d8c04
DJ
101082002-02-05 Daniel Jacobowitz <drow@mvista.com>
10109
10110 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10111
5b421780
PM
101122002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10113 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10114
9f60d481
AC
101152002-02-04 Andrew Cagney <ac131313@redhat.com>
10116
10117 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10118 (do_sfunc, set_cmd_sfunc): New functions.
10119
10120 * command.h (struct cmd_list_element): Add field func.
10121 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10122 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10123 * cli/cli-decode.h: Ditto.
10124
10125 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10126 (help_all, help_cmd_list): Ditto.
10127 (find_cmd, complete_on_cmdlist): Ditto.
10128 * top.c (execute_command): Ditto.
10129
10130 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10131 function.sfunc.
10132
10133 * infcmd.c (notice_args_read): Fix function signature.
10134
10135 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10136 * cli/cli-decode.c (add_set_cmd): Ditto.
10137 * utils.c (initialize_utils): Ditto.
10138 * maint.c (_initialize_maint_cmds): Ditto.
10139 * infrun.c (_initialize_infrun): Ditto.
10140 * demangle.c (_initialize_demangler): Ditto.
10141 * remote.c (add_packet_config_cmd): Ditto.
10142 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10143 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10144 * proc-api.c (_initialize_proc_api): Ditto.
10145 * kod.c (_initialize_kod): Ditto.
10146 * valprint.c (_initialize_valprint): Ditto.
10147 * top.c (init_main): Ditto.
10148 * infcmd.c (_initialize_infcmd): Ditto.
10149 * corefile.c (_initialize_core): Ditto.
10150 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10151 * arch-utils.c (initialize_current_architecture): Ditto.
10152 (_initialize_gdbarch_utils): Ditto.
10153 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10154
10155 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10156 * wince.c (_initialize_inftarg): Ditto.
10157 * symfile.c (_initialize_symfile): Ditto.
10158 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10159 * language.c (_initialize_language): Ditto.
10160 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10161
f9ba0717
MS
101622002-02-04 Michael Snyder <msnyder@redhat.com>
10163
10164 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10165
0c74b2a7
DJ
101662002-02-04 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10169 Add rules for building the register data files.
10170
c638789f
DJ
101712002-02-04 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * regformats/regdat.sh: Add braces to the definition of
10174 expedite_regs_${arch}.
10175
db253027
DJ
101762002-02-04 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * regformats/regdef.h (struct reg): Add comment describing the
10179 requirements for offset and size fields.
10180
206be19c
AS
101812002-02-04 Andreas Schwab <schwab@suse.de>
10182
10183 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10184 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10185
181c1381
RE
101862002-02-04 Richard Earnshaw <rearnsha@arm.com>
10187
10188 * gdbarch.sh (copyright): Update years in generated header.
10189 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10190 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10191 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10192 * dbxread.c: Likewise.
10193 * dwarfread.c: Likewise.
10194 * elfread.c: Likewise.
10195 * somread.c: Likewise.
10196
10197 * arm-tdep.c (arm_smash_text_address): New function.
10198 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10199
fa4ba8da
PM
102002002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10201
10202 Add support for hardware watchpoints on win32 native.
aaa38bb5 10203 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10204 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10205 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10206 of debug registers.
10207 (debug_registers_changed): New variable. Reflects when debug registers
10208 are changed and need to be written to inferior.
aaa38bb5 10209 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10210 was set, used when new threads are created.
10211 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10212 i386-nat code.
10213 (thread_rec): Set dr array if id is the thread of current_event .
10214 (child_continue, child_resume): Change the debug registers for all
10215 threads if debug_registers_changed.
10216 (child_add_thread): Change the debug registers if debug_registers_used.
10217 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10218 Link nm.h to new nm-cygwin.h file.
10219 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10220 of hardware registers.
10221
a73c86fb
AC
102222002-02-03 Andrew Cagney <ac131313@redhat.com>
10223
10224 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10225 Restore behavour broken by 2002-01-20 Andrew Cagney
10226 <ac131313@redhat.com> IEEE_FLOAT removal.
10227
acf5ed49
DJ
102282002-02-03 Daniel Jacobowitz <drow@mvista.com>
10229
10230 * c-valprint.c (c_val_print): Pass a proper valaddr to
10231 cp_print_class_method.
10232 * valops.c (search_struct_method): If there is only one method
10233 and args is NULL, return that method.
10234
493d28d5
DJ
102352002-02-03 Daniel Jacobowitz <drow@mvista.com>
10236
10237 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10238 accessing tag_name directly.
10239
7495dfdb
DJ
102402002-02-03 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10243 of accessing tag_name directly.
10244
dd6bda65
DJ
102452002-02-03 Daniel Jacobowitz <drow@mvista.com>
10246
10247 PR gdb/280
10248 * gdbtypes.c (replace_type): New function.
10249 * gdbtypes.h (replace_type): Add prototype.
10250 * stabsread.c (read_type): Use replace_type.
10251
88fe217c
RE
102522002-02-03 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * Makefile.in (memattr.o): Add missing dependencies rule.
10255
e5d66720
PS
102562002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10257
10258 * breakpoint.c (break_at_finish_command): Really export.
10259 (break_at_finish_at_depth_command): Ditto.
10260 (tbreak_at_finish_command): Ditto.
10261 * hppa-tdep.c: Include completer.h.
10262 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10263 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10264
fffee0be
AC
102652002-02-01 Andrew Cagney <ac131313@redhat.com>
10266
10267 * utils.c (do_write): New function.
10268 (error_stream): Rewrite combining the code from error_begin and
10269 verror.
10270 (verror): Rewrite using error_stream.
10271 (error_begin): Delete function.
10272
255e7dbf
AC
102732002-02-01 Andrew Cagney <ac131313@redhat.com>
10274
10275 * utils.c (error_begin): Make static.
10276 * defs.h (error_begin): Delete declaration.
10277
10278 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10279 (decode_line_1): Use cplusplus_error instead of error_begin,
10280 cplusplus_hint and return_to_top_level.
10281 * coffread.c (coff_symfile_read): Use error instead of error_begin
10282 and return_to_top_level.
10283 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10284
ddfe3c15
AC
102852002-02-01 Andrew Cagney <ac131313@redhat.com>
10286
10287 * language.h (type_error, range_error): Make string parameter
10288 constant.
10289 * language.c (warning_pre_print): Delete extern declaration.
10290 * dwarfread.c (warning_pre_print): Ditto.
10291 * language.c (type_error, range_error): Rewrite to use verror and
10292 vwarning instead of warning_begin.
10293
03ac34d5
MS
102942002-02-01 Michael Snyder <msnyder@redhat.com>
10295
261c4ca2
MS
10296 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10297 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10298
e00d1dc8
AC
102992002-02-01 Andrew Cagney <ac131313@redhat.com>
10300
10301 * command.h (NO_FUNCTION): Delete macro.
10302 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10303 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10304 * tracepoint.c (_initialize_tracepoint): Ditto.
10305 * cli/cli-decode.c (add_set_cmd): Ditto.
10306 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10307
76b79d6e
DJ
103082002-02-01 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10311 Update ``this'' pointer when calling virtual functions.
10312
799f9e91
MS
103132002-02-01 Michael Snyder <msnyder@redhat.com>
10314
c7bd442c 10315 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10316 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10317
3cf384d4
DJ
103182002-02-01 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * regformats/reg-arm.dat: New file.
10321 * regformats/reg-i386.dat: New file.
10322 * regformats/reg-ia64.dat: New file.
10323 * regformats/reg-m68k.dat: New file.
10324 * regformats/reg-mips.dat: New file.
10325 * regformats/reg-ppc.dat: New file.
10326 * regformats/reg-sh.dat: New file.
10327 * regformats/regdef.h: New file.
10328 * regformats/regdat.sh: New file.
10329
0defa245
RE
103302002-02-01 Richard Earnshaw <reanrsha@arm.com>
10331
10332 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10333 (arm_frame_args_address, arm_frame_locals_address): New functions.
10334 (arm_frame_num_args): New function.
10335 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10336 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10337 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10338
405f26e6
MS
103392002-01-31 Michael Snyder <msnyder@redhat.com>
10340
502fd408
MS
10341 * breakpoint.c (break_at_finish_command): Export.
10342 (break_at_finish_at_depth_command): Export.
10343 (tbreak_at_finish_command): Export.
10344 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10345 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10346 "tbreak" commands, which are HPPA specific.
10347
7d35e135
MS
10348 * printcmd.c (disassemble_command): Remove an ancient
10349 artifact of an old merge.
10350
aaa38bb5 10351 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10352 Define enum constant values for overlay mode.
10353 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10354 (overlay_is_mapped, overlay_auto_command,
10355 overlay_manual_command): Ditto.
d874f1e2 10356
aaa38bb5
AJ
10357 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10358 breakpoint_here_p, breakpoint_inserted_here_p,
10359 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10360 describe_other_breakpoints, check_duplicates, clear_command):
10361 Coding standard fixes.
10362
8add0441 10363 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10364 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10365 code: check bfd SEC_READONLY flag for section.
10366
e351066e
AC
103672002-01-31 Andrew Cagney <ac131313@redhat.com>
10368
7d35e135 10369 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10370
8a48e967
DJ
103712002-01-30 Daniel Jacobowitz <drow@mvista.com>
10372
10373 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10374 data symbols, since we search based on textlow and texthigh.
10375 (find_pc_sect_symtab): Likewise.
10376
f5a96129
AC
103772002-01-30 Andrew Cagney <ac131313@redhat.com>
10378
10379 * defs.h (vwarning): Declare.
f5a96129
AC
10380 * utils.c (vwarning): New function.
10381 (warning): Call vwarning.
10382 (warning_begin): Delete function.
10383
10384 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10385 the warning message.
10386 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10387 warning_begin.
10388
cefd4ef5
MS
103892002-01-30 Michael Snyder <msnyder@redhat.com>
10390
1a703748
MS
10391 * NEWS: Mention "set trust-readonly-sections" command.
10392 Mention generate-core-file command.
cefd4ef5 10393
3a11626d
MS
103942002-01-15 Michael Snyder <msnyder@redhat.com>
10395
10396 * target.c: New command, "set trust-readonly-sections on".
10397 (do_xfer_memory): Honor the suggestion to trust readonly sections
10398 by reading them from the object file instead of from the target.
10399 (initialize_targets): Register command "set trust-readonly-sections".
10400
d1c7e53b
AC
104012002-01-29 Andrew Cagney <ac131313@redhat.com>
10402
10403 * parse.c (target_map_name_to_register): Simplify, search regs and
10404 pseudo-regs using a single loop.
10405
e2c9a72c
AC
104062002-01-30 Andrew Cagney <ac131313@redhat.com>
10407
10408 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10409
69824b4e
MK
104102002-01-15 Rodney Brown <rbrown64@csc.com.au>
10411
10412 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10413 * config/i386/i386v42mp.mh: Add i387-nat.o .
10414 * i386v4-nat.c: Include i387-nat.h.
10415 (supply_fpregset): Use i387_supply_fsave.
10416 (fill_fpregset): Use i387_fill_fsave.
10417
6eb69eab
RE
104182002-01-30 Richard Earnshaw <rearnsha@arm.com>
10419
10420 * arm-tdep.c (arm_call_dummy_words): Define.
10421 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10422 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10423 (CALL_DUMMY_WORDS): Define.
10424 (arm_call_dummy_words): Declare.
10425 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10426 (arm_linux_call_dummy_words): Declare.
10427
9852326a
AS
104282002-01-30 Andreas Schwab <schwab@suse.de>
10429
10430 * m68klinux-nat.c: Fix last change to use regcache_collect
10431 instead of referencing registers[] directly.
10432
977a3030
AC
104332002-01-29 Andrew Cagney <ac131313@redhat.com>
10434
10435 * parse.c (target_map_name_to_register): Delete code wrapped in
10436 #ifdef REGISTER_NAME_ALIAS_HOOK.
10437
2076c72b
MS
104382002-01-28 Michael Snyder <msnyder@redhat.com>
10439
10440 * regcache.c (legacy_read_register_gen): Need to be able to
10441 read pseudo-register as well as real register.
10442 (legacy_write_register_gen): Ditto.
10443
8fcc723b
AC
104442002-01-28 Andrew Cagney <ac131313@redhat.com>
10445
10446 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10447 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10448 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10449 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10450 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10451 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10452 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10453 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10454 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10455 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10456 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10457 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10458 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10459 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10460 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10461 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10462 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10463 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10464 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10465 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10466
afe64c1a
AC
104672002-01-28 Andrew Cagney <ac131313@redhat.com>
10468
10469 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10470 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10471 (initialize_current_architecture): Update target_byte_order using
10472 information from BFD.
aaa38bb5 10473 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10474 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10475
75bc7ddf
AC
104762002-01-28 Andrew Cagney <ac131313@redhat.com>
10477
10478 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10479 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10480
10481 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10482 #ifdef INVALID_FLOAT.
10483 * infcmd.c (do_registers_info): Ditto.
10484 * values.c (unpack_double): Ditto. Add comment.
10485
10486 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10487 already commented out.
10488
0280a90a
AS
104892002-01-26 Andreas Schwab <schwab@suse.de>
10490
10491 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10492 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10493 registers and add support for PTRACE_GETREGS.
10494
7072a954
AC
104952002-01-24 Andrew Cagney <ac131313@redhat.com>
10496
10497 GDB 5.1.1 released from 5.1 branch.
10498 * NEWS: Add 5.1.1 news.
10499 * README: Sync with 5.1 branch.
10500
86f902e0
FF
105012002-01-23 Fred Fish <fnf@redhat.com>
10502
10503 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10504 stabstring on initial malloc. Reallocing will copy it for us,
10505 if necessary.
10506
8af51c36
EZ
105072002-01-23 Elena Zannoni <ezannoni@redhat.com>
10508
aaa38bb5 10509 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10510 (HFILES_NO_SRCDIR): Remove hpread.h.
10511 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10512 (hpread.o): Update dependencies.
10513 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10514
10515 * hp-psymtab-read.c: Remove file.
10516 * hp-symtab-read.c: Remove file.
10517 * hpread.h: Remove file.
10518
10519 * hpread.c: Merge all contents of hp-psymtab-read.c,
10520 hp-symtab-read.c and hpread.h into this file, as it was prior to
10521 January 1999.
10522
10523 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10524 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10525 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10526 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10527
dc5cfeb6
EZ
105282002-01-23 Elena Zannoni <ezannoni@redhat.com>
10529
10530 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10531 fill_gregset): Call gdbarch_tdep() just once, assign result to
10532 variable and use that, instead of calling the function several
10533 times.
10534
ea87b71b
AO
105352002-01-24 Alexandre Oliva <aoliva@redhat.com>
10536
10537 * configure.host: Accept sparcv9 as alias for sparc64.
10538 * configure.tgt: Likewise.
10539
13fc0c2f
KB
105402002-01-22 Kevin Buettner <kevinb@redhat.com>
10541
10542 * solib-aix5.c (build_so_list_from_mapfile)
10543 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10544 arguments is not reversed.
10545 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10546 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10547
7bd872fe
EZ
105482002-01-22 Elena Zannoni <ezannoni@redhat.com>
10549
10550 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10551 modified version of obsolete sh_fetch_pseudo_register.
10552 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10553 (sh4_register_read): New function.
10554 (sh_pseudo_register_write): New function. Renamed and modified
10555 version of obsolete sh_store_pseudo_register.
10556 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10557 (sh4_register_write): New function.
10558 (sh_gdbarch_init): Remove setting of gdbarch function
10559 fetch_pseudo_register and store_pseudo_register. Remove setting of
10560 register_convert_to_raw, register_convert_to_virtual,
10561 register_convertible.
10562 (sh_sh4_register_convertible): Delete. No longer needed. All is
10563 taken care by architecture specific functions
10564 register_read/register_write.
10565 (sh_sh4_register_convert_to_virtual): Make static.
10566 (sh_sh4_register_convert_to_raw): Ditto.
10567
069e84fd
AC
105682002-01-22 Andrew Cagney <ac131313@redhat.com>
10569
10570 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10571 (floatformat_is_nan, floatformat_mantissa): Ditto.
10572
10573 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10574 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10575 builtin_type_ieee_double_little,
10576 builtin_type_ieee_double_littlebyte_bigword,
10577 builtin_type_m68881_ext, builtin_type_i960_ext,
10578 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10579 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10580 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10581 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10582
211a4f69
CV
105832002-01-22 Corinna Vinschen <vinschen@redhat.com>
10584
10585 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10586 parameter. Set frameless flag if it exists and depended of
10587 whether the scanned function is frameless or not.
10588 (xstormy16_skip_prologue): If function is frameless, return
10589 result of xstormy16_scan_prologue().
10590 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10591 call.
10592
f81353e4
EZ
105932002-01-21 Elena Zannoni <ezannoni@redhat.com>
10594
10595 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10596 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10597 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10598 sh_sh4_register_byte, sh_sh4_register_raw_size,
10599 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10600 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10601 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10602 sh_store_pseudo_register, sh_do_pseudo_register): Call
10603 gdbarch_tdep() just once, assign result to variable and use that,
10604 instead of calling the function several times.
10605
63c73a17
MK
106062002-01-20 Mark Kettenis <kettenis@gnu.org>
10607
10608 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10609 macros instead of LAST_FPU_CTRL_REGNUM.
10610 (store_register): Likewise.
10611
39ad761d
JB
106122002-01-21 Jim Blandy <jimb@redhat.com>
10613
10614 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10615 is up-to-date before running the program, not just when a program
10616 exits.
10617
3d74b771
FF
106182002-01-21 Fred Fish <fnf@redhat.com>
10619
10620 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10621 when we have found all instructions we are looking for.
10622
966fbf70
RE
106232002-01-21 Richard Earnshaw <rearnsha@arm.com>
10624
10625 * arm-tdep.c (arm_register_name): New function.
10626 (arm_registers_names): Make static.
10627 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10628 (arm_register_name): Declare.
10629 (REGISTER_NAME): Use it.
10630
c3b4394c
RE
106312002-01-21 Richard Earnshaw <rearnsha@arm.com>
10632 Kevin Buettner <kevinb@redhat.com>
10633
10634 Convert arm targets to new FRAME interface.
10635 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10636 (arm_frame_find_save_regs): Delete.
10637 (arm_frame_init_saved_regs): New.
10638 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10639 Allocate extra_info as required. Convert all uses of fsr.regs
10640 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10641 to use extra_info.
10642 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10643 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10644 (check_prologue_cache, save_prologue_cache): Likewise.
10645 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10646 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10647 (FRAME_FIND_SAVED_REGS): Delete.
10648 (arm_frame_find_saved_regs): Delete prototype.
10649 (arm_frame_init_saved_regs): New prototype.
10650 (FRAME_INIT_SAVED_REGS): Define.
10651
61d99182
AC
106522002-01-20 Andrew Cagney <ac131313@redhat.com>
10653
10654 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10655
6aaea291
AC
106562002-01-20 Andrew Cagney <ac131313@redhat.com>
10657
10658 From Jeff Law <law@redhat.com>:
10659 * infttrace.c: Include <sys/pstat.h>.
10660 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10661 exec file if the ttrace equivalent fails.
10662
15f698d2
AC
106632002-01-20 Andrew Cagney <ac131313@redhat.com>
10664
10665 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10666 (closeLogFile): Ditto.
10667
f86ddd7c
MC
106682002-01-20 Michael Chastain <mec@shout.net>
10669
10670 * top.c (print_gdb_version): Bump copyright year to 2002.
10671
904507ce
AC
106722002-01-20 Andrew Cagney <ac131313@redhat.com>
10673
10674 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10675 Zannoni and Eli Zaretskii.
10676
d7f0b9ce
DJ
106772002-01-20 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * buildsym.c: Update copyright years.
10680 * c-typeprint.c: Likewise.
10681 * dwarf2read.c: Likewise.
10682 * f-typeprint.c: Likewise.
10683 * gdbtypes.c: Likewise.
10684 * gdbtypes.h: Likewise.
10685 * hp-symtab-read.c: Likewise.
10686 * hpread.c: Likewise.
10687 * mdebugread.c: Likewise.
10688 * p-typeprint.c: Likewise.
10689
3fd3d7d2
AC
106902002-01-20 Andrew Cagney <ac131313@redhat.com>
10691
10692 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10693 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10694 byte-order selectable.
10695 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10696 * arch-utils.c: Ditto.
10697 (set_endian): Ditto.
10698 (set_endian_from_file): Ditto.
10699 * gdbserver/low-sim.c (create_inferior): Ditto.
10700 * gdbarch.sh: Ditto.
10701 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10702 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10703 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10704 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10705 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10706 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10707 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10708 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10709 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10710 macro definition.
10711 * config/mips/tm-wince.h: Remove #undef of macro
10712 TARGET_BYTE_ORDER_SELECTABLE.
10713 * config/sh/tm-wince.h: Ditto.
10714
b02dede2
DJ
107152002-01-20 Daniel Jacobowitz <drow@mvista.com>
10716
10717 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10718 member function fields. Add accessor macro
10719 TYPE_FN_FIELD_ARTIFICIAL.
10720 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10721 * c-typeprint.c (c_type_print_base): Skip artificial member
10722 functions.
10723
c3643761
DJ
107242002-01-20 Daniel Jacobowitz <drow@mvista.com>
10725
10726 * f-typeprint.c: Delete unused function f_type_print_args.
10727 * p-typeprint.c: Delete unused function pascal_type_print_args.
10728
8176bb6d
DJ
107292002-01-20 Daniel Jacobowitz <drow@mvista.com>
10730
10731 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10732 comment. Add ``artificial'' to ``union field_location''.
10733
10734 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10735
10736 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10737 * mdebugread.c (parse_symbol): Likewise.
10738 * stabsread.c (define_symbol): Likewise.
10739 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10740 initializing TYPE_FIELD_BITPOS to n (obsolete).
10741 (hpread_doc_function_type): Likewise.
10742 * hpread.c (hpread_function_type): Likewise.
10743
7fd60527
AC
107442002-01-20 Andrew Cagney <ac131313@redhat.com>
10745
10746 * configure.in (host_makefile_frag): Only require a host makefile
10747 fragment when a native build.
10748 * configure: Re-generate.
10749
c2f05ac9
AC
107502002-01-20 Andrew Cagney <ac131313@redhat.com>
10751
10752 * doublest.h (floatformat_from_type): Declare.
10753 * doublest.c (floatformat_from_type): New function.
10754 (convert_typed_floating): Use.
10755
10756 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10757 call to function floatformat_from_type.
10758
10759 * gdbarch.sh (IEEE_FLOAT): Delete.
10760 * gdbarch.h, gdbarch.c: Re-generate.
10761 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10762 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10763 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10764 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10765 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10766 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10767 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10768 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10769 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10770 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10771 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10772 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10773
10774 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10775 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10776 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10777 * sh-tdep.c (sh_gdbarch_init): Ditto.
10778 * mips-tdep.c (mips_gdbarch_init): Ditto.
10779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10780 * cris-tdep.c (cris_gdbarch_init): Ditto.
10781
abf22e64
AJ
107822002-01-20 Jiri Smid <smid@suse.cz>
10783
10784 * configure.host, configure.tgt: Support x86-64.
10785 * NEWS: Note new target x86-64.
10786
b7c4cbf8
AJ
10787 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10788 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10789 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10790 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10791 x86-64-linux-nat.o): Fix dependencies.
10792
82600034
AC
107932002-01-19 Andrew Cagney <ac131313@redhat.com>
10794
10795 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10796 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10797 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10798 * config/sparc/xm-sun4os4.h: Delete file.
10799 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10800
bbe5c628
AC
108012002-01-19 Andrew Cagney <ac131313@redhat.com>
10802
10803 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10804 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10805 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10806 * config/i386/i386lynx.mh (XM_FILE): Delete.
10807 * config/rs6000/xm-rs6000ly.h: Delete file.
10808 * config/sparc/xm-sparclynx.h: Delete file.
10809 * config/m68k/xm-m68klynx.h: Delete file.
10810 * config/i386/xm-i386lynx.h: Delete file.
10811 * config/xm-lynx.h: Delete file.
10812 * config/djgpp/fnchange.lst: Update.
10813
f8453e34
JT
108142002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10815
10816 * alpha-tdep.c (alpha_register_byte): New function.
10817 (alpha_register_raw_size): Ditto.
10818 (alpha_register_virtual_size): Ditto.
10819 (alpha_skip_prologue_internal): Renamed from
10820 alpha_skip_prologue.
10821 (alpha_skip_prologue): New version that calls
10822 alpha_skip_prologue_internal.
10823 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10824 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10825 second argument from alpha_skip_prologue.
10826 (REGISTER_BYTE): Use alpha_register_byte.
10827 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10828 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10829 (FRAMELESS_FUNCTION_INVOCATION): Use
10830 generic_frameless_function_invocation_not.
10831 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10832 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10833
52d9e613
AC
108342002-01-19 Andrew Cagney <ac131313@redhat.com>
10835
10836 * config/mips/xm-news-mips.h: Delete file.
10837 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10838
10839 * config/m88k/xm-m88k.h: Delete file.
10840 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10841 * config/m88k/xm-delta88v4.h: Ditto.
10842 * config/m88k/xm-delta88.h: Ditto.
10843
10844 * config/alpha/xm-fbsd.h: Delete file.
10845 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10846
10847 * config/sparc/xm-sparc.h: Delete file.
10848 * Makefile.in (xm-sun4os4.h): Delete dependency.
10849 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10850 * config/sparc/xm-sun4os4.h: Ditto.
10851 * config/sparc/xm-linux.h: Ditto.
10852
10853 * config/i386/xm-windows.h: Delete file.
10854
2d1b2124
AC
108552002-01-19 Andrew Cagney <ac131313@redhat.com>
10856
10857 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10858 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10859
ee1f65f0
JT
108602002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10861
10862 * alpha-tdep.c (alpha_call_dummy_words): New.
10863 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10864 (CALL_DUMMY_P): Define.
10865 (CALL_DUMMY_WORDS): Define.
10866 (SIZEOF_CALL_DUMMY_WORDS): Define.
10867
98081e55
PB
108682002-01-19 Per Bothner <per@bothner.com>
10869
10870 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10871 isn't NULL, which can happen with some gcj-3.x-produced code.
10872
0d056799
JT
108732002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10874
10875 * alpha-tdep.c (alpha_register_virtual_type): New function.
10876 (alpha_init_frame_pc_first): Ditto.
10877 (alpha_fix_call_dummy): Ditto.
10878 (alpha_store_struct_return): Ditto.
10879 (alpha_extract_struct_value_address): Ditto.
10880 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10881 alpha_register_virtual_type.
10882 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10883 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10884 alpha_extract_struct_value_address.
10885 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10886 (INIT_FRAME_PC): Use init_frame_pc_noop.
10887 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10888
4604bcad
MK
108892002-01-19 Mark Kettenis <kettenis@gnu.org>
10890
10891 * i386gnu-nat.c: Include "i386-tdep.h".
10892 (fetch_fpregs): Simplify code dealing with uninitialized floating
10893 point states such that it doesn't require FP7_REGNUM.
10894
140f9984
JT
108952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10896
abf22e64
AJ
10897 * alpha-tdep.c (frame_extra_info): New.
10898 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10899 frame->extra_info.
10900 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10901 (alpha_frame_saved_pc): Use frame->extra_info.
10902 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10903 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10904 (init_extra_frame_info): Rename to...
10905 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10906 (alpha_print_extra_frame_info): New function.
140f9984
JT
10907 (alpha_frame_locals_address): Ditto.
10908 (alpha_frame_args_address): Ditto.
abf22e64 10909 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10910 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10911 alpha_frame_args_address.
abf22e64 10912 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10913 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10914 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10915 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10916 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10917 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10918
d734c450
JT
109192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10920
10921 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10922 (alpha_cannot_fetch_register): Ditto.
10923 (alpha_cannot_store_register): Ditto.
10924 (alpha_register_convertible): Ditto.
10925 (alpha_use_struct_convention): Ditto.
10926 * config/alpha/tm-alpha.h: Update copyright years.
10927 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10928 (INNER_THAN): Use core_addr_lessthan.
10929 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10930 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10931 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10932 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10933 (FRAME_CHAIN): Remove unnecessary cast.
10934
b4ceaee6
AC
109352002-01-18 Andrew Cagney <ac131313@redhat.com>
10936
10937 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10938 obsolete.
10939
0a65a603
AC
109402002-01-18 Andrew Cagney <ac131313@redhat.com>
10941
10942 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10943 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10944 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10945 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10946 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10947 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10948 * x86-64-linux-nat.c: Ditto.
10949
636a6dfc
JT
109502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10951
abf22e64 10952 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10953 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10954 (REGISTER_NAME): Define.
10955
acceddb6
JT
109562002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10957
10958 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10959
ec32e4be
JT
109602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10961
10962 * alpha-tdep.c: Update copyright years.
10963 (alpha_next_pc): New function.
10964 (alpha_software_single_step): Ditto.
10965 * config/alpha/tm-alpha.h: Add prototype for
10966 alpha_software_single_step.
10967
e771a871
JT
109682002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10969
10970 * alphabsd-nat.c: Update copyright years.
10971 (fill_gregset): Use regcache_collect.
10972 (fill_fpregset): Likewise.
10973 (fetch_inferior_registers): Only fetch integer registers
10974 if requested to do so.
10975 (store_inferior_registers): Only store integer registers
10976 if requested to do so.
10977
7708fa01
AC
109782002-01-17 Andrew Cagney <ac131313@redhat.com>
10979
10980 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10981 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10982 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10983 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10984 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10985 * config/arm/linux.mh (XDEPFILES): Delete.
10986 * config/arm/nbsd.mh (XDEPFILES): Delete.
10987 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10988 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10989 * config/i386/i386m3.mh (XDEPFILES): Delete.
10990 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10991 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10992 * config/i386/fbsd.mh (XDEPFILES): Delete.
10993 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10994 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10995 * config/i386/i386v4.mh (XDEPFILES): Delete.
10996 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10997 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10998 * config/i386/i386aix.mh (XDEPFILES): Delete.
10999 * config/i386/go32.mh (XDEPFILES): Delete.
11000 * config/i386/cygwin.mh (XDEPFILES): Delete.
11001 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11002 * config/i386/i386mach.mh (XDEPFILES): Delete.
11003 * config/i386/i386v32.mh (XDEPFILES): Delete.
11004 * config/i386/linux.mh (XDEPFILES): Delete.
11005 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11006 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11007 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11008 * config/i386/i386sco.mh (XDEPFILES): Delete.
11009 * config/i386/i386v.mh (XDEPFILES): Delete.
11010 * config/i386/nbsd.mh (XDEPFILES): Delete.
11011 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11012 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11013 * config/i386/symmetry.mh (XDEPFILES): Delete.
11014 * config/i386/obsd.mh (XDEPFILES): Delete.
11015 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11016 * config/ia64/linux.mh (XDEPFILES): Delete.
11017 * config/ia64/aix.mh (XDEPFILES): Delete.
11018 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11019 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11020 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11021 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11022 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11023 * config/m68k/linux.mh (XDEPFILES): Delete.
11024 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11025 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11026 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11027 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11028 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11029 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11030 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11031 * config/m88k/delta88.mh (XDEPFILES): Delete.
11032 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11033 * config/m88k/m88k.mh (XDEPFILES): Delete.
11034 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11035 * config/mips/linux.mh (XDEPFILES): Delete.
11036 * config/mips/irix6.mh (XDEPFILES): Delete.
11037 * config/mips/irix5.mh (XDEPFILES): Delete.
11038 * config/mips/irix4.mh (XDEPFILES): Delete.
11039 * config/mips/irix3.mh (XDEPFILES): Delete.
11040 * config/mips/decstation.mh (XDEPFILES): Delete.
11041 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11042 (NATDEPFILES): Move core-aout.o to here.
11043 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11044 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11045 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11046 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11047 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11048 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11049 * config/pa/hpux11.mh (XDEPFILES): Delete.
11050 * config/powerpc/aix.mh (XDEPFILES): Delete.
11051 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11052 * config/powerpc/linux.mh (XDEPFILES): Delete.
11053 * config/romp/rtbsd.mh: Rename XDEPFILES.
11054 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11055 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11056 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11057 * config/s390/s390.mh (XDEPFILES): Delete.
11058 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11059 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11060 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11061 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11062 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11063 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11064 * config/sparc/linux.mh (XDEPFILES): Delete.
11065 * config/vax/vaxult.mh (XDEPFILES): Delete.
11066 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11067 * Makefile.in (DEPFILES): Remove XDEPFILES.
11068
375fc983
AC
110692002-01-17 Andrew Cagney <ac131313@redhat.com>
11070
11071 * utils.c (internal_verror): Fix comments, default is yes not no.
11072 Update queries to match. Default to quit and dump core.
11073
8926118c
AC
110742002-01-17 Andrew Cagney <ac131313@redhat.com>
11075
11076 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11077 copyright.
11078 * defs.h, event-top.c, gdbcmd.h: Ditto.
11079 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11080 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11081 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11082 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11083 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11084 * mi/mi-main.c:Ditto.
11085
11086 * stack.c, symfile.c: Update copyright.
11087
45b7b345
DJ
110882002-01-17 Daniel Jacobowitz <drow@mvista.com>
11089
db728ff7
DJ
11090 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11091 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11092 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11093 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11094
db728ff7
DJ
110952002-01-17 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11098 * gdbserver/low-lynx.c (myattach): Likewise.
11099 * gdbserver/low-nbsd.c (myattach): Likewise.
11100 * gdbserver/low-sim.c (myattach): Likewise.
11101 * gdbserver/low-sparc.c (myattach): Likewise.
11102 * gdbserver/low-sun3.c (myattach): Likewise.
11103
11104 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11105
db728ff7 11106 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11107 (main): Handle "--attach".
11108
8de3c354
AC
111092002-01-16 Andrew Cagney <ac131313@redhat.com>
11110
11111 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11112 maintainer.
11113
b0129042
DJ
111142002-01-15 Daniel Jacobowitz <drow@mvista.com>
11115
11116 * c-typeprint.c (is_type_conversion_operator): Add additional
11117 check for non-conversion operators.
11118
ba8679fb 111192002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11120
11121 * linux-proc.c: Add "info proc" command, a la procfs.c.
11122 (read_mapping): New function, abstract and re-use code.
11123 (linux_find_memory_regions): Use new func read_mapping.
11124 (linux_info_proc_cmd): New function, implement "info proc".
11125 (_initialize_linux_proc): Add new command "info proc".
11126
e4f9b4d5
MS
111272002-01-15 Michael Snyder <msnyder@redhat.com>
11128
11129 * symfile.c (generic_load): Use bfd_map_over_sections method
11130 instead of manipulating bfd structure members directly.
11131 (add_section_size_callback): New function, bfd sections callback
11132 used by generic_load.
11133 (load_sections_callback): New function, bfd sections callback
11134 used by generic_load.
11135
08cf96df
EZ
111362002-01-15 Elena Zannoni <ezannoni@redhat.com>
11137
abf22e64 11138 [Based on work by Jim Blandy]
08cf96df
EZ
11139 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11140 (builtin_type_vec128): Export.
11141 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11142 types.
11143 (builtin_type_vec128): New builtin type for 128 bit vector
11144 registers.
11145 (build_gdbtypes): Initialize builtin_type_v16qi and
11146 builtin_type_v8hi. Create the vec128 register builtin type
11147 structure.
11148 (build_builtin_type_vec128): New function.
abf22e64 11149 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11150 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11151 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11152 AltiVec register to new builtin type.
11153
d7242108
DJ
111542001-01-15 Daniel Jacobowitz <drow@mvista.com>
11155
11156 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11157 to make_cv_type.
11158
4ee3352d
AC
111592002-01-14 Andrew Cagney <ac131313@redhat.com>
11160
11161 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11162 CLEAN_UP_REGISTER_VALUE.
11163 * regcache.c (supply_register): Update only call.
11164
f015b2e7
AC
111652002-01-14 Andrew Cagney <ac131313@redhat.com>
11166
11167 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11168 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11169 a29k-*-vxworks* targets as obsolete.
11170
356ae49d
MS
111712002-01-14 Michael Snyder <msnyder@redhat.com>
11172
11173 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11174 until we can resolve portability issues.
11175 * gregset.h: Remove references to fpxregs.
11176 * gcore.c (gcore_command): Initialize note_sec to NULL.
11177
ade8f45e
AC
111782002-01-13 Andrew Cagney <ac131313@redhat.com>
11179
11180 * signals.c (target_signal_to_name): Rewrite. Only use
11181 signals[].name when in bounds and non-NULL.
abf22e64 11182
89c49e7a
AC
111832002-01-13 Andrew Cagney <ac131313@redhat.com>
11184
11185 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11186 * signals.c (target_signal_to_name): Verify that SIG is within the
11187 bounds of the signals array.
11188
4daa9f9f
AC
111892002-01-13 Andrew Cagney <ac131313@redhat.com>
11190
11191 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11192
ba4bbdcb
KS
111932002-01-13 Keith Seitz <keiths@redhat.com>
11194
11195 * stack.c (print_frame_info_base): Print the frame's pc
11196 only if when print_frame_info_listing_hook is not defined.
11197
575bbeb6
KS
111982002-01-13 Keith Seitz <keiths@redhat.com>
11199
11200 * varobj.c (varobj_set_value): Make sure that there were no
11201 errors evaluating the object before attempting to set its
11202 value.
11203 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11204 so this offset adjustment is no longer necessary.
11205 (create_child): Don't set the error flag if the child is
11206 a CPLUS_FAKE_CHILD.
11207 (value_of_child): If value_fetch_lazy fails, return NULL
11208 so that callers will be notified that an error occurred.
11209 (c_value_of_variable): Delay check of variable's validity
11210 until later. We actually want all structs and unions to have
11211 the value "{...}".
11212 Do not return "???" for variables which could not be evaluated.
11213 This error condition must be returned to the caller so that it
11214 can get the error condition from gdb.
11215 (cplus_name_of_child): Adjust index for vptr before figuring
11216 out the name of the child.
11217 (cplus_value_of_child): If a child's (real) parent is not valid,
11218 don't even bother trying to give a value for it. Just return
11219 an error. Change all instances in this function.
11220 (cplus_type_of_child): If our parent is one of the "fake"
11221 parents, we need to get at the type of the real parent, and
11222 derive the child's true type using this information.
11223
b76898ab
AC
112242002-01-13 Andrew Cagney <ac131313@redhat.com>
11225
11226 From 2002-01-09 John Marshall <johnm@falch.net>:
11227 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11228 sources.redhat.com, and tweak some related URLs which had
11229 suffered from linkrot.
11230
b6649e88
AC
112312002-01-13 Andrew Cagney <ac131313@redhat.com>
11232
11233 From Jeff law:
11234 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11235 structures passed in registers.
11236
82cc5033
EZ
112372002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11238
11239 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11240 white space which prevented compilation. Reported by DSK
11241 <dsk@student.unsw.edu.au>.
11242
ba5f2f8a
MS
112432002-01-11 Michael Snyder <msnyder@redhat.com>
11244
fbd35540
MS
11245 * symfile.c (build_section_addr_info_from_section_tab):
11246 Use bfd access method instead of manipulating bfd directly.
11247 (syms_from_objfile): Ditto.
11248 (simple_overlay_update_1): Ditto.
11249 (simple_overlay_update): Ditto.
11250 (generic_load): Ditto.
11251 (overlay_unmapped_address): FIXME comment, bfd access methods.
11252 (sections_overlap): FIXME comment, bfd access methods.
11253 (pc_in_mapped_range): FIXME comment, bfd access methods.
11254 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11255 (section_is_mapped): FIXME comment, bfd access methods.
11256 (section_is_overlay): FIXME comment, bfd access methods.
11257
ba5f2f8a
MS
11258 * symfile.c (generic_load): Whitespace and long line cleanups.
11259 Remove duplicate variable, change several local variables to
11260 more appropriate data types.
11261 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11262
17df2af6
AC
112632002-01-12 Andrew Cagney <ac131313@redhat.com>
11264
11265 From Peter Schauer:
11266 * language.c (longest_local_hex_string_custom): Use phex_nz to
11267 convert NUM to a hex string.
11268
ec920329
EZ
112692002-01-12 Elena Zannoni <ezannoni@redhat.com>
11270
11271 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11272 the function.
538a76d6 11273 Update Copyright year.
ec920329 11274
3abd2e01
AC
112752002-01-12 Andrew Cagney <ac131313@redhat.com>
11276
11277 * language.c (longest_raw_hex_string): Delete unused function.
11278
b21b22e0
PS
112792002-01-11 Petr Sorfa <petrs@caldera.com>
11280
11281 * MAINTAINERS (write-after-approval): Add myself.
11282 * dwarf2read.c (read_tag_string_type): Handling of
11283 DW_AT_byte_size.
11284 (read_tag_string_type): FORTRAN fix to prevent propagation of
11285 first string size.
11286 (set_cu_language): Handling of DW_LANG_Fortran95
11287
747fe712
RE
112882002-01-11 Richard Earnshaw <rearnsha@arm.com>
11289
11290 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11291 GETPID(inferior_ptid).
11292 (store_inferior_registers): Likewise.
11293
f1bea926
JM
112942002-01-10 Jason Merrill <jason@redhat.com>
11295
11296 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11297 Fix DW_OP_minus.
11298
ae940673
AC
112992002-01-10 Andrew Cagney <ac131313@redhat.com>
11300
11301 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11302 and bfd/elf32-sh-nbsd.c.
11303
00546b04
MS
113042002-01-10 Michael Snyder <msnyder@redhat.com>
11305
352ed7b4
MS
11306 * NEWS: Mention --pid and corefile/proc-id behavior change.
11307
c18be923
MS
11308 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11309 * gcore.c: Include cli/cli-decode.h instead of command.h.
11310
00546b04
MS
11311 * main.c (captured_main): Add new command line option "--pid".
11312 If the second command line argument (following the symbol-file)
11313 begins with a digit, try to attach to it before trying to open
11314 it as a corefile.
11315 (print_gdb_help): Document the "--pid" argument.
11316
db60ec62
EZ
113172002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11318
11319 * completer.c (command_completer): New function.
11320
11321 * completer.h <command_completer>: Add prototype.
11322
11323 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11324 completer for the "help" command.
11325
39c22d1a
JM
113262002-01-09 Jason Merrill <jason@redhat.com>
11327
11328 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11329
c564377f
MS
113302002-01-09 Michael Snyder <msnyder@redhat.com>
11331
975aec09
MS
11332 * i386-linux-nat.c (fill_fpxregset): Make global.
11333 (store_fpxregset): Ditto.
11334
db4a10fa
MS
11335 * gregset.h (gdb_fpxregset_t): Define.
11336 (supply_fpxregset): Prototype.
11337 (fill_fpxregset): Prototype.
11338
c564377f
MS
11339 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11340
c3d45d70
RE
113412002-01-09 Richard Earnshaw <rearnsha@arm.com>
11342
11343 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11344 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11345 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11346
fcc87af1
AC
113472002-01-09 Andrew Cagney <ac131313@redhat.com>
11348
11349 * MAINTAINERS: Update target maintainer rules so that any
11350 Maintainer can approve a tested patch for a maintenance-only
11351 target.
11352
dd96c05b
RE
113532002-01-09 Richard Earnshaw <rearnsha@arm.com>
11354
d4297db9 11355 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11356
d4297db9 11357 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11358 IN_SIGTRAMP.
11359
145fdc6e
MS
113602002-01-08 Michael Snyder <msnyder@redhat.com>
11361
11362 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11363 real name of the executable, rather than the /proc name.
11364
be4d1333
MS
113652002-01-03 Michael Snyder <msnyder@redhat.com>
11366
11367 Implement a "generate-core-file" command in gdb, save target state.
11368 * gcore.c: New file. Implement new command 'generate-core-file'.
11369 Save a corefile image of the current state of the inferior.
11370 * linux-proc.c: Add linux-specific code for saving corefiles.
11371 * target.h (struct target_ops): Add new target vectors for saving
11372 corefiles; to_find_memory_regions and to_make_corefile_notes.
11373 (target_find_memory_regions): New macro.
11374 (target_make_corefile_notes): New macro.
11375 * target.c (update_current_target): Inherit new target methods.
11376 (dummy_find_memory_regions): New place-holder method.
11377 (dummy_make_corefile_notes): New place-holder method.
11378 (init_dummy_target): Initialize new dummy target vectors.
11379 * exec.c (exec_set_find_memory_regions): New function.
11380 Allow the exec_ops vector for memory regions to be taken over.
11381 (exec_make_note_section): New function, target vector method.
11382 * defs.h (exec_set_find_memory_regions): Export prototype.
11383 * procfs.c (proc_find_memory_regions): New function, corefile method.
11384 (procfs_make_note_section): New function, corefile method.
11385 (init_procfs_ops): Set new target vector pointers.
11386 (find_memory_regions_callback): New function.
11387 (procfs_do_thread_registers): New function.
11388 (procfs_corefile_thread_callback): New function.
11389 * sol-thread.c (sol_find_memory_regions): New function.
11390 (sol_make_note_section): New function.
11391 (init_sol_thread_ops): Initialize new target vectors.
11392 * inftarg.c (inftarg_set_find_memory_regions): New function.
11393 Allow to_find_memory_regions vector to be taken over.
11394 (inftarg_set_make_corefile_notes): New function.
11395 Allow to_make_corefile_notes vector to be taken over.
11396 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11397 interface layer if not target_has_execution (may be a corefile).
11398 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11399 * config/sparc/sun4sol2.mh: Ditto.
11400 * config/alpha/alpha-linux.mh: Ditto.
11401 * config/arm/linux.mh: Ditto.
11402 * config/i386/x86-64linux.mh: Ditto.
11403 * config/ia64/linux.mh: Ditto.
11404 * config/m68k/linux.mh: Ditto.
11405 * config/mips/linux.mh: Ditto.
11406 * config/powerpc/linux.mh: Ditto.
11407 * config/sparc/linux.mh: Ditto.
11408
c6b92abd
MS
114092002-01-07 Michael Snyder <msnyder@redhat.com>
11410
11411 * arm-linux-nat.c: Remove references to regcache.c internal data
11412 (registers[] and register_valid[]).
11413
4b09dc8c
MS
114142002-01-07 Michael Snyder <msnyder@redhat.com>
11415
abf22e64
AJ
11416 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11417 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11418 symbol file and shlibs.
11419 * Makefile.in: Add rule for linux-proc.o.
11420 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11421 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11422 * config/arm/linux.mh: Ditto.
11423 * config/i386/linux.mh: Ditto.
11424 * config/i386/x86-64linux.mh: Ditto.
11425 * config/ia64/linux.mh: Ditto.
11426 * config/m68k/linux.mh: Ditto.
11427 * config/mips/linux.mh: Ditto.
11428 * config/powerpc/linux.mh: Ditto.
11429 * config/sparc/linux.mh: Ditto.
11430
c25b74ac
PM
114312002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11432
11433 * win32-nat.c: Add i386-tdep.h dependency.
11434
94cd915f
MS
114352002-01-07 Michael Snyder <msnyder@redhat.com>
11436
c7cccb76
MS
11437 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11438 instead of bfd_get_arch_size. Don't bail out just because
11439 there's no exec_bfd.
abf22e64 11440
34c0bd93
MS
11441 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11442 * p-valprint.c (pascal_object_print_value): Ditto.
11443 * somread.c (som_symtab_read): Ditto.
11444 * symfile.c (simple_free_overlay_region_table): Ditto.
11445 * valops.c (value_assign): Ditto.
11446
21c1c920
MS
11447 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11448 use tilde_expand and strerror for opening save-tracepoints file.
11449
5bbd998e
MS
11450 * thread-db.c (thread_db_new_objfile): Indendation fix.
11451
94cd915f
MS
11452 * infptrace.c (GDB_MAX_ALLOCA): New define.
11453 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11454 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11455 can be overridden with whatever value is appropriate to the host).
11456 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11457 alloca to allocate potentially large buffer.
11458 * rs6000-nat.c (child_xfer_memory): Ditto.
11459 * symm-nat.c (child_xfer_memory): Ditto.
11460 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11461
494e8a93
JSC
114622002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11463
11464 From Nick Clifton <nickc@redhat.com>
11465 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11466
d0e1d48e
MS
114672002-01-07 Michael Snyder <msnyder@redhat.com>
11468
abf22e64 11469 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11470 Don't use exec_bfd if it's NULL.
11471
290b2c7a
MK
114722002-01-06 Mark Kettenis <kettenis@gnu.org>
11473
abf22e64 11474 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11475
aef21287
AC
114762002-01-06 Andrew Cagney <ac131313@redhat.com>
11477
11478 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11479 * gnu-nat.c: Ditto.
11480
30efa627
AC
114812002-01-06 Andrew Cagney <ac131313@redhat.com>
11482
11483 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11484 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11485 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11486 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11487 z8k-coff have not been multi-arched. Update z8k-coff build
11488 status.
11489
9b4ff276
AC
114902002-01-06 Andrew Cagney <ac131313@redhat.com>
11491
11492 * MAINTAINERS: Mark a29k target as obsolete.
11493 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11494 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11495 comments.
11496 * NEWS: Note that a29k targets are obsolete.
11497 * a29k-tdep.c: Mark as obsolete.
11498 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11499 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11500 a29k-*-vxworks* targets as obsolete.
11501 * remote-adapt.c: Obsolete.
11502 * remote-eb.c: Obsolete.
11503 * remote-mm.c: Obsolete.
11504 * remote-udi.c: Obsolete.
11505 * config/a29k/a29k-udi.mt: Obsolete.
11506 * config/a29k/a29k.mt: Obsolete.
11507 * config/a29k/tm-a29k.h: Obsolete.
11508 * config/a29k/tm-vx29k.h: Obsolete.
11509 * config/a29k/vx29k.mt: Obsolete.
11510
a9011d31
AC
115112002-01-05 Andrew Cagney <ac131313@redhat.com>
11512
11513 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11514 with BFD_ENDIAN_BIG.
11515
9299404e
AC
115162002-01-05 Andrew Cagney <ac131313@redhat.com>
11517
11518 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11519 * configure, config.in: Re-generate.
11520 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11521 * defs.h: Do not include <endian.h>.
11522
7e89e357
JT
115232002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11524
11525 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11526 * config.in: Regenerate.
11527 * configure.in: Update copyright years.
11528 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11529 * configure: Regenerate.
11530 * i386bsd-nat.c: Update copyright years.
11531 (fill_gregset): Use regcache_collect.
11532 (fetch_inferior_registers): Only fetch integer registers
11533 if requested to do so. Add support for XMM registers
11534 using PT_GETXMMREGS.
11535 (store_inferior_registers): Only store integer registers
11536 if requested to do so. Add support for XMM registers
11537 using PT_SETXMMREGS.
11538 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11539 (store_inferior_registers): Remove.
11540 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11541 (fetch_elfcore_registers): New function.
11542 (i386nbsd_elfcore_fns): New.
11543 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11544 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11545 i386bsd-nat.o.
11546 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11547 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11548 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11549 * config/i386/tm-nbsd.h: Update copyright years.
11550 (HAVE_SSE_REGS): Define.
11551 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11552 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11553 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11554 (SIGCONTEXT_PC_OFFSET): Remove.
11555 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11556
a752853e
AC
115572002-01-05 Andrew Cagney <ac131313@redhat.com>
11558
11559 * configure.tgt: Remove powerpc-*-macos* target.
11560 * config/m68k/xm-mpw.h: Delete file.
11561 * config/xm-mpw.h: Delete file.
11562 * ser-mac.c: Delete file.
11563 * mpw-make.sed: Delete file.
11564 * mpw-config.in: Delete file.
11565 * mac-xdep.c: Delete file.
11566 * mac-gdb.r: Delete file.
11567 * mac-defs.h: Delete file.
11568 * mac-nat.c: Delete file.
11569 * config/powerpc/macos.mh: Delete file.
11570 * config/powerpc/macos.mt: Delete file.
11571 * config/powerpc/nm-macos.h: Delete file.
11572 * config/powerpc/tm-macos.h: Delete file.
11573 * source.c (openp, open_source_file): Remove obsolete code.
11574 * top.c (gdb_readline): Ditto.
11575 * utils.c (query): Ditto.
11576 * event-top.c (display_gdb_prompt): Ditto.
11577 * Makefile.in (ser-mac.o): Delete obsolete target.
11578 * NEWS: Update.
11579
d7449b42
AC
115802002-01-04 Andrew Cagney <ac131313@redhat.com>
11581
11582 * defs.h (BIG_ENDIAN): Delete macro definition.
11583 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11584 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11585 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11586 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11587 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11588 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11589 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11590 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11591 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11592 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11593 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11594 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11595 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11596 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11597 * gdbarch.c: Re-generate.
11598
356374e8
DJ
115992002-01-04 Daniel Jacobowitz <drow@mvista.com>
11600
11601 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11602 for core files.
11603
a2b8f8f8
JT
116042002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11605
11606 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11607
12466af9
AC
116082002-01-04 Andrew Cagney <ac131313@redhat.com>
11609
11610 * value.h (value_ptr): Delete typedef.
11611
3549ab40
JT
116122002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11613
11614 * i386nbsd-nat.c: Update copyright years.
11615 Include i386-tdep.h.
11616
fedbd091
EZ
116172002-01-04 Elena Zannoni <ezannoni@redhat.com>
11618
11619 * stabsread.c: Update copyright years.
11620
11621 From Debashis Mahata <debashis.mahata@wipro.com>:
11622 (read_struct_fields): Deal with Sun C compiler erroneous stab
11623 output for structs and unions.
fec8b34f 11624 Fix PR gdb/269.
fedbd091 11625
eb43544b
DJ
116262002-01-04 Daniel Jacobowitz <drow@mvista.com>
11627
11628 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11629 prototype.
11630
1514d34e
DJ
116312002-01-04 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * cp-abi.c: Fix whitespace.
11634 (baseclass_offset): New wrapper function.
11635 * cp-abi.h (baseclass_offset): Add prototype.
11636 (struct cp_abi_ops): Add baseclass_offset pointer.
11637
11638 * valops.c (vb_match): Move to...
11639 * gnu-v2-abi.c (vb_match): here.
11640 * valops.c (baseclass_offset): Move to...
11641 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11642
11643 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11644
11645 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11646 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11647 * hpacc-abi.c (init_hpacc_ops): Likewise.
11648
7f8c9282
DJ
116492002-01-04 Daniel Jacobowitz <drow@mvista.com>
11650
11651 * valops.c (find_overload_match): Accept obj as a
11652 reference parameter. Update it before returning.
11653 * value.h (find_overload_match): Update prototype.
11654 * eval.c (evaluate_subexp_standard): Pass object to
11655 find_overload_match by reference.
11656
f23631e4
AC
116572002-01-03 Andrew Cagney <ac131313@redhat.com>
11658
11659 * valarith.c: Replace value_ptr with struct value pointer. Remove
11660 register attribute from value declarations.
11661 * valops.c: Ditto.
11662 * value.h: Ditto.
11663 * scm-lang.c (scm_lookup_name): Ditto.
11664
79e10fab 116652002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11666
79e10fab
AC
11667 Abstract the functionality of iterating over mapped memory
11668 regions into a general purpose iterator function.
abf22e64 11669 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11670 iterator for memory sections.
11671 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11672 (solib_mappings_callback): New function, callback for above.
11673 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11674 (info_mappings_callback): New function, callback for above.
11675
11676 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11677
c5ad026a
MK
116782002-01-01 Mark Kettenis <kettenis@gnu.org>
11679
d2a7c97a
MK
11680 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11681 * i386-tdep.c: Include "elf-bfd.h".
11682 (process_note_abi_tag_sections): New function.
11683 (i386_gdbarch_init): Add code to recognize various OS/ABI
11684 combinations.
11685
c5ad026a
MK
11686 * maint.c (_initialize_maint_cmds): Add missing \ in
11687 string-literal.
11688
a1a5b71e 11689For older changes see ChangeLog-2001
c906108c
SS
11690\f
11691Local Variables:
11692mode: change-log
11693left-margin: 8
11694fill-column: 74
11695version-control: never
11696End:
This page took 0.870539 seconds and 4 git commands to generate.