* mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d154bee2
AO
12002-10-01 Alexandre Oliva <aoliva@redhat.com>
2
62a49b2c
AO
3 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4 of the section for the N64 ABI, fixed.
5
d154bee2
AO
6 * config/mips/tm-irix6.h: Include solib.h.
7
ed348acc
EZ
82002-10-01 Elena Zannoni <ezannoni@redhat.com>
9
10 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
11 GNU operators.
12
da0f9dcd
AC
132002-10-01 Andrew Cagney <ac131313@redhat.com>
14
15 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
16 and that "mi0" syntax has been removed.
17
bdf64bac
DC
182002-09-30 David Carlton <carlton@math.stanford.edu>
19
20 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
21 * ppc-sysv-tdep.c: #include "gdb_string.h".
22 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
23 pacify GCC.
24
54c2a1e6
AC
252002-10-01 Andrew Cagney <ac131313@redhat.com>
26
27 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
28 "vrsave"'s register number.
29
cedea778
AC
302002-09-30 Andrew Cagney <ac131313@redhat.com>
31
32 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
33 use frame_unwind_signed_register to obtain the PC.
34 (mips_frame_chain): Handle a generic dummy frame.
35 (mips_init_extra_frame_info): When a generic dummy frame, don't
36 re-compute the frame base.
37 (mips_pop_frame): Handle generic dummy frames.
38 (mips_gdbarch_init): When generic dummy frames, set
39 use_generic_dummy_frames, push_dummy_frame to
40 generic_push_dummy_frame, pc_in_call_dummy to
41 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
42 generic_save_dummy_frame_tos.
43
68315eb8
AC
442002-09-30 Andrew Cagney <ac131313@redhat.com>
45
46 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
47 against TOP when TOP was explictly set.
48 (generic_push_dummy_frame): Set TOP to zero.
49
3b8630c3
EZ
502002-09-30 Elena Zannoni <ezannoni@redhat.com>
51
52 * event-loop.c (start_event_loop): Rename variable 'result' to
53 'gdb_result', to avoid conflicts with upcoming intepreters changes.
54
28ee05e9
KS
552002-09-30 Keith Seitz <keiths@redhat.com>
56
57 * gdb-events.sh (selected_thread_changed): New event.
58 * gdb-events.c: Regenerated.
59 * gdb-events.h: Regenerated.
60
6eecb1c8
HPN
612002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
62
63 * MAINTAINERS: Add self to Write After Approval list.
64
92df71f0
FN
652002-09-30 Fernando Nasser <fnasser@redhat.com>
66
3b8630c3
EZ
67 * disasm.c: New file.
68 * disasm.h: New file.
92df71f0
FN
69 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
70 (compare_lines): Ditto.
71 (dump_insns): Ditto.
3b8630c3
EZ
72 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
73 argument.
92df71f0 74 (do_assembly_only): Ditto.
3b8630c3
EZ
75 (do_disassembly): Renamed to gdb_disassembly and moved to
76 disasm.c. Sdded uiout argument.
77 * Makefile.in: Add new files. Reorder SFILES list. Update
78 dependencies. Include libgdb.a later in the insight executable.
92df71f0 79
0c22854d
AC
802002-09-29 Andrew Cagney <ac131313@redhat.com>
81
82 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
83 bfd/elf64-alpha-fbsd.c.
84
e67f2023
AC
852002-09-29 Andrew Cagney <ac131313@redhat.com>
86
87 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
88 i386gnu-tdep.c.
89
89396210
AC
902002-09-29 Andrew Cagney <ac131313@redhat.com>
91
92 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
93 __FUNCTION__.
94 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
95 function name.
96 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
97 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
98 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
99 (S_msg_sig_post_reply): Ditto.
100
7079c36c
CV
1012002-09-28 Corinna Vinschen <vinschen@redhat.com>
102
89396210
AC
103 * sh-tdep.c (sh_use_struct_convention): Use definition according
104 to ABI.
7079c36c
CV
105 (sh_push_arguments): Store in register with correct endianess.
106 (sh_default_store_return_value): Ditto.
107 (sh_gdbarch_init): Set sizeof long double to 8.
108
975ac915
MK
1092002-09-27 Mark Kettenis <kettenis@gnu.org>
110
111 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
112 Fix some whitespace problems.
113
9bbe19fb
DC
1142002-09-27 David Carlton <carlton@math.stanford.edu>
115
116 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
117 (mcore-tdep.o): Ditto.
118 (ns32k-tdep.o): Ditto.
119 (ns32knbsd-tdep.o): Ditto.
120 (sh3-rom.o): Ditto.
121 (vax-tdep.o): Ditto.
122 * cris-tdep.c: #include "gdb_string.h"
123 * mcore-tdep.c: Ditto.
124 * ns32k-tdep.c: Ditto.
125 * ns32knbsd-tdep.c: Ditto.
126 * sh3-rom.c: Ditto.
127 * vax-tdep.c: Ditto.
128
43b2fdc7
DC
1292002-09-27 David Carlton <carlton@math.stanford.edu>
130
131 * config/djgpp/fnchange.lst: Add entries for
132 gdb/testsuite/gdb.c++/m-static files.
133
e8cfbbd9
JW
1342002-09-27 Jim Wilson <wilson@redhat.com>
135
136 * MAINTAINERS: Add myself to the Write After Approval list.
137
43b2fdc7 1382002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
139
140 * mips-tdep.c (find_proc_desc): Initialize startaddr.
141
142
9f3b7f07
AC
1432002-09-26 Andrew Cagney <ac131313@redhat.com>
144
145 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
146 frame.
147
11269d7e
AC
1482002-09-26 Andrew Cagney <ac131313@redhat.com>
149
150 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
151 (rs6000_struct_return_address): Delete variable.
152 (rs6000_store_struct_return): Update.
153 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
154 deprecated_extract_struct_value_address.
155 (rs6000_frame_align): New function.
156 (rs6000_gdbarch_init): Set frame_align.
157
f15ab4a7
AC
1582002-09-26 Andrew Cagney <ac131313@redhat.com>
159
160 From Grace Sainsbury <graces@redhat.com>:
161 * Makefile.in (gdbtk-main.o): New target.
162 (gdb.o): New target.
163 (main_h): Define.
164 (main.o): Update dependencies.
165 (gdb$(EXEEXT)): Add gdb.o.
166 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
167 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
168 (SUBDIR_GDBTK_CLEAN): Set.
169 (install-gdbtk): Install the insight binary.
170 (uninstall-gdbtk): New target.
171 (all-gdbtk, clean-gdbtk): New rule.
172 * top.c (use_windows): Default to zero.
173 * main.c: Include "main.h".
174 (main): Delete.
175 (struct captured_main_args): Delete.
176 (gdb_main): New function.
177 * main.h: New file.
178 * gdb.c: New File.
179
e36180d7
AC
1802002-09-25 Andrew Cagney <cagney@redhat.com>
181
182 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
183 (frame_map_regnum_to_name): New function.
184 (frame_map_name_to_regnum): New function.
185 * frame.h (frame_map_name_to_regnum): Declare.
186 (frame_map_regnum_to_name): Declare.
187 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
188 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
189 * parse.c: Do not include "builtin-regs.h".
190 (target_map_name_to_register): Delete function.
191 (write_dollar_variable): Use frame_map_name_to_regnum.
192 * parser-defs.h (target_map_name_to_register): Delete declaration.
193 * expprint.c: Include "frame.h".
194 (print_subexp): Use frame_map_regnum_to_name.
195 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
196 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
197
8b69000d
AC
1982002-09-25 Andrew Cagney <ac131313@redhat.com>
199
200 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
201 wasn't saved, and the next innermost frame is a dummy, return the
202 dummy frame's link register.
203
046ca86a
JB
2042002-09-24 Jim Blandy <jimb@redhat.com>
205
206 Fix from Paul Breed:
207 * main.c (captured_main): Add a `break' after the case for 'b'.
208
94b66fa7
KS
2092002-09-24 Keith Seitz <keiths@redhat.com>
210
211 * varobj.c (c_type_of_child): Use get_target_type instead
212 of TYPE_TARGET_TYPE.
213
c214a6fd
FN
2142002-09-22 Fernando Nasser <fnasser@redhat.com>
215
53cb0458
FN
216 * source.c (get_current_or_default_source_symtab_and_line): Remove
217 function.
218 (set_default_source_symtab_and_line): New function. Attempts to
219 determine a source file to list lines from if one is not currently
220 defined.
221 (get_current_source_symtab_and_line): Initialize sal.pc and
222 sal.end fields.
223 (set_current_source_symtab_and_line): Mark argument as const.
224 * source.h: Update declarations and comments.
225 * linespec.c (decode_line_1): Replace call to removed routine above.
226 * stack.c (print_frame_info_base): Ditto.
227 * cli/cli-cmds.c (edit_command): Ditto.
228 (list_command): Ditto.
229
2302002-09-22 Fernando Nasser <fnasser@redhat.com>
231
232 * source.c (get_current__or_default_source_symtab_and_line): Initialize
233 sal.pc and sal.end fields.
c214a6fd
FN
234 (get_current_or_default_source_symtab_and_line): Ditto.
235 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
236 so we do not cause a new source symtab to be searched for (reverting an
237 unintentional change from the 2002-09-20 patch).
238 * scm-lang.c (scm_unpac): Ditto.
239
cc3b68a5
AC
2402002-09-21 Andrew Cagney <cagney@redhat.com>
241
242 * complaints.c (symfile_explanations): Remove new-line from
243 ``isolated_message''.
244 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
245 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
246
5835abe7
NC
2472002-09-20 Nick Clifton <nickc@redhat.com>
248
249 * NEWS: Announce that V850EA ISA is no longer supported.
250 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
251
a15ef5f5
DC
2522002-09-20 David Carlton <carlton@math.stanford.edu>
253
06ba1b39
DC
254 * Makefile.in (c-lang.o): Correct dependencies.
255 (utils.o): Gather dependencies.
256 (charset.o): Move.
a15ef5f5
DC
257 * c-lang.c: #include "gdb_string.h"
258
87885426
FN
2592002-09-20 Fernando Nasser <fnasser@redhat.com>
260
261 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
262 * cli/cli-cmds.c (list_command): New function. Implements the new
263 cli edit command.
264 (_init_cli_cmds): Add new command definition.
265 * gdb.1: Document edit command.
266 * doc/gdb.texinfo: Document edit command.
267
2682002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
269
270 * source.c: Make global variables current_source_symtab and
271 current_source_line static.
272 (list_command): Moved to cli/cli-cmds.c.
273 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
274 (get_first_line_listed): New accessor function.
275 (get_lines_to_list): New accessor function.
276 (get_current_source_symtab_and_line): New function. Retrieves the
277 position in the source code that we consider current.
278 (get_current_or_default_source_symtab_and_line): New function.
279 Like the above but attempts to determine a default position if one
280 is not currently defined.
281 (set_current_source_symtab_and_line): New function. Sets the source
282 code position considered current and returns the previously set one.
283 (clear_current_source_symtab_and_line): Reset stored information about
284 a current source line.
285 (_initialize_source): Remove registration for the "list" command and
286 its alias.
287 * source.h: Add declarations for the new functions above.
288 * symtab.h: Remove declarations for the global variables mentioned
289 above.
290 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
291 obtain current source line.
292 * linespec.c (decode_line_1): Ditto.
293 * macroscope.c (default_macro_scope): Ditto.
294 * scm-lang.c (scm_unpac): Ditto.
295 * stack.c (print_frame_info_base): Ditto.
296 * symfile.c (clear_symtab_users): Ditto.
297 * symtab.c (decode_line_spec): Ditto.
298 * cli/cli-cmds.c (list_command): Moved here from source.c.
299 (ambiguous_line_spec): Moved here from source.c.
300 (_init_cli_cmds): Add definition for "list" and its alias.
301 * Makefile.in: Update dependencies.
302
ddd216ea
CV
3032002-09-20 Corinna Vinschen <vinschen@redhat.com>
304
305 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
306 with what gcc thinks is correct.
307
6d305052
CV
3082002-09-20 Corinna Vinschen <vinschen@redhat.com>
309
310 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
311 multiple register push instruction.
312
234b45d4
KB
3132002-09-19 Jim Blandy <jimb@redhat.com>
314
315 Add support for distinct host and target character sets.
316 * charset.c, charset.h: New files.
317 * c-exp.y: #include "charset.h".
318 (yylex): Convert character and string literals to the target
319 character set, before returning them as the semantic value of the
320 token.
321 * c-lang.c: #include "charset.h".
322 (c_emit_char): Use charset-specific methods to recognize
323 characters with backslash escape forms, to decide which characters
324 to print literally and which to print using numeric escape
325 sequences, and to convert target characters to host characters
326 before printing.
327 * utils.c: #include "charset.h".
328 (no_control_char_error): New function.
329 (parse_escape): Use charset-specific methods to recognize
330 backslash escapes, parse `control character' notation, and convert
331 characters from the host character set to the target character set.
332 * configure.in: Set the default host character set.
333 Check where to find iconv, and what its argument types might be.
334 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
335 * Makefile.in (SFILES): List charset.c.
336 (COMMON_OBS): List charset.o.
337 (charset.o): New rule.
338 (charset_h): New header dependency variable.
339 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
340 (LIBICONV): New variable, set by configure.
341 (CLIBS): Include $(LIBICONV) here.
342 * aclocal.m4, config.in, configure: Regenerated.
343
525d6a61
JB
3442002-09-19 Joel Brobecker <brobecker@gnat.com>
345
346 * ada-exp.y: Add missing semicolons to end rules. Fixes a
347 bison 1.35 warning.
348
3ed93867
RE
3492002-09-19 Richard Earnshaw <rearnsha@arm.com>
350
351 * gdb_mbuild.sh: New file.
352
437666f8
AC
3532002-09-19 Andrew Cagney <ac131313@redhat.com>
354
355 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
356
389e51db
AC
3572002-09-18 Andrew Cagney <ac131313@redhat.com>
358
359 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
360 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
361 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
362 valops.c, value.h: Revert previous change.
363
3b4efeaa
MS
3642002-09-18 Michael Snyder <msnyder@redhat.com>
365
366 Preliminary support for Objective-C:
367 * defs.h (language_objc): New enum value.
368 (puts_filtered_tabular): Declaration only, exported from utils.c.
369 (skip_quoted): Delete, declared in completer.h.
370 * c-exp.y: Include completer.h.
371 * p-exp.y: Ditto.
372 * jv-exp.y: Ditto.
373 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
374 New operator enum values.
375 * language.h (CAST_IS_CONVERSION): Test for language_objc.
376 * language.c (binop_result_type): Handle language_objc case.
377 (integral_type, character_type, string_type, boolean_type,
378 structured_type, binop_type_check): Ditto.
379 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
380 (struct objc_specific): Add to general_symbol_info.
381 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
382 (SYMBOL_DEMANGLED_NAME): Handle objc case.
383 * parser-defs.h (struct objc_class_str): New struct type.
384 (start_msglist, end_msglist, add_msglist): Declaration only,
385 exported from objc-lang.c.
386 * value.h (value_of_local, value_nsstring,
387 call_function_by_hand_expecting_type): Exported from valops.c.
388 * valops.c (find_function_addr): Export.
389 (call_function_by_hand_expecting_type): New function.
390 (value_of_local): New function.
391 * symfile.c (init_filename_language_table): Add ".m" extension
392 for Objective-C.
393 * utils.c (puts_filtered_tabular): New function.
394 (fprintf_symbol_filtered): Add objc demangling support (disabled).
395 (set/show demangle): Extend help-string to refer to ObjC.
396 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
397 * stabsread.c (symbol_reference_defined): Objective-C symbols
398 may contain colons: make allowances when scanning stabs strings
399 for colons.
400 (objc_find_colon): New function.
401 * printcmd.c (address_info): If language == objc then print
402 "self" instead of "this".
403 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
404 OP_NSSTRING, and OP_SELF.
405 (prefixify_subexp): Ditto.
406 * source.c (print_source_lines): Mention objc in comment.
407 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
408 method names.
409
b9caf505
AC
4102002-09-18 Andrew Cagney <ac131313@redhat.com>
411
412 * complaints.h: Update copyright.
413 (struct complaints): Declare.
414 (struct complaint): Make `message' constant.
415 (internal_complaint): Declare.
416 (complaint): Declare.
417 (complaint_root): Delete declaration.
418 (symfile_complaints): Delete declaration.
419 (struct complaints): Add opaque declaration.
420 (clear_complaints): Add a complaints parameter.
421 * complaints.c: Update copyright.
422 (enum complaint_series): Define.
423 (complaint_root): Delete.
424 (struct complaints): Define.
425 (complaint_sentinel, symfile_complaint_book): New variables.
426 (symfile_explanations, symfile_complaints): New variables.
427 New variables.
428 (get_complaints): New function.
429 (vcomplaint): New function.
430 (complaint): New function.
431 (internal_complaint): New function.
432 (complain): Call vcomplain with symfile_complaint.
433 (clear_complaints): Rewrite.
434 (_initialize_complaints): Use add_setshow_command.
435 * Makefile.in (complaints.o): Update dependencies.
436 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
437 to call to clear_complaints.
438 (new_symfile_objfile, reread_symbols): Ditto.
439 (oldsyms_complaint): Delete.
440 (empty_symtab_complaint, unknown_option_complaint): Delete.
441 (free_named_symtabs): Use complaint instead of complain.
442
d2e6263c
MS
4432002-09-18 Michael Snyder <msnyder@redhat.com>
444
5fb2031a
AC
445 Contributed by Apple Computer, Inc. Merged with current sources
446 by Adam Fedor <fedor@doc.com> [cagney].
447
d2e6263c
MS
448 * objc-lang.c: First clean-up round: comments, indentation.
449 * objc-lang.h: Ditto.
450 * objc-lang.y: Ditto.
451
dec43320
AC
4522002-09-18 Andrew Cagney <ac131313@redhat.com>
453
454 * maint.c (maintenance_internal_error): Print the parameter as the
455 error message.
456 (maintenance_internal_warning): New function.
457 (_initialize_maint_cmds): Add command `maint internal-warning'.
458
459 * defs.h (internal_warning, internal_vwarning): Declare.
460 * utils.c (struct internal_problem): Define.
461 (internal_vproblem): New function.
462 (internal_warning): New function.
463 (internal_vwarning): New function.
464 (internal_warning_problem, internal_error_problem): New variables.
465 (internal_verror): Just call internal_vproblem.
466
b81654f1
MS
4672002-09-18 Michael Snyder <msnyder@redhat.com>
468
469 * objc-lang.c: New file, support for Objective-C.
470 Preliminary check-in, not yet integrated into gdb.
471 * objc-lang.h: New file.
472 * objc-exp.y: New file.
473
0542c381
AC
4742002-09-18 Andrew Cagney <ac131313@redhat.com>
475
7bda5e4a
AC
476 * infrun.c (signal_stop_update): Convert definition to ISO C.
477 (signal_print_update): Ditto.
478 (signal_pass_update): Ditto.
479 * inflow.c (terminal_save_ours): Ditto.
480
5247b418
AC
481 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
482 comments.
483
fc60962c
AC
484 * config/djgpp/fnchange.lst: Handle name clashes between
485 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
486 bfd/coff-tic80.c.
487
0542c381
AC
488 * i386-linux-tdep.h: Fix tipo.
489
5b924b9b
AF
4902002-09-18 Adam Fedor <fedor@gnu.org>
491
492 * MAINTAINERS: Add myself to the Write After Approval list.
493
5afc051b
JB
4942002-09-18 Jim Blandy <jimb@redhat.com>
495
496 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
497 texthigh and textlow to reader-specific structs caused
498 objfile_relocate to miss them. This is fixable, but the work that
499 the change was supposed to prepare GDB for never got done anyway.
500
eb944380
DC
5012002-09-18 David Carlton <carlton@math.stanford.edu>
502
503 * MAINTAINERS: Alphabetize Write After Approval list.
504
948e66d9
DJ
5052002-09-18 Daniel Jacobowitz <drow@mvista.com>
506
507 Fix PR gdb/709
508 * values.c (value_static_field): Call read_var_value.
509
dc604539
AC
5102002-09-18 Andrew Cagney <ac131313@redhat.com>
511
512 * valops.c (hand_function_call): Align the initial stack pointer
513 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
514 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
515 return value.
516 * mips-tdep.c (mips_frame_align): New function.
517 (mips_gdbarch_init): Set frame_align.
518 * gdbarch.sh (FRAME_ALIGN): New method.
519 * gdbarch.h, gdbarch.c: Re-generate.
520
cb7e422f
ML
5212002-09-18 Michal Ludvig <mludvig@suse.cz>
522
523 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
524 registers.
525
a094c6fb
AC
5262002-09-17 Andrew Cagney <ac131313@redhat.com>
527
528 * NEWS: Mention that MIPS $fp behavior changed.
529 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
530 reference to FP_REGNUM.
531 (mipsnbsd_cannot_store_register): Ditto.
532 * mips-linux-nat.c: Update copyright.
533 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
534 (mips_linux_cannot_store_register): Ditto.
535 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
536 * config/mips/tm-mips.h: Update copyright.
537 (FP_REGNUM): Delete macro.
538 (MIPS_REGISTER_NAMES): Replace "fp" with "".
539 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
540 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
541 (mips_r3041_reg_names, mips_r3051_reg_names)
542 (mips_r3081_reg_names): Replace "fp" with "".
543 Fix PR gdb/480.
544
45cf40d1
TR
5452002-09-17 Theodore A. Roth <troth@verinet.com>
546
547 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
548 generic_read_register_dummy() (PR gdb/703).
549 (avr_push_return_address): #if 0 out unused vars.
550 (avr_gdbarch_init): Enable use of avr_push_return_address().
551
c7e701b5
MS
5522002-09-17 Michael Snyder <msnyder@redhat.com>
553
d76ba2a5 554 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
555 RTE will take care of it.
556
20bcf01c
AC
5572002-09-17 Andrew Cagney <ac131313@redhat.com>
558
559 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
560 invalid, return SP_REGNUM.
561
009a9971 5622002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
563
564 * mips-tdep.c (mips_pop_frame): Read saved values of floating
565 point registers without sign extension.
566
135c175f
AC
5672002-09-17 Andrew Cagney <cagney@redhat.com>
568
569 * blockframe.c (deprecated_read_register_dummy): Rename
570 generic_read_register_dummy.
571 * frame.c (frame_unwind_signed_register): New function.
572 (frame_unwind_unsigned_register): New function.
573 * frame.h (frame_unwind_signed_register): Declare.
574 (frame_unwind_unsigned_register): Declare.
575 (deprecated_read_register_dummy): Rename
576 generic_read_register_dummy.
577
578 * h8300-tdep.c (h8300_frame_chain): Update.
579 (h8300_frame_saved_pc): Update.
580 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
581 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
582 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
583 (s390_frame_chain): Update.
584 * v850-tdep.c (v850_find_callers_reg): Update.
585 (v850_frame_saved_pc): Update.
586 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
587 (m32r_find_callers_reg): Update.
588 (m32r_frame_saved_pc): Update.
589 * sh-tdep.c (sh_find_callers_reg): Update.
590 (sh64_get_saved_pr): Update.
591 (sh_init_extra_frame_info): Update.
592 (sh_init_extra_frame_info): Update.
593 (sh64_init_extra_frame_info): Update.
594 (sh64_init_extra_frame_info): Update.
595 * mcore-tdep.c (mcore_find_callers_reg): Update.
596 (mcore_frame_saved_pc): Update.
597 (mcore_init_extra_frame_info): Update.
598 * i386-tdep.c (i386_frame_saved_pc): Update.
599 * ia64-tdep.c (ia64_frame_saved_pc): Update.
600 (ia64_init_extra_frame_info): Update.
601 (ia64_init_extra_frame_info): Update.
602 * d10v-tdep.c (d10v_frame_saved_pc): Update.
603 * cris-tdep.c (cris_init_extra_frame_info): Update.
604 * avr-tdep.c (avr_frame_chain): Update.
605 (avr_init_extra_frame_info): Update.
606 (avr_frame_saved_pc): Update.
607 * arm-tdep.c (arm_find_callers_reg): Update.
608 (arm_init_extra_frame_info): Update.
609 (arm_frame_saved_pc): Update.
610
a741e514
TT
6112002-09-17 Tom Tromey <tromey@redhat.com>
612
613 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
614 is "'".
615
d1a8e808
CV
6162002-09-17 Corinna Vinschen <vinschen@redhat.com>
617
618 * MAINTAINERS: Remove "non multi-arched" text from h8300.
619 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
620 NEXT_PROLOGUE_INSN.
621 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
622 NEXT_PROLOGUE_INSN.
623
d9025a18
JB
6242002-09-16 Joel Brobecker <brobecker@gnat.com>
625
626 * osfsolib.c: Remove file, replaced by solib-osf.c.
627 * Makefile.in: Remove compilation rules for osfsolib.c.
628
1b2ef1b6
DC
6292002-09-16 David Carlton <carlton@math.stanford.edu>
630
631 * cp-valprint.c (cp_print_class_method): Correct args to
632 check_stub_method_group.
633
928e48af
CV
6342002-09-16 Corinna Vinschen <vinschen@redhat.com>
635
636 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
637 `set architecture'. Unify naming convention of functions.
638 (h8300_skip_prologue): Improve prologue analysis.
639 (h8300_push_arguments): Rewritten to more closely match GCC's
640 bizarre argument-passing behavior, along with the comment describing
641 said behavior.
642 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
643 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
644 sim, remote-e7000.c, remote-hms.c and remote.c
645
5e3397bb
MK
6462002-09-15 Mark Kettenis <kettenis@gnu.org>
647
648 * i386-tdep.c (gdb_print_insn_i386): Removed.
649 (i386_print_insn): New function.
650 (i386_gdbarch_init): Set print_insn to i386_print_insns.
651 (_initialize_i386_tdep): Don't initialize tm_print_insn and
652 tm_print_insn_info.
653
f710f4fc
MK
6542002-09-14 Mark Kettenis <kettenis@gnu.org>
655
656 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
657 zero.
658
db54fef4
CV
6592002-09-14 Corinna Vinschen <vinschen@redhat.com>
660
661 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
662 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
663 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
664
2becadee
CF
6652002-09-13 Christopher Faylor <cgf@redhat.com>
666
667 * win32-nat.c (child_create_inferior): Honor 'tty' command.
668
de17c821
DJ
6692002-09-13 Daniel Jacobowitz <drow@mvista.com>
670
671 * gdbtypes.c (check_stub_method): Make static.
672 (check_stub_method_group): New function.
673 * gdbtypes.h: Update prototypes.
674 * cp-support.c: New file.
675 * cp-support.h: New file.
676
677 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
678 (update_method_name_from_physname): New function.
679 (read_member_functions): Correct method names for operators
680 and v3 constructors/destructors. Separate v2 constructors and
681 destructors.
682 * Makefile.in (stabsread.o): Update dependencies.
683 (SFILES): Add cp-support.c.
684 (COMMON_OBS): Add cp-support.o.
685 (cp_support_h, cp-support.o): Add.
686
687 * cp-valprint.c (cp_print_class_method): Call
688 check_stub_method_group instead of check_stub_method. Remove
689 extraneous QUITs.
690 * p-valprint.c (pascal_object_print_class_method): Likewise.
691 * valops.c (search_struct_method): Likewise.
692 (find_method_list, value_struct_elt_for_reference): Likewise.
693
e76cff22
AC
6942002-09-13 Andrew Cagney <cagney@redhat.com>
695
696 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
697 * gdbarch.h, gdbarch.c: Regenerate.
698
905abb3f
AC
6992002-09-13 Andrew Cagney <ac131313@redhat.com>
700
701 * frame.c (find_saved_register): Delete function.
702 * frame.h (find_saved_register): Delete declaration.
703 Fix PR gdb/631.
704
64159455
AC
705Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
706
707 * mips-tdep.c (read_next_frame_reg): Re-hack using
708 frame_register_unwind.
709
795e1e11
AC
710Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
711
712 * mips-tdep.c (mips_get_saved_register): Re-hack using
713 frame_register_unwind.
714
5720643c
JB
7152002-09-12 Joel Brobecker <brobecker@gnat.com>
716
717 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
718 vector. Will be useful for Interix.
719 * gdbarch.h, gdbarch.c: Regenerate.
720
721 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
722 name of the malloc function by NAME_OF_MALLOC.
723
3bada2a2
JB
7242002-09-12 Joel Brobecker <brobecker@gnat.com>
725
726 * value.h (find_function_in_inferior): Add const keyword to
727 one of the parameters. Allows us to invoke this function with
728 a const char *.
729 * valops.c (find_function_in_inferior): Likewise.
730
3db26b01
JB
7312002-09-12 Joel Brobecker <brobecker@gnat.com>
732
733 * exec.c (xfer_memory): Fix compilation warning with old versions
734 of GCC.
735 * tracepoint.c (trace_find_tracepoint_command): Likewise.
736
17c5ed2c
DC
7372002-09-12 David Carlton <carlton@math.stanford.edu>
738
739 * symtab.h: Run through gdb_indent.h.
740 Add 2002 to Copyright year list.
741
ecd1107e
AM
7422002-09-12 Alan Modra <amodra@bigpond.net.au>
743
744 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
745 mach constants.
746 * MAINTAINERS: Add myself to write after approval list.
747
e64f66d1
JB
7482002-09-11 J. Brobecker <brobecker@gnat.com>
749
750 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
751
f9395794
JB
7522002-09-11 J. Brobecker <brobecker@gnat.com>
753
754 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
755 Interix.
756
1a303dec
MS
7572002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
758
759 * procfs.c (do_detach): Clear current signal, not just fault.
760 Corrects problem with breakpoint trap signal leaking to detached
761 process on Tru64.
762
c0219d42
MS
7632002-09-10 Michael Snyder <msnyder@redhat.com>
764
765 * buildsym.c (finish_block): Protect against null pointer.
766
9d84ac84
AC
7672002-09-10 Andrew Cagney <cagney@redhat.com>
768
769 * infcmd.c (default_print_registers_info): Send all output to
770 ``file'' instead of ``gdb_stdout''.
771
77d8f2b4
MS
7722002-09-10 Michael Snyder <msnyder@redhat.com>
773
774 * mips-tdep.c (mips_extract_struct_value_address): Make val a
775 LONGEST, and use signed register read (addresses are sign-
776 extended for mips).
777
99656a61
SC
7782002-09-10 Stephane Carrez <stcarrez@nerim.fr>
779
780 * event-loop.c (gdb_do_one_event): Make public.
781 * event-loop.h (gdb_do_one_event): Declare.
782
da12f4d8
JL
7832002-09-10 Jeff Law <law@redhat.com>
784
785 * infttrace.c (child_resume): Simplify and rework to avoid
786 TT_PROC_CONTINUE.
787
d0aee0c4
FF
7882002-09-09 Fred Fish <fnf@intrinsity.com>
789
790 * printcmd.c (print_scalar_formatted): "len" is the number of
791 target bytes, NOT the number of target bits.
792
7cb3ec5e
EZ
7932002-09-09 Elena Zannoni <ezannoni@redhat.com>
794
795 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
796 * top.c (init_main): Set rl_terminal_name.
797
4dc81987
AS
7982002-09-08 Aidan Skinner <aidan@velvet.net>
799
800 * ada-lang.c (ada_array_bound, ada_type_match,
801 _initialize_ada_language): Fix K&R definitions.
802 * ada-tasks.c (get_current_task): Fix K&R definitions.
803 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
804
842330b4
CF
8052002-09-07 Christopher Faylor <cgf@redhat.com>
806
807 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
808 Add XP.
809
43156d82
MK
8102002-09-06 Mark Kettenis <kettenis@gnu.org>
811
66da5fd8
MK
812 * i386-tdep.c (i386_register_virtual_type,
813 i386_register_convertible, i386_register_convert_to_virtual,
814 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
815 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
816 (i386_gdbarch_init): Fix comment. Add comments on calls that set
817 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
818 Don't set push_arguments twice.
819
4b218c18
MK
820 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
821 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
822 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
823 sigtramp_end to NULL.
824 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
825 defines.
826 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
827
4cc314d5
MK
828 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
829 whitespace.
830
43156d82
MK
831 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
832 * gdbarch.h, gdbarch.c: Re-generate.
833 * blockframe.c (find_pc_sect_partial_function): Convert to use
834 SIGTRAMP_START_P predicate.
835
6672060b
MS
8362002-09-05 Michael Snyder <msnyder@redhat.com>
837
a90c3637
MS
838 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
839 generic_dummy_frame method and old method. Also distinguish
840 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 841 (arm_extract_return_value): Use new regcache method.
a90c3637 842
6672060b
MS
843 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
844 adjustment that doesn't conform to the ABI.
845 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
846 saved regcache, not from current regcache.
847
299ffc64
AC
8482002-09-05 Andrew Cagney <ac131313@redhat.com>
849
850 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
851 * README: Update.
852
a3a2ee65
JT
8532002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
854
855 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
856 if arm_apcs_32 is false.
857
2bc7eea9
AC
8582002-09-04 Andrew Cagney <ac131313@redhat.com>
859
860 GDB 5.3 branch created.
861
8a55a7c5
TR
8622002-09-03 Theodore A. Roth <troth@verinet.com>
863
864 * gdb/avr-tdep.c (avr_gdbarch_init): Use
865 generic_unwind_get_saved_register.
866
e26fb1d7
DC
8672002-09-03 David Carlton <carlton@math.stanford.edu>
868
869 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
870 argument (PR gdb/653). Update call to smash_to_method_type.
871 (read_structure_scope): Update call to dwarf2_add_member_fn.
872
30d52491
ML
8732002-09-03 Michal Ludvig <mludvig@suse.cz>
874
875 * x86-64-linux-tdep.c: Include gdb_string.h
876 * x86-64-linux-nat.c: Ditto.
877
06891d83
JT
8782002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
879
880 * ada-exp.y (yyname, yyrule): Remap global variables that appear
881 when YYDEBUG is set to 1.
882 * c-exp.y: Likewise.
883 * f-exp.y: Likewise.
884 * jv-exp.y: Likewise.
885 * m2-exp.y: Likewise.
886 * p-exp.y: Likewise.
887
7d400e77
JT
8882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
889
890 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
891 dependency list.
892 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
893 solib_svr4_fetch_link_map_offsets to
894 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
895 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
896 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
897 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
898 solib-svr4.o, and solib-legacy.o.
899 * config/i386/tm-nbsd.h: Include solib.h.
900
704a27c4
JT
9012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
902
903 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
904 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
905 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
906 comment noting that this needs its own target configuration.
907 * config/i386/nbsd.mt: New file.
908 * config/i386/nbsdaout.mt: Remove.
909 * config/i386/nbsdelf.mt: Ditto.
910 * config/i386/tm-nbsdaout.h: Ditto.
911
d66198e1
JT
9122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
913
914 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
915 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
916 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
917 tdep->sigtramp_end.
918 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
919 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
920 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
921
3cac699e
JT
9222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
923
924 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
925 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
926 * i386-tdep.h (i386bsd_init_abi): New prototype.
927 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
928 function declaration.
929 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
930 for NetBSD-a.out or NetBSD-ELF.
931 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
932 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
933 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
934 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
935 and nbsd-tdep.h.
936 (i386nbsd_pc_in_sigtramp): New function.
937 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
938 i386nbsd_pc_in_sigtramp.
939 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
940 and i386nbsdelf_init_abi OS ABI handlers.
941 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
942 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
943
7010ca0a
MK
9442002-09-02 Mark Kettenis <kettenis@gnu.org>
945
946 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
947 registers if the target really has them.
948
6dd93b72
JT
9492002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
950
951 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
952 than nbsd-tdep.h.
953
2ca8ae21
JT
9542002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
955
956 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
957 list.
958 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
959 (alphanbsd_skip_sigtramp_frame): New functions.
960 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
961 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
962 to alphanbsd_sigcontext_addr.
963
3d9b49b0
JT
9642002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
965
966 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
967 list.
968 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
969 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
970 nbsd_pc_in_sigtramp.
971 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
972 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
973 * nbsd-tdep.c: Include gdb_string.h.
974 (nbsd_pc_in_sigtramp): New function.
975 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
976 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
977 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
978 ppcnbsd_pc_in_sigtramp.
979 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
980 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
981 shnbsd_pc_in_sigtramp.
982 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
983 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
984 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
985
c860120c
PM
9862002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
987
988 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
989 watchpoints to NULL.
990 (insert_breakpoints): set val field of watchpoints if NULL.
991
992
c7612d53
JB
9932002-08-29 Jim Blandy <jimb@redhat.com>
994
995 * symtab.c (lookup_symbol_aux): In the cases where we find a
996 minimal symbol of an appropriate name and use its address to
997 select a symtab to read and search, use `name' (as passed to us)
998 as the demangled name when searching the symtab's global and
999 static blocks, not the minsym's name.
1000
66609862
KS
10012002-08-29 Keith Seitz <keiths@redhat.com>
1002
1003 * stack.c (print_frame_info_base): Always set current_source_symtab
1004 and current_source_line.
1005
151fefe2
JB
10062002-08-29 Donn Terry <donnte@microsoft.com>
1007
1008 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1009
bfb3754e
KS
10102002-08-28 Keith Seitz <keiths@redhat.com>
1011
1012 * stack.c (select_frame): Add FIXME concerning selected-frame
1013 events.
1014 (select_frame_command): Send selected-frame-level-changed
1015 event notification, but only if the level actually changed.
1016 (up_silently_base): Add selected-frame-level-changed event
1017 notification.
1018 (down_silently_base): Likewise.
1019
e822a2a0
AC
10202002-08-28 Andrew Cagney <ac131313@redhat.com>
1021
1022 * Makefile.in: Update dependencies for all gdb/*.c files.
1023
309367d4
TT
10242002-08-27 Tom Tromey <tromey@redhat.com>
1025
1026 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1027 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1028 Update dependencies.
1029 * i387-tdep.c: Include gdb_string.h.
1030 * osabi.c: Likewise.
1031 * i386-linux-nat.c: Likewise.
1032 * lin-lwp.c: Likewise.
1033 * ax-gdb.c: Likewise.
1034 * signals/signals.c: Likewise.
1035 * jv-valprint.c: Likewise.
1036 * p-lang.c: Likewise.
1037 * c-valprint.c: Likewise.
1038 * cp-abi.c: Likewise.
1039
e1507482
EZ
10402002-08-27 Elena Zannoni <ezannoni@redhat.com>
1041
1042 * cli/cli-script.h (copy_command_lines): Export.
1043 * breakpoint.c: Include cli/cli-script.h.
1044 * Makefile.in (breakpoint.o): Update dependencies.
1045
c6510018
MS
10462002-08-26 Michael Snyder <msnyder@redhat.com>
1047
1048 * breakpoint.c (insert_breakpoints): Protect all references
1049 to 'process_warning'. Shorten long lines.
1050
c2b8ed2c
MS
10512002-08-26 Joel Brobecker <brobecker@gnat.com>
1052
1053 * cli/cli-script.c (copy_command_lines): New function.
1054 * defs.h (copy_command_lines): Export.
1055 * testsuite/gdb.base/commands.exp: New tests for commands
1056 attached to a temporary breakpoint, and for commands that
1057 delete the breakpoint they are attached to.
1058
10592002-08-26 Michael Snyder <msnyder@redhat.com>
1060
1061 * breakpoint.c (bpstat_stop_status): Instead of copying the
1062 pointer to the breakpoint commands struct, make a new copy
1063 of the struct and point to that.
1064 (bpstat_clear): Free the commands struct.
1065 (bpstat_clear_actions): Free the commands struct.
1066 (bpstat_do_actions): Free the command actions. Also execute
1067 the local cleanups, instead of deleting them.
1068 (delete_breakpoint): Leave the commands field of the bpstat
1069 chain alone -- it will be freed later.
1070
64b84175
KB
10712002-08-26 Kevin Buettner <kevinb@redhat.com>
1072
1073 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1074 deleted in 2002-08-20 commit. This function is still used by
1075 ppc-linux-nat.c.
1076
55970da6
KS
10772002-08-26 Keith Seitz <keiths@redhat.com>
1078
1079 * gdb-events.sh: Add selected-frame-level-changed event.
1080 * gdb-events.c: Regenerated.
1081 * gdb-events.h: Regenerated.
1082
a790ad35
SC
10832002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1084
1085 Fix PR gdb/393:
1086 * inflow.c (terminal_save_ours): New function to save terminal
1087 settings.
1088 * inferior.h (terminal_save_ours): Declare.
1089 * target.c (debug_to_terminal_save_ours): New function.
1090 (cleanup_target): Defaults to_terminal_save_ours.
1091 (update_current_target): Inherit to_terminal_save_ours.
1092 (setup_target_debug): Set to_terminal_save_ours.
1093 * target.h (target_terminal_save_ours): New to save terminal settings.
1094 (target_ops): New member to_terminal_save_ours.
1095 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1096 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1097 * inftarg.c (init_child_ops): Likewise.
1098 * m3-nat.c (init_m3_ops): Likewise.
1099 * procfs.c (init_procfs_ops): Likewise.
1100 * wince.c (init_child_ops): Likewise.
1101 * win32-nat.c (init_child_ops): Likewise.
1102 * sol-thread.c (init_sol_thread_ops): Likewise.
1103
c00dcbe9
MK
11042002-08-26 Mark Kettenis <kettenis@gnu.org>
1105
3d7f4f49
MK
1106 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1107 use regcache_* functions.
1108 (i386_gdbarch_init): Set store_return_value instead of
1109 deprecated_store_return_value.
1110
c00dcbe9
MK
1111 * regcache.c (regcache_raw_write_signed,
1112 regcache_raw_write_unsigned): New functions.
1113 * regcache.h (regcache_raw_write_signed,
1114 regcache_raw_write_unsigned): New prototypes.
1115
0e0d15ca
AC
11162002-08-25 Andrew Cagney <ac131313@redhat.com>
1117
1118 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1119 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1120 source file dependencies. Cleanup corresponding generator rules.
1121
d3b22ed5
AC
11222002-08-25 Andrew Cagney <ac131313@redhat.com>
1123
1124 * regcache.h (register_offset_hack): Declare.
1125 (regcache_cooked_read_using_offset_hack): Declare.
1126 (regcache_cooked_write_using_offset_hack): Declare.
1127
1128 * regcache.c (register_offset_hack): New function.
1129 (regcache_cooked_read_using_offset_hack): New function.
1130 (regcache_cooked_write_using_offset_hack): New function.
1131 (regcache_dump): Check that the registers, according to their
1132 offset, are packed hard against each other.
1133 (cooked_xfer_using_offset_hack): New function.
1134
bb425013
AC
11352002-08-25 Andrew Cagney <ac131313@redhat.com>
1136
1137 * regcache.c (struct regcache_descr): Add field register_type.
1138 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1139 in as a parameter
1140 (init_regcache_descr): Initialize register_type. Pass the descr
1141 to init_legacy_regcache_descr. Use register_type instead of
1142 REGISTER_VIRTUAL_TYPE.
1143 (register_type): New function.
1144 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1145 * regcache.h (register_type): Declare.
1146
d0403e00
AC
11472002-08-25 Andrew Cagney <ac131313@redhat.com>
1148
1149 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1150 instead of deprecated_store_return_value. Fix fallout from
1151 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1152
0ed04cce
AC
11532002-08-25 Andrew Cagney <ac131313@redhat.com>
1154
1155 * regcache.c (max_register_size): New function.
1156 (init_legacy_regcache_descr): Ensure that max_register_size is
1157 large enough for REGISTER_VIRTUAL_SIZE.
1158 * regcache.h (max_register_size): Declare.
1159
46d79c04
AC
11602002-08-24 Andrew Cagney <ac131313@redhat.com>
1161
1162 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1163 store_return_value.
1164 (e500_extract_return_value): Change type of valbuf pointer to
1165 void.
1166
853c7bd0
MK
11672002-08-24 Mark Kettenis <kettenis@gnu.org>
1168
cd87e769
MK
1169 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1170 workaround.
1171
853c7bd0
MK
1172 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1173 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1174 long long) to prevent compiler warning on 64-bit systems.
1175
ebba8386
AC
11762002-08-23 Andrew Cagney <cagney@redhat.com>
1177
1178 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1179 (DEPRECATED_STORE_RETURN_VALUE): New method.
1180 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1181 * gdbarch.h, gdbarch.c: Re-generate.
1182
1183 * values.c (set_return_value): Pass current_regcache to
1184 STORE_RETURN_VALUE.
1185 * arch-utils.h (legacy_store_return_value): Declare.
1186 * arch-utils.c (legacy_store_return_value): New function.
1187 (legacy_extract_return_value): Update parameters.
1188
1189 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1190 STORE_RETURN_VALUE.
1191 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1192 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1193 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1194 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1195 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1196 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1197 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1198 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1199 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1200 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1201
1202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1203 * i386-tdep.c (i386_extract_return_value): Update.
1204 * arch-utils.c (legacy_extract_return_value): Update.
1205 * frv-tdep.c (frv_gdbarch_init): Update.
1206 * cris-tdep.c (cris_gdbarch_init): Update.
1207 * d10v-tdep.c (d10v_gdbarch_init): Update.
1208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1209 * m68k-tdep.c (m68k_gdbarch_init): Update.
1210 * mcore-tdep.c (mcore_gdbarch_init): Update.
1211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1212 * s390-tdep.c (s390_gdbarch_init): Update.
1213 * sparc-tdep.c (sparc_gdbarch_init): Update.
1214 * sh-tdep.c (sh_gdbarch_init): Update.
1215 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1216 * v850-tdep.c (v850_gdbarch_init): Update.
1217 * avr-tdep.c (avr_gdbarch_init): Update.
1218 * ia64-tdep.c (ia64_gdbarch_init): Update.
1219 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1220 * vax-tdep.c (vax_gdbarch_init): Update.
1221 * alpha-tdep.c (alpha_gdbarch_init): Update.
1222 * arm-tdep.c (arm_gdbarch_init): Update.
1223 * mips-tdep.c (mips_gdbarch_init): Update.
1224 * i386-tdep.c (i386_gdbarch_init): Update.
1225
5bd8c6d0
AC
12262002-08-23 Andrew Cagney <ac131313@redhat.com>
1227
1228 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1229 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1230
e73e1724
MK
12312002-08-24 Mark Kettenis <kettenis@gnu.org>
1232
1233 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1234 problems.
1235
3e6564e1
JB
12362002-08-23 Joel Brobecker <brobecker@gnat.com>
1237
1238 * infrun.c (handle_inferior_event): Move a comment outside of a
1239 function call, in order to avoid indent reformatting this part
1240 of the code in an unreadable way.
1241
81d0cc19
GS
12422002-08-23 Grace Sainsbury <graces@redhat.com>
1243
1244 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1245 when breakpoints fail. Move general breakpoint error messages to
1246 insert_breakpoints.
1247 * breakpoint.c (insert_breakpoints): Change warnings when
1248 breakpoints are nto inserted to specify the type. Remove call to
1249 memory_error when hardware breakpoints can't be inserted. Remove
1250 multiple calls to warning so all messages are sent to the user at
1251 once.
1252 (delete_breakpoints): Make insert error messsages more explicit.
1253
17574093
DJ
12542002-08-23 Daniel Jacobowitz <drow@mvista.com>
1255
1256 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1257 gdbserver/ChangeLog.
1258
8acc2935
MK
12592002-08-23 Mark Kettenis <kettenis@gnu.org>
1260
dfe01d39
MK
1261 * i386-tdep.c: Include "objfiles.h".
1262 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1263 skip_trampoline_code.
1264 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1265 (CPLUS_MARKER): Define to '.'.
1266
8acc2935
MK
1267 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1268 member.
1269 (linux_corefile_thread_callback): Increase args->num_notes.
1270 (linux_make_note_section): Initialize thread_args.num_notes, and
1271 use it to determine whether notes for any threads were created.
1272
151fefe2 12732002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1274
1275 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1276 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1277 and PCUNKILL.
1278 (write_with_trace): Conditionalize out the switch branch handling
1279 PCSHOLD if the corresponding macro is not defined. Likewise for
1280 PRSABORT and PRSTOP.
1281 This change will be needed by the Interix port.
1282
e1507482
EZ
12832002-08-22 Elena Zannoni <ezannoni@redhat.com>
1284
1285 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1286 write_register wherever possible instead of manipulating the
1287 register bytes directly.
1288 Assign VALUE_CONTENTS to a variable and use that.
1289 The GPR numbers are now dependent on the architecture.
1290
96ff0de4
EZ
12912002-08-22 Elena Zannoni <ezannoni@redhat.com>
1292
1293 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1294 ev_offset fields.
1295 (skip_prologue): Add support for BookE/e500 instructions.
1296 (e500_extract_return_value): New function.
1297 (frame_get_saved_regs): Add support for saving ev registers and
1298 pseudo gpr's.
1299 (e500_store_return_value): New function.
1300 (rs6000_gdbarch_init): Move up default intializations of
1301 deprecated_extract_return_value and store_return_value. Overwrite
1302 init of store_return_value with e500 specific version.
1303 Set extract_return_value for e500.
1304
fbefca5b
EZ
13052002-08-22 Elena Zannoni <ezannoni@redhat.com>
1306
1307 * blockframe.c (generic_call_dummy_register_unwind): Use
1308 regcache_cooked_read to catch cases in which the variable is
1309 stored in a pseudo register.
1310
4d210288
AC
13112002-08-22 Andrew Cagney <cagney@redhat.com>
1312
1313 * NEWS: Mention that the i960 has been made obsolete.
1314 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1315 i960-tdep.c
1316 (remote-nrom.o): Obsolete target.
1317 (remote-nindy.o, i960-tdep.o): Ditto.
1318 * remote-nrom.c: Make file obsolete.
1319 * remote-nindy.c, remote-vx960.c: Ditto.
1320 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1321 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1322 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1323 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1324 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1325 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1326 i960-*-vxworks* obsolete.
1327 * MAINTAINERS: Note that the i960 is obsolete.
1328
6c0c456d
CV
13292002-08-21 Corinna Vinschen <vinschen@redhat.com
1330
1331 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1332 detach to allow reinitialization.
1333
9f9d12b3
AC
13342002-08-22 Andrew Cagney <ac131313@redhat.com>
1335
1336 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1337 attempt).
1338
ebeb39fe
JB
13392002-08-22 Jim Blandy <jimb@redhat.com>
1340
1341 * coffread.c (coff_symfile_read): Don't try to read the line
1342 number table from disk if the image file doesn't have a symbol
1343 table; we'll never actually look at the info anyway, and Windows
1344 ships DLL's with bogus file offsets for the line number data.
1345
5bf1c677
EZ
13462002-08-21 Elena Zannoni <ezannoni@redhat.com>
1347
1348 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1349 an e500 executable.
1350
71b8ef93
MS
13512002-08-21 Michael Snyder <msnyder@redhat.com>
1352
1353 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1354 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1355 (DEFAULT_MIPS_TYPE): Delete unused macro.
1356 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1357 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1358
d174216d
JB
13592002-08-21 Jim Blandy <jimb@redhat.com>
1360
1361 * valops.c (value_cast): Simplify and correct logic for doing a
1362 static cast from a pointer to a base class to a pointer to a
1363 derived class.
1364
0ab7a791
AC
13652002-08-21 Andrew Cagney <ac131313@redhat.com>
1366
1367 * infcmd.c (default_print_registers_info): Replace
1368 do_registers_info.
1369 (registers_info): Use gdbarch_print_registers_info instead of
1370 DO_REGISTERS_INFO.
1371 * inferior.h (default_print_registers_info): Replace
1372 do_registers_info.
1373 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1374 (DO_REGISTERS_INFO): Change to a predicate function.
1375 * gdbarch.h, gdbarch.c: Regenerate.
1376
e23792cc
KS
13772002-08-21 Keith Seitz <keiths@redhat.com>
1378
1379 * gdb-events.sh: Add target-changed event.
1380 * gdb-events.c: Regenerated.
1381 * gdb-events.c: Regenerated.
1382 * valops.c (value_assign): Add target-changed event notification
1383 to inlval_register, lval_memory, and lval_reg_frame_relative.
1384
9fb14e79
JB
13852002-08-21 Joel Brobecker <brobecker@gnat.com>
1386
1387 * NEWS: Add an entry regarding the improvement of the next/step
1388 operation on Alpha Tru64 multi-processor machines.
1389
6d39a69f
AC
13902002-08-21 Andrew Cagney <ac131313@redhat.com>
1391
72acd513
AC
1392 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1393 directores.
342af04b 1394 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1395 * Makefile.in (install-gdbtk): Move to install section.
1396 (rdi-share/libangsd.a): Move to end of file.
1397
fa5f27c7
AC
13982002-08-19 Andrew Cagney <ac131313@redhat.com>
1399
1400 * frame.c (frame_register_unwind): When a register, set addrp to
1401 the register's byte.
1402
5a89d8aa
MS
14032002-08-20 Michael Snyder <msnyder@redhat.com>
1404
1405 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1406 used locally, so move them from the target machine header to here.
1407 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1408 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1409 Make static.
1410 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1411
822e978b
AC
14122002-08-20 Andrew Cagney <cagney@redhat.com>
1413
1414 * NEWS: Mention that the Apollo line was made obsolete.
1415 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1416 m68*-hp-hpux* obsolete.
1417 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1418 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1419 * buildsym.c (make_blockvector): Make static.
1420 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1421 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1422 (ALLDEPFILES): Remove dstread.c.
1423 (dstread.o): Obsolete make rule.
1424 * dstread.c: Makefile obsolete.
1425 * dst.h: Ditto.
1426 * config/m68k/hp300hpux.mt: Ditto.
1427 * config/m68k/hp300hpux.mh: Ditto.
1428 * config/m68k/hp300bsd.mt: Ditto.
1429 * config/m68k/hp300bsd.mh: Ditto.
1430 * config/m68k/apollo68b.mt: Ditto.
1431 * config/m68k/apollo68v.mh: Ditto.
1432 * config/m68k/apollo68b.mh: Ditto.
1433
e41b17f0
MS
14342002-08-20 Michael Snyder <msnyder@redhat.com>
1435
1436 * mips-tdep.c (mips_in_return_stub): Make static.
1437 (mips_gdbarch_init): Set in_solib_return_trampoline.
1438 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1439
d50355b6
MS
14402002-08-20 Michael Snyder <msnyder@redhat.com>
1441
1442 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1443 * gdbarch.c, gdbarch.h: Regenerate.
1444 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1445 Add.
1446 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1447
757a7cc6
MS
14482002-08-20 Michael Snyder <msnyder@redhat.com>
1449
1450 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1451 (mips_gdbarch_init): Set skip_trampoline_code,
1452 in_solib_call_trampoline.
1453 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1454 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1455
c8001721
EZ
14562002-08-20 Elena Zannoni <ezannoni@redhat.com>
1457
1458 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1459
1460 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1461 vector type for ev registers.
1462 (e500_pseudo_register_read): New function.
1463 (e500_pseudo_register_write): New function.
1464 (e500_dwarf2_reg_to_regnum): New function.
1465 (PPC_UISA_NOFP_SPRS): New macro.
1466 (PPC_EV_REGS): New macro.
1467 (PPC_GPRS_PSEUDO_REGS): New macro.
1468 (registers_e500): New register set for e500.
1469 (variants): Add e500 variant.
1470 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1471 before setting architectural dependent variations. Initialize ev
1472 registers numbers. Add case for e500 architecture. Set the
1473 number of pseudo registers.
1474
64366f1c
EZ
14752002-08-20 Elena Zannoni <ezannoni@redhat.com>
1476
1477 * rs6000-tdep.c: Clean up comments.
1478
7e78f0ca
AC
14792002-08-20 Andrew Cagney <cagney@redhat.com>
1480
1481 * h8300-tdep.c: Re-indent file.
1482
697f7479
JB
14832002-08-20 Jim Blandy <jimb@redhat.com>
1484
1485 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1486 default for this.
697f7479 1487
e86ae29f
KS
14882002-08-20 Keith Seitz <keiths@redhat.com>
1489
1490 * breakpoints.c (watch_command_1): Use internal breakpoint
1491 when setting a watchpoint_scope breakpoint.
1492
216b504f
EZ
14932002-08-20 Elena Zannoni <ezannoni@redhat.com>
1494
1495 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1496 (build_builtin_type_vec64i): Ditto.
1497 (build_builtin_type_vec128): Ditto.
1498 (build_builtin_type_vec128i): Ditto.
1499
f7ab6ec6
MS
15002002-08-19 Michael Snyder <msnyder@redhat.com>
1501
1502 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1503 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1504 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1505 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1506 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1507 CALL_DUMMY_ADDRESS): Delete.
1508 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1509 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1510 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1511 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1512 push_return_address.
1513 (mips_register_raw_size, mips_eabi_use_struct_convention,
1514 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1515 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1516 mips_init_extra_frame_info, mips_eabi_push_arguments,
1517 mips_n32n64_push_arguments, mips_push_return_address,
1518 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1519 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1520
b5d1566e
MS
15212002-08-19 Michael Snyder <msnyder@redhat.com>
1522
1523 * mips-tdep.c (mips_frame_num_args): New function.
1524 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1525 frame_saved_pc, frame_args_address, frame_locals_address,
1526 frame_num_args, and frame_args_skip.
1527 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1528 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1529 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1530 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1531
2f1488ce
MS
15322002-08-20 Michael Snyder <msnyder@redhat.com>
1533
1534 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1535 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1536 * mips-tdep.c (mips_store_struct_return): New function.
1537 (mips_extract_struct_value_address): New function.
1538 (mips_gdbarch_init): Set store_struct_return and
1539 extract_struct_value_address.
1540
41ff2da1
DC
15412002-08-20 David Carlton <carlton@math.stanford.edu>
1542
1543 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1544 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1545 (read_file_scope): Check that line_header is nonzero before
1546 decoding macro information.
1547
e5451d58
MK
15482002-08-20 Mark Kettenis <kettenis@gnu.org>
1549
1550 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1551 flag the general-purpose registers as floating-point on targets
1552 that don't support the floating-point registers.
1553
4a6daafa
EZ
15542002-08-20 Elena Zannoni <ezannoni@redhat.com>
1555
1556 * rs6000-tdep.c (altivec_register_p): Delete.
1557 (rs6000_do_altivec_registers): Delete.
1558 (rs6000_altivec_registers_info): Delete.
1559 (rs6000_do_registers_info): Delete.
1560 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1561 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1562
ab4327e0
EZ
15632002-08-20 Elena Zannoni <ezannoni@redhat.com>
1564
1565 * infcmd.c (do_registers_info): Print vector registers in hex
1566 format only.
1567 (print_vector_info): Check that printing registers
1568 makes sense.
1569 (print_float_info): Ditto.
1570
cb1d2653
AC
15712002-08-20 Andrew Cagney <ac131313@redhat.com>
1572
1573 * mips-tdep.c (mips_gdbarch_init): Update.
1574 (mips_o32_extract_return_value): Rewrite.
1575 (mips_o32_store_return_value): Rewrite.
1576 (mips_o32_xfer_return_value): New function.
1577 (mips_xfer_register): Tweak debug print message. Allow for
1578 buf_offset when dumping the value transfered.
1579
dfc3d9b2
AC
15802002-08-20 Andrew Cagney <ac131313@redhat.com>
1581
1582 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1583 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1584 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1585 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1586 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1587
7807aa61
MS
15882002-08-14 Michael Snyder <msnyder@redhat.com>
1589
1590 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1591
489461e2
EZ
15922002-08-19 Elena Zannoni <ezannoni@redhat.com>
1593
1594 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1595 register.
1596 (P): New macro to define a register as a pseudo register.
1597 (R, R4, R8, R16, FR32, R64, R0): Updated.
1598 (struct variant): Add new fields for number of pseudo registers
1599 and number of total registers.
1600 (tot_num_registers): New macro replacing....
1601 (num_registers): ...deleted macro.
1602 (num_registers): New function.
1603 (num_pseudo_registers): New function.
1604 (variants): Update all variants to intialize new fields correctly.
1605 Postpone initialization of number of pseudo regs and real regs.
1606 (init_variants): New function.
1607 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1608 registers offsets.
1609
fcaffe4c
DC
16102002-08-19 David Carlton <carlton@math.stanford.edu>
1611
2c2738a0
DC
1612 * valops.c (search_struct_field): Change error message to treat
1613 return value of 0 from value_static_field as meaning that field is
1614 optimized out.
1615 (value_struct_elt_for_reference): Ditto.
1616 * values.c (value_static_field): Treat an unresolved location the
1617 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1618 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1619 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1620 * MAINTAINERS: Add self to Write After Approval list.
1621
88658117
AC
16222002-08-19 Andrew Cagney <ac131313@redhat.com>
1623
1624 * mips-tdep.c (mips_xfer_register): New function.
1625 (mips_n32n64_extract_return_value): Rewrite.
1626 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1627 instead of deprecated_extract_return_value.
1628
21283beb
EZ
16292002-08-19 Elena Zannoni <ezannoni@redhat.com>
1630
1631 * rs6000-tdep.c (TDEP): Delete macro.
1632 (branch_dest): Replace use of TDEP macro with its body.
1633 (rs6000_pop_frame): Ditto.
1634 (rs6000_push_arguments): Ditto.
1635 (rs6000_skip_trampoline_code): Ditto.
1636 (rs6000_frame_saved_pc): Ditto.
1637 (rs6000_frame_chain): Ditto.
1638 (rs6000_register_name): Ditto.
1639 (rs6000_register_byte): Ditto.
1640 (rs6000_register_raw_size): Ditto.
1641 (rs6000_register_virtual_type): Ditto.
1642 (rs6000_register_convertible): Ditto.
1643 (rs6000_convert_from_func_ptr_addr): Ditto.
1644
bf072999
DJ
16452002-08-19 Daniel Jacobowitz <drow@mvista.com>
1646
1647 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1648 conditionally.
1649 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1650 MIPS_LINUX_JB_ELEMENT_SIZE.
1651 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1652 for MAX_REGISTER_RAW_SIZE arrays.
1653 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1654 MIPS_LINUX_JB_ELEMENT_SIZE.
1655
9b949a49
PM
16562002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1657
1658 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1659
6d3e79c6
AS
16602002-08-19 Aidan Skinner <aidan@velvet.net>
1661
1662 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1663 ada-valprint.c ada-tasks.c.
1664 (YYFILES): Add ada-exp.y.
1665 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1666 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1667 (ada-exp.tab.o): New target.
1668
06c0b04e
AC
16692002-08-18 Andrew Cagney <ac131313@redhat.com>
1670
1671 * regcache.c (regcache_xfer_part): New function.
1672 (regcache_raw_read_part): New function.
1673 (regcache_raw_write_part): New function.
1674 (regcache_cooked_read_part): New function.
1675 (regcache_cooked_write_part): New function.
1676 * regcache.h (regcache_raw_read_part): Declare.
1677 (regcache_raw_write_part): Declare.
1678 (regcache_cooked_read_part): Declare.
1679 (regcache_cooked_write_part): Declare.
1680
92d1e331
DJ
16812002-08-18 Daniel Jacobowitz <drow@mvista.com>
1682
1683 * remote.c (remote_open_1): Add async_p.
1684 (remote_async_open_1): Delete.
1685 (open_remote_target): Delete.
1686 (remote_open, extended_remote_open): Update calls to remote_open_1.
1687 (remote_async_open, extended_remote_async_open): Call
1688 remote_open_1 instead of remote_async_open_1.
1689
247055de
MK
16902002-08-19 Mark Kettenis <kettenis@gnu.org>
1691
1692 * blockframe.c: Fix a few coding standard violations.
1693
641eda39
MK
16942002-08-19 Mark Kettenis <kettenis@gnu.org>
1695
0b717710
MK
1696 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1697 here from ...
1698 * config/i386/tm-i386sco5.h: ... here. File removed.
1699 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1700
26d28e12 1701 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1702 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1703 (TM_FILE): Set to tm-i386.h.
1704 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1705 * config/i386/tm-i386v.h: Remove file.
1706 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1707 instead of "i386/tm-i386v.h".
1708 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1709 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1710 "i386/tm-i386v.h".
1711 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1712 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1713 "i386/tm-i386.h".
1714
d4e0bab4
MK
17152002-08-18 Mark Kettenis <kettenis@gnu.org>
1716
1717 * config/i386/nm-i386v.h: Add protection against
1718 multiple-inclusion.
1719 (i386_register_u_addr): Remove prototype.
1720 (register_u_addr): New prototype.
1721 (REGISTER_U_ADDR): Redefine accordingly.
1722 * i386v-nat.c: Improve several comments.
1723 (i386_register_u_addr): Change signature and rename to
1724 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1725 ubase variable.
1726
46cac009
AC
17272002-08-18 Andrew Cagney <ac131313@redhat.com>
1728
1729 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1730 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1731 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1732 deprecated_extract_return_value.
1733 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1734 rename mips_o32o64_push_arguments.
1735 (mips_gdbarch_init): Update.
1736 (mips_extract_return_value): Delete.
1737 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1738 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1739 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1740 (mips_n32n64_extract_return_value): Clone
1741 mips_extract_return_value.
1742 (mips_store_return_value): Delete.
1743 (mips_o32_store_return_value): Clone mips_store_return_value.
1744 (mips_o64_store_return_value): Clone mips_store_return_value.
1745 (mips_eabi_store_return_value): Clone mips_store_return_value.
1746 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1747
d2e4a39e
AS
17482002-08-18 Aidan Skinner <aidan@velvet.net>
1749
0c30c098
AS
1750 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1751 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1752
17532002-08-18 Aidan Skinner <aidan@velvet.net>
1754
1755 * ada-lang.c: Run through gdb_indent.sh.
1756 * ada-lang.h: Run through gdb_indent.sh.
1757 * ada-tasks.c: Run through gdb_indent.sh.
1758 * ada-typeprint.c: Run through gdb_indent.sh.
1759 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1760
01fc4e33
AC
17612002-08-18 Andrew Cagney <ac131313@redhat.com>
1762
1763 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1764 ABI.
1765
d8ee244c
MK
17662002-08-18 Mark Kettenis <kettenis@gnu.org>
1767
c38d8261
MK
1768 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1769
222db64c
MK
1770 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1771 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1772
c2848c82
MK
1773 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1774 write_register_gen instead of write_register_bytes.
1775
d8ee244c
MK
1776 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1777 i[3456]-*-osf1mk* configurations have been made obsolete.
1778 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1779 i[3456]86-*-osf1mk* hosts obsolete.
1780 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1781 targets obsolete.
1782 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1783 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1784 config/i386/i386m3.mt, config/i386/nm-m3.h,
1785 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1786 config/i386/i386mk.mh, config/i386/i386mk.mt,
1787 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1788 obsolete.
1789 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1790 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1791 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1792
61d8d407
AC
17932002-08-18 Andrew Cagney <ac131313@redhat.com>
1794
1795 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1796 (hppa_value_returned_from_stack): Declare.
1797 (hppa_extract_return_value): Declare.
1798 * config/pa/hppa.mt: New file.
1799 * configure.tgt: Recognize hppa*-*-*.
1800 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1801
0c52bd59
MK
18022002-08-18 Mark Kettenis <kettenis@gnu.org>
1803
1804 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1805 comment.
1806
b5686e99
MK
18072002-08-17 Mark Kettenis <kettenis@gnu.org>
1808
1809 * top.c (gdb_rl_operate_and_get_next): Make sure
1810 operate-and-get-next functions correctly even when the history
1811 list is completely filled.
1812
c1bab85b
AC
18132002-08-18 Andrew Cagney <ac131313@redhat.com>
1814
1815 * MAINTAINERS (Target Instruction Set Architectures): Rename
1816 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1817 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1818 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1819 already listed under Host/Native.
1820
1821 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1822 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1823 mips*-*-*.
1824
32089c7c
AC
18252002-08-17 Andrew Cagney <ac131313@redhat.com>
1826
1827 * config/ia64/ia64.mt: New file.
1828 * config/alpha/alpha.mt: New file.
1829 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1830 ia64-linux-gnu. Mention that ia64-elf is broken.
1831 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1832
b4671f85
MK
18332002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1834
1835 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1836 generic_func_frame_valid instead of func_frame_valid.
1837
c8edd8b4
JB
18382002-08-16 Joel Brobecker <brobecker@gnat.com>
1839
1840 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1841 procfs appears to be broken when debugging on multi-processor
1842 machines. So enable software single stepping in order to avoid
1843 using the procfs interface to do next/step operations, using
1844 internal breakpoints instead.
1845
1846 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1847 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1848 make this pc address equal to the value it would have if the
1849 system stepping capability was used. Also set a new flag used
1850 to ensure that we don't readjust the PC one more time later.
1851
1852 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1853 address by DECR_PC_AFTER_BREAK when software single step is
1854 in use for this architecture, as this has already been taken
1855 care of in handle_inferior_event().
1856
238617f6
JB
18572002-08-16 Joel Brobecker <brobecker@gnat.com>
1858
1859 * infrun.c (handle_inferior_event): Minor reformatting, to make
1860 a rather long condition expression easier to read.
1861
541a7aac
AC
18622002-08-16 Andrew Cagney <ac131313@redhat.com>
1863
1864 * Makefile.in (gdbtk.o): Move to end of file.
1865 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1866 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1867 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1868 (gdbtk-wrapper.o, gdbres.o): Ditto.
1869
f92d4a7b
AC
18702002-08-16 Andrew Cagney <ac131313@redhat.com>
1871
1872 * Makefile.in (copying.o): Separate out compile rule.
1873 (hpux-thread.o, procfs.o, signals.o): Ditto.
1874 (v850ice.o, z8k-tdep.o): Ditto.
1875 (tui-file.o): Move to TUI section.
1876 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1877 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1878
1cce71eb
JB
18792002-08-16 Joel Brobecker <brobecker@gnat.com>
1880
1881 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1882 skip_trampoline_code, for better namespace-proofing.
1883
1884 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1885
0851f23d
JB
18862002-08-16 Joel Brobecker <brobecker@gnat.com>
1887
1888 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1889
f8d40ec8
JB
18902002-08-16 Joel Brobecker <brobecker@gnat.com>
1891
1892 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1893 signal, check whether we hit a breakpoint before checking for a
1894 single step breakpoint. Otherwise, GDB fails to notice that a
1895 breakpoint has been hit when stepping onto a breakpoint.
1896
63d022e0
KS
18972002-08-16 Keith Seitz <keiths@redhat.com>
1898
1899 * gdb-events.sh (clear_gdb_event_hooks): New function.
1900 * gdb-events.c: Regenerate.
1901 * gdb-events.h: Regenerate.
1902
6e31adb3
AC
19032002-08-16 Andrew Cagney <ac131313@redhat.com>
1904
1905 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1906 not_a_sw_breakpoint.
1907 * breakpoint.h (bpstat_stop_status): Add parameter names.
1908
c8189ed1
GS
19092002-08-16 Grace Sainsbury <graces@redhat.com>
1910
1911 * remote.c (remote_insert_hw_breakpoint)
1912 (remote_remove_hw_breakpoint): Fix calculation of length field
1913 for Z-packet.
1914
d05285fa
MS
19152002-08-15 Michael Snyder <msnyder@redhat.com>
1916
466d7106
MS
1917 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1918 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1919 (supply_fpregset): Ditto.
1920
d05285fa
MS
1921 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1922 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1923 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1924 (TARGET_READ_SP): Delete.
bf1f5b4c 1925 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1926 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1927 Delete.
1928 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1929 from macros to functions.
bf1f5b4c 1930
d05285fa
MS
1931 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1932 (mips_register_convertible, mips_register_convert_to_virtual,
1933 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1934 (mips_read_sp): New function.
1935 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1936 (mips_do_registers_info): Make static.
1937 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1938 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1939 (mips_register_convert_from_type, mips_register_convert_to_type):
1940 New functions.
1941 (mips_gdbarch_init): Set up function_start_offset,
1942 register_virtual_size, pc_in_sigtramp.
d05285fa 1943
e76f1f2e
AC
19442002-08-15 Andrew Cagney <ac131313@redhat.com>
1945
1946 * infcmd.c (vector_info): New function.
1947 (_initialize_infcmd): Add command "info vector".
1948 (print_vector_info): New function.
1949
1950 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1951 * gdbarch.h, gdbarch.c: Regenerate.
1952
4782dc19
AC
19532002-08-15 Andrew Cagney <ac131313@redhat.com>
1954
1955 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1956 ``print_all''. Only print vector registers when ``print_all''.
1957
23e3a7ac
AC
19582002-08-15 Andrew Cagney <ac131313@redhat.com>
1959
8e186fd6
AC
1960 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1961 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1962
23e3a7ac
AC
1963 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1964 Add `args' parameter.
1965 * gdbarch.h, gdbarch.c: Regenerate.
1966
1967 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1968
1969 * infcmd.c (float_info): Call print_float_info.
1970 (print_float_info): New function. By default, print the
1971 floating-point registers.
1972
1973 * arch-utils.h (default_print_float_info): Delete declaration.
1974 * arch-utils.c (default_print_float_info): Delete function.
1975
e0ca2bb9
MK
19762002-08-16 Mark Kettenis <kettenis@gnu.org>
1977
3f733acc
MK
1978 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1979 out define.
1980
7d8d2918
MK
1981 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1982 FRAME.
1983
1c7cc583
MK
1984 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1985 * configure.host: Make i[3456]86-*-aix host obsolete.
1986 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1987 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1988 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1989 config/i386/xm-i386aix.h: Make files obsolete.
1990 * i386aix-nat.c: Make file obsolete.
1991 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1992 (i386aix-nat.o): Make target obsolete.
1993
e0ca2bb9
MK
1994 * config/i386/nm-gnu.h: Removed.
1995 * config/i386/nm-i386gnu.h: New file.
1996 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1997 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1998 Moved here from ...
1999 * config/i386/tm-i386gnu.h: ... here. Removed.
2000 * config/i386/xm-i386gnu.h: Removed.
2001 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2002 (NAT_FILE): Set to nm-i386gnu.h.
2003 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2004 * i386-tdep.c: New file.
2005 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2006 (i386gnu-tdep.o): Specify dependencies.
2007
16057ec7 20082002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2009
6b99ee2e
MK
2010 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2011 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2012 Adjust a few comments to reflect reality a bit closer.
2013 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2014 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2015 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2016 target_insert_watchpoint, target_remove_watchpoint):
2017 Move defines to ...
2018 * config/i386/nm-i386sco5.h: ... here.
2019 (kernel_u_size): Add prototype. Improve a few comments and add
2020 protection against multiple inclusion.
2021
d9a6f65c
MK
2022 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2023 out define.
2024
047eff6a
MK
2025 * uw-thread.c (SP_ARG0): Define if not already defined.
2026 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2027
dcdb1290
MK
2028 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2029
5d2d0b2a
MK
2030 * config/i386/tm-i386.h: Don't include "regcache.h".
2031
61113f8b
MK
2032 * i387-tdep.h (i387_print_float_info): New prototype.
2033 * i387-tdep.c (print_i387_value, print_i387_ext,
2034 print_i387_status_word, print_i387_control_word): Add `struct
2035 ui_file *' argument and use it for output.
2036 (i387_print_float_info): Renamed from i387_float_info. Add
2037 `struct gdbarch *' and `struct ui_file *' arguments and use the
2038 latter for output.
2039 * i386-tdep.c: Include "i387-tdep.h".
2040 (i386_gdbarch_init): Set print_float_info.
2041 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2042 (FLOAT_INFO): Remove define.
2043
46e0f506
MS
20442002-08-13 Michael Snyder <msnyder@redhat.com>
2045
2046 * mips-tdep.c (mips_push_arguments): Rename to
2047 mips_eabi_push_arguments, and tune for EABI.
2048 (MIPS_REGS_HAVE_HOME_P): Delete.
2049 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2050 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2051 Delete references to mips_regs_have_home_p.
2052
409268de
KS
20532002-08-14 Keith Seitz <keiths@redhat.com>
2054
2055 * Makefile.in (install-gdbtk): Create insight plugin directory.
2056 Install plugins.tcl file.
2057
ffc6a242
KS
20582002-08-14 Keith Seitz <keiths@redhat.com>
2059
2060 * configure.in: Move SUBDIRS to near top of the file so that
2061 --enable options may add things to it.
2062 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2063 * configure: Regenerate.
2064
ebafbe83
MS
20652002-08-13 Michael Snyder <msnyder@redhat.com>
2066
2067 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2068 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2069 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2070
32f6f25d
AC
20712002-08-13 Andrew Cagney <ac131313@redhat.com>
2072
2073 * vax-tdep.c (vax_get_saved_register): Delete function.
2074 (vax_gdbarch_init): Update.
2075 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2076 (ns32k_gdbarch_init): Update.
2077 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2078 (alpha_gdbarch_init): Update.
2079
53826de9
AC
20802002-08-13 Andrew Cagney <cagney@redhat.com>
2081
2082 * regcache.c (init_regcache_descr): Overallocate the
2083 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2084 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2085 nr_raw_registers.
2086 (set_register_cached): Add range checking assertions. Use
2087 current_regcache.
2088
16057ec7 20892002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2090
2091 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2092 numbers for MMX registers.
2093
7b4c2dce
AC
20942002-08-13 Andrew Cagney <cagney@redhat.com>
2095
2096 * i386-tdep.c (i386_gdbarch_init): Use
2097 generic_unwind_get_saved_register.
2098
1e03ad20
KB
20992002-08-13 Kevin Buettner <kevinb@redhat.com>
2100
2101 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2102 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2103 target vector.
2104 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2105 Delete. Add comment regarding this now-deleted target method.
2106
548bcbec
SC
21072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2108
2109 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2110 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2111 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2112 real PC and the page number (if it's within the memory bank window).
2113 (m68hc11_pseudo_register_write): Likewise when saving.
2114 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2115 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2116 (m68hc11_register_raw_size): And use 32-bit for it.
2117 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2118 16K memory bank is used by the prog; also use the virtual pc.
2119
7df11f59
SC
21202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2121
2122 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2123 (m68hc11_gdbarch_init): Install it in gdbarch.
2124 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2125 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2126 (MSYMBOL_SIZE): New for documentation.
2127 (insn_return_kind): Enum to specify how a function returns.
2128 (frame_extra_info): Cleanup and record the return mode.
2129 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2130 register in address computation.
2131 (m68hc11_get_return_insn): New to obtain the return instruction used
2132 by the function.
2133 (m68hc11_frame_init_saved_regs): Take into account the return
2134 instruction used by the function for far and interrupt functions.
2135 (m68hc11_init_extra_frame_info): Take into account page register.
2136 (m68hc11_frame_args_address): Adjust according to the return mode.
2137 (show_regs): Print page register only when it's used.
2138
5706502a
SC
21392002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2140
2141 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2142 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2143 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2144 registers.
2145 (m68hc11_register_raw_size): Likewise.
2146
28fc6740
AC
21472002-08-13 Andrew Cagney <cagney@redhat.com>
2148
2149 * i386-tdep.c (i386_register_name): Handle mmx registers.
2150 (mmx_regnum_p): New function.
2151 (i386_mmx_names): New array.
2152 (mmx_num_regs): New variable.
2153 (i386_pseudo_register_read): New function.
2154 (i386_pseudo_register_write): New function.
2155 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2156
2157 * regcache.c (regcache_raw_read_unsigned): New function.
2158 (regcache_raw_read_signed): New function.
2159 * regcache.h (regcache_raw_read_unsigned): Declare.
2160 (regcache_raw_read_signed): Declare.
2161
a378f419
AC
21622002-08-13 Andrew Cagney <cagney@redhat.com>
2163
2164 * regcache.c (regcache_raw_read_as_address): Delete function.
2165 (regcache_cooked_read_signed): New function.
2166 (regcache_cooked_read_unsigned): New function.
2167 * regcache.h (regcache_cooked_read_signed): Declare.
2168 (regcache_cooked_read_unsigned): Declare.
2169 (regcache_raw_read_as_address): Delete declaration.
2170
2171 * blockframe.c (generic_read_register_dummy): Use
2172 regcache_cooked_read_unsigned.
2173 * i386-tdep.c (i386_extract_struct_value_address): Use
2174 regcache_cooked_read_unsigned.
2175
81967506
SC
21762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2177
2178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2179 double sizes according to ELF ABI flags.
2180 (gdbarch_tdep): Record elf_flags.
2181
ffe1f3ee
SC
21822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2183
2184 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2185 (m6812_prolog): They can appear in 68HC12 function prologue.
2186 (m68hc11_frame_chain): Cleanup.
2187
98216c5d
AC
21882002-08-12 Andrew Cagney <cagney@redhat.com>
2189
2190 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2191 declarations.
2192 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2193 (i386_linux_register_raw_size): Delete function.
2194 (i386_linux_init_abi): Update.
2195 * i386-tdep.c (i386_register_raw_size): Delete function.
2196 (i386_register_byte): Delete function.
2197 (i386_gdbarch_init): Update.
2198 (i386_register_size): Delete array.
2199 (i386_register_offset): Delete array.
2200
2201 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2202 (REGISTER_RAW_SIZE): Delete macro.
2203 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2204 (REGISTER_BYTE): Delete macro.
2205
3b19021e
AS
22062002-08-11 Aidan Skinner <aidan@velvet.net>
2207
2208 * ada-lang.c (ada_lookup_partial_symbol)
2209 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2210 prototype names so that grep ^func works properly.
2211
2212 * ada-lang.c (ada_array_element_type)
2213 (ada_lookup_partial_symbol): Fix typos in parameter list.
2214
2215 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2216 Fix prototype names so that grep ^func works properly.
2217
b063e7a2
AC
22182002-08-10 Andrew Cagney <cagney@redhat.com>
2219 Elena Zannoni <ezannoni@redhat.com>
2220 Martin M. Hunt <hunt@redhat.com>
2221
2222 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2223 (build_builtin_type_vec128i): Set the vector bit.
2224 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2225 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2226 (build_builtin_type_vec64): New function.
2227 (build_builtin_type_vec64i): New function.
2228 (build_gdbtypes): Initialize builtin_type_vec64 and
2229 builtin_type_vec64i.
2230
a7e3c2ad
AC
22312002-08-09 Andrew Cagney <cagney@redhat.com>
2232
2233 * regcache.c (regcache_dump): Compare the register offset
2234 with REGISTER_BYTE.
2235 * arch-utils.c (generic_register_byte): New function.
2236 * arch-utils.h (generic_register_byte): Declare.
2237 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2238 * gdbarch.h, gdbarch.c: Regenerate.
2239
af030b9a
AC
22402002-08-09 Andrew Cagney <cagney@redhat.com>
2241
2242 * regcache.c: Include "gdbcmd.h"
2243 (_initialize_regcache): Add commands "maintenance print
2244 registers", "maintenance print raw-registers" and "maintenance
2245 print cooked-registers".
2246 (enum regcache_dump_what): Define.
2247 (dump_endian_bytes): New function.
2248 (regcache_dump): New function.
2249 (regcache_print): New function.
2250 (maintenance_print_registers): New function.
2251 (maintenance_print_raw_registers): New function.
2252 (maintenance_print_cooked_registers): New function.
2253 * Makefile.in (regcache.o): Update dependencies.
2254
cb3d25d1
MS
22552002-08-09 Michael Snyder <msnyder@redhat.com>
2256
2257 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2258 (mips_push_arguments): Correct some comments. Use paddr_nz
2259 for printing addresses in debug output. Replace static
2260 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2261 (mips_n32n64_push_arguments): New function, cloned from
2262 mips_push_arguments and tuned for the n32/n64 ABI.
2263 (mips_push_register): Buffer needs dynamic allocation.
2264 (mips_print_register): Ditto.
2265 (do_gp_register_row): Ditto.
2266 (mips_store_return_value): Ditto.
2267 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2268
2163ab9d
DH
22692002-08-09 Don Howard <dhoward@redhat.com>
2270
2271 * memattr.c (mem_info_command): Print special case of upper bound
2272 as max CORE_ADDR + 1.
2273
b78bcb18
MS
22742002-08-08 Michael Snyder <msnyder@redhat.com>
2275
2276 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2277 returns structs by ref if they're too big to fit in two registers.
2278
ffabd70d
KB
22792002-08-09 Kevin Buettner <kevinb@redhat.com>
2280
2281 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2282 saved regs value.
2283 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2284 mips_find_saved_regs().
2285 (mips_pop_frame): Likewise.
2286
fbcdb4a3
KB
22872002-08-09 Kevin Buettner <kevinb@redhat.com>
2288
2289 * blockframe.c (frame_saved_regs_register_unwind): Revise
2290 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2291 frames are in use.
2292
3c3bea1c
GS
22932002-08-09 Grace Sainsbury <graces@redhat.com>
2294
2295 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2296 T-packets; the 'a' is not taken as a register number.
2297 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2298 (remote_stopped_data_address): New functions; add to target
2299 vector.
2300 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2301 prototypes to match other implementations of this
2302 function. replace integer argument with pointer -- the length
2303 field in the Z-packet is the length of what is pointed to or 1 if
2304 pointer is null. Add to target vector.
2305 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2306 target vector.
2307
2308 From Mark Salter:
2309 * remote.c (remote_wait): Add support to extract optional
2310 watchpoint information from T-packet. Ignore unrecognized
2311 optional info in T-packet.
2312 (remote_async_wait): Ditto.
2313
5d1d95de
CV
23142002-08-09 Corinna Vinschen <vinschen@redhat.com>
2315
2316 * cli/cli-dump.c: Change fopen modes to use binary open modes
2317 as defined in include/fopen-bin.h throughout.
2318
c86b5b38
MS
23192002-08-08 Michael Snyder <msnyder@redhat.com>
2320
2321 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2322
b30590dc
KB
23232002-08-08 Kevin Buettner <kevinb@redhat.com>
2324
2325 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2326 assertion failure by returning early after a warning.
2327
498868ed
KB
23282002-08-08 Kevin Buettner <kevinb@redhat.com>
2329
2330 * mips-tdep.c (mips_find_saved_regs): Make static.
2331 (mips_frame_init_saved_regs): New function.
2332 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2333 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2334 (mips_find_saved_regs): Delete declaration.
2335
b2dd6311
GS
23362002-08-08 Grace Sainsbury <graces@redhat.com>
2337
3c3bea1c
GS
2338 * remote.c (remote_wait, remote_async_wait): Change
2339 thread_num from int to ULONGEST.
2340 (unpack_varlen_hex): Change result parameter from
2341 int * to ULONGEST *.
b2dd6311 2342
ea47855f
AC
23432002-08-08 Andrew Cagney <ac131313@redhat.com>
2344
2345 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2346 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2347 powerpc*-*-*.
2348 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2349
69db8bae
AC
23502002-08-08 Andrew Cagney <cagney@redhat.com>
2351
2352 * gcore.c (override_derive_stack_segment): Delete variable.
2353 (preempt_derive_stack_segment): Delete function.
2354 (derive_stack_segment): Delete function.
2355 (default_derive_stack_segment): Renamed to derive_stack_segment.
2356 (override_derive_heap_segment): Delete variable.
2357 (preempt_derive_heap_segment): Delete function.
2358 (derive_heap_segment): Delete function.
2359 (default_derive_heap_segment): Rename to derive_heap_segment.
2360
cb811fe7
MS
23612002-08-06 Michael Snyder <msnyder@redhat.com>
2362
2363 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2364 * mips-tdep.c (mips_EABI_use_struct_convention,
2365 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2366 New functions. (mips_use_struct_convention): Delete.
2367 (mips_gdbarch_init): set use_gdbarch_convention.
2368
8b389c40
MS
23692002-08-06 Michael Snyder <msnyder@redhat.com>
2370
2371 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2372 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2373 mips_o32_reg_struct_has_addr): New functions.
2374 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2375
5c27f28a
AC
23762002-08-07 Andrew Cagney <ac131313@redhat.com>
2377
2378 * regcache.c (pseudo_register): Delete function.
2379 (fetch_register): Delete function.
2380 (store_register): Delete function.
2381 (regcache_raw_read, legacy_read_register_gen): Use
2382 target_fetch_registers instead of fetch_register.
2383 (legacy_write_register_gen, regcache_raw_write): Use
2384 target_store_register instead of store_register.
2385 (write_register_bytes): Ditto.
2386
2387 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2388 (STORE_PSEUDO_REGISTER): Delete.
2389 * gdbarch.h, gdbarch.c: Regenerate.
2390
5b331675
CV
23912002-08-06 Corinna Vinschen <vinschen@redhat.com>
2392
2393 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2394 write dump file binary.
2395
6acdf5c7
MS
23962002-08-05 Michael Snyder <msnyder@redhat.com>
2397
2398 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2399 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2400 (mips_gdbarch_init): Set N32 target to be mips64.
2401
b2f01c35
KB
24022002-08-06 Kevin Buettner <kevinb@redhat.com>
2403
2404 * frame.c (find_saved_register): Break out of loop once saved
2405 register address is found. Don't mention sparc in loop comment
2406 anymore.
2407
63db5580
KB
24082002-08-06 Kevin Buettner <kevinb@redhat.com>
2409
2410 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2411 mips_default_saved_regsize to 8.
2412
5e34e75e
AC
24132002-08-06 Andrew Cagney <ac131313@redhat.com>
2414
2415 * gcore.c: Do not include <sys/procfs.h>.
2416 * Makefile.in (gcore.o): Update dependencies.
2417
eb4c54a2
AC
24182002-08-06 Andrew Cagney <cagney@redhat.com>
2419
2420 * configure.tgt: Make arc-*-* obsolete.
2421 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2422 * MAINTAINERS: Make arc-elf obsolete.
2423 * arc-tdep.c: Make file obsolete.
2424 * config/arc/arc.mt: Ditto.
2425 * config/arc/tm-arc.h: Ditto.
2426
ced15480
TR
24272002-08-05 Theodore A. Roth <troth@verinet.com>
2428
c1bab85b 2429 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2430
b4743822
AC
24312002-08-05 Andrew Cagney <ac131313@redhat.com>
2432
2433 * mcore-tdep.c (mcore_gdbarch_init): Use
2434 generic_unwind_get_saved_register instead of
2435 generic_get_saved_register.
2436 * v850-tdep.c (v850_gdbarch_init): Ditto.
2437 * frv-tdep.c (frv_gdbarch_init): Ditto.
2438 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2439 * s390-tdep.c (s390_gdbarch_init): Ditto.
2440 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2441 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2442 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2443
3956d554
JB
24442002-08-05 Joel Brobecker <brobecker@gnat.com>
2445
2446 * objfiles.h: Add missing #include "symfile.h"
2447
2448 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2449
8249c0d6
AC
24502002-08-04 Andrew Cagney <ac131313@redhat.com>
2451
2452 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2453 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2454 of FIELD_BITSIZE.
2455
b9d14705
DJ
24562002-08-04 Daniel Jacobowitz <drow@mvista.com>
2457
2458 * NEWS: Cleanup and nitpick.
2459
dd73b9bb
AC
24602002-08-03 Andrew Cagney <ac131313@redhat.com>
2461
2462 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2463
043a27f8
AC
24642002-08-03 Andrew Cagney <ac131313@redhat.com>
2465
2466 * Makefile.in (gdbtk-bp.o): Update dependencies.
2467 (gdbtk-register.o): Ditto.
2468 (gdbtk-varobj.o): Ditto.
2469
46ce284d
AC
24702002-08-03 Andrew Cagney <cagney@redhat.com>
2471
2472 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2473 m68hc11_fetch_pseudo_register.
2474 (m68hc11_pseudo_register_write): Replace
2475 m68hc11_store_pseudo_register.
2476 (m68hc11_gdbarch_init): Update.
2477
b66d6d2e
AC
2478Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2479
2480 * gdbarch.sh: Include "gdb_string.h".
2481 * gdbarch.c: Regenerate.
2482
2483 * regcache.c: Include "gdb_string.h".
2484 * ax-general.c: Ditto.
2485 * varobj.c: Ditto.
2486 * std-regs.c: Ditto.
2487 * fbsd-proc.c: Ditto.
2488 * thread.c: Ditto.
2489
2490 * Makefile.in (regcache.o): Update dependencies.
2491 (thread.o, gdbarch.o): Ditto.
2492 (ax-general.o, gdbarch.o): Ditto.
2493 (varobj.o, std-regs.o): Ditto.
2494 (fbsd-proc.o): Specify dependencies.
2495
29e1842b
AC
24962002-08-02 Andrew Cagney <cagney@redhat.com>
2497
2498 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2499 regnum.
2500 (regcache_cooked_write): Ditto.
2501
68365089
AC
25022002-08-02 Andrew Cagney <ac131313@redhat.com>
2503
2504 * regcache.c (regcache_cooked_read): New function.
2505 (regcache_cooked_write): New function.
2506 (read_register_gen): Rewrite using regcache_cooked_read.
2507 (write_register_gen): Rewrite using regcache_cooked_write.
2508
2509 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2510 Declare.
2511
d8124050
AC
25122002-08-02 Andrew Cagney <cagney@redhat.com>
2513
2514 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2515 Replace the architecture methods register_read and register_write.
2516 * gdbarch.h, gdbarch.c: Regenerate.
2517 * regcache.c (init_regcache_descr): Update.
2518 (read_register_gen): Update.
2519 (write_register_gen): Update.
2520 (supply_register): Update comment.
2521
2522 * sh-tdep.c (sh_gdbarch_init): Update.
2523 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2524 `regcache' and `gdbarch' parameters. Make `buffer' a void
2525 pointer. Update code.
2526 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2527 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2528 void pointer. Update code.
2529 (sh64_register_write): Delete.
2530 (sh4_register_read): Delete.
2531 (sh64_register_read): Delete.
2532 (sh4_register_write): Delete.
2533 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2534 void pointer, `to' parameter a void pointer.
2535 (sh_sh64_register_convert_to_raw): Ditto.
2536
a6425924
KB
25372002-08-01 Kevin Buettner <kevinb@redhat.com>
2538
2539 * mips-tdep.c (mips_register_virtual_type): Use architecture
2540 invariant return values.
2541
ff5922b5
AC
25422002-08-01 Andrew Cagney <cagney@redhat.com>
2543
2544 * linux-proc.c: Include "gdb_string.h".
2545 * Makefile.in (linux-proc.o): Update dependency list.
2546
32a6503c
KB
25472002-08-01 Kevin Buettner <kevinb@redhat.com>
2548
2549 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2550 comment.
2551
ccaa32c7
GS
25522002-08-01 Grace Sainsbury <graces@redhat.com>
2553
2554 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2555 to_insert_watchpoint, to_remove_watchpoint,
2556 to_stopped_by_watchpoint, to_stopped_data_address,
2557 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2558 target vecctor. Define their corresponding macros so they call
2559 them.
2560
2561 * target.c: Add default and debug versions of for
2562 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2563 to_insert_watchpoint, to_remove_watchpoint,
2564 to_stopped_by_watchpoint, to_stopped_data_address,
2565 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2566
78fde5f8
KB
25672002-08-01 Kevin Buettner <kevinb@redhat.com>
2568
2569 * mips-tdep.c (mips_register_virtual_type): New function.
2570 (mips_gdbarch_init): Register mips_register_virtual_type()
2571 with gdbarch machinery.
2572 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2573 this file instead of tm-bigmips.h.
2574 (MIPS_REGSIZE): Delete this macro.
2575 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2576 multiarch version in mips-tdep.c will be found.
2577
db034ac5
AC
25782002-08-01 Andrew Cagney <cagney@redhat.com>
2579
2580 * NEWS: Menion that CHILL has been made obsolete.
2581
2582 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2583 * stabsread.c (read_range_type): Ditto.
2584 * gdbtypes.h: Ditto.
2585 * language.c (binop_type_check): Ditto.
2586 (binop_result_type): Ditto.
2587 (integral_type): Ditto.
2588 (character_type): Ditto.
2589 (string_type): Ditto.
2590 (boolean_type): Ditto.
2591 (structured_type): Ditto.
2592 (lang_bool_type): Ditto.
2593 (binop_type_check): Ditto.
2594 * language.h (_LANG_chill): Ditto.
2595 * dwarfread.c (set_cu_language): Ditto.
2596 * dwarfread.c (CHILL_PRODUCER): Ditto.
2597 * dwarfread.c (handle_producer): Ditto.
2598 * expression.h (enum exp_opcode): Ditto.
2599 * eval.c: Ditto for comments.
2600 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2601 * expprint.c (print_subexp): Ditto.
2602 (print_subexp): Ditto.
2603 * valops.c (value_cast): Ditto.
2604 (search_struct_field): Ditto.
2605 * value.h (COERCE_VARYING_ARRAY): Ditto.
2606 * symfile.c (init_filename_language_table): Ditto.
2607 (add_psymbol_with_dem_name_to_list): Ditto.
2608 * valarith.c (value_binop): Ditto.
2609 (value_neg): Ditto.
2610 * valops.c (value_slice): Ditto.
2611 * symtab.h (union language_specific): Ditto.
2612 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2613 (SYMBOL_DEMANGLED_NAME): Ditto.
2614 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2615 * defs.h (enum language): Ditto.
2616 * symtab.c (got_symtab): Ditto.
2617 * utils.c (fprintf_symbol_filtered): Ditto.
2618
2619 * ch-typeprint.c: Make file obsolete.
2620 * ch-valprint.c: Make file obsolete.
2621 * ch-lang.h: Make file obsolete.
2622 * ch-exp.c: Make file obsolete.
2623 * ch-lang.c: Make file obsolete.
2624
2625 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2626 CHILL_LIB.
2627 (TARGET_FLAGS_TO_PASS): Ditto.
2628 (CHILLFLAGS): Obsolete.
2629 (CHILL): Obsolete.
2630 (CHILL_FOR_TARGET): Obsolete.
2631 (CHILL_LIB): Obsolete.
2632 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2633 ch-valprint.c.
2634 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2635 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2636 ch-lang.o.
2637 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2638 targets.
2639
8aaf0b47
JB
26402002-07-31 Joel Brobecker <brobecker@gnat.com>
2641
2642 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2643 This does not change anything at the moment, but will be helpful
2644 later when full Ada support is integrated.
2645
f3a7b3a5
KB
26462002-07-31 Kevin Buettner <kevinb@redhat.com>
2647
2648 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2649 help message.
2650
fb850278
KB
26512002-07-31 Kevin Buettner <kevinb@redhat.com>
2652
2653 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2654 and save it in a local variable. Use variable in later test.
2655
e3bddbfa
KB
26562002-07-31 Kevin Buettner <kevinb@redhat.com>
2657
2658 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2659 test. (Thanks to Daniel Jacobowitz.)
2660
28d169de
KB
26612002-07-31 Kevin Buettner <kevinb@redhat.com>
2662
2663 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2664 (mips_abi_strings): Add "n64".
2665 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2666
7fe7e44e
KB
26672002-07-31 Kevin Buettner <kevinb@redhat.com>
2668
2669 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2670 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2671
c6caf090
KB
26722002-07-31 Kevin Buettner <kevinb@redhat.com>
2673
2674 * utils.c (host_pointer_to_address, address_to_host_pointer):
2675 Use gdb_assert() instead of explicit call to internal_error().
2676
c41669e0
KB
26772002-07-30 Kevin Buettner <kevinb@redhat.com>
2678
2679 * Makefile.in (rs6000-nat.o): Update dependencies.
2680
2681 From Nicholas Duffek:
2682 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2683 (aix-thread.o): New rule.
2684 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2685 * config/powerpc/aix432.mh: New file.
2686
2fda4977
DJ
26872002-07-30 Daniel Jacobowitz <drow@mvista.com>
2688
2689 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2690 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2691 (fetch_core_registers, ppc_linux_supply_gregset)
2692 (ppc_linux_supply_fpregset): New functions.
2693 (ppc_linux_regset_core_fns): New.
2694 (_initialize_ppc_linux_tdep): Call add_core_fns.
2695 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2696 and ppc_linux_supply_gregset.
2697 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2698 (supply_fpregset): Call ppc_linux_supply_fpregset.
2699 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2700 corelow.o.
2701 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2702
729051e6
DJ
27032002-07-30 Daniel Jacobowitz <drow@mvista.com>
2704
2705 * symtab.c (lookup_symbol): Demangle before lowercasing.
2706
5f8a3188
AC
27072002-07-30 Andrew Cagney <ac131313@redhat.com>
2708
2709 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2710 declaration.
2711 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2712 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2713 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2714 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2715 "gdb_string.h".
2716 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2717 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2718 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2719 (avr-tdep.o, mon960-rom.o): Ditto.
2720 (aout_stabs_gnu_h): Define.
2721 (symtab_h): Remove $(gdb_obstack_h).
2722
67f07146
JB
27232002-07-30 Jim Blandy <jimb@redhat.com>
2724
2725 Patch from David Carlton <carlton@math.stanford.edu>:
2726 * gdbinit.in: Move the `dir' commands that add GDB's own source
2727 directory to the search path to the end, so that the `gdb' source
2728 directory will be searched first.
2729
04ea0df1
AC
27302002-07-29 Andrew Cagney <ac131313@redhat.com>
2731
2732 * gdb_obstack.h: New file.
2733 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2734 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2735 * objfiles.h: Include "gdb_obstack.h".
2736 * Makefile.in (gdb_obstack_h): Define.
2737 (symtab_h): Add $(gdb_obstack_h).
2738 (objfiles_h): Add $(gdb_obstack_h).
2739
2740 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2741 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2742 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2743 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2744 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2745 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2746 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2747 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2748
2749 * Makefile.in (bcache.o): Update dependencies.
2750 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2751 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2752 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2753 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2754 (stabsread.o, symfile.o, symmisc.o): Ditto.
2755 (symtab.o, typeprint.o, macroexp.o): Ditto.
2756 (macrotab.o, mdebugread.o): Ditto.
2757 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2758 (coff_ecoff_h, aout_aout64_h): Define.
2759 (aout_stabs_gnu_h, libaout_h): Define.
2760
d138e37a
AC
27612002-07-29 Andrew Cagney <cagney@redhat.com>
2762
2763 * regcache.c (struct regcache_descr): Rename nr_registers to
2764 nr_cooked_registers. Revise comments describing the structure
2765 member fields.
2766 (init_regcache_descr): Update.
2767 (init_legacy_regcache_descr): Update.
2768 (read_register_gen, write_register_gen): When a cooked register in
2769 the raw register range, directly access the value from the raw
2770 register cache.
2771
460e6ec3
AC
27722002-07-29 Andrew Cagney <ac131313@redhat.com>
2773
2774 * z8k-tdep.c: Do not include "obstack.h".
2775 * h8300-tdep.c, h8500-tdep.c: Ditto.
2776 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2777 * valprint.c, v850-tdep.c: Ditto.
2778 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2779 * mn10200-tdep.c: Ditto.
2780
2781 * Makefile.in (z8k-tdep.o): Update dependencies.
2782 (m68hc11-tdep.o, valprint.o): Ditto.
2783 (v850-tdep.o, d10v-tdep.o): Ditto.
2784 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2785 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2786 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2787 (sh_opc_h, gdb_sim_sh_h): Define.
2788 (elf_sh_h, elf_bfd_h): Define.
2789 (opcode_m68hc11_h): Define.
2790 (OPCODES_SRC, OPCODES_DIR): define.
2791 (OPCODES): Use $(OPCODES_DIR).
2792 (gdb_sim_d10v_h): Rename sim_d10v_h.
2793 (gdb_sim_arm_h): Rename sim_arm_h.
2794
790c9cf0
KB
27952002-07-26 Kevin Buettner <kevinb@redhat.com>
2796
2797 * utils.c (host_pointer_to_address, address_to_host_pointer):
2798 Change internal_error() message to indicate function responsible
2799 for the error.
2800
9647fa49
KB
28012002-07-26 Kevin Buettner <kevinb@redhat.com>
2802
2803 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2804 calls to local_hex_string_custom().
2805
dabbe2c0
KB
28062002-07-26 Kevin Buettner <kevinb@redhat.com>
2807
2808 * irix5-nat.c: Move IRIX shared library support from here...
2809 * solib-irix.c: ...to here. Revised substantially to work with
2810 generic solib framework.
2811
b96d0a4e
KB
2812 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2813 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2814 * mips-irix-tdep.c: New file.
2815
313fb2f6
KB
2816 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2817 (mips-irix-tdep.o, solib-irix.o): New rules.
2818 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2819 solib-irix.o.
2820 * config/mips/irix6.mt (TDEPFILES): Likewise.
2821 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2822
ab2eaf26
KB
28232002-07-26 Kevin Buettner <kevinb@redhat.com>
2824
177e4768 2825 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2826 disabled (via ``#if 0'') includes.
2827
7244546a
KB
28282002-07-26 Kevin Buettner <kevinb@redhat.com>
2829
2830 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2831 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2832 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2833 Add support for the fpscr register.
2834 * rs6000-nat.c (regmap, fetch_inferior_registers)
2835 (store_inferior_registers, fetch_core_registers): Likewise.
2836
dd7be90a
KB
28372002-07-26 Kevin Buettner <kevinb@redhat.com>
2838
2839 * rs6000-nat.c (language.h): Include.
2840 (special_regs): Delete this array.
2841 (regmap): New function.
2842 (fetch_register, store_register): Use regmap() to map gdb
2843 register numbers to ptrace register numbers. Also, use
2844 outputs from regmap() to make decisions regarding type of
2845 ptrace() call to make. In particular, don't compare against
2846 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2847 (fetch_inferior_registers, store_inferior_registers): Where
2848 possible, obtain register numbers from tdep struct. Don't
2849 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2850 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2851 (LAST_UISA_SP_REGNUM): Delete.
2852
11bf77db
KB
28532002-07-25 Kevin Buettner <kevinb@redhat.com>
2854
2855 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2856 (fetch_registers, store_register, fetch_core_registers): Don't
2857 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2858 regcache_collect() as appropriate.
2859 (find_toc_address): Format hex address with local_hex_string().
2860
06afebeb
AC
28612002-07-25 Andrew Cagney <ac131313@redhat.com>
2862
2863 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2864 bfd/elf32-frv.c.
2865
8c554d79
TT
28662002-07-24 Tom Tromey <tromey@redhat.com>
2867
2868 * jv-exp.y: Marked all strings with _().
2869 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2870 internal_error.
2871 (MethodInvocation, CastExpression, parse_number, yyerror,
2872 java_type_from_name, push_expression_name, yylex): Typo fixes.
2873
e4c242d9
DJ
28742002-07-24 Daniel Jacobowitz <drow@mvista.com>
2875
2876 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2877 (tee_file_flush, tee_file_write, tee_file_fputs)
2878 (tee_file_isatty): New.
2879 * ui-file.h (tee_file_new): Add prototype.
2880
ebf56fd3
AS
28812002-07-24 Aidan Skinner <aidan@velvet.net>
2882
2883 * ada-lang.c: Change k&r style function definitions to prototyped
2884 form.
2885 * ada-typeprint.c: Change k&r style function definitions to prototyped
2886 form.
2887 * ada-valprint.c: Change k&r style function definitions to prototyped
2888 form.
2889
7fb623f7
AC
28902002-07-24 Andrew Cagney <cagney@redhat.com>
2891
2892 * README: Remove reference to remote-bug.
2893 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2894 remote-bug.c.
2895 (m88k-nat.o): Delete rule.
2896 (m88k-tdep.o): Delete rule.
2897 (remote-bug.o): Delete rule.
2898 * MAINTAINERS: Mark as obsolete.
2899 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2900 * m88k-tdep.c: Make file obsolete.
2901 * config/m88k/m88k.mh: Ditto.
2902 * config/m88k/delta88v4.mh: Ditto.
2903 * config/m88k/delta88v4.mt: Ditto.
2904 * config/m88k/delta88.mt: Ditto.
2905 * config/m88k/delta88.mh: Ditto.
2906 * remote-bug.c: Ditto.
2907 * config/m88k/tm-delta88.h: Ditto.
2908 * config/m88k/nm-delta88v4.h: Ditto.
2909 * config/m88k/xm-delta88.h: Ditto.
2910 * config/m88k/xm-dgux.h: Ditto.
2911 * config/m88k/tm-m88k.h: Ditto.
2912 * config/m88k/nm-m88k.h: Ditto.
2913 * config/m88k/tm-delta88v4.h: Ditto.
2914 * m88k-nat.c: Ditto.
2915 * cxux-nat.c: Ditto.
2916 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2917 and m88*-*-* obsolete.
2918 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2919 m88*-*-* obsolete.
2920
37611a2b
AC
29212002-07-24 Andrew Cagney <cagney@redhat.com>
2922
2923 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2924 constant. Same for local pointer variables.
2925 (extract_signed_integer): Ditto.
2926 * defs.h (extract_unsigned_integer): Update.
2927 (extract_signed_integer): Update.
2928
1aaa5f99
AC
29292002-07-24 Andrew Cagney <cagney@redhat.com>
2930
2931 * regcache.c (regcache_raw_write): Change buf parameter to a
2932 constant void pointer.
2933 (regcache_raw_read): Change buf parameter to a void pointer.
2934 (legacy_write_register_gen): Change myaddr parameter a constant
2935 void pointer.
2936 (supply_register): Change val parameter to a const void pointer.
2937 * regcache.h (regcache_raw_write): Update declaration.
2938 (regcache_raw_read): Update declaration.
2939 (supply_register): Update declaration.
2940
b4f5539f
TT
29412002-07-24 Tom Tromey <tromey@redhat.com>
2942
2943 * defs.h (gdb_readline_wrapper): Declare.
2944 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2945 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2946 * top.c (gdb_readline_wrapper): New function.
2947 (command_line_input): Use it.
2948
0818c12a
AC
29492002-07-24 Andrew Cagney <cagney@redhat.com>
2950
2951 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2952 regcache_read and regcache_write.
2953 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2954 * regcache.c: Update.
2955 * sh-tdep.c (sh64_push_arguments): Update comment.
2956 (sh_pseudo_register_read): Update.
2957 (sh_pseudo_register_write): Update.
2958 (sh4_register_read): Update.
2959 (sh4_register_write): Update.
2960 (sh64_pseudo_register_read): Update.
2961 (sh64_pseudo_register_write): Update.
2962 (sh64_register_read): Update.
2963 (sh64_register_write): Update.
2964 * i386-tdep.c (i386_extract_return_value): Update.
2965 (i386_extract_struct_value_address): Update.
2966 (i386_extract_return_value): Update.
2967 * blockframe.c (generic_read_register_dummy): Update.
2968 (generic_call_dummy_register_unwind): Update
2969 * infrun.c (write_inferior_status_register): Update.
2970
f7321c06
JB
29712002-07-23 Jim Blandy <jimb@redhat.com>
2972
2973 * parser-defs.h (expression_context_pc): Make this extern.
2974 (Thanks to Michael Snyder.)
2975
2037aebb
AC
29762002-07-23 Andrew Cagney <ac131313@redhat.com>
2977
2978 GDB 5.2.1 released from 5.2 branch.
2979 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2980 * README: Update to mention 5.2.1.
2981
66504d44
MS
29822002-07-23 Mark Salter <msalter@redhat.com>
2983
2984 * remote.c (remote_read_bytes): Fix check for error.
2985
27bae383
KB
29862002-07-22 Kevin Buettner <kevinb@redhat.com>
2987
2988 * aix-thread.c (language.h): Include.
2989 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2990 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2991 Print newlines at end of debug messages.
2992 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2993 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2994
29952002-07-22 Kevin Buettner <kevinb@redhat.com>
2996
2997 * aix-thread.c (ppc-tdep.h): Include.
2998 (special_register_p): New function.
2999 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3000 (store_regs_user_thread): Use register number information from
3001 gdbarch_tdep struct instead of hardcoded offsets relative to
3002 FIRST_UISA_SP_REGNUM.
3003 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3004 special_register_p() instead of using FPLAST_REGNUM and
3005 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3006 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3007 will be MQ's register number.
3008
30092002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3010
3011 * aix-thread.c (ops): Rename to aix_thread_ops.
3012 (base_ops): Rename to base_target.
3013 (ops_attach): Rename to aix_thread_attach.
3014 (ops_detach): Rename to aix_thread_detach.
3015 (ops_resume): Rename to aix_thread_detach.
3016 (ops_wait): Rename to aix_thread_wait.
3017 (ops_kill): Rename to aix_thread_kill.
3018 (init_ops): Rename to init_aix_thread_ops.
3019 (ops_fetch_register): Rename to aix_thread_fetch_register.
3020 (ops_store_register): Rename to aix_thread_store_register.
3021 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3022 (ops_thread_alive): Rename to aix_thread_thread_alive.
3023 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3024 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3025 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3026 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3027 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3028 (store_regs_lib): Rename to store_regs_user_thread.
3029 (store_regs_kern): Rename to store_regs_kernel_thread.
3030
27bae383 30312002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3032
3033 * aix-thread.c (ops_prepare_to_store): Eliminate.
3034 (init_ops): Don't initialize ops.prepare_to_store.
3035 (store_regs_kern): Pre-fetch register buffers from child,
3036 because some registers may not be in the cache. Copy
3037 regs from register cache only if they are cached.
3038 (store_regs_lib): Copy regs from register cache only
3039 if they are cached.
3040 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3041 fill_gprs64): Ditto.
3042
61c5da0b
KB
30432002-07-22 Kevin Buettner <kevinb@redhat.com>
3044
3045 * aix-thread.c (gdb_assert.h): Include.
3046 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3047 register sizes (from register cache) match size of buffer holding
3048 register data.
3049 (fill_sprs32): Change parameter types to match those in the ptrace()
3050 buffer.
3051 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3052 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3053
30542002-07-22 Michael Snyder <msnyder@redhat.com>
3055
3056 * aix-thread.c (supply_sprs64): Cosmetic change.
3057 (supply_sprs32): Cosmetic change.
3058 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3059 (fill_sprs64): Use regcache_collect instead of read_register.
3060 (store_regs_lib): Use regcache_collect instead of
3061 read_register. Use fill_sprs32 instead of fill_sprs64,
3062 if debugging a 32-bit architecture.
3063 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3064 out of the register cache, instead of passing a pointer into
3065 the register cache directly to ptrace. Use regcache_collect
3066 insteaad of read_register.
3067 (ops_prepare_to_store): Use target_read_registers instead
3068 of read_register_bytes.
3069
36479eb1
AS
30702002-07-20 Aidan Skinner <aidan@velvet.net>
3071
3072 * MAINTAINERS: Add self under write after approval.
3073
80ae6ee2
AS
30742002-07-20 Aidan Skinner <aidan@velvet.net>
3075
3076 * ada-tasks.c: Change k&r style function definitions to prototyped
3077 form.
3078
8a8ab2b9
AC
30792002-07-19 Andrew Cagney <ac131313@redhat.com>
3080
3081 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3082 * x86-64-tdep.c: Include "objfiles.h".
3083 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3084 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3085
fb16b900
ML
30862002-07-17 Michal Ludvig <michal@suse.cz>
3087
3088 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3089 (update_context): Initialise cfa variable.
3090
0fe7bf7b
MS
30912002-07-17 Michael Snyder <msnyder@redhat.com>
3092
3093 * aix-thread.c: Shorten some long lines.
3094 Bring comments into line with code spec.
3095
488f131b
JB
30962002-07-18 Joel Brobecker <brobecker@gnat.com>
3097
3098 * infrun.c: Re-indent using gdb_indent.sh.
3099
46c415d2
JB
31002002-07-18 Joel Brobecker <brobecker@gnat.com>
3101
3102 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3103 Leave the indentation temporarily untouched, to minimize the diffs.
3104
cdecafbe
EZ
31052002-07-18 Elena Zannoni <ezannoni@redhat.com>
3106
3107 * stabsread.c: Make os9k sections of the code obsolete,
3108 for real this time.
3109 * stabsread.h: Make os9k sections of the code obsolete.
3110
7b6aa020
ML
31112002-07-18 Michal Ludvig <mludvig@suse.cz>
3112
09ec9b38
ML
3113 * linux-low.c (regsets_store_inferior_registers): Add free()
3114 at the end of a loop to prevent memory leak.
3115 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3116 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3117 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3118 line a comment.
4894ac5d 3119 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3120
233282cd
JB
31212002-07-17 Jim Blandy <jimb@redhat.com>
3122
3123 * macrocmd.c (info_macro_command): Remove newline from error
3124 message.
3125
7b6aa020 31262002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3127
3128 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3129 (sh_gdbarch_init): Use it for sh-dsp.
3130
f7ef9339
KB
31312002-07-16 Kevin Buettner <kevinb@redhat.com>
3132
3133 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3134 64-bit DWARF2 format.
3135
8dd72958
JB
31362002-07-16 Joel Brobecker <brobecker@gnat.com>
3137
3138 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3139 <sys/proc.h> when not available.
3140
a99a9e1b
AC
31412002-07-16 Andrew Cagney <ac131313@redhat.com>
3142
3143 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3144 * stabsread.c: Make os9k sections of the code obsolete.
3145 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3146 * config/i386/i386os9k.mt: Make file obsolete.
3147 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3148 (COMMON_OBS): Remove os9kread.o
3149 (SFILES): Remove os9kread.c.
3150 (os9kread.o, remote-os9k.o): Make target obsolete.
3151 * remote-os9k.c: Make file obsolete.
3152 * os9kread.c: Make file obsolete.
3153 * Makefile.in
3154
7a3085c1
AC
31552002-07-16 Andrew Cagney <ac131313@redhat.com>
3156
3157 * NEWS: Mention that the FR30 has been made obsolete.
3158 * fr30-tdep.c: Make file obsolete.
3159 * config/fr30/tm-fr30.h: Ditto.
3160 * config/fr30/fr30.mt: Ditto.
3161 * configure.tgt: Make fr30-*-elf obsolete.
3162 * MAINTAINERS: Make fr30-elf obsolete.
3163
28a93f5a
PM
31642002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3165
3166 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3167 found is not inside a section.
3168
be006b8b
KB
31692002-07-15 Kevin Buettner <kevinb@redhat.com>
3170
3171 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3172 strerror().
3173 (pdc_realloc): Use xrealloc() instead of realloc().
3174
14fa3751
KB
31752002-07-15 Kevin Buettner <kevinb@redhat.com>
3176
3177 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3178 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3179 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3180 macros.
3181
42cc437f
KB
31822002-07-15 Kevin Buettner <kevinb@redhat.com>
3183
3184 * aix-thread.c (ptrace_check): Eliminate goto.
3185 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3186 problem.
3187
8e2c28d4
KB
31882002-07-15 Kevin Buettner <kevinb@redhat.com>
3189
3190 * aix-thread.c (gdbcmd.h): Include.
3191 (DEBUG, DBG, DBG2, dbg): Eliminate.
3192 (debug_aix_thread): New static global.
3193 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3194 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3195 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3196 invocations to DBG and DBG2 macros to test against
3197 ``debug_aix_thread'' and call fprintf_unfiltered().
3198 (_initialize_aix_thread): Add new command "set debug aix-thread".
3199
30413464
AC
32002002-07-15 Andrew Cagney <ac131313@redhat.com>
3201
3202 From Gerhard Tonn <TON@de.ibm.com>:
3203 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3204 instead of supply_register.
3205
7c43edc1
AC
32062002-07-15 Andrew Cagney <ac131313@redhat.com>
3207
3208 * dwarf2cfi.c: Include "gdb_assert.h".
3209 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3210 non-NULL.
3211 (update_context): Do not use __func__. Add missing ``break''.
3212 (update_context): Do not use __func__.
3213
9364a0ef
EZ
32142002-07-15 Elena Zannoni <ezannoni@redhat.com>
3215
3216 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3217 and its setting. Set gdbarch instruction printing functions
3218 directly. For non-rs6000 case use new function
3219 gdb_print_insn_powerpc.
3220 (gdb_print_insn_powerpc): New function.
3221
3fbeef0b
AC
32222002-07-13 Andrew Cagney <ac131313@redhat.com>
3223
92eb23c5 3224 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3225 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3226 * configure.tgt: Mark d30v-*-* as obsolete.
3227 * d30v-tdep.c: Mark file as obsolete.
3228 * config/d30v/d30v.mt: Ditto.
3229 * config/d30v/tm-d30v.h: Ditto.
3230
aacb1f0a
AS
32312002-07-13 Aidan Skinner <aidan@velvet.net>
3232
3233 * ada-tasks.c (add_task_entry): replace calls to
3234 malloc() with xmalloc
3235 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3236
3237 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3238 ada_finish_decode_line_1, all_sals_for_line
3239 ada_breakpoint_rewrite): replace calls to free() with xfree()
3240
c11d79f2
KB
32412002-07-12 Kevin Buettner <kevinb@redhat.com>
3242
3243 From Nicholas Duffek (with minor changes by Martin Hunt,
3244 Louis Hamilton, and Kevin Buettner):
3245 * aix-thread.c: New file.
3246
8e19ed76
PS
32472002-07-12 Petr Sorfa <petrs@caldera.com>
3248
3249 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3250 complaint for invalid attribute class or form.
3251 (read_func_scope): DW_AT_frame_base
3252 better handling of DW_AT_block*.
3253 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3254 better handling of DW_AT_block*.
3255 (read_common_block): DW_AT_location
3256 better handling of DW_AT_block*.
3257 (read_partial_die): DW_AT_location better handling
3258 of DW_AT_block*.
3259 (new_symbol): DW_AT_external better handling of
3260 DW_AT_block*. Proper initialization of variable
3261 "addr".
3262 (attr_form_is_block): New function that returns true
3263 if the attribute's form is of DW_FORM_block*.
3264
295401f7
DJ
32652002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3266
3267 * valops.c (find_method_list): Remove comment about
3268 removed STATIC_MEMFUNCP argument.
3269 (value_find_oload_method_list): Likewise.
3270
e42dc924
KB
32712002-07-12 Kevin Buettner <kevinb@redhat.com>
3272
3273 From Nicholas Duffek:
3274 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3275 target_new_objfile_hook.
3276
6904b546
KB
32772002-07-12 Kevin Buettner <kevinb@redhat.com>
3278
3279 From Nicholas Duffek:
3280 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3281 csect.
3282
53fe9346
AC
32832002-07-12 Andrew Cagney <cagney@redhat.com>
3284
3285 * MAINTAINERS: Mention --enable-sim-build-warnings.
3286 (m68hc11-elf): Disable sim build warnings.
3287 (m32r-elf): Mark as broken obsolete candidate.
3288 (x86_64-linux-gnu): Mark as buildable with -Werror.
3289 (arm-elf): Change -w to ``,'' which enables warnings but not
3290 -Werror.
3291
af5f3db6
AC
32922002-07-12 Andrew Cagney <ac131313@redhat.com>
3293
3294 * bcache.h: Update copyright.
3295 (struct bstring, struct bcache): Move definition to "bcache.c".
3296 Replaced by opaque declaration.
3297 (bcache_xfree): Replace free_bcache.
3298 (bcache_xmalloc, bcache_memory_used): Declare.
3299
3300 * bcache.c: Update copyright.
3301 (struct bstring, struct bcache): Moved to here from "bcache.h".
3302 Update comments.
3303 (bcache_xmalloc, bcache_memory_used): New functions.
3304 (bcache_xfree): Replace function free_bcache.
3305
3306 * Makefile.in (objfiles.o): Add $(bcache_h).
3307 (objfiles_h): Remove $(bcache_h).
3308 (symfile.o): Add $(bcache_h).
3309
3310 * symmisc.c: Update copyright.
3311 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3312 (print_objfile_statistics): Use bcache_memory_used.
3313
3314 * symfile.c: Include "bcache.h".
3315 (reread_symbols): Use bcache_xfree.
3316 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3317 (add_psymbol_to_list): Pass psymbol_cache by value.
3318 (add_psymbol_with_dem_name_to_list): Ditto.
3319
3320 * objfiles.h: Update copyright.
3321 (struct bcache): Declare opaque. Do not include "bcache.h".
3322 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3323 bcache'' pointers.
3324 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3325
3326 * objfiles.c: Include "bcache.h". Update copyright.
3327 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3328 macro_cache.
3329 (free_objfile): Use bcache_xfree.
3330
444199e7
GS
33312002-07-11 Grace Sainsbury <graces@redhat.com>
3332
3333 * monitor.c (monitor_fetch_register): Make name a constant.
3334 (monitor_store_register): Same.
3335
261397f8
DJ
33362002-07-11 Daniel Jacobowitz <drow@mvista.com>
3337
3338 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3339 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3340 (finish_block) For non-function blocks, hash the symbol table. For
3341 function blocks, mark the symbol table as unhashed.
3342 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3343 (msymbol_hash_iw): Likewise.
3344 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3345 value.
3346 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3347 (lookup_minimal_symbol): Likewise for both.
3348 * symtab.h (struct block): Add `hashtable' flag. Comment the
3349 hashtable.
3350 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3351 (ALL_BLOCK_SYMBOLS): Update.
3352 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3353 (struct symbol): Add `hash_next' pointer.
3354 * symtab.c (lookup_block_symbol): Search using the hash table when
3355 possible.
3356 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3357 (search_symbols, find_addr_symbol): Likewise.
3358
3359 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3360 (read_dst_symtab): Likewise.
3361 * jv-lang.c (get_java_class_symtab): Likewise.
3362 * mdebugread.c: Include "gdb_assert.h".
3363 (shrink_block): Assert that the block being modified is not hashed.
3364 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3365 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3366 symbols.
3367 (dump_symtab): Recognize hashed blocks.
3368 * printcmd.c (print_frame_args): Assert that function blocks do not
3369 have hashed symbol tables.
3370 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3371 (fill_in_ada_prototype, debug_print_block): Likewise.
3372 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3373
6f0eaa01
CV
33742002-07-11 Corinna Vinschen <vinschen@redhat.com>
3375
3376 * stack.c (print_frame): Use result of frame_address_in_block()
3377 instead of fi->pc when evaluating symbols.
3378 (backtrace_command_1): Ditto.
3379
a208b0cb
AC
33802002-07-11 Andrew Cagney <cagney@redhat.com>
3381
3382 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3383 Make static.
3384
3385 * arm-tdep.c (arm_register_name): Make return type constant.
3386
a6b6b089
AC
33872002-07-10 Andrew Cagney <ac131313@redhat.com>
3388
5ae5f592
AC
3389 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3390 prototype.
3391 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3392 * s390-tdep.c (s390_fp_regnum): Ditto.
3393 (s390_read_fp): Ditto.
3394 (s390_pop_frame): Ditto.
3395 (_initialize_s390_tdep): Ditto.
3396 * remote.c (get_remote_state): Ditto.
3397 * procfs.c (mappingflags): Ditto.
3398 * memattr.c (_initialize_mem): Ditto.
3399 * mcore-tdep.c (mcore_pop_frame): Ditto.
3400 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3401 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3402 * language.c (set_case_str): Ditto.
3403 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3404 * frv-tdep.c (new_variant): Ditto.
3405 (frv_stopped_data_address): Ditto.
3406 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3407 (context_alloc): Ditto.
3408 (frame_state_alloc): Ditto.
3409 (unwind_tmp_obstack_init): Ditto.
3410 (unwind_tmp_obstack_free): Ditto.
3411 (cfi_read_fp): Ditto.
3412 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3413 (cris_pop_frame): Ditto.
3414 * c-lang.c (scanning_macro_expansion): Ditto.
3415 (finished_macro_expansion): Ditto.
3416 (c_preprocess_and_parse): Ditto.
3417 * gdbarch.sh: Ditto.
3418 * gdbarch.h, gdbarch.c: Regenerate.
3419 * config/mn10200/tm-mn10200.h: Adjust indentation.
3420 * target.c: Adjust indentation.
3421 * symtab.h: Adjust indentation.
3422 * stabsread.h: Adjust indentation.
3423 * remote-es.c: Adjust indentation.
3424 * os9kread.c: Adjust indentation.
3425
34262002-07-10 Andrew Cagney <ac131313@redhat.com>
3427
a6b6b089
AC
3428 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3429 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3430
a1789893
GS
34312002-07-10 Grace Sainsbury <graces@redhat.com>
3432
3433 * NEWS: Mention m68k, mcore multi-arching.
3434 * MAINTAINERS: Change status of m68k, mcore to reflect
3435 multi-arching.
3436
02f0d45d
DJ
34372002-07-10 Daniel Jacobowitz <drow@mvista.com>
3438
3439 * valops.c (find_overload_match): Free oload_syms.
3440
f15f768e
JB
34412002-07-09 Joel Brobecker <brobecker@gnat.com>
3442
3443 Define HAVE_SYS_PROC_H if sys/proc.h exists
3444 * configure.in: Add check for sys/proc.h
3445 * config.in: Regenerate.
3446 * configure: Regenerate.
3447
902a7139
GS
34482002-07-09 Grace Sainsbury <graces@redhat.com>
3449
3450 * config/m68k/tm-m68k.h: Remove macros wrapped in
3451 #if !GDB_MULTI_ARCH.
3452
a534e424
AC
34532002-07-08 Andrew Cagney <ac131313@redhat.com>
3454
3455 * config.in, configure: Regenerate.
3456
9b94f7bf
MK
34572002-07-08 Mark Kettenis <kettenis@gnu.org>
3458
3459 * dwarf2cfi.c: Include "gcore.h".
3460 (execute_stack_op): Fix implementation of the
3461 DW_OP_deref and DW_OP_deref_size operators by letting do their
3462 lookup in the target.
3463
1d34db41
MK
34642002-07-07 Mark Kettenis <kettenis@gnu.org>
3465
3466 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3467 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3468 tdep->sc_sp_offset.
3469
79d5b63a
DJ
34702002-07-05 Daniel Jacobowitz <drow@mvista.com>
3471
3472 Fix PR gdb/595, gdb/602
3473 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3474 Don't call value_cast, just read the vtable pointer; update comments
3475 to match.
3476
3bb912e8
GS
34772002-07-05 Grace Sainsbury <graces@redhat.com>
3478
3479 * config/mcore/tm-mcore.h: Remove file.
3480 * config/mcore/mcore.mt: Remove definition of TM_FILE
3481 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3482
ca39387d
MK
34832002-07-05 Mark Kettenis <kettenis@gnu.org>
3484
3485 * i386bsd-tdep.c: Include "gdb_string.h".
3486
efdc1108
GS
34872002-07-04 Grace Sainsbury <graces@redhat.com>
3488
3489 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3490 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3491 mcore-tdep.
3492 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3493 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3494 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3495 (RETVAL_REGNUM): Move macros from tm-mcore.h
3496 (mcore_reg_struct_has_addr): New function.
3497 (mcore_gdbarch_init): Added initializations for the macros removed
3498 from tm-mcore.h.
3499
bb21884d
MK
35002002-07-04 Mark Kettenis <kettenis@gnu.org>
3501
3502 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3503 traditonal string branding within the ELF header.
3504
228c6d41
DJ
35052002-07-04 Daniel Jacobowitz <drow@mvista.com>
3506
3507 * symtab.c (remove_params): New function.
3508 (make_symbol_overload_list): Use it instead of cplus_demangle.
3509 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3510
2404952e
MK
35112002-07-04 Mark Kettenis <kettenis@gnu.org>
3512
e5e4acad
MK
3513 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3514
baadce09
MK
3515 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3516 New variables.
3517 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3518 and tdep->sigtramp_end.
3519 * i386obsd-nat.c: New file.
3520 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3521
2404952e
MK
3522 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3523 Don't call get_current_frame().
3524
9b4f1ba7
PM
35252002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3526
3527 * i386-nat.c (child_post_startup_inferior): New function
3528 calling i386_cleanup_dregs if
3529 I386_USE_GENERIC_WATCHPOINTS is defined.
3530 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3531 conditional to acknowledge that i386-nat.c has its
3532 own child_post_startup_inferior function.
3533
c0d1d883
MK
35342002-07-04 Mark Kettenis <kettenis@gnu.org>
3535
00f8375e
MK
3536 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3537 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3538 instead of MAX_REGISTER_RAW_SIZE.
3539 (i386_extract_return_value, i386_extract_struct_value_address):
3540 Convert to use regcache.
3541 (i386_gdbarch_init): Set max_register_raw_size and
3542 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3543 Set extract_return_value and extract_struct_value_address instead
3544 of their deprecated variants.
3545
c0d1d883
MK
3546 Convert i386 target to generic dummy frames.
3547 * i386-tdep.c: Include "symfile.h".
3548 (i386_frameless_signal_p): Consider a function to be frameless if
3549 the pc points at the first instruction of the function.
3550 (i386_frame_chain): Handle (generic) call dummies.
3551 (i386_frame_saved_pc): Likewise.
3552 (i386_frame_init_saved_regs): Remove code dealing with call
3553 dummies on the stack.
3554 (i386_push_dummy_frame): Removed.
3555 (i386_call_dummy_words): Removed.
3556 (i386_fix_call_dummy): Removed.
3557 (i386_push_return_address): New function.
3558 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3559 parameter, and don't call get_current_frame.
3560 (i386_pop_frame): New function.
3561 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3562 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3563 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3564 call_dummy_length to 0, set call_dummy_words to NULL, set
3565 sizeof_call_dummy_words to 0, set fix_call_dummy to
3566 generic_fix_call_dummy, set pc_in_call_dummy to
3567 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3568 generic_push_dummy_frame, set push_return_address to
3569 i386_push_return_address and set frame_chain_valid to
3570 generic_file_frame_chain_valid.
3571
049ee0e4
AC
35722002-07-03 Andrew Cagney <ac131313@redhat.com>
3573
3574 * gdbarch.sh (struct regcache): Add opaque declaration.
3575 (EXTRACT_RETURN_VALUE): New architecture method.
3576 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3577 * gdbarch.h, gdbarch.c: Regenerate.
3578 * arch-utils.c (legacy_extract_return_value): New function.
3579 * arch-utils.h (legacy_extract_return_value): Declare.
3580 * values.c (value_being_returned): Re-enable code handling
3581 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3582 deprecated_grub_regcache_for_registers call to block handling
3583 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3584 (EXTRACT_RETURN_VALUE): Do not define.
3585
4e0d9804
GS
35862002-07-03 Grace Sainsbury <graces@redhat.com>
3587
3588 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3589 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3590 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3591 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3592 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3593 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3594 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3595 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3596 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3597 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3598 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3599 argument so the function fits the prototype in the architecture
3600 vector.
3601 (mcore_pop_frame): Remove argument so the function fits the
3602 prototype. Use get_current_frame instead of the argument.
3603 (mcore_push_arguments): Change type of struct_return so the
3604 function can be used in the architecture vector.
3605 (mcore_store_struct_return): Add.
3606 (mcore_frame_init_saved_regs): Add.
3607 (mcore_gdbarch_init): Add function calls to replace the macros
3608 removed from tm-mcore.h
3609
36160dc4
AC
36102002-07-03 Andrew Cagney <ac131313@redhat.com>
3611
3612 * infcmd.c (print_return_value): Remove compatibility code calling
3613 deprecated_grub_regcache_for_registers.
3614
3615 * values.c: Include "regcache.h".
3616 (value_being_returned): Update. Use
3617 deprecated_grub_regcache_for_registers to extract the register
3618 buffer address.
3619 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3620 ``struct regcache''.
3621 * Makefile.in (values.o): Add dependency on $(regcache_h).
3622
3623 * inferior.h (run_stack_dummy): Change type of second parameter to
3624 a ``struct regcache''.
3625 * valops.c (hand_function_call): Change type of retbuf to ``struct
3626 regcache''. Allocate using regcache_xmalloc, clean using
3627 make_cleanup_regcache_xfree.
3628 * infcmd.c (run_stack_dummy): Update. Use
3629 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3630
3631 * regcache.c (do_regcache_xfree): New function.
3632 (make_cleanup_regcache_xfree): New function.
3633 * regcache.h (make_cleanup_regcache_xfree): Declare.
3634
e64d9b3d
MH
36352002-07-03 Martin M. Hunt <hunt@redhat.com>
3636
4dd79c29
MH
3637 * event-top.c (command_line_handler): Don't read past
3638 beginning of buffer.
e64d9b3d 3639
4dd79c29
MH
36402002-07-03 Martin M. Hunt <hunt@redhat.com>
3641
e64d9b3d
MH
3642 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3643 struct frame_id.
3644 (varobj_create): Store frame_id for root.
3645 (varobj_gen_name): Use xasprintf.
3646 (varobj_update): Save and restore frame using get_frame_id() and
3647 frame_find_by_id().
3648 (create_child): Use xasprintf.
3649 (new_root_variable): Initialize frame_id.
3650 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3651 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3652 to prevent memory leak.
3653
26e6c56a
AC
36542002-07-03 Andrew Cagney <ac131313@redhat.com>
3655
3656 * valops.c (hand_function_call): Move declaration of retbuf to
3657 start of function, allocate using malloc, add a cleanup but before
3658 the inf_status cleanup, cleanup the buffer. Rename local variable
3659 old_chain to inf_status_cleanup.
3660
f436dd25
MH
36612002-07-03 Martin M. Hunt <hunt@redhat.com>
3662
3663 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3664
3665 * cli/cli-decode.c (cmd_func_p): New function.
3666 (cmd_func): New function.
3667
3668 * command.h: Add cmd_func() and cmd_func_p().
3669
4cfe2084
GS
36702002-07-03 Grace Sainsbury <graces@redhat.com>
3671
3672 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3673 (REGISTER_SIZE): Remove.
3674 (MAX_REGISTER_RAW_SIZE): Remove.
3675 (REGISTER_VIRTUAL_TYPE): Remove.
3676 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3677 (REGISTER_NAME): Remove.
3678 (USE_GENERIC_DUMMY_FRAMES): Remove.
3679 (CALL_DUMMY): Remove.
3680 (CALL_DUMMY_START_OFFSET): Remove.
3681 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3682 (CALL_DUMMY_LOCATION): Remove.
3683 (FIX_CALL_DUMMY): Remove.
3684 (CALL_DUMMY_ADDRESS): Remove.
3685 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3686 (SAVE_DUMMY_FRAME_TOS): Remove.
3687 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3688 (mcore_register_virtual_type): New function.
3689 (mcore_register_byte): New function.
3690 (mcore_register_size): New function.
3691 (mcore_register_name): New function.
3692 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3693 macros removed from tm-mcore.h.
3694 (mcore_dump_tdep): Add.
3695 (_initialize_mcore_tdep): Add gdbarch_register call.
3696
4fd667e9
MK
36972002-07-03 Mark Kettenis <kettenis@gnu.org>
3698
3699 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3700 frameless_look_for_prologue, such that we actually call this
3701 function.
3702
42f99ac2
JB
37032002-07-02 Joel Brobecker <brobecker@gnat.com>
3704
3705 * frame.h (frame_address_in_block): New function.
3706
3707 * blockframe.c (frame_address_in_block): New function extracted
3708 from get_frame_block().
3709 (get_frame_block): Use frame_address_in_block().
3710 (block_innermost_frame): Use frame_address_in_block() to match
3711 the frame pc address against the block boundaries rather than
3712 the frame pc directly. This prevents a failure when a frame pc
3713 is actually a return-address pointing immediately after the end
3714 of the given block.
3715
103a1597 37162002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3717
3718 * MAINTAINERS: Add self under write after approval.
3719
37202002-07-02 Grace Sainsbury <graces@redhat.com>
3721
103a1597
GS
3722 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3723 used in architecture vector. The default is
3724 m68k_local_breakpoint_from_pc.
3725 (m68k_local_breakpoint_from_pc): Add.
3726 (enum): Add register numbers from tm-m68k.h.
3727 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3728 vector.
3729 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3730 GDB_MULTI_ARCH_PARTIAL.
3731 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3732 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3733 m68k-tdep.c.
3734 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3735 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3736 to enum in m68k-tdep.c
3737
7a5a0534
JB
37382002-07-02 Joel Brobecker <brobecker@gnat.com>
3739
3740 * solib-osf.c (open_map): Compute the list of shared libraries
3741 loaded by the inferior, rather than the list of libraries loaded
3742 by GDB itself. Otherwise, GDB ends up reading the symbols from
3743 the wrong shared libraries...
3744
6f558d74
MK
37452002-07-02 Mark Kettenis <kettenis@gnu.org>
3746
b7d15bf7
MK
3747 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3748 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3749 macros.
3750 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3751 Remove functions.
3752 (FRAMELESS_SIGNAL): Remove function.
3753 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3754 i386_linux_saved_pc_after_call): Removed.
3755 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3756 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3757 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3758
6bff26de
MK
3759 * i386-tdep.c (i386_frameless_signal_p): New function.
3760 (i386_frame_chain): Deal with frameless signals.
3761 (i386_sigtramp_saved_sp): New function.
3762 (i386_frame_saved_pc): Deal with frameless signals.
3763 (i386_saved_pc_after_call): Make sure the correct value is
3764 returned just after entry into a sigtramp.
3765 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3766 i386fbsd4_sc_sp_offset): New variables.
3767 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3768 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3769 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3770 similiar to what we already did for sc_pc_offset.
3771 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3772 tdep->sc_sp_offset.
3773
6f558d74
MK
3774 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3775
145564b7
ML
37762002-07-02 Michal Ludvig <mludvig@suse.cz>
3777
3778 * config/i386/tm-x86-64linux.h: New.
3779 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3780 definitions.
3781 * config/i386/nm-x86-64.h: Rename to ...
3782 * config/i386/nm-x86-64linux.h: ... this one.
3783 * config/i386/x86-64linux.mh: Reflect the above change.
3784
3a1e71e3
MK
37852002-07-01 Mark Kettenis <kettenis@gnu.org>
3786
21d0e8a4
MK
3787 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3788 with sigcontext_addr. Add sc_sp_offset.
3789 (i386bsd_sigtramp_saved_pc): Remove prototype.
3790 (i386bsd_sicontext_addr): Add prototype.
3791 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3792 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3793 (i386_svr4_sigtramp_saved_pc): Removed.
3794 (i386_svr4_sigcontext_addr): New function.
3795 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3796 Initialize tdep->sigcontext_addr instead. Initialize
3797 tdep->sc_pc_offset and tdep->sc_sp_offset.
3798 (i386_gdbarch_init): Likewise.
3799 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3800 any more.
3801 (i386bsd_sigtramp_saved_pc): Remove function.
3802 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3803 Initialize tdep->sigcontext_addr instead. Initialize
3804 tdep->sc_pc_offset.
3805 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3806 of tdep->sigtramp_saved_pc.
3807 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3808 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3809 instead.
3810
3a1e71e3
MK
3811 * i386-tdep.c (i386_frameless_function_invocation,
3812 i386_frame_num_args, i386_frame_init_saved_regs,
3813 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3814 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3815 i386_extract_return_value, i386_store_return_value,
3816 i386_extract_struct_value_address, i386_register_virtual_type,
3817 i386_register_convertible, i386_register_convert_to_virtual,
3818 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3819 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3820 static.
3821
52e9098c
MK
38222002-07-01 Mark Kettenis <kettenis@gnu.org>
3823
77b13a25
MK
3824 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3825
52e9098c
MK
3826 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3827 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3828 this macro. Include "value.h".
3829
1b372fff
AS
38302002-06-30 Aidan Skinner <aidan@velvet.net>
3831
3832 * ada-exp.tab.c: remove as it's a generated file
3833 * ada-lex.c: remove as it's a generated file
3834
9c5045b5
MK
38352002-06-30 Mark Kettenis <kettenis@gnu.org>
3836
4a93c5bb
MK
3837 * config/i386/tm-i386.h (struct frame_info, struct
3838 frame_saved_regs, struct value, struct type): Remove forward
3839 declarations.
3840
322d4fe0
MK
3841 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3842 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3843 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3844 (FILL_FPXREGSET): Define.
3845
fdd8263d
MK
3846 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3847
482e577b
MK
3848 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3849 i[3456]86-*-netbsd* case.
3850 * config/i386/tm-obsd.h: Removed.
3851 * config/i386/obsd.mt: Removed.
3852 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3853 core-aout.o.
3854 (MH_CFLAGS): Add -DYYDEBUG=0.
3855
6916549a
MK
3856 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3857 i386nbsd_sc_pc_offset on OpenBSD too.
3858
9c5045b5
MK
3859 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3860 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3861 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3862 define.
3863 * i386bsd-tdep.c: Include "arch-utils.h".
3864 (i386bsd_aout_in_solib_call_trampoline): New function.
3865 (i386bsd_init_abi): Set in_solib_call_trampoline to
3866 i386bsd_aout_in_solib_call_trampoline.
3867 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3868 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3869
aa84d1bb
AC
38702002-06-28 Andrew Cagney <ac131313@redhat.com>
3871
3872 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3873 (struct obstack, struct bcache): Add opaque declarations.
3874 * Makefile.in (macrotab_h): Update
3875
b4d83933
AC
38762002-06-28 Andrew Cagney <ac131313@redhat.com>
3877
3878 * blockframe.c (generic_find_dummy_frame): Change return type to
3879 ``struct regcache''.
3880 (struct dummy_frame): Replace field ``registers'' with regcache, a
3881 struct regcache object.
3882 (generic_find_dummy_frame): Update.
3883 (generic_push_dummy_frame): Update. Use regcache_xfree,
3884 regcache_xmalloc and regcache_cpy.
3885 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3886 regcache_xfree.
3887 (deprecated_generic_find_dummy_frame): Update.
3888 (generic_read_register_dummy): Update. Use
3889 regcache_read_as_address.
3890 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3891 (generic_get_saved_register): Update. Use regcache_read.
3892
08c0b5bc
AC
38932002-06-28 Andrew Cagney <ac131313@redhat.com>
3894
3895 * Makefile.in (objfiles_h): Add $(bcache_h).
3896 * objfiles.h: Include "bcache.h".
3897
3898 * Makefile.in (symtab_h): Remove $(bcache_h).
3899 * symtab.h: Do not include "bcache.h".
3900
1f89801a
AC
39012002-06-28 Andrew Cagney <ac131313@redhat.com>
3902
3903 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3904 generic_func_frame_chain_valid.
3905
b9644b58
DB
39062002-06-28 David O'Brien <obrien@FreeBSD.org>
3907
3908 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3909 * config/i386/tm-fbsd.h: Likewise.
3910
dd486634
AC
39112002-06-28 Andrew Cagney <ac131313@redhat.com>
3912
3913 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3914 generic_unwind_get_saved_register.
3915
0b434a00
AC
39162002-06-27 Andrew Cagney <ac131313@redhat.com>
3917
3918 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3919 * regcache.c (supply_register): Add missing argument to
3920 register_buffer call.
3921
f30e5a77
AC
39222002-06-27 Andrew Cagney <ac131313@redhat.com>
3923
3924 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3925 Solaris /bin/grep does not not like it. From Peter Schauer.
3926
9f064c95
TT
39272002-06-26 Tom Tromey <tromey@redhat.com>
3928
3929 * command.h (add_setshow_cmd): Declare.
3930 (add_setshow_cmd_full): Declare.
3931 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3932 returns void. Use add_setshow_cmd_full.
3933 (add_setshow_cmd_full): New function.
3934 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3935 (add_setshow_boolean_cmd): Likewise.
3936
099c7589
JT
39372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3938
3939 * config/vax/tm-vax.h: Protect from multiple inclusion.
3940 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3941 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3942 * config/vax/tm-vaxbsd.h: ...here. New file.
3943 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3944
1d049c5e
JT
39452002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3946
3947 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3948 (BELIEVE_PCC_PROMOTION): Remove.
3949 (AP_REGNUM): Move to...
3950 * config/vax/nm-vax.h: ...here.
3951 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3952 (vax_breakpoint_from_pc): New function.
3953 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3954 and gdbarch_believe_pcc_promotion.
3955
4791e091
JT
39562002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3957
3958 * Makefile.in (vax_tdep_h): Define.
3959 (vax-tdep.o): Use $(vax_tdep_h).
3960 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3961 (vax_dump_tdep): New function.
3962 (_initialize_vax_tdep): Register vax_dump_tdep.
3963 * vax-tdep.h: Include osabi.h.
3964 (struct gdbarch_tdep): New.
3965
da130f98
AC
39662002-06-26 Andrew Cagney <cagney@redhat.com>
3967
3968 * frame.h (deprecated_generic_find_dummy_frame): Rename
3969 generic_find_dummy_frame.
3970 * blockframe.c (generic_find_dummy_frame): Make static.
3971 (deprecated_generic_find_dummy_frame): New function.
3972 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3973 generic_find_dummy_frame with deprecated_find_dummy_frame.
3974 (sh64_nofp_frame_init_saved_regs): Ditto.
3975 (sh_fp_frame_init_saved_regs): Ditto.
3976 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3977 (s390_frame_chain): Ditto.
3978 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3979
6300c360
GS
39802002-06-26 Grace Sainsbury <graces@redhat.com>
3981
3982 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3983 gdbarch vector are at the top.
3984 (NUM_REGS): Remove.
3985 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3986 (FRAME_ARGS_ADDRESS): Remove.
3987 (FRAME_LOCALS_ADDRESS): Remove.
3988 (FRAME_NUM_ARGS): Remove.
3989 (FRAME_ARGS_SKIP): Remove.
3990 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3991 (m68k_gdbarch_init): Add gdbarch initializations for macros
3992 undefined in tm-m68k.h
3993
1c617db8
GS
39942002-06-26 Grace Sainsbury <graces@redhat.com>
3995
3996 * monitor.h: Add the function regname to monitor_ops
3997 structure. This way NUM_REGS does not have to be a constant.
3998 * monitor.c (monitor_fetch_register): Added support for regname
3999 function. The function is called if the array regnames is NULL.
4000 (monitor_store_register): Same.
da130f98
AC
4001 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4002 regnames array.
1c617db8
GS
4003 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4004 cpu32bug_cmds.regname to point to new function.
4005 * abug-rom.c (abug_regname): Same as above.
4006 (init_abug_cmds): Same.
4007 * dbug-rom.c (dbug_regname): Same as above.
4008 (init_dbug_cmds): Same.
4009 * remote-est.c (est_regname): Same.
4010 (init_est_cmds): Same.
4011 * rom68k-rom.c (rom68k_regname): Same.
4012 (init_rom68k_cmds): Same.
4013
ea9365bb
TT
40142002-06-25 Tom Tromey <tromey@redhat.com>
4015
4016 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4017
72cec141
AC
40182002-06-25 Andrew Cagney <cagney@redhat.com>
4019
4020 * infrun.c (stop_registers): Change variable's type to ``struct
4021 regcache'''.
4022 (xmalloc_inferior_status): Delete function.
4023 (free_inferior_status): Delete function.
4024 (normal_stop): Use regcache_cpy.
4025 (struct inferior_status): Change type of fields ``stop_registers''
4026 and ``registers'' to ``struct regcache''.
4027 (write_inferior_status_register): Use regcache_write.
4028 (save_inferior_status): Instead of calling
4029 xmalloc_inferior_status, allocate the inf_status buffer directly.
4030 Use regcache_dup_no_passthrough and regcache_dup to save the
4031 buffers.
4032 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4033 Replace the stop_registers regcache instead of overriding it. Use
4034 regcache_xfree. Instead of calling free_inferior_status, xfree
4035 the buffer directly.
4036 (discard_inferior_status): Use regcache_xfree. Instead of calling
4037 free_inferior_status, xfree the buffer directly.
4038 (build_infrun): Use regcache_xmalloc.
4039 (_initialize_infrun): Delete redundant call to build_infrun.
4040
4041 * Makefile.in (infcmd.o): Add $(regcache_h).
4042
4043 * infcmd.c: Include "regcache.h".
4044 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4045 obtain the address of `stop_registers' register buffer.
4046 (print_return_value): Ditto.
4047
4048 * inferior.h (struct regcache): Add opaque declaration.
4049 (stop_registers): Change variable's declared type to ``struct
4050 regcache''.
4051
defc6f8c
TT
40522002-06-24 Tom Tromey <tromey@redhat.com>
4053
c0e624e7
TT
4054 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4055 * target.c (initialize_targets): Fixed typo in
4056 trust-readonly-sections `show' documentation.
4057
defc6f8c
TT
4058 * main.c: Marked all strings with _().
4059
2b236d82
DH
40602002-06-24 Don Howard <dhoward@redhat.com>
4061
4062 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4063 that means max CORE_ADDR+1.
4064 (lookup_mem_region): Ditto.
4065 (mem_info_command): Ditto.
4066
942dc0e9
GS
40672002-06-24 Grace Sainsbury <graces@redhat.com>
4068
4069 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4070 (REGISTER_BYTES_OK): Remove.
4071 (REGISTER_BYTES): Remove.
4072 (STORE_STRUCT_RETURN): Remove.
4073 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4074 (STORE_RETURN_VALUE): Remove.
4075 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4076 (FRAME_CHAIN): Remove.
4077 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4078 (FRAME_SAVED_PC): Remove.
4079 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4080 (m68k_store_struct_return): Add.
4081 (m68k_deprecated_extract_return_value): Add.
4082 (m68k_deprecated_extract_struct_value_address): Add.
4083 (m68k_store_return_value): Add.
4084 (m68k_frame_chain): Add.
4085 (m68k_frameless_function_invocation): Add.
4086 (m68k_frame_saved_pc): Add.
4087 (m68k_gdbarch_init): added set_gdbarch calls for new
4088 functions and deleted macros.
4089
03c30d4d
TT
40902002-06-23 Tom Tromey <tromey@redhat.com>
4091
4092 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4093 (ALLDEPFILES): Likewise.
4094 (udiheaders): Removed.
4095 (udip2soc.o): Likewise.
4096 (udi2go32.o): Likewise.
4097 (udr.o): Likewise.
4098 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4099
37e71372
AC
41002002-06-22 Andrew Cagney <ac131313@redhat.com>
4101
06a6ac57
AC
4102 * infrun.c (_initialize_infrun): Delete unnecessary call to
4103 build_infrun.
4104
37e71372
AC
4105 * regcache.h: Update comments describing the regcache_cpy family
4106 of functions.
4107 (regcache_save, regcache_restore): Delete declaration.
4108 (regcache_save_no_passthrough): Delete declaration.
4109 (regcache_restore_no_passthrough): Delete declaration.
4110 * regcache.c (regcache_save): Delete function.
4111 (regcache_save_no_passthrough): Delete function.
4112 (regcache_restore): Delete function.
4113 (regcache_restore_no_passthrough): Delete function.
4114
78f6d055
AC
41152002-06-21 Andrew Cagney <ac131313@redhat.com>
4116
4117 * config/m68k/tm-m68k.h: Fix typo.
4118 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4119 (m68k_frame_init_saved_regs): Declare.
4120
78b119cb
JB
41212002-06-21 Jim Blandy <jimb@redhat.com>
4122
4123 Remove some vestiges of Harris 88k support.
4124 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4125 register numbering quirk.
4126 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4127 odd symbols occurring in Harris 88k ELF targets.
4128
0fbb3da7
TT
41292002-06-21 Tom Tromey <tromey@redhat.com>
4130
4131 * gdb_locale.h: New file.
4132 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4133 (defs_h): Added gdb_locale.h.
4134 * configure, config.in: Rebuilt.
4135 * configure.in (PACKAGE): Define.
4136 * defs.h: Include gdb_locale.h.
4137 * main.c (captured_main): Call setlocale, bindtextdomain,
4138 textdomain.
4139
456f8b9d
DB
41402002-06-21 Dave Brolley <brolley@redhat.com>
4141
4142 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4143 * config/frv/frv.mt: New file.
4144 * config/frv/tm-frv.h: New file.
4145 * configure.tgt: Support frv-*-*.
4146 * Makefile.in (frv-tdep.o): New target.
4147 * frv-tdep.c: New file.
4148 * NEWS: Mention frv.
4149
cdd463f9
DB
41502002-06-21 Dave Brolley <brolley@redhat.com>
4151
4152 * MAINTAINERS: Add self to "Write After Approval" list.
4153
5d3ed2e3
GS
41542002-06-21 Grace Sainsbury <graces@redhat.com>
4155
4156 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4157 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4158 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4159 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4160 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4161
4162 * m68k-tdep.c: Include arch-utils.h
4163 (m68k_register_raw_size): Add.
4164 (m68k_register_virtual_size): Add.
4165 (m68k_register_virtual_type): Add.
4166 (m68k_register_name): Add.
4167 (m68k_stack_align): Add.
4168 (m68k_register_byte): Add.
4169 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4170 tm-m68k.h.
4171
7f8e7424
GS
41722002-06-21 Grace Sainsbury <graces@redhat.com>
4173
a2c6a6d5 4174 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4175 m68k_find_saved_regs.
4176 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4177 references to it with frame->saved_regs.
7f8e7424
GS
4178 (m68k_gdbarch_init): Added function calls to initialize the
4179 gdbarch structure.
a2c6a6d5
GS
4180 (m68k_fix_call_dummy): Add.
4181 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4182 (CALL_DUMMY): Remove.
4183 (CALL_DUMMY_LENGTH): Remove.
4184 (CALL_DUMMY_START_OFFSET): Remove.
4185 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4186 (FIX_CALL_DUMMY): Remove.
4187 (PUSH_DUMMY_FRAME): Remove.
4188 (POP_FRAME): Remove.
7f8e7424 4189
f461f5cf
PM
41902002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4191
4192 * parse.c (parse_fprintf): New function used to avoid calls to
4193 fprintf in bison parser generated debug code.
4194 * parser-defs.h: Declaration of new parse_fprintf function.
4195 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4196 Set YYDEBUG to 1 by default.
4197 Set YYFPRINTF as parse_fprintf.
4198
7f0c12ed
ML
41992002-06-21 Michal Ludvig <mludvig@suse.cz>
4200
4201 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4202 encoding anymore.
4203 (pointer_encoding, enum ptr_encoding): New.
4204 (execute_cfa_program): Take care about pointer encoding.
4205 (dwarf2_build_frame_info): Only call parse_frame_info for
4206 .debug_frame and .eh_frame.
4207 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4208 fixed augmentation handling, added relative addressing,
4209 ignore duplicate FDEs. Added comments.
19d833a2 4210 * dwarf2cfi.c: Reindented.
7f0c12ed 4211
87c4a039
EZ
42122002-06-20 Elena Zannoni <ezannoni@redhat.com>
4213
4214 * event-top.c (command_handler): Don't use space_at_cmd_start
4215 unless there is sbrk() on the host. Assign time and space data
4216 to union fields of the appropriate length.
4217
1cf877ad
ML
42182002-06-20 Michal Ludvig <mludvig@suse.cz>
4219
4220 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4221 x86_64_register_name. Return type changed to 'const char *'.
4222 (x86_64_register_name2nr): Rename to x86_64_register_number.
4223 (x86_64_gdbarch_init): Update to reflect the change.
4224 * x86-64-tdep.h: Ditto.
4225 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4226 (supply_fpregset): Ditto.
4227
3fadccb3
AC
42282002-06-19 Andrew Cagney <cagney@redhat.com>
4229
4230 * regcache.h: Update copyright.
4231 (struct regcache, struct gdbarch): Add opaque declarations.
4232 (current_regcache): Declare global variable.
4233 (regcache_read, regcache_write): Add gdbarch parameter.
4234 (regcache_save, regcache_save_no_passthrough)
4235 (regcache_restore, regcache_restore_no_passthrough)
4236 (regcache_dup, regcache_dup_no_passthrough)
4237 (regcache_cpy, regcache_cpy_no_passthrough)
4238 (deprecated_grub_regcache_for_registers)
4239 (deprecated_grub_regcache_for_register_valid)
4240 (regcache_valid_p): Add function declarations.
4241
4242 * regcache.c: Update copyright.
4243 (regcache_descr_handle): New global variable.
4244 (struct regcache_descr): Define.
4245 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4246 (regcache_descr, xfree_regcache_descr): New functions.
4247 (struct regcache): Define.
4248 (regcache_xmalloc, regcache_xfree): New functions.
4249 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4250 (regcache_dup, regcache_dup_no_passthrough): New functions.
4251 (regcache_valid_p, regcache_read_as_address): New functions.
4252 (deprecated_grub_regcache_for_registers): New function.
4253 (deprecated_grub_regcache_for_register_valid): New function.
4254 (current_regcache): New global variable.
4255 (register_buffer): Add regcache parameter. Update calls.
4256 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4257 (read_register_gen, write_register_gen): Update register_buffer
4258 call. Test for legacy_p instead of gdbarch_register_read_p or
4259 gdbarch_register_write_p.
4260 (regcache_collect): Update register_buffer call.
4261 (build_regcache): Rewrite. Use deprecated grub functions.
4262 (regcache_save, regcache_save_no_passthrough): New functions.
4263 (regcache_restore, regcache_restore_no_passthrough): New
4264 functions.
4265 (_initialize_regcache): Create the regcache_data_handle. Swap
4266 current_regcache global variable.
4267
4268 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4269 parameter to regcache_read and regcache_write calls.
4270 (sh4_register_read): Ditto.
4271 (sh64_pseudo_register_read): Ditto.
4272 (sh64_register_read): Ditto.
4273 (sh_pseudo_register_write): Ditto.
4274 (sh4_register_write): Ditto.
4275 (sh64_pseudo_register_write): Ditto.
4276 (sh64_register_write): Ditto.
4277
4278 * defs.h (XCALLOC): Define.
4279
152d9db6
GS
42802002-06-19 Grace Sainsbury <graces@redhat.com>
4281
4282 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4283 * m68k-tdep.c (m68k_gdbarch_init): Added.
4284 (m68k_dump_tdep): Added.
4285
170911c7
DJ
42862002-06-19 Daniel Jacobowitz <drow@mvista.com>
4287
4288 * ada-lang.c (fill_in_ada_prototype): Update comment.
4289
2e4ebe70
DJ
42902002-06-19 Daniel Jacobowitz <drow@mvista.com>
4291
4292 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4293 MIPS_ABI_LAST.
4294 (mips_abi_string, mips_abi_strings): New.
4295 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4296 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4297 tdep->mips_abi_string. Honor mips_abi_string. Default to
4298 O32 if no ABI is found.
4299 (mips_dump_tdep): Use mips_abi_strings.
4300 (mips_abi_update): New function.
4301 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4302 ``set mips abi'' and ``show mips abi''. Check the size of
4303 mips_abi_strings.
4304
16775908
AC
43052002-06-19 Andrew Cagney <cagney@redhat.com>
4306
4307 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4308 constant.
4309
5051bfa4 43102002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4311
5051bfa4
JB
4312 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4313 current frame using only the first stack size adjustment. All
4314 subsequent size adjustments are not considered to be part of
4315 the "static" part of the current frame.
4316 Compute the address of the saved registers relative to the
4317 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4318 in use in this frame.
4319
56468235
DH
43202002-06-18 Don Howard <dhoward@redhat.com>
4321
4322 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4323 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4324 suggesting this solution.
4325
0b624158
AC
43262002-06-18 Andrew Cagney <ac131313@redhat.com>
4327
4328 * config/romp/xm-rtbsd.h: Delete file.
4329 * config/romp/rtbsd.mh: Delete file.
4330
221ea385
KS
43312002-06-18 Keith Seitz <keiths@redhat.com>
4332
4333 * breakpoint.c (condition_command): Post breakpoint_modify
4334 when a condition is added to an existing breakpoint.
4335 (commands_command): Likewise for commands.
4336 (set_ignore_count): Likewise for ignore counts.
4337 If no tty, do not simply return, still need to send event
4338 notification.
4339 (ignore_command): Only print a newline if the command came
4340 from a tty.
4341 Don't call breakpoints_changed, since this is now properly
4342 handled by set_ignore_count.
4343
5402eed1
AC
43442002-06-18 Andrew Cagney <cagney@redhat.com>
4345
4346 * MAINTAINERS: Note that cris-elf target can be compiled with
4347 -Werror.
4348 * cris-tdep.c (cris_register_name): Make return type constant.
4349 (cris_breakpoint_from_pc): Ditto.
4350
cc22880b
ML
43512002-06-18 Michal Ludvig <mludvig@suse.cz>
4352
4353 * frame.h (struct frame_info): Change type of context to
4354 'struct context'.
4355
fa88f677
AC
43562002-06-17 Andrew Cagney <cagney@redhat.com>
4357
4358 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4359 pointer.
4360 * gdbarch.h, gdbarch.c: Regenerate.
4361 * config/mips/tm-mips.h (mips_register_name): Update.
4362 * i386-tdep.h (i386_register_name): Update.
4363 * mips-tdep.c (mips_register_name): Update
4364 * alpha-tdep.c (alpha_register_name): Update.
4365 * arch-utils.c (legacy_register_name): Update.
4366 * arch-utils.h (legacy_register_name): Update.
4367 * avr-tdep.c (avr_register_name): Update.
4368 * ia64-tdep.c (ia64_register_name): Update.
4369 * i386-tdep.c (i386_register_name): Update.
4370 * sparc-tdep.c (sparc32_register_name): Update.
4371 (sparc64_register_name): Update.
4372 (sparclite_register_name): Update.
4373 (sparclet_register_name): Update.
4374 * sh-tdep.c (sh_generic_register_name): Update.
4375 (sh_sh_register_name): Update.
4376 (sh_sh3_register_name): Update.
4377 (sh_sh3e_register_name): Update.
4378 (sh_sh_dsp_register_name): Update.
4379 (sh_sh3_dsp_register_name): Update.
4380 (sh_sh4_register_name): Update.
4381 (sh_sh64_register_name): Update.
4382 * s390-tdep.c (s390_register_name): Update.
4383 * rs6000-tdep.c (rs6000_register_name): Update.
4384 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4385 (ns32k_register_name_32382): Update.
4386 * d10v-tdep.c (d10v_ts2_register_name): Update.
4387 (d10v_ts3_register_name): Update.
4388 * xstormy16-tdep.c (xstormy16_register_name): Update.
4389 * vax-tdep.c (vax_register_name): Update.
4390 * v850-tdep.c (v850_register_name): Update.
4391 * m68hc11-tdep.c (m68hc11_register_name): Update.
4392 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4393 (am33_register_name): Update.
4394
ea1e7ef6
GS
43952002-06-17 Grace Sainsbury <graces@redhat.com>
4396
4397 * m68k-tdep.c: Reindented.
4398
9b02dd1b
AC
43992002-06-17 Andrew Cagney <ac131313@redhat.com>
4400
4401 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4402 list of predefined types.
4403
8758dec1
MK
44042002-06-16 Mark Kettenis <kettenis@gnu.org>
4405
b6197528
MK
4406 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4407 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4408 REGISTER_CONVERT_TO_RAW): Remove defines.
4409 (i386_register_virtual_type, i386_register_convertible,
4410 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4411 Remove prototypes.
4412 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4413 macros mentioned above.
4414
82b47e62
MK
4415 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4416 (i386lynx_saved_pc_after_call): Remove prototype.
4417 * i386ly-tdep.c: Include "i386-tdep.h".
4418 (i386lynx_saved_pc_after_call): Make static. Use
4419 read_memory_nobpt instead of read_memory. Use
4420 read_memory_unsigned_integer instead of read_memory_integer.
4421 (i386lynx_init_abi): New function.
4422 (i386lynx_coff_osabi_sniffer): New function.
4423 (_initialize_i386bsd_tdep): New function.
4424
8758dec1
MK
4425 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4426 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4427 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4428 (i386_fix_call_dummy): Remove prototype.
4429 * i386-tdep.c (i386_call_dummy_words): New variable.
4430 (i386_gdbarch_init): Adjust for removal of the
4431 macros mentioned above.
4432
e9e68a56
AC
44332002-06-15 Andrew Cagney <ac131313@redhat.com>
4434
4435 * command.h (add_setshow_auto_boolean_cmd): Replace
4436 add_set_auto_boolean_cmd.
4437 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4438 add_set_auto_boolean_cmd.
4439 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4440 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4441 mask-address'' command.
4442 (show_mask_address): Add cmd parameter.
4443 * remote.c (add_packet_config_cmd): Update. Change type of
4444 set_func and show_func to cmd_sfunc_ftype.
4445 (_initialize_remote): Update `set remote Z-packet'
4446 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4447 (show_remote_protocol_e_packet_cmd): Ditto.
4448 (show_remote_protocol_E_packet_cmd): Ditto.
4449 (show_remote_protocol_P_packet_cmd): Ditto.
4450 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4451 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4452 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4453 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4454 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4455 (show_remote_protocol_Z_packet_cmd): Ditto.
4456 (show_remote_protocol_binary_download_cmd): Ditto.
4457 (show_remote_cmd): Pass NULL to all of above.
4458
fc08ec52
MK
44592002-06-15 Mark Kettenis <kettenis@gnu.org>
4460
4461 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4462 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4463 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4464 POP_FRAME): Remove defines.
4465 (i386_push_arguments, i386_store_struct_return,
4466 i386_extract_return_value, i386_store_return_value,
4467 i386_extract_struct_value_address, i386_push_dummy_frame,
4468 i386_pop_frame): Renove prototypes.
4469 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4470 macros mentioned above.
4471
e707bbc2
AC
44722002-06-15 Andrew Cagney <ac131313@redhat.com>
4473
4474 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4475 add_set_boolean_cmd.
4476 (add_setshow_cmd): New function.
4477 * command.h (add_setshow_boolean_cmd): Replace
4478 add_set_boolean_cmd.
4479 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4480 and ``set rdiromatzero''.
4481 * maint.c (_initialize_maint_cmds): Update commented out code.
4482 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4483 * target.c (initialize_targets): Update `set
4484 trust-readonly-sections'.
4485 * remote.c (_initialize_remote): Update `set remotebreak'.
4486
42fdc8df
MK
44872002-06-15 Mark Kettenis <kettenis@gnu.org>
4488
93924b6b
MK
4489 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4490 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4491 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4492 fit into multi-arch framework.
4493 (i386_breakpoint_from_pc): New function.
4494 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4495 above.
4496
42fdc8df
MK
4497 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4498 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4499 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4500 (i386_frameless_function_invocation, i386_frame_num_args,
4501 i386_frame_init_saved_regs): Remove prototypes.
4502 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4503 macros mentioned above.
4504
9773a94b
AC
45052002-06-15 Andrew Cagney <ac131313@redhat.com>
4506
4507 * cli/cli-decode.c (set_cmd_cfunc): Update.
4508 (set_cmd_sfunc): Update.
4509 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4510 (set_cmd_sfunc, set_cmd_cfunc): Update.
4511 * cli/cli-decode.h: Update.
4512
6e157172
MK
45132002-06-15 Mark Kettenis <kettenis@gnu.org>
4514
4515 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4516 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4517
7f19b9a2
AC
45182002-06-15 Andrew Cagney <ac131313@redhat.com>
4519
4520 * defs.h (auto_boolean): Declare enum.
4521 * command.h (cmd_auto_boolean): Delete enum.
4522 * mips-tdep.c (mask_address_var): Update.
4523 (mips_mask_address_p): Update.
4524 (show_mask_address): Update.
4525 * remote.c (struct packet_config): Update.
4526 (update_packet_config): Update.
4527 (show_packet_config_cmd): Update.
4528 (packet_ok): Update.
4529 (add_packet_config_cmd): Update.
4530 (_initialize_remote):
4531 * command.h: Update.
4532 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4533 (do_setshow_command): Update.
4534 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4535 * cli/cli-decode.h: Update.
4536
1cf88de5
MK
45372002-06-15 Mark Kettenis <kettenis@gnu.org>
4538
22ba8cf2
MK
4539 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4540 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4541 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4542 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4543 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4544 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4545
762c5349
MK
4546 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4547 list of DJGPP COFF targets.
4548
091198bb
MK
4549 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4550 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4551 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4552 (FP0_REGNUM): Remove define.
4553 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4554 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4555 (i386_register_virtual_size): Remove protoype.
4556 * i386-tdep.c (i386_register_virtual_size): Removed.
4557 (i386_extract_return_value, i386_store_return_value): Use
4558 FP0_REGNUM instead of NUM_FREGS to determine whether the
4559 floating-point registers are available.
4560 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4561 Adjust for removal of macros mentioned above.
4562
45632002-06-15 Mark Kettenis <kettenis@gnu.org>
4564
fcc9bf01
MK
4565 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4566 comments.
4567 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4568 Remove prototypes.
4569 (supply_gregset, fill_gregset): Remove use of register keyword and
4570 remove declaration for regmap. Use I386_NUM_GREGS instead of
4571 NUM_REGS and NUM_FREGS.
4572 (FPREGSET_FSAVE_OFFSET): Remove.
4573 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4574 NUM_FREGS to determine whether the floating-point registers are
4575 available.
4576
65e78234
MK
4577 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4578 gnu_store_registers): Replace usage of NUM_GREGS with
4579 I386_NUM_GREGS.
4580
98df6387
MK
4581 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4582 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4583 usage of NUM_GREGS with I386_NUM_GREGS.
4584
099a9414
MK
4585 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4586
57976e88
MK
4587 * i386bsd-nat.c: Include "i386-tdep.h".
4588 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4589 I386_NUM_GREGS.
4590
b335f4a6
MK
4591 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4592 and associated comment. They no longer make any sense, since we
4593 don't use this file anymore on Linux.
4594
1cf88de5
MK
4595 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4596 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4597 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4598 elements in these arrays.
4599 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4600 MAX_NUM_REGS.
4601
daa66587
MK
46022002-06-15 Mark Kettenis <kettenis@gnu.org>
4603
4604 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4605 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4606
26e9b323
AC
46072002-06-14 Andrew Cagney <cagney@redhat.com>
4608
4609 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4610 EXTRACT_RETURN_VALUE.
4611 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4612 EXTRACT_STRUCT_VALUE_ADDRESS.
4613 * gdbarch.h, gdbarch.c: Regenerate.
4614
4615 * values.c (value_being_returned): Handle
4616 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4617 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4618
4619 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4620 * arm-tdep.c (arm_gdbarch_init): Update.
4621 * avr-tdep.c (avr_gdbarch_init): Update.
4622 * cris-tdep.c (cris_gdbarch_init): Update.
4623 * d10v-tdep.c (d10v_gdbarch_init): Update.
4624 * ia64-tdep.c (ia64_gdbarch_init): Update.
4625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4627 * s390-tdep.c (s390_gdbarch_init): Update.
4628 * sh-tdep.c (sh_gdbarch_init): Update.
4629 * s390-tdep.c (s390_gdbarch_init): Update.
4630 * sparc-tdep.c (sparc_gdbarch_init): Update.
4631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4632 * v850-tdep.c (v850_gdbarch_init): Update.
4633 * vax-tdep.c (vax_gdbarch_init): Update.
4634 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4636
4637 * config/arc/tm-arc.h: Update.
4638 * config/d30v/tm-d30v.h: Update.
4639 * config/fr30/tm-fr30.h: Update.
4640 * config/h8300/tm-h8300.h: Update.
4641 * config/h8500/tm-h8500.h: Update.
4642 * config/i386/tm-i386.h: Update.
4643 * config/i386/tm-ptx.h: Update.
4644 * config/i386/tm-symmetry.h: Update.
4645 * config/i960/tm-i960.h: Update.
4646 * config/m32r/tm-m32r.h: Update.
4647 * config/m68k/tm-delta68.h: Update.
4648 * config/m68k/tm-linux.h: Update.
4649 * config/m68k/tm-m68k.h: Update.
4650 * config/m88k/tm-m88k.h: Update.
4651 * config/mcore/tm-mcore.h: Update.
4652 * config/mips/tm-mips.h: Update.
4653 * config/mn10200/tm-mn10200.h: Update.
4654 * config/pa/tm-hppa.h: Update.
4655 * config/pa/tm-hppa64.h: Update.
4656 * config/sparc/tm-sp64.h: Update.
4657 * config/sparc/tm-sparc.h: Update.
4658 * config/sparc/tm-sparclet.h: Update.
4659 * config/z8k/tm-z8k.h: Update.
4660
5179e78f
AC
46612002-06-14 Andrew Cagney <cagney@redhat.com>
4662
4663 * Makefile.in (i386_linux_tdep_h): Define.
4664 (i386_tdep_h, i387_tdep_h): Define.
4665 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4666 $(i386_tdep_h) and $(i387_tdep_h).
4667 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4668
8201327c
MK
46692002-06-14 Mark Kettenis <kettenis@gnu.org>
4670
edf393ac
MK
4671 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4672 Already covered by the default.
4673
896fb97d
MK
4674 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4675 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4676 (i386_gdbarch_init): Initialize long_double_format and long_double
4677 bit.
4678
8201327c
MK
4679 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4680 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4681 Move these to ...
4682 * config/i386/i386sol2.mh: ... here.
4683 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4684 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4685 (SIGCONTEXT_PC_OFFSET): Remove define.
4686 (IN_SIGTRAMP): Remove define.
4687 * i386-sol2-tdep.c: New file.
4688
4689 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4690 * config/i386/tm-i386nw.h: Removed.
4691
4692 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4693 USE_STRUCT_CONVENTION): Remove defines.
4694 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4695 (get_longjmp_target): Remove prototype.
4696 (IN_SIGTRAMP): Remove define.
4697 (i386bsd_in_sigtramp): Remove prototype.
4698 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4699 function. Update comment accordingly
4700 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4701 (FRAME_SAVED_PC): Remove define.
4702 (i386bsd_frame_saved_pc): Remove prototype.
4703 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4704 GET_LONGJMP_TARGET): Remove defines.
4705 (get_longjmp_target): Remove prototype.
4706 (IN_SIGTRAMP): Remove define.
4707 (i386bsd_in_sigtramp): Remove prototype.
4708 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4709 function. Update comment accordingly
4710 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4711 (FRAME_SAVED_PC): Remove define.
4712 (i386bsd_frame_saved_pc): Remove prototype.
4713 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4714 Remove prototype.
4715 (USE_STRUCT_CONVENTION): Remove prototype.
4716 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4717 declaration.
4718 (_initialize_i386bsd_nat): Revise logic to determine some
4719 constants at compile time when compiling a native GDB. Warn if
4720 things don't match up with what we expect.
4721 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4722 Remove variables.
4723 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4724 to use date stored in `struct gdbarch_tdep'.
4725 (i386bsd_sigcontext_offset): Remove varaible.
4726 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4727 stored in `struct gdbarch_tdep'.
4728 (i386bsd_frame_saved_pc): Make static.
4729 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4730 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4731 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4732 i386fbsd4_sc_pc_offset): New variables.
4733 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4734 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4735 functions.
4736 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4737 functions.
4738 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4739 Modify the value of i386fbsd_sigtramp_start and
4740 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4741 i386fbsd_sigtramp_end.
4742 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4743 function.
4744
4745 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4746 define to i386-linux-tdep.h.
4747 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4748 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4749 defines.
4750 (i386_linux_register_name, i386_linux_register_byte,
4751 i386_linux_register_raw_size): Remove prototypes.
4752 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4753 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4754 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4755 TARGET_WRITE_PC): Remove defines.
4756 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4757 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4758 i386_linux_write_pc): Remove prototypes.
4759 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4760 (get_longjmp_target): Remove prototype.
4761 * i386-linux-tdep.h: New file.
4762 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4763 * i386-linux-tdep.c: Include "i386-tdep.h" and
4764 "i386-linux-tdep.h".
4765 (i386_linux_register_name, i386_linux_register_byte,
4766 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4767 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4768 Make static.
4769 (i386_linux_init_abi): New function.
4770 (_initialize_i386_linux_tdep): New function.
4771
4772 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4773 (i386_saved_pc_after_call): Remove prototype.
4774 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4775 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4776 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4777 (i386_register_name, i386_stab_reg_to_regnum,
4778 i386_dwarf_reg_to_regnum): Remove prototypes.
4779 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4780 SIZEOF_SSE_REGS): Remove defines.
4781 (REGISTER_BYTES): Remove define.
4782 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4783 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4784 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4785 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4786 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4787 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4788 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4789 (get_longjmp_target): Remove prototype.
4790 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4791 (sigtramp_saved_pc): Remove define.
4792 (i386v4_sigtramp_saved_pc): Remove prototype.
4793 * config/i386/tm-go32.h (FRAME_CHAIN,
4794 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4795 (i386go32_frame_saved_pc): Remove prototype.
4796 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4797 (get_longjmp_target): Remove prototype.
4798 * i386-tdep.h: Include "osabi.h".
4799 (enum i386_abi): Removed.
4800 (enum struct_return): New enum.
4801 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4802 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4803 sc_pc_offset members.
4804 (i386_gdbarch_register_os_abi): Remove prototype.
4805 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4806 I386_SSE_NUM_REGS): New defines.
4807 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4808 I386_SSE_SIZEOF_REGS): New defines.
4809 (i386_register_name, i386_register_byte, i386_register_raw_size):
4810 New prototypes.
4811 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4812 (i386bsd_sigtramp_saved_pc): New prototype.
4813 * i386-tdep.c: Don't include "elf-bfd.h".
4814 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4815 i386_frame_chain, i386_saved_pc_after_call): Make static.
4816 (i386_frame_saved_pc): Rewrite to call architecture dependent
4817 function to deal with signal handlers. Make static.
4818 (i386go32_frame_saved_pc): Removed.
4819 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4820 Removed.
4821 (i386_get_longjmp_target): New function.
4822 (default_struct_convention, pcc_struct_convention,
4823 reg_struct_convention, valid_conventions, struct_convention): New
4824 variables.
4825 (i386_use_struct_convention): New function.
4826 (i386v4_sigtramp_saved_pc): Renamed to
4827 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4828 (i386_pc_in_sigtramp): New function.
4829 (i386_abi_names): Removed.
4830 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4831 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4832 Removed.
4833 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4834 i386_gdbarch_register_os_abi): Removed.
4835 (struct i386_abi_handler): Removed.
4836 (i386_abi_handler_list): Removed.
4837 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4838 functions.
4839 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4840 i386_nw_init_abi): New functions.
4841 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4842 Use set_gdbarch_xxx() calls instead of relying on macros for a
4843 number of calls.
4844 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4845 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4846 Register the various architecture variants defined in this file.
4847
ad2f7632
DJ
48482002-06-14 Daniel Jacobowitz <drow@mvista.com>
4849
4850 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4851 (struct main_type): Remove arg_types member. Update comments for
4852 struct field.
4853 (TYPE_ARG_TYPES): Remove.
4854 (TYPE_FN_FIELD_ARGS): Update.
4855 (smash_to_method_type): Update prototype.
4856
4857 * c-typeprint.c (cp_type_print_method_args): Take method type
4858 instead of argument list. Use new argument layout. Simplify.
4859 (c_type_print_args): Use new argument layout. Simplify.
4860 (c_type_print_base): Update call to cp_type_print_method_args.
4861 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4862 argument; use die->type instead. Update call to
4863 smash_to_method_type.
4864 (read_structure_scope): Update call to dwarf2_add_member_fn.
4865 * gdbtypes.c (allocate_stub_method): Update comment.
4866 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4867 Use new argument layout.
4868 (check_stub_method): Use new argument layout. Don't count
4869 void as an argument.
4870 (print_arg_types): Update comments. Use new argument layout.
4871 (recursive_dump_type): Don't print arg_types member.
4872 * hpread.c (hpread_read_struct_type): Use new argument layout.
4873 (fixup_class_method_type): Likewise.
4874 (hpread_type_lookup): Likewise.
4875 * stabsread.c (read_type): Update calls to read_args and
4876 smash_to_method_type.
4877 (read_args): Use new argument layout. Simplify.
4878 * valops.c (typecmp): Use new argument layout. Update parameters
4879 and comments. Simplify.
4880 (hand_function_call): Use new argument layout.
4881 (search_struct_method): Update call to typecmp.
4882 (find_overload_match): Use new argument layout.
4883
6da02953
DJ
48842002-06-13 Daniel Jacobowitz <drow@mvista.com>
4885
4886 * NEWS: Mention multithreaded debug support for gdbserver.
4887
519b2366
DJ
48882002-06-13 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * MAINTAINERS: Mention NEWS.
4891
6c0d6680
DJ
48922002-06-13 Daniel Jacobowitz <drow@mvista.com>
4893
4894 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4895 (struct mips_objfile_private, compare_pdr_entries): New.
4896 (non_heuristic_proc_desc): Read the ".pdr" section if it
4897 is present.
4898
6529d2dd
AC
48992002-06-12 Andrew Cagney <ac131313@redhat.com>
4900
4901 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4902 (arm_debug): New static variable.
4903 (_initialize_arm_tdep): Add ``set debug arm'' command.
4904
26216b98
AC
49052002-06-12 Andrew Cagney <ac131313@redhat.com>
4906
4907 * Makefile.in (sim_arm_h): Define.
4908 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4909 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4910 (arm_register_sim_regno): New function, map an internal REGNUM
4911 onto a simulator register number.
4912 (arm_gdbarch_init): Set register_sim_regno.
4913
814b3ba0
AH
49142002-06-09 Aldy Hernandez <aldyh@redhat.com>
4915
4916 * MAINTAINERS: Add self.
4917
475b0867
JB
49182002-06-11 Jim Blandy <jimb@redhat.com>
4919
919d772c
JB
4920 * source.c (source_info): Mention whether the symtab has
4921 information about preprocessor macros.
4922
475b0867
JB
4923 Call the command `info macro', not `show macro'.
4924 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4925 Fix error message.
4926 (_initialize_macrocmd): Register `info_macro_command' in
4927 `infolist', not `showlist'.
4928
9e364162
DJ
49292002-06-11 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4932 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4933 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4934 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4935 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4936 unconditionally.
4937 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4938 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4939 (_initialize_mips_tdep): Remove dead code.
4940 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4941 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4942 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4943 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4944 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4945 MIPS_LAST_FP_ARG_REGNUM): Remove.
4946
23aa4c72
ML
49472002-06-11 Michal Ludvig <mludvig@suse.cz>
4948
4949 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4950 (unwind_tmp_obstack_free, parse_frame_info)
4951 (update_context, cfi_read_fp, cfi_write_fp)
4952 (cfi_frame_chain, cfi_init_extra_frame_info)
4953 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4954 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4955
70eb15a4
CV
49562002-06-11 Corinna Vinschen <vinschen@redhat.com>
4957
4958 * v850-tdep.c (v850_type_is_scalar): New function.
4959 (v850_use_struct_convention): Match current gcc implementation
4960 as close as possible.
4961 (v850_push_arguments): Fix stack_offset handling. Don't write
4962 struct_addr into register. This is done by v850_store_struct_return.
4963 (v850_extract_return_value): Care for structs.
4964 (v850_store_return_value): Ditto.
4965 (v850_store_struct_return): Actually write address.
4966
482a4d06
ML
49672002-06-11 Michal Ludvig <mludvig@suse.cz>
4968
4969 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4970 without debug information too.
4971
d855c300
AC
49722002-06-10 Andrew Cagney <ac131313@redhat.com>
4973
4974 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4975 Make multi-arch pure.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * arm-tdep.c (arm_print_float_info): Update.
4978 * arch-utils.h (default_print_float_info): Update.
4979 * arch-utils.c (default_print_float_info): Update.
4980 * infcmd.c (float_info): Update call.
4981
dd12a101
AC
49822002-06-10 Andrew Cagney <ac131313@redhat.com>
4983
4984 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4985 the front of the initialize list.
4986
101dcfbe
AC
49872002-06-10 Andrew Cagney <ac131313@redhat.com>
4988
4989 * infrun.c (struct inferior_status): Replace fields
4990 selected_frame_address and selected_level with field
4991 selected_frame_id.
4992 (save_inferior_status): Update. Use get_frame_id.
4993 (struct restore_selected_frame_args): Delete.
4994 (restore_selected_frame): Update. Use frame_find_by_id.
4995 (restore_inferior_status): Update.
4996
4997 * breakpoint.h (struct breakpoint): Change type of
4998 watchpoint_frame to frame_id.
4999 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5000 call to get_current_frame.
5001 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5002 get_current_frame.
5003 (watchpoint_check): Use frame_find_by_id.
5004
5005 * frame.h (record_selected_frame): Delete declaration.
5006 * stack.c (record_selected_frame): Delete function.
5007
5008 * frame.h (struct frame_id): Define.
5009 (get_frame_id): Declare.
5010 (frame_find_by_id): Declare.
5011 * frame.c (frame_find_by_id): New function.
5012 (get_frame_id): New function.
5013
304270b6
AV
50142002-06-10 Andrey Volkov <avolkov@transas.com>
5015
5016 * ser-e7kpc.c: Fix duplicated define and call of
5017 _initialize_ser_e7000pc
5018
2f2cf184
DJ
50192002-06-09 Daniel Jacobowitz <drow@mvista.com>
5020
5021 * signals/signals.c (target_signal_from_host): Fix #ifdef
5022 SIGRTMIN case.
5023 (do_target_signal_to_host): Likewise.
5024
caaa3122
DJ
50252002-06-09 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * mips-tdep.c (mips_find_abi_section): New function.
5028 (mips_gdbarch_init): Call it.
5029
6ac5df3a
MK
50302002-06-09 Mark Kettenis <kettenis@gnu.org>
5031
5032 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5033 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5034 after Andrew's 2002-06-08 gdbarch change.
5035
82ea117a
MK
50362002-06-09 Mark Kettenis <kettenis@gnu.org>
5037
5038 * i386-linux-nat.c (suppy_gregset): Don't supply
5039 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5040 register cache.
5041 (fill_gregset): Don't fetch it under the same circumstances.
5042
3c25f8c7
AC
50432002-06-09 Andrew Cagney <cagney@redhat.com>
5044
5045 * Makefile.in (callback_h): Define.
5046 (remote_sim_h): Update path to remote-sim.h.
5047 (remote-rdp.o): Add $(callback_h).
5048 (remote-sim.o): Use $(callback_h).
5049 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5050 * remote-rdp.c: Include "gdb/callback.h".
5051
1029b7fa
MK
50522002-06-09 Mark Kettenis <kettenis@gnu.org>
5053
5054 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5055 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5056
616675d3
AC
50572002-06-08 Andrew Cagney <ac131313@redhat.com>
5058
a3efda28
AC
5059 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5060 * rdi-share/serpardr.c: Ditto.
5061 * rdi-share/unixcomm.c: Ditto.
5062 * rdi-share/serdrv.c: Ditto.
5063 * rdi-share/hostchan.h: Ditto.
5064 * rdi-share/hostchan.c: Ditto.
5065 * rdi-share/host.h: Ditto.
5066 * rdi-share/devsw.c: Ditto.
5067
c5f10366
AC
5068 * objfiles.h: Change type of obj_private to void pointer.
5069 * pa64solib.c: Update copyright. Don't include "assert.h", use
5070 strcmp instead of STREQ, use LONGEST, do not use PTR
5071 * somsolib.c: Ditto.
5072
616675d3
AC
5073 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5074 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5075 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5076
e4b415d9
AC
50772002-06-08 Andrew Cagney <ac131313@redhat.com>
5078
5079 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5080 (default_get_saved_register): Delete function.
5081 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5082 generic_unwind_get_saved_register.
5083 * gdbarch.h, gdbarch.c: Re-generate.
5084
ca0d0b52
AC
50852002-06-08 Andrew Cagney <ac131313@redhat.com>
5086
5087 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5088 generic_func_frame_chain_valid.
5089 * gdbarch.h, gdbarch.c: Re-generate.
5090 * blockframe.c (generic_func_frame_chain_valid): Only check
5091 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5092 passing FP to PC_IN_CALL_DUMMY.
5093 Fix PR gdb/360.
5094
76860b5f
AC
50952002-06-08 Andrew Cagney <ac131313@redhat.com>
5096
5097 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5098 (register_gdbarch_data): Initialize init_p.
5099 (gdbarch_data): Initialize data pointer using the init function.
5100 (init_gdbarch_data): Delete function.
5101 (gdbarch_update_p): Update.
5102 (initialize_non_multiarch): Update.
5103 (struct gdbarch): Add field initialized_p.
5104 * gdbarch.h, gdbarch.c: Re-generate.
5105
8dda9770
ML
51062002-06-07 Michal Ludvig <mludvig@suse.cz>
5107
5108 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5109 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5110 better do the things actually here.
5111 * x86-64-tdep.c (x86_64_register_name2nr): New.
5112 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5113 (x86_64_gdbarch_init): Respect the above change.
5114 * x86-64-tdep.h (x86_64_register_name2nr)
5115 (x86_64_register_nr2name): Add prototypes.
5116 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5117
3d79a47c
MS
51182002-06-06 Michael Snyder <msnyder@redhat.com>
5119
7bd91a28
MS
5120 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5121 Delete extra braces and re-indent.
5122 (d10v_store_return_value): Char return values
3d79a47c
MS
5123 must be shifted over by one byte in R0.
5124 (d10v_extract_return_value): Delete extra braces, re-indent.
5125
095a4c96
EZ
51262002-06-06 Elena Zannoni <ezannoni@redhat.com>
5127
5128 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5129 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5130 (d10v_integer_to_address): Rewrite.
5131 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5132 the d10v specific functions which take care of converting to the
5133 correct space.
5134
e8a77ca4
EZ
51352002-06-06 Elena Zannoni <ezannoni@redhat.com>
5136
5137 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5138 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5139
4f2e4a4f
AC
51402002-06-02 Andrew Cagney <ac131313@redhat.com>
5141
5142 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5143 includes.
5144 * config/tm-linux.h: Ditto.
5145 * config/alpha/tm-alphalinux.h: Ditto.
5146 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5147 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5148 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5149 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5150 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5151 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5152 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5153 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5154 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5155 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5156 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5157 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5158 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5159 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5160 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5161 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5162 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5163 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5164 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5165 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5166 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5167 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5168 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5169 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5170 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5171 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5172 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5173 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5174 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5175 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5176 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5177 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5178 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5179 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5180 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5181 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5182 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5183
ae2ab2ce
AS
51842002-05-04 Aidan Skinner <aidan@velvet.net>
5185
5186 * ada-exp.tab.c: New file
5187 * ada-exp.y: New file
5188 * ada-lang.c: New file
5189 * ada-lang.h: New file
5190 * ada-lex.c: New file
5191 * ada-lex.l: New file
5192 * ada-tasks.c: New file
5193 * ada-typeprint.c: New file
5194 * ada-valprint.c: New file
5195
0ddd0135
JT
51962002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5197
5198 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5199 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5200
750fbacc
JT
52012002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5202
5203 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5204 insetead of ppc-linux-tdep.o.
5205 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5206 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5207
df94e18a
AC
52082002-06-02 Andrew Cagney <ac131313@redhat.com>
5209
5210 2002-05-07 Christian Groessler <chris@groessler.org>
5211 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5212 bit register contents for little endian hosts.
5213
1a38ab75
AC
52142002-06-01 Andrew Cagney <ac131313@redhat.com>
5215
5216 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5217 any maintainer.
5218
8b1632ac
AC
52192002-06-01 Andrew Cagney <ac131313@redhat.com>
5220
5221 * gdbarch.h: Regenerate.
5222
627054c8
AC
52232002-06-01 Andrew Cagney <ac131313@redhat.com>
5224
5225 * MAINTAINERS: Add everyone to write-after-approval list.
5226
4f460812
AC
52272002-06-01 Andrew Cagney <ac131313@redhat.com>
5228
5229 * stack.c (frame_info): Use frame_register_unwind instead of
5230 saved_regs. Mention when the SP is on the stack or in a register.
5231
5232 * frame.h (frame_register_unwind_ftype): Define. Document.
5233 (struct frame_info): Add field register_unwind and
5234 register_unwind_cache.
5235 (frame_register_unwind): Declare.
5236 (generic_unwind_get_saved_register): Declare.
5237
5238 * frame.c (frame_register_unwind): New function.
5239 (generic_unwind_get_saved_register): New function.
5240
5241 * blockframe.c (generic_call_dummy_register_unwind): New function.
5242 (frame_saved_regs_register_unwind): New function.
5243 (set_unwind_by_pc): New function.
5244 (create_new_frame): New function.
5245 (get_prev_frame): New function.
5246
de888f76
AC
52472002-05-30 Andrew Cagney <ac131313@redhat.com>
5248
5249 * a29k-share/: Delete directory.
5250 * remote-vx29k.c: Delete file.
5251
2f2c3626
JT
52522002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5253
5254 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5255 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5256
9ce5c36a
JT
52572002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5258
5259 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5260 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5261 (sparc64nbsd-nat.o)
5262 (sparcnbsd-nat.o)
5263 (sparcnbsd-tdep.o): New dependency lists.
5264 * NEWS: Note new UltraSPARC NetBSD native configuration.
5265 * configure.host (sparc64-*-netbsd*): New host.
5266 * configure.tgt (sparc-*-netbsdelf*)
5267 (sparc-*-netbsd*): Set gdb_target to nbsd.
5268 (sparc64-*-netbsd*): New target.
5269 * sparc64nbsd-nat.c: New file.
5270 * sparcnbsd-nat.c: New file.
5271 * sparcnbsd-tdep.c: New file.
5272 * sparcnbsd-tdep.h: New file.
5273 * config/sparc/nbsd.mt: New file.
5274 * config/sparc/nbsd64.mh: New file.
5275 * config/sparc/nbsd64.mt: New file.
5276 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5277 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5278 (HOST_IPC): Remove.
5279 * config/sparc/nbsdaout.mt: Remove.
5280 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5281 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5282 (HOST_IPC): Remove.
5283 * config/sparc/nbsdelf.mt: Remove.
5284 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5285 sparc-nat.c compatiblity defines.
5286 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5287 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5288 * config/sparc/tm-nbsd64.h: New file.
5289 * config/sparc/tm-nbsdaout.h: Remove.
5290 * config/sparc/xm-nbsd.h: Remove.
5291
ef3cf062
JT
52922002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5293
5294 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5295 * sparc-tdep.c: Include osabi.h.
5296 (gdbarch_tdep): Add osabi member.
5297 (_initialize_sparc_tdep): Use gdbarch_register.
5298 (sparc_gdbarch_init): Use generic OS ABI framework.
5299 (sparc_dump_tdep): New function.
5300
ee8ff470
KB
53012002-05-30 Kevin Buettner <kevinb@redhat.com>
5302
5303 * corefile.c (do_captured_read_memory_integer): Return non-zero
5304 result.
5305 (safe_read_memory_integer): Copy result of memory read when
5306 status is non-zero. Also, add comments.
5307
7b112f9c
JT
53082002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5309
5310 * Makefile.in (ppc_tdep_h): Define.
5311 (ppc-linux-nat.o)
5312 (ppc-linux-tdep.o)
5313 (rs6000-tdep.o): Use $(ppc_tdep_h).
5314 (ppc-sysv-tdep.o)
5315 (ppcnbsd-nat.o)
5316 (ppcnbsd-tdep.o): New dependency lists.
5317 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5318 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5319 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5320 (ppc_sysv_abi_broken_use_struct_convention)
5321 (ppc_sysv_abi_use_struct_convention)
5322 (ppc_sysv_abi_push_arguments): Move to...
5323 * ppc-sysv-tdep.c: ...here.
5324 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5325 * rs6000-tdep.c (process_note_abi_tag_sections)
5326 (get_elfosabi): Remove.
5327 (rs6000_gdbarch_init): Use generic OS ABI framework.
5328 (rs6000_dump_tdep): New function.
5329 (_initialize_rs6000_tdep): Use gdbarch_register.
5330 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5331 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5332 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5333 of ppc-linux-tdep.o.
5334 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5335 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5336 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5337 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5338 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5339 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5340
480dd42a
JB
53412002-05-29 Jim Blandy <jimb@redhat.com>
5342
5343 * macroscope.c (default_macro_scope): Put `void' in empty argument
5344 list.
5345
4182591f
AC
53462002-05-29 Andrew Cagney <ac131313@redhat.com>
5347
5348 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5349 * arch-utils.c: Include "sim-regno.h".
5350 * gdbarch.sh: Don't include "sim-regno.h".
5351 * gdbarch.h, gdbarch.c: Regenerate.
5352 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5353 here.
5354 * arch-utils.h (legacy_register_sim_regno): To here.
5355 * remote-sim.c (legacy_register_sim_regno): Move function from
5356 here.
5357 * arch-utils.c (legacy_register_sim_regno): To here.
5358
8238d0bf
AC
53592002-05-28 Andrew Cagney <ac131313@redhat.com>
5360
5361 * sim-regno.h: New file.
5362 * Makefile.in (sim_regno_h): Define.
5363 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5364 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5365 (legacy_register_sim_regno): New function.
5366 (one2one_register_sim_regno): New function.
5367 (gdbsim_fetch_register): Rewrite.
5368 (gdbsim_store_register): Only store a register when
5369 REGISTER_SIM_REGNO is valid.
5370 * d10v-tdep.c: Include "sim-regno.h".
5371 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5372 (d10v_ts3_register_sim_regno): Ditto.
5373 * gdbarch.sh: Include "sim-regno.h".
5374 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5375 * gdbarch.h, gdbarch.c: Regenerate.
5376 * arch-utils.h (default_register_sim_regno): Delete declaration.
5377 * arch-utils.c (default_register_sim_regno): Delete function.
5378
485721b1
JT
53792002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5380
5381 * ppcnbsd-nat.c: Rewrite.
5382 * ppcnbsd-tdep.c: New file.
5383 * ppcnbsd-tdep.h: New file.
5384 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5385 solib.o, and solib-svr4.o.
5386 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5387 nbsd-tdep.o, and corelow.o.
5388
697f244d
AC
53892002-05-28 Andrew Cagney <ac131313@redhat.com>
5390
5391 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5392 `tr' and `sed'. Mention that `broken' targets are not expected to
5393 build.
5394
f08caad1 53952002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5396
5397 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5398 Let PC point right after the prologue before looking up symbols.
5399
3139facc
MH
54002002-05-27 Martin M. Hunt <hunt@redhat.com>
5401
5402 * i386-tdep.c (i386_register_virtual_type): Return
5403 builtin_type_vec128i for SSE registers.
5404
5405 * gdbtypes.h (builtin_type_vec128i): Declare.
5406
5407 * gdbtypes.c (build_builtin_type_vec128i): New function.
5408 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5409 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5410 (build_gdbtypes): Initialize new builtin vector types.
5411 (_initialize_gdbtypes): Register new vector types with gdbarch.
5412
6e3ba3b8
JT
54132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5414
5415 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5416 since it has been multi-arch'd.
5417 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5418 Move Alpha and VAX multi-arch news entries to same section
5419 as other multi-arch news.
5420
93d5585d
JT
54212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5422
5423 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5424 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5425 static. Rename some register numbers to put them in ns32k-tdep
5426 private namespace.
5427 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5428 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5429 functions.
5430 (_initialize_ns32k_tdep): Use gdbarch_register.
5431 * ns32k-tdep.h: New file.
5432 * ns32knbsd-tdep.c: New file.
5433 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5434 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5435 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5436 REGISTER_BYTES, REGISTER_BYTE): Remove.
5437 * config/ns32k/tm-ns32k.h: New file.
5438 * config/ns32k/tm-umax.h: Remove.
5439
efb2c70e
JT
54402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5441
5442 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5443 ns32k_store_struct_return, ns32k_extract_return_value,
5444 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5445 functions.
5446 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5447 ns32k_saved_pc_after_call.
5448 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5449 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5450 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5451 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5452 ns32k_extract_struct_value_address.
5453
7bcc927b
JT
54542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5455
5456 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5457 ns32k_fix_call_dummy): New.
5458 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5459 ns32k_call_dummy_words.
5460 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5461 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5462 CALL_DUMMY_NARGS): Remove.
5463 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5464
78f9d765
JT
54652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5466
5467 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5468 ns32k_frame_saved_pc, ns32k_frame_args_address,
5469 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5470 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5471 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5472 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5473 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5474 (BREAKPOINT): Remove..
5475 (FRAME_CHAIN): Define as ns32k_frame_chain.
5476 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5477 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5478 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5479 (FRAME_FIND_SAVED_REGS): Remove.
5480 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5481 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5482 (POP_FRAME): Define as ns32k_pop_frame.
5483
f2c762e0
JT
54842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5485
5486 * ns32k-tdep.c (ns32k_register_byte_32082,
5487 ns32k_register_byte_32382, ns32k_register_raw_size,
5488 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5489 functions.
5490 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5491 ns32k_register_byte_32382.
5492 * config/ns32k/tm-umax.h: Update copyright years.
5493 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5494 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5495 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5496 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5497 (ns32k_get_enter_addr): Fix prototype.
5498
af137673
JT
54992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5500
5501 * ns32k-tdep.c: Update copyright years.
5502 (ns32k_register_name_32082): New function.
5503 (ns32k_register_name_32382): Ditto.
5504 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5505 (REGISTER_NAME): Define as ns32k_register_name_32382.
5506 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5507 (REGISTER_NAME): Define as ns32k_register_name_32082.
5508
a8bc7b56
JB
55092002-05-24 Jim Blandy <jimb@redhat.com>
5510
5511 * dwarf2read.c (free_line_header): Use xfree, not free.
5512
83a45910
JT
55132002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5514
5515 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5516 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5517
0db71247
AC
55182002-05-23 Andrew Cagney <ac131313@redhat.com>
5519
5520 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5521
b9e5e4dd
AC
55222002-05-23 Andrew Cagney <ac131313@redhat.com>
5523
5524 From Ross Alexander at NEC Europe:
5525 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5526
de530e84
MS
55272002-05-23 Michael Snyder <msnyder@redhat.com>
5528
5529 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5530 for input, rather than parse_and_eval_address.
5531
b91b96f4
AC
55322002-05-23 Andrew Cagney <ac131313@redhat.com>
5533
5534 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5535 * Makefile.in (sim_d10v_h): Update definition.
5536
8b279e7a
AC
55372002-05-24 Andrew Cagney <cagney@redhat.com>
5538
5539 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5540 change `2002-05-22 Michael Snyder' below.
5541 (d10v_push_arguments): Ditto.
5542 (d10v_extract_return_value): Ditto.
5543
0a3d0425
JB
55442002-05-23 Jim Blandy <jimb@redhat.com>
5545
5546 * macrotab.c (check_for_redefinition): Don't complain if the new
5547 definition is the same as the previous one. Take more arguments
5548 to allow the comparison.
5549 (macro_define_object, macro_define_function): Pass more arguments
5550 to check_for_redefinition.
5551
78eac43e
MS
55522002-05-22 Michael Snyder <msnyder@redhat.com>
5553
5554 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5555 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5556 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5557 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5558 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5559 Add a temp variable to save a call (and a memory read).
5560 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5561 if possible (so that PC_IN_CALL_DUMMY will work).
5562
9bc1edb8
CV
55632002-05-22 Corinna Vinschen <vinschen@redhat.com>
5564
5565 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5566
005ef3d2
ML
55672002-05-22 Michal Ludvig <mludvig@suse.cz>
5568
5569 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5570 fde->cie_ptr.
5571 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5572 (dwarf2_build_frame_info): Add offset to fde->initial_location
5573 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5574 (execute_stack_op): Change type of 'result' from ULONGEST to
5575 CORE_ADDR.
005ef3d2 5576
fcf4f891
JT
55772002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5578
5579 * config/alpha/tm-nbsd.h: Include solib.h.
5580
cfef91e4
JT
55812002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5584 assumptions about the host's byte order.
5585
9964235a
JT
55862002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5587
5588 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5589 to dependency list.
5590 * alphanbsd-tdep.c: Include solib-svr4.h.
5591 * shnbsd-tdep.c: Ditto.
5592
9eeef8ef
JT
55932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5594
5595 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5596 nbsd-tdep.h to dependency list.
5597 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5598 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5599 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5600 nbsdaout.mh and nbsdelf.mh consistently.
5601 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5602 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5603 nbsdaout.mt and nbsdelf.mh consistently.
5604 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5605 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5606 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5607 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5608 a.out shared library stuff from here...
5609 * config/nm-nbsdaout.h: ...to here.
5610 * config/tm-nbsd.h: Remove.
5611 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5612 * config/arm/nbsd.mh: Remove.
5613 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5614 nbsd-tdep.o.
5615 * config/arm/nbsdaout.mh: New file.
5616 * config/arm/nbsdelf.mh: New file.
5617 * config/arm/nm-nbsdaout.h: New file.
5618 * config/i386/nbsd.mh: Remove.
5619 * config/i386/nbsd.mt: Remove.
5620 * config/i386/nbsdaout.mh: New file.
5621 * config/i386/nbsdaout.mt: New file.
5622 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5623 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5624 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5625 i386_register_u_addr): Remove.
5626 * config/i386/nm-nbsdaout.h: New file.
5627 * config/i386/nm-nbsdelf.h: Remove.
5628 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5629 (USE_STRUCT_CONVENTION): Remove.
5630 * config/i386/tm-nbsdaout.h: New file.
5631 * config/i386/tm-nbsdelf.h: Remove.
5632 * config/m68k/nbsd.mh: Remove.
5633 * config/m68k/nbsd.mt: Remove.
5634 * config/m68k/nbsdaout.mh: New file.
5635 * config/m68k/nbsdaout.mt: New file.
5636 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5637 * config/m68k/nm-nbsdaout.h: New file.
5638 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5639 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5640 * config/ns32k/nbsd.mh: Remove.
5641 * config/ns32k/nbsd.mt: Remove.
5642 * config/ns32k/nbsdaout.mh: New file.
5643 * config/ns32k/nbsdaout.mt: New file.
5644 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5645 * config/ns32k/nm-nbsdaout.h: New file.
5646 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5647 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5648 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5649 (SVR4_SHARED_LIBS): Remove.
5650 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5651 * config/sparc/nbsd.mh: Remove.
5652 * config/sparc/nbsd.mt: Remove.
5653 * config/sparc/nbsdaout.mh: New file.
5654 * config/sparc/nbsdaout.mt: New file.
5655 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5656 * config/sparc/nbsdelf.mt: New file.
5657 * config/sparc/nm-nbsdaout.h: New file.
5658 * config/sparc/nm-nbsdelf.h: Remove.
5659 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5660 * config/sparc/tm-nbsdaout.h: New file.
5661
257ce470
JT
56622002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5663
5664 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5665 mipsnbsd-tdep.c
5666 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5667
76a6d5fe
JT
56682002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5669
5670 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5671 shnbsd-nat.c.
5672 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5673
45888261
JT
56742002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * NEWS: Note new MIPS NetBSD native configuration.
5677 * configure.host (mips*-*-netbsd*): New host.
5678 * configure.tgt (mips*-*-netbsd*): New target.
5679 * mipsnbsd-nat.c: New file.
5680 * mipsnbsd-tdep.c: New file.
5681 * mipsnbsd-tdep.h: New file.
5682 * config/mips/nbsd.mh: New file.
5683 * config/mips/nbsd.mt: New file.
5684 * config/mips/nm-nbsd.h: New file.
5685 * config/mips/tm-nbsd.h: New file.
5686
70f80edf
JT
56872002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5688
5689 * Makefile.in (SFILES): Add osabi.c.
5690 (COMMON_OBS): Add osabi.o.
5691 (osabi.o): New dependency list.
5692 * osabi.c: New file.
5693 * osabi.h: New file.
5694 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5695
5696 * Makefile.in (alpha_tdep_h): Define and use instead of
5697 alpha-tdep.h.
5698 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5699 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5700 Remove.
5701 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5702 * alpha-tdep.h: Include osabi.h.
5703 (alpha_abi): Remove.
5704 (gdbarch_tdep): Use generic OS ABI framework.
5705 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5706 gdbarch_register_osabi.
5707 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5708 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5709 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5710
5711 * Makefile.in (sh_tdep_h): Add osabi.h.
5712 * sh-tdep.h (sh_osabi): Remove.
5713 (gdbarch_tdep): Use generic OS ABI framework.
5714 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5715 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5716 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5717 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5718
5719 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5720 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5721 gdbarch_register_osabi.
5722 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5723 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5724 (get_elfosabi): Rename to...
5725 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5726 ABI framework support routines.
5727 (arm_gdbarch_init): Use generic OS ABI framework.
5728 (arm_dump_tdep): Likewise.
5729 (_initialize_arm_tdep): Likewise.
5730 * arm-tdep.h: Include osabi.h.
5731 (arm_abi): Remove.
5732 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5733 osabi member.
5734 (arm_gdbarch_register_os_abi): Remove prototype.
5735 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5736 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5737
5738 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5739 * mips-tdep.c: Include osabi.h.
5740 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5741 OS ABI framework.
5742
d194345b
KH
57432002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5744
5745 * h8300-tdep.c: Fix formatting.
5746
70c6b0d1
EZ
57472002-05-20 Elena Zannoni <ezannoni@redhat.com>
5748
5749 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5750 printing vector registers.
5751
165b8e33
AC
57522002-05-19 Andrew Cagney <ac131313@redhat.com>
5753
5754 From Fernando Nasser:
5755 * remote.c (remote_async_open_1): Re-throw the exception when the
5756 connection fails.
5757 (remote_cisco_open): Ditto.
5758 (remote_open_1): Ditto.
5759
36918e70
AC
57602002-05-19 Andrew Cagney <ac131313@redhat.com>
5761
5762 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5763 (remote_start_remote): Add uiout parameter. Pass through to
5764 remote_start_remote_dummy.
5765 (remote_open_1): Use catch_exception instead of catch_errors.
5766 (remote_async_open_1): Ditto.
5767 (remote_cisco_open): Ditto.
5768
ae44c0c4
AC
57692002-05-19 Andrew Cagney <ac131313@redhat.com>
5770
5771 * remote.c (remote_start_remote): Replace PTR with void pointer.
5772 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5773 static.
5774
8efe637d
AC
57752002-05-18 Andrew Cagney <ac131313@redhat.com>
5776
5777 * gdb_indent.sh: Allow the script to be run in the sim directory.
5778
2f1b5984
MK
57792002-05-18 Mark Kettenis <kettenis@gnu.org>
5780
f0f625e2
MK
5781 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5782 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5783
2f1b5984
MK
5784 * corelow.c (core_open): Only call set_gdbarch_from_file if
5785 exec_bfd is NULL.
5786
fc974602
AV
57872002-05-17 Andrey Volkov <avolkov@transas.com>
5788
5789 * h8300-tdep.c: Add support of EXR register
5790 * config/h8300/tm-h8300.h: Ditto.
5791
906709f4
AV
57922002-05-17 Andrey Volkov <avolkov@transas.com>
5793
5794 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5795
6e591d68
AV
57962002-05-17 Andrey Volkov <avolkov@transas.com>
5797
5798 * h8300-tdep.c: Change literal regnums to REGNO.
5799
84f0252a
JB
58002002-05-17 Jim Blandy <jimb@redhat.com>
5801
e0e9281e
JB
5802 * NEWS: Note addition of macro support.
5803
84f0252a
JB
5804 Expand preprocessor macros in C expressions.
5805 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5806 (scan_macro_expansion, scanning_macro_expansion,
5807 finished_macro_expansion): New function declarations.
5808 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5809 variable declarations.
5810 * parser-defs.h (expression_context_pc): New declaration.
5811 * parse.c (expression_context_pc): New variable.
5812 (parse_exp_1): Set expression_context_pc, as well as
5813 expression_context_block.
5814 * c-exp.y (yylex): If we're not already reading the result of a
5815 macro expansion, try to macro-expand the next token. When we're
5816 done scanning a macro expansion, switch back to the mainline text.
5817 Commas and `if's in a macro's expansion don't terminate the input.
5818 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5819 (macro_original_text, macro_expanded_text,
5820 expression_macro_lookup_func, expression_macro_lookup_baton): New
5821 variables.
5822 (scan_macro_expansion, scanning_macro_expansion,
5823 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5824 c_preprocess_and_parse): New functions.
5825 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5826 c_preprocess_and_parse, instead of c_parse.
5827 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5828 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5829
1c509ca8
JR
5830Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5831
5832 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5833 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5834 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5835
2250ee0c
CV
58362002-05-17 Corinna Vinschen <vinschen@redhat.com>
5837
5838 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5839
ab3b8126
JT
58402002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5841
5842 * Makefile.in (sh_tdep_h): Define and use.
5843 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5844 register enum): Move to...
5845 * * sh-tdep.h: ...here.
5846 * sh-tdep.c: Include sh-tdep.h.
5847 * sh3-rom.c: Likewise.
5848 * shnbsd-tdep.c: Likewise.
5849
ed9d4749
MS
58502002-05-16 Michael Snyder <msnyder@redhat.com>
5851
5852 * arm-tdep.c: Spelling fix in comment.
5853
2e276125
JB
58542002-05-16 Jim Blandy <jimb@redhat.com>
5855
6821892e
JB
5856 Add commands for manually expanding macros and showing their
5857 definitions.
5858 * macrocmd.c, macroscope.c, macroscope.h: New files.
5859 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5860 (macroscope_h): New variable.
5861 (HFILES_NO_SRCDIR): Add macroscope.h.
5862 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5863 (macroscope.o, macrocmd.o): New rules.
5864
2e276125
JB
5865 Teach the Dwarf 2 reader to read macro information.
5866 * dwarf2read.c: #include "macrotab.h".
5867 (dwarf_macinfo_buffer): New variable.
5868 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5869 dwarf_macinfo_size.
5870 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5871 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5872 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5873 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5874 dwarf2_macro_spaces_in_definition): New complaints.
5875 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5876 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5877 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5878 the partial symbol table.
5879 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5880 from what's recorded in the partial symbol table.
5881 (read_file_scope): If the compilation unit has a
5882 `DW_AT_macro_info' attribute, read its macro information.
5883 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5884
2f53fe6c
DJ
58852002-05-16 Daniel Jacobowitz <drow@mvista.com>
5886
5887 Fix PR gdb/546
5888 * ser-tcp.c: Don't include <netinet/udp.h>.
5889
2be99286
SC
58902002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5891
5892 * MAINTAINERS: Update my email address.
5893
c9af212b 58942002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5895
5896 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5897 include file of the same name.
5898
bf5f1a52
CV
58992002-05-16 Corinna Vinschen <vinschen@redhat.com>
5900
5901 * configure.tgt: Mark v850 as multi-arched.
5902 * config/v850/tm-v850.h: Remove file.
5903 * config/v850/v850.mt: Eliminate TM_FILE.
5904
435e042a
CV
59052002-05-16 Corinna Vinschen <vinschen@redhat.com>
5906
5907 * v850-tdep.c: Full multi-arch.
5908 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5909 Define GDB_MULTI_ARCH to 2.
5910
9819c6c8
PM
59112002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5912
5913 * p-exp.y (current_type): New static variable.
5914 Carries the type of the expression at the position that is parsed.
5915 (push_current_type, pop_current_type): Two new functions. Used
5916 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5917 (search_field): New static variable. Set to one after parsing a point
5918 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5919 (FIELDNAME): New token. After a point only a token belonging to
5920 current_type type definition is allowed.
5921 (all over token rules): reset and change current_type according
5922 to rules.
5923 (exp '[' rule): insert implicit array index field if
5924 exp is a pascal string type.
5925
3a06899a
CV
59262002-05-16 Corinna Vinschen <vinschen@redhat.com>
5927
5928 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5929 frame info. Use frame_info's saved_regs instead of matching member
5930 in extra_frame_info throughout.
5931 (v850_frame_init_saved_regs): New function.
5932 (v850_init_extra_frame_info): Move most functionality into
5933 v850_frame_init_saved_regs().
5934 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5935 (v850_frame_find_saved_regs): Remove declaration.
5936 (FRAME_FIND_SAVED_REGS): Remove definition.
5937 (v850_frame_init_saved_regs): Add declaration.
5938 (FRAME_INIT_SAVED_REGS): Add definition.
5939
6ed14b0e
CV
59402002-05-16 Corinna Vinschen <vinschen@redhat.com>
5941
5942 * v850-tdep.c: Begin multi-arch'ing v850.
5943 (v850_target_architecture_hook): Remove function.
5944 (v850_gdbarch_init): New function. Add code previously in
5945 v850_target_architecture_hook().
5946 (_initialize_v850_tdep): Don't set target_architecture_hook.
5947 Call register_gdbarch_init() instead.
5948
42725910
DJ
59492002-05-16 Daniel Jacobowitz <drow@mvista.com>
5950
5951 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5952 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5953 (fixup_class_method_type): Likewise.
5954
99d9066e
JB
59552002-05-15 Jim Blandy <jimb@redhat.com>
5956
5957 Add macro structures to GDB's symbol tables. Nobody puts anything
5958 in them yet.
5959 * symtab.h (struct symtab): New member: `macro_table'.
5960 * buildsym.h (pending_macros): New global variable.
5961 * buildsym.c: #include "macrotab.h".
5962 (buildsym_init): Initialize `pending_macros'.
5963 (end_symtab): If we found macro information while reading a CU's
5964 debugging info, do build a symtab structure for it. Make the
5965 symtab point to the macro information, and clear the
5966 `pending_macros' pointer which held it while we were reading the
5967 debug info.
5968 (really_free_pendings): Free any pending macro table.
5969 * objfiles.h (struct objfile): New member: `macro_cache'.
5970 * objfiles.c (allocate_objfile): Set allocate and free functions
5971 for the macro cache's objstack.
5972 (free_objfile): Empty the macro cache's obstack.
5973 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5974 set new allocate and free functions for it.
5975 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5976 free functions for the macro cache's objstack. (Why is this
5977 function building its own objfile?)
5978 * symmisc.c (print_objfile_statistics): Print statistics on the
5979 macro bcache.
5980 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5981
c899585b
RE
59822002-05-15 Richard Earnshaw <rearnsha@arm.com>
5983
5984 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5985 (REGISTER_U_ADDR): Delete definition.
5986 (arm_register_u_addr): Delete declaration.
5987
a6cdd8c5
RE
59882002-05-15 Richard Earnshaw <rearnsha@arm.com>
5989
5990 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5991 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5992
c97dcfc7
AC
59932002-05-14 Andrew Cagney <ac131313@redhat.com>
5994
5995 * regcache.c (register_valid): Revise comments refering to "Not
5996 available" and "unavailable".
5997 * frame.c (frame_register_read): Ditto.
5998 * findvar.c (value_of_register): Ditto.
5999
93021b7d
AC
60002002-05-15 Andrew Cagney <cagney@redhat.com>
6001
6002 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6003 (remote-sim.o): Update dependencies.
6004 (d10v-tdep.o): Specify dependencies.
6005 (sim_d10v_h): Define.
6006
a86bc61c
JB
60072002-05-14 Jim Blandy <jimb@redhat.com>
6008
6009 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6010 * macrotab.c (macro_lookup_inclusion, find_definition,
6011 new_macro_table): Same.
6012
6013 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6014 not `! strcmp ()'. This is a dubious improvement.
6015 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6016
6017 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6018 although it's not necessary, to avoid a warning.
6019
2fdde8f8
DJ
60202002-05-14 Daniel Jacobowitz <drow@mvista.com>
6021
6022 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6023 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6024 TYPE_INSTANCE_FLAGS.
6025 (struct main_type): New.
6026 (struct type): Move most members to struct main_type. Change
6027 cv_type and as_type to new type_chain member. Add instance_flags.
6028 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6029 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6030 (finish_cv_type): Remove prototype.
6031 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6032 Set TYPE_CHAIN.
6033 (alloc_type_instance): New function.
6034 (smash_type): New function.
6035 (make_pointer_type, make_reference_type, make_function_type)
6036 (smash_to_member_type, smash_to_method_type): Call smash_type.
6037 (make_qualified_type): New function.
6038 (make_type_with_address_space): Call make_qualified_type.
6039 (make_cv_type): Likewise.
6040 (finish_cv_type): Remove unnecessary function.
6041 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6042 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6043 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6044 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6045 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6046 * hpread.c (hpread_read_struct_type): Likewise.
6047 * stabsread.c (read_struct_type): Likewise.
6048
843fedf4
EZ
60492002-05-14 Elena Zannoni <ezannoni@redhat.com>
6050
6051 * configure.tgt: Add a catch all sh* target, for cases like
6052 sh[2,3,4]-elf and sh-hms.
6053
05a6c72c
KS
60542002-05-14 Keith Seitz <keiths@redhat.com>
6055
6056 * event-loop.c (create_file_handler): Don't do anything but
6057 update data when we are given a fd which we are already
6058 monitoring.
6059
5d085aaf
ML
60602002-05-14 Michal Ludvig <mludvig@suse.cz>
6061
6062 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6063 (update_context): Use __func__ in warnings.
6064
9db8d71f
DJ
60652002-05-14 Daniel Jacobowitz <drow@mvista.com>
6066
6067 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6068 and tcp_close to net_open and net_close.
6069 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6070 using UDP if requested. Don't try to disable Nagle on UDP
6071 sockets.
6072 * remote.c (remote_serial_open): New function. Warn about UDP.
6073 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6074
5dbc6baa
EZ
60752002-05-13 Elena Zannoni <ezannoni@redhat.com>
6076
6077 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6078
cc3023f7
EZ
60792002-05-13 Elena Zannoni <ezannoni@redhat.com>
6080
6081 * configure.tgt: Remove sh-hms target.
6082 * MAINTAINERS: Don't list sh-hms as a separate target.
6083
ec2bcbe7
JB
60842002-05-13 Jim Blandy <jimb@redhat.com>
6085
6086 Add first preprocessor macro-expansion files.
6087 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6088 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6089 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6090 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6091 (COMMON_OBS): Add macrotab.o, macroexp.o.
6092 (macroexp.o, macrotab.o): New rules.
6093
6d531722
AC
60942002-05-13 Andrew Cagney <ac131313@redhat.com>
6095
6096 * config/m88k/tm-m88k.h: Update copyright.
6097 (m88k_target_write_pc): Declare
6098 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6099 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6100 (SHIFT_INST_REGS): Update definition.
6101 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6102 using old definition of TARGET_WRITE_PC.
6103 * regcache.c (generic_target_write_pc): Delete code handling
6104 NNPC_REGNUM.
6105 * gdbarch.sh (NNPC_REGNUM): Delete.
6106 * gdbarch.h, gdbarch.c: Regenerate.
6107
3e3f2739
RE
61082002-05-13 Richard Earnshaw <rearnsha@arm.com>
6109
6110 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6111 builtin reg number.
6112
0004e5a2
DJ
61132002-05-13 Daniel Jacobowitz <drow@mvista.com>
6114
6115 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6116 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6117 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6118 access macros.
6119 * c-typeprint.c (cp_type_print_method_args): Likewise.
6120 (c_type_print_args): Likewise.
6121 * d10v-tdep.c (d10v_push_arguments): Likewise.
6122 (d10v_extract_return_value): Likewise.
6123 * expprint.c (print_subexp): Likewise.
6124 * gdbtypes.c (lookup_primitive_typename): Likewise.
6125 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6126 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6127 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6128 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6129 (TYPE_VECTOR): Likewise.
6130 * hpread.c (hpread_read_struct_type)
6131 (fix_static_member_physnames, fixup_class_method_type)
6132 (hpread_type_lookup): Likewise.
6133 * mdebugread.c (parse_symbol, parse_type): Likewise.
6134 * p-lang.c (is_pascal_string_type): Likewise.
6135 * valops.c (hand_function_call): Likewise.
6136 * x86-64-tdep.c (classify_argument): Likewise.
6137
6138 * hpread.c (hpread_read_function_type)
6139 (hpread_read_doc_function_type): Call replace_type.
6140 * dstread.c (create_new_type): Delete.
6141 (decode_dst_structure, process_dst_function): Call alloc_type.
6142 Use type access macros.
6143
dff95cc7
MK
61442002-05-12 Mark Kettenis <kettenis@gnu.org>
6145
6146 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6147 the're not supported by the current architecture.
6148 (i387_fill_fxsave): Likewise.
6149
bbcd32ad
FF
61502002-05-12 Fred Fish <fnf@redhat.com>
6151
6152 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6153 sect_index_xxx members to index the first slot in section_offsets
6154 if all of the section_offsets are zero.
6155
89cf4787
MK
61562002-05-12 Mark Kettenis <kettenis@gnu.org>
6157
6158 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6159 checked in with last change.
6160
1f77ffc5
MK
61612002-05-12 Mark Kettenis <kettenis@gnu.org>
6162
6163 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6164 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6165 config.sub.
6166
89b8b4a9
DJ
61672002-05-12 Daniel Jacobowitz <drow@mvista.com>
6168
6169 * Makefile.in: Update dependencies.
6170
14a5e767
AC
61712002-05-11 Andrew Cagney <ac131313@redhat.com>
6172
6173 * language.c (local_hex_string_custom): Simplify. Do not depend
6174 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6175
6176 * memattr.c (mem_info_command): Replace calls to
6177 longest_local_hex_string and longest_local_hex_string_custom.
6178 * buildsym.c (make_blockvector): Ditto.
6179 * solib.c (info_sharedlibrary_command): Ditto.
6180 * tracepoint.c (tracepoints_info): Ditto.
6181 * symtab.c (print_msymbol_info): Ditto.
6182
6183 * language.c (local_hex_string): Delete.
6184 (local_hex_string_custom): Delete.
6185 (longest_local_hex_string): Rename to local_hex_string.
6186 (longest_local_hex_string_custom): Rename to
6187 local_hex_string_custom.
6188 * language.h (local_hex_string): Change parameter type to LONGEST.
6189 (local_hex_string_custom): Ditto.
6190 (longest_local_hex_string): Delete declaration.
6191 (longest_local_hex_string_custom): Ditto.
6192
6193 * solib.c: Update copyright.
6194 * memattr.c: Update copyright.
6195
13d01224
AC
61962002-05-11 Andrew Cagney <ac131313@redhat.com>
6197
6198 * arch-utils.h (legacy_register_to_value): Declare.
6199 (legacy_value_to_register): Declare.
6200 (legacy_convert_register_p): Declare.
6201 * arch-utils.c (legacy_register_to_value): New function.
6202 (legacy_value_to_register): New function.
6203 (legacy_convert_register_p): New function.
6204
6205 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6206 (VALUE_TO_REGISTER): Define.
6207 (CONVERT_REGISTER_P): Define.
6208 * gdbarch.h, gdbarch.c: Regenerate.
6209
6210 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6211 VALUE_TO_REGISTER.
6212 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6213 CONVERT_REGISTER_P.
6214
4a1970e4
DJ
62152005-05-11 Daniel Jacobowitz <drow@mvista.com>
6216 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6217
6218 * Makefile.in: Update dependencies for valops.c.
6219 * valops.c: Include "gdb_assert.h".
6220 (typecmp): Skip THIS parameter to methods.
6221 (find_method_list): Remove static_memfuncp argument,
6222 update callers. Check for stub methods.
6223 (find_value_oload_method_list): Don't set *static_memfuncp.
6224 (find_overload_match): Don't check for stub methods. Assert
6225 that methods are not stubbed. Handle static methods.
6226 (value_find_oload_method_list): Remove static_memfuncp argument.
6227 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6228 to the argument list for static stub methods.
6229 * value.h (value_find_oload_method_list): Update prototype.
6230
b2e75d78
AC
62312002-05-11 Andrew Cagney <ac131313@redhat.com>
6232
6233 * arch-utils.h (generic_register_size): Declare.
6234 (generic_register_raw_size, generic_register_virtual_size): Delete
6235 declarations.
6236 * arch-utils.c (generic_register_raw_size): Delete.
6237 (generic_register_size): New function.
6238 (generic_register_virtual_size): Delete.
6239
6240 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6241 default generic_register_size.
6242 * gdbarch.h, gdbarch.c: Re-generate.
6243
6244 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6245 register_virtual_size.
6246 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6247 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6248
451fbdda
AC
62492002-05-11 Andrew Cagney <ac131313@redhat.com>
6250
6251 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6252 * gdbarch.h, gdbarch.c: Regenerate.
6253 * gnu-v3-abi.c: Update copyright.
6254 (vtable_address_point_offset): Update.
6255 (gnuv3_rtti_type): Update.
6256 (gnuv3_baseclass_offset): Update.
6257 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6258 (init_fetch_link_map_offsets): Update.
6259 * remote.c (get_remote_state): Update.
6260
6d2f5cea
DJ
62612002-05-11 Daniel Jacobowitz <drow@mvista.com>
6262
6263 * TODO: Remove value_headof/value_from_vtable_info comment.
6264 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6265 * values.c (value_headof, value_from_vtable_info): Delete.
6266 * value.h (value_from_vtable_info): Delete prototype.
6267
d2324da4
AC
62682002-05-11 Andrew Cagney <ac131313@redhat.com>
6269
6270 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6271 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6272 $(gdb_regex_h).
6273 (gdb_assert_h): Define.
6274 (gdb_wait_h): Define.
6275 (gdb_regex_h): Define.
6276
5c717440
DJ
62772002-05-11 Daniel Jacobowitz <drow@mvista.com>
6278
6279 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6280 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6281
6c7861b3
JT
62822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * nbsd-tdep.c: Fix comment.
6285
ea5bc2a6
JT
62862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6287
6288 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6289 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6290 (nbsd-tdep.o): New dependency list.
6291 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6292 nbsd-tdep.h.
6293 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6294 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6295 * nbsd-tdep.c: New file.
6296 * nbsd-tdep.h: New file.
6297 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6298 nbsd-tdep.h.
6299 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6300 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6301 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6302 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6303
b28da865
JT
63042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6305
6306 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6307 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6308 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6309 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6310 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6311 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6312
4b8ff1fa
JT
63132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6314
6315 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6316 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6317 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6318 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6319 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6320 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6321 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6322
dfe6eb1f
JT
63232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6324
6325 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6326 fetch_elfcore_registers to...
6327 * i386nbsd-tdep.c: ...here.
6328 (i386nbsd_use_struct_convention): Rename to...
6329 (i386nbsd_aout_use_struct_convention): ...this.
6330 (i386nbsd_supply_reg): New function.
6331 (i386nbsd_fill_reg): New function.
6332 (fetch_core_registers): Use i386nbsd_supply_reg.
6333 (fetch_elfcore_registers): Likewise.
6334 (_initialize_i386nbsd_tdep): New function.
6335 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6336 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6337 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6338 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6339 (i386nbsd_aout_use_struct_convention): ...this.
6340
20cb8cda
JT
63412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6342
6343 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6344 (store_inferior_registers): Use shnbsd_fill_reg.
6345 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6346 sh_nbsd_supply_register): Collapse into...
6347 (shnbsd_supply_reg): ...this.
6348 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6349 (shnbsd_fill_reg): ...this.
6350 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6351 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6352 (fetch_core_registers): Use shnbsd_supply_reg.
6353 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6354 (sh_nbsd_core_fns): Rename to...
6355 (shnbsd_core_fns): ...this.
6356 (sh_nbsd_elfcore_fns): Rename to...
6357 (shnbsd_elfcore_fns): ...this.
6358 (sh_nbsd_init_abi): Rename to...
6359 (shnbsd_init_abi): ...this.
6360 (_initialize_sh_nbsd_tdep): Rename to...
6361 (_initialize_shnbsd_tdep): ...this.
6362 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6363 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6364 sh_nbsd_fill_register): Remove prototypes.
6365 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6366
e750d25e
JT
63672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6368
6369 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6370 (i387-nat.o): Delete dependency list.
6371 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6372 (x86-64-linux-nat.o): Likewise.
6373 * i387-nat.c: Delete file, moving contents to...
6374 * i387-tdep.c: ...here.
6375 * i387-nat.h: Rename...
6376 * i387-tdep.h: ...to this.
6377 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6378 * i386-linux-nat.c: Likewise.
6379 * i386bsd-nat.c: Likewise.
6380 * i386gnu-nat.c: Likewise.
6381 * i386nbsd-nat.c: Likewise.
6382 * i386v4-nat.c: Likewise.
6383 * x86-64-linux-nat.c: Likewise.
6384 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6385 * config/i386/go32.mh (NATDEPFILES): Likewise.
6386 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6387 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6388 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6389 * config/i386/linux.mh (NATDEPFILES): Likewise.
6390 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6391 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6392 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6393 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6394
1aee598a
JT
63952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6396
6397 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6398 (alphanbsd-nat.o): Remove dependency list.
6399 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6400 * alphanbsd-nat.c: Delete. Contents moved to...
6401 * alphanbsd-tdep.c: ...here.
6402 (_initialize_alphanbsd_tdep): Register core functions.
6403 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6404
12bcb0fe
JT
64052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6406
6407 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6408 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6409 (alphanbsd-nat.o): Likewise.
6410 (alphabsd-tdep.o): New dependency list.
6411 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6412 (fill_gregset): Use alphabsd_fill_reg.
6413 (supply_fpregset): Use alphabsd_supply_fpreg.
6414 (fill_fpregset): Use alphabsd_fill_fpreg.
6415 (fetch_inferior_registers): Use struct reg and struct fpreg
6416 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6417 and alphabsd_supply_fpreg.
6418 (store_inferior_registers): Use struct reg and struct fpreg
6419 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6420 and alphabsd_fill_fpreg.
6421 * alphabsd-tdep.c: New file.
6422 * alphabsd-tdep.h: New file.
6423 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6424 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6425 alphabsd_supply_fpreg.
6426 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6427 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6428
361d1df0
EC
64292002-05-11 Eric Christopher <echristo@redhat.com>
6430
6431 * mips-tdep.c (mips_double_register_type): Fix thinko.
6432 (mips_single_register_type): Ditto.
6433 * MAINTAINERS: Add self.
6434
92dd7cee
MK
64352002-05-11 Mark Kettenis <kettenis@gnu.org>
6436
6437 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6438 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6439 right thing on architectures with different endianness and/or
6440 integer sizes.
6441
e27da16d
JT
64422002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 From Christian Limpach <chris@Pin.LU>
6445 * configure.in: Change sed expression which comments out
6446 NATDEPFILES to also comment out continuation lines.
6447 * configure: Regenerate.
6448
ddde02bd
EZ
64492002-05-10 Elena Zannoni <ezannoni@redhat.com>
6450
6451 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6452 big patch.
6453
1c922164
EZ
64542002-05-10 Elena Zannoni <ezannoni@redhat.com>
6455
6456 * sh-tdep.c: Include correct file.
6457
283150cd
EZ
64582002-05-10 Elena Zannoni <ezannoni@redhat.com>
6459
6460 New support for sh64-elf (sh5) target.
6461
6462 * configure.tgt: For sh64-elf target, default to sh-elf.
6463
6464 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6465 (struct gdbarch_tdep): Add new fields for new registers and ABI
6466 info.
361d1df0 6467
283150cd
EZ
6468 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6469 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6470 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6471 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6472 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6473 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6474 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6475 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6476 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6477 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6478 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6479 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6480 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6481 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6482 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6483 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6484 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6485 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6486 sign_extend, sh64_nofp_frame_init_saved_regs,
6487 sh64_init_extra_frame_info, sh64_get_saved_register,
6488 sh64_extract_struct_value_address, sh64_pop_frame,
6489 sh64_push_arguments, sh64_extract_return_value,
6490 sh64_store_return_value, sh64_show_media_regs,
6491 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6492 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6493 sh_sh64_register_virtual_type,
6494 sh_sh64_register_convert_to_virtual,
6495 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6496 sh64_register_read, sh64_pseudo_register_write,
6497 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6498 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6499 sh64_do_pseudo_register, sh_compact_do_registers_info,
6500 sh64_do_registers_info, sh_gdbarch_init): New functions.
6501
3117ed25
EZ
65022002-05-10 Elena Zannoni <ezannoni@redhat.com>
6503
6504 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6505
2654e6d4
DJ
65062002-05-10 Daniel Jacobowitz <drow@mvista.com>
6507
6508 * linespec.c (decode_line_1): Check for a double quote after
6509 a filename correctly.
6510
9ab3e532
JB
65112002-05-10 Jim Blandy <jimb@redhat.com>
6512
6513 Properly track the size of the current objfile's .debug_line section.
6514 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6515 (DWARF_LINE_SIZE): New macro.
6516 (dwarf2_build_psymtabs_hard): Record the line section's size in
6517 the partial symbol table.
6518 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6519 symbol table.
6520
126fa72d
PS
65212002-05-10 Petr Sorfa <petrs@caldera.com>
6522
6523 * ia64-tdep.c: Handle breakpoints on L instruction type
6524 in MLX instruction bundle by moving the breakpoint to
6525 the third slot (X instruction type) as L holds only data.
6526
1f077a3e
KB
65272002-05-10 Kevin Buettner <kevinb@redhat.com>
6528
6529 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6530 (process_one_symbol): Complain about discarding local symbols
6531 due to a misplaced N_LBRAC entry.
6532
8120c9d5 65332002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6534
6535 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6536 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6537 decrease the depth we are at, in the case of templates.
361d1df0 6538
67b2c998
DJ
65392002-05-09 Daniel Jacobowitz <drow@mvista.com>
6540
6541 * mips-tdep.c (mips_float_register_type): New function.
6542 (mips_double_register_type): New function.
6543 (mips_print_register): Use them.
6544 (do_fp_register_row): Likewise.
6545
fd326606
DJ
65462002-05-09 Daniel Jacobowitz <drow@mvista.com>
6547
6609d9af 6548 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6549 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6550 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6551
bef35864
MS
65522002-05-09 Michael Snyder <msnyder@redhat.com>
6553
6554 * remote-rdp.c (remote_rdp_can_run): Remove.
6555
c55a3f73
TT
65562002-05-09 Tom Tromey <tromey@redhat.com>
6557
6558 * jv-valprint.c (java_val_print): Handle `char' as a special case
6559 of TYPE_CODE_INT.
6560
b8d5e71d
MS
65612002-05-09 Michael Snyder <msnyder@redhat.com>
6562
6563 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6564 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6565 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6566 str r(0123),[sp,#nn].
361d1df0 6567 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6568 order-independent by placing it in a loop.
6569
e2cd42dd
MS
65702002-05-06 Michael Snyder <msnyder@redhat.com>
6571
6572 * stabsread.c (read_type): Add recognition for new attribute:
6573 "@V;" means that an array type is actually a vector.
6574 This is analogous to the vector flag that's been added to dwarf2.
6575
3ce1502b
MK
65762002-05-09 Mark Kettenis <kettenis@gnu.org>
6577
6578 * i386-tdep.h (i386_abi): New enum.
6579 (struct gdbarch_tdep): Replace os_ident member with abi.
6580 (i386_gdbarch_register_os_abi): New prototype.
6581 * i386-tdep.c (i386_abi_names): New array.
6582 (process_note_abi_tag_sections): Removed.
6583 (process_note_sections): New function.
6584 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6585 (struct i386_abi_handler): New struct.
6586 (i386_abi_handler_list): New variable.
6587 (i386_gdbarch_register_os_abi): New function.
6588 (i386_gdbarch_init): Adapt for the changes given above.
6589
084c156a
DJ
65902002-05-08 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * gregset.h: Say "GNU/Linux".
6593
6599f021
EZ
65942002-05-08 Elena Zannoni <ezannoni@redhat.com>
6595
6596 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6597 (build_gdbtypes): Build builtin_type_v2_float.
6598 (_initialize_gdbtypes): Register new builtin type.
6599
40af4b0c
AC
66002002-05-08 Andrew Cagney <ac131313@redhat.com>
6601
6602 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6603 (clear_gdbarch_swap): New function.
6604 (initialize_non_multiarch): Call.
6605 (gdbarch_update_p): Before calling init(), swap out and clear the
6606 existing architecture.
6607 * gdbarch.c: Regenerate.
6608
4fe84f46
JT
66092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6610
6611 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6612 alphanbsd-tdep.c.
6613
4015edd1
JT
66142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6615
6616 * sh-nbsd-nat.c: Rename to...
6617 * shnbsd-nat.c: ...this.
6618 * sh-nbsd-tdep.c: Rename to...
6619 * shnbsd-tdep.c: ...this.
6620 * sh-nbsd-tdep.h: Rename to...
6621 * shnbsd-tdep.h: ...this.
6622 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6623 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6624
0e2bd219
RE
66252002-05-08 Richard Earnshaw <rearnsha@arm.com>
6626
6627 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6628 concatenation for command help messages.
6629
13a38d45
JT
66302002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6631
6632 * NEWS: Note new sh*-*-netbsdelf* configuration.
6633 * configure.host: Set gdb_host_cpu to sh for all sh*.
6634 (sh*-*-netbsdelf*): New host.
6635 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6636 (sh*-*-netbsdelf*): New target.
6637 * sh-nbsd-nat.c: New file.
6638 * sh-nbsd-tdep.c: New file.
6639 * sh-nbsd-tdep.h: New file.
6640 * config/sh/nbsd.mh: New file.
6641 * config/sh/nbsd.mt: New file.
6642 * config/sh/nm-nbsd.h: New file.
6643 * config/sh/tm-nbsd.h: New file.
6644
d658f924
JT
66452002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6646
6647 * sh-tdep.c (sh_osabi_names): Declare.
6648 (process_note_abi_tag_sections): New function.
6649 (get_elfosabi): Ditto.
6650 (sh_gdbarch_register_os_abi): Ditto.
6651 (sh_dump_tdep): Ditto.
6652 _initialize_sh_tdep): Use gdbarch_register to register
6653 sh_gdbarch_init and sh_dump_tdep.
6654 * config/sh/tm-sh.h (sh_osabi): Declare.
6655 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6656
848cfffb
AC
66572002-05-07 Andrew Cagney <ac131313@redhat.com>
6658
6659 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6660 (thumb_scan_prologue): Ditto.
6661 (arm_find_callers_reg): Ditto.
6662 (arm_frame_chain): Ditto.
6663 (arm_init_extra_frame_info): Ditto.
6664 (arm_frame_saved_pc): Ditto.
6665 (arm_pop_frame): Ditto.
6666 (arm_push_return_address): New function.
6667 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6668 call_dummy_location, call_dummy_breakpoint_offset_p,
6669 call_dummy_breakpoint_offset, call_dummy_p,
6670 call_dummy_stack_adjust_p, call_dummy_words,
6671 sizeof_call_dummy_words, call_dummy_start_offset,
6672 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6673 call_dummy_address, push_return_address and push_dummy_frame for
6674 generic dummy frames.
6675
e7d717c0
JT
66762002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6677
6678 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6679 size computation for alloca.
6680 (sh_fp_frame_init_saved_regs): Likewise.
6681
7bbcf283
RE
66822002-05-07 Richard Earnshaw <rearnsha@arm.com>
6683
6684 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6685 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6686 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6687 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6688 * remote-rdp.c (remote_rdp_fetch_register): Use
6689 ARM_MAX_REGISTER_RAW_SIZE.
6690 (remote_rdp_store_register): Likewise.
6691
4657573b
ML
66922002-05-07 Michal Ludvig <mludvig@suse.cz>
6693
361d1df0 6694 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6695 added default labels to switch {} statements.
6696 * x86-64-tdep.c: Ditto.
6697 * x86-64-linux-nat.c: Ditto.
6698
010f3b2f
JT
66992002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6700
6701 * solib.h: Protect against multiple inclusion.
6702
debd256d
JB
67032002-05-06 Jim Blandy <jimb@redhat.com>
6704
9ab3e532
JB
6705 Add first preprocessor macro-expansion files.
6706 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6707 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6708 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6709 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6710 (COMMON_OBS): Add macrotab.o, macroexp.o.
6711 (macroexp.o, macrotab.o): New rules.
6712
debd256d
JB
6713 Separate the job of reading the line number info statement program
6714 header (...expialidocious) out into its own function.
6715 * dwarf2read.c (struct line_head, struct filenames, struct
6716 directories): Replace with...
6717 (struct line_header): New structure, containing the full
6718 contents of the statement program header, including the
6719 include directory and file name tables.
6720 (read_file_scope): If we have line number info, instead of just
6721 calling dwarf_decode_lines to do all the work, call
6722 dwarf_decode_line_header first to get a `struct line_header'
6723 containing the data in the statement program header, and then
6724 pass that to dwarf_decode_lines, which will pick up where that
6725 left off. Be sure to clean up the `struct line_header' object.
6726 (dwarf_decode_line_header, free_line_header, add_include_dir,
6727 add_file_name): New functions.
6728 (dwarf_decode_lines): Move all the code to read the statement
6729 program header into dwarf_decode_line_header. Take the line
6730 header it built as the first argument, instead of the offset to
6731 the compilation unit's line number info. Use the new `struct
6732 line_header' type instead of the old structures. No need to do
6733 cleanups here now, since we don't allocate anything.
6734 (dwarf2_statement_list_fits_in_line_number_section,
6735 dwarf2_line_header_too_long): New complaints.
6736
ac3aafc7
EZ
67372002-05-06 Elena Zannoni <ezannoni@redhat.com>
6738
6739 * gdbtypes.c (init_vector_type): New function.
6740 (build_builtin_type_vec128): Simplify the representation of SIMD
6741 registers.
6742 (build_gdbtypes): Initialize new builtin vector types.
6743 (_initialize_gdbtypes): Register new vector types with gdbarch.
6744 (builtin_type_v4_float, builtin_type_v4_int32,
6745 builtin_type_v8_int16, builtin_type_v16_int8,
6746 builtin_type_v2_int32, builtin_type_v4_int16,
6747 builtin_type_v8_int8): New (renamed) SIMD types.
6748
13e49980
MK
67492002-05-06 Mark Kettenis <kettenis@gnu.org>
6750
6751 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6752 (i387_fill_fxsave): Likewise.
6753
997b20b8
AO
67542002-05-05 Alexandre Oliva <aoliva@redhat.com>
6755
6756 * alpha-tdep.c (alpha_extract_return_value): Don't use
6757 non-constant array size in prototype.
6758
535c96ce
AC
67592002-05-04 Andrew Cagney <ac131313@redhat.com>
6760
6761 From Brian Taylor <briant at model dot com>:
6762 * ui-out.c (ui_out_field_core_addr): Use the function
6763 longest_local_hex_string_custom'to format addresses > 32 bits
6764 wide.
6765
6766 * ui-out.c (ui_out_field_core_addr): Update comment.
6767
bedfa57b
AC
67682002-05-04 Andrew Cagney <ac131313@redhat.com>
6769
6770 * stack.c (select_and_print_frame): Make static. Delete the
6771 parameter `level'.
6772 (func_command): Update call.
6773 (select_frame_command): Delete code computing the frame level.
6774 * frame.h (select_and_print_frame): Delete declaration.
6775
f621c63e
AC
67762002-05-04 Andrew Cagney <ac131313@redhat.com>
6777
6778 * sparc-tdep.c (sparc_get_saved_register): Comment why
6779 get_prev_frame call is safe.
6780
0f7d239c
AC
67812002-05-04 Andrew Cagney <ac131313@redhat.com>
6782
6783 * frame.h (select_frame): Delete level parameter.
6784 * stack.c (select_frame): Update. Use frame_relative_level to
6785 obtain the frame's level.
6786 (select_and_print_frame): Update call.
6787 (select_frame_command): Ditto.
6788 (up_silently_base): Ditto.
6789 (down_silently_base): Ditto.
6790 * ocd.c (ocd_start_remote): Ditto.
6791 * remote-rdp.c (remote_rdp_open): Ditto.
6792 * remote-mips.c (mips_initialize): Ditto.
6793 (common_open): Ditto.
6794 * remote-e7000.c (e7000_start_remote): Ditto.
6795 * m3-nat.c (select_thread): Ditto.
6796 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6797 (child_get_current_exception_event): Ditto.
6798 * varobj.c (varobj_create): Ditto.
6799 (varobj_update): Ditto.
6800 (c_value_of_root): Ditto.
6801 * tracepoint.c (finish_tfind_command): Ditto.
6802 * corelow.c (core_open): Ditto.
6803 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6804 * thread.c (info_threads_command): Ditto.
6805 (switch_to_thread): Ditto.
6806 * infrun.c (normal_stop): Ditto.
6807 (restore_selected_frame): Ditto.
6808 (restore_inferior_status): Ditto.
6809 * breakpoint.c (insert_breakpoints): Ditto.
6810 (watchpoint_check): Ditto.
6811 (bpstat_stop_status): Ditto.
6812 (do_enable_breakpoint): Ditto.
6813 * blockframe.c (flush_cached_frames): Ditto.
6814 (reinit_frame_cache): Ditto.
6815
71d6c7b1
AC
68162002-05-04 Andrew Cagney <ac131313@redhat.com>
6817
6818 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6819 maintainer.
6820
cda6c68a
JB
68212002-05-04 Jim Blandy <jimb@redhat.com>
6822
6823 * gdbtypes.c (replace_type): Doc fix.
6824
5c1c87f0
AC
68252002-05-04 Andrew Cagney <ac131313@redhat.com>
6826
6827 * valprint.c (strcat_longest): Delete commented out function.
6828 Update copyright.
6829
cd9bfe15
AC
68302002-05-04 Andrew Cagney <ac131313@redhat.com>
6831
6832 * MAINTAINERS: Mark a29k as deleted.
6833 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6834 Move new configurations to the top.
6835 * configure.tgt: Remove a29k.
6836 * config/a29k/tm-vx29k.h: Delete.
6837 * config/a29k/vx29k.mt: Delete.
6838 * config/a29k/tm-a29k.h: Delete.
6839 * config/a29k/a29k-udi.mt: Delete.
6840 * config/a29k/a29k.mt: Delete.
6841 * a29k-tdep.c: Delete.
6842 * remote-udi.c: Delete.
6843 * remote-mm.c: Delete.
6844 * remote-eb.c: Delete.
6845 * remote-adapt.c: Delete.
6846 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6847 * config/s390/s390x.mt: Ditto.
6848 * config/s390/s390.mt: Ditto.
6849 * config/sparc/sparclynx.mh: Ditto.
6850 * config/sparc/linux.mh: Ditto.
6851 * config/pa/hppaosf.mh: Ditto.
6852 * config/pa/hppabsd.mh: Ditto.
6853 * config/ns32k/nbsd.mt: Ditto.
6854 * config/mips/vr5000.mt: Ditto.
6855 * config/m68k/sun3os4.mh: Ditto.
6856 * config/m68k/nbsd.mt: Ditto.
6857 * config/m68k/m68klynx.mh: Ditto.
6858 * config/m32r/m32r.mt: Ditto.
6859 * config/i386/x86-64linux.mt: Ditto.
6860 * config/i386/nbsdelf.mt: Ditto.
6861 * config/i386/nbsd.mt: Ditto.
6862 * config/i386/i386lynx.mh: Ditto.
6863
bf0c5130
AC
68642002-05-04 Andrew Cagney <ac131313@redhat.com>
6865
6866 * target.c (debug_print_register): New function. Handle oversize
6867 registers.
6868 (debug_to_fetch_registers): Call.
6869 (debug_to_store_registers): Call.
6870
2ae1c2d2
JB
68712002-05-03 Jim Blandy <jimb@redhat.com>
6872
13a393b0
JB
6873 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6874 (read_type): Doc fix.
6875 * gdbtypes.c (replace_type): Doc fix.
6876
2ae1c2d2
JB
6877 * stabsread.c (multiply_defined_struct): New complaint.
6878 (read_struct_type): If the type we were passed isn't empty, or
6879 incomplete, don't read the new struct type into it; complain,
6880 and return the original type unchanged. Take a new `type_code'
6881 argument, which is the type code for the new type.
6882 (read_type): Rather than storing the type's type code here, pass
6883 it as an argument to read_struct_type, and let that take care of
6884 storing it. That way, we don't overwrite the original type code,
6885 so read_struct_type can use it to decide whether we're overwriting
6886 something we shouldn't.
6887 (complain_about_struct_wipeout): New function.
6888
8de9bdc4
AC
68892002-05-03 Andrew Cagney <ac131313@redhat.com>
6890
6891 * gdbarch.sh: Assert that gdbarch is non-NULL.
6892 * gdbarch.c: Regenerate.
6893
f773fdbb
JM
68942002-05-03 Jason Merrill <jason@redhat.com>
6895
6896 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6897 and return NULL.
6898
0e04a514
ML
68992002-05-03 Michal Ludvig <mludvig@suse.cz>
6900
6901 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6902 (x86_64_dwarf2gdb_regno_map_length),
6903 (x86_64_dwarf2_reg_to_regnum): Added.
6904 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6905 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6906 (_initialize_x86_64_tdep): Synced with the change above.
6907 (x86_64_skip_prologue): Reformulated message.
6908
065432a8
PM
69092002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6910
6911 * f-exp.y: Also use new prev_lexptr variable
6912 to improve error reporting. Based on Michael Snyder
6913 2002-04-24 dated patch to c-exp.y.
6914 * jv-exp.y: Likewise.
6915 * m2-exp.y: Likewise.
6916
a3162708
EZ
69172002-05-02 Elena Zannoni <ezannoni@redhat.com>
6918
6919 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6920 we are dealing with vectors.
6921
03620c38
PM
69222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6923
6924 * config/m68k/tm-nbsd.h: Obvious fix,
6925 correct machine name.
6926
6604db2e
PM
69272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6928
6929 * p-typeprint.c (pascal_type_print_base): Add support
6930 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6931
0906b739
PM
69322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6933
6934 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6935 for fondamental pascal 'char' type.
6936
e2625b33
PM
69372002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6938
6939 * p-lang.h (is_pascal_string_type): Declaration changed,
6940 new sixth argument of type char ** added.
361d1df0 6941 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6942 changed. Args length_pos, length_size, string_pos, char_size
6943 can now be NULL. New argument arrayname set to the field
6944 name of the char array. Return value set to char array
6945 field index plus one.
361d1df0 6946 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6947 is_pascal_string_type function.
6948
cf17c188
AC
69492002-05-02 Andrew Cagney <cagney@redhat.com>
6950
6951 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6952 <cagney@redhat.com> change.
6953 * gdbarch.c: Regenerate.
6954
52bca491
AC
69552002-05-02 Andrew Cagney <cagney@redhat.com>
6956
6957 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6958 before probing for a new one. Detect errorenous gdbarch_init
6959 functions.
6960 * gdbarch.c: Regenerate.
6961
d5e72505
AC
69622002-05-01 Andrew Cagney <cagney@redhat.com>
6963
6964 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6965 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6966 * config/v850/tm-v850.h: Ditto. Update copyright.
6967
af566d9f
AC
69682002-04-30 Andrew Cagney <ac131313@redhat.com>
6969
6970 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6971 current_gdbarch.
6972
880d85fa
MS
69732002-04-30 Michael Snyder <msnyder@redhat.com>
6974
94c30b78
MS
6975 * arm-tdep.c: Whitespace clean-ups.
6976 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6977 should have been removed as part of 4/24 change.
6978
6f5987a6
KB
69792002-04-30 Kevin Buettner <kevinb@redhat.com>
6980
6981 * rs6000-tdep.c: Added comment describing how fpscr register
6982 numbers were chosen.
6983
1a113c93
MS
69842002-04-30 Michael Snyder <msnyder@redhat.com>
6985
6986 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6987
9a6f53fe
EZ
69882002-04-29 Elena Zannoni <ezannoni@redhat.com>
6989
6990 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6991 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6992 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6993
11ed25ac
KB
69942002-04-29 Kevin Buettner <kevinb@redhat.com>
6995
6996 From Louis Hamilton <hamilton@redhat.com>:
6997 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6998 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6999 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7000 not bfd-private xcoff data, to determine wordsize.
7001 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7002
ae232405
AC
70032002-04-29 Andrew Cagney <ac131313@redhat.com>
7004
7005 GDB 5.2 released from 5.2 branch.
7006
91fd20f7
ML
70072002-04-29 Michal Ludvig <mludvig@suse.cz>
7008
7009 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7010 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7011 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7012
2dc5091b
EZ
70132002-04-29 Elena Zannoni <ezannoni@redhat.com>
7014
7015 * rs6000-tdep.c (rs6000_extract_return_value,
7016 rs6000_store_return_value): Handle returning vectors.
7017 (rs6000_gdbarch_init): Use
7018 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7019 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7020 New function.
7021 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7022 vectors.
7023 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7024 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7025
2b9848d8
PM
70262002-04-24 Pierre Muller <ics.u-strasbg.fr>
7027
7028 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7029 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7030 with fprintf_unfiltered (gdb_stderr,...).
7031
f8d17dc5
PM
70322002-04-24 Pierre Muller <ics.u-strasbg.fr>
7033
7034 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7035 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7036 Replace fprintf (stderr,...
7037 with fprintf_unfiltered (gdb_stderr,....
7038 * remote-es.c: Likewise.
7039 * remote-os9k.c: Likewise.
7040 * remote-st.c: Likewise.
7041
2f2f1ad1
AS
70422002-04-28 Andreas Schwab <schwab@suse.de>
7043
7044 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7045 linux-proc.o and gcore.o.
7046
b6779aa2
AC
70472002-04-26 Michal Ludvig <mludvig@suse.cz>
7048
7049 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7050 code without frame pointers.
7051
7e57f5f4
AC
70522002-04-26 Andrew Cagney <ac131313@redhat.com>
7053
7054 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7055 ON_STACK is needed.
7056
2ceb85d0
BE
70572002-04-26 Ben Elliston <bje@redhat.com>
7058
7059 * target.c (do_xfer_memory): Correct reference to the new option
7060 "trust-readonly-sections".
7061
f5f8a009
EZ
70622002-04-26 Elena Zannoni <ezannoni@redhat.com>
7063
7064 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7065 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7066 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7067 vectors.
7068 (read_array_type): Record the fact that this array type is really a
7069 vector (i.e. are passed in by value).
7070
5868c862
JT
70712002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7072
7073 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7074 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7075 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7076 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7077 * alpha-linux-tdep.c: Include frame.h.
7078 (alpha_linux_sigcontext_addr): New function.
7079 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7080 alpha_linux_sigcontext_addr.
7081 * alpha-osf1-tdep.c: Include gdbcore.h.
7082 (alpha_osf1_sigcontext_addr): New function.
7083 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7084 alpha_osf1_sigcontext_addr.
7085 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7086 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7087
bfb01f37
AC
70882002-04-26 Andrew Cagney <ac131313@redhat.com>
7089
361d1df0 7090 * stack.c (selected_frame_level):
bfb01f37
AC
7091 (select_frame): Do not set selected_frame_level.
7092 * frame.h (selected_frame_level): Delete declaration.
7093
15813d3f
AC
70942002-04-26 Andrew Cagney <ac131313@redhat.com>
7095
7096 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7097 convert_from_func_ptr-addr when AIX / PowerOpen.
7098
6096c27a
AC
70992002-04-25 Andrew Cagney <ac131313@redhat.com>
7100
7101 * valops.c (hand_function_call): Call
7102 generic_save_call_dummy_addr.
7103 * frame.h (generic_save_call_dummy_addr): Declare.
7104 * blockframe.c (struct dummy_frame): Add fields call_lo and
7105 call_hi.
7106 (generic_find_dummy_frame): Check for PC in range call_lo to
7107 call_hi instead of entry_point_address.
7108 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7109 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7110 (generic_save_call_dummy_addr): New function.
7111
f510d44e
DM
71122002-04-24 David S. Miller <davem@redhat.com>
7113
7114 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7115 sparc_skip_prologue.
7116 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7117 information to find prologue when possible.
7118 (sparc_prologue_frameless_p): Call examine_prologue directly.
7119 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7120 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7121 second argument.
7122 (SKIP_PROLOGUE): Likewise.
7123
15d72a92
JT
71242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7125
7126 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7127 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7128 indicate that the condition it was testing is always true.
7129 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7130 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7131 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7132
accc6d1f
JT
71332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7134
7135 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7136 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7137 tdep->jb_pc and tdep->jb_elt_size.
7138 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7139 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7140 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7141 * alpha-nat.c (get_longjmp_target): Remove.
7142 (JB_ELEMENT_SIZE): Ditto.
7143 (JB_PC): Ditto.
7144 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7145 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7146 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7147 to alpha_get_longjmp_target.
7148 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7149 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7150 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7151
1bfdc549
AC
71522002-04-25 Andrew Cagney <ac131313@redhat.com>
7153
7154 * README: Update to GDB 5.2.
7155
1bd316f0
AC
71562002-04-25 Andrew Cagney <ac131313@redhat.com>
7157
7158 * gdbarch.sh (LC_ALL): Set to `c'.
7159
2e5ff58c
TR
71602002-04-25 Theodore A. Roth <troth@verinet.com>
7161
7162 * avr-tdep.c: Ran through gdb_indent.sh.
7163
e33ce519
TR
71642002-04-25 Theodore A. Roth <troth@verinet.com>
7165
7166 * MAINTAINERS: Add myself as AVR maintainer.
7167 * NEWS: Note new target avr.
7168
8818c391
TR
71692002-04-25 Theodore A. Roth <troth@verinet.com>
7170
7171 * Makefile.in: Add support for AVR target.
7172 * configure.tgt: Add support for AVR target.
7173 * avr-tdep.c: New file
7174 * config/avr/avr.mt: New file.
7175
79509c2d
TR
71762002-04-25 Theodore A. Roth <troth@verinet.com>
7177
7178 * MAINTAINERS: Add myself to write-after-approval.
7179
dac8068e
PM
71802002-04-24 Pierre Muller <ics.u-strasbg.fr>
7181
7182 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7183 with fprintf_unfiltered (gdb_stderr,....
7184
25bf3106
PM
71852002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7186
7187 Fix PR gdb/508.
7188 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7189
24467a86
PM
71902002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7191
7192 * p-exp.y: Also use new prev_lexptr variable
7193 to improve error reporting. Based on Michael Snyder
7194 2002-04-24 dated patch to c-exp.y.
7195
95b80706
JT
71962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7197
7198 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7199 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7200 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7201 to 0.
7202 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7203 and struct value.
7204 (FUNCTION_START_OFFSET): Remove.
7205 (BREAKPOINT): Ditto.
7206
e90cc612
JT
72072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7208
7209 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7210 * NEWS: Ditto.
7211
6c72f9f9
JT
72122002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7213
7214 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7215 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7216 alpha_linux_pc_in_sigtramp.
7217 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7218 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7219 alpha_osf1_pc_in_sigtramp.
7220 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7221 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7222 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7223 alphafbsd_pc_in_sigtramp.
7224 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7225 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7226 alphanbsd_pc_in_sigtramp.
7227 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7228 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7229
5e4f3379
JT
72302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7231
7232 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7233
da8ca43d
JT
72342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7235
7236 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7237 alphanbsd-tdep.c.
7238 (alphanbsd-nat.o): New dependency list.
7239 (alphanbsd-tdep.o): Ditto.
7240 * NEWS: Note new native NetBSD/alpha configuration.
7241 * alphanbsd-nat.c: New file.
7242 * alphanbsd-tdep.c: Ditto.
7243 * configure.host (alpha*-*-netbsd*): New host.
7244 * configure.tgt (alpha*-*-netbsd*): New target.
7245 * config/alpha/nbsd.mh: New file.
7246 * config/alpha/nbsd.mt: Ditto.
7247 * config/alpha/nm-nbsd.h: Ditto.
7248 * config/alpha/tm-nbsd.h: Ditto.
7249
36a6271d
JT
72502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7253 (alpha-osf1-tdep.o): New dependency list.
7254 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7255 and skip_sigtramp_frame members.
7256 * alpha-linux-tdep.c: Include gdbcore.h.
7257 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7258 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7259 * alpha-osf1-tdep.c: New file.
7260 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7261 alpha-osf1-dep.c.
7262 (alpha_frame_past_sigtramp_frame): New function.
7263 (alpha_dynamic_sigtramp_offset): Ditto.
7264 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7265 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7266 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7267 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7268 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7269 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7270 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7271 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7272 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7273 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7274 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7275 to find_solib_trampoline_target.
7276 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7277 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7278 (SKIP_TRAMPOLINE_CODE): Remove.
7279 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7280 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7281 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7282 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7283 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7284 (PROC_SIGTRAMP_MAGIC): Ditto.
7285 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7286 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7287 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7288 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7289 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7290
2f4bc57b
JT
72912002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7292
7293 * NEWS: Note that Alpha targets are now multi-arch.
7294
665132f9
MS
72952002-04-24 Michael Snyder <msnyder@redhat.com>
7296
7297 * parser-defs.h (prev_lexptr): New external variable.
7298 * parse.c (parse_exp_1): Set prev_lexptr to null before
7299 calling the language-specific parser.
7300 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7301 (yyerror): Use prev_lexptr in error reporting.
7302
32872fa7
DJ
73032002-04-24 Daniel Jacobowitz <drow@mvista.com>
7304
7305 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7306 * gregset.h: If FILL_FPXREGSET is defined, provide
7307 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7308 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7309 is defined, call fill_fpxregset.
7310
57e76fac
MS
73112002-04-24 Roland McGrath <roland@frob.com>
7312
7313 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7314 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7315 (supply_gregset, supply_fpregset): New functions.
7316
7317 * gnu-nat.c (gnu_find_memory_regions): New function.
7318 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7319 (gnu_xfer_memory): Add a cast.
7320
f43845b3
MS
73212002-04-24 Michael Snyder <msnyder@redhat.com>
7322
361d1df0 7323 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7324 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7325 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7326 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7327 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7328 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7329
a0abec03
AC
7330Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7331
7332 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7333 NUM_PSEUDO_REGS can be used.
7334
d7bd68ca
AC
73352002-04-24 Andrew Cagney <ac131313@redhat.com>
7336
7337 * arch-utils.h: Update copyright.
7338
7339 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7341
7342 * inferior.h (IN_SIGTRAMP): Delete definition.
7343 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7344 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7345
7346 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7347 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7348 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7349 (find_proc_framesize): Ditto.
7350 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7351 (alpha_init_extra_frame_info): Ditto.
7352 * infrun.c (handle_inferior_event): Ditto.
7353 (handle_inferior_event): Ditto.
7354 (check_sigtramp2): Ditto.
7355 * blockframe.c (create_new_frame): Ditto.
7356 (get_prev_frame): Ditto.
7357 * ppc-linux-tdep.c: Update comments.
7358 * i386-linux-tdep.c: Update comments.
7359 * breakpoint.c (bpstat_what): Update comment.
7360
4867e41e
DM
73612002-04-24 David S. Miller <davem@redhat.com>
7362
21d83aa5
DM
7363 * i960-tdep.c (register_in_window_p): New function.
7364 (i960_find_saved_register): Use it instead of
7365 REGISTER_IN_WINDOW_P.
7366 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7367
4867e41e
DM
7368 * symtab.h (find_stab_function_addr): Kill extern.
7369 * minsyms.c (find_stab_function_addr): Remove from here...
7370 * dbxread.c: ... to here, and mark it static.
7371
69cdf6a2
DM
73722002-04-20 David S. Miller <davem@redhat.com>
7373
7374 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7375 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7376
5a595886
DM
73772002-04-21 David S. Miller <davem@redhat.com>
7378
7379 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7380 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7381 (vx_write_register): Likewise.
7382
1da1a192
JB
73832002-04-23 J. Brobecker <brobecker@gnat.com>
7384
7385 * source.c (is_regular_file): New function.
7386 (openp): Check wether file to open is a regular file
7387 to avoid opening directories.
7388
baa6f10b
JT
73892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7390
7391 * findvar.c (extract_signed_integer): Cast printf argument
7392 to suppress format warning.
7393 (extract_unsigned_integer): Likewise.
7394 * infcmd.c (registers_info): Likewise.
7395 * top.c (get_prompt_1): Likewise.
7396 * valops.c (value_assign): Likewise.
7397 * valprint.c (print_decimal): Likewise.
7398
b2c4da81
L
73992002-04-22 H.J. Lu (hjl@gnu.org)
7400
7401 * c-exp.y (typebase): Support
361d1df0 7402
b2c4da81
L
7403 [long|long long|short] [signed|unsigned] [int|]
7404
7405 and
7406
7407 signed [long|long long|short] int
7408
f267bd6a
JT
74092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7410
7411 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7412 and vax-tdep.h.
7413 * vax-tdep.h: New file.
7414 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7415 Make several routines static.
7416 (vax_get_saved_register): New function.
7417 (vax_gdbarch_init): New function.
7418 (_initialize_vax_tdep): Register vax_gdbarch_init.
7419 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7420 Remove macros now under the control of gdbarch.
7421
da3c6d4a
MS
74222002-04-22 Michael Snyder <msnyder@redhat.com>
7423
11d3b27d
MS
7424 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7425 Some whitespace and coding standards tweaks.
da3c6d4a 7426
a33f7558
JT
74272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7428
7429 * vax-tdep.c: Include regcache.h.
7430 (vax_call_dummy_words): New.
7431 (sizeof_vax_call_dummy_words): New.
7432 (vax_fix_call_dummy): New function.
7433 (vax_saved_pc_after_call): Ditto.
7434 * config/vax/tm-vax.h: Don't include regcache.h.
7435 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7436 (CALL_DUMMY): Remove.
7437 (CALL_DUMMY_WORDS): Define.
7438 (SIZEOF_CALL_DUMMY_WORDS): Define.
7439 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7440
47a73475
MS
74412002-04-18 Michael Snyder <msnyder@redhat.com>
7442
7443 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7444
52efde73
JT
74452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * vax-tdep.c (vax_frame_chain): New function.
7448 (vax_push_dummy_frame): Ditto.
7449 (vax_pop_frame): Ditto.
7450 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7451 (FRAMELESS_FUNCTION_INVOCATION): Use
7452 generic_frameless_function_invocation_not.
7453 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7454 (POP_FRAME): Use vax_pop_frame.
7455
ea74468c
JT
74562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * vax-tdep.c (vax_store_struct_return): New function.
7459 (vax_extract_return_value): Ditto.
7460 (vax_store_return_value): Ditto.
7461 (vax_extract_struct_value_address): Ditto.
7462 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7463 vax_store_struct_return.
7464 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7465 (STORE_RETURN_VALUE): Use vax_store_return_value.
7466 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7467
5516aa92
JT
74682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7469
7470 * vax-tdep.c (vax_frame_saved_pc): New function.
7471 (vax_frame_args_address_correct): Ditto.
7472 (vax_frame_args_address): Ditto.
7473 (vax_frame_locals_address): Ditto.
7474 (vax_frame_num_args): Move code to be in proximity to
7475 other frame-related functions.
7476 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7477 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7478 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7479 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7480 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7481
36af0b35
L
74822002-04-22 H.J. Lu (hjl@gnu.org)
7483
7484 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7485 includedir.
7486
ab62c900
JT
74872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7490 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7491 (FRAME_INIT_SAVED_REGS): New macro.
7492
7232b100
JT
74932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7494
7495 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7496
b70d2aee
JT
74972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7498
7499 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7500 where needed.
7501 (fetch_osf_core_registers): Likewise.
7502 (supply_gregset): Likewise.
7503
a0e8a2d1 75042002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7505
a0e8a2d1
JB
7506 * symfile.h (get_section_index): Define.
7507 * symfile.c (get_section_index): New function.
7508 * mdebugread.c (SC_IS_SBSS): New macro.
7509 (SC_IS_BSS): Return true for the scBss storage class only, as
7510 the scSBss storage class refers to the .sbss section.
7511 (parse_partial_symbols): Discard the symbols which associated
7512 section does not exist.
7513 Make sure to use the .sbss section index for symbols which
7514 storage class is scBss, rather than using the .bss section index.
7515
51eb8b08
JT
75162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7517
7518 * vax-tdep.c: Update copyright years.
7519 (vax_register_name): New function.
7520 (vax_register_byte): Ditto.
7521 (vax_register_raw_size): Ditto.
7522 (vax_register_virtual_size): Ditto.
7523 (vax_register_virtual_type): Ditto.
7524 * config/vax/tm-vax.h: Update copyright years.
7525 (REGISTER_NAMES): Remove.
7526 (REGISTER_NAME): Define.
7527 (REGISTER_BYTE): Use vax_register_byte.
7528 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7529 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7530 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7531
6cc1c0a8
AC
75322002-04-21 Andrew Cagney <ac131313@redhat.com>
7533
7534 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7535 declaration
7536 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7537
9319a2fe
DM
75382002-04-21 David S. Miller <davem@redhat.com>
7539
7540 * arch-utils.c (generic_prologue_frameless_p): Kill
7541 SKIP_PROLOGUE_FRAMELESS_P code.
7542 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7543 references.
7544 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7545 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7546 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7547 references.
7548 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7549 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7550 (sparc_gdbarch_init): Pass it to
7551 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7552
e9ed6d01
JT
75532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7556 (alphabsd-nat.o): New dependency list.
7557
36012033
JT
75582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7559
7560 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7561 alphafbsd-tdep.c.
7562 (alpha-linux-tdep.o): New dependency list.
7563 (alphafbsd-tdep.o): Likewise.
7564
3379287a
JT
75652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7568 to here...
7569 * alpha-tdep.c: ...from here.
7570 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7571
4bcbd6cb
JT
75722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7573
7574 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7575 prototype from here...
7576 * alpha-tdep.h: ...to here.
7577
b31da25e
AC
75782002-04-21 Andrew Cagney <ac131313@redhat.com>
7579
7580 * frame.h (selected_frame_level): Document as deprecated.
7581 (frame_relative_level): Declare.
7582 * stack.c (frame_relative_level): New function.
7583 (selected_frame_level): Document as deprecated.
7584 (select_frame): Do not set the selected_frame_level.
7585
7586 * stack.c (frame_info, record_selected_frame): Update.
7587 (frame_command, current_frame_command): Update.
7588 (up_silently_base, up_command, down_silently_base): Update.
7589 (down_command): Update.
7590 * inflow.c (kill_command): Update.
7591 * tracepoint.c (finish_tfind_command): Update.
7592 * corelow.c (core_open): Update.
7593 * thread.c (info_threads_command): Update.
7594 (do_captured_thread_select): Update.
7595 * infcmd.c (finish_command): Update.
7596 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7597
9c1d6fe5
JT
75982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7599
7600 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7601
ab89facf
AC
76022002-04-21 Andrew Cagney <ac131313@redhat.com>
7603
7604 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7605 type const.
7606
82a4efa1
JT
76072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * alphafbsd-tdep.c: Update copyright years. Include
7610 alpha-tdep.h.
7611 (alphafbsd_use_struct_convention): Make static.
7612 (alphafbsd_init_abi): New function.
7613 (_initialize_alphafbsd_tdep): New function.
7614 * config/alpha/tm-fbsd.h: Update copyright years.
7615 (USE_STRUCT_CONVENTION): Remove.
7616
44dffaac
JT
76172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7620 an Alpha ABI variant.
7621 (alpha_abi_handler_list): Declare.
7622 (alpha_gdbarch_register_os_abi): New function.
7623 (alpha_gdbarch_init): Give registered ABI variant handlers a
7624 chance to tweak the gdbarch once we have set up defaults.
7625 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7626
65585be4
JT
76272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7628
7629 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7630 to standard_coerce_float_to_double.
7631 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7632
d9b023cc
JT
76332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7634
7635 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7636 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7637 from gdbarch_tdep rather than a constant.
7638 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7639 the default text address for all Alpha Unix ABIs.
7640 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7641 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7642
dc129d82
JT
76432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7644
7645 * alpha-tdep.h: New file. Includes several Alpha target constants
7646 taken from...
7647 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7648 let gdbarch deal with.
7649 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7650 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7651 to dependency list.
7652 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7653 Alpha target register names.
7654 * alphabsd-nat.c: Likewise.
7655 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7656 Alpha target register names. Make serveral routines static.
7657 (alpha_get_saved_register): New function.
7658 (alpha_abi_names): New.
7659 (process_note_abi_tag_sections): New function.
7660 (get_elfosabi): New function.
7661 (alpha_gdbarch_init): New function.
7662 (alpha_dump_tdep): New function.
7663 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7664
d49d1e0a
AC
76652002-04-21 Andrew Cagney <ac131313@redhat.com>
7666
7667 * frame.c (find_saved_register): Delete #ifdef
7668 HAVE_REGISTER_WINDOWS code.
7669 * config/sparc/tm-sparc.h: Update comments.
7670 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7671
92e8c9ed
AC
76722002-04-21 Andrew Cagney <ac131313@redhat.com>
7673
7674 * i960-tdep.c (i960_find_saved_register): New function.
7675 (i960_get_saved_register): New function.
7676 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7677 (i960_get_saved_register): Declare.
7678 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7679
e1925118
DM
76802002-04-20 David S. Miller <davem@redhat.com>
7681
7682 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7683
29673b29
AC
76842002-04-20 Andrew Cagney <ac131313@redhat.com>
7685
7686 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7687 instead of NUM_PSEUDO_REGS.
7688
6c86dcd5
DM
76892002-04-20 David S. Miller <davem@redhat.com>
7690
7691 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7692 GDB_MULTI_ARCH_PARTIAL
7693 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7694 define, let tm-sp64.h do it.
7695
aa40ec90
JT
76962002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7697
7698 * frame.c (find_saved_register): Avoid a NULL pointer
7699 dereference and actually walk the frame list.
7700
0f79675b
AC
77012002-04-20 Andrew Cagney <ac131313@redhat.com>
7702
7703 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7704 sorted in most most-recent-used order. Document.
7705 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7706
f91305dd 77072002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7708
7709 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7710 instead of ->prev.
7711 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7712 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7713 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7714 instead of ->prev.
7715
73d322b1
EZ
77162002-04-19 Elena Zannoni <ezannoni@redhat.com>
7717
7718 Fix PR gdb/471.
7719 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7720 (build_builtin_type_vec128): Ditto.
7721 (append_composite_type_field): Fix calculation of type length in
7722 union case.
7723
ccd9a834
EZ
77242002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7725
7726 * config/djgpp/README: Update.
7727
7728 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7729 compiler warnings.
7730
a57f9e49
JT
77312002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7732
7733 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7734 (alpha_setup_arbitrary_frame): ...to this.
7735 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7736 for alpha_setup_arbitrary_frame.
7737
f4f9705a
AC
77382002-04-18 Andrew Cagney <cagney@redhat.com>
7739
7740 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7741 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7742
f4f9705a
AC
7743 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7744 * target.h (memory_breakpoint_from_pc): Update declaration.
7745 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7746
7747 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7748 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7749 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7750 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7751 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7752 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7753 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7754 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7755 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7756 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7757 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7758 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7759
7760 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7761 const pointer.
7762 * monitor.c (monitor_insert_breakpoint): Ditto.
7763 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7764
7765 * config/mcore/tm-mcore.h: Update copyright.
7766 * mem-break.c: Ditto.
7767 * xstormy16-tdep.c: Ditto.
7768
29f319b8
PM
77692002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7770
7771 * p-exp.y: Add precedence rule for '^' token.
7772 This removes the shift/reduce conflicts.
7773 Remove the comment concerning these shift/reduce conflicts.
7774
ebeac11a
EZ
77752002-04-18 Elena Zannoni <ezannoni@redhat.com>
7776
7777 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7778 (registers_powerpc_nofp): New register set for processors
7779 without floating point unit.
7780
27c31547
DM
77812002-04-18 David S. Miller <davem@redhat.com>
7782
7783 * MAINTAINERS: Add myself to write-after-approval.
7784
47a73475
MS
77852002-04-17 Michael Snyder <msnyder@redhat.com>
7786
7787 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7788
953836b2
AC
77892002-04-17 Andrew Cagney <ac131313@redhat.com>
7790
7791 * rs6000-tdep.c (frame_initial_stack_address): Use
7792 frame_register_read to read the alloca_reg.
7793
8b0d4340
AC
77942002-04-17 Andrew Cagney <ac131313@redhat.com>
7795
7796 * frame.c (find_saved_register): Find saved registers in the next
7797 not prev frame.
7798 Fix PR gdb/365.
7799
d8864532
AC
78002002-04-17 Andrew Cagney <ac131313@redhat.com>
7801
7802 * gdbarch.sh (LANG): Set to ``c''.
7803
36cc83a3 78042002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7805
36cc83a3 7806 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7807
2f4150cc 78082002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7809
7810 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7811 Update copyright.
7812
628703c6 7813 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7814 Also fix PR gdb/391.
361d1df0 7815
56157b4a
AC
78162002-04-14 Andrew Cagney <ac131313@redhat.com>
7817
7818 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7819 * aclocal.m4, configure: Re-generate.
7820 Fix PR gdb/391.
361d1df0 7821
6d1e3329
EZ
78222002-04-14 Elena Zannoni <ezannoni@redhat.com>
7823
7824 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7825 instead of tm_print_insn.
7826
cb06fa07
EZ
78272002-04-14 Elena Zannoni <ezannoni@redhat.com>
7828
7829 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7830
f208ba17
AC
78312002-04-14 Andrew Cagney <ac131313@redhat.com>
7832
7833 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7834 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7835 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7836
20f01a46
DH
78372002-04-12 Don Howard <dhoward@redhat.com>
7838
7839 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7840 max_user_call_depth.
7841 (init_cmd_lists): Initialize the new value;
7842 * cli/cli-script.c (execute_user_command): Limit the call depth of
7843 user defined commands. This avoids a core-dump when user commands
7844 are infinitly recursive.
7845
a88376a3
KB
78462002-04-12 Kevin Buettner <kevinb@redhat.com>
7847
7848 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7849 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7850 from tdep struct instead of DEFAULT_LR_SAVE.
7851 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7852 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7853 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7854
f2172603
MS
78552002-04-12 Michael Snyder <msnyder@redhat.com>
7856
694f61fb 7857 * Remote.c: Spelling fix.
20fe79c8
MS
7858 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7859 If no symbol found for "sbrk", try "_sbrk".
7860 (make_output_phdrs): Use bfd_section_name.
7861 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7862 * eval.c: Indentation fix-ups.
169a7369
MS
7863 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7864 in case it gets applied to an address that is already
7865 in the instruction space.
de74f71f
MS
7866 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7867 * symfile.c: Fix indentation, long lines.
f2172603
MS
7868 * source.c: White space fix-up.
7869
cda5a58a
AC
78702002-04-12 Andrew Cagney <cagney@redhat.com>
7871
7872 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7873 * frame.c (frame_register_read): New function. Return non-zero on
7874 success.
7875 (read_relative_register_raw_bytes_for_frame): Delete.
7876 (read_relative_register_raw_bytes): Delete.
7877 * frame.h (frame_register_read): Declare.
7878 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7879 * sh-tdep.c: Ditto.
7880 * infcmd.c (do_registers_info): Ditto.
7881 * hppa-tdep.c: Ditto.
7882 * rs6000-tdep.c: Ditto.
7883 * h8500-tdep.c: Ditto.
7884 * mips-tdep.c: Ditto.
7885 * h8300-tdep.c: Ditto.
7886 * z8k-tdep.c: Ditto.
7887
2ea5f656
KB
78882002-04-12 Kevin Buettner <kevinb@redhat.com>
7889
7890 From Jimi X <jimix@watson.ibm.com>:
7891 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7892 64-bit SysV ABI.
7893
27b15785
KB
78942002-04-12 Kevin Buettner <kevinb@redhat.com>
7895
7896 From Jimi X <jimix@watson.ibm.com>:
7897 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7898 bfd info.
7899
5d57ee30
KB
79002002-04-12 Kevin Buettner <kevinb@redhat.com>
7901
7902 From Jimi X <jimix@watson.ibm.com>:
7903 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7904 register sets for these processor variants.
7905
bc1e36ca
DJ
79062002-04-11 Daniel Jacobowitz <drow@mvista.com>
7907
bc1e36ca
DJ
7908 * regformats/reg-ppc.dat: Support FPSCR.
7909
e3f36dbd
KB
79102002-04-11 Kevin Buettner <kevinb@redhat.com>
7911
7912 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7913 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7914 Add fpscr as an invalid/unfetchable register.
7915 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7916 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7917 (fill_fpregset): Add support for register fpscr.
7918 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7919 (fill_gregset): Account for the fact that register ``mq'' might
7920 not exist.
7921 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7922 (registers_power): Add fpscr to register set at slot 71.
7923 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7924 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7925
943c9c25
MS
79262002-04-11 Michael Snyder <msnyder@redhat.com>
7927
7928 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7929 * configure: Regenerate.
7930 * config.in: Regenerate.
7931 * acconfig.h: Add define for _SYSCALL32.
7932 * core-sol2.c: Remove #define _SYSCALL32.
7933 * solib-legacy.c: Remove #define _SYSCALL32.
7934
d8c0a2e7
AC
79352002-04-10 Andrew Cagney <ac131313@redhat.com>
7936
7937 * stack.c (select_frame): Cleanup internal error message, do not
7938 use %p.
7939
7cc19214
AC
79402002-04-10 Andrew Cagney <ac131313@redhat.com>
7941
7942 * stack.c (select_frame): Check that selected_frame and the
7943 specified level are as expected.
7944 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7945 Update copyright.
7946 * frame.h (struct frame_info): Add field `level'. Update
7947 copyright.
7948 Work-in-progress PR gdb/464.
7949
67a2b77e
AC
79502002-04-10 Andrew Cagney <ac131313@redhat.com>
7951
7952 * maint.c (maint_print_section_info): Rename print_section_info.
7953 (print_bfd_section_info, print_objfile_section_info): Update.
7954 * inferior.h (struct gdbarch): Add opaque declaration.
7955 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7956 * gdbarch.h: Regenerate.
7957
8cfda98c
ML
79582002-04-10 Michal Ludvig <mludvig@suse.cz>
7959
7960 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7961 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7962 (kernel_u_size): Added.
7963 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7964 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7965
ca439ad2 79662002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7967
ca439ad2
JI
7968 * valarith.c (find_size_for_pointer_math): New function, either returns
7969 the size for a pointer's target, returns 1 for void *, or errors for
7970 incomplete types.
7971 (value_add, value_sub): use find_size_for_pointer_math.
7972
2f2893d9
DJ
79732002-04-09 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * linux-low.c (linux_look_up_symbols): New hook.
7976 (linux_target_ops): Add linux_look_up_symbols.
7977 * remote-utils.c (decode_address): New function.
7978 (look_up_one_symbol): New function.
7979 * server.c (handle_query): Call target look_up_symbols hook.
7980 * server.h (look_up_one_symbol): Add prototype.
7981 * target.h (struct target_ops): Add look_up_symbols hook.
7982
96cb11df
AC
79832002-04-09 Andrew Cagney <ac131313@redhat.com>
7984
7985 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7986 override FP_REGNUM with frame->fp. Update copyright.
7987 * parse.c (num_std_regs, std_regs): Delete.
7988 (target_map_name_to_register): Do not search std_regs. Update
7989 function description.
7990 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7991 declarations. Update copyright.
7992 Fix PR gdb/251.
361d1df0 7993
97658e92
DJ
79942002-04-09 Daniel Jacobowitz <drow@mvista.com>
7995
7996 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7997 after the last symbol in a block.
7998
6044e3eb
PM
79992002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8000
8001 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8002 is non zero as a found symbol.
8003
0406ec40
AC
80042002-04-08 Andrew Cagney <ac131313@redhat.com>
8005
8006 * findvar.c: Include "builtin-regs.h".
8007 (value_of_register): Call value_of_builtin_reg when applicable.
8008 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8009 (target_map_name_to_register): Call
8010 builtin_reg_map_name_to_regnum.
8011 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8012 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8013 (builtin_regs_h): Define.
8014 (builtin-regs.o): New target.
8015 (findvar.o): Add $(builtin_regs_h).
8016 * builtin-regs.c, builtin-regs.h: New files.
8017 * std-regs.c: New file.
8018 Partial fix for PR gdb/251.
8019
56a6dfb9
KB
80202002-04-08 Kevin Buettner <kevinb@redhat.com>
8021
8022 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8023 it's no longer required.
8024
3a808432
AC
80252002-04-08 Andrew Cagney <ac131313@redhat.com>
8026
8027 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8028
7c40d541
KB
80292002-04-08 Kevin Buettner <kevinb@redhat.com>
8030
8031 From Jimi X <jimix@watson.ibm.com>:
8032 * rs6000-tdep.c (rs6000_software_single_step): Use
8033 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8034 and size. Use target_insert_breakpoint() and
8035 target_remove_breakpoint() to insert and remove breakpoints
8036 instead of explicit memory reads and writes.
8037
cc9836a8
KB
80382002-04-08 Kevin Buettner <kevinb@redhat.com>
8039
8040 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8041 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8042 ELF_OBJECT_FORMAT ifdef.
8043
7495d1dc
KB
80442002-04-08 Kevin Buettner <kevinb@redhat.com>
8045
8046 From Jimi X <jimix@watson.ibm.com>:
8047 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8048
4288e836
KB
80492002-04-08 Kevin Buettner <kevinb@redhat.com>
8050
8051 From Jimi X <jimix@watson.ibm.com>:
8052 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8053 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8054
a4e4e501
MK
80552002-04-07 Mark Kettenis <kettenis@gnu.org>
8056
8057 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8058 s/asprintf/xasprintf/.
8059 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8060
006defba
AC
80612002-04-07 Andrew Cagney <ac131313@redhat.com>
8062
8063 I believe Jeff Law denies responsability for this one:
8064 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8065 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8066 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8067 Work-around for PR gdb/366.
8068
7aa83cac
EZ
80692002-04-07 Elena Zannoni <ezannoni@redhat.com>
8070
8071 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8072 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8073 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8074
cf1fcca1
EZ
80752002-04-07 Elena Zannoni <ezannoni@redhat.com>
8076
8077 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8078 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8079 information.
8080
3f289e6f
AC
80812002-04-07 Andrew Cagney <ac131313@redhat.com>
8082
8083 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8084 maintainer.
8085
129188f6
AC
80862002-04-07 Andrew Cagney <ac131313@redhat.com>
8087
8088 * README (Reporting Bugs in GDB): Document the bug web page as the
8089 prefered way of submitting bugs.
8090 Fix PR gdb/402.
8091
1200cd6e
AC
80922002-04-06 Andrew Cagney <ac131313@redhat.com>
8093
8094 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8095 -1. Update comment.
8096 * gdbarch.h, gdbarch.c: Re-generate.
8097
2853c33c
AS
80982002-04-07 Andreas Schwab <schwab@suse.de>
8099
8100 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8101 buffer to regcache_collect.
8102
c2169756
AC
81032002-04-06 Andrew Cagney <ac131313@redhat.com>
8104
8105 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8106 * gdbarch.c, gdbarch.h: Re-generate.
8107
25f1b008
AC
81082002-04-06 Andrew Cagney <ac131313@redhat.com>
8109
8110 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8111 declaration. Fix -Werror.
8112
59263426
DJ
81132002-04-05 Daniel Jacobowitz <drow@mvista.com>
8114
8115 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8116 * gdbarch.c: Regenerate.
8117
f5db4da3
MS
81182002-04-05 Michael Snyder <msnyder@redhat.com>
8119
80f8a6eb
MS
8120 * breakpoint.c (clear_command): Rewrite middle section to
8121 combine two loops with identical control conditions.
8122 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8123 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8124
ad3dcc5c
L
81252002-04-05 H.J. Lu (hjl@gnu.org)
8126
8127 * solib-svr4.c (bkpt_names): Add "__start".
8128
f32e7a74
AC
81292002-04-04 Andrew Cagney <ac131313@redhat.com>
8130
8131 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8132 as test for 64 bit target.
8133
8227c0ff
AC
81342002-04-05 Andrew Cagney <ac131313@redhat.com>
8135
8136 * h8500-tdep.c (h8500_write_fp): Delete function.
8137 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8138 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8139 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8141 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8142 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8143 (s390_write_fp):
8144 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8145 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8146 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8147 (d10v_write_fp): Delete function.
8148 * inferior.h (write_fp, generic_target_write_fp): Delete
8149 declarations.
8150 * regcache.c (generic_target_write_fp): Delete function.
8151 (write_fp): Delete function.
8152 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8155 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8156 (sparc64_write_fp): Delete declaration.
8157 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8158 (h8500_write_fp): Delete declaration.
8159
2757dd86
AC
81602002-04-04 Andrew Cagney <ac131313@redhat.com>
8161
8162 * sparc-tdep.c (sparc64_write_fp): Delete.
8163 (sparc_push_dummy_frame): Replace write_fp call with code to store
8164 the FP directly.
8165 (sparc_gdbarch_init): Do not initialize write_fp.
8166
c69255e1
KB
81672002-04-05 Kevin Buettner <kevinb@redhat.com>
8168
8169 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8170 clause.
8171
ae767bfb
JB
81722002-03-29 Jim Blandy <jimb@redhat.com>
8173
8174 * stack.c (get_selected_block): Add new argument `addr_in_block',
8175 used to return the exact code address we used to select the block,
8176 not just the block.
8177 * blockframe.c (get_frame_block, get_current_block): Same.
8178 * frame.h (get_frame_block, get_current_block,
8179 get_selected_block): Update declarations.
8180 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8181 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8182
84d2ac95
MS
81832002-04-05 Michael Snyder <msnyder@redhat.com>
8184
8185 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8186 warning message.
8187
596aa3bf
JB
81882002-04-05 J. Brobecker <brobecker@gnat.com>
8189
8190 * utils.c (xfullpath): New function.
8191 * defs.h (xfullpath): Add declaration.
8192 * source.c (openp): Use xfullpath in place of gdb_realpath to
8193 avoid resolving the basename part of filenames when the
8194 associated file is a symbolic link. This fixes a potential
8195 inconsistency between the filenames known to GDB and the
8196 filenames it prints in the annotations.
8197 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8198 to be able to match a filename with either the real filename, or
8199 the name of any symbolic link to this file.
8200 (lookup_partial_symtab): Ditto.
8201
c02f5703
MS
82022002-04-04 Michael Snyder <msnyder@redhat.com>
8203
8204 * breakpoint.c: Add support for hardware breakpoints in overlays.
8205 (overlay_events_enabled): New state variable.
8206 (insert_breakpoints): Use overlay_events_enabled to decide
8207 whether to attempt to set a breakpoint at the overlay load addr.
8208 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8209 (remove_breakpoint): Use overlay_events_enabled to decide
8210 whether breakpoints need to be removed from overlay load addr.
8211 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8212 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8213 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8214 disable_overlay_breakpoints): Update overlay_events_enabled.
8215
5fb290d7
DJ
82162002-04-04 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * dwarf2read.c (struct function_range): New.
8219 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8220 (check_cu_functions): New.
8221 (read_file_scope): Initialize global function lists.
8222 Call dwarf_decode_line after processing children.
8223 (read_func_scope): Add to global function list.
8224 (dwarf_decode_lines): Call check_cu_functions everywhere
8225 record_line is called. Call record_line with a linenumber
8226 of 0 to mark sequence ends.
8227
7b3fabf0
ML
82282002-04-04 Michal Ludvig <mludvig@suse.cz>
8229
361d1df0 8230 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8231 change sync with glibc.
8232
bce58c09
JB
82332002-04-03 Jim Blandy <jimb@redhat.com>
8234
8235 * configure.in: Call AC_C_INLINE.
8236 * configure: Regenerated.
361d1df0 8237
2fccf04a
DJ
82382002-04-01 Daniel Jacobowitz <drow@mvista.com>
8239
8240 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8241 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8242
2d1bfe2e
MK
82432002-03-31 Mark Kettenis <kettenis@gnu.org>
8244
a5941fbf
MK
8245 * NEWS: Mention gcore support on FreeBSD/i386.
8246
a90cd31d
MK
8247 * fbsd-proc.c: New file.
8248 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8249 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8250
2d1bfe2e
MK
8251 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8252 while statement.
8253
9eb6e5a1
JB
82542002-03-29 Jim Blandy <jimb@redhat.com>
8255
8256 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8257 unescaped newlines in string literals, but newer ones don't. So
8258 escape them.
8259
f02df580
MS
82602002-03-26 Michael Snyder <msnyder@redhat.com>
8261 Andrew Cagney <cagney@redhat.com>
8262
361d1df0 8263 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8264 restore file to memory.
8265 * cli/cli-dump.h: New file.
8266 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8267 * NEWS: Mention new commands.
f02df580 8268
109f874e
MS
82692002-03-28 Michael Snyder <msnyder@redhat.com>
8270
8271 * symfile.c (symbol_file_add): Move test for null symbols to later.
8272
520f6ade
AC
82732002-03-27 Andrew Cagney <ac131313@redhat.com>
8274
8275 From veksler at il.ibm.com:
8276 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8277 the xstrduped original path.
8278 Fix PR gdb/417.
8279
d4654627
MS
82802002-03-27 Michael Snyder <msnyder@redhat.com>
8281
8282 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8283 * infcmd.c (_initialize_infcmd): Ditto.
8284 * language.c (_initialize_language): Ditto.
8285 * symfile.c (_initialize_symfile): Ditto.
8286 * top.c (_init_main): Ditto.
8287 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8288
6be8bc0c
EZ
82892002-03-27 Elena Zannoni <ezannoni@redhat.com>
8290
8291 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8292 vector registers handling.
8293 (skip_prologue): Handle new AltiVec instructions. Fill in new
8294 fields of frame data.
8295 (frame_get_saved_regs): Fill in information for AltiVec registers.
8296
12af6855
JB
82972002-03-27 Jim Blandy <jimb@redhat.com>
8298
8299 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8300 a function; leave this macro here to invoke that function.
8301 (symbol_init_mangled_name): Declaration for that function.
8302 * symtab.c (symbol_init_mangled_name): New function.
8303
dc672865
AC
83042002-03-27 Andrew Cagney <ac131313@redhat.com>
8305
8306 * valarith.c: Replace strerror with safe_strerror.
8307 * tracepoint.c: Ditto.
8308 * lin-lwp.c: Ditto.
8309 * go32-nat.c: Ditto.
8310 * inflow.c: Ditto.
8311 * gnu-nat.c: Ditto.
8312
d96429cd
AS
83132002-03-27 Andreas Schwab <schwab@suse.de>
8314
8315 * event-top.c (command_line_handler): Remove useless if.
8316
7e336ba1
AJ
83172002-03-27 Andreas Jaeger <aj@suse.de>
8318
8319 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8320 comment.
8321
de220d0f
ML
83222002-03-27 Michal Ludvig <mludvig@suse.cz>
8323
8324 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8325 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8326 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8327 (x86_64_linux_dr_get_status, supply_gregset),
8328 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8329 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8330 (x86_64_register_info_table): Add.
8331 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8332 (x86_64_register_raw_size, x86_64_register_virtual_type),
8333 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8334 general x86_64_register_info_table.
8335 (i386_gdbarch_init): gdbarch_register_bytes is now set
8336 dynamicaly during initialization.
8337 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8338 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8339
0e98d0a7
DJ
83402002-03-27 Daniel Jacobowitz <drow@mvista.com>
8341
8342 * gdbserver/server.c (main): Call target_signal_to_host_p
8343 and target_signal_to_host on signals received from the remote.
8344 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8345 target_signal_from_host on signals sent to the remote.
8346 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8347 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8348
3130066b
DJ
83492002-03-27 Daniel Jacobowitz <drow@mvista.com>
8350
8351 * signals/signals.c: Include "server.h" in gdbserver build.
8352 (target_signal_from_name): Don't use STREQ.
8353 (_initialize_signals): Likewise. Don't include function in
8354 gdbserver build.
8355
9aedf4f4
DJ
83562002-03-27 Daniel Jacobowitz <drow@mvista.com>
8357
8358 * signals.c: Moved to...
8359 * signals/signals.c: Here.
7e336ba1 8360 * Makefile (signals.o): Update.
9aedf4f4 8361
3fa41cdb
JL
83622002-03-26 Jeff Law (law@redhat.com)
8363
8364 * somread.c (som_symtab_read): Remove some commented out code and
8365 updated related comments. Do not set the minimal symbol table to
8366 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8367 in a dynamic executable.
8368 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8369 where we are unable to find the minimal symbol for the given
8370 PC value.
8371
ee677e8d
MS
83722002-03-25 Jeff Law (law@redhat.com)
8373
8374 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8375
e76e1718
ML
83762002-03-25 Michal Ludvig <mludvig@suse.cz>
8377
8378 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8379
18a642a1
AC
83802002-03-23 Andrew Cagney <ac131313@redhat.com>
8381
8382 * command.h: Update copyright.
8383 (struct cmd_list_element): Replace definition with opaque
8384 declaration.
8385 (enum cmd_types): Document that it will eventually be moved to
8386 cli/cli-decode.h
8387 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8388 (MALLOCED_REPLACEMENT): Delete macro.
8389 * Makefile.in (cli_decode_h): Add $(command_h).
8390 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8391 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8392 * completer.c: Include "cli/cli-decode.h".
8393 * maint.c: Include "cli/cli-decode.h".
8394 * cli/cli-decode.h: Include "command.h".
8395 (enum command_class): Delete.
8396 (enum cmd_types): Comment out.
8397 (enum cmd_auto_boolean): Delete.
8398 (enum var_types): Delete.
8399
b2875cc0
AC
84002002-03-23 Andrew Cagney <ac131313@redhat.com>
8401
8402 * cli/cli-decode.c: Include "gdb_assert.h".
8403 (add_set_or_show_cmd): New static function.
8404 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8405 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8406 all fields, such as func, from the set command.
8407
3b45974e
AC
84082002-03-23 Andrew Cagney <ac131313@redhat.com>
8409
8410 * MAINTAINERS (sh-elf): Change warning flag to -w.
8411
823ca731
AC
84122002-03-23 Andrew Cagney <cagney@redhat.com>
8413
8414 * defs.h (error): Add printf format attribute.
8415 * thread-db.c (thread_from_lwp): Fix error format string.
8416 * stack.c (parse_frame_specification): Ditto.
8417 * cli/cli-decode.c (undef_cmd_error): Ditto.
8418 * scm-lang.c (scm_lookup_name): Ditto.
8419 * tracepoint.c (trace_error): Ditto.
8420 * remote-utils.c (usage): Ditto.
8421 * remote.c (compare_sections_command): Ditto.
8422 Fix PR gdb/328.
8423
0e101458
AC
84242002-03-22 Andrew Cagney <ac131313@redhat.com>
8425
8426 * gdbtypes.c (append_composite_type_field): New function.
8427 (init_composite_type): New function.
8428 * gdbtypes.h (append_composite_type_field): Declare.
8429 (init_composite_type): Ditto.
8430
8e0662df
EZ
84312002-03-22 Elena Zannoni <ezannoni@redhat.com>
8432
8433 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8434 function.
8e0662df
EZ
8435 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8436 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8437 structure returning convention for SYSV ABI case, but not
8438 for GNU/Linux, FreeBSD, or NetBSD.
8439
3121eff0
DJ
84402002-03-22 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * symtab.h (lookup_block_symbol): Add mangled_name argument
8443 to prototype.
8444
8445 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8446 with new mangled_name argument.
8447 * linespec.c (decode_line_1): Likewise.
8448 * valops (value_of_this): Likewise.
8449 * symtab.c (lookup_transparent_type): Likewise.
8450 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8451 (lookup_symbol): If we are given a mangled name, pass it down
8452 to lookup_symbol_aux.
8453 (lookup_block_symbol): If we are given a mangled name to check
8454 against, only return symbols which match it.
8455
349b409f
CF
84562002-03-22 Christopher Faylor <cgf@redhat.com>
8457
8458 * win32-nat.c (child_create_inferior): Check for proper shell to use
8459 here, in case the user changes it on the fly.
8460 (_initialize_inftarg): Remove shell path considerations.
8461
2a873819
EZ
84622002-03-21 Elena Zannoni <ezannoni@redhat.com>
8463
8464 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8465 for gdbarch_max_register_raw_size and max_register_virtual_size.
8466 Adjust copyright year.
8467
a1b9830c
DJ
84682002-03-21 Daniel Jacobowitz <drow@mvista.com>
8469
8470 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8471 in a function to cover the entire beginning of the function
8472 as well if it does not already.
8473
8b5790f2
TR
84742002-03-21 Tom Rix <trix@redhat.com>
8475
8476 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8477 (rs6000_ptrace64): Renamed from ptrace64.
8478
bdbe5747
MH
84792002-03-20 Martin M. Hunt <hunt@redhat.com>
8480
8481 * gdbserver/remote-utils.c (remote_open): Don't call
8482 getprotobyname, we're all using TCP here so just use
8483 IPPROTO_TCP.
7e336ba1 8484 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8485
84862002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8487
bdbe5747
MH
8488 * regcache.c (_initialize_regcache): No need to call
8489 build_regcache() at this time; it gets called whenever
8490 the gdbarch changes.
8491
7781cd62
DB
84922002-03-20 David O'Brien <obrien@FreeBSD.org>
8493
8494 * sparc-nat.c: Include sys/param.h where possible.
8495
f65ca430
DJ
84962002-03-20 Daniel Jacobowitz <drow@mvista.com>
8497
8498 Fix PR gdb/422.
8499 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8500 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8501 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8502 complex types.
8503 * stabsread.c (rs6000_builtin_type): Likewise.
8504 (read_sun_floating_type): Likewise.
8505
0c867556
PS
85062002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8507
8508 * stabsread.c (read_member_functions): Remove skip code for duplicate
8509 constructor/destructor methods. Use standard parsing for these
8510 methods and just do not chain them to the list of methods after
8511 parsing.
8512
12b9c64f
AO
85132002-03-19 Alexandre Oliva <aoliva@redhat.com>
8514
8515 * coffread.c: Remove redundant static declarations. Replace
8516 occurrences of `PTR' with `void *'.
8517 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8518 * top.h (quit_cover): Likewise.
8519 * defs.h (catch_errors): Likewise.
8520
349c5d5f
AC
85212002-03-18 Andrew Cagney <ac131313@redhat.com>
8522
8523 * defs.h (XMALLOC): Define.
8524 * gdb-events.sh (XMALLOC): Delete macro.
8525 * gdb-events.c, gdb-events.h: Regenerate.
8526 * gdbarch.sh (XMALLOC): Delete macro.
8527 * gdbarch.c: Regenerate.
8528 * serial.c (XMALLOC): Delete macro.
8529 * ui-file.c (XMALLOC): Ditto.
8530 * ser-unix.h (XMALLOC): Ditto.
8531 * sh-tdep.c (XMALLOC): Ditto.
8532 * ui-out.c (XMALLOC): Ditto.
8533 * utils.c (XMALLOC): Ditto.
8534 * i386-tdep.c (XMALLOC): Ditto.
8535 * gdb-events.c (XMALLOC): Ditto.
8536 * d10v-tdep.c (XMALLOC): Ditto.
8537 * cli-out.c (XMALLOC): Ditto.
8538
8539 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8540 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8541 * ui-file.c, ui-out.c: Ditto.
8542
7d0766f3
AC
85432002-03-18 Andrew Cagney <ac131313@redhat.com>
8544
8545 * command.h (struct cmd_list_element): Add field context.
8546 (set_cmd_context, get_cmd_context): Declare.
8547 * cli/cli-decode.h: Ditto.
8548 * cli/cli-decode.c (get_cmd_context): New function.
8549 (set_cmd_context): New function.
8550 (add_cmd): Initialize context.
8551 Part of fixing PR gdb/145 and PR gdb/146.
8552
5913bcb0
AC
85532002-03-17 Andrew Cagney <ac131313@redhat.com>
8554
1868c04e
AC
8555 * cli/cli-decode.c (cmd_type): New function.
8556 * command.h (cmd_type): Declare.
8557 * infrun.c (set_schedlock_func): Call function cmd_type.
8558 * kod.c (kod_set_os): Call cmd_type.
8559 * cris-tdep.c (cris_version_update): Use function cmd_type.
8560 (cris_mode_update, cris_abi_update): Ditto.
8561
5913bcb0
AC
8562 * command.h: (execute_cmd_post_hook): Declare.
8563 (execute_cmd_pre_hook): Declare.
8564 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8565 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8566 functions. Execute pre/post hook while ensuring that afterwords
8567 hook_in is cleared.
8568 * top.c (execute_command): Use execute_cmd_post_hook, and
8569 execute_cmd_pre_hook to execute pre/post commands.
8570 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8571 hook_stop_stub.
8572 (hook_stop_stub): Call execute_cmd_pre_hook.
8573
b51450c9
AC
85742002-03-17 Andrew Cagney <ac131313@redhat.com>
8575
8576 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8577 set'' and this leads to a core dump. Move xstrdup of
8578 operating_system to after check that it is not NULL.
8579
f66c9f11
AC
85802002-03-17 Andrew Cagney <ac131313@redhat.com>
8581
8e694ecf
AC
8582 * kod.c (kod_set_os): Remove unnecessary check that
8583 ``command->type'' is set_cmd.
8584
f66c9f11
AC
8585 * valprint.c (set_input_radix): Use input_radix.
8586 (set_output_radix): Use output_radix.
8587 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8588 isn't reverted.
8589
9d01611c
AC
85902002-03-16 Andrew Cagney <ac131313@redhat.com>
8591
8592 * value.h (struct value): Delete field ``substring_addr''. Change
8593 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8594 force_core_addr_align and force_pointer_aligh.
8595
8596 * value.h (struct value): Fix typo in above change.
9d01611c 8597
4156bb53
PS
85982002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8599
8600 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8601 to fix internal_error from ``maintenance print architecture''.
8602
0e5e3ea6
PS
86032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8604
8605 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8606 for gcc versions after gcc-2.8.1.
8607
9b013045
PS
86082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8609
8610 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8611 for method resolution. Restore adjustment of ``this'' pointer after
8612 calling value_struct_elt, which was accidentally removed during the
8613 HP merge.
8614
376c9600
AC
86152002-03-15 Andrew Cagney <ac131313@redhat.com>
8616
8617 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8618 value_of_register.
8619 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8620 get_saved_register.
8621 * value.h (value_of_register): Update.
8622
a4db0f07
RH
86232002-03-14 Richard Henderson <rth@redhat.com>
8624
8625 * configure.in: Detect declaration for canonicalize_file_name.
8626 * utils.c (canonicalize_file_name): Declare, if needed.
8627 (gdb_realpath): Prefer realpath if available and usable.
8628 * config.in, configure: Rebuild.
8629
96383835
RH
86302002-03-14 Richard Henderson <rth@redhat.com>
8631
8632 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8633 a constant array bound.
8634
8635 * MAINTAINERS: Add myself to write-after-approval.
8636
75245b24
MS
86372002-03-14 Michael Snyder <msnyder@redhat.com>
8638
8639 * symfile.c (syms_from_objfile): Return immediately if no syms.
8640 (symbol_file_add): Return immediately if no syms.
8641 (find_sym_fns): Return immediately if no syms.
8642
e641a1ca
ML
86432002-03-13 Michal Ludvig <mludvig@suse.cz>
8644
8645 * gdbserver/remote-util.c (remote_open): Print remote-side's
8646 IP address when remote debugging over the network.
7e336ba1 8647
df08bfec
DB
86482002-03-12 David O'Brien <obrien@FreeBSD.org>
8649
8650 * config/sparc/fbsd.mh: Fix copyright.
8651 * config/sparc/fbsd.mt: Likewise.
8652
9a57864f
RE
86532002-03-11 Richard Earnshaw <rearnsha@arm.com>
8654
8655 * MAINTAINERS: Fix typo in name of gdb warnings option.
8656 (x86-64): Fix formating so that this can be parsed by awk.
8657
dd7bf85e
DJ
86582002-03-10 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8661 * defs.h: Include "gdb/signals.h".
8662 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8663
33a0a2ac
ML
86642002-03-10 Michal Ludvig <mludvig@suse.cz>
8665
8666 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8667 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8668 from x86-64-tdep.h
8669
dd824b04
DJ
86702002-03-10 Daniel Jacobowitz <drow@mvista.com>
8671 Don Howard <dhoward@redhat.com>
8672
8673 * mips-tdep.c (ST0_FR): Define.
8674 (mips2_fp_compat): New function, temporarily disabled.
8675 (mips_read_fp_register_single): New function.
8676 (mips_read_fp_register_double): New function.
8677 (mips_print_register): Use them.
8678 (do_fp_register_row): Likewise.
8679
6a41ff59
AC
86802002-03-09 Andrew Cagney <ac131313@redhat.com>
8681
8682 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8683 approval''.
8684
4ea09c10
PS
86852002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8686
8687 * stabsread.c (read_member_functions): Fix is_stub test for
8688 static member functions, improve comment.
8689
6ccc741d
RE
86902002-03-07 Richard Earnshaw <rearnsha@arm.com>
8691
8692 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8693 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8694 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8695 commands that set boolean values.
8696 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8697 (arm_rdi_resume): Always initialize PC.
8698 (arm_rdi_open): Don't use rslt as a boolean.
8699 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8700 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8701 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8702 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8703
438013df
AO
87042002-03-06 Alexandre Oliva <aoliva@redhat.com>
8705
8706 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8707 * configure: Rebuilt.
8708
70ed8774
SC
87092002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8710
8711 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8712 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8713
5ba2abeb
AC
87142002-03-06 Andrew Cagney <ac131313@redhat.com>
8715
8716 * cli/cli-decode.c (set_cmd_completer): New function.
8717 * command.h (set_cmd_completer): Declare.
8718 * cli/cli-decode.h (set_cmd_completer): Ditto.
8719
8720 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8721 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8722 * win32-nat.c (_initialize_inftarg): Ditto.
8723 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8724 * proc-api.c (_initialize_proc_api): Ditto.
8725 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8726 * source.c (_initialize_source): Ditto.
8727 * exec.c (_initialize_exec): Ditto.
8728 * solib.c (_initialize_solib): Ditto.
8729 * top.c (init_main): Ditto.
8730 * tracepoint.c (_initialize_tracepoint): Ditto.
8731 * symfile.c (_initialize_symfile): Ditto.
8732 * printcmd.c (_initialize_printcmd): Ditto.
8733 * infcmd.c (_initialize_infcmd): Ditto.
8734 * corefile.c (_initialize_core): Ditto.
8735
f779ca99
AC
87362002-03-05 Andrew Cagney <ac131313@redhat.com>
8737
8738 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8739
01a3934b
AC
87402002-03-05 Andrew Cagney <ac131313@redhat.com>
8741
8742 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8743
37057839
AC
87442002-03-05 Andrew Cagney <ac131313@redhat.com>
8745
8746 * NEWS: Update headings, 5.2 has branched.
8747
c6ecbae5
DJ
87482002-03-04 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8751 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8752 (register_addr, REGISTER_RAW_SIZE): Likewise.
8753 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8754 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8755
e9f30c21
ML
87562002-03-03 Michal Ludvig <mludvig@suse.cz>
8757
8758 * MAINTAINERS (x86-64): Add myself.
8759 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8760 changed value_ptr -> struct value *
8761
54394ac3
DB
87622002-03-01 David O'Brien <obrien@FreeBSD.org>
8763
8764 * configure.host (sparc64-*-freebsd): Add.
8765 * configure.tgt: Likewise.
8766 * config/sparc/fbsd.mh: New file.
8767 * config/sparc/fbsd.mt: Likewise.
8768 * config/sparc/nm-fbsd.h: Likewise.
8769 * config/sparc/tm-fbsd.h: Likewise.
8770
bfe95955
DJ
87712002-03-01 Daniel Jacobowitz <drow@mvista.com>
8772
8773 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8774 regformats/reg-s390x.dat.
8775
f33c6cbf
AC
87762002-03-01 Andrew Cagney <ac131313@redhat.com>
8777
8778 * utils.c: Add FIXME explaining true/false problem.
8779
5ecaa7dd
AC
87802002-02-28 Andrew Cagney <ac131313@redhat.com>
8781
8782 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8783
2a251cc2
MC
87842002-02-28 Michael Chastain <mec@shout.net>
8785
8786 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8787
6a8031a3 87882002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8789
8790 * gdbserver/linux-s390-low.c: New file.
8791 * regformats/reg-s390.dat: New file.
8792 * regformats/reg-s390x.dat: New file.
8793 * gdbserver/configure.srv: Add S/390.
8794 * gdbserver/Makefile.in: Add S/390.
8795 * configure.tgt: Enable gdbserver for S/390.
8796
ac469903
EZ
87972002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8798
8799 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8800 first line of the doc string for "info dos", except at the end of
8801 the sentence, since the short help stops at the first period.
8802
985cb1a3
JM
88032002-02-28 Jason Merrill <jason@redhat.com>
8804
8805 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8806
c570663e
FF
88072002-02-27 Fred Fish <fnf@redhat.com>
8808
8809 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8810 comment (dumy -> dummy).
8811
43630227
PS
88122002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8813
8814 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8815
b84911e8
RB
88162002-02-27 Rodney Brown <rbrown64@csc.com.au>
8817
8818 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8819
58caa3dc
DJ
88202002-02-27 Daniel Jacobowitz <drow@mvista.com>
8821
8822 * gdbserver/acconfig.h: New file.
8823 * gdbserver/i387-fp.c: New file.
8824 * gdbserver/i387-fp.h: New file.
8825 * gdbserver/linux-x86-64.c: New file.
8826 * regformats/reg-x86-64.dat: New file.
8827 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8828 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8829 * gdbserver/configure.in: Add support for regsets.
8830 * gdbserver/config.in: Regenerate.
8831 * gdbserver/configure: Regenerate.
8832 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8833 * gdbserver/linux-low.h: New file.
8834 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8835 for regsets.
8836 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8837 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8838 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8839 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8840 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8841 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8842 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8843 "i387-fp.h". Add PTRACE_GETREGS and friends.
8844 * gdbserver/regcache.c (supply_register): New function.
8845 (supply_register_by_name): New function.
8846 (collect_register): New function.
8847 (collect_register_by_name): New function.
8848
93652174
DJ
88492002-02-27 Daniel Jacobowitz <drow@mvista.com>
8850
8851 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8852 (config.status): Add configure.srv dependency.
8853 (server_h): Add config.h dependency.
8854
a02e4a61
DJ
88552002-02-27 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8858 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8859 * gdbserver/configure.srv: Change i386-*-linux* to use
8860 reg-i386-linux.o.
8861
ce0eebec
AC
88622002-02-26 Andrew Cagney <ac131313@redhat.com>
8863
8864 * x86-64-tdep.c: Re-indent. Update copyright date.
8865
82dbc5f7
AC
88662002-02-26 Andrew Cagney <ac131313@redhat.com>
8867
8868 From Michal Ludvig <mludvig@suse.cz>:
8869 * x86-64-tdep.c (value.h): Delete.
8870 (gdb_assert.h): Include.
8871 (x86_64_register_convert_to_virtual,
8872 x86_64_register_convert_to_raw ): Add check which lets only
8873 floating-point values to be converted.
8874 (value_push): Delete.
8875 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8876 (i386_gdbarch_init): Number of register_bytes fixed.
8877
e4621584
AC
88782002-02-26 Andrew Cagney <ac131313@redhat.com>
8879
8880 * MAINTAINERS: Add x86-64 target.
8881
81a9a963
AC
88822002-02-26 Andrew Cagney <ac131313@redhat.com>
8883
8884 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8885 * osfsolib.c (solib_map_sections): Ditto.
8886 * irix5-nat.c (solib_map_sections): Ditto.
8887 * corelow.c (gdb_check_format): Ditto.
8888 * symfile.c (symfile_bfd_open): Ditto.
8889 * solib.c (solib_map_sections): Ditto.
8890 Fix PR gdb/354.
7e336ba1 8891
0f017ab9
AC
88922002-02-26 Andrew Cagney <ac131313@redhat.com>
8893
8894 * remote.c (_initialize_remote): By default, disable ``e'' and
8895 ``E'' step out-of-range packets.
8896
75738c29
AS
88972002-02-26 Andreas Schwab <schwab@suse.de>
8898
8899 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8900 m68k_linux_frame_saved_pc.
8901 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8902 in_sigtramp.
8903 (SIGCONTEXT_PC_OFFSET): Remove.
8904 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8905 m68k_linux_sigtramp_saved_pc): New functions.
8906 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8907 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8908 (UCONTEXT_PC_OFFSET): Define.
8909 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8910 non-RT and RT signal trampolines.
8911
7e8ed687
RE
89122002-02-26 Richard Earnshaw <rearnsha@arm.com>
8913
8914 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8915 (TARGET_NBPG, STACK_END_ADDR): Delete
8916 (VARIABLES_INSIDE_BLOCK): Delete.
8917
6972bc8b
AC
89182002-02-25 Andrew Cagney <ac131313@redhat.com>
8919
8920 * utils.c (perror_with_name): Make string parameter constant.
8921 (print_sys_errmsg): Ditto.
8922 (query): Ditto.
8923 * defs.h (perror_with_name): Update.
8924 (print_sys_errmsg): Update.
8925 (query): Update.
8926
aa32f823
DJ
89272002-02-25 Daniel Jacobowitz <drow@mvista.com>
8928
8929 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8930 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8931
19caaa45
PS
89322002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8933
8934 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8935 if it already matches the current architecture from the exec file.
8936 Include arch-utils.h for gdbarch_info_init prototype.
8937 * Makefile.in (rs6000-nat.o): Update dependencies.
8938
d951901f
EZ
89392002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8940
8941 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8942 list of exported variables.
8943
7ea81414
DJ
89442002-02-24 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * gdbserver/configure.srv: New file.
8947 * gdbserver/configure.in: Use configure.srv instead
8948 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8949 from it.
8950 * gdbserver/configure: Regenerated.
8951 * gdbserver/terminal.h: New file.
8952 * gdbserver/Makefile.in: Update for configure changes. Remove
8953 more unneeded include paths.
8954
080fe24b
AC
89552002-02-24 Andrew Cagney <ac131313@redhat.com>
8956
8957 From wiz at danbala:
8958 * config/sparc/tm-sp64.h: Fix grammar and typos.
8959 Fix PR gdb/287.
8960
8605d56e
AC
89612002-02-24 Andrew Cagney <ac131313@redhat.com>
8962
8963 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8964 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8965 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8966 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8967 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8968 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8969 * s390-tdep.c: Ditto.
92362027
AC
8970 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8971 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8972 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8973 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8974 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8975 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8976 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8977 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8978 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8979 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8980 Fix PR gdb/378.
7e336ba1 8981
8ed32cc0
AC
89822002-02-23 Andrew Cagney <ac131313@redhat.com>
8983
a3007b6f
AC
8984 * lin-thread.c: Delete file.
8985 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8986 to gdb_proc_service.h.
8987 * configure: Re-generate.
8988
50a9e2f1
AC
8989 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8990 * serial.c (serial_open): Delete check for "ocd".
8991 Fix PR gdb/349.
8992
8b6e7932
AC
8993 * Makefile.in (linux-thread.o): Delete target.
8994 * linux-thread.c: Delete file.
8995
d155c46b
AC
8996 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8997 renamed SH files to be consistent.
8998
8ed32cc0
AC
8999 * symtab.c (sort_search_symbols): Use xfree.
9000
0e18d038
RE
90012002-02-23 Richard Earnshaw <rearnsha@arm.com>
9002
9003 * arm-linux-tdep.c (arm_linux_init_abi): Register
9004 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9005 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9006 definition with undef, since we don't want the sysvr4 definition.
9007 (SKIP_TRAMPOLINE_CODE): Likewise.
9008
27aac7ff
AC
90092002-02-23 Andrew Cagney <ac131313@redhat.com>
9010
9011 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9012
9013 * configure.in: (AC_CHECK_FUNCS) Added test for
9014 canonicalize_file_name Regenerated.
9015 * config.in, configure: Regenerated.
9016 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9017 defined use canonicalize_file_name.
7e336ba1 9018
65a6e0ee
MC
90192002-02-23 Michael Chastain <mec@shout.net>
9020
9021 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9022
47b95330
AC
90232002-02-23 Andrew Cagney <ac131313@redhat.com>
9024
9025 * README: Remove references to cygnus.com.
9026 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9027 dot com'' form. Remove references to cygnus.com and sourceware.
9028
696f451b
AC
90292002-02-23 Andrew Cagney <ac131313@redhat.com>
9030
9031 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9032 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9033 1003.1-2001 no longer allows "head -1".
9034 * gdb/Makefile.in (version.c): Likewise.
9035 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9036 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9037 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9038
bbaca940
AC
90392002-02-23 Andrew Cagney <ac131313@redhat.com>
9040
9041 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9042 * command.h (cmd_cfunc_eq): Declare.
9043 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9044
9045 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9046 ``struct cmd_list_element *''.
9047 * cli/cli-cmds.c (is_complete_command): Update. Use
9048 cmd_cfunc_eq.
9049 * top.c (execute_command): Pass the command to
9050 is_complete_command.
9051 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9052
b8b8b047
AC
90532002-02-23 Andrew Cagney <ac131313@redhat.com>
9054
9055 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9056 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9057 architecture defines.
9058 * s390-tdep.c (s390_gdbarch_init): Likewise.
9059
19d3fc80
RE
90602002-02-23 Richard Earnshaw <rearnsha@arm.com>
9061
9062 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9063 (arm_linux_push_arguments): Likewise.
9064 (arm_linux_init_abi): Register them. Also register linux-specific
9065 call_dummy_words.
9066 (find_minsym_and_objfile): Use strcmp, not STREQ.
9067 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9068 (arm_linux_call_dummy_words): Delete declaration.
9069 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9070 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9071 declarations.
9072 (LOWEST_PC): Delete.
9073
3ab13650
PS
90742002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9075
9076 * maint.c (print_section_info): Do not prepend `0x' to filepos
9077 output, it will be handled by local_hex_string_custom.
9078
19d3fc80 90792002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9080
9081 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9082 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9083 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9084
d85a5daf
JB
90852002-02-22 Jim Blandy <jimb@redhat.com>
9086
9087 Indicate that the bcache functions don't change the strings
9088 they're passed.
9089 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9090 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9091
eeb25b8a
PM
90922002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9093
9094 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9095
6badb179
CF
90962002-02-21 Christopher Faylor <cgf@redhat.com>
9097
9098 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9099 find the complete path to a loaded DLL.
9100
e8717518
FF
91012002-02-21 Fred Fish <fnf@redhat.com>
9102
9103 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9104 that marks the end of the range of a function, enter a line number
9105 entry that has a line number of zero and a PC offset that matches
9106 the end of the function. This starts a range of PC's for which no
9107 line number information is known.
9108 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9109 PC's for which no line number info is found (line number is zero)
9110 then we didn't find any valid line information.
9111 * symtab.h: Document use of zero line number entry.
9112
9abe5450
EZ
91132002-02-21 Elena Zannoni <ezannoni@redhat.com>
9114
9115 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9116 (have_ptrace_getvrregs): Define for run time checks.
9117 (gdb_vrregset_t): New type for Altivec register handling.
9118 (fetch_register, store_register): Fetch/store altivec register
9119 when needed.
9120 (fetch_altivec_register, store_altivec_register): New functions.
9121 (supply_vrregset, fill_vrregset): New functions.
9122 (fetch_altivec_registers, store_altivec_registers): New functions.
9123 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9124 registers as well.
9125
aaa38bb5
AJ
91262002-02-21 Jiri Smid <smid@suse.cz>
9127
9128 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9129
b34db576
RE
91302002-02-21 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * Makefile.in (armnbsd-nat.o): Update dependencies.
9133 * armnbsd-nat.c (supply_gregset): New function. Common code to
9134 supply the integer register set.
9135 (supply_fparegset): New function. Similar for FPA registers.
9136 (fetch_regs, fetch_fp_regs): Use them.
9137 (fetch_core_registers): Likewise.
9138 (fetch_elfcore_registers): New function.
9139 (arm_netbsd_elfcore_fns): New core-file type specification.
9140 (_initialize_arm_netbsd_nat): Register it.
9141
3e56fc4b
RE
91422002-02-21 Richard Earnshaw <rearnsha@arm.com>
9143
9144 * armnbsd-nat.c: Include gdbcore.h.
9145 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9146 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9147 'void' to declaration, to shut up ARI.
9148 (fetch_core_registers): Make static. Rewrite using supply_register.
9149 (arm_netbsd_core_fns): New core-file type specification.
9150 (_initialize_arm_netbsd_nat): New function.
9151
097f6b0b
CF
91522002-02-21 Christopher Faylor <cgf@redhat.com>
9153
9154 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9155 value.
9156
c914e0cc
CF
91572002-02-20 Christopher Faylor <cgf@redhat.com>
9158
9159 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9160 fails.
9161
385fa495
DJ
91622002-02-20 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * jv-exp.y (parse_number): Change type of implicit longs
9165 to builtin_type_uint64.
9166
e5f1222d
DJ
91672002-02-20 Daniel Jacobowitz <drow@mvista.com>
9168
9169 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9170 to be an integer instead of a `union wait'.
9171
75c9abc6
DJ
91722002-02-20 Daniel Jacobowitz <drow@mvista.com>
9173
9174 * mips-linux-nat.c: Call the operating system GNU/Linux.
9175 * mips-linux-tdep.c: Likewise.
9176 * mips-tdep.c: Likewise.
9177
551792a5
DJ
91782002-02-20 Daniel Jacobowitz <drow@mvista.com>
9179
9180 Fix PR gdb/265.
9181 * jv-exp.y (parse_number): Handle 64-bit integers.
9182
ee6e2b82
DJ
91832002-02-20 Daniel Jacobowitz <drow@mvista.com>
9184
9185 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9186 AC_STDC_HEADERS to AC_HEADER_STDC.
9187 * gdbserver/configure: Regenerated.
9188
a48442a0
RE
91892002-02-20 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9192 is defined.
9193 * sparc-tdep.c (get_longjmp_target): Likewise.
9194
fe419ffc
RE
91952002-02-20 Richard Earnshaw <rearnsha@arm.com>
9196
9197 * News: Add news about ARM and Multi-arch. Mention the new target
9198 arm*-*-netbsd*.
9199
5832ed7e
JB
92002002-02-19 Jim Blandy <jimb@redhat.com>
9201
9202 * stabsread.c (error_type_complaint): Improve error message.
9203
84563040
DJ
92042002-02-19 Daniel Jacobowitz <drow@mvista.com>
9205
9206 * gdbserver/README: Update documentation.
9207 * gdbserver/configure.in: Update configury to match documentation.
9208 * gdbserver/Makefile.in: Likewise.
9209 * gdbserver/configure: Regenerated.
9210 * gdbserver/aclocal.m4: New file, generated by aclocal.
9211 * gdbserver/config.in: New file, generated by autoheader.
9212
375fd65b
RE
92132002-02-19 Richard Earnshaw <rearnsha@arm.com>
9214
9215 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9216 armnbsd-nat.c.
9217
08216dd7
RE
92182002-02-19 Richard Earnshaw <rearnsha@arm.com>
9219
9220 * arm-tdep.h (enum arm_float_model): New enum.
9221 (struct gdbarch_tdep): Add fp_model.
9222 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9223 up floating-point conversions until we know the floating-point model
9224 in use by the inferior. Don't complain about being unable to
9225 determine the ABI of the inferior when we don't have one.
9226 (arm_extract_return_value): Support different floating-point models.
9227 (arm_store_return_value): Likewise.
aaa38bb5 9228 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9229 ARM_FLOAT_SOFT.
9230 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9231
65d6d66a
PS
92322002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9233
9234 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9235 of ``current_gdbarch''.
9236
47221191
RE
92372002-02-19 Richard Earnshaw <rearnsha@arm.com>
9238
9239 * armnbsd-nat.c : ANSIfy all function declarations.
9240 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9241 (fetch_inferior_registers): Re-implement in terms of above.
9242 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9243 (store_inferior_registers): Re-implement in terms of above.
9244
fdf39c9a
RE
92452002-02-19 Richard Earnshaw <rearnsha@arm.com>
9246
aaa38bb5 9247 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9248 kernel.
9249 * arm-linux-tdep.c: Likewise.
9250 * config/arm/tm-linux.h: Likewise.
9251
93247f88
RE
92522002-02-19 Richard Earnshaw <rearnsha@arm.com>
9253
9254 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9255 * config/arm/nbsd.mt (TM_FILE): Delete.
9256 * config/arm/tm-nbsd.h: Delete.
9257
d7b486e7
RE
92582002-02-19 Richard Earnshaw <rearnsha@arm.com>
9259
9260 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9261 Initialize CALL_DUMMY_LENGTH.
9262
41d39a95
RE
92632002-02-19 Richard Earnshaw <rearnsha@arm.com>
9264
9265 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9266 function.
9267 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9268 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9269 defines one thing and that is incorrect for this port.
9270 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9271
e1195560
PM
92722002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9273
9274 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9275
c1748f97
PM
92762002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9277
9278 * win32-nat.c (display_selector): New function. Displays information
9279 about the information returned by GetThreadSelectorEntry API function.
9280 (display_selectors): New function. Displays the infomation of
9281 the selector given as argument, or of CS, DS ans FS selectors
9282 if no argument is given.
9283 ( _initialize_inftarg): Add "w32" as info prefix command.
9284 Add "info w32 selector" as command calling display_selectors.
9285
e41e6bbf
PM
92862002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9287
9288 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9289 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9290 if not defined.
9291
0d3a9f48
RE
92922002-02-18 Richard Earnshaw <rearnsha@arm.com>
9293
9294 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9295
3fb4b924
RE
92962002-02-18 Richard Earnshaw <rearnsha@arm.com>
9297
9298 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9299 (arm_fix_call_dummy): Call it.
9300 (arm_call_dummy_breakpoint_offset): Delete.
9301 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9302 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9303
7f55af32
AC
93042002-02-18 Andrew Cagney <ac131313@redhat.com>
9305
9306 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9307 Default to func_frame_chain_valid.
9308 * gdbarch.h, gdbarch.c: Re-generate.
9309 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9310
05f13b9c
EZ
93112002-02-18 Elena Zannoni <ezannoni@redhat.com>
9312
9313 * ppc-linux-nat.c: Update copyright.
9314 (fetch_register, store_register): Add tid parameter, don't compute
9315 tid here.
9316 (fetch_ppc_registers, store_ppc_registers): Add tid
9317 parameter. Pass it along to callees.
9318 (fetch_inferior_registers, store_inferior_registers): Compute tid
9319 here, and pass it to calleed functions.
9320 (fill_gregset, supply_fpregset): Clean up formatting.
9321
d7afb4c9
RE
93222002-02-18 Richard Earnshaw <rearnsha@arm.com>
9323
9324 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9325 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9326
9df628e0
RE
93272002-02-18 Richard Earnshaw <rearnsha@arm.com>
9328
9329 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9330 * gdbarch.c gdbarch.h: Regenerate.
9331 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9332 function.
9333 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9334 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9335 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9336
9337 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9338 * arm-tdep.c (arm_get_longjmp_target): New function.
9339 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9340 this to a positive value register arm_get_longjmp_target as the
9341 longjmp handler.
9342 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9343 (arm_linux_init_abi): Set up longjmp description in tdep.
9344 * armnbsd-nat.c (get_longjmp_target): Delete.
9345 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9346 description in tdep.
9347 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9348 (get_longjmp_target): Delete declaration.
9349 (GET_LONGJMP_TARGET): Delete.
9350 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9351 (GET_LONGJMP_TARGET): Delete.
9352
57bc8964
KB
93532002-02-17 Kevin Buettner <kevinb@redhat.com>
9354
9355 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9356 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9357 of ``current_gdbarch''.
9358
83d31a92
TT
93592002-02-17 Tom Tromey <tromey@redhat.com>
9360
9361 * cli/cli-cmds.c (compare_strings): New function.
9362 (complete_command): Only print each unique item once.
9363 * completer.h (complete_line): Declare.
9364 * completer.c (complete_line): New function.
9365 (line_completion_function): Use it.
9366
17ef5d92
AC
93672002-02-16 Andrew Cagney <ac131313@redhat.com>
9368
9369 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9370 * gdbarch.h, gdbarch.c: Re-generate.
9371
491b8946
DJ
93722002-02-16 Daniel Jacobowitz <drow@mvista.com>
9373
9374 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9375
93762002-02-16 Daniel Jacobowitz <drow@mvista.com>
9377
9378 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9379 * valops.c (value_arg_coerce): Don't take the address of a reference
9380 to convert an argument to a reference.
9381
dfe7f3ac
CF
93822002-02-15 Christopher Faylor <cgf@redhat.com>
9383
9384 * win32-nat.c (get_image_name): New function.
9385 (handle_load_dll): Use get_image_name function.
9386 (get_child_debug_event): Avoid registering debug events until possibly
9387 execed process is started.
9388 (child_create_inferior): Allow invocation via shell so that command
9389 line redirection, etc. works ok.
9390 (_initialize_inftarg): Add new command: "set shell" to control whether
9391 a shell is used to start a process.
9392
1d33e73a
DJ
93932002-02-15 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9396 instead of find_register_by_number.
9397 (cannot_store_register): Likewise.
9398
48cd0caa
PM
93992002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9400
aaa38bb5 9401 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9402 fprintf_unfiltered (gdb_stderr, ...).
9403
8656e7d8
DJ
94042002-02-15 Daniel Jacobowitz <drow@mvista.com>
9405
9406 * gdbserver/gdbserver.1: Document --attach.
9407
66e810cd
RE
94082002-02-15 Richard Earnshaw <rearnsha@arm.com>
9409
9410 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9411 descriptions.
9412 * arm-tdep.c (arm_default_arm_le_breakpoint)
9413 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9414 (arm_default_thumb_be_breakpoint): New. Initialize them from
9415 traditional breakpoint defines.
9416 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9417 (arm_gdbarch_init): Initialize new breakpoint variables.
9418 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9419 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9420 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9421 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9422 code out to ...
9423 (arm_netbsd_init_abi_common): ... here; new function.
9424 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9425 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9426 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9427 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9428
97e03143
RE
94292002-02-15 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * arm-tdep.h (enum arm_abi): New enum.
9432 (struct gdbarch_tdep): New structure.
9433 (LOWEST_PC): Provide a default.
9434 (arm_gdbarch_register_os_abi): Declare new function.
9435 * arm-tdep.c (arm_abi_names): New array.
9436 (process_note_abi_tag_sections): New function.
9437 (get_elfosabi): New function.
9438 (arm_gdbarch_register_os_abi): New function.
9439 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9440 support for that ABI has been built in, then call the appropriate
9441 configuration routine. Use gdbarch_num_regs() to get the number
9442 of registers.
9443 (arm_dump_tdep): New function.
9444 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9445 place-holder functions.
9446 (_initialize_arm_tdep): Register them.
9447 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9448
9449 * armnbsd-tdep.c: New file.
9450 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9451 * config/arm/nbsd.mt (TDEPFILES): Add it.
9452 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9453
9454 * armnbsd-nat.c: Include regcache.h.
9455 * Makefile.in (armnbsd-nat.o): Update dependency list.
9456
9457 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9458
ad68be46
DJ
94592002-02-14 Daniel Jacobowitz <drow@mvista.com>
9460
9461 * gdbserver/Makefile.in: Fix typos in target rules.
9462
003d6d1d
DJ
94632002-02-14 Daniel Jacobowitz <drow@mvista.com>
9464
aaa38bb5 9465 Fix part of PR gdb/267.
003d6d1d
DJ
9466 * linespec.c (find_methods): Handle constructors specially for now.
9467
6b230f1b
CV
94682002-02-14 Corinna Vinschen <vinschen@redhat.com>
9469
9470 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9471 handling.
9472 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9473 standard_coerce_float_to_double().
9474
1ea98d12
CF
94752002-02-14 Christopher Faylor <cgf@redhat.com>
9476
9477 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9478 GDBINIT_FILENAME.
9479
dd47e6fd
EZ
94802002-02-14 Elena Zannoni <ezannoni@redhat.com>
9481
9482 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9483 find_variant_by_name, because it confuses the multiarch
9484 framework. Return NULL if there isn't an architecture with the
9485 user supplied name, instead of forcing a different one without
9486 recording the change with the multiarch machinery.
9487 (find_variant_by_name): Delete.
9488
d7e39b9e
PS
94892002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9490
9491 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9492 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9493
76e42a4f
MH
94942002-02-13 Martin M. Hunt <hunt@redhat.com>
9495
aaa38bb5 9496 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9497 print_frame_info_listing_hook, set current_source_symtab.
9498
0a30fbc4
DJ
94992002-02-14 Daniel Jacobowitz <drow@mvista.com>
9500
9501 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9502 and remove unused $(INCLUDE_DIR).
9503 Add regcache.c to OBS.
9504 Add generated register protocol files to clean target.
9505 Update dependencies for new objects, obsolete old target code.
9506
9507 * gdbserver/linux-low.c: Remove all platform-specific code to
9508 new files. Remove various dead code. Update to use regcache
9509 functionality.
9510 * gdbserver/remote-utils.c (fromhex): Add return statement
9511 to quiet warning.
9512 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9513 constant.
9514 (input_interrupt): Add integer parameter to match prototype
9515 of a signal handler.
9516 (outreg): Use register_data ().
9517 (prepare_resume_reply): Use gdbserver_expedite_regs.
9518 * gdbserver/server.c (main): Dynamically allocate own_buf because
9519 PBUFSIZ is no longer constant. Use registers_to_string () and
9520 registers_from_string ().
9521 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9522 for error (), fatal (), and warning (). Update definition of
9523 PBUFSIZ to use regcache functionality. Add include guard.
9524 * gdbserver/utils.c (fatal): Add missing ``const''.
9525 (warning): New function.
9526
9527 * regformats/regdat.sh: Include "regcache.h" in generated files.
9528 Provide init_registers () function.
9529 * regformats/regdef.h: Add prototype for set_register_cache ().
9530 Add include guard.
9531
9532 * gdbserver/linux-arm-low.c: New file.
9533 * gdbserver/linux-i386-low.c: New file.
9534 * gdbserver/linux-ia64-low.c: New file.
9535 * gdbserver/linux-m68k-low.c: New file.
9536 * gdbserver/linux-mips-low.c: New file.
9537 * gdbserver/linux-ppc-low.c: New file.
9538 * gdbserver/linux-sh-low.c: New file.
9539
9540 * gdbserver/regcache.c: New file.
9541 * gdbserver/regcache.h: New file.
9542
9543 * gdbserver/low-linux.c: Removed obsolete file.
9544
4cc841d0
DJ
95452002-02-14 Daniel Jacobowitz <drow@mvista.com>
9546
9547 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9548 * config/i386/linux.mt: Likewise.
9549 * config/ia64/linux.mt: Likewise.
9550 * config/m68k/linux.mh: Likewise.
9551 * config/powerpc/linux.mh: Likewise.
9552 * config/mips/linux.mt: Likewise.
9553
9554 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9555
9556 * config/i386/i386lynx.mh: Mark gdbserver variables
9557 as (currently) obsolete for this target.
9558 * config/i386/nbsd.mt: Likewise.
9559 * config/i386/nbsdelf.mt: Likewise.
9560 * config/m32r/m32r.mt: Likewise.
9561 * config/m68k/m68klynx.mh: Likewise.
9562 * config/m68k/nbsd.mt: Likewise.
9563 * config/m68k/sun3os4.mh: Likewise.
9564 * config/mips/vr5000.mt: Likewise.
9565 * config/ns32k/nbsd.mt: Likewise.
9566 * config/pa/hppabsd.mh: Likewise.
9567 * config/pa/hppaosf.mh: Likewise.
9568 * config/powerpc/nbsd.mt: Likewise.
9569 * config/rs6000/rs6000lynx.mh: Likewise.
9570 * config/s390/s390.mt: Likewise.
9571 * config/s390/s390x.mt: Likewise.
9572 * config/sparc/sparclynx.mh: Likewise.
9573 * config/sparc/sun4os4.mh: Likewise.
9574 * config/i386/x86-64linux.mt: Likewise.
9575 * config/sparc/linux.mh: Likewise.
9576
a85f51e7
DJ
95772002-02-14 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * configure.tgt: Configure gdbserver only for known working
9580 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9581 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9582 SUBDIRS if it is configured. Update comment for ${nativefile}.
9583 * configure: Regenerated.
9584
65554fef
MS
95852002-02-13 Michael Snyder <msnyder@redhat.com>
9586
670a52db
MS
9587 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9588
6dbdc4a3
MS
9589 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9590 (default_gcore_mach): Just return 0, work around a problem in bfd.
9591 (default_gcore_target): OK to return NULL if exec_bfd is null.
9592 (make_mem_sec): Use a cast, avoid a warning.
9593
9594 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9595 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9596 sizeof (host pointer) != sizeof (target pointer)).
9597 (procfs_make_note_section): Avoid overflow in psargs string.
9598
aaa38bb5 9599 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9600 implementation return an error.
9601
96022002-02-13 Rodney Brown <rbrown64@csc.com.au>
9603
9604 * procfs.c (procfs_make_note_section): Provide a default definition
9605 (for alpha-dec-osf4.0f). Fix typos.
9606
1e4d76e7
EZ
96072002-02-13 Elena Zannoni <ezannoni@redhat.com>
9608
9609 * linux-proc.c: Add include of regcache.h.
9610 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9611
b6d1a1d5
AC
96122002-02-13 Andrew Cagney <ac131313@redhat.com>
9613
9614 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9615 * memattr.c (create_mem_region): Disallow useless empty region.
9616 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9617 non-overlapping.
b6d1a1d5 9618
6c6ea35e
MC
96192002-02-13 Michael Chastain <mec@shout.net>
9620
9621 * defs.h: Kill CONST_PTR.
9622 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9623 * c-lang.c (c_builtin_types): Likewise.
9624 * ch-lang.c (ch_builtin_types): Likewise.
9625 * f-lang.c (f_builtin_types): Likewise.
9626 * language.c (unknown_builtin_types): Likewise.
9627 * m2-lang.c (m2_builtin_types): Likewise.
9628 * p-lang.c (pascal_builtin_types): Likewise.
9629 * scm-lang.c (c_builtin_types): Likewise.
9630
3e0b0f48
KS
96312002-02-13 Keith Seitz <keiths@redhat.com>
9632
9633 * arm-tdep.h (arm_get_next_pc): Add declaration.
9634
67255d04
RE
96352002-02-13 Richard Earnshaw <rearnsha@arm.com>
9636
9637 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9638 with other related struct-returning functions.
9639 (arm_extract_struct_value_address): New function.
9640 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9641 initialize float_format, double_format and long_double_format as
9642 appropriate to the endianness of the target.
9643 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9644 (arm_use_struct_convention): Delete declaration.
9645 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9646
079777f6
KS
96472002-02-13 Keith Seitz <keiths@redhat.com>
9648
9649 * defs.h (core_addr_to_string_nz): New function.
9650
34588f23
MK
96512002-02-13 Mark Kettenis <kettenis@gnu.org>
9652
9653 Apply missing bits of 2002-01-15 patch.
9654 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9655 (fill_fpregset): Use i387_fill_fsave.
9656
49b563f9
KS
96572002-02-12 Keith Seitz <keiths@redhat.com>
9658
49b563f9
KS
9659 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9660 (core_addr_to_string_nz): New function.
9661
aeb98c60
RE
96622002-02-11 Richard Earnshaw <rearnsha@arm.com>
9663
9664 * arm-linux-nat.c: Really include arm-tdep.h.
9665 * config/arm/tm-linux.h (struct type, struct value): Declare.
9666
65554fef
MS
96672002-02-11 Michael Snyder <msnyder@redhat.com>
9668
9669 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9670 (gcore section): Ifdef for Solaris and Unixware only.
9671 (procfs_do_thread_registers): Unixware needs one lwpstatus
9672 per thread (not one prstatus or pstatus).
9673 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9674 not over all gdb threads. For unixware, call elfcore_write_pstatus
9675 once before iterating over threads.
9676
34e8f22d
RE
96772002-02-11 Richard Earnshaw <rearnsha@arm.com>
9678
9679 * arm-tdep.h: New file.
9680 * arm-tdep.c: Include arm-tdep.h.
9681 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9682 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9683 (arm_print_float_info, arm_register_type, convert_to_extended)
9684 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9685 (arm_extract_return_value, arm_register_name): Make static.
9686 (arm_software_single_step): Similarly. Fix types in declaration.
9687 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9688 (arm_store_return_value, arm_store_struct_return): New functions.
9689 (arm_gdbarch_init): Register the above functions. Also register
9690 call_dummy_start_offset, sizeof_call_dummy_words,
9691 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9692 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9693 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9694 prologue_cache.saved_regs here, rather than ...
9695 (_initialize_arm_tdep): ... here.
9696 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9697 declarations.
9698 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9699 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9700 (arm_print_float_info, arm_register_type, convert_to_extended)
9701 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9702 (arm_extract_return_value, arm_register_name): Delete declarations.
9703 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9704 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9705 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9706 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9707 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9708 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9709 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9710 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9711 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9712 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9713 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9714 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9715 interface.
9716 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9717 * remote-rdi.c remote-rdp.c: Likewise.
9718 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9719 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9720 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9721 definition.
9722
9723 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9724 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9725 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9726 from non-ARM_ prefixed definitions.
9727 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9728 all uses of above.
9729 * remote-rdi.c remote-rdp.c: Likewise.
9730 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9731
148754e5
RE
97322002-02-11 Richard Earnshaw <rearnsha@arm.com>
9733
9734 * arm-tdep.c (arm_frameless_function_invocation)
9735 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9736 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9737 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9738 (arm_pop_frame, arm_get_next_pc): Make static.
9739 (arm_gdbarch_init): Register above in gdbarch structure.
9740 (arm_read_fp): Renamed from arm_target_read_fp.
9741 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9742 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9743 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9744 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9745 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9746 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9747 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9748 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9749 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9750 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9751 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9752
434d2d4f
DJ
97532002-02-10 Daniel Jacobowitz <drow@mvista.com>
9754
9755 * symtab.c (compare_search_syms): New function.
9756 (sort_search_symbols): New function.
9757 (search_symbols): Sort symbols after searching rather than
9758 before.
9759
55241689
AC
97602002-02-10 Andrew Cagney <ac131313@redhat.com>
9761
9762 * NEWS: Linux -> GNU/Linux.
9763
028c194b
AC
97642002-02-10 Andrew Cagney <ac131313@redhat.com>
9765
9766 * gdbarch.sh: For for level one methods, disallow a definition
9767 when partially multi-arched. Add comments explaining rationale.
9768 * gdbarch.h: Re-generate.
9769
6acf50cd
AC
97702002-02-10 Andrew Cagney <ac131313@redhat.com>
9771
9772 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9773 multi-arch partial.
aaa38bb5 9774
50248794
AC
97752002-02-10 Andrew Cagney <ac131313@redhat.com>
9776
9777 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9778 field. Use diff -u.
9779 * gdbarch.c: Re-generate.
9780
c30e0066
AC
97812002-02-10 Andrew Cagney <ac131313@redhat.com>
9782
9b56c5f3 9783 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9784 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9785 partial.
9786
6e6d6484
AC
97872002-02-10 Andrew Cagney <ac131313@redhat.com>
9788
9789 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9790 multi-arch partial.
9791 (PUSH_ARGUMENTS): Switch to using predefault.
9792 * gdbarch.c: Regenerate.
9793
c203844d
AC
97942002-02-10 Andrew Cagney <ac131313@redhat.com>
9795
9796 * valops.c (PUSH_ARGUMENTS): Delete definition.
9797 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9798 partial. Default to default_push_arguments.
9799 * gdbarch.h, gdbarch.c: Regenerate.
9800
b5a2688f
AC
98012002-02-09 Andrew Cagney <ac131313@redhat.com>
9802
9803 * defs.h (throw_exception): Rename return_to_top_level. Update
9804 comments.
9805 * utils.c (error_stream, internal_verror, quit): Ditto.
9806 * top.c (throw_exception, catcher): Ditto.
9807 * sparclet-rom.c (sparclet_load): Ditto.
9808 * remote.c (interrupt_query, minitelnet): Ditto.
9809 * remote-sds.c (interrupt_query): Ditto.
9810 * remote-mips.c (mips_error, mips_kill): Ditto.
9811 * ocd.c (interrupt_query): Ditto.
9812 * monitor.c (monitor_interrupt_query): Ditto.
9813 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9814 * target.h: Update comment.
aaa38bb5 9815
b5a2688f 9816 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9817
2fa5c1e0
AC
98182002-02-09 Andrew Cagney <ac131313@redhat.com>
9819
9820 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9821 default_double_format.
9822 * gdbarch.h, gdbarch.c: Re-generate.
9823 * findvar.c (floatformat_unknown): Delete variable definition.
9824 * doublest.h (floatformat_unknown): Delete variable declaration.
9825
da966255
JB
98262002-02-09 Jim Blandy <jimb@redhat.com>
9827
9828 * stabsread.c (read_type): Add code to parse Sun's syntax for
9829 prototyped function types.
9830
123a4891
AC
98312002-02-09 Andrew Cagney <ac131313@redhat.com>
9832
9833 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9834 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9835
fb39c8f3
PS
98362002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9837
9838 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9839 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9840 now _initialize_xcoffsolib gets called again and overrides the
9841 commands from solib.c in a native configuration.
9842
0b87a11d
MK
98432002-02-09 Mark Kettenis <kettenis@gnu.org>
9844
9845 * doublest.c (store_typed_floating): Don't try to return a value.
9846 Fixes PR gdb/290.
9847
bdc2fc72
JB
98482002-02-08 Jim Blandy <jimb@redhat.com>
9849
9850 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9851 is prototyped and has no arguments, print its argument list as
9852 `(void)'.
9853
da69bbcf
CD
98542002-02-08 Chris Demetriou <cgd@broadcom.com>
9855
9856 * MAINTAINERS (write-after-approval): Add myself.
9857 (paper-trail): I've escaped!
aaa38bb5 9858
b69571f5
CF
98592002-02-08 Christopher Faylor <cgf@redhat.com>
9860
9861 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9862 changes.
9863 (_initialize_check_for_gdb_ini): Ditto.
9864
f6871398
MH
98652002-02-08 Martin M. Hunt <hunt@redhat.com>
9866
9867 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9868 xaprintf -> xasprintf.
9869
4e52d31c
PM
98702002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9871
9872 * win32-nat.c: Remove use of printf and sprintf functions.
9873
39bbf761
RE
98742002-02-08 Richard Earnshaw <rearnsha@arm.com>
9875
9876 * arm-tdep.c (arm_frame_chain_valid): Make static.
9877 (arm_push_arguments): Likewise.
9878 (arm_gdbarch_init): New function.
9879 (_initialize_arm_tdep): Call it.
9880 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9881 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9882 (FRAME_CHAIN_VALID): Delete.
9883 (arm_frame_chain_valid): Delete declaration.
9884 (PUSH_ARGUMENTS): Delete.
9885 (arm_push_arguments): Delete declaration.
9886 (CALL_DUMMY_P): Delete.
9887
9c9532c9
CV
98882002-02-08 Andrew Cagney <ac131313@redhat.com>
9889 Corinna Vinschen <vinschen@redhat.com>
9890
9891 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9892 on builtin float types.
9893
4e8f7a8b
DJ
98942002-02-08 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * utils.c: Include <curses.h> before "bfd.h".
9897 * tui/tui-hooks.c: Likewise.
9898 * tui/tui.c: Likewise.
9899 * tui/tuiCommand.c: Likewise.
9900 * tui/tuiData.c: Likewise.
9901 * tui/tuiDataWin.c: Likewise.
9902 * tui/tuiDisassem.c: Likewise.
9903 * tui/tuiGeneralWin.c: Likewise.
9904 * tui/tuiIO.c: Likewise.
9905 * tui/tuiLayout.c: Likewise.
9906 * tui/tuiRegs.c: Likewise.
9907 * tui/tuiSource.c: Likewise.
9908 * tui/tuiSourceWin.c: Likewise.
9909 * tui/tuiStack.c: Likewise.
9910 * tui/tuiWin.c: Likewise.
9911
cd4bffcf
EZ
99122002-02-07 Elena Zannoni <ezannoni@redhat.com>
9913
9914 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9915 to include space for pseudoregs as well. Update loops accordingly.
9916 (sh_fp_frame_init_saved_regs): Ditto.
9917 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9918
26806ce2
AC
99192002-02-07 Andrew Cagney <ac131313@redhat.com>
9920
9921 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9922 Add Richard Earnshaw to Arm maintainers.
9923
97fdab62
AC
99242002-02-07 Andrew Cagney <ac131313@redhat.com>
9925
a6b98203
AC
9926 * defs.h (warning_begin): Delete declaration.
9927
97fdab62
AC
9928 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9929 Delete macro.
9930
78b29b40
MS
99312002-02-07 Michael Snyder <msnyder@redhat.com>
9932
aaa38bb5 9933 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9934 Logic bug, remove misplaced else.
9935
d8849953
KD
99362002-02-07 Klee Dienes <klee@apple.com>
9937
9938 * fork-inferior.c (fork_inferior): Add '!' to the list of
9939 characters that need to be quoted when building a string for the
9940 shell. Quote '!' specifically with a backslash, since CSH chokes
9941 when trying to evaluate "str!str".
aaa38bb5 9942
095778a0
NC
99432002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9944
9945 * rdi-share/host.h: Only provide a typedef for bool if it is not
9946 defined.
9947
1900040c
MS
99482002-02-04 Michael Snyder <msnyder@redhat.com>
9949
9950 * breakpoint.h (enum bptype): Add new overlay event bp type.
9951 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9952
1900040c
MS
9953 * breakpoint.c (create_internal_breakpoint): New function.
9954 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9955 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9956 (create_thread_event_breakpoint): Ditto.
9957 (create_solib_event_breakpoint): Ditto.
9958 (create_overlay_event_breakpoint): New function.
9959 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9960 (update_breakpoints_after_exec): Delete and re-initialize
9961 overlay event breakpoints after an exec. Add FIXME comment
9962 about longjmp breakpoint.
9963 (print_it_typical): Ignore overlay event breakpoints.
9964 (print_one_breakpoint): Ditto.
9965 (mention): Ditto.
9966 (bpstat_what): Do not stop for overlay event breakpoints.
9967 (delete_breakpoint): Don't delete overlay event breakpoints.
9968 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9969 (breakpoint_re_set): Re-create overlay event breakpoint.
9970
9971 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9972 (overlay_manual_command): Disable overlay breakpoints.
9973 (overlay_off_command): Disable overlay breakpoints.
9974
082fc60d
RE
99752002-02-06 Richard Earnshaw <rearnsha@arm.com>
9976
9977 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9978 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9979 to here from config/tm-arm.h.
9980 (coff_sym_is_thumb): Make static.
9981 (arm_elf_make_msymbol_special): New function.
9982 (arm_coff_make_msymbol_special): New function.
9983 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9984 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9985 (coff_sym_is_thumb): Delete declaration.
9986 (arm_elf_make_msymbol_special): Declare.
9987 (arm_coff_make_msymbol_special): Declare.
9988 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9989 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9990
039c5766
RE
99912002-02-06 Richard Earnshaw <rearnsha@arm.com>
9992
9993 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9994
99952002-02-06 Richard Earnshaw <rearnsha@arm.com>
9996
9997 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9998 * gdbarch.c gdbarch.h: Regenerate.
9999 * arch-utils.c (default_print_float_info): New function.
10000 * arch-utils.h (default_print_float_info): Prototype it.
10001 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10002 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10003 (PRINT_FLOAT_INFO): Document it.
10004
10005 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10006 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10007 (PRINT_FLOAT_INFO): Define.
10008
58fa08f0
PM
100092002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10010
aaa38bb5 10011 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10012 Add typecast to sprintf argument to suppress a warning.
10013
7393af7c
PM
100142002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10015
58fa08f0 10016 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10017 to allow easier handling of pass state.
10018 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10019 that gives exception name and address.
10020 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10021 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10022 exceptions added.
aaa38bb5
AJ
10023 (child_continue): Correctly report continue_status.
10024 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10025 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10026 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10027 the exception should be passed to debuggee or not.
10028
6af4589c
MS
100292002-02-05 Michael Snyder <msnyder@redhat.com>
10030
10031 * regcache.c (fetch_register): Call target_fetch_register
10032 only if we don't call FETCH_PSEUDO_REGISTER.
10033 (store_register): Call target_store_register only if we
10034 don't call STORE_PSEUDO_REGISTER.
10035
a2cf933a
EZ
100362002-02-05 Elena Zannoni <ezannoni@redhat.com>
10037
10038 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10039 ELF_MAKE_MSYMBOL_SPECIAL.
10040 * gdbarch.c, gdbarch.h: Regenerate.
10041 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10042 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10043 * elfread.c (elf_symtab_read): Compile use of
10044 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10045 multiarched.
10046 * coffread.c (coff_symtab_read): Ditto, for
10047 COFF_MAKE_MSYMBOL_SPECIAL.
10048
6bb7be43
JB
100492002-02-05 Jim Blandy <jimb@redhat.com>
10050
10051 * solib-svr4.c (svr4_truncate_ptr): New function.
10052 (svr4_relocate_section_addresses): Do the address arithmetic with
10053 the appropriate truncation for target addresses, even when
10054 CORE_ADDR is larger than a target address.
10055
e18651ec
DJ
100562002-02-05 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10059 to (int *).
10060
6b2725be
DJ
100612002-02-05 Daniel Jacobowitz <drow@mvista.com>
10062
10063 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10064 code.
10065
fca9e603
DJ
100662002-02-05 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10069
6c537a52
DJ
100702002-02-05 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * gdbserver/linux-low.c: Remove unused include files.
10073
d844cde6
DJ
100742002-02-05 Daniel Jacobowitz <drow@mvista.com>
10075
10076 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10077 (read_inferior_memory): Use it.
10078 (write_inferior_memory): Likewise.
10079
d07c63e7
DJ
100802002-02-05 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10083 grubbing through sys_errlist.
10084
da6d8c04
DJ
100852002-02-05 Daniel Jacobowitz <drow@mvista.com>
10086
10087 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10088
5b421780
PM
100892002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10090 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10091
9f60d481
AC
100922002-02-04 Andrew Cagney <ac131313@redhat.com>
10093
10094 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10095 (do_sfunc, set_cmd_sfunc): New functions.
10096
10097 * command.h (struct cmd_list_element): Add field func.
10098 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10099 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10100 * cli/cli-decode.h: Ditto.
10101
10102 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10103 (help_all, help_cmd_list): Ditto.
10104 (find_cmd, complete_on_cmdlist): Ditto.
10105 * top.c (execute_command): Ditto.
10106
10107 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10108 function.sfunc.
10109
10110 * infcmd.c (notice_args_read): Fix function signature.
10111
10112 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10113 * cli/cli-decode.c (add_set_cmd): Ditto.
10114 * utils.c (initialize_utils): Ditto.
10115 * maint.c (_initialize_maint_cmds): Ditto.
10116 * infrun.c (_initialize_infrun): Ditto.
10117 * demangle.c (_initialize_demangler): Ditto.
10118 * remote.c (add_packet_config_cmd): Ditto.
10119 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10120 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10121 * proc-api.c (_initialize_proc_api): Ditto.
10122 * kod.c (_initialize_kod): Ditto.
10123 * valprint.c (_initialize_valprint): Ditto.
10124 * top.c (init_main): Ditto.
10125 * infcmd.c (_initialize_infcmd): Ditto.
10126 * corefile.c (_initialize_core): Ditto.
10127 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10128 * arch-utils.c (initialize_current_architecture): Ditto.
10129 (_initialize_gdbarch_utils): Ditto.
10130 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10131
10132 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10133 * wince.c (_initialize_inftarg): Ditto.
10134 * symfile.c (_initialize_symfile): Ditto.
10135 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10136 * language.c (_initialize_language): Ditto.
10137 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10138
f9ba0717
MS
101392002-02-04 Michael Snyder <msnyder@redhat.com>
10140
10141 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10142
0c74b2a7
DJ
101432002-02-04 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10146 Add rules for building the register data files.
10147
c638789f
DJ
101482002-02-04 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * regformats/regdat.sh: Add braces to the definition of
10151 expedite_regs_${arch}.
10152
db253027
DJ
101532002-02-04 Daniel Jacobowitz <drow@mvista.com>
10154
10155 * regformats/regdef.h (struct reg): Add comment describing the
10156 requirements for offset and size fields.
10157
206be19c
AS
101582002-02-04 Andreas Schwab <schwab@suse.de>
10159
10160 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10161 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10162
181c1381
RE
101632002-02-04 Richard Earnshaw <rearnsha@arm.com>
10164
10165 * gdbarch.sh (copyright): Update years in generated header.
10166 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10167 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10168 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10169 * dbxread.c: Likewise.
10170 * dwarfread.c: Likewise.
10171 * elfread.c: Likewise.
10172 * somread.c: Likewise.
10173
10174 * arm-tdep.c (arm_smash_text_address): New function.
10175 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10176
fa4ba8da
PM
101772002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10178
10179 Add support for hardware watchpoints on win32 native.
aaa38bb5 10180 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10181 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10182 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10183 of debug registers.
10184 (debug_registers_changed): New variable. Reflects when debug registers
10185 are changed and need to be written to inferior.
aaa38bb5 10186 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10187 was set, used when new threads are created.
10188 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10189 i386-nat code.
10190 (thread_rec): Set dr array if id is the thread of current_event .
10191 (child_continue, child_resume): Change the debug registers for all
10192 threads if debug_registers_changed.
10193 (child_add_thread): Change the debug registers if debug_registers_used.
10194 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10195 Link nm.h to new nm-cygwin.h file.
10196 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10197 of hardware registers.
10198
a73c86fb
AC
101992002-02-03 Andrew Cagney <ac131313@redhat.com>
10200
10201 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10202 Restore behavour broken by 2002-01-20 Andrew Cagney
10203 <ac131313@redhat.com> IEEE_FLOAT removal.
10204
acf5ed49
DJ
102052002-02-03 Daniel Jacobowitz <drow@mvista.com>
10206
10207 * c-valprint.c (c_val_print): Pass a proper valaddr to
10208 cp_print_class_method.
10209 * valops.c (search_struct_method): If there is only one method
10210 and args is NULL, return that method.
10211
493d28d5
DJ
102122002-02-03 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10215 accessing tag_name directly.
10216
7495dfdb
DJ
102172002-02-03 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10220 of accessing tag_name directly.
10221
dd6bda65
DJ
102222002-02-03 Daniel Jacobowitz <drow@mvista.com>
10223
10224 PR gdb/280
10225 * gdbtypes.c (replace_type): New function.
10226 * gdbtypes.h (replace_type): Add prototype.
10227 * stabsread.c (read_type): Use replace_type.
10228
88fe217c
RE
102292002-02-03 Richard Earnshaw <rearnsha@arm.com>
10230
10231 * Makefile.in (memattr.o): Add missing dependencies rule.
10232
e5d66720
PS
102332002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10234
10235 * breakpoint.c (break_at_finish_command): Really export.
10236 (break_at_finish_at_depth_command): Ditto.
10237 (tbreak_at_finish_command): Ditto.
10238 * hppa-tdep.c: Include completer.h.
10239 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10240 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10241
fffee0be
AC
102422002-02-01 Andrew Cagney <ac131313@redhat.com>
10243
10244 * utils.c (do_write): New function.
10245 (error_stream): Rewrite combining the code from error_begin and
10246 verror.
10247 (verror): Rewrite using error_stream.
10248 (error_begin): Delete function.
10249
255e7dbf
AC
102502002-02-01 Andrew Cagney <ac131313@redhat.com>
10251
10252 * utils.c (error_begin): Make static.
10253 * defs.h (error_begin): Delete declaration.
10254
10255 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10256 (decode_line_1): Use cplusplus_error instead of error_begin,
10257 cplusplus_hint and return_to_top_level.
10258 * coffread.c (coff_symfile_read): Use error instead of error_begin
10259 and return_to_top_level.
10260 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10261
ddfe3c15
AC
102622002-02-01 Andrew Cagney <ac131313@redhat.com>
10263
10264 * language.h (type_error, range_error): Make string parameter
10265 constant.
10266 * language.c (warning_pre_print): Delete extern declaration.
10267 * dwarfread.c (warning_pre_print): Ditto.
10268 * language.c (type_error, range_error): Rewrite to use verror and
10269 vwarning instead of warning_begin.
10270
03ac34d5
MS
102712002-02-01 Michael Snyder <msnyder@redhat.com>
10272
261c4ca2
MS
10273 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10274 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10275
e00d1dc8
AC
102762002-02-01 Andrew Cagney <ac131313@redhat.com>
10277
10278 * command.h (NO_FUNCTION): Delete macro.
10279 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10280 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10281 * tracepoint.c (_initialize_tracepoint): Ditto.
10282 * cli/cli-decode.c (add_set_cmd): Ditto.
10283 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10284
76b79d6e
DJ
102852002-02-01 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10288 Update ``this'' pointer when calling virtual functions.
10289
799f9e91
MS
102902002-02-01 Michael Snyder <msnyder@redhat.com>
10291
c7bd442c 10292 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10293 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10294
3cf384d4
DJ
102952002-02-01 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * regformats/reg-arm.dat: New file.
10298 * regformats/reg-i386.dat: New file.
10299 * regformats/reg-ia64.dat: New file.
10300 * regformats/reg-m68k.dat: New file.
10301 * regformats/reg-mips.dat: New file.
10302 * regformats/reg-ppc.dat: New file.
10303 * regformats/reg-sh.dat: New file.
10304 * regformats/regdef.h: New file.
10305 * regformats/regdat.sh: New file.
10306
0defa245
RE
103072002-02-01 Richard Earnshaw <reanrsha@arm.com>
10308
10309 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10310 (arm_frame_args_address, arm_frame_locals_address): New functions.
10311 (arm_frame_num_args): New function.
10312 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10313 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10314 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10315
405f26e6
MS
103162002-01-31 Michael Snyder <msnyder@redhat.com>
10317
502fd408
MS
10318 * breakpoint.c (break_at_finish_command): Export.
10319 (break_at_finish_at_depth_command): Export.
10320 (tbreak_at_finish_command): Export.
10321 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10322 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10323 "tbreak" commands, which are HPPA specific.
10324
7d35e135
MS
10325 * printcmd.c (disassemble_command): Remove an ancient
10326 artifact of an old merge.
10327
aaa38bb5 10328 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10329 Define enum constant values for overlay mode.
10330 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10331 (overlay_is_mapped, overlay_auto_command,
10332 overlay_manual_command): Ditto.
d874f1e2 10333
aaa38bb5
AJ
10334 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10335 breakpoint_here_p, breakpoint_inserted_here_p,
10336 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10337 describe_other_breakpoints, check_duplicates, clear_command):
10338 Coding standard fixes.
10339
8add0441 10340 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10341 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10342 code: check bfd SEC_READONLY flag for section.
10343
e351066e
AC
103442002-01-31 Andrew Cagney <ac131313@redhat.com>
10345
7d35e135 10346 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10347
8a48e967
DJ
103482002-01-30 Daniel Jacobowitz <drow@mvista.com>
10349
10350 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10351 data symbols, since we search based on textlow and texthigh.
10352 (find_pc_sect_symtab): Likewise.
10353
f5a96129
AC
103542002-01-30 Andrew Cagney <ac131313@redhat.com>
10355
10356 * defs.h (vwarning): Declare.
f5a96129
AC
10357 * utils.c (vwarning): New function.
10358 (warning): Call vwarning.
10359 (warning_begin): Delete function.
10360
10361 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10362 the warning message.
10363 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10364 warning_begin.
10365
cefd4ef5
MS
103662002-01-30 Michael Snyder <msnyder@redhat.com>
10367
1a703748
MS
10368 * NEWS: Mention "set trust-readonly-sections" command.
10369 Mention generate-core-file command.
cefd4ef5 10370
3a11626d
MS
103712002-01-15 Michael Snyder <msnyder@redhat.com>
10372
10373 * target.c: New command, "set trust-readonly-sections on".
10374 (do_xfer_memory): Honor the suggestion to trust readonly sections
10375 by reading them from the object file instead of from the target.
10376 (initialize_targets): Register command "set trust-readonly-sections".
10377
d1c7e53b
AC
103782002-01-29 Andrew Cagney <ac131313@redhat.com>
10379
10380 * parse.c (target_map_name_to_register): Simplify, search regs and
10381 pseudo-regs using a single loop.
10382
e2c9a72c
AC
103832002-01-30 Andrew Cagney <ac131313@redhat.com>
10384
10385 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10386
69824b4e
MK
103872002-01-15 Rodney Brown <rbrown64@csc.com.au>
10388
10389 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10390 * config/i386/i386v42mp.mh: Add i387-nat.o .
10391 * i386v4-nat.c: Include i387-nat.h.
10392 (supply_fpregset): Use i387_supply_fsave.
10393 (fill_fpregset): Use i387_fill_fsave.
10394
6eb69eab
RE
103952002-01-30 Richard Earnshaw <rearnsha@arm.com>
10396
10397 * arm-tdep.c (arm_call_dummy_words): Define.
10398 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10399 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10400 (CALL_DUMMY_WORDS): Define.
10401 (arm_call_dummy_words): Declare.
10402 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10403 (arm_linux_call_dummy_words): Declare.
10404
9852326a
AS
104052002-01-30 Andreas Schwab <schwab@suse.de>
10406
10407 * m68klinux-nat.c: Fix last change to use regcache_collect
10408 instead of referencing registers[] directly.
10409
977a3030
AC
104102002-01-29 Andrew Cagney <ac131313@redhat.com>
10411
10412 * parse.c (target_map_name_to_register): Delete code wrapped in
10413 #ifdef REGISTER_NAME_ALIAS_HOOK.
10414
2076c72b
MS
104152002-01-28 Michael Snyder <msnyder@redhat.com>
10416
10417 * regcache.c (legacy_read_register_gen): Need to be able to
10418 read pseudo-register as well as real register.
10419 (legacy_write_register_gen): Ditto.
10420
8fcc723b
AC
104212002-01-28 Andrew Cagney <ac131313@redhat.com>
10422
10423 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10424 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10425 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10426 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10427 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10428 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10429 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10430 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10431 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10432 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10433 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10434 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10435 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10436 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10437 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10438 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10439 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10440 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10441 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10442 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10443
afe64c1a
AC
104442002-01-28 Andrew Cagney <ac131313@redhat.com>
10445
10446 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10447 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10448 (initialize_current_architecture): Update target_byte_order using
10449 information from BFD.
aaa38bb5 10450 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10451 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10452
75bc7ddf
AC
104532002-01-28 Andrew Cagney <ac131313@redhat.com>
10454
10455 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10456 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10457
10458 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10459 #ifdef INVALID_FLOAT.
10460 * infcmd.c (do_registers_info): Ditto.
10461 * values.c (unpack_double): Ditto. Add comment.
10462
10463 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10464 already commented out.
10465
0280a90a
AS
104662002-01-26 Andreas Schwab <schwab@suse.de>
10467
10468 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10469 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10470 registers and add support for PTRACE_GETREGS.
10471
7072a954
AC
104722002-01-24 Andrew Cagney <ac131313@redhat.com>
10473
10474 GDB 5.1.1 released from 5.1 branch.
10475 * NEWS: Add 5.1.1 news.
10476 * README: Sync with 5.1 branch.
10477
86f902e0
FF
104782002-01-23 Fred Fish <fnf@redhat.com>
10479
10480 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10481 stabstring on initial malloc. Reallocing will copy it for us,
10482 if necessary.
10483
8af51c36
EZ
104842002-01-23 Elena Zannoni <ezannoni@redhat.com>
10485
aaa38bb5 10486 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10487 (HFILES_NO_SRCDIR): Remove hpread.h.
10488 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10489 (hpread.o): Update dependencies.
10490 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10491
10492 * hp-psymtab-read.c: Remove file.
10493 * hp-symtab-read.c: Remove file.
10494 * hpread.h: Remove file.
10495
10496 * hpread.c: Merge all contents of hp-psymtab-read.c,
10497 hp-symtab-read.c and hpread.h into this file, as it was prior to
10498 January 1999.
10499
10500 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10501 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10502 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10503 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10504
dc5cfeb6
EZ
105052002-01-23 Elena Zannoni <ezannoni@redhat.com>
10506
10507 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10508 fill_gregset): Call gdbarch_tdep() just once, assign result to
10509 variable and use that, instead of calling the function several
10510 times.
10511
ea87b71b
AO
105122002-01-24 Alexandre Oliva <aoliva@redhat.com>
10513
10514 * configure.host: Accept sparcv9 as alias for sparc64.
10515 * configure.tgt: Likewise.
10516
13fc0c2f
KB
105172002-01-22 Kevin Buettner <kevinb@redhat.com>
10518
10519 * solib-aix5.c (build_so_list_from_mapfile)
10520 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10521 arguments is not reversed.
10522 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10523 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10524
7bd872fe
EZ
105252002-01-22 Elena Zannoni <ezannoni@redhat.com>
10526
10527 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10528 modified version of obsolete sh_fetch_pseudo_register.
10529 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10530 (sh4_register_read): New function.
10531 (sh_pseudo_register_write): New function. Renamed and modified
10532 version of obsolete sh_store_pseudo_register.
10533 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10534 (sh4_register_write): New function.
10535 (sh_gdbarch_init): Remove setting of gdbarch function
10536 fetch_pseudo_register and store_pseudo_register. Remove setting of
10537 register_convert_to_raw, register_convert_to_virtual,
10538 register_convertible.
10539 (sh_sh4_register_convertible): Delete. No longer needed. All is
10540 taken care by architecture specific functions
10541 register_read/register_write.
10542 (sh_sh4_register_convert_to_virtual): Make static.
10543 (sh_sh4_register_convert_to_raw): Ditto.
10544
069e84fd
AC
105452002-01-22 Andrew Cagney <ac131313@redhat.com>
10546
10547 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10548 (floatformat_is_nan, floatformat_mantissa): Ditto.
10549
10550 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10551 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10552 builtin_type_ieee_double_little,
10553 builtin_type_ieee_double_littlebyte_bigword,
10554 builtin_type_m68881_ext, builtin_type_i960_ext,
10555 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10556 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10557 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10558 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10559
211a4f69
CV
105602002-01-22 Corinna Vinschen <vinschen@redhat.com>
10561
10562 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10563 parameter. Set frameless flag if it exists and depended of
10564 whether the scanned function is frameless or not.
10565 (xstormy16_skip_prologue): If function is frameless, return
10566 result of xstormy16_scan_prologue().
10567 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10568 call.
10569
f81353e4
EZ
105702002-01-21 Elena Zannoni <ezannoni@redhat.com>
10571
10572 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10573 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10574 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10575 sh_sh4_register_byte, sh_sh4_register_raw_size,
10576 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10577 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10578 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10579 sh_store_pseudo_register, sh_do_pseudo_register): Call
10580 gdbarch_tdep() just once, assign result to variable and use that,
10581 instead of calling the function several times.
10582
63c73a17
MK
105832002-01-20 Mark Kettenis <kettenis@gnu.org>
10584
10585 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10586 macros instead of LAST_FPU_CTRL_REGNUM.
10587 (store_register): Likewise.
10588
39ad761d
JB
105892002-01-21 Jim Blandy <jimb@redhat.com>
10590
10591 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10592 is up-to-date before running the program, not just when a program
10593 exits.
10594
3d74b771
FF
105952002-01-21 Fred Fish <fnf@redhat.com>
10596
10597 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10598 when we have found all instructions we are looking for.
10599
966fbf70
RE
106002002-01-21 Richard Earnshaw <rearnsha@arm.com>
10601
10602 * arm-tdep.c (arm_register_name): New function.
10603 (arm_registers_names): Make static.
10604 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10605 (arm_register_name): Declare.
10606 (REGISTER_NAME): Use it.
10607
c3b4394c
RE
106082002-01-21 Richard Earnshaw <rearnsha@arm.com>
10609 Kevin Buettner <kevinb@redhat.com>
10610
10611 Convert arm targets to new FRAME interface.
10612 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10613 (arm_frame_find_save_regs): Delete.
10614 (arm_frame_init_saved_regs): New.
10615 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10616 Allocate extra_info as required. Convert all uses of fsr.regs
10617 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10618 to use extra_info.
10619 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10620 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10621 (check_prologue_cache, save_prologue_cache): Likewise.
10622 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10623 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10624 (FRAME_FIND_SAVED_REGS): Delete.
10625 (arm_frame_find_saved_regs): Delete prototype.
10626 (arm_frame_init_saved_regs): New prototype.
10627 (FRAME_INIT_SAVED_REGS): Define.
10628
61d99182
AC
106292002-01-20 Andrew Cagney <ac131313@redhat.com>
10630
10631 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10632
6aaea291
AC
106332002-01-20 Andrew Cagney <ac131313@redhat.com>
10634
10635 From Jeff Law <law@redhat.com>:
10636 * infttrace.c: Include <sys/pstat.h>.
10637 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10638 exec file if the ttrace equivalent fails.
10639
15f698d2
AC
106402002-01-20 Andrew Cagney <ac131313@redhat.com>
10641
10642 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10643 (closeLogFile): Ditto.
10644
f86ddd7c
MC
106452002-01-20 Michael Chastain <mec@shout.net>
10646
10647 * top.c (print_gdb_version): Bump copyright year to 2002.
10648
904507ce
AC
106492002-01-20 Andrew Cagney <ac131313@redhat.com>
10650
10651 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10652 Zannoni and Eli Zaretskii.
10653
d7f0b9ce
DJ
106542002-01-20 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * buildsym.c: Update copyright years.
10657 * c-typeprint.c: Likewise.
10658 * dwarf2read.c: Likewise.
10659 * f-typeprint.c: Likewise.
10660 * gdbtypes.c: Likewise.
10661 * gdbtypes.h: Likewise.
10662 * hp-symtab-read.c: Likewise.
10663 * hpread.c: Likewise.
10664 * mdebugread.c: Likewise.
10665 * p-typeprint.c: Likewise.
10666
3fd3d7d2
AC
106672002-01-20 Andrew Cagney <ac131313@redhat.com>
10668
10669 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10670 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10671 byte-order selectable.
10672 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10673 * arch-utils.c: Ditto.
10674 (set_endian): Ditto.
10675 (set_endian_from_file): Ditto.
10676 * gdbserver/low-sim.c (create_inferior): Ditto.
10677 * gdbarch.sh: Ditto.
10678 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10679 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10680 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10681 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10682 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10683 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10684 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10685 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10686 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10687 macro definition.
10688 * config/mips/tm-wince.h: Remove #undef of macro
10689 TARGET_BYTE_ORDER_SELECTABLE.
10690 * config/sh/tm-wince.h: Ditto.
10691
b02dede2
DJ
106922002-01-20 Daniel Jacobowitz <drow@mvista.com>
10693
10694 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10695 member function fields. Add accessor macro
10696 TYPE_FN_FIELD_ARTIFICIAL.
10697 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10698 * c-typeprint.c (c_type_print_base): Skip artificial member
10699 functions.
10700
c3643761
DJ
107012002-01-20 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * f-typeprint.c: Delete unused function f_type_print_args.
10704 * p-typeprint.c: Delete unused function pascal_type_print_args.
10705
8176bb6d
DJ
107062002-01-20 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10709 comment. Add ``artificial'' to ``union field_location''.
10710
10711 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10712
10713 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10714 * mdebugread.c (parse_symbol): Likewise.
10715 * stabsread.c (define_symbol): Likewise.
10716 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10717 initializing TYPE_FIELD_BITPOS to n (obsolete).
10718 (hpread_doc_function_type): Likewise.
10719 * hpread.c (hpread_function_type): Likewise.
10720
7fd60527
AC
107212002-01-20 Andrew Cagney <ac131313@redhat.com>
10722
10723 * configure.in (host_makefile_frag): Only require a host makefile
10724 fragment when a native build.
10725 * configure: Re-generate.
10726
c2f05ac9
AC
107272002-01-20 Andrew Cagney <ac131313@redhat.com>
10728
10729 * doublest.h (floatformat_from_type): Declare.
10730 * doublest.c (floatformat_from_type): New function.
10731 (convert_typed_floating): Use.
10732
10733 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10734 call to function floatformat_from_type.
10735
10736 * gdbarch.sh (IEEE_FLOAT): Delete.
10737 * gdbarch.h, gdbarch.c: Re-generate.
10738 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10739 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10740 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10741 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10742 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10743 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10744 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10745 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10746 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10747 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10748 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10749 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10750
10751 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10752 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10753 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10754 * sh-tdep.c (sh_gdbarch_init): Ditto.
10755 * mips-tdep.c (mips_gdbarch_init): Ditto.
10756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10757 * cris-tdep.c (cris_gdbarch_init): Ditto.
10758
abf22e64
AJ
107592002-01-20 Jiri Smid <smid@suse.cz>
10760
10761 * configure.host, configure.tgt: Support x86-64.
10762 * NEWS: Note new target x86-64.
10763
b7c4cbf8
AJ
10764 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10765 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10766 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10767 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10768 x86-64-linux-nat.o): Fix dependencies.
10769
82600034
AC
107702002-01-19 Andrew Cagney <ac131313@redhat.com>
10771
10772 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10773 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10774 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10775 * config/sparc/xm-sun4os4.h: Delete file.
10776 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10777
bbe5c628
AC
107782002-01-19 Andrew Cagney <ac131313@redhat.com>
10779
10780 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10781 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10782 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10783 * config/i386/i386lynx.mh (XM_FILE): Delete.
10784 * config/rs6000/xm-rs6000ly.h: Delete file.
10785 * config/sparc/xm-sparclynx.h: Delete file.
10786 * config/m68k/xm-m68klynx.h: Delete file.
10787 * config/i386/xm-i386lynx.h: Delete file.
10788 * config/xm-lynx.h: Delete file.
10789 * config/djgpp/fnchange.lst: Update.
10790
f8453e34
JT
107912002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10792
10793 * alpha-tdep.c (alpha_register_byte): New function.
10794 (alpha_register_raw_size): Ditto.
10795 (alpha_register_virtual_size): Ditto.
10796 (alpha_skip_prologue_internal): Renamed from
10797 alpha_skip_prologue.
10798 (alpha_skip_prologue): New version that calls
10799 alpha_skip_prologue_internal.
10800 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10801 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10802 second argument from alpha_skip_prologue.
10803 (REGISTER_BYTE): Use alpha_register_byte.
10804 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10805 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10806 (FRAMELESS_FUNCTION_INVOCATION): Use
10807 generic_frameless_function_invocation_not.
10808 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10809 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10810
52d9e613
AC
108112002-01-19 Andrew Cagney <ac131313@redhat.com>
10812
10813 * config/mips/xm-news-mips.h: Delete file.
10814 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10815
10816 * config/m88k/xm-m88k.h: Delete file.
10817 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10818 * config/m88k/xm-delta88v4.h: Ditto.
10819 * config/m88k/xm-delta88.h: Ditto.
10820
10821 * config/alpha/xm-fbsd.h: Delete file.
10822 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10823
10824 * config/sparc/xm-sparc.h: Delete file.
10825 * Makefile.in (xm-sun4os4.h): Delete dependency.
10826 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10827 * config/sparc/xm-sun4os4.h: Ditto.
10828 * config/sparc/xm-linux.h: Ditto.
10829
10830 * config/i386/xm-windows.h: Delete file.
10831
2d1b2124
AC
108322002-01-19 Andrew Cagney <ac131313@redhat.com>
10833
10834 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10835 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10836
ee1f65f0
JT
108372002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * alpha-tdep.c (alpha_call_dummy_words): New.
10840 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10841 (CALL_DUMMY_P): Define.
10842 (CALL_DUMMY_WORDS): Define.
10843 (SIZEOF_CALL_DUMMY_WORDS): Define.
10844
98081e55
PB
108452002-01-19 Per Bothner <per@bothner.com>
10846
10847 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10848 isn't NULL, which can happen with some gcj-3.x-produced code.
10849
0d056799
JT
108502002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10851
10852 * alpha-tdep.c (alpha_register_virtual_type): New function.
10853 (alpha_init_frame_pc_first): Ditto.
10854 (alpha_fix_call_dummy): Ditto.
10855 (alpha_store_struct_return): Ditto.
10856 (alpha_extract_struct_value_address): Ditto.
10857 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10858 alpha_register_virtual_type.
10859 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10860 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10861 alpha_extract_struct_value_address.
10862 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10863 (INIT_FRAME_PC): Use init_frame_pc_noop.
10864 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10865
4604bcad
MK
108662002-01-19 Mark Kettenis <kettenis@gnu.org>
10867
10868 * i386gnu-nat.c: Include "i386-tdep.h".
10869 (fetch_fpregs): Simplify code dealing with uninitialized floating
10870 point states such that it doesn't require FP7_REGNUM.
10871
140f9984
JT
108722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10873
abf22e64
AJ
10874 * alpha-tdep.c (frame_extra_info): New.
10875 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10876 frame->extra_info.
10877 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10878 (alpha_frame_saved_pc): Use frame->extra_info.
10879 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10880 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10881 (init_extra_frame_info): Rename to...
10882 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10883 (alpha_print_extra_frame_info): New function.
140f9984
JT
10884 (alpha_frame_locals_address): Ditto.
10885 (alpha_frame_args_address): Ditto.
abf22e64 10886 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10887 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10888 alpha_frame_args_address.
abf22e64 10889 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10890 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10891 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10892 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10893 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10894 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10895
d734c450
JT
108962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10897
10898 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10899 (alpha_cannot_fetch_register): Ditto.
10900 (alpha_cannot_store_register): Ditto.
10901 (alpha_register_convertible): Ditto.
10902 (alpha_use_struct_convention): Ditto.
10903 * config/alpha/tm-alpha.h: Update copyright years.
10904 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10905 (INNER_THAN): Use core_addr_lessthan.
10906 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10907 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10908 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10909 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10910 (FRAME_CHAIN): Remove unnecessary cast.
10911
b4ceaee6
AC
109122002-01-18 Andrew Cagney <ac131313@redhat.com>
10913
10914 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10915 obsolete.
10916
0a65a603
AC
109172002-01-18 Andrew Cagney <ac131313@redhat.com>
10918
10919 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10920 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10921 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10922 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10923 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10924 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10925 * x86-64-linux-nat.c: Ditto.
10926
636a6dfc
JT
109272002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10928
abf22e64 10929 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10930 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10931 (REGISTER_NAME): Define.
10932
acceddb6
JT
109332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10934
10935 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10936
ec32e4be
JT
109372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10938
10939 * alpha-tdep.c: Update copyright years.
10940 (alpha_next_pc): New function.
10941 (alpha_software_single_step): Ditto.
10942 * config/alpha/tm-alpha.h: Add prototype for
10943 alpha_software_single_step.
10944
e771a871
JT
109452002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10946
10947 * alphabsd-nat.c: Update copyright years.
10948 (fill_gregset): Use regcache_collect.
10949 (fill_fpregset): Likewise.
10950 (fetch_inferior_registers): Only fetch integer registers
10951 if requested to do so.
10952 (store_inferior_registers): Only store integer registers
10953 if requested to do so.
10954
7708fa01
AC
109552002-01-17 Andrew Cagney <ac131313@redhat.com>
10956
10957 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10958 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10959 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10960 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10961 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10962 * config/arm/linux.mh (XDEPFILES): Delete.
10963 * config/arm/nbsd.mh (XDEPFILES): Delete.
10964 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10965 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10966 * config/i386/i386m3.mh (XDEPFILES): Delete.
10967 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10968 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10969 * config/i386/fbsd.mh (XDEPFILES): Delete.
10970 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10971 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10972 * config/i386/i386v4.mh (XDEPFILES): Delete.
10973 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10974 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10975 * config/i386/i386aix.mh (XDEPFILES): Delete.
10976 * config/i386/go32.mh (XDEPFILES): Delete.
10977 * config/i386/cygwin.mh (XDEPFILES): Delete.
10978 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10979 * config/i386/i386mach.mh (XDEPFILES): Delete.
10980 * config/i386/i386v32.mh (XDEPFILES): Delete.
10981 * config/i386/linux.mh (XDEPFILES): Delete.
10982 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10983 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10984 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10985 * config/i386/i386sco.mh (XDEPFILES): Delete.
10986 * config/i386/i386v.mh (XDEPFILES): Delete.
10987 * config/i386/nbsd.mh (XDEPFILES): Delete.
10988 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10989 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10990 * config/i386/symmetry.mh (XDEPFILES): Delete.
10991 * config/i386/obsd.mh (XDEPFILES): Delete.
10992 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10993 * config/ia64/linux.mh (XDEPFILES): Delete.
10994 * config/ia64/aix.mh (XDEPFILES): Delete.
10995 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10996 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10997 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10998 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10999 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11000 * config/m68k/linux.mh (XDEPFILES): Delete.
11001 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11002 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11003 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11004 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11005 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11006 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11007 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11008 * config/m88k/delta88.mh (XDEPFILES): Delete.
11009 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11010 * config/m88k/m88k.mh (XDEPFILES): Delete.
11011 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11012 * config/mips/linux.mh (XDEPFILES): Delete.
11013 * config/mips/irix6.mh (XDEPFILES): Delete.
11014 * config/mips/irix5.mh (XDEPFILES): Delete.
11015 * config/mips/irix4.mh (XDEPFILES): Delete.
11016 * config/mips/irix3.mh (XDEPFILES): Delete.
11017 * config/mips/decstation.mh (XDEPFILES): Delete.
11018 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11019 (NATDEPFILES): Move core-aout.o to here.
11020 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11021 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11022 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11023 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11024 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11025 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11026 * config/pa/hpux11.mh (XDEPFILES): Delete.
11027 * config/powerpc/aix.mh (XDEPFILES): Delete.
11028 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11029 * config/powerpc/linux.mh (XDEPFILES): Delete.
11030 * config/romp/rtbsd.mh: Rename XDEPFILES.
11031 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11032 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11033 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11034 * config/s390/s390.mh (XDEPFILES): Delete.
11035 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11036 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11037 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11038 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11039 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11040 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11041 * config/sparc/linux.mh (XDEPFILES): Delete.
11042 * config/vax/vaxult.mh (XDEPFILES): Delete.
11043 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11044 * Makefile.in (DEPFILES): Remove XDEPFILES.
11045
375fc983
AC
110462002-01-17 Andrew Cagney <ac131313@redhat.com>
11047
11048 * utils.c (internal_verror): Fix comments, default is yes not no.
11049 Update queries to match. Default to quit and dump core.
11050
8926118c
AC
110512002-01-17 Andrew Cagney <ac131313@redhat.com>
11052
11053 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11054 copyright.
11055 * defs.h, event-top.c, gdbcmd.h: Ditto.
11056 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11057 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11058 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11059 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11060 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11061 * mi/mi-main.c:Ditto.
11062
11063 * stack.c, symfile.c: Update copyright.
11064
45b7b345
DJ
110652002-01-17 Daniel Jacobowitz <drow@mvista.com>
11066
db728ff7
DJ
11067 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11068 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11069 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11070 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11071
db728ff7
DJ
110722002-01-17 Daniel Jacobowitz <drow@mvista.com>
11073
11074 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11075 * gdbserver/low-lynx.c (myattach): Likewise.
11076 * gdbserver/low-nbsd.c (myattach): Likewise.
11077 * gdbserver/low-sim.c (myattach): Likewise.
11078 * gdbserver/low-sparc.c (myattach): Likewise.
11079 * gdbserver/low-sun3.c (myattach): Likewise.
11080
11081 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11082
db728ff7 11083 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11084 (main): Handle "--attach".
11085
8de3c354
AC
110862002-01-16 Andrew Cagney <ac131313@redhat.com>
11087
11088 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11089 maintainer.
11090
b0129042
DJ
110912002-01-15 Daniel Jacobowitz <drow@mvista.com>
11092
11093 * c-typeprint.c (is_type_conversion_operator): Add additional
11094 check for non-conversion operators.
11095
ba8679fb 110962002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11097
11098 * linux-proc.c: Add "info proc" command, a la procfs.c.
11099 (read_mapping): New function, abstract and re-use code.
11100 (linux_find_memory_regions): Use new func read_mapping.
11101 (linux_info_proc_cmd): New function, implement "info proc".
11102 (_initialize_linux_proc): Add new command "info proc".
11103
e4f9b4d5
MS
111042002-01-15 Michael Snyder <msnyder@redhat.com>
11105
11106 * symfile.c (generic_load): Use bfd_map_over_sections method
11107 instead of manipulating bfd structure members directly.
11108 (add_section_size_callback): New function, bfd sections callback
11109 used by generic_load.
11110 (load_sections_callback): New function, bfd sections callback
11111 used by generic_load.
11112
08cf96df
EZ
111132002-01-15 Elena Zannoni <ezannoni@redhat.com>
11114
abf22e64 11115 [Based on work by Jim Blandy]
08cf96df
EZ
11116 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11117 (builtin_type_vec128): Export.
11118 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11119 types.
11120 (builtin_type_vec128): New builtin type for 128 bit vector
11121 registers.
11122 (build_gdbtypes): Initialize builtin_type_v16qi and
11123 builtin_type_v8hi. Create the vec128 register builtin type
11124 structure.
11125 (build_builtin_type_vec128): New function.
abf22e64 11126 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11127 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11128 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11129 AltiVec register to new builtin type.
11130
d7242108
DJ
111312001-01-15 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11134 to make_cv_type.
11135
4ee3352d
AC
111362002-01-14 Andrew Cagney <ac131313@redhat.com>
11137
11138 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11139 CLEAN_UP_REGISTER_VALUE.
11140 * regcache.c (supply_register): Update only call.
11141
f015b2e7
AC
111422002-01-14 Andrew Cagney <ac131313@redhat.com>
11143
11144 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11145 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11146 a29k-*-vxworks* targets as obsolete.
11147
356ae49d
MS
111482002-01-14 Michael Snyder <msnyder@redhat.com>
11149
11150 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11151 until we can resolve portability issues.
11152 * gregset.h: Remove references to fpxregs.
11153 * gcore.c (gcore_command): Initialize note_sec to NULL.
11154
ade8f45e
AC
111552002-01-13 Andrew Cagney <ac131313@redhat.com>
11156
11157 * signals.c (target_signal_to_name): Rewrite. Only use
11158 signals[].name when in bounds and non-NULL.
abf22e64 11159
89c49e7a
AC
111602002-01-13 Andrew Cagney <ac131313@redhat.com>
11161
11162 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11163 * signals.c (target_signal_to_name): Verify that SIG is within the
11164 bounds of the signals array.
11165
4daa9f9f
AC
111662002-01-13 Andrew Cagney <ac131313@redhat.com>
11167
11168 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11169
ba4bbdcb
KS
111702002-01-13 Keith Seitz <keiths@redhat.com>
11171
11172 * stack.c (print_frame_info_base): Print the frame's pc
11173 only if when print_frame_info_listing_hook is not defined.
11174
575bbeb6
KS
111752002-01-13 Keith Seitz <keiths@redhat.com>
11176
11177 * varobj.c (varobj_set_value): Make sure that there were no
11178 errors evaluating the object before attempting to set its
11179 value.
11180 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11181 so this offset adjustment is no longer necessary.
11182 (create_child): Don't set the error flag if the child is
11183 a CPLUS_FAKE_CHILD.
11184 (value_of_child): If value_fetch_lazy fails, return NULL
11185 so that callers will be notified that an error occurred.
11186 (c_value_of_variable): Delay check of variable's validity
11187 until later. We actually want all structs and unions to have
11188 the value "{...}".
11189 Do not return "???" for variables which could not be evaluated.
11190 This error condition must be returned to the caller so that it
11191 can get the error condition from gdb.
11192 (cplus_name_of_child): Adjust index for vptr before figuring
11193 out the name of the child.
11194 (cplus_value_of_child): If a child's (real) parent is not valid,
11195 don't even bother trying to give a value for it. Just return
11196 an error. Change all instances in this function.
11197 (cplus_type_of_child): If our parent is one of the "fake"
11198 parents, we need to get at the type of the real parent, and
11199 derive the child's true type using this information.
11200
b76898ab
AC
112012002-01-13 Andrew Cagney <ac131313@redhat.com>
11202
11203 From 2002-01-09 John Marshall <johnm@falch.net>:
11204 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11205 sources.redhat.com, and tweak some related URLs which had
11206 suffered from linkrot.
11207
b6649e88
AC
112082002-01-13 Andrew Cagney <ac131313@redhat.com>
11209
11210 From Jeff law:
11211 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11212 structures passed in registers.
11213
82cc5033
EZ
112142002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11215
11216 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11217 white space which prevented compilation. Reported by DSK
11218 <dsk@student.unsw.edu.au>.
11219
ba5f2f8a
MS
112202002-01-11 Michael Snyder <msnyder@redhat.com>
11221
fbd35540
MS
11222 * symfile.c (build_section_addr_info_from_section_tab):
11223 Use bfd access method instead of manipulating bfd directly.
11224 (syms_from_objfile): Ditto.
11225 (simple_overlay_update_1): Ditto.
11226 (simple_overlay_update): Ditto.
11227 (generic_load): Ditto.
11228 (overlay_unmapped_address): FIXME comment, bfd access methods.
11229 (sections_overlap): FIXME comment, bfd access methods.
11230 (pc_in_mapped_range): FIXME comment, bfd access methods.
11231 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11232 (section_is_mapped): FIXME comment, bfd access methods.
11233 (section_is_overlay): FIXME comment, bfd access methods.
11234
ba5f2f8a
MS
11235 * symfile.c (generic_load): Whitespace and long line cleanups.
11236 Remove duplicate variable, change several local variables to
11237 more appropriate data types.
11238 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11239
17df2af6
AC
112402002-01-12 Andrew Cagney <ac131313@redhat.com>
11241
11242 From Peter Schauer:
11243 * language.c (longest_local_hex_string_custom): Use phex_nz to
11244 convert NUM to a hex string.
11245
ec920329
EZ
112462002-01-12 Elena Zannoni <ezannoni@redhat.com>
11247
11248 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11249 the function.
538a76d6 11250 Update Copyright year.
ec920329 11251
3abd2e01
AC
112522002-01-12 Andrew Cagney <ac131313@redhat.com>
11253
11254 * language.c (longest_raw_hex_string): Delete unused function.
11255
b21b22e0
PS
112562002-01-11 Petr Sorfa <petrs@caldera.com>
11257
11258 * MAINTAINERS (write-after-approval): Add myself.
11259 * dwarf2read.c (read_tag_string_type): Handling of
11260 DW_AT_byte_size.
11261 (read_tag_string_type): FORTRAN fix to prevent propagation of
11262 first string size.
11263 (set_cu_language): Handling of DW_LANG_Fortran95
11264
747fe712
RE
112652002-01-11 Richard Earnshaw <rearnsha@arm.com>
11266
11267 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11268 GETPID(inferior_ptid).
11269 (store_inferior_registers): Likewise.
11270
f1bea926
JM
112712002-01-10 Jason Merrill <jason@redhat.com>
11272
11273 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11274 Fix DW_OP_minus.
11275
ae940673
AC
112762002-01-10 Andrew Cagney <ac131313@redhat.com>
11277
11278 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11279 and bfd/elf32-sh-nbsd.c.
11280
00546b04
MS
112812002-01-10 Michael Snyder <msnyder@redhat.com>
11282
352ed7b4
MS
11283 * NEWS: Mention --pid and corefile/proc-id behavior change.
11284
c18be923
MS
11285 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11286 * gcore.c: Include cli/cli-decode.h instead of command.h.
11287
00546b04
MS
11288 * main.c (captured_main): Add new command line option "--pid".
11289 If the second command line argument (following the symbol-file)
11290 begins with a digit, try to attach to it before trying to open
11291 it as a corefile.
11292 (print_gdb_help): Document the "--pid" argument.
11293
db60ec62
EZ
112942002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11295
11296 * completer.c (command_completer): New function.
11297
11298 * completer.h <command_completer>: Add prototype.
11299
11300 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11301 completer for the "help" command.
11302
39c22d1a
JM
113032002-01-09 Jason Merrill <jason@redhat.com>
11304
11305 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11306
c564377f
MS
113072002-01-09 Michael Snyder <msnyder@redhat.com>
11308
975aec09
MS
11309 * i386-linux-nat.c (fill_fpxregset): Make global.
11310 (store_fpxregset): Ditto.
11311
db4a10fa
MS
11312 * gregset.h (gdb_fpxregset_t): Define.
11313 (supply_fpxregset): Prototype.
11314 (fill_fpxregset): Prototype.
11315
c564377f
MS
11316 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11317
c3d45d70
RE
113182002-01-09 Richard Earnshaw <rearnsha@arm.com>
11319
11320 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11321 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11322 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11323
fcc87af1
AC
113242002-01-09 Andrew Cagney <ac131313@redhat.com>
11325
11326 * MAINTAINERS: Update target maintainer rules so that any
11327 Maintainer can approve a tested patch for a maintenance-only
11328 target.
11329
dd96c05b
RE
113302002-01-09 Richard Earnshaw <rearnsha@arm.com>
11331
d4297db9 11332 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11333
d4297db9 11334 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11335 IN_SIGTRAMP.
11336
145fdc6e
MS
113372002-01-08 Michael Snyder <msnyder@redhat.com>
11338
11339 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11340 real name of the executable, rather than the /proc name.
11341
be4d1333
MS
113422002-01-03 Michael Snyder <msnyder@redhat.com>
11343
11344 Implement a "generate-core-file" command in gdb, save target state.
11345 * gcore.c: New file. Implement new command 'generate-core-file'.
11346 Save a corefile image of the current state of the inferior.
11347 * linux-proc.c: Add linux-specific code for saving corefiles.
11348 * target.h (struct target_ops): Add new target vectors for saving
11349 corefiles; to_find_memory_regions and to_make_corefile_notes.
11350 (target_find_memory_regions): New macro.
11351 (target_make_corefile_notes): New macro.
11352 * target.c (update_current_target): Inherit new target methods.
11353 (dummy_find_memory_regions): New place-holder method.
11354 (dummy_make_corefile_notes): New place-holder method.
11355 (init_dummy_target): Initialize new dummy target vectors.
11356 * exec.c (exec_set_find_memory_regions): New function.
11357 Allow the exec_ops vector for memory regions to be taken over.
11358 (exec_make_note_section): New function, target vector method.
11359 * defs.h (exec_set_find_memory_regions): Export prototype.
11360 * procfs.c (proc_find_memory_regions): New function, corefile method.
11361 (procfs_make_note_section): New function, corefile method.
11362 (init_procfs_ops): Set new target vector pointers.
11363 (find_memory_regions_callback): New function.
11364 (procfs_do_thread_registers): New function.
11365 (procfs_corefile_thread_callback): New function.
11366 * sol-thread.c (sol_find_memory_regions): New function.
11367 (sol_make_note_section): New function.
11368 (init_sol_thread_ops): Initialize new target vectors.
11369 * inftarg.c (inftarg_set_find_memory_regions): New function.
11370 Allow to_find_memory_regions vector to be taken over.
11371 (inftarg_set_make_corefile_notes): New function.
11372 Allow to_make_corefile_notes vector to be taken over.
11373 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11374 interface layer if not target_has_execution (may be a corefile).
11375 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11376 * config/sparc/sun4sol2.mh: Ditto.
11377 * config/alpha/alpha-linux.mh: Ditto.
11378 * config/arm/linux.mh: Ditto.
11379 * config/i386/x86-64linux.mh: Ditto.
11380 * config/ia64/linux.mh: Ditto.
11381 * config/m68k/linux.mh: Ditto.
11382 * config/mips/linux.mh: Ditto.
11383 * config/powerpc/linux.mh: Ditto.
11384 * config/sparc/linux.mh: Ditto.
11385
c6b92abd
MS
113862002-01-07 Michael Snyder <msnyder@redhat.com>
11387
11388 * arm-linux-nat.c: Remove references to regcache.c internal data
11389 (registers[] and register_valid[]).
11390
4b09dc8c
MS
113912002-01-07 Michael Snyder <msnyder@redhat.com>
11392
abf22e64
AJ
11393 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11394 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11395 symbol file and shlibs.
11396 * Makefile.in: Add rule for linux-proc.o.
11397 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11398 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11399 * config/arm/linux.mh: Ditto.
11400 * config/i386/linux.mh: Ditto.
11401 * config/i386/x86-64linux.mh: Ditto.
11402 * config/ia64/linux.mh: Ditto.
11403 * config/m68k/linux.mh: Ditto.
11404 * config/mips/linux.mh: Ditto.
11405 * config/powerpc/linux.mh: Ditto.
11406 * config/sparc/linux.mh: Ditto.
11407
c25b74ac
PM
114082002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11409
11410 * win32-nat.c: Add i386-tdep.h dependency.
11411
94cd915f
MS
114122002-01-07 Michael Snyder <msnyder@redhat.com>
11413
c7cccb76
MS
11414 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11415 instead of bfd_get_arch_size. Don't bail out just because
11416 there's no exec_bfd.
abf22e64 11417
34c0bd93
MS
11418 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11419 * p-valprint.c (pascal_object_print_value): Ditto.
11420 * somread.c (som_symtab_read): Ditto.
11421 * symfile.c (simple_free_overlay_region_table): Ditto.
11422 * valops.c (value_assign): Ditto.
11423
21c1c920
MS
11424 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11425 use tilde_expand and strerror for opening save-tracepoints file.
11426
5bbd998e
MS
11427 * thread-db.c (thread_db_new_objfile): Indendation fix.
11428
94cd915f
MS
11429 * infptrace.c (GDB_MAX_ALLOCA): New define.
11430 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11431 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11432 can be overridden with whatever value is appropriate to the host).
11433 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11434 alloca to allocate potentially large buffer.
11435 * rs6000-nat.c (child_xfer_memory): Ditto.
11436 * symm-nat.c (child_xfer_memory): Ditto.
11437 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11438
494e8a93
JSC
114392002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11440
11441 From Nick Clifton <nickc@redhat.com>
11442 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11443
d0e1d48e
MS
114442002-01-07 Michael Snyder <msnyder@redhat.com>
11445
abf22e64 11446 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11447 Don't use exec_bfd if it's NULL.
11448
290b2c7a
MK
114492002-01-06 Mark Kettenis <kettenis@gnu.org>
11450
abf22e64 11451 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11452
aef21287
AC
114532002-01-06 Andrew Cagney <ac131313@redhat.com>
11454
11455 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11456 * gnu-nat.c: Ditto.
11457
30efa627
AC
114582002-01-06 Andrew Cagney <ac131313@redhat.com>
11459
11460 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11461 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11462 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11463 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11464 z8k-coff have not been multi-arched. Update z8k-coff build
11465 status.
11466
9b4ff276
AC
114672002-01-06 Andrew Cagney <ac131313@redhat.com>
11468
11469 * MAINTAINERS: Mark a29k target as obsolete.
11470 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11471 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11472 comments.
11473 * NEWS: Note that a29k targets are obsolete.
11474 * a29k-tdep.c: Mark as obsolete.
11475 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11476 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11477 a29k-*-vxworks* targets as obsolete.
11478 * remote-adapt.c: Obsolete.
11479 * remote-eb.c: Obsolete.
11480 * remote-mm.c: Obsolete.
11481 * remote-udi.c: Obsolete.
11482 * config/a29k/a29k-udi.mt: Obsolete.
11483 * config/a29k/a29k.mt: Obsolete.
11484 * config/a29k/tm-a29k.h: Obsolete.
11485 * config/a29k/tm-vx29k.h: Obsolete.
11486 * config/a29k/vx29k.mt: Obsolete.
11487
a9011d31
AC
114882002-01-05 Andrew Cagney <ac131313@redhat.com>
11489
11490 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11491 with BFD_ENDIAN_BIG.
11492
9299404e
AC
114932002-01-05 Andrew Cagney <ac131313@redhat.com>
11494
11495 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11496 * configure, config.in: Re-generate.
11497 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11498 * defs.h: Do not include <endian.h>.
11499
7e89e357
JT
115002002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11501
11502 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11503 * config.in: Regenerate.
11504 * configure.in: Update copyright years.
11505 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11506 * configure: Regenerate.
11507 * i386bsd-nat.c: Update copyright years.
11508 (fill_gregset): Use regcache_collect.
11509 (fetch_inferior_registers): Only fetch integer registers
11510 if requested to do so. Add support for XMM registers
11511 using PT_GETXMMREGS.
11512 (store_inferior_registers): Only store integer registers
11513 if requested to do so. Add support for XMM registers
11514 using PT_SETXMMREGS.
11515 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11516 (store_inferior_registers): Remove.
11517 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11518 (fetch_elfcore_registers): New function.
11519 (i386nbsd_elfcore_fns): New.
11520 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11521 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11522 i386bsd-nat.o.
11523 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11524 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11525 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11526 * config/i386/tm-nbsd.h: Update copyright years.
11527 (HAVE_SSE_REGS): Define.
11528 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11529 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11530 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11531 (SIGCONTEXT_PC_OFFSET): Remove.
11532 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11533
a752853e
AC
115342002-01-05 Andrew Cagney <ac131313@redhat.com>
11535
11536 * configure.tgt: Remove powerpc-*-macos* target.
11537 * config/m68k/xm-mpw.h: Delete file.
11538 * config/xm-mpw.h: Delete file.
11539 * ser-mac.c: Delete file.
11540 * mpw-make.sed: Delete file.
11541 * mpw-config.in: Delete file.
11542 * mac-xdep.c: Delete file.
11543 * mac-gdb.r: Delete file.
11544 * mac-defs.h: Delete file.
11545 * mac-nat.c: Delete file.
11546 * config/powerpc/macos.mh: Delete file.
11547 * config/powerpc/macos.mt: Delete file.
11548 * config/powerpc/nm-macos.h: Delete file.
11549 * config/powerpc/tm-macos.h: Delete file.
11550 * source.c (openp, open_source_file): Remove obsolete code.
11551 * top.c (gdb_readline): Ditto.
11552 * utils.c (query): Ditto.
11553 * event-top.c (display_gdb_prompt): Ditto.
11554 * Makefile.in (ser-mac.o): Delete obsolete target.
11555 * NEWS: Update.
11556
d7449b42
AC
115572002-01-04 Andrew Cagney <ac131313@redhat.com>
11558
11559 * defs.h (BIG_ENDIAN): Delete macro definition.
11560 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11561 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11562 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11563 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11564 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11565 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11566 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11567 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11568 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11569 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11570 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11571 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11572 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11573 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11574 * gdbarch.c: Re-generate.
11575
356374e8
DJ
115762002-01-04 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11579 for core files.
11580
a2b8f8f8
JT
115812002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11582
11583 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11584
12466af9
AC
115852002-01-04 Andrew Cagney <ac131313@redhat.com>
11586
11587 * value.h (value_ptr): Delete typedef.
11588
3549ab40
JT
115892002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11590
11591 * i386nbsd-nat.c: Update copyright years.
11592 Include i386-tdep.h.
11593
fedbd091
EZ
115942002-01-04 Elena Zannoni <ezannoni@redhat.com>
11595
11596 * stabsread.c: Update copyright years.
11597
11598 From Debashis Mahata <debashis.mahata@wipro.com>:
11599 (read_struct_fields): Deal with Sun C compiler erroneous stab
11600 output for structs and unions.
fec8b34f 11601 Fix PR gdb/269.
fedbd091 11602
eb43544b
DJ
116032002-01-04 Daniel Jacobowitz <drow@mvista.com>
11604
11605 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11606 prototype.
11607
1514d34e
DJ
116082002-01-04 Daniel Jacobowitz <drow@mvista.com>
11609
11610 * cp-abi.c: Fix whitespace.
11611 (baseclass_offset): New wrapper function.
11612 * cp-abi.h (baseclass_offset): Add prototype.
11613 (struct cp_abi_ops): Add baseclass_offset pointer.
11614
11615 * valops.c (vb_match): Move to...
11616 * gnu-v2-abi.c (vb_match): here.
11617 * valops.c (baseclass_offset): Move to...
11618 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11619
11620 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11621
11622 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11623 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11624 * hpacc-abi.c (init_hpacc_ops): Likewise.
11625
7f8c9282
DJ
116262002-01-04 Daniel Jacobowitz <drow@mvista.com>
11627
11628 * valops.c (find_overload_match): Accept obj as a
11629 reference parameter. Update it before returning.
11630 * value.h (find_overload_match): Update prototype.
11631 * eval.c (evaluate_subexp_standard): Pass object to
11632 find_overload_match by reference.
11633
f23631e4
AC
116342002-01-03 Andrew Cagney <ac131313@redhat.com>
11635
11636 * valarith.c: Replace value_ptr with struct value pointer. Remove
11637 register attribute from value declarations.
11638 * valops.c: Ditto.
11639 * value.h: Ditto.
11640 * scm-lang.c (scm_lookup_name): Ditto.
11641
79e10fab 116422002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11643
79e10fab
AC
11644 Abstract the functionality of iterating over mapped memory
11645 regions into a general purpose iterator function.
abf22e64 11646 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11647 iterator for memory sections.
11648 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11649 (solib_mappings_callback): New function, callback for above.
11650 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11651 (info_mappings_callback): New function, callback for above.
11652
11653 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11654
c5ad026a
MK
116552002-01-01 Mark Kettenis <kettenis@gnu.org>
11656
d2a7c97a
MK
11657 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11658 * i386-tdep.c: Include "elf-bfd.h".
11659 (process_note_abi_tag_sections): New function.
11660 (i386_gdbarch_init): Add code to recognize various OS/ABI
11661 combinations.
11662
c5ad026a
MK
11663 * maint.c (_initialize_maint_cmds): Add missing \ in
11664 string-literal.
11665
a1a5b71e 11666For older changes see ChangeLog-2001
c906108c
SS
11667\f
11668Local Variables:
11669mode: change-log
11670left-margin: 8
11671fill-column: 74
11672version-control: never
11673End:
This page took 0.868457 seconds and 4 git commands to generate.