2002-10-02 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cee6ddeb
EZ
12002-10-02 Elena Zannoni <ezannoni@redhat.com>
2
3 * event-top.c (gdb_setup_readline): New function. Code moved from
4 _initialize_event_loop().
5 (_initialize_event_loop): Call gdb_setup_readline().
6
c4ed33b9
AC
72002-10-02 Andrew Cagney <ac131313@redhat.com>
8
9 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
10 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
11 * gdbarch.h, gdbarch.c: Re-generate.
12
cef4f5dd
DJ
132002-10-02 Daniel Jacobowitz <drow@mvista.com>
14
15 Fix PR gdb/778
16 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
17 before recursing.
18 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
19 of fill_in_vptr_fieldno.
20
36dc181b 212002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 22
36dc181b
EZ
23 * inferior.h (registers_info, stepi_command, nexti_command,
24 continue_command, interrupt_target_command): Export from infcmd.c.
25 * frame.h (args_info, selected_frame_level_changed_hook,
26 return_command): Export from stack.c.
27 * v850ice.c (stepi_command, nexti_command, continue_command): use
28 prototypes from inferior.h.
29 * tracepoint.c (registers_info, args_info, locals_info): Use
30 prototypes from frame.h and inferior.h.
31 * Makefile.in (mi-main.o): Add dependency on frame.h.
32
6f99cb26
AC
332002-10-02 Andrew Cagney <ac131313@redhat.com>
34
da3eff49
AC
35 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
36 value in register 3 adjusted by ppc_gp0_regnum.
37
6f99cb26
AC
38 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
39
da615bee
MM
402002-10-02 Marko Mlinar <markom@opencores.org>
41
42 * MAINTAINERS: Add myself to the Write After Approval list.
43
d154bee2
AO
442002-10-01 Alexandre Oliva <aoliva@redhat.com>
45
62a49b2c
AO
46 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
47 of the section for the N64 ABI, fixed.
48
d154bee2
AO
49 * config/mips/tm-irix6.h: Include solib.h.
50
ed348acc
EZ
512002-10-01 Elena Zannoni <ezannoni@redhat.com>
52
53 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
54 GNU operators.
55
da0f9dcd
AC
562002-10-01 Andrew Cagney <ac131313@redhat.com>
57
58 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
59 and that "mi0" syntax has been removed.
60
bdf64bac
DC
612002-09-30 David Carlton <carlton@math.stanford.edu>
62
63 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
64 * ppc-sysv-tdep.c: #include "gdb_string.h".
65 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
66 pacify GCC.
67
54c2a1e6
AC
682002-10-01 Andrew Cagney <ac131313@redhat.com>
69
70 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
71 "vrsave"'s register number.
72
cedea778
AC
732002-09-30 Andrew Cagney <ac131313@redhat.com>
74
75 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
76 use frame_unwind_signed_register to obtain the PC.
77 (mips_frame_chain): Handle a generic dummy frame.
78 (mips_init_extra_frame_info): When a generic dummy frame, don't
79 re-compute the frame base.
80 (mips_pop_frame): Handle generic dummy frames.
81 (mips_gdbarch_init): When generic dummy frames, set
82 use_generic_dummy_frames, push_dummy_frame to
83 generic_push_dummy_frame, pc_in_call_dummy to
84 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
85 generic_save_dummy_frame_tos.
86
68315eb8
AC
872002-09-30 Andrew Cagney <ac131313@redhat.com>
88
89 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
90 against TOP when TOP was explictly set.
91 (generic_push_dummy_frame): Set TOP to zero.
92
3b8630c3
EZ
932002-09-30 Elena Zannoni <ezannoni@redhat.com>
94
95 * event-loop.c (start_event_loop): Rename variable 'result' to
96 'gdb_result', to avoid conflicts with upcoming intepreters changes.
97
28ee05e9
KS
982002-09-30 Keith Seitz <keiths@redhat.com>
99
100 * gdb-events.sh (selected_thread_changed): New event.
101 * gdb-events.c: Regenerated.
102 * gdb-events.h: Regenerated.
103
6eecb1c8
HPN
1042002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
105
106 * MAINTAINERS: Add self to Write After Approval list.
107
92df71f0
FN
1082002-09-30 Fernando Nasser <fnasser@redhat.com>
109
3b8630c3
EZ
110 * disasm.c: New file.
111 * disasm.h: New file.
92df71f0
FN
112 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
113 (compare_lines): Ditto.
114 (dump_insns): Ditto.
3b8630c3
EZ
115 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
116 argument.
92df71f0 117 (do_assembly_only): Ditto.
3b8630c3
EZ
118 (do_disassembly): Renamed to gdb_disassembly and moved to
119 disasm.c. Sdded uiout argument.
120 * Makefile.in: Add new files. Reorder SFILES list. Update
121 dependencies. Include libgdb.a later in the insight executable.
92df71f0 122
0c22854d
AC
1232002-09-29 Andrew Cagney <ac131313@redhat.com>
124
125 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
126 bfd/elf64-alpha-fbsd.c.
127
e67f2023
AC
1282002-09-29 Andrew Cagney <ac131313@redhat.com>
129
130 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
131 i386gnu-tdep.c.
132
89396210
AC
1332002-09-29 Andrew Cagney <ac131313@redhat.com>
134
135 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
136 __FUNCTION__.
137 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
138 function name.
139 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
140 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
141 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
142 (S_msg_sig_post_reply): Ditto.
143
7079c36c
CV
1442002-09-28 Corinna Vinschen <vinschen@redhat.com>
145
89396210
AC
146 * sh-tdep.c (sh_use_struct_convention): Use definition according
147 to ABI.
7079c36c
CV
148 (sh_push_arguments): Store in register with correct endianess.
149 (sh_default_store_return_value): Ditto.
150 (sh_gdbarch_init): Set sizeof long double to 8.
151
975ac915
MK
1522002-09-27 Mark Kettenis <kettenis@gnu.org>
153
154 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
155 Fix some whitespace problems.
156
9bbe19fb
DC
1572002-09-27 David Carlton <carlton@math.stanford.edu>
158
159 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
160 (mcore-tdep.o): Ditto.
161 (ns32k-tdep.o): Ditto.
162 (ns32knbsd-tdep.o): Ditto.
163 (sh3-rom.o): Ditto.
164 (vax-tdep.o): Ditto.
165 * cris-tdep.c: #include "gdb_string.h"
166 * mcore-tdep.c: Ditto.
167 * ns32k-tdep.c: Ditto.
168 * ns32knbsd-tdep.c: Ditto.
169 * sh3-rom.c: Ditto.
170 * vax-tdep.c: Ditto.
171
43b2fdc7
DC
1722002-09-27 David Carlton <carlton@math.stanford.edu>
173
174 * config/djgpp/fnchange.lst: Add entries for
175 gdb/testsuite/gdb.c++/m-static files.
176
e8cfbbd9
JW
1772002-09-27 Jim Wilson <wilson@redhat.com>
178
179 * MAINTAINERS: Add myself to the Write After Approval list.
180
43b2fdc7 1812002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
182
183 * mips-tdep.c (find_proc_desc): Initialize startaddr.
184
185
9f3b7f07
AC
1862002-09-26 Andrew Cagney <ac131313@redhat.com>
187
188 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
189 frame.
190
11269d7e
AC
1912002-09-26 Andrew Cagney <ac131313@redhat.com>
192
193 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
194 (rs6000_struct_return_address): Delete variable.
195 (rs6000_store_struct_return): Update.
196 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
197 deprecated_extract_struct_value_address.
198 (rs6000_frame_align): New function.
199 (rs6000_gdbarch_init): Set frame_align.
200
f15ab4a7
AC
2012002-09-26 Andrew Cagney <ac131313@redhat.com>
202
203 From Grace Sainsbury <graces@redhat.com>:
204 * Makefile.in (gdbtk-main.o): New target.
205 (gdb.o): New target.
206 (main_h): Define.
207 (main.o): Update dependencies.
208 (gdb$(EXEEXT)): Add gdb.o.
209 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
210 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
211 (SUBDIR_GDBTK_CLEAN): Set.
212 (install-gdbtk): Install the insight binary.
213 (uninstall-gdbtk): New target.
214 (all-gdbtk, clean-gdbtk): New rule.
215 * top.c (use_windows): Default to zero.
216 * main.c: Include "main.h".
217 (main): Delete.
218 (struct captured_main_args): Delete.
219 (gdb_main): New function.
220 * main.h: New file.
221 * gdb.c: New File.
222
e36180d7
AC
2232002-09-25 Andrew Cagney <cagney@redhat.com>
224
225 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
226 (frame_map_regnum_to_name): New function.
227 (frame_map_name_to_regnum): New function.
228 * frame.h (frame_map_name_to_regnum): Declare.
229 (frame_map_regnum_to_name): Declare.
230 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
231 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
232 * parse.c: Do not include "builtin-regs.h".
233 (target_map_name_to_register): Delete function.
234 (write_dollar_variable): Use frame_map_name_to_regnum.
235 * parser-defs.h (target_map_name_to_register): Delete declaration.
236 * expprint.c: Include "frame.h".
237 (print_subexp): Use frame_map_regnum_to_name.
238 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
239 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
240
8b69000d
AC
2412002-09-25 Andrew Cagney <ac131313@redhat.com>
242
243 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
244 wasn't saved, and the next innermost frame is a dummy, return the
245 dummy frame's link register.
246
046ca86a
JB
2472002-09-24 Jim Blandy <jimb@redhat.com>
248
249 Fix from Paul Breed:
250 * main.c (captured_main): Add a `break' after the case for 'b'.
251
94b66fa7
KS
2522002-09-24 Keith Seitz <keiths@redhat.com>
253
254 * varobj.c (c_type_of_child): Use get_target_type instead
255 of TYPE_TARGET_TYPE.
256
c214a6fd
FN
2572002-09-22 Fernando Nasser <fnasser@redhat.com>
258
53cb0458
FN
259 * source.c (get_current_or_default_source_symtab_and_line): Remove
260 function.
261 (set_default_source_symtab_and_line): New function. Attempts to
262 determine a source file to list lines from if one is not currently
263 defined.
264 (get_current_source_symtab_and_line): Initialize sal.pc and
265 sal.end fields.
266 (set_current_source_symtab_and_line): Mark argument as const.
267 * source.h: Update declarations and comments.
268 * linespec.c (decode_line_1): Replace call to removed routine above.
269 * stack.c (print_frame_info_base): Ditto.
270 * cli/cli-cmds.c (edit_command): Ditto.
271 (list_command): Ditto.
272
2732002-09-22 Fernando Nasser <fnasser@redhat.com>
274
275 * source.c (get_current__or_default_source_symtab_and_line): Initialize
276 sal.pc and sal.end fields.
c214a6fd
FN
277 (get_current_or_default_source_symtab_and_line): Ditto.
278 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
279 so we do not cause a new source symtab to be searched for (reverting an
280 unintentional change from the 2002-09-20 patch).
281 * scm-lang.c (scm_unpac): Ditto.
282
cc3b68a5
AC
2832002-09-21 Andrew Cagney <cagney@redhat.com>
284
285 * complaints.c (symfile_explanations): Remove new-line from
286 ``isolated_message''.
287 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
288 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
289
5835abe7
NC
2902002-09-20 Nick Clifton <nickc@redhat.com>
291
292 * NEWS: Announce that V850EA ISA is no longer supported.
293 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
294
a15ef5f5
DC
2952002-09-20 David Carlton <carlton@math.stanford.edu>
296
06ba1b39
DC
297 * Makefile.in (c-lang.o): Correct dependencies.
298 (utils.o): Gather dependencies.
299 (charset.o): Move.
a15ef5f5
DC
300 * c-lang.c: #include "gdb_string.h"
301
87885426
FN
3022002-09-20 Fernando Nasser <fnasser@redhat.com>
303
304 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
305 * cli/cli-cmds.c (list_command): New function. Implements the new
306 cli edit command.
307 (_init_cli_cmds): Add new command definition.
308 * gdb.1: Document edit command.
309 * doc/gdb.texinfo: Document edit command.
310
3112002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
312
313 * source.c: Make global variables current_source_symtab and
314 current_source_line static.
315 (list_command): Moved to cli/cli-cmds.c.
316 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
317 (get_first_line_listed): New accessor function.
318 (get_lines_to_list): New accessor function.
319 (get_current_source_symtab_and_line): New function. Retrieves the
320 position in the source code that we consider current.
321 (get_current_or_default_source_symtab_and_line): New function.
322 Like the above but attempts to determine a default position if one
323 is not currently defined.
324 (set_current_source_symtab_and_line): New function. Sets the source
325 code position considered current and returns the previously set one.
326 (clear_current_source_symtab_and_line): Reset stored information about
327 a current source line.
328 (_initialize_source): Remove registration for the "list" command and
329 its alias.
330 * source.h: Add declarations for the new functions above.
331 * symtab.h: Remove declarations for the global variables mentioned
332 above.
333 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
334 obtain current source line.
335 * linespec.c (decode_line_1): Ditto.
336 * macroscope.c (default_macro_scope): Ditto.
337 * scm-lang.c (scm_unpac): Ditto.
338 * stack.c (print_frame_info_base): Ditto.
339 * symfile.c (clear_symtab_users): Ditto.
340 * symtab.c (decode_line_spec): Ditto.
341 * cli/cli-cmds.c (list_command): Moved here from source.c.
342 (ambiguous_line_spec): Moved here from source.c.
343 (_init_cli_cmds): Add definition for "list" and its alias.
344 * Makefile.in: Update dependencies.
345
ddd216ea
CV
3462002-09-20 Corinna Vinschen <vinschen@redhat.com>
347
348 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
349 with what gcc thinks is correct.
350
6d305052
CV
3512002-09-20 Corinna Vinschen <vinschen@redhat.com>
352
353 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
354 multiple register push instruction.
355
234b45d4
KB
3562002-09-19 Jim Blandy <jimb@redhat.com>
357
358 Add support for distinct host and target character sets.
359 * charset.c, charset.h: New files.
360 * c-exp.y: #include "charset.h".
361 (yylex): Convert character and string literals to the target
362 character set, before returning them as the semantic value of the
363 token.
364 * c-lang.c: #include "charset.h".
365 (c_emit_char): Use charset-specific methods to recognize
366 characters with backslash escape forms, to decide which characters
367 to print literally and which to print using numeric escape
368 sequences, and to convert target characters to host characters
369 before printing.
370 * utils.c: #include "charset.h".
371 (no_control_char_error): New function.
372 (parse_escape): Use charset-specific methods to recognize
373 backslash escapes, parse `control character' notation, and convert
374 characters from the host character set to the target character set.
375 * configure.in: Set the default host character set.
376 Check where to find iconv, and what its argument types might be.
377 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
378 * Makefile.in (SFILES): List charset.c.
379 (COMMON_OBS): List charset.o.
380 (charset.o): New rule.
381 (charset_h): New header dependency variable.
382 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
383 (LIBICONV): New variable, set by configure.
384 (CLIBS): Include $(LIBICONV) here.
385 * aclocal.m4, config.in, configure: Regenerated.
386
525d6a61
JB
3872002-09-19 Joel Brobecker <brobecker@gnat.com>
388
389 * ada-exp.y: Add missing semicolons to end rules. Fixes a
390 bison 1.35 warning.
391
3ed93867
RE
3922002-09-19 Richard Earnshaw <rearnsha@arm.com>
393
394 * gdb_mbuild.sh: New file.
395
437666f8
AC
3962002-09-19 Andrew Cagney <ac131313@redhat.com>
397
398 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
399
389e51db
AC
4002002-09-18 Andrew Cagney <ac131313@redhat.com>
401
402 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
403 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
404 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
405 valops.c, value.h: Revert previous change.
406
3b4efeaa
MS
4072002-09-18 Michael Snyder <msnyder@redhat.com>
408
409 Preliminary support for Objective-C:
410 * defs.h (language_objc): New enum value.
411 (puts_filtered_tabular): Declaration only, exported from utils.c.
412 (skip_quoted): Delete, declared in completer.h.
413 * c-exp.y: Include completer.h.
414 * p-exp.y: Ditto.
415 * jv-exp.y: Ditto.
416 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
417 New operator enum values.
418 * language.h (CAST_IS_CONVERSION): Test for language_objc.
419 * language.c (binop_result_type): Handle language_objc case.
420 (integral_type, character_type, string_type, boolean_type,
421 structured_type, binop_type_check): Ditto.
422 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
423 (struct objc_specific): Add to general_symbol_info.
424 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
425 (SYMBOL_DEMANGLED_NAME): Handle objc case.
426 * parser-defs.h (struct objc_class_str): New struct type.
427 (start_msglist, end_msglist, add_msglist): Declaration only,
428 exported from objc-lang.c.
429 * value.h (value_of_local, value_nsstring,
430 call_function_by_hand_expecting_type): Exported from valops.c.
431 * valops.c (find_function_addr): Export.
432 (call_function_by_hand_expecting_type): New function.
433 (value_of_local): New function.
434 * symfile.c (init_filename_language_table): Add ".m" extension
435 for Objective-C.
436 * utils.c (puts_filtered_tabular): New function.
437 (fprintf_symbol_filtered): Add objc demangling support (disabled).
438 (set/show demangle): Extend help-string to refer to ObjC.
439 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
440 * stabsread.c (symbol_reference_defined): Objective-C symbols
441 may contain colons: make allowances when scanning stabs strings
442 for colons.
443 (objc_find_colon): New function.
444 * printcmd.c (address_info): If language == objc then print
445 "self" instead of "this".
446 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
447 OP_NSSTRING, and OP_SELF.
448 (prefixify_subexp): Ditto.
449 * source.c (print_source_lines): Mention objc in comment.
450 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
451 method names.
452
b9caf505
AC
4532002-09-18 Andrew Cagney <ac131313@redhat.com>
454
455 * complaints.h: Update copyright.
456 (struct complaints): Declare.
457 (struct complaint): Make `message' constant.
458 (internal_complaint): Declare.
459 (complaint): Declare.
460 (complaint_root): Delete declaration.
461 (symfile_complaints): Delete declaration.
462 (struct complaints): Add opaque declaration.
463 (clear_complaints): Add a complaints parameter.
464 * complaints.c: Update copyright.
465 (enum complaint_series): Define.
466 (complaint_root): Delete.
467 (struct complaints): Define.
468 (complaint_sentinel, symfile_complaint_book): New variables.
469 (symfile_explanations, symfile_complaints): New variables.
470 New variables.
471 (get_complaints): New function.
472 (vcomplaint): New function.
473 (complaint): New function.
474 (internal_complaint): New function.
475 (complain): Call vcomplain with symfile_complaint.
476 (clear_complaints): Rewrite.
477 (_initialize_complaints): Use add_setshow_command.
478 * Makefile.in (complaints.o): Update dependencies.
479 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
480 to call to clear_complaints.
481 (new_symfile_objfile, reread_symbols): Ditto.
482 (oldsyms_complaint): Delete.
483 (empty_symtab_complaint, unknown_option_complaint): Delete.
484 (free_named_symtabs): Use complaint instead of complain.
485
d2e6263c
MS
4862002-09-18 Michael Snyder <msnyder@redhat.com>
487
5fb2031a
AC
488 Contributed by Apple Computer, Inc. Merged with current sources
489 by Adam Fedor <fedor@doc.com> [cagney].
490
d2e6263c
MS
491 * objc-lang.c: First clean-up round: comments, indentation.
492 * objc-lang.h: Ditto.
493 * objc-lang.y: Ditto.
494
dec43320
AC
4952002-09-18 Andrew Cagney <ac131313@redhat.com>
496
497 * maint.c (maintenance_internal_error): Print the parameter as the
498 error message.
499 (maintenance_internal_warning): New function.
500 (_initialize_maint_cmds): Add command `maint internal-warning'.
501
502 * defs.h (internal_warning, internal_vwarning): Declare.
503 * utils.c (struct internal_problem): Define.
504 (internal_vproblem): New function.
505 (internal_warning): New function.
506 (internal_vwarning): New function.
507 (internal_warning_problem, internal_error_problem): New variables.
508 (internal_verror): Just call internal_vproblem.
509
b81654f1
MS
5102002-09-18 Michael Snyder <msnyder@redhat.com>
511
512 * objc-lang.c: New file, support for Objective-C.
513 Preliminary check-in, not yet integrated into gdb.
514 * objc-lang.h: New file.
515 * objc-exp.y: New file.
516
0542c381
AC
5172002-09-18 Andrew Cagney <ac131313@redhat.com>
518
7bda5e4a
AC
519 * infrun.c (signal_stop_update): Convert definition to ISO C.
520 (signal_print_update): Ditto.
521 (signal_pass_update): Ditto.
522 * inflow.c (terminal_save_ours): Ditto.
523
5247b418
AC
524 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
525 comments.
526
fc60962c
AC
527 * config/djgpp/fnchange.lst: Handle name clashes between
528 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
529 bfd/coff-tic80.c.
530
0542c381
AC
531 * i386-linux-tdep.h: Fix tipo.
532
5b924b9b
AF
5332002-09-18 Adam Fedor <fedor@gnu.org>
534
535 * MAINTAINERS: Add myself to the Write After Approval list.
536
5afc051b
JB
5372002-09-18 Jim Blandy <jimb@redhat.com>
538
539 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
540 texthigh and textlow to reader-specific structs caused
541 objfile_relocate to miss them. This is fixable, but the work that
542 the change was supposed to prepare GDB for never got done anyway.
543
eb944380
DC
5442002-09-18 David Carlton <carlton@math.stanford.edu>
545
546 * MAINTAINERS: Alphabetize Write After Approval list.
547
948e66d9
DJ
5482002-09-18 Daniel Jacobowitz <drow@mvista.com>
549
550 Fix PR gdb/709
551 * values.c (value_static_field): Call read_var_value.
552
dc604539
AC
5532002-09-18 Andrew Cagney <ac131313@redhat.com>
554
555 * valops.c (hand_function_call): Align the initial stack pointer
556 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
557 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
558 return value.
559 * mips-tdep.c (mips_frame_align): New function.
560 (mips_gdbarch_init): Set frame_align.
561 * gdbarch.sh (FRAME_ALIGN): New method.
562 * gdbarch.h, gdbarch.c: Re-generate.
563
cb7e422f
ML
5642002-09-18 Michal Ludvig <mludvig@suse.cz>
565
566 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
567 registers.
568
a094c6fb
AC
5692002-09-17 Andrew Cagney <ac131313@redhat.com>
570
571 * NEWS: Mention that MIPS $fp behavior changed.
572 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
573 reference to FP_REGNUM.
574 (mipsnbsd_cannot_store_register): Ditto.
575 * mips-linux-nat.c: Update copyright.
576 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
577 (mips_linux_cannot_store_register): Ditto.
578 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
579 * config/mips/tm-mips.h: Update copyright.
580 (FP_REGNUM): Delete macro.
581 (MIPS_REGISTER_NAMES): Replace "fp" with "".
582 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
583 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
584 (mips_r3041_reg_names, mips_r3051_reg_names)
585 (mips_r3081_reg_names): Replace "fp" with "".
586 Fix PR gdb/480.
587
45cf40d1
TR
5882002-09-17 Theodore A. Roth <troth@verinet.com>
589
590 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
591 generic_read_register_dummy() (PR gdb/703).
592 (avr_push_return_address): #if 0 out unused vars.
593 (avr_gdbarch_init): Enable use of avr_push_return_address().
594
c7e701b5
MS
5952002-09-17 Michael Snyder <msnyder@redhat.com>
596
d76ba2a5 597 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
598 RTE will take care of it.
599
20bcf01c
AC
6002002-09-17 Andrew Cagney <ac131313@redhat.com>
601
602 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
603 invalid, return SP_REGNUM.
604
009a9971 6052002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
606
607 * mips-tdep.c (mips_pop_frame): Read saved values of floating
608 point registers without sign extension.
609
135c175f
AC
6102002-09-17 Andrew Cagney <cagney@redhat.com>
611
612 * blockframe.c (deprecated_read_register_dummy): Rename
613 generic_read_register_dummy.
614 * frame.c (frame_unwind_signed_register): New function.
615 (frame_unwind_unsigned_register): New function.
616 * frame.h (frame_unwind_signed_register): Declare.
617 (frame_unwind_unsigned_register): Declare.
618 (deprecated_read_register_dummy): Rename
619 generic_read_register_dummy.
620
621 * h8300-tdep.c (h8300_frame_chain): Update.
622 (h8300_frame_saved_pc): Update.
623 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
624 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
625 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
626 (s390_frame_chain): Update.
627 * v850-tdep.c (v850_find_callers_reg): Update.
628 (v850_frame_saved_pc): Update.
629 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
630 (m32r_find_callers_reg): Update.
631 (m32r_frame_saved_pc): Update.
632 * sh-tdep.c (sh_find_callers_reg): Update.
633 (sh64_get_saved_pr): Update.
634 (sh_init_extra_frame_info): Update.
635 (sh_init_extra_frame_info): Update.
636 (sh64_init_extra_frame_info): Update.
637 (sh64_init_extra_frame_info): Update.
638 * mcore-tdep.c (mcore_find_callers_reg): Update.
639 (mcore_frame_saved_pc): Update.
640 (mcore_init_extra_frame_info): Update.
641 * i386-tdep.c (i386_frame_saved_pc): Update.
642 * ia64-tdep.c (ia64_frame_saved_pc): Update.
643 (ia64_init_extra_frame_info): Update.
644 (ia64_init_extra_frame_info): Update.
645 * d10v-tdep.c (d10v_frame_saved_pc): Update.
646 * cris-tdep.c (cris_init_extra_frame_info): Update.
647 * avr-tdep.c (avr_frame_chain): Update.
648 (avr_init_extra_frame_info): Update.
649 (avr_frame_saved_pc): Update.
650 * arm-tdep.c (arm_find_callers_reg): Update.
651 (arm_init_extra_frame_info): Update.
652 (arm_frame_saved_pc): Update.
653
a741e514
TT
6542002-09-17 Tom Tromey <tromey@redhat.com>
655
656 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
657 is "'".
658
d1a8e808
CV
6592002-09-17 Corinna Vinschen <vinschen@redhat.com>
660
661 * MAINTAINERS: Remove "non multi-arched" text from h8300.
662 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
663 NEXT_PROLOGUE_INSN.
664 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
665 NEXT_PROLOGUE_INSN.
666
d9025a18
JB
6672002-09-16 Joel Brobecker <brobecker@gnat.com>
668
669 * osfsolib.c: Remove file, replaced by solib-osf.c.
670 * Makefile.in: Remove compilation rules for osfsolib.c.
671
1b2ef1b6
DC
6722002-09-16 David Carlton <carlton@math.stanford.edu>
673
674 * cp-valprint.c (cp_print_class_method): Correct args to
675 check_stub_method_group.
676
928e48af
CV
6772002-09-16 Corinna Vinschen <vinschen@redhat.com>
678
679 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
680 `set architecture'. Unify naming convention of functions.
681 (h8300_skip_prologue): Improve prologue analysis.
682 (h8300_push_arguments): Rewritten to more closely match GCC's
683 bizarre argument-passing behavior, along with the comment describing
684 said behavior.
685 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
686 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
687 sim, remote-e7000.c, remote-hms.c and remote.c
688
5e3397bb
MK
6892002-09-15 Mark Kettenis <kettenis@gnu.org>
690
691 * i386-tdep.c (gdb_print_insn_i386): Removed.
692 (i386_print_insn): New function.
693 (i386_gdbarch_init): Set print_insn to i386_print_insns.
694 (_initialize_i386_tdep): Don't initialize tm_print_insn and
695 tm_print_insn_info.
696
f710f4fc
MK
6972002-09-14 Mark Kettenis <kettenis@gnu.org>
698
699 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
700 zero.
701
db54fef4
CV
7022002-09-14 Corinna Vinschen <vinschen@redhat.com>
703
704 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
705 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
706 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
707
2becadee
CF
7082002-09-13 Christopher Faylor <cgf@redhat.com>
709
710 * win32-nat.c (child_create_inferior): Honor 'tty' command.
711
de17c821
DJ
7122002-09-13 Daniel Jacobowitz <drow@mvista.com>
713
714 * gdbtypes.c (check_stub_method): Make static.
715 (check_stub_method_group): New function.
716 * gdbtypes.h: Update prototypes.
717 * cp-support.c: New file.
718 * cp-support.h: New file.
719
720 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
721 (update_method_name_from_physname): New function.
722 (read_member_functions): Correct method names for operators
723 and v3 constructors/destructors. Separate v2 constructors and
724 destructors.
725 * Makefile.in (stabsread.o): Update dependencies.
726 (SFILES): Add cp-support.c.
727 (COMMON_OBS): Add cp-support.o.
728 (cp_support_h, cp-support.o): Add.
729
730 * cp-valprint.c (cp_print_class_method): Call
731 check_stub_method_group instead of check_stub_method. Remove
732 extraneous QUITs.
733 * p-valprint.c (pascal_object_print_class_method): Likewise.
734 * valops.c (search_struct_method): Likewise.
735 (find_method_list, value_struct_elt_for_reference): Likewise.
736
e76cff22
AC
7372002-09-13 Andrew Cagney <cagney@redhat.com>
738
739 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
740 * gdbarch.h, gdbarch.c: Regenerate.
741
905abb3f
AC
7422002-09-13 Andrew Cagney <ac131313@redhat.com>
743
744 * frame.c (find_saved_register): Delete function.
745 * frame.h (find_saved_register): Delete declaration.
746 Fix PR gdb/631.
747
64159455
AC
748Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
749
750 * mips-tdep.c (read_next_frame_reg): Re-hack using
751 frame_register_unwind.
752
795e1e11
AC
753Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
754
755 * mips-tdep.c (mips_get_saved_register): Re-hack using
756 frame_register_unwind.
757
5720643c
JB
7582002-09-12 Joel Brobecker <brobecker@gnat.com>
759
760 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
761 vector. Will be useful for Interix.
762 * gdbarch.h, gdbarch.c: Regenerate.
763
764 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
765 name of the malloc function by NAME_OF_MALLOC.
766
3bada2a2
JB
7672002-09-12 Joel Brobecker <brobecker@gnat.com>
768
769 * value.h (find_function_in_inferior): Add const keyword to
770 one of the parameters. Allows us to invoke this function with
771 a const char *.
772 * valops.c (find_function_in_inferior): Likewise.
773
3db26b01
JB
7742002-09-12 Joel Brobecker <brobecker@gnat.com>
775
776 * exec.c (xfer_memory): Fix compilation warning with old versions
777 of GCC.
778 * tracepoint.c (trace_find_tracepoint_command): Likewise.
779
17c5ed2c
DC
7802002-09-12 David Carlton <carlton@math.stanford.edu>
781
782 * symtab.h: Run through gdb_indent.h.
783 Add 2002 to Copyright year list.
784
ecd1107e
AM
7852002-09-12 Alan Modra <amodra@bigpond.net.au>
786
787 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
788 mach constants.
789 * MAINTAINERS: Add myself to write after approval list.
790
e64f66d1
JB
7912002-09-11 J. Brobecker <brobecker@gnat.com>
792
793 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
794
f9395794
JB
7952002-09-11 J. Brobecker <brobecker@gnat.com>
796
797 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
798 Interix.
799
1a303dec
MS
8002002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
801
802 * procfs.c (do_detach): Clear current signal, not just fault.
803 Corrects problem with breakpoint trap signal leaking to detached
804 process on Tru64.
805
c0219d42
MS
8062002-09-10 Michael Snyder <msnyder@redhat.com>
807
808 * buildsym.c (finish_block): Protect against null pointer.
809
9d84ac84
AC
8102002-09-10 Andrew Cagney <cagney@redhat.com>
811
812 * infcmd.c (default_print_registers_info): Send all output to
813 ``file'' instead of ``gdb_stdout''.
814
77d8f2b4
MS
8152002-09-10 Michael Snyder <msnyder@redhat.com>
816
817 * mips-tdep.c (mips_extract_struct_value_address): Make val a
818 LONGEST, and use signed register read (addresses are sign-
819 extended for mips).
820
99656a61
SC
8212002-09-10 Stephane Carrez <stcarrez@nerim.fr>
822
823 * event-loop.c (gdb_do_one_event): Make public.
824 * event-loop.h (gdb_do_one_event): Declare.
825
da12f4d8
JL
8262002-09-10 Jeff Law <law@redhat.com>
827
828 * infttrace.c (child_resume): Simplify and rework to avoid
829 TT_PROC_CONTINUE.
830
d0aee0c4
FF
8312002-09-09 Fred Fish <fnf@intrinsity.com>
832
833 * printcmd.c (print_scalar_formatted): "len" is the number of
834 target bytes, NOT the number of target bits.
835
7cb3ec5e
EZ
8362002-09-09 Elena Zannoni <ezannoni@redhat.com>
837
838 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
839 * top.c (init_main): Set rl_terminal_name.
840
4dc81987
AS
8412002-09-08 Aidan Skinner <aidan@velvet.net>
842
843 * ada-lang.c (ada_array_bound, ada_type_match,
844 _initialize_ada_language): Fix K&R definitions.
845 * ada-tasks.c (get_current_task): Fix K&R definitions.
846 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
847
842330b4
CF
8482002-09-07 Christopher Faylor <cgf@redhat.com>
849
850 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
851 Add XP.
852
43156d82
MK
8532002-09-06 Mark Kettenis <kettenis@gnu.org>
854
66da5fd8
MK
855 * i386-tdep.c (i386_register_virtual_type,
856 i386_register_convertible, i386_register_convert_to_virtual,
857 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
858 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
859 (i386_gdbarch_init): Fix comment. Add comments on calls that set
860 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
861 Don't set push_arguments twice.
862
4b218c18
MK
863 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
864 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
865 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
866 sigtramp_end to NULL.
867 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
868 defines.
869 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
870
4cc314d5
MK
871 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
872 whitespace.
873
43156d82
MK
874 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
875 * gdbarch.h, gdbarch.c: Re-generate.
876 * blockframe.c (find_pc_sect_partial_function): Convert to use
877 SIGTRAMP_START_P predicate.
878
6672060b
MS
8792002-09-05 Michael Snyder <msnyder@redhat.com>
880
a90c3637
MS
881 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
882 generic_dummy_frame method and old method. Also distinguish
883 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 884 (arm_extract_return_value): Use new regcache method.
a90c3637 885
6672060b
MS
886 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
887 adjustment that doesn't conform to the ABI.
888 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
889 saved regcache, not from current regcache.
890
299ffc64
AC
8912002-09-05 Andrew Cagney <ac131313@redhat.com>
892
893 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
894 * README: Update.
895
a3a2ee65
JT
8962002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
897
898 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
899 if arm_apcs_32 is false.
900
2bc7eea9
AC
9012002-09-04 Andrew Cagney <ac131313@redhat.com>
902
903 GDB 5.3 branch created.
904
8a55a7c5
TR
9052002-09-03 Theodore A. Roth <troth@verinet.com>
906
907 * gdb/avr-tdep.c (avr_gdbarch_init): Use
908 generic_unwind_get_saved_register.
909
e26fb1d7
DC
9102002-09-03 David Carlton <carlton@math.stanford.edu>
911
912 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
913 argument (PR gdb/653). Update call to smash_to_method_type.
914 (read_structure_scope): Update call to dwarf2_add_member_fn.
915
30d52491
ML
9162002-09-03 Michal Ludvig <mludvig@suse.cz>
917
918 * x86-64-linux-tdep.c: Include gdb_string.h
919 * x86-64-linux-nat.c: Ditto.
920
06891d83
JT
9212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
922
923 * ada-exp.y (yyname, yyrule): Remap global variables that appear
924 when YYDEBUG is set to 1.
925 * c-exp.y: Likewise.
926 * f-exp.y: Likewise.
927 * jv-exp.y: Likewise.
928 * m2-exp.y: Likewise.
929 * p-exp.y: Likewise.
930
7d400e77
JT
9312002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
932
933 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
934 dependency list.
935 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
936 solib_svr4_fetch_link_map_offsets to
937 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
938 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
939 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
940 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
941 solib-svr4.o, and solib-legacy.o.
942 * config/i386/tm-nbsd.h: Include solib.h.
943
704a27c4
JT
9442002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
945
946 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
947 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
948 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
949 comment noting that this needs its own target configuration.
950 * config/i386/nbsd.mt: New file.
951 * config/i386/nbsdaout.mt: Remove.
952 * config/i386/nbsdelf.mt: Ditto.
953 * config/i386/tm-nbsdaout.h: Ditto.
954
d66198e1
JT
9552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
956
957 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
958 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
959 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
960 tdep->sigtramp_end.
961 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
962 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
963 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
964
3cac699e
JT
9652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
966
967 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
968 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
969 * i386-tdep.h (i386bsd_init_abi): New prototype.
970 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
971 function declaration.
972 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
973 for NetBSD-a.out or NetBSD-ELF.
974 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
975 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
976 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
977 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
978 and nbsd-tdep.h.
979 (i386nbsd_pc_in_sigtramp): New function.
980 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
981 i386nbsd_pc_in_sigtramp.
982 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
983 and i386nbsdelf_init_abi OS ABI handlers.
984 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
985 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
986
7010ca0a
MK
9872002-09-02 Mark Kettenis <kettenis@gnu.org>
988
989 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
990 registers if the target really has them.
991
6dd93b72
JT
9922002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
993
994 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
995 than nbsd-tdep.h.
996
2ca8ae21
JT
9972002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
998
999 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1000 list.
1001 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1002 (alphanbsd_skip_sigtramp_frame): New functions.
1003 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1004 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1005 to alphanbsd_sigcontext_addr.
1006
3d9b49b0
JT
10072002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1008
1009 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1010 list.
1011 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1012 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1013 nbsd_pc_in_sigtramp.
1014 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1015 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1016 * nbsd-tdep.c: Include gdb_string.h.
1017 (nbsd_pc_in_sigtramp): New function.
1018 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1019 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1020 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1021 ppcnbsd_pc_in_sigtramp.
1022 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1023 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1024 shnbsd_pc_in_sigtramp.
1025 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1026 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1027 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1028
c860120c
PM
10292002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1030
1031 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1032 watchpoints to NULL.
1033 (insert_breakpoints): set val field of watchpoints if NULL.
1034
1035
c7612d53
JB
10362002-08-29 Jim Blandy <jimb@redhat.com>
1037
1038 * symtab.c (lookup_symbol_aux): In the cases where we find a
1039 minimal symbol of an appropriate name and use its address to
1040 select a symtab to read and search, use `name' (as passed to us)
1041 as the demangled name when searching the symtab's global and
1042 static blocks, not the minsym's name.
1043
66609862
KS
10442002-08-29 Keith Seitz <keiths@redhat.com>
1045
1046 * stack.c (print_frame_info_base): Always set current_source_symtab
1047 and current_source_line.
1048
151fefe2
JB
10492002-08-29 Donn Terry <donnte@microsoft.com>
1050
1051 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1052
bfb3754e
KS
10532002-08-28 Keith Seitz <keiths@redhat.com>
1054
1055 * stack.c (select_frame): Add FIXME concerning selected-frame
1056 events.
1057 (select_frame_command): Send selected-frame-level-changed
1058 event notification, but only if the level actually changed.
1059 (up_silently_base): Add selected-frame-level-changed event
1060 notification.
1061 (down_silently_base): Likewise.
1062
e822a2a0
AC
10632002-08-28 Andrew Cagney <ac131313@redhat.com>
1064
1065 * Makefile.in: Update dependencies for all gdb/*.c files.
1066
309367d4
TT
10672002-08-27 Tom Tromey <tromey@redhat.com>
1068
1069 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1070 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1071 Update dependencies.
1072 * i387-tdep.c: Include gdb_string.h.
1073 * osabi.c: Likewise.
1074 * i386-linux-nat.c: Likewise.
1075 * lin-lwp.c: Likewise.
1076 * ax-gdb.c: Likewise.
1077 * signals/signals.c: Likewise.
1078 * jv-valprint.c: Likewise.
1079 * p-lang.c: Likewise.
1080 * c-valprint.c: Likewise.
1081 * cp-abi.c: Likewise.
1082
e1507482
EZ
10832002-08-27 Elena Zannoni <ezannoni@redhat.com>
1084
1085 * cli/cli-script.h (copy_command_lines): Export.
1086 * breakpoint.c: Include cli/cli-script.h.
1087 * Makefile.in (breakpoint.o): Update dependencies.
1088
c6510018
MS
10892002-08-26 Michael Snyder <msnyder@redhat.com>
1090
1091 * breakpoint.c (insert_breakpoints): Protect all references
1092 to 'process_warning'. Shorten long lines.
1093
c2b8ed2c
MS
10942002-08-26 Joel Brobecker <brobecker@gnat.com>
1095
1096 * cli/cli-script.c (copy_command_lines): New function.
1097 * defs.h (copy_command_lines): Export.
1098 * testsuite/gdb.base/commands.exp: New tests for commands
1099 attached to a temporary breakpoint, and for commands that
1100 delete the breakpoint they are attached to.
1101
11022002-08-26 Michael Snyder <msnyder@redhat.com>
1103
1104 * breakpoint.c (bpstat_stop_status): Instead of copying the
1105 pointer to the breakpoint commands struct, make a new copy
1106 of the struct and point to that.
1107 (bpstat_clear): Free the commands struct.
1108 (bpstat_clear_actions): Free the commands struct.
1109 (bpstat_do_actions): Free the command actions. Also execute
1110 the local cleanups, instead of deleting them.
1111 (delete_breakpoint): Leave the commands field of the bpstat
1112 chain alone -- it will be freed later.
1113
64b84175
KB
11142002-08-26 Kevin Buettner <kevinb@redhat.com>
1115
1116 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1117 deleted in 2002-08-20 commit. This function is still used by
1118 ppc-linux-nat.c.
1119
55970da6
KS
11202002-08-26 Keith Seitz <keiths@redhat.com>
1121
1122 * gdb-events.sh: Add selected-frame-level-changed event.
1123 * gdb-events.c: Regenerated.
1124 * gdb-events.h: Regenerated.
1125
a790ad35
SC
11262002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1127
1128 Fix PR gdb/393:
1129 * inflow.c (terminal_save_ours): New function to save terminal
1130 settings.
1131 * inferior.h (terminal_save_ours): Declare.
1132 * target.c (debug_to_terminal_save_ours): New function.
1133 (cleanup_target): Defaults to_terminal_save_ours.
1134 (update_current_target): Inherit to_terminal_save_ours.
1135 (setup_target_debug): Set to_terminal_save_ours.
1136 * target.h (target_terminal_save_ours): New to save terminal settings.
1137 (target_ops): New member to_terminal_save_ours.
1138 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1139 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1140 * inftarg.c (init_child_ops): Likewise.
1141 * m3-nat.c (init_m3_ops): Likewise.
1142 * procfs.c (init_procfs_ops): Likewise.
1143 * wince.c (init_child_ops): Likewise.
1144 * win32-nat.c (init_child_ops): Likewise.
1145 * sol-thread.c (init_sol_thread_ops): Likewise.
1146
c00dcbe9
MK
11472002-08-26 Mark Kettenis <kettenis@gnu.org>
1148
3d7f4f49
MK
1149 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1150 use regcache_* functions.
1151 (i386_gdbarch_init): Set store_return_value instead of
1152 deprecated_store_return_value.
1153
c00dcbe9
MK
1154 * regcache.c (regcache_raw_write_signed,
1155 regcache_raw_write_unsigned): New functions.
1156 * regcache.h (regcache_raw_write_signed,
1157 regcache_raw_write_unsigned): New prototypes.
1158
0e0d15ca
AC
11592002-08-25 Andrew Cagney <ac131313@redhat.com>
1160
1161 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1162 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1163 source file dependencies. Cleanup corresponding generator rules.
1164
d3b22ed5
AC
11652002-08-25 Andrew Cagney <ac131313@redhat.com>
1166
1167 * regcache.h (register_offset_hack): Declare.
1168 (regcache_cooked_read_using_offset_hack): Declare.
1169 (regcache_cooked_write_using_offset_hack): Declare.
1170
1171 * regcache.c (register_offset_hack): New function.
1172 (regcache_cooked_read_using_offset_hack): New function.
1173 (regcache_cooked_write_using_offset_hack): New function.
1174 (regcache_dump): Check that the registers, according to their
1175 offset, are packed hard against each other.
1176 (cooked_xfer_using_offset_hack): New function.
1177
bb425013
AC
11782002-08-25 Andrew Cagney <ac131313@redhat.com>
1179
1180 * regcache.c (struct regcache_descr): Add field register_type.
1181 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1182 in as a parameter
1183 (init_regcache_descr): Initialize register_type. Pass the descr
1184 to init_legacy_regcache_descr. Use register_type instead of
1185 REGISTER_VIRTUAL_TYPE.
1186 (register_type): New function.
1187 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1188 * regcache.h (register_type): Declare.
1189
d0403e00
AC
11902002-08-25 Andrew Cagney <ac131313@redhat.com>
1191
1192 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1193 instead of deprecated_store_return_value. Fix fallout from
1194 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1195
0ed04cce
AC
11962002-08-25 Andrew Cagney <ac131313@redhat.com>
1197
1198 * regcache.c (max_register_size): New function.
1199 (init_legacy_regcache_descr): Ensure that max_register_size is
1200 large enough for REGISTER_VIRTUAL_SIZE.
1201 * regcache.h (max_register_size): Declare.
1202
46d79c04
AC
12032002-08-24 Andrew Cagney <ac131313@redhat.com>
1204
1205 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1206 store_return_value.
1207 (e500_extract_return_value): Change type of valbuf pointer to
1208 void.
1209
853c7bd0
MK
12102002-08-24 Mark Kettenis <kettenis@gnu.org>
1211
cd87e769
MK
1212 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1213 workaround.
1214
853c7bd0
MK
1215 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1216 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1217 long long) to prevent compiler warning on 64-bit systems.
1218
ebba8386
AC
12192002-08-23 Andrew Cagney <cagney@redhat.com>
1220
1221 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1222 (DEPRECATED_STORE_RETURN_VALUE): New method.
1223 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1224 * gdbarch.h, gdbarch.c: Re-generate.
1225
1226 * values.c (set_return_value): Pass current_regcache to
1227 STORE_RETURN_VALUE.
1228 * arch-utils.h (legacy_store_return_value): Declare.
1229 * arch-utils.c (legacy_store_return_value): New function.
1230 (legacy_extract_return_value): Update parameters.
1231
1232 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1233 STORE_RETURN_VALUE.
1234 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1235 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1236 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1237 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1238 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1239 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1240 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1241 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1242 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1243 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1244
1245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1246 * i386-tdep.c (i386_extract_return_value): Update.
1247 * arch-utils.c (legacy_extract_return_value): Update.
1248 * frv-tdep.c (frv_gdbarch_init): Update.
1249 * cris-tdep.c (cris_gdbarch_init): Update.
1250 * d10v-tdep.c (d10v_gdbarch_init): Update.
1251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1252 * m68k-tdep.c (m68k_gdbarch_init): Update.
1253 * mcore-tdep.c (mcore_gdbarch_init): Update.
1254 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1255 * s390-tdep.c (s390_gdbarch_init): Update.
1256 * sparc-tdep.c (sparc_gdbarch_init): Update.
1257 * sh-tdep.c (sh_gdbarch_init): Update.
1258 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1259 * v850-tdep.c (v850_gdbarch_init): Update.
1260 * avr-tdep.c (avr_gdbarch_init): Update.
1261 * ia64-tdep.c (ia64_gdbarch_init): Update.
1262 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1263 * vax-tdep.c (vax_gdbarch_init): Update.
1264 * alpha-tdep.c (alpha_gdbarch_init): Update.
1265 * arm-tdep.c (arm_gdbarch_init): Update.
1266 * mips-tdep.c (mips_gdbarch_init): Update.
1267 * i386-tdep.c (i386_gdbarch_init): Update.
1268
5bd8c6d0
AC
12692002-08-23 Andrew Cagney <ac131313@redhat.com>
1270
1271 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1272 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1273
e73e1724
MK
12742002-08-24 Mark Kettenis <kettenis@gnu.org>
1275
1276 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1277 problems.
1278
3e6564e1
JB
12792002-08-23 Joel Brobecker <brobecker@gnat.com>
1280
1281 * infrun.c (handle_inferior_event): Move a comment outside of a
1282 function call, in order to avoid indent reformatting this part
1283 of the code in an unreadable way.
1284
81d0cc19
GS
12852002-08-23 Grace Sainsbury <graces@redhat.com>
1286
1287 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1288 when breakpoints fail. Move general breakpoint error messages to
1289 insert_breakpoints.
1290 * breakpoint.c (insert_breakpoints): Change warnings when
1291 breakpoints are nto inserted to specify the type. Remove call to
1292 memory_error when hardware breakpoints can't be inserted. Remove
1293 multiple calls to warning so all messages are sent to the user at
1294 once.
1295 (delete_breakpoints): Make insert error messsages more explicit.
1296
17574093
DJ
12972002-08-23 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1300 gdbserver/ChangeLog.
1301
8acc2935
MK
13022002-08-23 Mark Kettenis <kettenis@gnu.org>
1303
dfe01d39
MK
1304 * i386-tdep.c: Include "objfiles.h".
1305 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1306 skip_trampoline_code.
1307 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1308 (CPLUS_MARKER): Define to '.'.
1309
8acc2935
MK
1310 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1311 member.
1312 (linux_corefile_thread_callback): Increase args->num_notes.
1313 (linux_make_note_section): Initialize thread_args.num_notes, and
1314 use it to determine whether notes for any threads were created.
1315
151fefe2 13162002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1317
1318 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1319 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1320 and PCUNKILL.
1321 (write_with_trace): Conditionalize out the switch branch handling
1322 PCSHOLD if the corresponding macro is not defined. Likewise for
1323 PRSABORT and PRSTOP.
1324 This change will be needed by the Interix port.
1325
e1507482
EZ
13262002-08-22 Elena Zannoni <ezannoni@redhat.com>
1327
1328 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1329 write_register wherever possible instead of manipulating the
1330 register bytes directly.
1331 Assign VALUE_CONTENTS to a variable and use that.
1332 The GPR numbers are now dependent on the architecture.
1333
96ff0de4
EZ
13342002-08-22 Elena Zannoni <ezannoni@redhat.com>
1335
1336 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1337 ev_offset fields.
1338 (skip_prologue): Add support for BookE/e500 instructions.
1339 (e500_extract_return_value): New function.
1340 (frame_get_saved_regs): Add support for saving ev registers and
1341 pseudo gpr's.
1342 (e500_store_return_value): New function.
1343 (rs6000_gdbarch_init): Move up default intializations of
1344 deprecated_extract_return_value and store_return_value. Overwrite
1345 init of store_return_value with e500 specific version.
1346 Set extract_return_value for e500.
1347
fbefca5b
EZ
13482002-08-22 Elena Zannoni <ezannoni@redhat.com>
1349
1350 * blockframe.c (generic_call_dummy_register_unwind): Use
1351 regcache_cooked_read to catch cases in which the variable is
1352 stored in a pseudo register.
1353
4d210288
AC
13542002-08-22 Andrew Cagney <cagney@redhat.com>
1355
1356 * NEWS: Mention that the i960 has been made obsolete.
1357 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1358 i960-tdep.c
1359 (remote-nrom.o): Obsolete target.
1360 (remote-nindy.o, i960-tdep.o): Ditto.
1361 * remote-nrom.c: Make file obsolete.
1362 * remote-nindy.c, remote-vx960.c: Ditto.
1363 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1364 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1365 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1366 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1367 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1368 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1369 i960-*-vxworks* obsolete.
1370 * MAINTAINERS: Note that the i960 is obsolete.
1371
6c0c456d
CV
13722002-08-21 Corinna Vinschen <vinschen@redhat.com
1373
1374 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1375 detach to allow reinitialization.
1376
9f9d12b3
AC
13772002-08-22 Andrew Cagney <ac131313@redhat.com>
1378
1379 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1380 attempt).
1381
ebeb39fe
JB
13822002-08-22 Jim Blandy <jimb@redhat.com>
1383
1384 * coffread.c (coff_symfile_read): Don't try to read the line
1385 number table from disk if the image file doesn't have a symbol
1386 table; we'll never actually look at the info anyway, and Windows
1387 ships DLL's with bogus file offsets for the line number data.
1388
5bf1c677
EZ
13892002-08-21 Elena Zannoni <ezannoni@redhat.com>
1390
1391 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1392 an e500 executable.
1393
71b8ef93
MS
13942002-08-21 Michael Snyder <msnyder@redhat.com>
1395
1396 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1397 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1398 (DEFAULT_MIPS_TYPE): Delete unused macro.
1399 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1400 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1401
d174216d
JB
14022002-08-21 Jim Blandy <jimb@redhat.com>
1403
1404 * valops.c (value_cast): Simplify and correct logic for doing a
1405 static cast from a pointer to a base class to a pointer to a
1406 derived class.
1407
0ab7a791
AC
14082002-08-21 Andrew Cagney <ac131313@redhat.com>
1409
1410 * infcmd.c (default_print_registers_info): Replace
1411 do_registers_info.
1412 (registers_info): Use gdbarch_print_registers_info instead of
1413 DO_REGISTERS_INFO.
1414 * inferior.h (default_print_registers_info): Replace
1415 do_registers_info.
1416 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1417 (DO_REGISTERS_INFO): Change to a predicate function.
1418 * gdbarch.h, gdbarch.c: Regenerate.
1419
e23792cc
KS
14202002-08-21 Keith Seitz <keiths@redhat.com>
1421
1422 * gdb-events.sh: Add target-changed event.
1423 * gdb-events.c: Regenerated.
1424 * gdb-events.c: Regenerated.
1425 * valops.c (value_assign): Add target-changed event notification
1426 to inlval_register, lval_memory, and lval_reg_frame_relative.
1427
9fb14e79
JB
14282002-08-21 Joel Brobecker <brobecker@gnat.com>
1429
1430 * NEWS: Add an entry regarding the improvement of the next/step
1431 operation on Alpha Tru64 multi-processor machines.
1432
6d39a69f
AC
14332002-08-21 Andrew Cagney <ac131313@redhat.com>
1434
72acd513
AC
1435 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1436 directores.
342af04b 1437 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1438 * Makefile.in (install-gdbtk): Move to install section.
1439 (rdi-share/libangsd.a): Move to end of file.
1440
fa5f27c7
AC
14412002-08-19 Andrew Cagney <ac131313@redhat.com>
1442
1443 * frame.c (frame_register_unwind): When a register, set addrp to
1444 the register's byte.
1445
5a89d8aa
MS
14462002-08-20 Michael Snyder <msnyder@redhat.com>
1447
1448 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1449 used locally, so move them from the target machine header to here.
1450 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1451 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1452 Make static.
1453 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1454
822e978b
AC
14552002-08-20 Andrew Cagney <cagney@redhat.com>
1456
1457 * NEWS: Mention that the Apollo line was made obsolete.
1458 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1459 m68*-hp-hpux* obsolete.
1460 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1461 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1462 * buildsym.c (make_blockvector): Make static.
1463 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1464 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1465 (ALLDEPFILES): Remove dstread.c.
1466 (dstread.o): Obsolete make rule.
1467 * dstread.c: Makefile obsolete.
1468 * dst.h: Ditto.
1469 * config/m68k/hp300hpux.mt: Ditto.
1470 * config/m68k/hp300hpux.mh: Ditto.
1471 * config/m68k/hp300bsd.mt: Ditto.
1472 * config/m68k/hp300bsd.mh: Ditto.
1473 * config/m68k/apollo68b.mt: Ditto.
1474 * config/m68k/apollo68v.mh: Ditto.
1475 * config/m68k/apollo68b.mh: Ditto.
1476
e41b17f0
MS
14772002-08-20 Michael Snyder <msnyder@redhat.com>
1478
1479 * mips-tdep.c (mips_in_return_stub): Make static.
1480 (mips_gdbarch_init): Set in_solib_return_trampoline.
1481 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1482
d50355b6
MS
14832002-08-20 Michael Snyder <msnyder@redhat.com>
1484
1485 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1486 * gdbarch.c, gdbarch.h: Regenerate.
1487 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1488 Add.
1489 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1490
757a7cc6
MS
14912002-08-20 Michael Snyder <msnyder@redhat.com>
1492
1493 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1494 (mips_gdbarch_init): Set skip_trampoline_code,
1495 in_solib_call_trampoline.
1496 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1497 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1498
c8001721
EZ
14992002-08-20 Elena Zannoni <ezannoni@redhat.com>
1500
1501 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1502
1503 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1504 vector type for ev registers.
1505 (e500_pseudo_register_read): New function.
1506 (e500_pseudo_register_write): New function.
1507 (e500_dwarf2_reg_to_regnum): New function.
1508 (PPC_UISA_NOFP_SPRS): New macro.
1509 (PPC_EV_REGS): New macro.
1510 (PPC_GPRS_PSEUDO_REGS): New macro.
1511 (registers_e500): New register set for e500.
1512 (variants): Add e500 variant.
1513 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1514 before setting architectural dependent variations. Initialize ev
1515 registers numbers. Add case for e500 architecture. Set the
1516 number of pseudo registers.
1517
64366f1c
EZ
15182002-08-20 Elena Zannoni <ezannoni@redhat.com>
1519
1520 * rs6000-tdep.c: Clean up comments.
1521
7e78f0ca
AC
15222002-08-20 Andrew Cagney <cagney@redhat.com>
1523
1524 * h8300-tdep.c: Re-indent file.
1525
697f7479
JB
15262002-08-20 Jim Blandy <jimb@redhat.com>
1527
1528 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1529 default for this.
697f7479 1530
e86ae29f
KS
15312002-08-20 Keith Seitz <keiths@redhat.com>
1532
1533 * breakpoints.c (watch_command_1): Use internal breakpoint
1534 when setting a watchpoint_scope breakpoint.
1535
216b504f
EZ
15362002-08-20 Elena Zannoni <ezannoni@redhat.com>
1537
1538 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1539 (build_builtin_type_vec64i): Ditto.
1540 (build_builtin_type_vec128): Ditto.
1541 (build_builtin_type_vec128i): Ditto.
1542
f7ab6ec6
MS
15432002-08-19 Michael Snyder <msnyder@redhat.com>
1544
1545 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1546 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1547 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1548 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1549 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1550 CALL_DUMMY_ADDRESS): Delete.
1551 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1552 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1553 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1554 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1555 push_return_address.
1556 (mips_register_raw_size, mips_eabi_use_struct_convention,
1557 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1558 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1559 mips_init_extra_frame_info, mips_eabi_push_arguments,
1560 mips_n32n64_push_arguments, mips_push_return_address,
1561 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1562 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1563
b5d1566e
MS
15642002-08-19 Michael Snyder <msnyder@redhat.com>
1565
1566 * mips-tdep.c (mips_frame_num_args): New function.
1567 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1568 frame_saved_pc, frame_args_address, frame_locals_address,
1569 frame_num_args, and frame_args_skip.
1570 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1571 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1572 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1573 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1574
2f1488ce
MS
15752002-08-20 Michael Snyder <msnyder@redhat.com>
1576
1577 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1578 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1579 * mips-tdep.c (mips_store_struct_return): New function.
1580 (mips_extract_struct_value_address): New function.
1581 (mips_gdbarch_init): Set store_struct_return and
1582 extract_struct_value_address.
1583
41ff2da1
DC
15842002-08-20 David Carlton <carlton@math.stanford.edu>
1585
1586 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1587 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1588 (read_file_scope): Check that line_header is nonzero before
1589 decoding macro information.
1590
e5451d58
MK
15912002-08-20 Mark Kettenis <kettenis@gnu.org>
1592
1593 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1594 flag the general-purpose registers as floating-point on targets
1595 that don't support the floating-point registers.
1596
4a6daafa
EZ
15972002-08-20 Elena Zannoni <ezannoni@redhat.com>
1598
1599 * rs6000-tdep.c (altivec_register_p): Delete.
1600 (rs6000_do_altivec_registers): Delete.
1601 (rs6000_altivec_registers_info): Delete.
1602 (rs6000_do_registers_info): Delete.
1603 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1604 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1605
ab4327e0
EZ
16062002-08-20 Elena Zannoni <ezannoni@redhat.com>
1607
1608 * infcmd.c (do_registers_info): Print vector registers in hex
1609 format only.
1610 (print_vector_info): Check that printing registers
1611 makes sense.
1612 (print_float_info): Ditto.
1613
cb1d2653
AC
16142002-08-20 Andrew Cagney <ac131313@redhat.com>
1615
1616 * mips-tdep.c (mips_gdbarch_init): Update.
1617 (mips_o32_extract_return_value): Rewrite.
1618 (mips_o32_store_return_value): Rewrite.
1619 (mips_o32_xfer_return_value): New function.
1620 (mips_xfer_register): Tweak debug print message. Allow for
1621 buf_offset when dumping the value transfered.
1622
dfc3d9b2
AC
16232002-08-20 Andrew Cagney <ac131313@redhat.com>
1624
1625 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1626 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1627 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1628 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1629 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1630
7807aa61
MS
16312002-08-14 Michael Snyder <msnyder@redhat.com>
1632
1633 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1634
489461e2
EZ
16352002-08-19 Elena Zannoni <ezannoni@redhat.com>
1636
1637 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1638 register.
1639 (P): New macro to define a register as a pseudo register.
1640 (R, R4, R8, R16, FR32, R64, R0): Updated.
1641 (struct variant): Add new fields for number of pseudo registers
1642 and number of total registers.
1643 (tot_num_registers): New macro replacing....
1644 (num_registers): ...deleted macro.
1645 (num_registers): New function.
1646 (num_pseudo_registers): New function.
1647 (variants): Update all variants to intialize new fields correctly.
1648 Postpone initialization of number of pseudo regs and real regs.
1649 (init_variants): New function.
1650 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1651 registers offsets.
1652
fcaffe4c
DC
16532002-08-19 David Carlton <carlton@math.stanford.edu>
1654
2c2738a0
DC
1655 * valops.c (search_struct_field): Change error message to treat
1656 return value of 0 from value_static_field as meaning that field is
1657 optimized out.
1658 (value_struct_elt_for_reference): Ditto.
1659 * values.c (value_static_field): Treat an unresolved location the
1660 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1661 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1662 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1663 * MAINTAINERS: Add self to Write After Approval list.
1664
88658117
AC
16652002-08-19 Andrew Cagney <ac131313@redhat.com>
1666
1667 * mips-tdep.c (mips_xfer_register): New function.
1668 (mips_n32n64_extract_return_value): Rewrite.
1669 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1670 instead of deprecated_extract_return_value.
1671
21283beb
EZ
16722002-08-19 Elena Zannoni <ezannoni@redhat.com>
1673
1674 * rs6000-tdep.c (TDEP): Delete macro.
1675 (branch_dest): Replace use of TDEP macro with its body.
1676 (rs6000_pop_frame): Ditto.
1677 (rs6000_push_arguments): Ditto.
1678 (rs6000_skip_trampoline_code): Ditto.
1679 (rs6000_frame_saved_pc): Ditto.
1680 (rs6000_frame_chain): Ditto.
1681 (rs6000_register_name): Ditto.
1682 (rs6000_register_byte): Ditto.
1683 (rs6000_register_raw_size): Ditto.
1684 (rs6000_register_virtual_type): Ditto.
1685 (rs6000_register_convertible): Ditto.
1686 (rs6000_convert_from_func_ptr_addr): Ditto.
1687
bf072999
DJ
16882002-08-19 Daniel Jacobowitz <drow@mvista.com>
1689
1690 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1691 conditionally.
1692 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1693 MIPS_LINUX_JB_ELEMENT_SIZE.
1694 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1695 for MAX_REGISTER_RAW_SIZE arrays.
1696 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1697 MIPS_LINUX_JB_ELEMENT_SIZE.
1698
9b949a49
PM
16992002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1700
1701 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1702
6d3e79c6
AS
17032002-08-19 Aidan Skinner <aidan@velvet.net>
1704
1705 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1706 ada-valprint.c ada-tasks.c.
1707 (YYFILES): Add ada-exp.y.
1708 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1709 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1710 (ada-exp.tab.o): New target.
1711
06c0b04e
AC
17122002-08-18 Andrew Cagney <ac131313@redhat.com>
1713
1714 * regcache.c (regcache_xfer_part): New function.
1715 (regcache_raw_read_part): New function.
1716 (regcache_raw_write_part): New function.
1717 (regcache_cooked_read_part): New function.
1718 (regcache_cooked_write_part): New function.
1719 * regcache.h (regcache_raw_read_part): Declare.
1720 (regcache_raw_write_part): Declare.
1721 (regcache_cooked_read_part): Declare.
1722 (regcache_cooked_write_part): Declare.
1723
92d1e331
DJ
17242002-08-18 Daniel Jacobowitz <drow@mvista.com>
1725
1726 * remote.c (remote_open_1): Add async_p.
1727 (remote_async_open_1): Delete.
1728 (open_remote_target): Delete.
1729 (remote_open, extended_remote_open): Update calls to remote_open_1.
1730 (remote_async_open, extended_remote_async_open): Call
1731 remote_open_1 instead of remote_async_open_1.
1732
247055de
MK
17332002-08-19 Mark Kettenis <kettenis@gnu.org>
1734
1735 * blockframe.c: Fix a few coding standard violations.
1736
641eda39
MK
17372002-08-19 Mark Kettenis <kettenis@gnu.org>
1738
0b717710
MK
1739 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1740 here from ...
1741 * config/i386/tm-i386sco5.h: ... here. File removed.
1742 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1743
26d28e12 1744 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1745 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1746 (TM_FILE): Set to tm-i386.h.
1747 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1748 * config/i386/tm-i386v.h: Remove file.
1749 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1750 instead of "i386/tm-i386v.h".
1751 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1752 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1753 "i386/tm-i386v.h".
1754 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1755 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1756 "i386/tm-i386.h".
1757
d4e0bab4
MK
17582002-08-18 Mark Kettenis <kettenis@gnu.org>
1759
1760 * config/i386/nm-i386v.h: Add protection against
1761 multiple-inclusion.
1762 (i386_register_u_addr): Remove prototype.
1763 (register_u_addr): New prototype.
1764 (REGISTER_U_ADDR): Redefine accordingly.
1765 * i386v-nat.c: Improve several comments.
1766 (i386_register_u_addr): Change signature and rename to
1767 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1768 ubase variable.
1769
46cac009
AC
17702002-08-18 Andrew Cagney <ac131313@redhat.com>
1771
1772 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1773 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1774 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1775 deprecated_extract_return_value.
1776 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1777 rename mips_o32o64_push_arguments.
1778 (mips_gdbarch_init): Update.
1779 (mips_extract_return_value): Delete.
1780 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1781 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1782 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1783 (mips_n32n64_extract_return_value): Clone
1784 mips_extract_return_value.
1785 (mips_store_return_value): Delete.
1786 (mips_o32_store_return_value): Clone mips_store_return_value.
1787 (mips_o64_store_return_value): Clone mips_store_return_value.
1788 (mips_eabi_store_return_value): Clone mips_store_return_value.
1789 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1790
d2e4a39e
AS
17912002-08-18 Aidan Skinner <aidan@velvet.net>
1792
0c30c098
AS
1793 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1794 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1795
17962002-08-18 Aidan Skinner <aidan@velvet.net>
1797
1798 * ada-lang.c: Run through gdb_indent.sh.
1799 * ada-lang.h: Run through gdb_indent.sh.
1800 * ada-tasks.c: Run through gdb_indent.sh.
1801 * ada-typeprint.c: Run through gdb_indent.sh.
1802 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1803
01fc4e33
AC
18042002-08-18 Andrew Cagney <ac131313@redhat.com>
1805
1806 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1807 ABI.
1808
d8ee244c
MK
18092002-08-18 Mark Kettenis <kettenis@gnu.org>
1810
c38d8261
MK
1811 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1812
222db64c
MK
1813 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1814 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1815
c2848c82
MK
1816 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1817 write_register_gen instead of write_register_bytes.
1818
d8ee244c
MK
1819 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1820 i[3456]-*-osf1mk* configurations have been made obsolete.
1821 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1822 i[3456]86-*-osf1mk* hosts obsolete.
1823 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1824 targets obsolete.
1825 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1826 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1827 config/i386/i386m3.mt, config/i386/nm-m3.h,
1828 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1829 config/i386/i386mk.mh, config/i386/i386mk.mt,
1830 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1831 obsolete.
1832 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1833 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1834 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1835
61d8d407
AC
18362002-08-18 Andrew Cagney <ac131313@redhat.com>
1837
1838 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1839 (hppa_value_returned_from_stack): Declare.
1840 (hppa_extract_return_value): Declare.
1841 * config/pa/hppa.mt: New file.
1842 * configure.tgt: Recognize hppa*-*-*.
1843 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1844
0c52bd59
MK
18452002-08-18 Mark Kettenis <kettenis@gnu.org>
1846
1847 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1848 comment.
1849
b5686e99
MK
18502002-08-17 Mark Kettenis <kettenis@gnu.org>
1851
1852 * top.c (gdb_rl_operate_and_get_next): Make sure
1853 operate-and-get-next functions correctly even when the history
1854 list is completely filled.
1855
c1bab85b
AC
18562002-08-18 Andrew Cagney <ac131313@redhat.com>
1857
1858 * MAINTAINERS (Target Instruction Set Architectures): Rename
1859 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1860 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1861 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1862 already listed under Host/Native.
1863
1864 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1865 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1866 mips*-*-*.
1867
32089c7c
AC
18682002-08-17 Andrew Cagney <ac131313@redhat.com>
1869
1870 * config/ia64/ia64.mt: New file.
1871 * config/alpha/alpha.mt: New file.
1872 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1873 ia64-linux-gnu. Mention that ia64-elf is broken.
1874 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1875
b4671f85
MK
18762002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1877
1878 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1879 generic_func_frame_valid instead of func_frame_valid.
1880
c8edd8b4
JB
18812002-08-16 Joel Brobecker <brobecker@gnat.com>
1882
1883 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1884 procfs appears to be broken when debugging on multi-processor
1885 machines. So enable software single stepping in order to avoid
1886 using the procfs interface to do next/step operations, using
1887 internal breakpoints instead.
1888
1889 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1890 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1891 make this pc address equal to the value it would have if the
1892 system stepping capability was used. Also set a new flag used
1893 to ensure that we don't readjust the PC one more time later.
1894
1895 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1896 address by DECR_PC_AFTER_BREAK when software single step is
1897 in use for this architecture, as this has already been taken
1898 care of in handle_inferior_event().
1899
238617f6
JB
19002002-08-16 Joel Brobecker <brobecker@gnat.com>
1901
1902 * infrun.c (handle_inferior_event): Minor reformatting, to make
1903 a rather long condition expression easier to read.
1904
541a7aac
AC
19052002-08-16 Andrew Cagney <ac131313@redhat.com>
1906
1907 * Makefile.in (gdbtk.o): Move to end of file.
1908 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1909 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1910 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1911 (gdbtk-wrapper.o, gdbres.o): Ditto.
1912
f92d4a7b
AC
19132002-08-16 Andrew Cagney <ac131313@redhat.com>
1914
1915 * Makefile.in (copying.o): Separate out compile rule.
1916 (hpux-thread.o, procfs.o, signals.o): Ditto.
1917 (v850ice.o, z8k-tdep.o): Ditto.
1918 (tui-file.o): Move to TUI section.
1919 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1920 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1921
1cce71eb
JB
19222002-08-16 Joel Brobecker <brobecker@gnat.com>
1923
1924 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1925 skip_trampoline_code, for better namespace-proofing.
1926
1927 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1928
0851f23d
JB
19292002-08-16 Joel Brobecker <brobecker@gnat.com>
1930
1931 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1932
f8d40ec8
JB
19332002-08-16 Joel Brobecker <brobecker@gnat.com>
1934
1935 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1936 signal, check whether we hit a breakpoint before checking for a
1937 single step breakpoint. Otherwise, GDB fails to notice that a
1938 breakpoint has been hit when stepping onto a breakpoint.
1939
63d022e0
KS
19402002-08-16 Keith Seitz <keiths@redhat.com>
1941
1942 * gdb-events.sh (clear_gdb_event_hooks): New function.
1943 * gdb-events.c: Regenerate.
1944 * gdb-events.h: Regenerate.
1945
6e31adb3
AC
19462002-08-16 Andrew Cagney <ac131313@redhat.com>
1947
1948 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1949 not_a_sw_breakpoint.
1950 * breakpoint.h (bpstat_stop_status): Add parameter names.
1951
c8189ed1
GS
19522002-08-16 Grace Sainsbury <graces@redhat.com>
1953
1954 * remote.c (remote_insert_hw_breakpoint)
1955 (remote_remove_hw_breakpoint): Fix calculation of length field
1956 for Z-packet.
1957
d05285fa
MS
19582002-08-15 Michael Snyder <msnyder@redhat.com>
1959
466d7106
MS
1960 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1961 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1962 (supply_fpregset): Ditto.
1963
d05285fa
MS
1964 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1965 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1966 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1967 (TARGET_READ_SP): Delete.
bf1f5b4c 1968 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1969 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1970 Delete.
1971 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1972 from macros to functions.
bf1f5b4c 1973
d05285fa
MS
1974 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1975 (mips_register_convertible, mips_register_convert_to_virtual,
1976 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1977 (mips_read_sp): New function.
1978 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1979 (mips_do_registers_info): Make static.
1980 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1981 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1982 (mips_register_convert_from_type, mips_register_convert_to_type):
1983 New functions.
1984 (mips_gdbarch_init): Set up function_start_offset,
1985 register_virtual_size, pc_in_sigtramp.
d05285fa 1986
e76f1f2e
AC
19872002-08-15 Andrew Cagney <ac131313@redhat.com>
1988
1989 * infcmd.c (vector_info): New function.
1990 (_initialize_infcmd): Add command "info vector".
1991 (print_vector_info): New function.
1992
1993 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1994 * gdbarch.h, gdbarch.c: Regenerate.
1995
4782dc19
AC
19962002-08-15 Andrew Cagney <ac131313@redhat.com>
1997
1998 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1999 ``print_all''. Only print vector registers when ``print_all''.
2000
23e3a7ac
AC
20012002-08-15 Andrew Cagney <ac131313@redhat.com>
2002
8e186fd6
AC
2003 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2004 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2005
23e3a7ac
AC
2006 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2007 Add `args' parameter.
2008 * gdbarch.h, gdbarch.c: Regenerate.
2009
2010 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2011
2012 * infcmd.c (float_info): Call print_float_info.
2013 (print_float_info): New function. By default, print the
2014 floating-point registers.
2015
2016 * arch-utils.h (default_print_float_info): Delete declaration.
2017 * arch-utils.c (default_print_float_info): Delete function.
2018
e0ca2bb9
MK
20192002-08-16 Mark Kettenis <kettenis@gnu.org>
2020
3f733acc
MK
2021 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2022 out define.
2023
7d8d2918
MK
2024 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2025 FRAME.
2026
1c7cc583
MK
2027 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2028 * configure.host: Make i[3456]86-*-aix host obsolete.
2029 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2030 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2031 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2032 config/i386/xm-i386aix.h: Make files obsolete.
2033 * i386aix-nat.c: Make file obsolete.
2034 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2035 (i386aix-nat.o): Make target obsolete.
2036
e0ca2bb9
MK
2037 * config/i386/nm-gnu.h: Removed.
2038 * config/i386/nm-i386gnu.h: New file.
2039 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2040 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2041 Moved here from ...
2042 * config/i386/tm-i386gnu.h: ... here. Removed.
2043 * config/i386/xm-i386gnu.h: Removed.
2044 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2045 (NAT_FILE): Set to nm-i386gnu.h.
2046 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2047 * i386-tdep.c: New file.
2048 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2049 (i386gnu-tdep.o): Specify dependencies.
2050
16057ec7 20512002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2052
6b99ee2e
MK
2053 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2054 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2055 Adjust a few comments to reflect reality a bit closer.
2056 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2057 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2058 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2059 target_insert_watchpoint, target_remove_watchpoint):
2060 Move defines to ...
2061 * config/i386/nm-i386sco5.h: ... here.
2062 (kernel_u_size): Add prototype. Improve a few comments and add
2063 protection against multiple inclusion.
2064
d9a6f65c
MK
2065 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2066 out define.
2067
047eff6a
MK
2068 * uw-thread.c (SP_ARG0): Define if not already defined.
2069 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2070
dcdb1290
MK
2071 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2072
5d2d0b2a
MK
2073 * config/i386/tm-i386.h: Don't include "regcache.h".
2074
61113f8b
MK
2075 * i387-tdep.h (i387_print_float_info): New prototype.
2076 * i387-tdep.c (print_i387_value, print_i387_ext,
2077 print_i387_status_word, print_i387_control_word): Add `struct
2078 ui_file *' argument and use it for output.
2079 (i387_print_float_info): Renamed from i387_float_info. Add
2080 `struct gdbarch *' and `struct ui_file *' arguments and use the
2081 latter for output.
2082 * i386-tdep.c: Include "i387-tdep.h".
2083 (i386_gdbarch_init): Set print_float_info.
2084 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2085 (FLOAT_INFO): Remove define.
2086
46e0f506
MS
20872002-08-13 Michael Snyder <msnyder@redhat.com>
2088
2089 * mips-tdep.c (mips_push_arguments): Rename to
2090 mips_eabi_push_arguments, and tune for EABI.
2091 (MIPS_REGS_HAVE_HOME_P): Delete.
2092 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2093 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2094 Delete references to mips_regs_have_home_p.
2095
409268de
KS
20962002-08-14 Keith Seitz <keiths@redhat.com>
2097
2098 * Makefile.in (install-gdbtk): Create insight plugin directory.
2099 Install plugins.tcl file.
2100
ffc6a242
KS
21012002-08-14 Keith Seitz <keiths@redhat.com>
2102
2103 * configure.in: Move SUBDIRS to near top of the file so that
2104 --enable options may add things to it.
2105 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2106 * configure: Regenerate.
2107
ebafbe83
MS
21082002-08-13 Michael Snyder <msnyder@redhat.com>
2109
2110 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2111 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2112 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2113
32f6f25d
AC
21142002-08-13 Andrew Cagney <ac131313@redhat.com>
2115
2116 * vax-tdep.c (vax_get_saved_register): Delete function.
2117 (vax_gdbarch_init): Update.
2118 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2119 (ns32k_gdbarch_init): Update.
2120 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2121 (alpha_gdbarch_init): Update.
2122
53826de9
AC
21232002-08-13 Andrew Cagney <cagney@redhat.com>
2124
2125 * regcache.c (init_regcache_descr): Overallocate the
2126 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2127 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2128 nr_raw_registers.
2129 (set_register_cached): Add range checking assertions. Use
2130 current_regcache.
2131
16057ec7 21322002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2133
2134 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2135 numbers for MMX registers.
2136
7b4c2dce
AC
21372002-08-13 Andrew Cagney <cagney@redhat.com>
2138
2139 * i386-tdep.c (i386_gdbarch_init): Use
2140 generic_unwind_get_saved_register.
2141
1e03ad20
KB
21422002-08-13 Kevin Buettner <kevinb@redhat.com>
2143
2144 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2145 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2146 target vector.
2147 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2148 Delete. Add comment regarding this now-deleted target method.
2149
548bcbec
SC
21502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2151
2152 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2153 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2154 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2155 real PC and the page number (if it's within the memory bank window).
2156 (m68hc11_pseudo_register_write): Likewise when saving.
2157 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2158 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2159 (m68hc11_register_raw_size): And use 32-bit for it.
2160 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2161 16K memory bank is used by the prog; also use the virtual pc.
2162
7df11f59
SC
21632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2164
2165 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2166 (m68hc11_gdbarch_init): Install it in gdbarch.
2167 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2168 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2169 (MSYMBOL_SIZE): New for documentation.
2170 (insn_return_kind): Enum to specify how a function returns.
2171 (frame_extra_info): Cleanup and record the return mode.
2172 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2173 register in address computation.
2174 (m68hc11_get_return_insn): New to obtain the return instruction used
2175 by the function.
2176 (m68hc11_frame_init_saved_regs): Take into account the return
2177 instruction used by the function for far and interrupt functions.
2178 (m68hc11_init_extra_frame_info): Take into account page register.
2179 (m68hc11_frame_args_address): Adjust according to the return mode.
2180 (show_regs): Print page register only when it's used.
2181
5706502a
SC
21822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2183
2184 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2185 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2186 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2187 registers.
2188 (m68hc11_register_raw_size): Likewise.
2189
28fc6740
AC
21902002-08-13 Andrew Cagney <cagney@redhat.com>
2191
2192 * i386-tdep.c (i386_register_name): Handle mmx registers.
2193 (mmx_regnum_p): New function.
2194 (i386_mmx_names): New array.
2195 (mmx_num_regs): New variable.
2196 (i386_pseudo_register_read): New function.
2197 (i386_pseudo_register_write): New function.
2198 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2199
2200 * regcache.c (regcache_raw_read_unsigned): New function.
2201 (regcache_raw_read_signed): New function.
2202 * regcache.h (regcache_raw_read_unsigned): Declare.
2203 (regcache_raw_read_signed): Declare.
2204
a378f419
AC
22052002-08-13 Andrew Cagney <cagney@redhat.com>
2206
2207 * regcache.c (regcache_raw_read_as_address): Delete function.
2208 (regcache_cooked_read_signed): New function.
2209 (regcache_cooked_read_unsigned): New function.
2210 * regcache.h (regcache_cooked_read_signed): Declare.
2211 (regcache_cooked_read_unsigned): Declare.
2212 (regcache_raw_read_as_address): Delete declaration.
2213
2214 * blockframe.c (generic_read_register_dummy): Use
2215 regcache_cooked_read_unsigned.
2216 * i386-tdep.c (i386_extract_struct_value_address): Use
2217 regcache_cooked_read_unsigned.
2218
81967506
SC
22192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2220
2221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2222 double sizes according to ELF ABI flags.
2223 (gdbarch_tdep): Record elf_flags.
2224
ffe1f3ee
SC
22252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2226
2227 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2228 (m6812_prolog): They can appear in 68HC12 function prologue.
2229 (m68hc11_frame_chain): Cleanup.
2230
98216c5d
AC
22312002-08-12 Andrew Cagney <cagney@redhat.com>
2232
2233 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2234 declarations.
2235 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2236 (i386_linux_register_raw_size): Delete function.
2237 (i386_linux_init_abi): Update.
2238 * i386-tdep.c (i386_register_raw_size): Delete function.
2239 (i386_register_byte): Delete function.
2240 (i386_gdbarch_init): Update.
2241 (i386_register_size): Delete array.
2242 (i386_register_offset): Delete array.
2243
2244 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2245 (REGISTER_RAW_SIZE): Delete macro.
2246 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2247 (REGISTER_BYTE): Delete macro.
2248
3b19021e
AS
22492002-08-11 Aidan Skinner <aidan@velvet.net>
2250
2251 * ada-lang.c (ada_lookup_partial_symbol)
2252 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2253 prototype names so that grep ^func works properly.
2254
2255 * ada-lang.c (ada_array_element_type)
2256 (ada_lookup_partial_symbol): Fix typos in parameter list.
2257
2258 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2259 Fix prototype names so that grep ^func works properly.
2260
b063e7a2
AC
22612002-08-10 Andrew Cagney <cagney@redhat.com>
2262 Elena Zannoni <ezannoni@redhat.com>
2263 Martin M. Hunt <hunt@redhat.com>
2264
2265 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2266 (build_builtin_type_vec128i): Set the vector bit.
2267 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2268 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2269 (build_builtin_type_vec64): New function.
2270 (build_builtin_type_vec64i): New function.
2271 (build_gdbtypes): Initialize builtin_type_vec64 and
2272 builtin_type_vec64i.
2273
a7e3c2ad
AC
22742002-08-09 Andrew Cagney <cagney@redhat.com>
2275
2276 * regcache.c (regcache_dump): Compare the register offset
2277 with REGISTER_BYTE.
2278 * arch-utils.c (generic_register_byte): New function.
2279 * arch-utils.h (generic_register_byte): Declare.
2280 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2281 * gdbarch.h, gdbarch.c: Regenerate.
2282
af030b9a
AC
22832002-08-09 Andrew Cagney <cagney@redhat.com>
2284
2285 * regcache.c: Include "gdbcmd.h"
2286 (_initialize_regcache): Add commands "maintenance print
2287 registers", "maintenance print raw-registers" and "maintenance
2288 print cooked-registers".
2289 (enum regcache_dump_what): Define.
2290 (dump_endian_bytes): New function.
2291 (regcache_dump): New function.
2292 (regcache_print): New function.
2293 (maintenance_print_registers): New function.
2294 (maintenance_print_raw_registers): New function.
2295 (maintenance_print_cooked_registers): New function.
2296 * Makefile.in (regcache.o): Update dependencies.
2297
cb3d25d1
MS
22982002-08-09 Michael Snyder <msnyder@redhat.com>
2299
2300 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2301 (mips_push_arguments): Correct some comments. Use paddr_nz
2302 for printing addresses in debug output. Replace static
2303 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2304 (mips_n32n64_push_arguments): New function, cloned from
2305 mips_push_arguments and tuned for the n32/n64 ABI.
2306 (mips_push_register): Buffer needs dynamic allocation.
2307 (mips_print_register): Ditto.
2308 (do_gp_register_row): Ditto.
2309 (mips_store_return_value): Ditto.
2310 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2311
2163ab9d
DH
23122002-08-09 Don Howard <dhoward@redhat.com>
2313
2314 * memattr.c (mem_info_command): Print special case of upper bound
2315 as max CORE_ADDR + 1.
2316
b78bcb18
MS
23172002-08-08 Michael Snyder <msnyder@redhat.com>
2318
2319 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2320 returns structs by ref if they're too big to fit in two registers.
2321
ffabd70d
KB
23222002-08-09 Kevin Buettner <kevinb@redhat.com>
2323
2324 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2325 saved regs value.
2326 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2327 mips_find_saved_regs().
2328 (mips_pop_frame): Likewise.
2329
fbcdb4a3
KB
23302002-08-09 Kevin Buettner <kevinb@redhat.com>
2331
2332 * blockframe.c (frame_saved_regs_register_unwind): Revise
2333 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2334 frames are in use.
2335
3c3bea1c
GS
23362002-08-09 Grace Sainsbury <graces@redhat.com>
2337
2338 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2339 T-packets; the 'a' is not taken as a register number.
2340 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2341 (remote_stopped_data_address): New functions; add to target
2342 vector.
2343 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2344 prototypes to match other implementations of this
2345 function. replace integer argument with pointer -- the length
2346 field in the Z-packet is the length of what is pointed to or 1 if
2347 pointer is null. Add to target vector.
2348 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2349 target vector.
2350
2351 From Mark Salter:
2352 * remote.c (remote_wait): Add support to extract optional
2353 watchpoint information from T-packet. Ignore unrecognized
2354 optional info in T-packet.
2355 (remote_async_wait): Ditto.
2356
5d1d95de
CV
23572002-08-09 Corinna Vinschen <vinschen@redhat.com>
2358
2359 * cli/cli-dump.c: Change fopen modes to use binary open modes
2360 as defined in include/fopen-bin.h throughout.
2361
c86b5b38
MS
23622002-08-08 Michael Snyder <msnyder@redhat.com>
2363
2364 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2365
b30590dc
KB
23662002-08-08 Kevin Buettner <kevinb@redhat.com>
2367
2368 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2369 assertion failure by returning early after a warning.
2370
498868ed
KB
23712002-08-08 Kevin Buettner <kevinb@redhat.com>
2372
2373 * mips-tdep.c (mips_find_saved_regs): Make static.
2374 (mips_frame_init_saved_regs): New function.
2375 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2376 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2377 (mips_find_saved_regs): Delete declaration.
2378
b2dd6311
GS
23792002-08-08 Grace Sainsbury <graces@redhat.com>
2380
3c3bea1c
GS
2381 * remote.c (remote_wait, remote_async_wait): Change
2382 thread_num from int to ULONGEST.
2383 (unpack_varlen_hex): Change result parameter from
2384 int * to ULONGEST *.
b2dd6311 2385
ea47855f
AC
23862002-08-08 Andrew Cagney <ac131313@redhat.com>
2387
2388 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2389 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2390 powerpc*-*-*.
2391 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2392
69db8bae
AC
23932002-08-08 Andrew Cagney <cagney@redhat.com>
2394
2395 * gcore.c (override_derive_stack_segment): Delete variable.
2396 (preempt_derive_stack_segment): Delete function.
2397 (derive_stack_segment): Delete function.
2398 (default_derive_stack_segment): Renamed to derive_stack_segment.
2399 (override_derive_heap_segment): Delete variable.
2400 (preempt_derive_heap_segment): Delete function.
2401 (derive_heap_segment): Delete function.
2402 (default_derive_heap_segment): Rename to derive_heap_segment.
2403
cb811fe7
MS
24042002-08-06 Michael Snyder <msnyder@redhat.com>
2405
2406 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2407 * mips-tdep.c (mips_EABI_use_struct_convention,
2408 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2409 New functions. (mips_use_struct_convention): Delete.
2410 (mips_gdbarch_init): set use_gdbarch_convention.
2411
8b389c40
MS
24122002-08-06 Michael Snyder <msnyder@redhat.com>
2413
2414 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2415 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2416 mips_o32_reg_struct_has_addr): New functions.
2417 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2418
5c27f28a
AC
24192002-08-07 Andrew Cagney <ac131313@redhat.com>
2420
2421 * regcache.c (pseudo_register): Delete function.
2422 (fetch_register): Delete function.
2423 (store_register): Delete function.
2424 (regcache_raw_read, legacy_read_register_gen): Use
2425 target_fetch_registers instead of fetch_register.
2426 (legacy_write_register_gen, regcache_raw_write): Use
2427 target_store_register instead of store_register.
2428 (write_register_bytes): Ditto.
2429
2430 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2431 (STORE_PSEUDO_REGISTER): Delete.
2432 * gdbarch.h, gdbarch.c: Regenerate.
2433
5b331675
CV
24342002-08-06 Corinna Vinschen <vinschen@redhat.com>
2435
2436 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2437 write dump file binary.
2438
6acdf5c7
MS
24392002-08-05 Michael Snyder <msnyder@redhat.com>
2440
2441 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2442 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2443 (mips_gdbarch_init): Set N32 target to be mips64.
2444
b2f01c35
KB
24452002-08-06 Kevin Buettner <kevinb@redhat.com>
2446
2447 * frame.c (find_saved_register): Break out of loop once saved
2448 register address is found. Don't mention sparc in loop comment
2449 anymore.
2450
63db5580
KB
24512002-08-06 Kevin Buettner <kevinb@redhat.com>
2452
2453 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2454 mips_default_saved_regsize to 8.
2455
5e34e75e
AC
24562002-08-06 Andrew Cagney <ac131313@redhat.com>
2457
2458 * gcore.c: Do not include <sys/procfs.h>.
2459 * Makefile.in (gcore.o): Update dependencies.
2460
eb4c54a2
AC
24612002-08-06 Andrew Cagney <cagney@redhat.com>
2462
2463 * configure.tgt: Make arc-*-* obsolete.
2464 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2465 * MAINTAINERS: Make arc-elf obsolete.
2466 * arc-tdep.c: Make file obsolete.
2467 * config/arc/arc.mt: Ditto.
2468 * config/arc/tm-arc.h: Ditto.
2469
ced15480
TR
24702002-08-05 Theodore A. Roth <troth@verinet.com>
2471
c1bab85b 2472 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2473
b4743822
AC
24742002-08-05 Andrew Cagney <ac131313@redhat.com>
2475
2476 * mcore-tdep.c (mcore_gdbarch_init): Use
2477 generic_unwind_get_saved_register instead of
2478 generic_get_saved_register.
2479 * v850-tdep.c (v850_gdbarch_init): Ditto.
2480 * frv-tdep.c (frv_gdbarch_init): Ditto.
2481 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2482 * s390-tdep.c (s390_gdbarch_init): Ditto.
2483 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2484 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2485 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2486
3956d554
JB
24872002-08-05 Joel Brobecker <brobecker@gnat.com>
2488
2489 * objfiles.h: Add missing #include "symfile.h"
2490
2491 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2492
8249c0d6
AC
24932002-08-04 Andrew Cagney <ac131313@redhat.com>
2494
2495 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2496 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2497 of FIELD_BITSIZE.
2498
b9d14705
DJ
24992002-08-04 Daniel Jacobowitz <drow@mvista.com>
2500
2501 * NEWS: Cleanup and nitpick.
2502
dd73b9bb
AC
25032002-08-03 Andrew Cagney <ac131313@redhat.com>
2504
2505 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2506
043a27f8
AC
25072002-08-03 Andrew Cagney <ac131313@redhat.com>
2508
2509 * Makefile.in (gdbtk-bp.o): Update dependencies.
2510 (gdbtk-register.o): Ditto.
2511 (gdbtk-varobj.o): Ditto.
2512
46ce284d
AC
25132002-08-03 Andrew Cagney <cagney@redhat.com>
2514
2515 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2516 m68hc11_fetch_pseudo_register.
2517 (m68hc11_pseudo_register_write): Replace
2518 m68hc11_store_pseudo_register.
2519 (m68hc11_gdbarch_init): Update.
2520
b66d6d2e
AC
2521Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2522
2523 * gdbarch.sh: Include "gdb_string.h".
2524 * gdbarch.c: Regenerate.
2525
2526 * regcache.c: Include "gdb_string.h".
2527 * ax-general.c: Ditto.
2528 * varobj.c: Ditto.
2529 * std-regs.c: Ditto.
2530 * fbsd-proc.c: Ditto.
2531 * thread.c: Ditto.
2532
2533 * Makefile.in (regcache.o): Update dependencies.
2534 (thread.o, gdbarch.o): Ditto.
2535 (ax-general.o, gdbarch.o): Ditto.
2536 (varobj.o, std-regs.o): Ditto.
2537 (fbsd-proc.o): Specify dependencies.
2538
29e1842b
AC
25392002-08-02 Andrew Cagney <cagney@redhat.com>
2540
2541 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2542 regnum.
2543 (regcache_cooked_write): Ditto.
2544
68365089
AC
25452002-08-02 Andrew Cagney <ac131313@redhat.com>
2546
2547 * regcache.c (regcache_cooked_read): New function.
2548 (regcache_cooked_write): New function.
2549 (read_register_gen): Rewrite using regcache_cooked_read.
2550 (write_register_gen): Rewrite using regcache_cooked_write.
2551
2552 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2553 Declare.
2554
d8124050
AC
25552002-08-02 Andrew Cagney <cagney@redhat.com>
2556
2557 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2558 Replace the architecture methods register_read and register_write.
2559 * gdbarch.h, gdbarch.c: Regenerate.
2560 * regcache.c (init_regcache_descr): Update.
2561 (read_register_gen): Update.
2562 (write_register_gen): Update.
2563 (supply_register): Update comment.
2564
2565 * sh-tdep.c (sh_gdbarch_init): Update.
2566 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2567 `regcache' and `gdbarch' parameters. Make `buffer' a void
2568 pointer. Update code.
2569 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2570 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2571 void pointer. Update code.
2572 (sh64_register_write): Delete.
2573 (sh4_register_read): Delete.
2574 (sh64_register_read): Delete.
2575 (sh4_register_write): Delete.
2576 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2577 void pointer, `to' parameter a void pointer.
2578 (sh_sh64_register_convert_to_raw): Ditto.
2579
a6425924
KB
25802002-08-01 Kevin Buettner <kevinb@redhat.com>
2581
2582 * mips-tdep.c (mips_register_virtual_type): Use architecture
2583 invariant return values.
2584
ff5922b5
AC
25852002-08-01 Andrew Cagney <cagney@redhat.com>
2586
2587 * linux-proc.c: Include "gdb_string.h".
2588 * Makefile.in (linux-proc.o): Update dependency list.
2589
32a6503c
KB
25902002-08-01 Kevin Buettner <kevinb@redhat.com>
2591
2592 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2593 comment.
2594
ccaa32c7
GS
25952002-08-01 Grace Sainsbury <graces@redhat.com>
2596
2597 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2598 to_insert_watchpoint, to_remove_watchpoint,
2599 to_stopped_by_watchpoint, to_stopped_data_address,
2600 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2601 target vecctor. Define their corresponding macros so they call
2602 them.
2603
2604 * target.c: Add default and debug versions of for
2605 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2606 to_insert_watchpoint, to_remove_watchpoint,
2607 to_stopped_by_watchpoint, to_stopped_data_address,
2608 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2609
78fde5f8
KB
26102002-08-01 Kevin Buettner <kevinb@redhat.com>
2611
2612 * mips-tdep.c (mips_register_virtual_type): New function.
2613 (mips_gdbarch_init): Register mips_register_virtual_type()
2614 with gdbarch machinery.
2615 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2616 this file instead of tm-bigmips.h.
2617 (MIPS_REGSIZE): Delete this macro.
2618 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2619 multiarch version in mips-tdep.c will be found.
2620
db034ac5
AC
26212002-08-01 Andrew Cagney <cagney@redhat.com>
2622
2623 * NEWS: Menion that CHILL has been made obsolete.
2624
2625 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2626 * stabsread.c (read_range_type): Ditto.
2627 * gdbtypes.h: Ditto.
2628 * language.c (binop_type_check): Ditto.
2629 (binop_result_type): Ditto.
2630 (integral_type): Ditto.
2631 (character_type): Ditto.
2632 (string_type): Ditto.
2633 (boolean_type): Ditto.
2634 (structured_type): Ditto.
2635 (lang_bool_type): Ditto.
2636 (binop_type_check): Ditto.
2637 * language.h (_LANG_chill): Ditto.
2638 * dwarfread.c (set_cu_language): Ditto.
2639 * dwarfread.c (CHILL_PRODUCER): Ditto.
2640 * dwarfread.c (handle_producer): Ditto.
2641 * expression.h (enum exp_opcode): Ditto.
2642 * eval.c: Ditto for comments.
2643 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2644 * expprint.c (print_subexp): Ditto.
2645 (print_subexp): Ditto.
2646 * valops.c (value_cast): Ditto.
2647 (search_struct_field): Ditto.
2648 * value.h (COERCE_VARYING_ARRAY): Ditto.
2649 * symfile.c (init_filename_language_table): Ditto.
2650 (add_psymbol_with_dem_name_to_list): Ditto.
2651 * valarith.c (value_binop): Ditto.
2652 (value_neg): Ditto.
2653 * valops.c (value_slice): Ditto.
2654 * symtab.h (union language_specific): Ditto.
2655 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2656 (SYMBOL_DEMANGLED_NAME): Ditto.
2657 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2658 * defs.h (enum language): Ditto.
2659 * symtab.c (got_symtab): Ditto.
2660 * utils.c (fprintf_symbol_filtered): Ditto.
2661
2662 * ch-typeprint.c: Make file obsolete.
2663 * ch-valprint.c: Make file obsolete.
2664 * ch-lang.h: Make file obsolete.
2665 * ch-exp.c: Make file obsolete.
2666 * ch-lang.c: Make file obsolete.
2667
2668 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2669 CHILL_LIB.
2670 (TARGET_FLAGS_TO_PASS): Ditto.
2671 (CHILLFLAGS): Obsolete.
2672 (CHILL): Obsolete.
2673 (CHILL_FOR_TARGET): Obsolete.
2674 (CHILL_LIB): Obsolete.
2675 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2676 ch-valprint.c.
2677 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2678 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2679 ch-lang.o.
2680 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2681 targets.
2682
8aaf0b47
JB
26832002-07-31 Joel Brobecker <brobecker@gnat.com>
2684
2685 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2686 This does not change anything at the moment, but will be helpful
2687 later when full Ada support is integrated.
2688
f3a7b3a5
KB
26892002-07-31 Kevin Buettner <kevinb@redhat.com>
2690
2691 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2692 help message.
2693
fb850278
KB
26942002-07-31 Kevin Buettner <kevinb@redhat.com>
2695
2696 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2697 and save it in a local variable. Use variable in later test.
2698
e3bddbfa
KB
26992002-07-31 Kevin Buettner <kevinb@redhat.com>
2700
2701 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2702 test. (Thanks to Daniel Jacobowitz.)
2703
28d169de
KB
27042002-07-31 Kevin Buettner <kevinb@redhat.com>
2705
2706 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2707 (mips_abi_strings): Add "n64".
2708 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2709
7fe7e44e
KB
27102002-07-31 Kevin Buettner <kevinb@redhat.com>
2711
2712 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2713 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2714
c6caf090
KB
27152002-07-31 Kevin Buettner <kevinb@redhat.com>
2716
2717 * utils.c (host_pointer_to_address, address_to_host_pointer):
2718 Use gdb_assert() instead of explicit call to internal_error().
2719
c41669e0
KB
27202002-07-30 Kevin Buettner <kevinb@redhat.com>
2721
2722 * Makefile.in (rs6000-nat.o): Update dependencies.
2723
2724 From Nicholas Duffek:
2725 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2726 (aix-thread.o): New rule.
2727 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2728 * config/powerpc/aix432.mh: New file.
2729
2fda4977
DJ
27302002-07-30 Daniel Jacobowitz <drow@mvista.com>
2731
2732 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2733 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2734 (fetch_core_registers, ppc_linux_supply_gregset)
2735 (ppc_linux_supply_fpregset): New functions.
2736 (ppc_linux_regset_core_fns): New.
2737 (_initialize_ppc_linux_tdep): Call add_core_fns.
2738 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2739 and ppc_linux_supply_gregset.
2740 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2741 (supply_fpregset): Call ppc_linux_supply_fpregset.
2742 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2743 corelow.o.
2744 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2745
729051e6
DJ
27462002-07-30 Daniel Jacobowitz <drow@mvista.com>
2747
2748 * symtab.c (lookup_symbol): Demangle before lowercasing.
2749
5f8a3188
AC
27502002-07-30 Andrew Cagney <ac131313@redhat.com>
2751
2752 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2753 declaration.
2754 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2755 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2756 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2757 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2758 "gdb_string.h".
2759 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2760 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2761 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2762 (avr-tdep.o, mon960-rom.o): Ditto.
2763 (aout_stabs_gnu_h): Define.
2764 (symtab_h): Remove $(gdb_obstack_h).
2765
67f07146
JB
27662002-07-30 Jim Blandy <jimb@redhat.com>
2767
2768 Patch from David Carlton <carlton@math.stanford.edu>:
2769 * gdbinit.in: Move the `dir' commands that add GDB's own source
2770 directory to the search path to the end, so that the `gdb' source
2771 directory will be searched first.
2772
04ea0df1
AC
27732002-07-29 Andrew Cagney <ac131313@redhat.com>
2774
2775 * gdb_obstack.h: New file.
2776 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2777 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2778 * objfiles.h: Include "gdb_obstack.h".
2779 * Makefile.in (gdb_obstack_h): Define.
2780 (symtab_h): Add $(gdb_obstack_h).
2781 (objfiles_h): Add $(gdb_obstack_h).
2782
2783 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2784 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2785 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2786 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2787 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2788 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2789 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2790 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2791
2792 * Makefile.in (bcache.o): Update dependencies.
2793 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2794 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2795 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2796 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2797 (stabsread.o, symfile.o, symmisc.o): Ditto.
2798 (symtab.o, typeprint.o, macroexp.o): Ditto.
2799 (macrotab.o, mdebugread.o): Ditto.
2800 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2801 (coff_ecoff_h, aout_aout64_h): Define.
2802 (aout_stabs_gnu_h, libaout_h): Define.
2803
d138e37a
AC
28042002-07-29 Andrew Cagney <cagney@redhat.com>
2805
2806 * regcache.c (struct regcache_descr): Rename nr_registers to
2807 nr_cooked_registers. Revise comments describing the structure
2808 member fields.
2809 (init_regcache_descr): Update.
2810 (init_legacy_regcache_descr): Update.
2811 (read_register_gen, write_register_gen): When a cooked register in
2812 the raw register range, directly access the value from the raw
2813 register cache.
2814
460e6ec3
AC
28152002-07-29 Andrew Cagney <ac131313@redhat.com>
2816
2817 * z8k-tdep.c: Do not include "obstack.h".
2818 * h8300-tdep.c, h8500-tdep.c: Ditto.
2819 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2820 * valprint.c, v850-tdep.c: Ditto.
2821 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2822 * mn10200-tdep.c: Ditto.
2823
2824 * Makefile.in (z8k-tdep.o): Update dependencies.
2825 (m68hc11-tdep.o, valprint.o): Ditto.
2826 (v850-tdep.o, d10v-tdep.o): Ditto.
2827 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2828 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2829 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2830 (sh_opc_h, gdb_sim_sh_h): Define.
2831 (elf_sh_h, elf_bfd_h): Define.
2832 (opcode_m68hc11_h): Define.
2833 (OPCODES_SRC, OPCODES_DIR): define.
2834 (OPCODES): Use $(OPCODES_DIR).
2835 (gdb_sim_d10v_h): Rename sim_d10v_h.
2836 (gdb_sim_arm_h): Rename sim_arm_h.
2837
790c9cf0
KB
28382002-07-26 Kevin Buettner <kevinb@redhat.com>
2839
2840 * utils.c (host_pointer_to_address, address_to_host_pointer):
2841 Change internal_error() message to indicate function responsible
2842 for the error.
2843
9647fa49
KB
28442002-07-26 Kevin Buettner <kevinb@redhat.com>
2845
2846 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2847 calls to local_hex_string_custom().
2848
dabbe2c0
KB
28492002-07-26 Kevin Buettner <kevinb@redhat.com>
2850
2851 * irix5-nat.c: Move IRIX shared library support from here...
2852 * solib-irix.c: ...to here. Revised substantially to work with
2853 generic solib framework.
2854
b96d0a4e
KB
2855 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2856 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2857 * mips-irix-tdep.c: New file.
2858
313fb2f6
KB
2859 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2860 (mips-irix-tdep.o, solib-irix.o): New rules.
2861 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2862 solib-irix.o.
2863 * config/mips/irix6.mt (TDEPFILES): Likewise.
2864 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2865
ab2eaf26
KB
28662002-07-26 Kevin Buettner <kevinb@redhat.com>
2867
177e4768 2868 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2869 disabled (via ``#if 0'') includes.
2870
7244546a
KB
28712002-07-26 Kevin Buettner <kevinb@redhat.com>
2872
2873 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2874 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2875 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2876 Add support for the fpscr register.
2877 * rs6000-nat.c (regmap, fetch_inferior_registers)
2878 (store_inferior_registers, fetch_core_registers): Likewise.
2879
dd7be90a
KB
28802002-07-26 Kevin Buettner <kevinb@redhat.com>
2881
2882 * rs6000-nat.c (language.h): Include.
2883 (special_regs): Delete this array.
2884 (regmap): New function.
2885 (fetch_register, store_register): Use regmap() to map gdb
2886 register numbers to ptrace register numbers. Also, use
2887 outputs from regmap() to make decisions regarding type of
2888 ptrace() call to make. In particular, don't compare against
2889 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2890 (fetch_inferior_registers, store_inferior_registers): Where
2891 possible, obtain register numbers from tdep struct. Don't
2892 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2893 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2894 (LAST_UISA_SP_REGNUM): Delete.
2895
11bf77db
KB
28962002-07-25 Kevin Buettner <kevinb@redhat.com>
2897
2898 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2899 (fetch_registers, store_register, fetch_core_registers): Don't
2900 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2901 regcache_collect() as appropriate.
2902 (find_toc_address): Format hex address with local_hex_string().
2903
06afebeb
AC
29042002-07-25 Andrew Cagney <ac131313@redhat.com>
2905
2906 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2907 bfd/elf32-frv.c.
2908
8c554d79
TT
29092002-07-24 Tom Tromey <tromey@redhat.com>
2910
2911 * jv-exp.y: Marked all strings with _().
2912 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2913 internal_error.
2914 (MethodInvocation, CastExpression, parse_number, yyerror,
2915 java_type_from_name, push_expression_name, yylex): Typo fixes.
2916
e4c242d9
DJ
29172002-07-24 Daniel Jacobowitz <drow@mvista.com>
2918
2919 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2920 (tee_file_flush, tee_file_write, tee_file_fputs)
2921 (tee_file_isatty): New.
2922 * ui-file.h (tee_file_new): Add prototype.
2923
ebf56fd3
AS
29242002-07-24 Aidan Skinner <aidan@velvet.net>
2925
2926 * ada-lang.c: Change k&r style function definitions to prototyped
2927 form.
2928 * ada-typeprint.c: Change k&r style function definitions to prototyped
2929 form.
2930 * ada-valprint.c: Change k&r style function definitions to prototyped
2931 form.
2932
7fb623f7
AC
29332002-07-24 Andrew Cagney <cagney@redhat.com>
2934
2935 * README: Remove reference to remote-bug.
2936 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2937 remote-bug.c.
2938 (m88k-nat.o): Delete rule.
2939 (m88k-tdep.o): Delete rule.
2940 (remote-bug.o): Delete rule.
2941 * MAINTAINERS: Mark as obsolete.
2942 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2943 * m88k-tdep.c: Make file obsolete.
2944 * config/m88k/m88k.mh: Ditto.
2945 * config/m88k/delta88v4.mh: Ditto.
2946 * config/m88k/delta88v4.mt: Ditto.
2947 * config/m88k/delta88.mt: Ditto.
2948 * config/m88k/delta88.mh: Ditto.
2949 * remote-bug.c: Ditto.
2950 * config/m88k/tm-delta88.h: Ditto.
2951 * config/m88k/nm-delta88v4.h: Ditto.
2952 * config/m88k/xm-delta88.h: Ditto.
2953 * config/m88k/xm-dgux.h: Ditto.
2954 * config/m88k/tm-m88k.h: Ditto.
2955 * config/m88k/nm-m88k.h: Ditto.
2956 * config/m88k/tm-delta88v4.h: Ditto.
2957 * m88k-nat.c: Ditto.
2958 * cxux-nat.c: Ditto.
2959 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2960 and m88*-*-* obsolete.
2961 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2962 m88*-*-* obsolete.
2963
37611a2b
AC
29642002-07-24 Andrew Cagney <cagney@redhat.com>
2965
2966 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2967 constant. Same for local pointer variables.
2968 (extract_signed_integer): Ditto.
2969 * defs.h (extract_unsigned_integer): Update.
2970 (extract_signed_integer): Update.
2971
1aaa5f99
AC
29722002-07-24 Andrew Cagney <cagney@redhat.com>
2973
2974 * regcache.c (regcache_raw_write): Change buf parameter to a
2975 constant void pointer.
2976 (regcache_raw_read): Change buf parameter to a void pointer.
2977 (legacy_write_register_gen): Change myaddr parameter a constant
2978 void pointer.
2979 (supply_register): Change val parameter to a const void pointer.
2980 * regcache.h (regcache_raw_write): Update declaration.
2981 (regcache_raw_read): Update declaration.
2982 (supply_register): Update declaration.
2983
b4f5539f
TT
29842002-07-24 Tom Tromey <tromey@redhat.com>
2985
2986 * defs.h (gdb_readline_wrapper): Declare.
2987 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2988 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2989 * top.c (gdb_readline_wrapper): New function.
2990 (command_line_input): Use it.
2991
0818c12a
AC
29922002-07-24 Andrew Cagney <cagney@redhat.com>
2993
2994 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2995 regcache_read and regcache_write.
2996 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2997 * regcache.c: Update.
2998 * sh-tdep.c (sh64_push_arguments): Update comment.
2999 (sh_pseudo_register_read): Update.
3000 (sh_pseudo_register_write): Update.
3001 (sh4_register_read): Update.
3002 (sh4_register_write): Update.
3003 (sh64_pseudo_register_read): Update.
3004 (sh64_pseudo_register_write): Update.
3005 (sh64_register_read): Update.
3006 (sh64_register_write): Update.
3007 * i386-tdep.c (i386_extract_return_value): Update.
3008 (i386_extract_struct_value_address): Update.
3009 (i386_extract_return_value): Update.
3010 * blockframe.c (generic_read_register_dummy): Update.
3011 (generic_call_dummy_register_unwind): Update
3012 * infrun.c (write_inferior_status_register): Update.
3013
f7321c06
JB
30142002-07-23 Jim Blandy <jimb@redhat.com>
3015
3016 * parser-defs.h (expression_context_pc): Make this extern.
3017 (Thanks to Michael Snyder.)
3018
2037aebb
AC
30192002-07-23 Andrew Cagney <ac131313@redhat.com>
3020
3021 GDB 5.2.1 released from 5.2 branch.
3022 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3023 * README: Update to mention 5.2.1.
3024
66504d44
MS
30252002-07-23 Mark Salter <msalter@redhat.com>
3026
3027 * remote.c (remote_read_bytes): Fix check for error.
3028
27bae383
KB
30292002-07-22 Kevin Buettner <kevinb@redhat.com>
3030
3031 * aix-thread.c (language.h): Include.
3032 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3033 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3034 Print newlines at end of debug messages.
3035 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3036 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3037
30382002-07-22 Kevin Buettner <kevinb@redhat.com>
3039
3040 * aix-thread.c (ppc-tdep.h): Include.
3041 (special_register_p): New function.
3042 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3043 (store_regs_user_thread): Use register number information from
3044 gdbarch_tdep struct instead of hardcoded offsets relative to
3045 FIRST_UISA_SP_REGNUM.
3046 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3047 special_register_p() instead of using FPLAST_REGNUM and
3048 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3049 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3050 will be MQ's register number.
3051
30522002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3053
3054 * aix-thread.c (ops): Rename to aix_thread_ops.
3055 (base_ops): Rename to base_target.
3056 (ops_attach): Rename to aix_thread_attach.
3057 (ops_detach): Rename to aix_thread_detach.
3058 (ops_resume): Rename to aix_thread_detach.
3059 (ops_wait): Rename to aix_thread_wait.
3060 (ops_kill): Rename to aix_thread_kill.
3061 (init_ops): Rename to init_aix_thread_ops.
3062 (ops_fetch_register): Rename to aix_thread_fetch_register.
3063 (ops_store_register): Rename to aix_thread_store_register.
3064 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3065 (ops_thread_alive): Rename to aix_thread_thread_alive.
3066 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3067 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3068 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3069 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3070 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3071 (store_regs_lib): Rename to store_regs_user_thread.
3072 (store_regs_kern): Rename to store_regs_kernel_thread.
3073
27bae383 30742002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3075
3076 * aix-thread.c (ops_prepare_to_store): Eliminate.
3077 (init_ops): Don't initialize ops.prepare_to_store.
3078 (store_regs_kern): Pre-fetch register buffers from child,
3079 because some registers may not be in the cache. Copy
3080 regs from register cache only if they are cached.
3081 (store_regs_lib): Copy regs from register cache only
3082 if they are cached.
3083 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3084 fill_gprs64): Ditto.
3085
61c5da0b
KB
30862002-07-22 Kevin Buettner <kevinb@redhat.com>
3087
3088 * aix-thread.c (gdb_assert.h): Include.
3089 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3090 register sizes (from register cache) match size of buffer holding
3091 register data.
3092 (fill_sprs32): Change parameter types to match those in the ptrace()
3093 buffer.
3094 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3095 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3096
30972002-07-22 Michael Snyder <msnyder@redhat.com>
3098
3099 * aix-thread.c (supply_sprs64): Cosmetic change.
3100 (supply_sprs32): Cosmetic change.
3101 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3102 (fill_sprs64): Use regcache_collect instead of read_register.
3103 (store_regs_lib): Use regcache_collect instead of
3104 read_register. Use fill_sprs32 instead of fill_sprs64,
3105 if debugging a 32-bit architecture.
3106 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3107 out of the register cache, instead of passing a pointer into
3108 the register cache directly to ptrace. Use regcache_collect
3109 insteaad of read_register.
3110 (ops_prepare_to_store): Use target_read_registers instead
3111 of read_register_bytes.
3112
36479eb1
AS
31132002-07-20 Aidan Skinner <aidan@velvet.net>
3114
3115 * MAINTAINERS: Add self under write after approval.
3116
80ae6ee2
AS
31172002-07-20 Aidan Skinner <aidan@velvet.net>
3118
3119 * ada-tasks.c: Change k&r style function definitions to prototyped
3120 form.
3121
8a8ab2b9
AC
31222002-07-19 Andrew Cagney <ac131313@redhat.com>
3123
3124 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3125 * x86-64-tdep.c: Include "objfiles.h".
3126 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3127 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3128
fb16b900
ML
31292002-07-17 Michal Ludvig <michal@suse.cz>
3130
3131 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3132 (update_context): Initialise cfa variable.
3133
0fe7bf7b
MS
31342002-07-17 Michael Snyder <msnyder@redhat.com>
3135
3136 * aix-thread.c: Shorten some long lines.
3137 Bring comments into line with code spec.
3138
488f131b
JB
31392002-07-18 Joel Brobecker <brobecker@gnat.com>
3140
3141 * infrun.c: Re-indent using gdb_indent.sh.
3142
46c415d2
JB
31432002-07-18 Joel Brobecker <brobecker@gnat.com>
3144
3145 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3146 Leave the indentation temporarily untouched, to minimize the diffs.
3147
cdecafbe
EZ
31482002-07-18 Elena Zannoni <ezannoni@redhat.com>
3149
3150 * stabsread.c: Make os9k sections of the code obsolete,
3151 for real this time.
3152 * stabsread.h: Make os9k sections of the code obsolete.
3153
7b6aa020
ML
31542002-07-18 Michal Ludvig <mludvig@suse.cz>
3155
09ec9b38
ML
3156 * linux-low.c (regsets_store_inferior_registers): Add free()
3157 at the end of a loop to prevent memory leak.
3158 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3159 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3160 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3161 line a comment.
4894ac5d 3162 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3163
233282cd
JB
31642002-07-17 Jim Blandy <jimb@redhat.com>
3165
3166 * macrocmd.c (info_macro_command): Remove newline from error
3167 message.
3168
7b6aa020 31692002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3170
3171 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3172 (sh_gdbarch_init): Use it for sh-dsp.
3173
f7ef9339
KB
31742002-07-16 Kevin Buettner <kevinb@redhat.com>
3175
3176 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3177 64-bit DWARF2 format.
3178
8dd72958
JB
31792002-07-16 Joel Brobecker <brobecker@gnat.com>
3180
3181 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3182 <sys/proc.h> when not available.
3183
a99a9e1b
AC
31842002-07-16 Andrew Cagney <ac131313@redhat.com>
3185
3186 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3187 * stabsread.c: Make os9k sections of the code obsolete.
3188 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3189 * config/i386/i386os9k.mt: Make file obsolete.
3190 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3191 (COMMON_OBS): Remove os9kread.o
3192 (SFILES): Remove os9kread.c.
3193 (os9kread.o, remote-os9k.o): Make target obsolete.
3194 * remote-os9k.c: Make file obsolete.
3195 * os9kread.c: Make file obsolete.
3196 * Makefile.in
3197
7a3085c1
AC
31982002-07-16 Andrew Cagney <ac131313@redhat.com>
3199
3200 * NEWS: Mention that the FR30 has been made obsolete.
3201 * fr30-tdep.c: Make file obsolete.
3202 * config/fr30/tm-fr30.h: Ditto.
3203 * config/fr30/fr30.mt: Ditto.
3204 * configure.tgt: Make fr30-*-elf obsolete.
3205 * MAINTAINERS: Make fr30-elf obsolete.
3206
28a93f5a
PM
32072002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3208
3209 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3210 found is not inside a section.
3211
be006b8b
KB
32122002-07-15 Kevin Buettner <kevinb@redhat.com>
3213
3214 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3215 strerror().
3216 (pdc_realloc): Use xrealloc() instead of realloc().
3217
14fa3751
KB
32182002-07-15 Kevin Buettner <kevinb@redhat.com>
3219
3220 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3221 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3222 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3223 macros.
3224
42cc437f
KB
32252002-07-15 Kevin Buettner <kevinb@redhat.com>
3226
3227 * aix-thread.c (ptrace_check): Eliminate goto.
3228 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3229 problem.
3230
8e2c28d4
KB
32312002-07-15 Kevin Buettner <kevinb@redhat.com>
3232
3233 * aix-thread.c (gdbcmd.h): Include.
3234 (DEBUG, DBG, DBG2, dbg): Eliminate.
3235 (debug_aix_thread): New static global.
3236 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3237 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3238 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3239 invocations to DBG and DBG2 macros to test against
3240 ``debug_aix_thread'' and call fprintf_unfiltered().
3241 (_initialize_aix_thread): Add new command "set debug aix-thread".
3242
30413464
AC
32432002-07-15 Andrew Cagney <ac131313@redhat.com>
3244
3245 From Gerhard Tonn <TON@de.ibm.com>:
3246 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3247 instead of supply_register.
3248
7c43edc1
AC
32492002-07-15 Andrew Cagney <ac131313@redhat.com>
3250
3251 * dwarf2cfi.c: Include "gdb_assert.h".
3252 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3253 non-NULL.
3254 (update_context): Do not use __func__. Add missing ``break''.
3255 (update_context): Do not use __func__.
3256
9364a0ef
EZ
32572002-07-15 Elena Zannoni <ezannoni@redhat.com>
3258
3259 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3260 and its setting. Set gdbarch instruction printing functions
3261 directly. For non-rs6000 case use new function
3262 gdb_print_insn_powerpc.
3263 (gdb_print_insn_powerpc): New function.
3264
3fbeef0b
AC
32652002-07-13 Andrew Cagney <ac131313@redhat.com>
3266
92eb23c5 3267 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3268 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3269 * configure.tgt: Mark d30v-*-* as obsolete.
3270 * d30v-tdep.c: Mark file as obsolete.
3271 * config/d30v/d30v.mt: Ditto.
3272 * config/d30v/tm-d30v.h: Ditto.
3273
aacb1f0a
AS
32742002-07-13 Aidan Skinner <aidan@velvet.net>
3275
3276 * ada-tasks.c (add_task_entry): replace calls to
3277 malloc() with xmalloc
3278 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3279
3280 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3281 ada_finish_decode_line_1, all_sals_for_line
3282 ada_breakpoint_rewrite): replace calls to free() with xfree()
3283
c11d79f2
KB
32842002-07-12 Kevin Buettner <kevinb@redhat.com>
3285
3286 From Nicholas Duffek (with minor changes by Martin Hunt,
3287 Louis Hamilton, and Kevin Buettner):
3288 * aix-thread.c: New file.
3289
8e19ed76
PS
32902002-07-12 Petr Sorfa <petrs@caldera.com>
3291
3292 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3293 complaint for invalid attribute class or form.
3294 (read_func_scope): DW_AT_frame_base
3295 better handling of DW_AT_block*.
3296 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3297 better handling of DW_AT_block*.
3298 (read_common_block): DW_AT_location
3299 better handling of DW_AT_block*.
3300 (read_partial_die): DW_AT_location better handling
3301 of DW_AT_block*.
3302 (new_symbol): DW_AT_external better handling of
3303 DW_AT_block*. Proper initialization of variable
3304 "addr".
3305 (attr_form_is_block): New function that returns true
3306 if the attribute's form is of DW_FORM_block*.
3307
295401f7
DJ
33082002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3309
3310 * valops.c (find_method_list): Remove comment about
3311 removed STATIC_MEMFUNCP argument.
3312 (value_find_oload_method_list): Likewise.
3313
e42dc924
KB
33142002-07-12 Kevin Buettner <kevinb@redhat.com>
3315
3316 From Nicholas Duffek:
3317 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3318 target_new_objfile_hook.
3319
6904b546
KB
33202002-07-12 Kevin Buettner <kevinb@redhat.com>
3321
3322 From Nicholas Duffek:
3323 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3324 csect.
3325
53fe9346
AC
33262002-07-12 Andrew Cagney <cagney@redhat.com>
3327
3328 * MAINTAINERS: Mention --enable-sim-build-warnings.
3329 (m68hc11-elf): Disable sim build warnings.
3330 (m32r-elf): Mark as broken obsolete candidate.
3331 (x86_64-linux-gnu): Mark as buildable with -Werror.
3332 (arm-elf): Change -w to ``,'' which enables warnings but not
3333 -Werror.
3334
af5f3db6
AC
33352002-07-12 Andrew Cagney <ac131313@redhat.com>
3336
3337 * bcache.h: Update copyright.
3338 (struct bstring, struct bcache): Move definition to "bcache.c".
3339 Replaced by opaque declaration.
3340 (bcache_xfree): Replace free_bcache.
3341 (bcache_xmalloc, bcache_memory_used): Declare.
3342
3343 * bcache.c: Update copyright.
3344 (struct bstring, struct bcache): Moved to here from "bcache.h".
3345 Update comments.
3346 (bcache_xmalloc, bcache_memory_used): New functions.
3347 (bcache_xfree): Replace function free_bcache.
3348
3349 * Makefile.in (objfiles.o): Add $(bcache_h).
3350 (objfiles_h): Remove $(bcache_h).
3351 (symfile.o): Add $(bcache_h).
3352
3353 * symmisc.c: Update copyright.
3354 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3355 (print_objfile_statistics): Use bcache_memory_used.
3356
3357 * symfile.c: Include "bcache.h".
3358 (reread_symbols): Use bcache_xfree.
3359 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3360 (add_psymbol_to_list): Pass psymbol_cache by value.
3361 (add_psymbol_with_dem_name_to_list): Ditto.
3362
3363 * objfiles.h: Update copyright.
3364 (struct bcache): Declare opaque. Do not include "bcache.h".
3365 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3366 bcache'' pointers.
3367 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3368
3369 * objfiles.c: Include "bcache.h". Update copyright.
3370 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3371 macro_cache.
3372 (free_objfile): Use bcache_xfree.
3373
444199e7
GS
33742002-07-11 Grace Sainsbury <graces@redhat.com>
3375
3376 * monitor.c (monitor_fetch_register): Make name a constant.
3377 (monitor_store_register): Same.
3378
261397f8
DJ
33792002-07-11 Daniel Jacobowitz <drow@mvista.com>
3380
3381 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3382 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3383 (finish_block) For non-function blocks, hash the symbol table. For
3384 function blocks, mark the symbol table as unhashed.
3385 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3386 (msymbol_hash_iw): Likewise.
3387 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3388 value.
3389 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3390 (lookup_minimal_symbol): Likewise for both.
3391 * symtab.h (struct block): Add `hashtable' flag. Comment the
3392 hashtable.
3393 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3394 (ALL_BLOCK_SYMBOLS): Update.
3395 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3396 (struct symbol): Add `hash_next' pointer.
3397 * symtab.c (lookup_block_symbol): Search using the hash table when
3398 possible.
3399 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3400 (search_symbols, find_addr_symbol): Likewise.
3401
3402 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3403 (read_dst_symtab): Likewise.
3404 * jv-lang.c (get_java_class_symtab): Likewise.
3405 * mdebugread.c: Include "gdb_assert.h".
3406 (shrink_block): Assert that the block being modified is not hashed.
3407 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3408 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3409 symbols.
3410 (dump_symtab): Recognize hashed blocks.
3411 * printcmd.c (print_frame_args): Assert that function blocks do not
3412 have hashed symbol tables.
3413 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3414 (fill_in_ada_prototype, debug_print_block): Likewise.
3415 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3416
6f0eaa01
CV
34172002-07-11 Corinna Vinschen <vinschen@redhat.com>
3418
3419 * stack.c (print_frame): Use result of frame_address_in_block()
3420 instead of fi->pc when evaluating symbols.
3421 (backtrace_command_1): Ditto.
3422
a208b0cb
AC
34232002-07-11 Andrew Cagney <cagney@redhat.com>
3424
3425 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3426 Make static.
3427
3428 * arm-tdep.c (arm_register_name): Make return type constant.
3429
a6b6b089
AC
34302002-07-10 Andrew Cagney <ac131313@redhat.com>
3431
5ae5f592
AC
3432 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3433 prototype.
3434 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3435 * s390-tdep.c (s390_fp_regnum): Ditto.
3436 (s390_read_fp): Ditto.
3437 (s390_pop_frame): Ditto.
3438 (_initialize_s390_tdep): Ditto.
3439 * remote.c (get_remote_state): Ditto.
3440 * procfs.c (mappingflags): Ditto.
3441 * memattr.c (_initialize_mem): Ditto.
3442 * mcore-tdep.c (mcore_pop_frame): Ditto.
3443 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3444 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3445 * language.c (set_case_str): Ditto.
3446 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3447 * frv-tdep.c (new_variant): Ditto.
3448 (frv_stopped_data_address): Ditto.
3449 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3450 (context_alloc): Ditto.
3451 (frame_state_alloc): Ditto.
3452 (unwind_tmp_obstack_init): Ditto.
3453 (unwind_tmp_obstack_free): Ditto.
3454 (cfi_read_fp): Ditto.
3455 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3456 (cris_pop_frame): Ditto.
3457 * c-lang.c (scanning_macro_expansion): Ditto.
3458 (finished_macro_expansion): Ditto.
3459 (c_preprocess_and_parse): Ditto.
3460 * gdbarch.sh: Ditto.
3461 * gdbarch.h, gdbarch.c: Regenerate.
3462 * config/mn10200/tm-mn10200.h: Adjust indentation.
3463 * target.c: Adjust indentation.
3464 * symtab.h: Adjust indentation.
3465 * stabsread.h: Adjust indentation.
3466 * remote-es.c: Adjust indentation.
3467 * os9kread.c: Adjust indentation.
3468
34692002-07-10 Andrew Cagney <ac131313@redhat.com>
3470
a6b6b089
AC
3471 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3472 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3473
a1789893
GS
34742002-07-10 Grace Sainsbury <graces@redhat.com>
3475
3476 * NEWS: Mention m68k, mcore multi-arching.
3477 * MAINTAINERS: Change status of m68k, mcore to reflect
3478 multi-arching.
3479
02f0d45d
DJ
34802002-07-10 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * valops.c (find_overload_match): Free oload_syms.
3483
f15f768e
JB
34842002-07-09 Joel Brobecker <brobecker@gnat.com>
3485
3486 Define HAVE_SYS_PROC_H if sys/proc.h exists
3487 * configure.in: Add check for sys/proc.h
3488 * config.in: Regenerate.
3489 * configure: Regenerate.
3490
902a7139
GS
34912002-07-09 Grace Sainsbury <graces@redhat.com>
3492
3493 * config/m68k/tm-m68k.h: Remove macros wrapped in
3494 #if !GDB_MULTI_ARCH.
3495
a534e424
AC
34962002-07-08 Andrew Cagney <ac131313@redhat.com>
3497
3498 * config.in, configure: Regenerate.
3499
9b94f7bf
MK
35002002-07-08 Mark Kettenis <kettenis@gnu.org>
3501
3502 * dwarf2cfi.c: Include "gcore.h".
3503 (execute_stack_op): Fix implementation of the
3504 DW_OP_deref and DW_OP_deref_size operators by letting do their
3505 lookup in the target.
3506
1d34db41
MK
35072002-07-07 Mark Kettenis <kettenis@gnu.org>
3508
3509 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3510 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3511 tdep->sc_sp_offset.
3512
79d5b63a
DJ
35132002-07-05 Daniel Jacobowitz <drow@mvista.com>
3514
3515 Fix PR gdb/595, gdb/602
3516 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3517 Don't call value_cast, just read the vtable pointer; update comments
3518 to match.
3519
3bb912e8
GS
35202002-07-05 Grace Sainsbury <graces@redhat.com>
3521
3522 * config/mcore/tm-mcore.h: Remove file.
3523 * config/mcore/mcore.mt: Remove definition of TM_FILE
3524 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3525
ca39387d
MK
35262002-07-05 Mark Kettenis <kettenis@gnu.org>
3527
3528 * i386bsd-tdep.c: Include "gdb_string.h".
3529
efdc1108
GS
35302002-07-04 Grace Sainsbury <graces@redhat.com>
3531
3532 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3533 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3534 mcore-tdep.
3535 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3536 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3537 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3538 (RETVAL_REGNUM): Move macros from tm-mcore.h
3539 (mcore_reg_struct_has_addr): New function.
3540 (mcore_gdbarch_init): Added initializations for the macros removed
3541 from tm-mcore.h.
3542
bb21884d
MK
35432002-07-04 Mark Kettenis <kettenis@gnu.org>
3544
3545 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3546 traditonal string branding within the ELF header.
3547
228c6d41
DJ
35482002-07-04 Daniel Jacobowitz <drow@mvista.com>
3549
3550 * symtab.c (remove_params): New function.
3551 (make_symbol_overload_list): Use it instead of cplus_demangle.
3552 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3553
2404952e
MK
35542002-07-04 Mark Kettenis <kettenis@gnu.org>
3555
e5e4acad
MK
3556 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3557
baadce09
MK
3558 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3559 New variables.
3560 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3561 and tdep->sigtramp_end.
3562 * i386obsd-nat.c: New file.
3563 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3564
2404952e
MK
3565 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3566 Don't call get_current_frame().
3567
9b4f1ba7
PM
35682002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3569
3570 * i386-nat.c (child_post_startup_inferior): New function
3571 calling i386_cleanup_dregs if
3572 I386_USE_GENERIC_WATCHPOINTS is defined.
3573 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3574 conditional to acknowledge that i386-nat.c has its
3575 own child_post_startup_inferior function.
3576
c0d1d883
MK
35772002-07-04 Mark Kettenis <kettenis@gnu.org>
3578
00f8375e
MK
3579 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3580 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3581 instead of MAX_REGISTER_RAW_SIZE.
3582 (i386_extract_return_value, i386_extract_struct_value_address):
3583 Convert to use regcache.
3584 (i386_gdbarch_init): Set max_register_raw_size and
3585 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3586 Set extract_return_value and extract_struct_value_address instead
3587 of their deprecated variants.
3588
c0d1d883
MK
3589 Convert i386 target to generic dummy frames.
3590 * i386-tdep.c: Include "symfile.h".
3591 (i386_frameless_signal_p): Consider a function to be frameless if
3592 the pc points at the first instruction of the function.
3593 (i386_frame_chain): Handle (generic) call dummies.
3594 (i386_frame_saved_pc): Likewise.
3595 (i386_frame_init_saved_regs): Remove code dealing with call
3596 dummies on the stack.
3597 (i386_push_dummy_frame): Removed.
3598 (i386_call_dummy_words): Removed.
3599 (i386_fix_call_dummy): Removed.
3600 (i386_push_return_address): New function.
3601 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3602 parameter, and don't call get_current_frame.
3603 (i386_pop_frame): New function.
3604 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3605 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3606 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3607 call_dummy_length to 0, set call_dummy_words to NULL, set
3608 sizeof_call_dummy_words to 0, set fix_call_dummy to
3609 generic_fix_call_dummy, set pc_in_call_dummy to
3610 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3611 generic_push_dummy_frame, set push_return_address to
3612 i386_push_return_address and set frame_chain_valid to
3613 generic_file_frame_chain_valid.
3614
049ee0e4
AC
36152002-07-03 Andrew Cagney <ac131313@redhat.com>
3616
3617 * gdbarch.sh (struct regcache): Add opaque declaration.
3618 (EXTRACT_RETURN_VALUE): New architecture method.
3619 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3620 * gdbarch.h, gdbarch.c: Regenerate.
3621 * arch-utils.c (legacy_extract_return_value): New function.
3622 * arch-utils.h (legacy_extract_return_value): Declare.
3623 * values.c (value_being_returned): Re-enable code handling
3624 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3625 deprecated_grub_regcache_for_registers call to block handling
3626 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3627 (EXTRACT_RETURN_VALUE): Do not define.
3628
4e0d9804
GS
36292002-07-03 Grace Sainsbury <graces@redhat.com>
3630
3631 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3632 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3633 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3634 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3635 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3636 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3637 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3638 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3639 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3640 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3641 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3642 argument so the function fits the prototype in the architecture
3643 vector.
3644 (mcore_pop_frame): Remove argument so the function fits the
3645 prototype. Use get_current_frame instead of the argument.
3646 (mcore_push_arguments): Change type of struct_return so the
3647 function can be used in the architecture vector.
3648 (mcore_store_struct_return): Add.
3649 (mcore_frame_init_saved_regs): Add.
3650 (mcore_gdbarch_init): Add function calls to replace the macros
3651 removed from tm-mcore.h
3652
36160dc4
AC
36532002-07-03 Andrew Cagney <ac131313@redhat.com>
3654
3655 * infcmd.c (print_return_value): Remove compatibility code calling
3656 deprecated_grub_regcache_for_registers.
3657
3658 * values.c: Include "regcache.h".
3659 (value_being_returned): Update. Use
3660 deprecated_grub_regcache_for_registers to extract the register
3661 buffer address.
3662 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3663 ``struct regcache''.
3664 * Makefile.in (values.o): Add dependency on $(regcache_h).
3665
3666 * inferior.h (run_stack_dummy): Change type of second parameter to
3667 a ``struct regcache''.
3668 * valops.c (hand_function_call): Change type of retbuf to ``struct
3669 regcache''. Allocate using regcache_xmalloc, clean using
3670 make_cleanup_regcache_xfree.
3671 * infcmd.c (run_stack_dummy): Update. Use
3672 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3673
3674 * regcache.c (do_regcache_xfree): New function.
3675 (make_cleanup_regcache_xfree): New function.
3676 * regcache.h (make_cleanup_regcache_xfree): Declare.
3677
e64d9b3d
MH
36782002-07-03 Martin M. Hunt <hunt@redhat.com>
3679
4dd79c29
MH
3680 * event-top.c (command_line_handler): Don't read past
3681 beginning of buffer.
e64d9b3d 3682
4dd79c29
MH
36832002-07-03 Martin M. Hunt <hunt@redhat.com>
3684
e64d9b3d
MH
3685 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3686 struct frame_id.
3687 (varobj_create): Store frame_id for root.
3688 (varobj_gen_name): Use xasprintf.
3689 (varobj_update): Save and restore frame using get_frame_id() and
3690 frame_find_by_id().
3691 (create_child): Use xasprintf.
3692 (new_root_variable): Initialize frame_id.
3693 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3694 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3695 to prevent memory leak.
3696
26e6c56a
AC
36972002-07-03 Andrew Cagney <ac131313@redhat.com>
3698
3699 * valops.c (hand_function_call): Move declaration of retbuf to
3700 start of function, allocate using malloc, add a cleanup but before
3701 the inf_status cleanup, cleanup the buffer. Rename local variable
3702 old_chain to inf_status_cleanup.
3703
f436dd25
MH
37042002-07-03 Martin M. Hunt <hunt@redhat.com>
3705
3706 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3707
3708 * cli/cli-decode.c (cmd_func_p): New function.
3709 (cmd_func): New function.
3710
3711 * command.h: Add cmd_func() and cmd_func_p().
3712
4cfe2084
GS
37132002-07-03 Grace Sainsbury <graces@redhat.com>
3714
3715 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3716 (REGISTER_SIZE): Remove.
3717 (MAX_REGISTER_RAW_SIZE): Remove.
3718 (REGISTER_VIRTUAL_TYPE): Remove.
3719 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3720 (REGISTER_NAME): Remove.
3721 (USE_GENERIC_DUMMY_FRAMES): Remove.
3722 (CALL_DUMMY): Remove.
3723 (CALL_DUMMY_START_OFFSET): Remove.
3724 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3725 (CALL_DUMMY_LOCATION): Remove.
3726 (FIX_CALL_DUMMY): Remove.
3727 (CALL_DUMMY_ADDRESS): Remove.
3728 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3729 (SAVE_DUMMY_FRAME_TOS): Remove.
3730 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3731 (mcore_register_virtual_type): New function.
3732 (mcore_register_byte): New function.
3733 (mcore_register_size): New function.
3734 (mcore_register_name): New function.
3735 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3736 macros removed from tm-mcore.h.
3737 (mcore_dump_tdep): Add.
3738 (_initialize_mcore_tdep): Add gdbarch_register call.
3739
4fd667e9
MK
37402002-07-03 Mark Kettenis <kettenis@gnu.org>
3741
3742 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3743 frameless_look_for_prologue, such that we actually call this
3744 function.
3745
42f99ac2
JB
37462002-07-02 Joel Brobecker <brobecker@gnat.com>
3747
3748 * frame.h (frame_address_in_block): New function.
3749
3750 * blockframe.c (frame_address_in_block): New function extracted
3751 from get_frame_block().
3752 (get_frame_block): Use frame_address_in_block().
3753 (block_innermost_frame): Use frame_address_in_block() to match
3754 the frame pc address against the block boundaries rather than
3755 the frame pc directly. This prevents a failure when a frame pc
3756 is actually a return-address pointing immediately after the end
3757 of the given block.
3758
103a1597 37592002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3760
3761 * MAINTAINERS: Add self under write after approval.
3762
37632002-07-02 Grace Sainsbury <graces@redhat.com>
3764
103a1597
GS
3765 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3766 used in architecture vector. The default is
3767 m68k_local_breakpoint_from_pc.
3768 (m68k_local_breakpoint_from_pc): Add.
3769 (enum): Add register numbers from tm-m68k.h.
3770 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3771 vector.
3772 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3773 GDB_MULTI_ARCH_PARTIAL.
3774 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3775 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3776 m68k-tdep.c.
3777 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3778 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3779 to enum in m68k-tdep.c
3780
7a5a0534
JB
37812002-07-02 Joel Brobecker <brobecker@gnat.com>
3782
3783 * solib-osf.c (open_map): Compute the list of shared libraries
3784 loaded by the inferior, rather than the list of libraries loaded
3785 by GDB itself. Otherwise, GDB ends up reading the symbols from
3786 the wrong shared libraries...
3787
6f558d74
MK
37882002-07-02 Mark Kettenis <kettenis@gnu.org>
3789
b7d15bf7
MK
3790 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3791 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3792 macros.
3793 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3794 Remove functions.
3795 (FRAMELESS_SIGNAL): Remove function.
3796 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3797 i386_linux_saved_pc_after_call): Removed.
3798 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3799 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3800 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3801
6bff26de
MK
3802 * i386-tdep.c (i386_frameless_signal_p): New function.
3803 (i386_frame_chain): Deal with frameless signals.
3804 (i386_sigtramp_saved_sp): New function.
3805 (i386_frame_saved_pc): Deal with frameless signals.
3806 (i386_saved_pc_after_call): Make sure the correct value is
3807 returned just after entry into a sigtramp.
3808 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3809 i386fbsd4_sc_sp_offset): New variables.
3810 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3811 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3812 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3813 similiar to what we already did for sc_pc_offset.
3814 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3815 tdep->sc_sp_offset.
3816
6f558d74
MK
3817 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3818
145564b7
ML
38192002-07-02 Michal Ludvig <mludvig@suse.cz>
3820
3821 * config/i386/tm-x86-64linux.h: New.
3822 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3823 definitions.
3824 * config/i386/nm-x86-64.h: Rename to ...
3825 * config/i386/nm-x86-64linux.h: ... this one.
3826 * config/i386/x86-64linux.mh: Reflect the above change.
3827
3a1e71e3
MK
38282002-07-01 Mark Kettenis <kettenis@gnu.org>
3829
21d0e8a4
MK
3830 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3831 with sigcontext_addr. Add sc_sp_offset.
3832 (i386bsd_sigtramp_saved_pc): Remove prototype.
3833 (i386bsd_sicontext_addr): Add prototype.
3834 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3835 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3836 (i386_svr4_sigtramp_saved_pc): Removed.
3837 (i386_svr4_sigcontext_addr): New function.
3838 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3839 Initialize tdep->sigcontext_addr instead. Initialize
3840 tdep->sc_pc_offset and tdep->sc_sp_offset.
3841 (i386_gdbarch_init): Likewise.
3842 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3843 any more.
3844 (i386bsd_sigtramp_saved_pc): Remove function.
3845 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3846 Initialize tdep->sigcontext_addr instead. Initialize
3847 tdep->sc_pc_offset.
3848 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3849 of tdep->sigtramp_saved_pc.
3850 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3851 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3852 instead.
3853
3a1e71e3
MK
3854 * i386-tdep.c (i386_frameless_function_invocation,
3855 i386_frame_num_args, i386_frame_init_saved_regs,
3856 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3857 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3858 i386_extract_return_value, i386_store_return_value,
3859 i386_extract_struct_value_address, i386_register_virtual_type,
3860 i386_register_convertible, i386_register_convert_to_virtual,
3861 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3862 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3863 static.
3864
52e9098c
MK
38652002-07-01 Mark Kettenis <kettenis@gnu.org>
3866
77b13a25
MK
3867 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3868
52e9098c
MK
3869 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3870 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3871 this macro. Include "value.h".
3872
1b372fff
AS
38732002-06-30 Aidan Skinner <aidan@velvet.net>
3874
3875 * ada-exp.tab.c: remove as it's a generated file
3876 * ada-lex.c: remove as it's a generated file
3877
9c5045b5
MK
38782002-06-30 Mark Kettenis <kettenis@gnu.org>
3879
4a93c5bb
MK
3880 * config/i386/tm-i386.h (struct frame_info, struct
3881 frame_saved_regs, struct value, struct type): Remove forward
3882 declarations.
3883
322d4fe0
MK
3884 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3885 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3886 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3887 (FILL_FPXREGSET): Define.
3888
fdd8263d
MK
3889 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3890
482e577b
MK
3891 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3892 i[3456]86-*-netbsd* case.
3893 * config/i386/tm-obsd.h: Removed.
3894 * config/i386/obsd.mt: Removed.
3895 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3896 core-aout.o.
3897 (MH_CFLAGS): Add -DYYDEBUG=0.
3898
6916549a
MK
3899 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3900 i386nbsd_sc_pc_offset on OpenBSD too.
3901
9c5045b5
MK
3902 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3903 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3904 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3905 define.
3906 * i386bsd-tdep.c: Include "arch-utils.h".
3907 (i386bsd_aout_in_solib_call_trampoline): New function.
3908 (i386bsd_init_abi): Set in_solib_call_trampoline to
3909 i386bsd_aout_in_solib_call_trampoline.
3910 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3911 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3912
aa84d1bb
AC
39132002-06-28 Andrew Cagney <ac131313@redhat.com>
3914
3915 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3916 (struct obstack, struct bcache): Add opaque declarations.
3917 * Makefile.in (macrotab_h): Update
3918
b4d83933
AC
39192002-06-28 Andrew Cagney <ac131313@redhat.com>
3920
3921 * blockframe.c (generic_find_dummy_frame): Change return type to
3922 ``struct regcache''.
3923 (struct dummy_frame): Replace field ``registers'' with regcache, a
3924 struct regcache object.
3925 (generic_find_dummy_frame): Update.
3926 (generic_push_dummy_frame): Update. Use regcache_xfree,
3927 regcache_xmalloc and regcache_cpy.
3928 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3929 regcache_xfree.
3930 (deprecated_generic_find_dummy_frame): Update.
3931 (generic_read_register_dummy): Update. Use
3932 regcache_read_as_address.
3933 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3934 (generic_get_saved_register): Update. Use regcache_read.
3935
08c0b5bc
AC
39362002-06-28 Andrew Cagney <ac131313@redhat.com>
3937
3938 * Makefile.in (objfiles_h): Add $(bcache_h).
3939 * objfiles.h: Include "bcache.h".
3940
3941 * Makefile.in (symtab_h): Remove $(bcache_h).
3942 * symtab.h: Do not include "bcache.h".
3943
1f89801a
AC
39442002-06-28 Andrew Cagney <ac131313@redhat.com>
3945
3946 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3947 generic_func_frame_chain_valid.
3948
b9644b58
DB
39492002-06-28 David O'Brien <obrien@FreeBSD.org>
3950
3951 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3952 * config/i386/tm-fbsd.h: Likewise.
3953
dd486634
AC
39542002-06-28 Andrew Cagney <ac131313@redhat.com>
3955
3956 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3957 generic_unwind_get_saved_register.
3958
0b434a00
AC
39592002-06-27 Andrew Cagney <ac131313@redhat.com>
3960
3961 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3962 * regcache.c (supply_register): Add missing argument to
3963 register_buffer call.
3964
f30e5a77
AC
39652002-06-27 Andrew Cagney <ac131313@redhat.com>
3966
3967 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3968 Solaris /bin/grep does not not like it. From Peter Schauer.
3969
9f064c95
TT
39702002-06-26 Tom Tromey <tromey@redhat.com>
3971
3972 * command.h (add_setshow_cmd): Declare.
3973 (add_setshow_cmd_full): Declare.
3974 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3975 returns void. Use add_setshow_cmd_full.
3976 (add_setshow_cmd_full): New function.
3977 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3978 (add_setshow_boolean_cmd): Likewise.
3979
099c7589
JT
39802002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3981
3982 * config/vax/tm-vax.h: Protect from multiple inclusion.
3983 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3984 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3985 * config/vax/tm-vaxbsd.h: ...here. New file.
3986 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3987
1d049c5e
JT
39882002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3989
3990 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3991 (BELIEVE_PCC_PROMOTION): Remove.
3992 (AP_REGNUM): Move to...
3993 * config/vax/nm-vax.h: ...here.
3994 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3995 (vax_breakpoint_from_pc): New function.
3996 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3997 and gdbarch_believe_pcc_promotion.
3998
4791e091
JT
39992002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4000
4001 * Makefile.in (vax_tdep_h): Define.
4002 (vax-tdep.o): Use $(vax_tdep_h).
4003 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4004 (vax_dump_tdep): New function.
4005 (_initialize_vax_tdep): Register vax_dump_tdep.
4006 * vax-tdep.h: Include osabi.h.
4007 (struct gdbarch_tdep): New.
4008
da130f98
AC
40092002-06-26 Andrew Cagney <cagney@redhat.com>
4010
4011 * frame.h (deprecated_generic_find_dummy_frame): Rename
4012 generic_find_dummy_frame.
4013 * blockframe.c (generic_find_dummy_frame): Make static.
4014 (deprecated_generic_find_dummy_frame): New function.
4015 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4016 generic_find_dummy_frame with deprecated_find_dummy_frame.
4017 (sh64_nofp_frame_init_saved_regs): Ditto.
4018 (sh_fp_frame_init_saved_regs): Ditto.
4019 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4020 (s390_frame_chain): Ditto.
4021 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4022
6300c360
GS
40232002-06-26 Grace Sainsbury <graces@redhat.com>
4024
4025 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4026 gdbarch vector are at the top.
4027 (NUM_REGS): Remove.
4028 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4029 (FRAME_ARGS_ADDRESS): Remove.
4030 (FRAME_LOCALS_ADDRESS): Remove.
4031 (FRAME_NUM_ARGS): Remove.
4032 (FRAME_ARGS_SKIP): Remove.
4033 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4034 (m68k_gdbarch_init): Add gdbarch initializations for macros
4035 undefined in tm-m68k.h
4036
1c617db8
GS
40372002-06-26 Grace Sainsbury <graces@redhat.com>
4038
4039 * monitor.h: Add the function regname to monitor_ops
4040 structure. This way NUM_REGS does not have to be a constant.
4041 * monitor.c (monitor_fetch_register): Added support for regname
4042 function. The function is called if the array regnames is NULL.
4043 (monitor_store_register): Same.
da130f98
AC
4044 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4045 regnames array.
1c617db8
GS
4046 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4047 cpu32bug_cmds.regname to point to new function.
4048 * abug-rom.c (abug_regname): Same as above.
4049 (init_abug_cmds): Same.
4050 * dbug-rom.c (dbug_regname): Same as above.
4051 (init_dbug_cmds): Same.
4052 * remote-est.c (est_regname): Same.
4053 (init_est_cmds): Same.
4054 * rom68k-rom.c (rom68k_regname): Same.
4055 (init_rom68k_cmds): Same.
4056
ea9365bb
TT
40572002-06-25 Tom Tromey <tromey@redhat.com>
4058
4059 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4060
72cec141
AC
40612002-06-25 Andrew Cagney <cagney@redhat.com>
4062
4063 * infrun.c (stop_registers): Change variable's type to ``struct
4064 regcache'''.
4065 (xmalloc_inferior_status): Delete function.
4066 (free_inferior_status): Delete function.
4067 (normal_stop): Use regcache_cpy.
4068 (struct inferior_status): Change type of fields ``stop_registers''
4069 and ``registers'' to ``struct regcache''.
4070 (write_inferior_status_register): Use regcache_write.
4071 (save_inferior_status): Instead of calling
4072 xmalloc_inferior_status, allocate the inf_status buffer directly.
4073 Use regcache_dup_no_passthrough and regcache_dup to save the
4074 buffers.
4075 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4076 Replace the stop_registers regcache instead of overriding it. Use
4077 regcache_xfree. Instead of calling free_inferior_status, xfree
4078 the buffer directly.
4079 (discard_inferior_status): Use regcache_xfree. Instead of calling
4080 free_inferior_status, xfree the buffer directly.
4081 (build_infrun): Use regcache_xmalloc.
4082 (_initialize_infrun): Delete redundant call to build_infrun.
4083
4084 * Makefile.in (infcmd.o): Add $(regcache_h).
4085
4086 * infcmd.c: Include "regcache.h".
4087 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4088 obtain the address of `stop_registers' register buffer.
4089 (print_return_value): Ditto.
4090
4091 * inferior.h (struct regcache): Add opaque declaration.
4092 (stop_registers): Change variable's declared type to ``struct
4093 regcache''.
4094
defc6f8c
TT
40952002-06-24 Tom Tromey <tromey@redhat.com>
4096
c0e624e7
TT
4097 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4098 * target.c (initialize_targets): Fixed typo in
4099 trust-readonly-sections `show' documentation.
4100
defc6f8c
TT
4101 * main.c: Marked all strings with _().
4102
2b236d82
DH
41032002-06-24 Don Howard <dhoward@redhat.com>
4104
4105 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4106 that means max CORE_ADDR+1.
4107 (lookup_mem_region): Ditto.
4108 (mem_info_command): Ditto.
4109
942dc0e9
GS
41102002-06-24 Grace Sainsbury <graces@redhat.com>
4111
4112 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4113 (REGISTER_BYTES_OK): Remove.
4114 (REGISTER_BYTES): Remove.
4115 (STORE_STRUCT_RETURN): Remove.
4116 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4117 (STORE_RETURN_VALUE): Remove.
4118 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4119 (FRAME_CHAIN): Remove.
4120 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4121 (FRAME_SAVED_PC): Remove.
4122 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4123 (m68k_store_struct_return): Add.
4124 (m68k_deprecated_extract_return_value): Add.
4125 (m68k_deprecated_extract_struct_value_address): Add.
4126 (m68k_store_return_value): Add.
4127 (m68k_frame_chain): Add.
4128 (m68k_frameless_function_invocation): Add.
4129 (m68k_frame_saved_pc): Add.
4130 (m68k_gdbarch_init): added set_gdbarch calls for new
4131 functions and deleted macros.
4132
03c30d4d
TT
41332002-06-23 Tom Tromey <tromey@redhat.com>
4134
4135 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4136 (ALLDEPFILES): Likewise.
4137 (udiheaders): Removed.
4138 (udip2soc.o): Likewise.
4139 (udi2go32.o): Likewise.
4140 (udr.o): Likewise.
4141 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4142
37e71372
AC
41432002-06-22 Andrew Cagney <ac131313@redhat.com>
4144
06a6ac57
AC
4145 * infrun.c (_initialize_infrun): Delete unnecessary call to
4146 build_infrun.
4147
37e71372
AC
4148 * regcache.h: Update comments describing the regcache_cpy family
4149 of functions.
4150 (regcache_save, regcache_restore): Delete declaration.
4151 (regcache_save_no_passthrough): Delete declaration.
4152 (regcache_restore_no_passthrough): Delete declaration.
4153 * regcache.c (regcache_save): Delete function.
4154 (regcache_save_no_passthrough): Delete function.
4155 (regcache_restore): Delete function.
4156 (regcache_restore_no_passthrough): Delete function.
4157
78f6d055
AC
41582002-06-21 Andrew Cagney <ac131313@redhat.com>
4159
4160 * config/m68k/tm-m68k.h: Fix typo.
4161 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4162 (m68k_frame_init_saved_regs): Declare.
4163
78b119cb
JB
41642002-06-21 Jim Blandy <jimb@redhat.com>
4165
4166 Remove some vestiges of Harris 88k support.
4167 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4168 register numbering quirk.
4169 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4170 odd symbols occurring in Harris 88k ELF targets.
4171
0fbb3da7
TT
41722002-06-21 Tom Tromey <tromey@redhat.com>
4173
4174 * gdb_locale.h: New file.
4175 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4176 (defs_h): Added gdb_locale.h.
4177 * configure, config.in: Rebuilt.
4178 * configure.in (PACKAGE): Define.
4179 * defs.h: Include gdb_locale.h.
4180 * main.c (captured_main): Call setlocale, bindtextdomain,
4181 textdomain.
4182
456f8b9d
DB
41832002-06-21 Dave Brolley <brolley@redhat.com>
4184
4185 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4186 * config/frv/frv.mt: New file.
4187 * config/frv/tm-frv.h: New file.
4188 * configure.tgt: Support frv-*-*.
4189 * Makefile.in (frv-tdep.o): New target.
4190 * frv-tdep.c: New file.
4191 * NEWS: Mention frv.
4192
cdd463f9
DB
41932002-06-21 Dave Brolley <brolley@redhat.com>
4194
4195 * MAINTAINERS: Add self to "Write After Approval" list.
4196
5d3ed2e3
GS
41972002-06-21 Grace Sainsbury <graces@redhat.com>
4198
4199 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4200 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4201 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4202 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4203 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4204
4205 * m68k-tdep.c: Include arch-utils.h
4206 (m68k_register_raw_size): Add.
4207 (m68k_register_virtual_size): Add.
4208 (m68k_register_virtual_type): Add.
4209 (m68k_register_name): Add.
4210 (m68k_stack_align): Add.
4211 (m68k_register_byte): Add.
4212 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4213 tm-m68k.h.
4214
7f8e7424
GS
42152002-06-21 Grace Sainsbury <graces@redhat.com>
4216
a2c6a6d5 4217 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4218 m68k_find_saved_regs.
4219 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4220 references to it with frame->saved_regs.
7f8e7424
GS
4221 (m68k_gdbarch_init): Added function calls to initialize the
4222 gdbarch structure.
a2c6a6d5
GS
4223 (m68k_fix_call_dummy): Add.
4224 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4225 (CALL_DUMMY): Remove.
4226 (CALL_DUMMY_LENGTH): Remove.
4227 (CALL_DUMMY_START_OFFSET): Remove.
4228 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4229 (FIX_CALL_DUMMY): Remove.
4230 (PUSH_DUMMY_FRAME): Remove.
4231 (POP_FRAME): Remove.
7f8e7424 4232
f461f5cf
PM
42332002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4234
4235 * parse.c (parse_fprintf): New function used to avoid calls to
4236 fprintf in bison parser generated debug code.
4237 * parser-defs.h: Declaration of new parse_fprintf function.
4238 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4239 Set YYDEBUG to 1 by default.
4240 Set YYFPRINTF as parse_fprintf.
4241
7f0c12ed
ML
42422002-06-21 Michal Ludvig <mludvig@suse.cz>
4243
4244 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4245 encoding anymore.
4246 (pointer_encoding, enum ptr_encoding): New.
4247 (execute_cfa_program): Take care about pointer encoding.
4248 (dwarf2_build_frame_info): Only call parse_frame_info for
4249 .debug_frame and .eh_frame.
4250 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4251 fixed augmentation handling, added relative addressing,
4252 ignore duplicate FDEs. Added comments.
19d833a2 4253 * dwarf2cfi.c: Reindented.
7f0c12ed 4254
87c4a039
EZ
42552002-06-20 Elena Zannoni <ezannoni@redhat.com>
4256
4257 * event-top.c (command_handler): Don't use space_at_cmd_start
4258 unless there is sbrk() on the host. Assign time and space data
4259 to union fields of the appropriate length.
4260
1cf877ad
ML
42612002-06-20 Michal Ludvig <mludvig@suse.cz>
4262
4263 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4264 x86_64_register_name. Return type changed to 'const char *'.
4265 (x86_64_register_name2nr): Rename to x86_64_register_number.
4266 (x86_64_gdbarch_init): Update to reflect the change.
4267 * x86-64-tdep.h: Ditto.
4268 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4269 (supply_fpregset): Ditto.
4270
3fadccb3
AC
42712002-06-19 Andrew Cagney <cagney@redhat.com>
4272
4273 * regcache.h: Update copyright.
4274 (struct regcache, struct gdbarch): Add opaque declarations.
4275 (current_regcache): Declare global variable.
4276 (regcache_read, regcache_write): Add gdbarch parameter.
4277 (regcache_save, regcache_save_no_passthrough)
4278 (regcache_restore, regcache_restore_no_passthrough)
4279 (regcache_dup, regcache_dup_no_passthrough)
4280 (regcache_cpy, regcache_cpy_no_passthrough)
4281 (deprecated_grub_regcache_for_registers)
4282 (deprecated_grub_regcache_for_register_valid)
4283 (regcache_valid_p): Add function declarations.
4284
4285 * regcache.c: Update copyright.
4286 (regcache_descr_handle): New global variable.
4287 (struct regcache_descr): Define.
4288 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4289 (regcache_descr, xfree_regcache_descr): New functions.
4290 (struct regcache): Define.
4291 (regcache_xmalloc, regcache_xfree): New functions.
4292 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4293 (regcache_dup, regcache_dup_no_passthrough): New functions.
4294 (regcache_valid_p, regcache_read_as_address): New functions.
4295 (deprecated_grub_regcache_for_registers): New function.
4296 (deprecated_grub_regcache_for_register_valid): New function.
4297 (current_regcache): New global variable.
4298 (register_buffer): Add regcache parameter. Update calls.
4299 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4300 (read_register_gen, write_register_gen): Update register_buffer
4301 call. Test for legacy_p instead of gdbarch_register_read_p or
4302 gdbarch_register_write_p.
4303 (regcache_collect): Update register_buffer call.
4304 (build_regcache): Rewrite. Use deprecated grub functions.
4305 (regcache_save, regcache_save_no_passthrough): New functions.
4306 (regcache_restore, regcache_restore_no_passthrough): New
4307 functions.
4308 (_initialize_regcache): Create the regcache_data_handle. Swap
4309 current_regcache global variable.
4310
4311 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4312 parameter to regcache_read and regcache_write calls.
4313 (sh4_register_read): Ditto.
4314 (sh64_pseudo_register_read): Ditto.
4315 (sh64_register_read): Ditto.
4316 (sh_pseudo_register_write): Ditto.
4317 (sh4_register_write): Ditto.
4318 (sh64_pseudo_register_write): Ditto.
4319 (sh64_register_write): Ditto.
4320
4321 * defs.h (XCALLOC): Define.
4322
152d9db6
GS
43232002-06-19 Grace Sainsbury <graces@redhat.com>
4324
4325 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4326 * m68k-tdep.c (m68k_gdbarch_init): Added.
4327 (m68k_dump_tdep): Added.
4328
170911c7
DJ
43292002-06-19 Daniel Jacobowitz <drow@mvista.com>
4330
4331 * ada-lang.c (fill_in_ada_prototype): Update comment.
4332
2e4ebe70
DJ
43332002-06-19 Daniel Jacobowitz <drow@mvista.com>
4334
4335 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4336 MIPS_ABI_LAST.
4337 (mips_abi_string, mips_abi_strings): New.
4338 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4339 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4340 tdep->mips_abi_string. Honor mips_abi_string. Default to
4341 O32 if no ABI is found.
4342 (mips_dump_tdep): Use mips_abi_strings.
4343 (mips_abi_update): New function.
4344 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4345 ``set mips abi'' and ``show mips abi''. Check the size of
4346 mips_abi_strings.
4347
16775908
AC
43482002-06-19 Andrew Cagney <cagney@redhat.com>
4349
4350 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4351 constant.
4352
5051bfa4 43532002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4354
5051bfa4
JB
4355 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4356 current frame using only the first stack size adjustment. All
4357 subsequent size adjustments are not considered to be part of
4358 the "static" part of the current frame.
4359 Compute the address of the saved registers relative to the
4360 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4361 in use in this frame.
4362
56468235
DH
43632002-06-18 Don Howard <dhoward@redhat.com>
4364
4365 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4366 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4367 suggesting this solution.
4368
0b624158
AC
43692002-06-18 Andrew Cagney <ac131313@redhat.com>
4370
4371 * config/romp/xm-rtbsd.h: Delete file.
4372 * config/romp/rtbsd.mh: Delete file.
4373
221ea385
KS
43742002-06-18 Keith Seitz <keiths@redhat.com>
4375
4376 * breakpoint.c (condition_command): Post breakpoint_modify
4377 when a condition is added to an existing breakpoint.
4378 (commands_command): Likewise for commands.
4379 (set_ignore_count): Likewise for ignore counts.
4380 If no tty, do not simply return, still need to send event
4381 notification.
4382 (ignore_command): Only print a newline if the command came
4383 from a tty.
4384 Don't call breakpoints_changed, since this is now properly
4385 handled by set_ignore_count.
4386
5402eed1
AC
43872002-06-18 Andrew Cagney <cagney@redhat.com>
4388
4389 * MAINTAINERS: Note that cris-elf target can be compiled with
4390 -Werror.
4391 * cris-tdep.c (cris_register_name): Make return type constant.
4392 (cris_breakpoint_from_pc): Ditto.
4393
cc22880b
ML
43942002-06-18 Michal Ludvig <mludvig@suse.cz>
4395
4396 * frame.h (struct frame_info): Change type of context to
4397 'struct context'.
4398
fa88f677
AC
43992002-06-17 Andrew Cagney <cagney@redhat.com>
4400
4401 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4402 pointer.
4403 * gdbarch.h, gdbarch.c: Regenerate.
4404 * config/mips/tm-mips.h (mips_register_name): Update.
4405 * i386-tdep.h (i386_register_name): Update.
4406 * mips-tdep.c (mips_register_name): Update
4407 * alpha-tdep.c (alpha_register_name): Update.
4408 * arch-utils.c (legacy_register_name): Update.
4409 * arch-utils.h (legacy_register_name): Update.
4410 * avr-tdep.c (avr_register_name): Update.
4411 * ia64-tdep.c (ia64_register_name): Update.
4412 * i386-tdep.c (i386_register_name): Update.
4413 * sparc-tdep.c (sparc32_register_name): Update.
4414 (sparc64_register_name): Update.
4415 (sparclite_register_name): Update.
4416 (sparclet_register_name): Update.
4417 * sh-tdep.c (sh_generic_register_name): Update.
4418 (sh_sh_register_name): Update.
4419 (sh_sh3_register_name): Update.
4420 (sh_sh3e_register_name): Update.
4421 (sh_sh_dsp_register_name): Update.
4422 (sh_sh3_dsp_register_name): Update.
4423 (sh_sh4_register_name): Update.
4424 (sh_sh64_register_name): Update.
4425 * s390-tdep.c (s390_register_name): Update.
4426 * rs6000-tdep.c (rs6000_register_name): Update.
4427 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4428 (ns32k_register_name_32382): Update.
4429 * d10v-tdep.c (d10v_ts2_register_name): Update.
4430 (d10v_ts3_register_name): Update.
4431 * xstormy16-tdep.c (xstormy16_register_name): Update.
4432 * vax-tdep.c (vax_register_name): Update.
4433 * v850-tdep.c (v850_register_name): Update.
4434 * m68hc11-tdep.c (m68hc11_register_name): Update.
4435 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4436 (am33_register_name): Update.
4437
ea1e7ef6
GS
44382002-06-17 Grace Sainsbury <graces@redhat.com>
4439
4440 * m68k-tdep.c: Reindented.
4441
9b02dd1b
AC
44422002-06-17 Andrew Cagney <ac131313@redhat.com>
4443
4444 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4445 list of predefined types.
4446
8758dec1
MK
44472002-06-16 Mark Kettenis <kettenis@gnu.org>
4448
b6197528
MK
4449 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4450 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4451 REGISTER_CONVERT_TO_RAW): Remove defines.
4452 (i386_register_virtual_type, i386_register_convertible,
4453 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4454 Remove prototypes.
4455 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4456 macros mentioned above.
4457
82b47e62
MK
4458 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4459 (i386lynx_saved_pc_after_call): Remove prototype.
4460 * i386ly-tdep.c: Include "i386-tdep.h".
4461 (i386lynx_saved_pc_after_call): Make static. Use
4462 read_memory_nobpt instead of read_memory. Use
4463 read_memory_unsigned_integer instead of read_memory_integer.
4464 (i386lynx_init_abi): New function.
4465 (i386lynx_coff_osabi_sniffer): New function.
4466 (_initialize_i386bsd_tdep): New function.
4467
8758dec1
MK
4468 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4469 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4470 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4471 (i386_fix_call_dummy): Remove prototype.
4472 * i386-tdep.c (i386_call_dummy_words): New variable.
4473 (i386_gdbarch_init): Adjust for removal of the
4474 macros mentioned above.
4475
e9e68a56
AC
44762002-06-15 Andrew Cagney <ac131313@redhat.com>
4477
4478 * command.h (add_setshow_auto_boolean_cmd): Replace
4479 add_set_auto_boolean_cmd.
4480 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4481 add_set_auto_boolean_cmd.
4482 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4483 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4484 mask-address'' command.
4485 (show_mask_address): Add cmd parameter.
4486 * remote.c (add_packet_config_cmd): Update. Change type of
4487 set_func and show_func to cmd_sfunc_ftype.
4488 (_initialize_remote): Update `set remote Z-packet'
4489 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4490 (show_remote_protocol_e_packet_cmd): Ditto.
4491 (show_remote_protocol_E_packet_cmd): Ditto.
4492 (show_remote_protocol_P_packet_cmd): Ditto.
4493 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4494 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4495 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4496 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4497 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4498 (show_remote_protocol_Z_packet_cmd): Ditto.
4499 (show_remote_protocol_binary_download_cmd): Ditto.
4500 (show_remote_cmd): Pass NULL to all of above.
4501
fc08ec52
MK
45022002-06-15 Mark Kettenis <kettenis@gnu.org>
4503
4504 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4505 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4506 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4507 POP_FRAME): Remove defines.
4508 (i386_push_arguments, i386_store_struct_return,
4509 i386_extract_return_value, i386_store_return_value,
4510 i386_extract_struct_value_address, i386_push_dummy_frame,
4511 i386_pop_frame): Renove prototypes.
4512 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4513 macros mentioned above.
4514
e707bbc2
AC
45152002-06-15 Andrew Cagney <ac131313@redhat.com>
4516
4517 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4518 add_set_boolean_cmd.
4519 (add_setshow_cmd): New function.
4520 * command.h (add_setshow_boolean_cmd): Replace
4521 add_set_boolean_cmd.
4522 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4523 and ``set rdiromatzero''.
4524 * maint.c (_initialize_maint_cmds): Update commented out code.
4525 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4526 * target.c (initialize_targets): Update `set
4527 trust-readonly-sections'.
4528 * remote.c (_initialize_remote): Update `set remotebreak'.
4529
42fdc8df
MK
45302002-06-15 Mark Kettenis <kettenis@gnu.org>
4531
93924b6b
MK
4532 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4533 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4534 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4535 fit into multi-arch framework.
4536 (i386_breakpoint_from_pc): New function.
4537 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4538 above.
4539
42fdc8df
MK
4540 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4541 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4542 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4543 (i386_frameless_function_invocation, i386_frame_num_args,
4544 i386_frame_init_saved_regs): Remove prototypes.
4545 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4546 macros mentioned above.
4547
9773a94b
AC
45482002-06-15 Andrew Cagney <ac131313@redhat.com>
4549
4550 * cli/cli-decode.c (set_cmd_cfunc): Update.
4551 (set_cmd_sfunc): Update.
4552 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4553 (set_cmd_sfunc, set_cmd_cfunc): Update.
4554 * cli/cli-decode.h: Update.
4555
6e157172
MK
45562002-06-15 Mark Kettenis <kettenis@gnu.org>
4557
4558 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4559 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4560
7f19b9a2
AC
45612002-06-15 Andrew Cagney <ac131313@redhat.com>
4562
4563 * defs.h (auto_boolean): Declare enum.
4564 * command.h (cmd_auto_boolean): Delete enum.
4565 * mips-tdep.c (mask_address_var): Update.
4566 (mips_mask_address_p): Update.
4567 (show_mask_address): Update.
4568 * remote.c (struct packet_config): Update.
4569 (update_packet_config): Update.
4570 (show_packet_config_cmd): Update.
4571 (packet_ok): Update.
4572 (add_packet_config_cmd): Update.
4573 (_initialize_remote):
4574 * command.h: Update.
4575 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4576 (do_setshow_command): Update.
4577 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4578 * cli/cli-decode.h: Update.
4579
1cf88de5
MK
45802002-06-15 Mark Kettenis <kettenis@gnu.org>
4581
22ba8cf2
MK
4582 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4583 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4584 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4585 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4586 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4587 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4588
762c5349
MK
4589 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4590 list of DJGPP COFF targets.
4591
091198bb
MK
4592 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4593 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4594 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4595 (FP0_REGNUM): Remove define.
4596 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4597 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4598 (i386_register_virtual_size): Remove protoype.
4599 * i386-tdep.c (i386_register_virtual_size): Removed.
4600 (i386_extract_return_value, i386_store_return_value): Use
4601 FP0_REGNUM instead of NUM_FREGS to determine whether the
4602 floating-point registers are available.
4603 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4604 Adjust for removal of macros mentioned above.
4605
46062002-06-15 Mark Kettenis <kettenis@gnu.org>
4607
fcc9bf01
MK
4608 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4609 comments.
4610 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4611 Remove prototypes.
4612 (supply_gregset, fill_gregset): Remove use of register keyword and
4613 remove declaration for regmap. Use I386_NUM_GREGS instead of
4614 NUM_REGS and NUM_FREGS.
4615 (FPREGSET_FSAVE_OFFSET): Remove.
4616 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4617 NUM_FREGS to determine whether the floating-point registers are
4618 available.
4619
65e78234
MK
4620 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4621 gnu_store_registers): Replace usage of NUM_GREGS with
4622 I386_NUM_GREGS.
4623
98df6387
MK
4624 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4625 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4626 usage of NUM_GREGS with I386_NUM_GREGS.
4627
099a9414
MK
4628 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4629
57976e88
MK
4630 * i386bsd-nat.c: Include "i386-tdep.h".
4631 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4632 I386_NUM_GREGS.
4633
b335f4a6
MK
4634 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4635 and associated comment. They no longer make any sense, since we
4636 don't use this file anymore on Linux.
4637
1cf88de5
MK
4638 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4639 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4640 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4641 elements in these arrays.
4642 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4643 MAX_NUM_REGS.
4644
daa66587
MK
46452002-06-15 Mark Kettenis <kettenis@gnu.org>
4646
4647 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4648 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4649
26e9b323
AC
46502002-06-14 Andrew Cagney <cagney@redhat.com>
4651
4652 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4653 EXTRACT_RETURN_VALUE.
4654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4655 EXTRACT_STRUCT_VALUE_ADDRESS.
4656 * gdbarch.h, gdbarch.c: Regenerate.
4657
4658 * values.c (value_being_returned): Handle
4659 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4660 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4661
4662 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4663 * arm-tdep.c (arm_gdbarch_init): Update.
4664 * avr-tdep.c (avr_gdbarch_init): Update.
4665 * cris-tdep.c (cris_gdbarch_init): Update.
4666 * d10v-tdep.c (d10v_gdbarch_init): Update.
4667 * ia64-tdep.c (ia64_gdbarch_init): Update.
4668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4670 * s390-tdep.c (s390_gdbarch_init): Update.
4671 * sh-tdep.c (sh_gdbarch_init): Update.
4672 * s390-tdep.c (s390_gdbarch_init): Update.
4673 * sparc-tdep.c (sparc_gdbarch_init): Update.
4674 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4675 * v850-tdep.c (v850_gdbarch_init): Update.
4676 * vax-tdep.c (vax_gdbarch_init): Update.
4677 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4678 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4679
4680 * config/arc/tm-arc.h: Update.
4681 * config/d30v/tm-d30v.h: Update.
4682 * config/fr30/tm-fr30.h: Update.
4683 * config/h8300/tm-h8300.h: Update.
4684 * config/h8500/tm-h8500.h: Update.
4685 * config/i386/tm-i386.h: Update.
4686 * config/i386/tm-ptx.h: Update.
4687 * config/i386/tm-symmetry.h: Update.
4688 * config/i960/tm-i960.h: Update.
4689 * config/m32r/tm-m32r.h: Update.
4690 * config/m68k/tm-delta68.h: Update.
4691 * config/m68k/tm-linux.h: Update.
4692 * config/m68k/tm-m68k.h: Update.
4693 * config/m88k/tm-m88k.h: Update.
4694 * config/mcore/tm-mcore.h: Update.
4695 * config/mips/tm-mips.h: Update.
4696 * config/mn10200/tm-mn10200.h: Update.
4697 * config/pa/tm-hppa.h: Update.
4698 * config/pa/tm-hppa64.h: Update.
4699 * config/sparc/tm-sp64.h: Update.
4700 * config/sparc/tm-sparc.h: Update.
4701 * config/sparc/tm-sparclet.h: Update.
4702 * config/z8k/tm-z8k.h: Update.
4703
5179e78f
AC
47042002-06-14 Andrew Cagney <cagney@redhat.com>
4705
4706 * Makefile.in (i386_linux_tdep_h): Define.
4707 (i386_tdep_h, i387_tdep_h): Define.
4708 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4709 $(i386_tdep_h) and $(i387_tdep_h).
4710 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4711
8201327c
MK
47122002-06-14 Mark Kettenis <kettenis@gnu.org>
4713
edf393ac
MK
4714 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4715 Already covered by the default.
4716
896fb97d
MK
4717 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4718 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4719 (i386_gdbarch_init): Initialize long_double_format and long_double
4720 bit.
4721
8201327c
MK
4722 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4723 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4724 Move these to ...
4725 * config/i386/i386sol2.mh: ... here.
4726 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4727 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4728 (SIGCONTEXT_PC_OFFSET): Remove define.
4729 (IN_SIGTRAMP): Remove define.
4730 * i386-sol2-tdep.c: New file.
4731
4732 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4733 * config/i386/tm-i386nw.h: Removed.
4734
4735 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4736 USE_STRUCT_CONVENTION): Remove defines.
4737 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4738 (get_longjmp_target): Remove prototype.
4739 (IN_SIGTRAMP): Remove define.
4740 (i386bsd_in_sigtramp): Remove prototype.
4741 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4742 function. Update comment accordingly
4743 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4744 (FRAME_SAVED_PC): Remove define.
4745 (i386bsd_frame_saved_pc): Remove prototype.
4746 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4747 GET_LONGJMP_TARGET): Remove defines.
4748 (get_longjmp_target): Remove prototype.
4749 (IN_SIGTRAMP): Remove define.
4750 (i386bsd_in_sigtramp): Remove prototype.
4751 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4752 function. Update comment accordingly
4753 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4754 (FRAME_SAVED_PC): Remove define.
4755 (i386bsd_frame_saved_pc): Remove prototype.
4756 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4757 Remove prototype.
4758 (USE_STRUCT_CONVENTION): Remove prototype.
4759 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4760 declaration.
4761 (_initialize_i386bsd_nat): Revise logic to determine some
4762 constants at compile time when compiling a native GDB. Warn if
4763 things don't match up with what we expect.
4764 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4765 Remove variables.
4766 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4767 to use date stored in `struct gdbarch_tdep'.
4768 (i386bsd_sigcontext_offset): Remove varaible.
4769 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4770 stored in `struct gdbarch_tdep'.
4771 (i386bsd_frame_saved_pc): Make static.
4772 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4773 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4774 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4775 i386fbsd4_sc_pc_offset): New variables.
4776 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4777 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4778 functions.
4779 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4780 functions.
4781 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4782 Modify the value of i386fbsd_sigtramp_start and
4783 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4784 i386fbsd_sigtramp_end.
4785 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4786 function.
4787
4788 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4789 define to i386-linux-tdep.h.
4790 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4791 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4792 defines.
4793 (i386_linux_register_name, i386_linux_register_byte,
4794 i386_linux_register_raw_size): Remove prototypes.
4795 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4796 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4797 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4798 TARGET_WRITE_PC): Remove defines.
4799 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4800 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4801 i386_linux_write_pc): Remove prototypes.
4802 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4803 (get_longjmp_target): Remove prototype.
4804 * i386-linux-tdep.h: New file.
4805 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4806 * i386-linux-tdep.c: Include "i386-tdep.h" and
4807 "i386-linux-tdep.h".
4808 (i386_linux_register_name, i386_linux_register_byte,
4809 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4810 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4811 Make static.
4812 (i386_linux_init_abi): New function.
4813 (_initialize_i386_linux_tdep): New function.
4814
4815 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4816 (i386_saved_pc_after_call): Remove prototype.
4817 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4818 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4819 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4820 (i386_register_name, i386_stab_reg_to_regnum,
4821 i386_dwarf_reg_to_regnum): Remove prototypes.
4822 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4823 SIZEOF_SSE_REGS): Remove defines.
4824 (REGISTER_BYTES): Remove define.
4825 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4826 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4827 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4828 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4829 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4830 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4831 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4832 (get_longjmp_target): Remove prototype.
4833 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4834 (sigtramp_saved_pc): Remove define.
4835 (i386v4_sigtramp_saved_pc): Remove prototype.
4836 * config/i386/tm-go32.h (FRAME_CHAIN,
4837 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4838 (i386go32_frame_saved_pc): Remove prototype.
4839 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4840 (get_longjmp_target): Remove prototype.
4841 * i386-tdep.h: Include "osabi.h".
4842 (enum i386_abi): Removed.
4843 (enum struct_return): New enum.
4844 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4845 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4846 sc_pc_offset members.
4847 (i386_gdbarch_register_os_abi): Remove prototype.
4848 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4849 I386_SSE_NUM_REGS): New defines.
4850 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4851 I386_SSE_SIZEOF_REGS): New defines.
4852 (i386_register_name, i386_register_byte, i386_register_raw_size):
4853 New prototypes.
4854 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4855 (i386bsd_sigtramp_saved_pc): New prototype.
4856 * i386-tdep.c: Don't include "elf-bfd.h".
4857 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4858 i386_frame_chain, i386_saved_pc_after_call): Make static.
4859 (i386_frame_saved_pc): Rewrite to call architecture dependent
4860 function to deal with signal handlers. Make static.
4861 (i386go32_frame_saved_pc): Removed.
4862 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4863 Removed.
4864 (i386_get_longjmp_target): New function.
4865 (default_struct_convention, pcc_struct_convention,
4866 reg_struct_convention, valid_conventions, struct_convention): New
4867 variables.
4868 (i386_use_struct_convention): New function.
4869 (i386v4_sigtramp_saved_pc): Renamed to
4870 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4871 (i386_pc_in_sigtramp): New function.
4872 (i386_abi_names): Removed.
4873 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4874 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4875 Removed.
4876 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4877 i386_gdbarch_register_os_abi): Removed.
4878 (struct i386_abi_handler): Removed.
4879 (i386_abi_handler_list): Removed.
4880 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4881 functions.
4882 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4883 i386_nw_init_abi): New functions.
4884 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4885 Use set_gdbarch_xxx() calls instead of relying on macros for a
4886 number of calls.
4887 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4888 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4889 Register the various architecture variants defined in this file.
4890
ad2f7632
DJ
48912002-06-14 Daniel Jacobowitz <drow@mvista.com>
4892
4893 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4894 (struct main_type): Remove arg_types member. Update comments for
4895 struct field.
4896 (TYPE_ARG_TYPES): Remove.
4897 (TYPE_FN_FIELD_ARGS): Update.
4898 (smash_to_method_type): Update prototype.
4899
4900 * c-typeprint.c (cp_type_print_method_args): Take method type
4901 instead of argument list. Use new argument layout. Simplify.
4902 (c_type_print_args): Use new argument layout. Simplify.
4903 (c_type_print_base): Update call to cp_type_print_method_args.
4904 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4905 argument; use die->type instead. Update call to
4906 smash_to_method_type.
4907 (read_structure_scope): Update call to dwarf2_add_member_fn.
4908 * gdbtypes.c (allocate_stub_method): Update comment.
4909 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4910 Use new argument layout.
4911 (check_stub_method): Use new argument layout. Don't count
4912 void as an argument.
4913 (print_arg_types): Update comments. Use new argument layout.
4914 (recursive_dump_type): Don't print arg_types member.
4915 * hpread.c (hpread_read_struct_type): Use new argument layout.
4916 (fixup_class_method_type): Likewise.
4917 (hpread_type_lookup): Likewise.
4918 * stabsread.c (read_type): Update calls to read_args and
4919 smash_to_method_type.
4920 (read_args): Use new argument layout. Simplify.
4921 * valops.c (typecmp): Use new argument layout. Update parameters
4922 and comments. Simplify.
4923 (hand_function_call): Use new argument layout.
4924 (search_struct_method): Update call to typecmp.
4925 (find_overload_match): Use new argument layout.
4926
6da02953
DJ
49272002-06-13 Daniel Jacobowitz <drow@mvista.com>
4928
4929 * NEWS: Mention multithreaded debug support for gdbserver.
4930
519b2366
DJ
49312002-06-13 Daniel Jacobowitz <drow@mvista.com>
4932
4933 * MAINTAINERS: Mention NEWS.
4934
6c0d6680
DJ
49352002-06-13 Daniel Jacobowitz <drow@mvista.com>
4936
4937 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4938 (struct mips_objfile_private, compare_pdr_entries): New.
4939 (non_heuristic_proc_desc): Read the ".pdr" section if it
4940 is present.
4941
6529d2dd
AC
49422002-06-12 Andrew Cagney <ac131313@redhat.com>
4943
4944 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4945 (arm_debug): New static variable.
4946 (_initialize_arm_tdep): Add ``set debug arm'' command.
4947
26216b98
AC
49482002-06-12 Andrew Cagney <ac131313@redhat.com>
4949
4950 * Makefile.in (sim_arm_h): Define.
4951 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4952 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4953 (arm_register_sim_regno): New function, map an internal REGNUM
4954 onto a simulator register number.
4955 (arm_gdbarch_init): Set register_sim_regno.
4956
814b3ba0
AH
49572002-06-09 Aldy Hernandez <aldyh@redhat.com>
4958
4959 * MAINTAINERS: Add self.
4960
475b0867
JB
49612002-06-11 Jim Blandy <jimb@redhat.com>
4962
919d772c
JB
4963 * source.c (source_info): Mention whether the symtab has
4964 information about preprocessor macros.
4965
475b0867
JB
4966 Call the command `info macro', not `show macro'.
4967 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4968 Fix error message.
4969 (_initialize_macrocmd): Register `info_macro_command' in
4970 `infolist', not `showlist'.
4971
9e364162
DJ
49722002-06-11 Daniel Jacobowitz <drow@mvista.com>
4973
4974 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4975 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4976 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4977 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4978 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4979 unconditionally.
4980 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4981 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4982 (_initialize_mips_tdep): Remove dead code.
4983 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4984 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4985 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4986 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4987 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4988 MIPS_LAST_FP_ARG_REGNUM): Remove.
4989
23aa4c72
ML
49902002-06-11 Michal Ludvig <mludvig@suse.cz>
4991
4992 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4993 (unwind_tmp_obstack_free, parse_frame_info)
4994 (update_context, cfi_read_fp, cfi_write_fp)
4995 (cfi_frame_chain, cfi_init_extra_frame_info)
4996 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4997 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4998
70eb15a4
CV
49992002-06-11 Corinna Vinschen <vinschen@redhat.com>
5000
5001 * v850-tdep.c (v850_type_is_scalar): New function.
5002 (v850_use_struct_convention): Match current gcc implementation
5003 as close as possible.
5004 (v850_push_arguments): Fix stack_offset handling. Don't write
5005 struct_addr into register. This is done by v850_store_struct_return.
5006 (v850_extract_return_value): Care for structs.
5007 (v850_store_return_value): Ditto.
5008 (v850_store_struct_return): Actually write address.
5009
482a4d06
ML
50102002-06-11 Michal Ludvig <mludvig@suse.cz>
5011
5012 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5013 without debug information too.
5014
d855c300
AC
50152002-06-10 Andrew Cagney <ac131313@redhat.com>
5016
5017 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5018 Make multi-arch pure.
5019 * gdbarch.h, gdbarch.c: Re-generate.
5020 * arm-tdep.c (arm_print_float_info): Update.
5021 * arch-utils.h (default_print_float_info): Update.
5022 * arch-utils.c (default_print_float_info): Update.
5023 * infcmd.c (float_info): Update call.
5024
dd12a101
AC
50252002-06-10 Andrew Cagney <ac131313@redhat.com>
5026
5027 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5028 the front of the initialize list.
5029
101dcfbe
AC
50302002-06-10 Andrew Cagney <ac131313@redhat.com>
5031
5032 * infrun.c (struct inferior_status): Replace fields
5033 selected_frame_address and selected_level with field
5034 selected_frame_id.
5035 (save_inferior_status): Update. Use get_frame_id.
5036 (struct restore_selected_frame_args): Delete.
5037 (restore_selected_frame): Update. Use frame_find_by_id.
5038 (restore_inferior_status): Update.
5039
5040 * breakpoint.h (struct breakpoint): Change type of
5041 watchpoint_frame to frame_id.
5042 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5043 call to get_current_frame.
5044 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5045 get_current_frame.
5046 (watchpoint_check): Use frame_find_by_id.
5047
5048 * frame.h (record_selected_frame): Delete declaration.
5049 * stack.c (record_selected_frame): Delete function.
5050
5051 * frame.h (struct frame_id): Define.
5052 (get_frame_id): Declare.
5053 (frame_find_by_id): Declare.
5054 * frame.c (frame_find_by_id): New function.
5055 (get_frame_id): New function.
5056
304270b6
AV
50572002-06-10 Andrey Volkov <avolkov@transas.com>
5058
5059 * ser-e7kpc.c: Fix duplicated define and call of
5060 _initialize_ser_e7000pc
5061
2f2cf184
DJ
50622002-06-09 Daniel Jacobowitz <drow@mvista.com>
5063
5064 * signals/signals.c (target_signal_from_host): Fix #ifdef
5065 SIGRTMIN case.
5066 (do_target_signal_to_host): Likewise.
5067
caaa3122
DJ
50682002-06-09 Daniel Jacobowitz <drow@mvista.com>
5069
5070 * mips-tdep.c (mips_find_abi_section): New function.
5071 (mips_gdbarch_init): Call it.
5072
6ac5df3a
MK
50732002-06-09 Mark Kettenis <kettenis@gnu.org>
5074
5075 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5076 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5077 after Andrew's 2002-06-08 gdbarch change.
5078
82ea117a
MK
50792002-06-09 Mark Kettenis <kettenis@gnu.org>
5080
5081 * i386-linux-nat.c (suppy_gregset): Don't supply
5082 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5083 register cache.
5084 (fill_gregset): Don't fetch it under the same circumstances.
5085
3c25f8c7
AC
50862002-06-09 Andrew Cagney <cagney@redhat.com>
5087
5088 * Makefile.in (callback_h): Define.
5089 (remote_sim_h): Update path to remote-sim.h.
5090 (remote-rdp.o): Add $(callback_h).
5091 (remote-sim.o): Use $(callback_h).
5092 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5093 * remote-rdp.c: Include "gdb/callback.h".
5094
1029b7fa
MK
50952002-06-09 Mark Kettenis <kettenis@gnu.org>
5096
5097 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5098 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5099
616675d3
AC
51002002-06-08 Andrew Cagney <ac131313@redhat.com>
5101
a3efda28
AC
5102 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5103 * rdi-share/serpardr.c: Ditto.
5104 * rdi-share/unixcomm.c: Ditto.
5105 * rdi-share/serdrv.c: Ditto.
5106 * rdi-share/hostchan.h: Ditto.
5107 * rdi-share/hostchan.c: Ditto.
5108 * rdi-share/host.h: Ditto.
5109 * rdi-share/devsw.c: Ditto.
5110
c5f10366
AC
5111 * objfiles.h: Change type of obj_private to void pointer.
5112 * pa64solib.c: Update copyright. Don't include "assert.h", use
5113 strcmp instead of STREQ, use LONGEST, do not use PTR
5114 * somsolib.c: Ditto.
5115
616675d3
AC
5116 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5117 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5118 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5119
e4b415d9
AC
51202002-06-08 Andrew Cagney <ac131313@redhat.com>
5121
5122 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5123 (default_get_saved_register): Delete function.
5124 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5125 generic_unwind_get_saved_register.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127
ca0d0b52
AC
51282002-06-08 Andrew Cagney <ac131313@redhat.com>
5129
5130 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5131 generic_func_frame_chain_valid.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * blockframe.c (generic_func_frame_chain_valid): Only check
5134 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5135 passing FP to PC_IN_CALL_DUMMY.
5136 Fix PR gdb/360.
5137
76860b5f
AC
51382002-06-08 Andrew Cagney <ac131313@redhat.com>
5139
5140 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5141 (register_gdbarch_data): Initialize init_p.
5142 (gdbarch_data): Initialize data pointer using the init function.
5143 (init_gdbarch_data): Delete function.
5144 (gdbarch_update_p): Update.
5145 (initialize_non_multiarch): Update.
5146 (struct gdbarch): Add field initialized_p.
5147 * gdbarch.h, gdbarch.c: Re-generate.
5148
8dda9770
ML
51492002-06-07 Michal Ludvig <mludvig@suse.cz>
5150
5151 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5152 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5153 better do the things actually here.
5154 * x86-64-tdep.c (x86_64_register_name2nr): New.
5155 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5156 (x86_64_gdbarch_init): Respect the above change.
5157 * x86-64-tdep.h (x86_64_register_name2nr)
5158 (x86_64_register_nr2name): Add prototypes.
5159 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5160
3d79a47c
MS
51612002-06-06 Michael Snyder <msnyder@redhat.com>
5162
7bd91a28
MS
5163 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5164 Delete extra braces and re-indent.
5165 (d10v_store_return_value): Char return values
3d79a47c
MS
5166 must be shifted over by one byte in R0.
5167 (d10v_extract_return_value): Delete extra braces, re-indent.
5168
095a4c96
EZ
51692002-06-06 Elena Zannoni <ezannoni@redhat.com>
5170
5171 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5172 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5173 (d10v_integer_to_address): Rewrite.
5174 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5175 the d10v specific functions which take care of converting to the
5176 correct space.
5177
e8a77ca4
EZ
51782002-06-06 Elena Zannoni <ezannoni@redhat.com>
5179
5180 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5181 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5182
4f2e4a4f
AC
51832002-06-02 Andrew Cagney <ac131313@redhat.com>
5184
5185 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5186 includes.
5187 * config/tm-linux.h: Ditto.
5188 * config/alpha/tm-alphalinux.h: Ditto.
5189 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5190 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5191 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5192 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5193 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5194 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5195 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5196 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5197 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5198 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5199 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5200 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5201 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5202 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5203 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5204 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5205 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5206 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5207 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5208 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5209 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5210 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5211 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5212 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5213 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5214 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5215 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5216 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5217 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5218 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5219 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5220 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5221 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5222 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5223 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5224 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5225 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5226
ae2ab2ce
AS
52272002-05-04 Aidan Skinner <aidan@velvet.net>
5228
5229 * ada-exp.tab.c: New file
5230 * ada-exp.y: New file
5231 * ada-lang.c: New file
5232 * ada-lang.h: New file
5233 * ada-lex.c: New file
5234 * ada-lex.l: New file
5235 * ada-tasks.c: New file
5236 * ada-typeprint.c: New file
5237 * ada-valprint.c: New file
5238
0ddd0135
JT
52392002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5240
5241 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5242 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5243
750fbacc
JT
52442002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5245
5246 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5247 insetead of ppc-linux-tdep.o.
5248 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5249 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5250
df94e18a
AC
52512002-06-02 Andrew Cagney <ac131313@redhat.com>
5252
5253 2002-05-07 Christian Groessler <chris@groessler.org>
5254 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5255 bit register contents for little endian hosts.
5256
1a38ab75
AC
52572002-06-01 Andrew Cagney <ac131313@redhat.com>
5258
5259 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5260 any maintainer.
5261
8b1632ac
AC
52622002-06-01 Andrew Cagney <ac131313@redhat.com>
5263
5264 * gdbarch.h: Regenerate.
5265
627054c8
AC
52662002-06-01 Andrew Cagney <ac131313@redhat.com>
5267
5268 * MAINTAINERS: Add everyone to write-after-approval list.
5269
4f460812
AC
52702002-06-01 Andrew Cagney <ac131313@redhat.com>
5271
5272 * stack.c (frame_info): Use frame_register_unwind instead of
5273 saved_regs. Mention when the SP is on the stack or in a register.
5274
5275 * frame.h (frame_register_unwind_ftype): Define. Document.
5276 (struct frame_info): Add field register_unwind and
5277 register_unwind_cache.
5278 (frame_register_unwind): Declare.
5279 (generic_unwind_get_saved_register): Declare.
5280
5281 * frame.c (frame_register_unwind): New function.
5282 (generic_unwind_get_saved_register): New function.
5283
5284 * blockframe.c (generic_call_dummy_register_unwind): New function.
5285 (frame_saved_regs_register_unwind): New function.
5286 (set_unwind_by_pc): New function.
5287 (create_new_frame): New function.
5288 (get_prev_frame): New function.
5289
de888f76
AC
52902002-05-30 Andrew Cagney <ac131313@redhat.com>
5291
5292 * a29k-share/: Delete directory.
5293 * remote-vx29k.c: Delete file.
5294
2f2c3626
JT
52952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5296
5297 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5298 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5299
9ce5c36a
JT
53002002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5301
5302 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5303 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5304 (sparc64nbsd-nat.o)
5305 (sparcnbsd-nat.o)
5306 (sparcnbsd-tdep.o): New dependency lists.
5307 * NEWS: Note new UltraSPARC NetBSD native configuration.
5308 * configure.host (sparc64-*-netbsd*): New host.
5309 * configure.tgt (sparc-*-netbsdelf*)
5310 (sparc-*-netbsd*): Set gdb_target to nbsd.
5311 (sparc64-*-netbsd*): New target.
5312 * sparc64nbsd-nat.c: New file.
5313 * sparcnbsd-nat.c: New file.
5314 * sparcnbsd-tdep.c: New file.
5315 * sparcnbsd-tdep.h: New file.
5316 * config/sparc/nbsd.mt: New file.
5317 * config/sparc/nbsd64.mh: New file.
5318 * config/sparc/nbsd64.mt: New file.
5319 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5320 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5321 (HOST_IPC): Remove.
5322 * config/sparc/nbsdaout.mt: Remove.
5323 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5324 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5325 (HOST_IPC): Remove.
5326 * config/sparc/nbsdelf.mt: Remove.
5327 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5328 sparc-nat.c compatiblity defines.
5329 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5330 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5331 * config/sparc/tm-nbsd64.h: New file.
5332 * config/sparc/tm-nbsdaout.h: Remove.
5333 * config/sparc/xm-nbsd.h: Remove.
5334
ef3cf062
JT
53352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5336
5337 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5338 * sparc-tdep.c: Include osabi.h.
5339 (gdbarch_tdep): Add osabi member.
5340 (_initialize_sparc_tdep): Use gdbarch_register.
5341 (sparc_gdbarch_init): Use generic OS ABI framework.
5342 (sparc_dump_tdep): New function.
5343
ee8ff470
KB
53442002-05-30 Kevin Buettner <kevinb@redhat.com>
5345
5346 * corefile.c (do_captured_read_memory_integer): Return non-zero
5347 result.
5348 (safe_read_memory_integer): Copy result of memory read when
5349 status is non-zero. Also, add comments.
5350
7b112f9c
JT
53512002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5352
5353 * Makefile.in (ppc_tdep_h): Define.
5354 (ppc-linux-nat.o)
5355 (ppc-linux-tdep.o)
5356 (rs6000-tdep.o): Use $(ppc_tdep_h).
5357 (ppc-sysv-tdep.o)
5358 (ppcnbsd-nat.o)
5359 (ppcnbsd-tdep.o): New dependency lists.
5360 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5361 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5362 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5363 (ppc_sysv_abi_broken_use_struct_convention)
5364 (ppc_sysv_abi_use_struct_convention)
5365 (ppc_sysv_abi_push_arguments): Move to...
5366 * ppc-sysv-tdep.c: ...here.
5367 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5368 * rs6000-tdep.c (process_note_abi_tag_sections)
5369 (get_elfosabi): Remove.
5370 (rs6000_gdbarch_init): Use generic OS ABI framework.
5371 (rs6000_dump_tdep): New function.
5372 (_initialize_rs6000_tdep): Use gdbarch_register.
5373 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5374 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5375 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5376 of ppc-linux-tdep.o.
5377 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5378 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5379 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5380 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5381 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5382 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5383
480dd42a
JB
53842002-05-29 Jim Blandy <jimb@redhat.com>
5385
5386 * macroscope.c (default_macro_scope): Put `void' in empty argument
5387 list.
5388
4182591f
AC
53892002-05-29 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5392 * arch-utils.c: Include "sim-regno.h".
5393 * gdbarch.sh: Don't include "sim-regno.h".
5394 * gdbarch.h, gdbarch.c: Regenerate.
5395 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5396 here.
5397 * arch-utils.h (legacy_register_sim_regno): To here.
5398 * remote-sim.c (legacy_register_sim_regno): Move function from
5399 here.
5400 * arch-utils.c (legacy_register_sim_regno): To here.
5401
8238d0bf
AC
54022002-05-28 Andrew Cagney <ac131313@redhat.com>
5403
5404 * sim-regno.h: New file.
5405 * Makefile.in (sim_regno_h): Define.
5406 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5407 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5408 (legacy_register_sim_regno): New function.
5409 (one2one_register_sim_regno): New function.
5410 (gdbsim_fetch_register): Rewrite.
5411 (gdbsim_store_register): Only store a register when
5412 REGISTER_SIM_REGNO is valid.
5413 * d10v-tdep.c: Include "sim-regno.h".
5414 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5415 (d10v_ts3_register_sim_regno): Ditto.
5416 * gdbarch.sh: Include "sim-regno.h".
5417 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5418 * gdbarch.h, gdbarch.c: Regenerate.
5419 * arch-utils.h (default_register_sim_regno): Delete declaration.
5420 * arch-utils.c (default_register_sim_regno): Delete function.
5421
485721b1
JT
54222002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5423
5424 * ppcnbsd-nat.c: Rewrite.
5425 * ppcnbsd-tdep.c: New file.
5426 * ppcnbsd-tdep.h: New file.
5427 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5428 solib.o, and solib-svr4.o.
5429 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5430 nbsd-tdep.o, and corelow.o.
5431
697f244d
AC
54322002-05-28 Andrew Cagney <ac131313@redhat.com>
5433
5434 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5435 `tr' and `sed'. Mention that `broken' targets are not expected to
5436 build.
5437
f08caad1 54382002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5439
5440 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5441 Let PC point right after the prologue before looking up symbols.
5442
3139facc
MH
54432002-05-27 Martin M. Hunt <hunt@redhat.com>
5444
5445 * i386-tdep.c (i386_register_virtual_type): Return
5446 builtin_type_vec128i for SSE registers.
5447
5448 * gdbtypes.h (builtin_type_vec128i): Declare.
5449
5450 * gdbtypes.c (build_builtin_type_vec128i): New function.
5451 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5452 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5453 (build_gdbtypes): Initialize new builtin vector types.
5454 (_initialize_gdbtypes): Register new vector types with gdbarch.
5455
6e3ba3b8
JT
54562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5457
5458 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5459 since it has been multi-arch'd.
5460 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5461 Move Alpha and VAX multi-arch news entries to same section
5462 as other multi-arch news.
5463
93d5585d
JT
54642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5465
5466 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5467 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5468 static. Rename some register numbers to put them in ns32k-tdep
5469 private namespace.
5470 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5471 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5472 functions.
5473 (_initialize_ns32k_tdep): Use gdbarch_register.
5474 * ns32k-tdep.h: New file.
5475 * ns32knbsd-tdep.c: New file.
5476 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5477 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5478 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5479 REGISTER_BYTES, REGISTER_BYTE): Remove.
5480 * config/ns32k/tm-ns32k.h: New file.
5481 * config/ns32k/tm-umax.h: Remove.
5482
efb2c70e
JT
54832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5484
5485 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5486 ns32k_store_struct_return, ns32k_extract_return_value,
5487 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5488 functions.
5489 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5490 ns32k_saved_pc_after_call.
5491 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5492 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5493 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5494 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5495 ns32k_extract_struct_value_address.
5496
7bcc927b
JT
54972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5498
5499 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5500 ns32k_fix_call_dummy): New.
5501 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5502 ns32k_call_dummy_words.
5503 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5504 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5505 CALL_DUMMY_NARGS): Remove.
5506 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5507
78f9d765
JT
55082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5509
5510 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5511 ns32k_frame_saved_pc, ns32k_frame_args_address,
5512 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5513 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5514 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5515 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5516 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5517 (BREAKPOINT): Remove..
5518 (FRAME_CHAIN): Define as ns32k_frame_chain.
5519 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5520 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5521 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5522 (FRAME_FIND_SAVED_REGS): Remove.
5523 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5524 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5525 (POP_FRAME): Define as ns32k_pop_frame.
5526
f2c762e0
JT
55272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5528
5529 * ns32k-tdep.c (ns32k_register_byte_32082,
5530 ns32k_register_byte_32382, ns32k_register_raw_size,
5531 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5532 functions.
5533 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5534 ns32k_register_byte_32382.
5535 * config/ns32k/tm-umax.h: Update copyright years.
5536 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5537 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5538 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5539 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5540 (ns32k_get_enter_addr): Fix prototype.
5541
af137673
JT
55422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5543
5544 * ns32k-tdep.c: Update copyright years.
5545 (ns32k_register_name_32082): New function.
5546 (ns32k_register_name_32382): Ditto.
5547 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5548 (REGISTER_NAME): Define as ns32k_register_name_32382.
5549 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5550 (REGISTER_NAME): Define as ns32k_register_name_32082.
5551
a8bc7b56
JB
55522002-05-24 Jim Blandy <jimb@redhat.com>
5553
5554 * dwarf2read.c (free_line_header): Use xfree, not free.
5555
83a45910
JT
55562002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5557
5558 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5559 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5560
0db71247
AC
55612002-05-23 Andrew Cagney <ac131313@redhat.com>
5562
5563 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5564
b9e5e4dd
AC
55652002-05-23 Andrew Cagney <ac131313@redhat.com>
5566
5567 From Ross Alexander at NEC Europe:
5568 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5569
de530e84
MS
55702002-05-23 Michael Snyder <msnyder@redhat.com>
5571
5572 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5573 for input, rather than parse_and_eval_address.
5574
b91b96f4
AC
55752002-05-23 Andrew Cagney <ac131313@redhat.com>
5576
5577 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5578 * Makefile.in (sim_d10v_h): Update definition.
5579
8b279e7a
AC
55802002-05-24 Andrew Cagney <cagney@redhat.com>
5581
5582 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5583 change `2002-05-22 Michael Snyder' below.
5584 (d10v_push_arguments): Ditto.
5585 (d10v_extract_return_value): Ditto.
5586
0a3d0425
JB
55872002-05-23 Jim Blandy <jimb@redhat.com>
5588
5589 * macrotab.c (check_for_redefinition): Don't complain if the new
5590 definition is the same as the previous one. Take more arguments
5591 to allow the comparison.
5592 (macro_define_object, macro_define_function): Pass more arguments
5593 to check_for_redefinition.
5594
78eac43e
MS
55952002-05-22 Michael Snyder <msnyder@redhat.com>
5596
5597 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5598 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5599 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5600 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5601 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5602 Add a temp variable to save a call (and a memory read).
5603 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5604 if possible (so that PC_IN_CALL_DUMMY will work).
5605
9bc1edb8
CV
56062002-05-22 Corinna Vinschen <vinschen@redhat.com>
5607
5608 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5609
005ef3d2
ML
56102002-05-22 Michal Ludvig <mludvig@suse.cz>
5611
5612 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5613 fde->cie_ptr.
5614 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5615 (dwarf2_build_frame_info): Add offset to fde->initial_location
5616 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5617 (execute_stack_op): Change type of 'result' from ULONGEST to
5618 CORE_ADDR.
005ef3d2 5619
fcf4f891
JT
56202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5621
5622 * config/alpha/tm-nbsd.h: Include solib.h.
5623
cfef91e4
JT
56242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5625
5626 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5627 assumptions about the host's byte order.
5628
9964235a
JT
56292002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5630
5631 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5632 to dependency list.
5633 * alphanbsd-tdep.c: Include solib-svr4.h.
5634 * shnbsd-tdep.c: Ditto.
5635
9eeef8ef
JT
56362002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5637
5638 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5639 nbsd-tdep.h to dependency list.
5640 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5641 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5642 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5643 nbsdaout.mh and nbsdelf.mh consistently.
5644 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5645 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5646 nbsdaout.mt and nbsdelf.mh consistently.
5647 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5648 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5649 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5650 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5651 a.out shared library stuff from here...
5652 * config/nm-nbsdaout.h: ...to here.
5653 * config/tm-nbsd.h: Remove.
5654 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5655 * config/arm/nbsd.mh: Remove.
5656 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5657 nbsd-tdep.o.
5658 * config/arm/nbsdaout.mh: New file.
5659 * config/arm/nbsdelf.mh: New file.
5660 * config/arm/nm-nbsdaout.h: New file.
5661 * config/i386/nbsd.mh: Remove.
5662 * config/i386/nbsd.mt: Remove.
5663 * config/i386/nbsdaout.mh: New file.
5664 * config/i386/nbsdaout.mt: New file.
5665 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5666 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5667 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5668 i386_register_u_addr): Remove.
5669 * config/i386/nm-nbsdaout.h: New file.
5670 * config/i386/nm-nbsdelf.h: Remove.
5671 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5672 (USE_STRUCT_CONVENTION): Remove.
5673 * config/i386/tm-nbsdaout.h: New file.
5674 * config/i386/tm-nbsdelf.h: Remove.
5675 * config/m68k/nbsd.mh: Remove.
5676 * config/m68k/nbsd.mt: Remove.
5677 * config/m68k/nbsdaout.mh: New file.
5678 * config/m68k/nbsdaout.mt: New file.
5679 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5680 * config/m68k/nm-nbsdaout.h: New file.
5681 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5682 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5683 * config/ns32k/nbsd.mh: Remove.
5684 * config/ns32k/nbsd.mt: Remove.
5685 * config/ns32k/nbsdaout.mh: New file.
5686 * config/ns32k/nbsdaout.mt: New file.
5687 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5688 * config/ns32k/nm-nbsdaout.h: New file.
5689 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5690 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5691 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5692 (SVR4_SHARED_LIBS): Remove.
5693 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5694 * config/sparc/nbsd.mh: Remove.
5695 * config/sparc/nbsd.mt: Remove.
5696 * config/sparc/nbsdaout.mh: New file.
5697 * config/sparc/nbsdaout.mt: New file.
5698 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5699 * config/sparc/nbsdelf.mt: New file.
5700 * config/sparc/nm-nbsdaout.h: New file.
5701 * config/sparc/nm-nbsdelf.h: Remove.
5702 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5703 * config/sparc/tm-nbsdaout.h: New file.
5704
257ce470
JT
57052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5706
5707 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5708 mipsnbsd-tdep.c
5709 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5710
76a6d5fe
JT
57112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5712
5713 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5714 shnbsd-nat.c.
5715 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5716
45888261
JT
57172002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5718
5719 * NEWS: Note new MIPS NetBSD native configuration.
5720 * configure.host (mips*-*-netbsd*): New host.
5721 * configure.tgt (mips*-*-netbsd*): New target.
5722 * mipsnbsd-nat.c: New file.
5723 * mipsnbsd-tdep.c: New file.
5724 * mipsnbsd-tdep.h: New file.
5725 * config/mips/nbsd.mh: New file.
5726 * config/mips/nbsd.mt: New file.
5727 * config/mips/nm-nbsd.h: New file.
5728 * config/mips/tm-nbsd.h: New file.
5729
70f80edf
JT
57302002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5731
5732 * Makefile.in (SFILES): Add osabi.c.
5733 (COMMON_OBS): Add osabi.o.
5734 (osabi.o): New dependency list.
5735 * osabi.c: New file.
5736 * osabi.h: New file.
5737 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5738
5739 * Makefile.in (alpha_tdep_h): Define and use instead of
5740 alpha-tdep.h.
5741 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5742 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5743 Remove.
5744 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5745 * alpha-tdep.h: Include osabi.h.
5746 (alpha_abi): Remove.
5747 (gdbarch_tdep): Use generic OS ABI framework.
5748 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5749 gdbarch_register_osabi.
5750 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5751 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5752 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5753
5754 * Makefile.in (sh_tdep_h): Add osabi.h.
5755 * sh-tdep.h (sh_osabi): Remove.
5756 (gdbarch_tdep): Use generic OS ABI framework.
5757 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5758 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5759 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5760 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5761
5762 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5763 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5764 gdbarch_register_osabi.
5765 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5766 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5767 (get_elfosabi): Rename to...
5768 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5769 ABI framework support routines.
5770 (arm_gdbarch_init): Use generic OS ABI framework.
5771 (arm_dump_tdep): Likewise.
5772 (_initialize_arm_tdep): Likewise.
5773 * arm-tdep.h: Include osabi.h.
5774 (arm_abi): Remove.
5775 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5776 osabi member.
5777 (arm_gdbarch_register_os_abi): Remove prototype.
5778 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5779 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5780
5781 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5782 * mips-tdep.c: Include osabi.h.
5783 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5784 OS ABI framework.
5785
d194345b
KH
57862002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5787
5788 * h8300-tdep.c: Fix formatting.
5789
70c6b0d1
EZ
57902002-05-20 Elena Zannoni <ezannoni@redhat.com>
5791
5792 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5793 printing vector registers.
5794
165b8e33
AC
57952002-05-19 Andrew Cagney <ac131313@redhat.com>
5796
5797 From Fernando Nasser:
5798 * remote.c (remote_async_open_1): Re-throw the exception when the
5799 connection fails.
5800 (remote_cisco_open): Ditto.
5801 (remote_open_1): Ditto.
5802
36918e70
AC
58032002-05-19 Andrew Cagney <ac131313@redhat.com>
5804
5805 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5806 (remote_start_remote): Add uiout parameter. Pass through to
5807 remote_start_remote_dummy.
5808 (remote_open_1): Use catch_exception instead of catch_errors.
5809 (remote_async_open_1): Ditto.
5810 (remote_cisco_open): Ditto.
5811
ae44c0c4
AC
58122002-05-19 Andrew Cagney <ac131313@redhat.com>
5813
5814 * remote.c (remote_start_remote): Replace PTR with void pointer.
5815 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5816 static.
5817
8efe637d
AC
58182002-05-18 Andrew Cagney <ac131313@redhat.com>
5819
5820 * gdb_indent.sh: Allow the script to be run in the sim directory.
5821
2f1b5984
MK
58222002-05-18 Mark Kettenis <kettenis@gnu.org>
5823
f0f625e2
MK
5824 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5825 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5826
2f1b5984
MK
5827 * corelow.c (core_open): Only call set_gdbarch_from_file if
5828 exec_bfd is NULL.
5829
fc974602
AV
58302002-05-17 Andrey Volkov <avolkov@transas.com>
5831
5832 * h8300-tdep.c: Add support of EXR register
5833 * config/h8300/tm-h8300.h: Ditto.
5834
906709f4
AV
58352002-05-17 Andrey Volkov <avolkov@transas.com>
5836
5837 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5838
6e591d68
AV
58392002-05-17 Andrey Volkov <avolkov@transas.com>
5840
5841 * h8300-tdep.c: Change literal regnums to REGNO.
5842
84f0252a
JB
58432002-05-17 Jim Blandy <jimb@redhat.com>
5844
e0e9281e
JB
5845 * NEWS: Note addition of macro support.
5846
84f0252a
JB
5847 Expand preprocessor macros in C expressions.
5848 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5849 (scan_macro_expansion, scanning_macro_expansion,
5850 finished_macro_expansion): New function declarations.
5851 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5852 variable declarations.
5853 * parser-defs.h (expression_context_pc): New declaration.
5854 * parse.c (expression_context_pc): New variable.
5855 (parse_exp_1): Set expression_context_pc, as well as
5856 expression_context_block.
5857 * c-exp.y (yylex): If we're not already reading the result of a
5858 macro expansion, try to macro-expand the next token. When we're
5859 done scanning a macro expansion, switch back to the mainline text.
5860 Commas and `if's in a macro's expansion don't terminate the input.
5861 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5862 (macro_original_text, macro_expanded_text,
5863 expression_macro_lookup_func, expression_macro_lookup_baton): New
5864 variables.
5865 (scan_macro_expansion, scanning_macro_expansion,
5866 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5867 c_preprocess_and_parse): New functions.
5868 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5869 c_preprocess_and_parse, instead of c_parse.
5870 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5871 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5872
1c509ca8
JR
5873Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5874
5875 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5876 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5877 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5878
2250ee0c
CV
58792002-05-17 Corinna Vinschen <vinschen@redhat.com>
5880
5881 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5882
ab3b8126
JT
58832002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * Makefile.in (sh_tdep_h): Define and use.
5886 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5887 register enum): Move to...
5888 * * sh-tdep.h: ...here.
5889 * sh-tdep.c: Include sh-tdep.h.
5890 * sh3-rom.c: Likewise.
5891 * shnbsd-tdep.c: Likewise.
5892
ed9d4749
MS
58932002-05-16 Michael Snyder <msnyder@redhat.com>
5894
5895 * arm-tdep.c: Spelling fix in comment.
5896
2e276125
JB
58972002-05-16 Jim Blandy <jimb@redhat.com>
5898
6821892e
JB
5899 Add commands for manually expanding macros and showing their
5900 definitions.
5901 * macrocmd.c, macroscope.c, macroscope.h: New files.
5902 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5903 (macroscope_h): New variable.
5904 (HFILES_NO_SRCDIR): Add macroscope.h.
5905 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5906 (macroscope.o, macrocmd.o): New rules.
5907
2e276125
JB
5908 Teach the Dwarf 2 reader to read macro information.
5909 * dwarf2read.c: #include "macrotab.h".
5910 (dwarf_macinfo_buffer): New variable.
5911 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5912 dwarf_macinfo_size.
5913 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5914 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5915 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5916 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5917 dwarf2_macro_spaces_in_definition): New complaints.
5918 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5919 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5920 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5921 the partial symbol table.
5922 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5923 from what's recorded in the partial symbol table.
5924 (read_file_scope): If the compilation unit has a
5925 `DW_AT_macro_info' attribute, read its macro information.
5926 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5927
2f53fe6c
DJ
59282002-05-16 Daniel Jacobowitz <drow@mvista.com>
5929
5930 Fix PR gdb/546
5931 * ser-tcp.c: Don't include <netinet/udp.h>.
5932
2be99286
SC
59332002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5934
5935 * MAINTAINERS: Update my email address.
5936
c9af212b 59372002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5938
5939 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5940 include file of the same name.
5941
bf5f1a52
CV
59422002-05-16 Corinna Vinschen <vinschen@redhat.com>
5943
5944 * configure.tgt: Mark v850 as multi-arched.
5945 * config/v850/tm-v850.h: Remove file.
5946 * config/v850/v850.mt: Eliminate TM_FILE.
5947
435e042a
CV
59482002-05-16 Corinna Vinschen <vinschen@redhat.com>
5949
5950 * v850-tdep.c: Full multi-arch.
5951 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5952 Define GDB_MULTI_ARCH to 2.
5953
9819c6c8
PM
59542002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5955
5956 * p-exp.y (current_type): New static variable.
5957 Carries the type of the expression at the position that is parsed.
5958 (push_current_type, pop_current_type): Two new functions. Used
5959 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5960 (search_field): New static variable. Set to one after parsing a point
5961 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5962 (FIELDNAME): New token. After a point only a token belonging to
5963 current_type type definition is allowed.
5964 (all over token rules): reset and change current_type according
5965 to rules.
5966 (exp '[' rule): insert implicit array index field if
5967 exp is a pascal string type.
5968
3a06899a
CV
59692002-05-16 Corinna Vinschen <vinschen@redhat.com>
5970
5971 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5972 frame info. Use frame_info's saved_regs instead of matching member
5973 in extra_frame_info throughout.
5974 (v850_frame_init_saved_regs): New function.
5975 (v850_init_extra_frame_info): Move most functionality into
5976 v850_frame_init_saved_regs().
5977 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5978 (v850_frame_find_saved_regs): Remove declaration.
5979 (FRAME_FIND_SAVED_REGS): Remove definition.
5980 (v850_frame_init_saved_regs): Add declaration.
5981 (FRAME_INIT_SAVED_REGS): Add definition.
5982
6ed14b0e
CV
59832002-05-16 Corinna Vinschen <vinschen@redhat.com>
5984
5985 * v850-tdep.c: Begin multi-arch'ing v850.
5986 (v850_target_architecture_hook): Remove function.
5987 (v850_gdbarch_init): New function. Add code previously in
5988 v850_target_architecture_hook().
5989 (_initialize_v850_tdep): Don't set target_architecture_hook.
5990 Call register_gdbarch_init() instead.
5991
42725910
DJ
59922002-05-16 Daniel Jacobowitz <drow@mvista.com>
5993
5994 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5995 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5996 (fixup_class_method_type): Likewise.
5997
99d9066e
JB
59982002-05-15 Jim Blandy <jimb@redhat.com>
5999
6000 Add macro structures to GDB's symbol tables. Nobody puts anything
6001 in them yet.
6002 * symtab.h (struct symtab): New member: `macro_table'.
6003 * buildsym.h (pending_macros): New global variable.
6004 * buildsym.c: #include "macrotab.h".
6005 (buildsym_init): Initialize `pending_macros'.
6006 (end_symtab): If we found macro information while reading a CU's
6007 debugging info, do build a symtab structure for it. Make the
6008 symtab point to the macro information, and clear the
6009 `pending_macros' pointer which held it while we were reading the
6010 debug info.
6011 (really_free_pendings): Free any pending macro table.
6012 * objfiles.h (struct objfile): New member: `macro_cache'.
6013 * objfiles.c (allocate_objfile): Set allocate and free functions
6014 for the macro cache's objstack.
6015 (free_objfile): Empty the macro cache's obstack.
6016 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6017 set new allocate and free functions for it.
6018 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6019 free functions for the macro cache's objstack. (Why is this
6020 function building its own objfile?)
6021 * symmisc.c (print_objfile_statistics): Print statistics on the
6022 macro bcache.
6023 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6024
c899585b
RE
60252002-05-15 Richard Earnshaw <rearnsha@arm.com>
6026
6027 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6028 (REGISTER_U_ADDR): Delete definition.
6029 (arm_register_u_addr): Delete declaration.
6030
a6cdd8c5
RE
60312002-05-15 Richard Earnshaw <rearnsha@arm.com>
6032
6033 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6034 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6035
c97dcfc7
AC
60362002-05-14 Andrew Cagney <ac131313@redhat.com>
6037
6038 * regcache.c (register_valid): Revise comments refering to "Not
6039 available" and "unavailable".
6040 * frame.c (frame_register_read): Ditto.
6041 * findvar.c (value_of_register): Ditto.
6042
93021b7d
AC
60432002-05-15 Andrew Cagney <cagney@redhat.com>
6044
6045 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6046 (remote-sim.o): Update dependencies.
6047 (d10v-tdep.o): Specify dependencies.
6048 (sim_d10v_h): Define.
6049
a86bc61c
JB
60502002-05-14 Jim Blandy <jimb@redhat.com>
6051
6052 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6053 * macrotab.c (macro_lookup_inclusion, find_definition,
6054 new_macro_table): Same.
6055
6056 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6057 not `! strcmp ()'. This is a dubious improvement.
6058 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6059
6060 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6061 although it's not necessary, to avoid a warning.
6062
2fdde8f8
DJ
60632002-05-14 Daniel Jacobowitz <drow@mvista.com>
6064
6065 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6066 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6067 TYPE_INSTANCE_FLAGS.
6068 (struct main_type): New.
6069 (struct type): Move most members to struct main_type. Change
6070 cv_type and as_type to new type_chain member. Add instance_flags.
6071 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6072 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6073 (finish_cv_type): Remove prototype.
6074 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6075 Set TYPE_CHAIN.
6076 (alloc_type_instance): New function.
6077 (smash_type): New function.
6078 (make_pointer_type, make_reference_type, make_function_type)
6079 (smash_to_member_type, smash_to_method_type): Call smash_type.
6080 (make_qualified_type): New function.
6081 (make_type_with_address_space): Call make_qualified_type.
6082 (make_cv_type): Likewise.
6083 (finish_cv_type): Remove unnecessary function.
6084 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6085 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6086 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6087 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6088 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6089 * hpread.c (hpread_read_struct_type): Likewise.
6090 * stabsread.c (read_struct_type): Likewise.
6091
843fedf4
EZ
60922002-05-14 Elena Zannoni <ezannoni@redhat.com>
6093
6094 * configure.tgt: Add a catch all sh* target, for cases like
6095 sh[2,3,4]-elf and sh-hms.
6096
05a6c72c
KS
60972002-05-14 Keith Seitz <keiths@redhat.com>
6098
6099 * event-loop.c (create_file_handler): Don't do anything but
6100 update data when we are given a fd which we are already
6101 monitoring.
6102
5d085aaf
ML
61032002-05-14 Michal Ludvig <mludvig@suse.cz>
6104
6105 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6106 (update_context): Use __func__ in warnings.
6107
9db8d71f
DJ
61082002-05-14 Daniel Jacobowitz <drow@mvista.com>
6109
6110 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6111 and tcp_close to net_open and net_close.
6112 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6113 using UDP if requested. Don't try to disable Nagle on UDP
6114 sockets.
6115 * remote.c (remote_serial_open): New function. Warn about UDP.
6116 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6117
5dbc6baa
EZ
61182002-05-13 Elena Zannoni <ezannoni@redhat.com>
6119
6120 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6121
cc3023f7
EZ
61222002-05-13 Elena Zannoni <ezannoni@redhat.com>
6123
6124 * configure.tgt: Remove sh-hms target.
6125 * MAINTAINERS: Don't list sh-hms as a separate target.
6126
ec2bcbe7
JB
61272002-05-13 Jim Blandy <jimb@redhat.com>
6128
6129 Add first preprocessor macro-expansion files.
6130 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6131 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6132 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6133 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6134 (COMMON_OBS): Add macrotab.o, macroexp.o.
6135 (macroexp.o, macrotab.o): New rules.
6136
6d531722
AC
61372002-05-13 Andrew Cagney <ac131313@redhat.com>
6138
6139 * config/m88k/tm-m88k.h: Update copyright.
6140 (m88k_target_write_pc): Declare
6141 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6142 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6143 (SHIFT_INST_REGS): Update definition.
6144 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6145 using old definition of TARGET_WRITE_PC.
6146 * regcache.c (generic_target_write_pc): Delete code handling
6147 NNPC_REGNUM.
6148 * gdbarch.sh (NNPC_REGNUM): Delete.
6149 * gdbarch.h, gdbarch.c: Regenerate.
6150
3e3f2739
RE
61512002-05-13 Richard Earnshaw <rearnsha@arm.com>
6152
6153 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6154 builtin reg number.
6155
0004e5a2
DJ
61562002-05-13 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6159 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6160 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6161 access macros.
6162 * c-typeprint.c (cp_type_print_method_args): Likewise.
6163 (c_type_print_args): Likewise.
6164 * d10v-tdep.c (d10v_push_arguments): Likewise.
6165 (d10v_extract_return_value): Likewise.
6166 * expprint.c (print_subexp): Likewise.
6167 * gdbtypes.c (lookup_primitive_typename): Likewise.
6168 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6169 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6170 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6171 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6172 (TYPE_VECTOR): Likewise.
6173 * hpread.c (hpread_read_struct_type)
6174 (fix_static_member_physnames, fixup_class_method_type)
6175 (hpread_type_lookup): Likewise.
6176 * mdebugread.c (parse_symbol, parse_type): Likewise.
6177 * p-lang.c (is_pascal_string_type): Likewise.
6178 * valops.c (hand_function_call): Likewise.
6179 * x86-64-tdep.c (classify_argument): Likewise.
6180
6181 * hpread.c (hpread_read_function_type)
6182 (hpread_read_doc_function_type): Call replace_type.
6183 * dstread.c (create_new_type): Delete.
6184 (decode_dst_structure, process_dst_function): Call alloc_type.
6185 Use type access macros.
6186
dff95cc7
MK
61872002-05-12 Mark Kettenis <kettenis@gnu.org>
6188
6189 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6190 the're not supported by the current architecture.
6191 (i387_fill_fxsave): Likewise.
6192
bbcd32ad
FF
61932002-05-12 Fred Fish <fnf@redhat.com>
6194
6195 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6196 sect_index_xxx members to index the first slot in section_offsets
6197 if all of the section_offsets are zero.
6198
89cf4787
MK
61992002-05-12 Mark Kettenis <kettenis@gnu.org>
6200
6201 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6202 checked in with last change.
6203
1f77ffc5
MK
62042002-05-12 Mark Kettenis <kettenis@gnu.org>
6205
6206 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6207 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6208 config.sub.
6209
89b8b4a9
DJ
62102002-05-12 Daniel Jacobowitz <drow@mvista.com>
6211
6212 * Makefile.in: Update dependencies.
6213
14a5e767
AC
62142002-05-11 Andrew Cagney <ac131313@redhat.com>
6215
6216 * language.c (local_hex_string_custom): Simplify. Do not depend
6217 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6218
6219 * memattr.c (mem_info_command): Replace calls to
6220 longest_local_hex_string and longest_local_hex_string_custom.
6221 * buildsym.c (make_blockvector): Ditto.
6222 * solib.c (info_sharedlibrary_command): Ditto.
6223 * tracepoint.c (tracepoints_info): Ditto.
6224 * symtab.c (print_msymbol_info): Ditto.
6225
6226 * language.c (local_hex_string): Delete.
6227 (local_hex_string_custom): Delete.
6228 (longest_local_hex_string): Rename to local_hex_string.
6229 (longest_local_hex_string_custom): Rename to
6230 local_hex_string_custom.
6231 * language.h (local_hex_string): Change parameter type to LONGEST.
6232 (local_hex_string_custom): Ditto.
6233 (longest_local_hex_string): Delete declaration.
6234 (longest_local_hex_string_custom): Ditto.
6235
6236 * solib.c: Update copyright.
6237 * memattr.c: Update copyright.
6238
13d01224
AC
62392002-05-11 Andrew Cagney <ac131313@redhat.com>
6240
6241 * arch-utils.h (legacy_register_to_value): Declare.
6242 (legacy_value_to_register): Declare.
6243 (legacy_convert_register_p): Declare.
6244 * arch-utils.c (legacy_register_to_value): New function.
6245 (legacy_value_to_register): New function.
6246 (legacy_convert_register_p): New function.
6247
6248 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6249 (VALUE_TO_REGISTER): Define.
6250 (CONVERT_REGISTER_P): Define.
6251 * gdbarch.h, gdbarch.c: Regenerate.
6252
6253 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6254 VALUE_TO_REGISTER.
6255 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6256 CONVERT_REGISTER_P.
6257
4a1970e4
DJ
62582005-05-11 Daniel Jacobowitz <drow@mvista.com>
6259 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6260
6261 * Makefile.in: Update dependencies for valops.c.
6262 * valops.c: Include "gdb_assert.h".
6263 (typecmp): Skip THIS parameter to methods.
6264 (find_method_list): Remove static_memfuncp argument,
6265 update callers. Check for stub methods.
6266 (find_value_oload_method_list): Don't set *static_memfuncp.
6267 (find_overload_match): Don't check for stub methods. Assert
6268 that methods are not stubbed. Handle static methods.
6269 (value_find_oload_method_list): Remove static_memfuncp argument.
6270 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6271 to the argument list for static stub methods.
6272 * value.h (value_find_oload_method_list): Update prototype.
6273
b2e75d78
AC
62742002-05-11 Andrew Cagney <ac131313@redhat.com>
6275
6276 * arch-utils.h (generic_register_size): Declare.
6277 (generic_register_raw_size, generic_register_virtual_size): Delete
6278 declarations.
6279 * arch-utils.c (generic_register_raw_size): Delete.
6280 (generic_register_size): New function.
6281 (generic_register_virtual_size): Delete.
6282
6283 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6284 default generic_register_size.
6285 * gdbarch.h, gdbarch.c: Re-generate.
6286
6287 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6288 register_virtual_size.
6289 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6290 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6291
451fbdda
AC
62922002-05-11 Andrew Cagney <ac131313@redhat.com>
6293
6294 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6295 * gdbarch.h, gdbarch.c: Regenerate.
6296 * gnu-v3-abi.c: Update copyright.
6297 (vtable_address_point_offset): Update.
6298 (gnuv3_rtti_type): Update.
6299 (gnuv3_baseclass_offset): Update.
6300 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6301 (init_fetch_link_map_offsets): Update.
6302 * remote.c (get_remote_state): Update.
6303
6d2f5cea
DJ
63042002-05-11 Daniel Jacobowitz <drow@mvista.com>
6305
6306 * TODO: Remove value_headof/value_from_vtable_info comment.
6307 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6308 * values.c (value_headof, value_from_vtable_info): Delete.
6309 * value.h (value_from_vtable_info): Delete prototype.
6310
d2324da4
AC
63112002-05-11 Andrew Cagney <ac131313@redhat.com>
6312
6313 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6314 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6315 $(gdb_regex_h).
6316 (gdb_assert_h): Define.
6317 (gdb_wait_h): Define.
6318 (gdb_regex_h): Define.
6319
5c717440
DJ
63202002-05-11 Daniel Jacobowitz <drow@mvista.com>
6321
6322 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6323 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6324
6c7861b3
JT
63252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6326
6327 * nbsd-tdep.c: Fix comment.
6328
ea5bc2a6
JT
63292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6330
6331 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6332 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6333 (nbsd-tdep.o): New dependency list.
6334 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6335 nbsd-tdep.h.
6336 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6337 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6338 * nbsd-tdep.c: New file.
6339 * nbsd-tdep.h: New file.
6340 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6341 nbsd-tdep.h.
6342 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6343 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6344 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6345 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6346
b28da865
JT
63472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6348
6349 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6350 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6351 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6352 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6353 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6354 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6355
4b8ff1fa
JT
63562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6357
6358 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6359 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6360 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6361 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6362 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6363 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6364 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6365
dfe6eb1f
JT
63662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6367
6368 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6369 fetch_elfcore_registers to...
6370 * i386nbsd-tdep.c: ...here.
6371 (i386nbsd_use_struct_convention): Rename to...
6372 (i386nbsd_aout_use_struct_convention): ...this.
6373 (i386nbsd_supply_reg): New function.
6374 (i386nbsd_fill_reg): New function.
6375 (fetch_core_registers): Use i386nbsd_supply_reg.
6376 (fetch_elfcore_registers): Likewise.
6377 (_initialize_i386nbsd_tdep): New function.
6378 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6379 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6380 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6381 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6382 (i386nbsd_aout_use_struct_convention): ...this.
6383
20cb8cda
JT
63842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6385
6386 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6387 (store_inferior_registers): Use shnbsd_fill_reg.
6388 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6389 sh_nbsd_supply_register): Collapse into...
6390 (shnbsd_supply_reg): ...this.
6391 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6392 (shnbsd_fill_reg): ...this.
6393 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6394 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6395 (fetch_core_registers): Use shnbsd_supply_reg.
6396 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6397 (sh_nbsd_core_fns): Rename to...
6398 (shnbsd_core_fns): ...this.
6399 (sh_nbsd_elfcore_fns): Rename to...
6400 (shnbsd_elfcore_fns): ...this.
6401 (sh_nbsd_init_abi): Rename to...
6402 (shnbsd_init_abi): ...this.
6403 (_initialize_sh_nbsd_tdep): Rename to...
6404 (_initialize_shnbsd_tdep): ...this.
6405 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6406 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6407 sh_nbsd_fill_register): Remove prototypes.
6408 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6409
e750d25e
JT
64102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6411
6412 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6413 (i387-nat.o): Delete dependency list.
6414 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6415 (x86-64-linux-nat.o): Likewise.
6416 * i387-nat.c: Delete file, moving contents to...
6417 * i387-tdep.c: ...here.
6418 * i387-nat.h: Rename...
6419 * i387-tdep.h: ...to this.
6420 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6421 * i386-linux-nat.c: Likewise.
6422 * i386bsd-nat.c: Likewise.
6423 * i386gnu-nat.c: Likewise.
6424 * i386nbsd-nat.c: Likewise.
6425 * i386v4-nat.c: Likewise.
6426 * x86-64-linux-nat.c: Likewise.
6427 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6428 * config/i386/go32.mh (NATDEPFILES): Likewise.
6429 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6430 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6431 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6432 * config/i386/linux.mh (NATDEPFILES): Likewise.
6433 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6434 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6435 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6436 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6437
1aee598a
JT
64382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6441 (alphanbsd-nat.o): Remove dependency list.
6442 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6443 * alphanbsd-nat.c: Delete. Contents moved to...
6444 * alphanbsd-tdep.c: ...here.
6445 (_initialize_alphanbsd_tdep): Register core functions.
6446 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6447
12bcb0fe
JT
64482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6451 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6452 (alphanbsd-nat.o): Likewise.
6453 (alphabsd-tdep.o): New dependency list.
6454 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6455 (fill_gregset): Use alphabsd_fill_reg.
6456 (supply_fpregset): Use alphabsd_supply_fpreg.
6457 (fill_fpregset): Use alphabsd_fill_fpreg.
6458 (fetch_inferior_registers): Use struct reg and struct fpreg
6459 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6460 and alphabsd_supply_fpreg.
6461 (store_inferior_registers): Use struct reg and struct fpreg
6462 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6463 and alphabsd_fill_fpreg.
6464 * alphabsd-tdep.c: New file.
6465 * alphabsd-tdep.h: New file.
6466 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6467 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6468 alphabsd_supply_fpreg.
6469 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6470 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6471
361d1df0
EC
64722002-05-11 Eric Christopher <echristo@redhat.com>
6473
6474 * mips-tdep.c (mips_double_register_type): Fix thinko.
6475 (mips_single_register_type): Ditto.
6476 * MAINTAINERS: Add self.
6477
92dd7cee
MK
64782002-05-11 Mark Kettenis <kettenis@gnu.org>
6479
6480 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6481 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6482 right thing on architectures with different endianness and/or
6483 integer sizes.
6484
e27da16d
JT
64852002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6486
6487 From Christian Limpach <chris@Pin.LU>
6488 * configure.in: Change sed expression which comments out
6489 NATDEPFILES to also comment out continuation lines.
6490 * configure: Regenerate.
6491
ddde02bd
EZ
64922002-05-10 Elena Zannoni <ezannoni@redhat.com>
6493
6494 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6495 big patch.
6496
1c922164
EZ
64972002-05-10 Elena Zannoni <ezannoni@redhat.com>
6498
6499 * sh-tdep.c: Include correct file.
6500
283150cd
EZ
65012002-05-10 Elena Zannoni <ezannoni@redhat.com>
6502
6503 New support for sh64-elf (sh5) target.
6504
6505 * configure.tgt: For sh64-elf target, default to sh-elf.
6506
6507 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6508 (struct gdbarch_tdep): Add new fields for new registers and ABI
6509 info.
361d1df0 6510
283150cd
EZ
6511 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6512 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6513 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6514 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6515 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6516 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6517 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6518 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6519 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6520 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6521 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6522 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6523 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6524 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6525 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6526 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6527 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6528 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6529 sign_extend, sh64_nofp_frame_init_saved_regs,
6530 sh64_init_extra_frame_info, sh64_get_saved_register,
6531 sh64_extract_struct_value_address, sh64_pop_frame,
6532 sh64_push_arguments, sh64_extract_return_value,
6533 sh64_store_return_value, sh64_show_media_regs,
6534 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6535 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6536 sh_sh64_register_virtual_type,
6537 sh_sh64_register_convert_to_virtual,
6538 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6539 sh64_register_read, sh64_pseudo_register_write,
6540 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6541 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6542 sh64_do_pseudo_register, sh_compact_do_registers_info,
6543 sh64_do_registers_info, sh_gdbarch_init): New functions.
6544
3117ed25
EZ
65452002-05-10 Elena Zannoni <ezannoni@redhat.com>
6546
6547 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6548
2654e6d4
DJ
65492002-05-10 Daniel Jacobowitz <drow@mvista.com>
6550
6551 * linespec.c (decode_line_1): Check for a double quote after
6552 a filename correctly.
6553
9ab3e532
JB
65542002-05-10 Jim Blandy <jimb@redhat.com>
6555
6556 Properly track the size of the current objfile's .debug_line section.
6557 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6558 (DWARF_LINE_SIZE): New macro.
6559 (dwarf2_build_psymtabs_hard): Record the line section's size in
6560 the partial symbol table.
6561 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6562 symbol table.
6563
126fa72d
PS
65642002-05-10 Petr Sorfa <petrs@caldera.com>
6565
6566 * ia64-tdep.c: Handle breakpoints on L instruction type
6567 in MLX instruction bundle by moving the breakpoint to
6568 the third slot (X instruction type) as L holds only data.
6569
1f077a3e
KB
65702002-05-10 Kevin Buettner <kevinb@redhat.com>
6571
6572 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6573 (process_one_symbol): Complain about discarding local symbols
6574 due to a misplaced N_LBRAC entry.
6575
8120c9d5 65762002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6577
6578 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6579 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6580 decrease the depth we are at, in the case of templates.
361d1df0 6581
67b2c998
DJ
65822002-05-09 Daniel Jacobowitz <drow@mvista.com>
6583
6584 * mips-tdep.c (mips_float_register_type): New function.
6585 (mips_double_register_type): New function.
6586 (mips_print_register): Use them.
6587 (do_fp_register_row): Likewise.
6588
fd326606
DJ
65892002-05-09 Daniel Jacobowitz <drow@mvista.com>
6590
6609d9af 6591 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6592 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6593 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6594
bef35864
MS
65952002-05-09 Michael Snyder <msnyder@redhat.com>
6596
6597 * remote-rdp.c (remote_rdp_can_run): Remove.
6598
c55a3f73
TT
65992002-05-09 Tom Tromey <tromey@redhat.com>
6600
6601 * jv-valprint.c (java_val_print): Handle `char' as a special case
6602 of TYPE_CODE_INT.
6603
b8d5e71d
MS
66042002-05-09 Michael Snyder <msnyder@redhat.com>
6605
6606 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6607 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6608 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6609 str r(0123),[sp,#nn].
361d1df0 6610 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6611 order-independent by placing it in a loop.
6612
e2cd42dd
MS
66132002-05-06 Michael Snyder <msnyder@redhat.com>
6614
6615 * stabsread.c (read_type): Add recognition for new attribute:
6616 "@V;" means that an array type is actually a vector.
6617 This is analogous to the vector flag that's been added to dwarf2.
6618
3ce1502b
MK
66192002-05-09 Mark Kettenis <kettenis@gnu.org>
6620
6621 * i386-tdep.h (i386_abi): New enum.
6622 (struct gdbarch_tdep): Replace os_ident member with abi.
6623 (i386_gdbarch_register_os_abi): New prototype.
6624 * i386-tdep.c (i386_abi_names): New array.
6625 (process_note_abi_tag_sections): Removed.
6626 (process_note_sections): New function.
6627 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6628 (struct i386_abi_handler): New struct.
6629 (i386_abi_handler_list): New variable.
6630 (i386_gdbarch_register_os_abi): New function.
6631 (i386_gdbarch_init): Adapt for the changes given above.
6632
084c156a
DJ
66332002-05-08 Daniel Jacobowitz <drow@mvista.com>
6634
6635 * gregset.h: Say "GNU/Linux".
6636
6599f021
EZ
66372002-05-08 Elena Zannoni <ezannoni@redhat.com>
6638
6639 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6640 (build_gdbtypes): Build builtin_type_v2_float.
6641 (_initialize_gdbtypes): Register new builtin type.
6642
40af4b0c
AC
66432002-05-08 Andrew Cagney <ac131313@redhat.com>
6644
6645 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6646 (clear_gdbarch_swap): New function.
6647 (initialize_non_multiarch): Call.
6648 (gdbarch_update_p): Before calling init(), swap out and clear the
6649 existing architecture.
6650 * gdbarch.c: Regenerate.
6651
4fe84f46
JT
66522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6655 alphanbsd-tdep.c.
6656
4015edd1
JT
66572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6658
6659 * sh-nbsd-nat.c: Rename to...
6660 * shnbsd-nat.c: ...this.
6661 * sh-nbsd-tdep.c: Rename to...
6662 * shnbsd-tdep.c: ...this.
6663 * sh-nbsd-tdep.h: Rename to...
6664 * shnbsd-tdep.h: ...this.
6665 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6666 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6667
0e2bd219
RE
66682002-05-08 Richard Earnshaw <rearnsha@arm.com>
6669
6670 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6671 concatenation for command help messages.
6672
13a38d45
JT
66732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6674
6675 * NEWS: Note new sh*-*-netbsdelf* configuration.
6676 * configure.host: Set gdb_host_cpu to sh for all sh*.
6677 (sh*-*-netbsdelf*): New host.
6678 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6679 (sh*-*-netbsdelf*): New target.
6680 * sh-nbsd-nat.c: New file.
6681 * sh-nbsd-tdep.c: New file.
6682 * sh-nbsd-tdep.h: New file.
6683 * config/sh/nbsd.mh: New file.
6684 * config/sh/nbsd.mt: New file.
6685 * config/sh/nm-nbsd.h: New file.
6686 * config/sh/tm-nbsd.h: New file.
6687
d658f924
JT
66882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6689
6690 * sh-tdep.c (sh_osabi_names): Declare.
6691 (process_note_abi_tag_sections): New function.
6692 (get_elfosabi): Ditto.
6693 (sh_gdbarch_register_os_abi): Ditto.
6694 (sh_dump_tdep): Ditto.
6695 _initialize_sh_tdep): Use gdbarch_register to register
6696 sh_gdbarch_init and sh_dump_tdep.
6697 * config/sh/tm-sh.h (sh_osabi): Declare.
6698 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6699
848cfffb
AC
67002002-05-07 Andrew Cagney <ac131313@redhat.com>
6701
6702 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6703 (thumb_scan_prologue): Ditto.
6704 (arm_find_callers_reg): Ditto.
6705 (arm_frame_chain): Ditto.
6706 (arm_init_extra_frame_info): Ditto.
6707 (arm_frame_saved_pc): Ditto.
6708 (arm_pop_frame): Ditto.
6709 (arm_push_return_address): New function.
6710 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6711 call_dummy_location, call_dummy_breakpoint_offset_p,
6712 call_dummy_breakpoint_offset, call_dummy_p,
6713 call_dummy_stack_adjust_p, call_dummy_words,
6714 sizeof_call_dummy_words, call_dummy_start_offset,
6715 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6716 call_dummy_address, push_return_address and push_dummy_frame for
6717 generic dummy frames.
6718
e7d717c0
JT
67192002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6720
6721 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6722 size computation for alloca.
6723 (sh_fp_frame_init_saved_regs): Likewise.
6724
7bbcf283
RE
67252002-05-07 Richard Earnshaw <rearnsha@arm.com>
6726
6727 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6728 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6729 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6730 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6731 * remote-rdp.c (remote_rdp_fetch_register): Use
6732 ARM_MAX_REGISTER_RAW_SIZE.
6733 (remote_rdp_store_register): Likewise.
6734
4657573b
ML
67352002-05-07 Michal Ludvig <mludvig@suse.cz>
6736
361d1df0 6737 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6738 added default labels to switch {} statements.
6739 * x86-64-tdep.c: Ditto.
6740 * x86-64-linux-nat.c: Ditto.
6741
010f3b2f
JT
67422002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6743
6744 * solib.h: Protect against multiple inclusion.
6745
debd256d
JB
67462002-05-06 Jim Blandy <jimb@redhat.com>
6747
9ab3e532
JB
6748 Add first preprocessor macro-expansion files.
6749 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6750 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6751 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6752 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6753 (COMMON_OBS): Add macrotab.o, macroexp.o.
6754 (macroexp.o, macrotab.o): New rules.
6755
debd256d
JB
6756 Separate the job of reading the line number info statement program
6757 header (...expialidocious) out into its own function.
6758 * dwarf2read.c (struct line_head, struct filenames, struct
6759 directories): Replace with...
6760 (struct line_header): New structure, containing the full
6761 contents of the statement program header, including the
6762 include directory and file name tables.
6763 (read_file_scope): If we have line number info, instead of just
6764 calling dwarf_decode_lines to do all the work, call
6765 dwarf_decode_line_header first to get a `struct line_header'
6766 containing the data in the statement program header, and then
6767 pass that to dwarf_decode_lines, which will pick up where that
6768 left off. Be sure to clean up the `struct line_header' object.
6769 (dwarf_decode_line_header, free_line_header, add_include_dir,
6770 add_file_name): New functions.
6771 (dwarf_decode_lines): Move all the code to read the statement
6772 program header into dwarf_decode_line_header. Take the line
6773 header it built as the first argument, instead of the offset to
6774 the compilation unit's line number info. Use the new `struct
6775 line_header' type instead of the old structures. No need to do
6776 cleanups here now, since we don't allocate anything.
6777 (dwarf2_statement_list_fits_in_line_number_section,
6778 dwarf2_line_header_too_long): New complaints.
6779
ac3aafc7
EZ
67802002-05-06 Elena Zannoni <ezannoni@redhat.com>
6781
6782 * gdbtypes.c (init_vector_type): New function.
6783 (build_builtin_type_vec128): Simplify the representation of SIMD
6784 registers.
6785 (build_gdbtypes): Initialize new builtin vector types.
6786 (_initialize_gdbtypes): Register new vector types with gdbarch.
6787 (builtin_type_v4_float, builtin_type_v4_int32,
6788 builtin_type_v8_int16, builtin_type_v16_int8,
6789 builtin_type_v2_int32, builtin_type_v4_int16,
6790 builtin_type_v8_int8): New (renamed) SIMD types.
6791
13e49980
MK
67922002-05-06 Mark Kettenis <kettenis@gnu.org>
6793
6794 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6795 (i387_fill_fxsave): Likewise.
6796
997b20b8
AO
67972002-05-05 Alexandre Oliva <aoliva@redhat.com>
6798
6799 * alpha-tdep.c (alpha_extract_return_value): Don't use
6800 non-constant array size in prototype.
6801
535c96ce
AC
68022002-05-04 Andrew Cagney <ac131313@redhat.com>
6803
6804 From Brian Taylor <briant at model dot com>:
6805 * ui-out.c (ui_out_field_core_addr): Use the function
6806 longest_local_hex_string_custom'to format addresses > 32 bits
6807 wide.
6808
6809 * ui-out.c (ui_out_field_core_addr): Update comment.
6810
bedfa57b
AC
68112002-05-04 Andrew Cagney <ac131313@redhat.com>
6812
6813 * stack.c (select_and_print_frame): Make static. Delete the
6814 parameter `level'.
6815 (func_command): Update call.
6816 (select_frame_command): Delete code computing the frame level.
6817 * frame.h (select_and_print_frame): Delete declaration.
6818
f621c63e
AC
68192002-05-04 Andrew Cagney <ac131313@redhat.com>
6820
6821 * sparc-tdep.c (sparc_get_saved_register): Comment why
6822 get_prev_frame call is safe.
6823
0f7d239c
AC
68242002-05-04 Andrew Cagney <ac131313@redhat.com>
6825
6826 * frame.h (select_frame): Delete level parameter.
6827 * stack.c (select_frame): Update. Use frame_relative_level to
6828 obtain the frame's level.
6829 (select_and_print_frame): Update call.
6830 (select_frame_command): Ditto.
6831 (up_silently_base): Ditto.
6832 (down_silently_base): Ditto.
6833 * ocd.c (ocd_start_remote): Ditto.
6834 * remote-rdp.c (remote_rdp_open): Ditto.
6835 * remote-mips.c (mips_initialize): Ditto.
6836 (common_open): Ditto.
6837 * remote-e7000.c (e7000_start_remote): Ditto.
6838 * m3-nat.c (select_thread): Ditto.
6839 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6840 (child_get_current_exception_event): Ditto.
6841 * varobj.c (varobj_create): Ditto.
6842 (varobj_update): Ditto.
6843 (c_value_of_root): Ditto.
6844 * tracepoint.c (finish_tfind_command): Ditto.
6845 * corelow.c (core_open): Ditto.
6846 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6847 * thread.c (info_threads_command): Ditto.
6848 (switch_to_thread): Ditto.
6849 * infrun.c (normal_stop): Ditto.
6850 (restore_selected_frame): Ditto.
6851 (restore_inferior_status): Ditto.
6852 * breakpoint.c (insert_breakpoints): Ditto.
6853 (watchpoint_check): Ditto.
6854 (bpstat_stop_status): Ditto.
6855 (do_enable_breakpoint): Ditto.
6856 * blockframe.c (flush_cached_frames): Ditto.
6857 (reinit_frame_cache): Ditto.
6858
71d6c7b1
AC
68592002-05-04 Andrew Cagney <ac131313@redhat.com>
6860
6861 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6862 maintainer.
6863
cda6c68a
JB
68642002-05-04 Jim Blandy <jimb@redhat.com>
6865
6866 * gdbtypes.c (replace_type): Doc fix.
6867
5c1c87f0
AC
68682002-05-04 Andrew Cagney <ac131313@redhat.com>
6869
6870 * valprint.c (strcat_longest): Delete commented out function.
6871 Update copyright.
6872
cd9bfe15
AC
68732002-05-04 Andrew Cagney <ac131313@redhat.com>
6874
6875 * MAINTAINERS: Mark a29k as deleted.
6876 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6877 Move new configurations to the top.
6878 * configure.tgt: Remove a29k.
6879 * config/a29k/tm-vx29k.h: Delete.
6880 * config/a29k/vx29k.mt: Delete.
6881 * config/a29k/tm-a29k.h: Delete.
6882 * config/a29k/a29k-udi.mt: Delete.
6883 * config/a29k/a29k.mt: Delete.
6884 * a29k-tdep.c: Delete.
6885 * remote-udi.c: Delete.
6886 * remote-mm.c: Delete.
6887 * remote-eb.c: Delete.
6888 * remote-adapt.c: Delete.
6889 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6890 * config/s390/s390x.mt: Ditto.
6891 * config/s390/s390.mt: Ditto.
6892 * config/sparc/sparclynx.mh: Ditto.
6893 * config/sparc/linux.mh: Ditto.
6894 * config/pa/hppaosf.mh: Ditto.
6895 * config/pa/hppabsd.mh: Ditto.
6896 * config/ns32k/nbsd.mt: Ditto.
6897 * config/mips/vr5000.mt: Ditto.
6898 * config/m68k/sun3os4.mh: Ditto.
6899 * config/m68k/nbsd.mt: Ditto.
6900 * config/m68k/m68klynx.mh: Ditto.
6901 * config/m32r/m32r.mt: Ditto.
6902 * config/i386/x86-64linux.mt: Ditto.
6903 * config/i386/nbsdelf.mt: Ditto.
6904 * config/i386/nbsd.mt: Ditto.
6905 * config/i386/i386lynx.mh: Ditto.
6906
bf0c5130
AC
69072002-05-04 Andrew Cagney <ac131313@redhat.com>
6908
6909 * target.c (debug_print_register): New function. Handle oversize
6910 registers.
6911 (debug_to_fetch_registers): Call.
6912 (debug_to_store_registers): Call.
6913
2ae1c2d2
JB
69142002-05-03 Jim Blandy <jimb@redhat.com>
6915
13a393b0
JB
6916 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6917 (read_type): Doc fix.
6918 * gdbtypes.c (replace_type): Doc fix.
6919
2ae1c2d2
JB
6920 * stabsread.c (multiply_defined_struct): New complaint.
6921 (read_struct_type): If the type we were passed isn't empty, or
6922 incomplete, don't read the new struct type into it; complain,
6923 and return the original type unchanged. Take a new `type_code'
6924 argument, which is the type code for the new type.
6925 (read_type): Rather than storing the type's type code here, pass
6926 it as an argument to read_struct_type, and let that take care of
6927 storing it. That way, we don't overwrite the original type code,
6928 so read_struct_type can use it to decide whether we're overwriting
6929 something we shouldn't.
6930 (complain_about_struct_wipeout): New function.
6931
8de9bdc4
AC
69322002-05-03 Andrew Cagney <ac131313@redhat.com>
6933
6934 * gdbarch.sh: Assert that gdbarch is non-NULL.
6935 * gdbarch.c: Regenerate.
6936
f773fdbb
JM
69372002-05-03 Jason Merrill <jason@redhat.com>
6938
6939 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6940 and return NULL.
6941
0e04a514
ML
69422002-05-03 Michal Ludvig <mludvig@suse.cz>
6943
6944 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6945 (x86_64_dwarf2gdb_regno_map_length),
6946 (x86_64_dwarf2_reg_to_regnum): Added.
6947 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6948 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6949 (_initialize_x86_64_tdep): Synced with the change above.
6950 (x86_64_skip_prologue): Reformulated message.
6951
065432a8
PM
69522002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6953
6954 * f-exp.y: Also use new prev_lexptr variable
6955 to improve error reporting. Based on Michael Snyder
6956 2002-04-24 dated patch to c-exp.y.
6957 * jv-exp.y: Likewise.
6958 * m2-exp.y: Likewise.
6959
a3162708
EZ
69602002-05-02 Elena Zannoni <ezannoni@redhat.com>
6961
6962 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6963 we are dealing with vectors.
6964
03620c38
PM
69652002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6966
6967 * config/m68k/tm-nbsd.h: Obvious fix,
6968 correct machine name.
6969
6604db2e
PM
69702002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6971
6972 * p-typeprint.c (pascal_type_print_base): Add support
6973 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6974
0906b739
PM
69752002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6976
6977 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6978 for fondamental pascal 'char' type.
6979
e2625b33
PM
69802002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6981
6982 * p-lang.h (is_pascal_string_type): Declaration changed,
6983 new sixth argument of type char ** added.
361d1df0 6984 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6985 changed. Args length_pos, length_size, string_pos, char_size
6986 can now be NULL. New argument arrayname set to the field
6987 name of the char array. Return value set to char array
6988 field index plus one.
361d1df0 6989 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6990 is_pascal_string_type function.
6991
cf17c188
AC
69922002-05-02 Andrew Cagney <cagney@redhat.com>
6993
6994 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6995 <cagney@redhat.com> change.
6996 * gdbarch.c: Regenerate.
6997
52bca491
AC
69982002-05-02 Andrew Cagney <cagney@redhat.com>
6999
7000 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7001 before probing for a new one. Detect errorenous gdbarch_init
7002 functions.
7003 * gdbarch.c: Regenerate.
7004
d5e72505
AC
70052002-05-01 Andrew Cagney <cagney@redhat.com>
7006
7007 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7008 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7009 * config/v850/tm-v850.h: Ditto. Update copyright.
7010
af566d9f
AC
70112002-04-30 Andrew Cagney <ac131313@redhat.com>
7012
7013 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7014 current_gdbarch.
7015
880d85fa
MS
70162002-04-30 Michael Snyder <msnyder@redhat.com>
7017
94c30b78
MS
7018 * arm-tdep.c: Whitespace clean-ups.
7019 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7020 should have been removed as part of 4/24 change.
7021
6f5987a6
KB
70222002-04-30 Kevin Buettner <kevinb@redhat.com>
7023
7024 * rs6000-tdep.c: Added comment describing how fpscr register
7025 numbers were chosen.
7026
1a113c93
MS
70272002-04-30 Michael Snyder <msnyder@redhat.com>
7028
7029 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7030
9a6f53fe
EZ
70312002-04-29 Elena Zannoni <ezannoni@redhat.com>
7032
7033 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7034 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7035 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7036
11ed25ac
KB
70372002-04-29 Kevin Buettner <kevinb@redhat.com>
7038
7039 From Louis Hamilton <hamilton@redhat.com>:
7040 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7041 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7042 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7043 not bfd-private xcoff data, to determine wordsize.
7044 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7045
ae232405
AC
70462002-04-29 Andrew Cagney <ac131313@redhat.com>
7047
7048 GDB 5.2 released from 5.2 branch.
7049
91fd20f7
ML
70502002-04-29 Michal Ludvig <mludvig@suse.cz>
7051
7052 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7053 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7054 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7055
2dc5091b
EZ
70562002-04-29 Elena Zannoni <ezannoni@redhat.com>
7057
7058 * rs6000-tdep.c (rs6000_extract_return_value,
7059 rs6000_store_return_value): Handle returning vectors.
7060 (rs6000_gdbarch_init): Use
7061 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7062 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7063 New function.
7064 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7065 vectors.
7066 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7067 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7068
2b9848d8
PM
70692002-04-24 Pierre Muller <ics.u-strasbg.fr>
7070
7071 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7072 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7073 with fprintf_unfiltered (gdb_stderr,...).
7074
f8d17dc5
PM
70752002-04-24 Pierre Muller <ics.u-strasbg.fr>
7076
7077 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7078 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7079 Replace fprintf (stderr,...
7080 with fprintf_unfiltered (gdb_stderr,....
7081 * remote-es.c: Likewise.
7082 * remote-os9k.c: Likewise.
7083 * remote-st.c: Likewise.
7084
2f2f1ad1
AS
70852002-04-28 Andreas Schwab <schwab@suse.de>
7086
7087 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7088 linux-proc.o and gcore.o.
7089
b6779aa2
AC
70902002-04-26 Michal Ludvig <mludvig@suse.cz>
7091
7092 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7093 code without frame pointers.
7094
7e57f5f4
AC
70952002-04-26 Andrew Cagney <ac131313@redhat.com>
7096
7097 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7098 ON_STACK is needed.
7099
2ceb85d0
BE
71002002-04-26 Ben Elliston <bje@redhat.com>
7101
7102 * target.c (do_xfer_memory): Correct reference to the new option
7103 "trust-readonly-sections".
7104
f5f8a009
EZ
71052002-04-26 Elena Zannoni <ezannoni@redhat.com>
7106
7107 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7108 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7109 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7110 vectors.
7111 (read_array_type): Record the fact that this array type is really a
7112 vector (i.e. are passed in by value).
7113
5868c862
JT
71142002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7115
7116 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7117 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7118 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7119 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7120 * alpha-linux-tdep.c: Include frame.h.
7121 (alpha_linux_sigcontext_addr): New function.
7122 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7123 alpha_linux_sigcontext_addr.
7124 * alpha-osf1-tdep.c: Include gdbcore.h.
7125 (alpha_osf1_sigcontext_addr): New function.
7126 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7127 alpha_osf1_sigcontext_addr.
7128 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7129 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7130
bfb01f37
AC
71312002-04-26 Andrew Cagney <ac131313@redhat.com>
7132
361d1df0 7133 * stack.c (selected_frame_level):
bfb01f37
AC
7134 (select_frame): Do not set selected_frame_level.
7135 * frame.h (selected_frame_level): Delete declaration.
7136
15813d3f
AC
71372002-04-26 Andrew Cagney <ac131313@redhat.com>
7138
7139 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7140 convert_from_func_ptr-addr when AIX / PowerOpen.
7141
6096c27a
AC
71422002-04-25 Andrew Cagney <ac131313@redhat.com>
7143
7144 * valops.c (hand_function_call): Call
7145 generic_save_call_dummy_addr.
7146 * frame.h (generic_save_call_dummy_addr): Declare.
7147 * blockframe.c (struct dummy_frame): Add fields call_lo and
7148 call_hi.
7149 (generic_find_dummy_frame): Check for PC in range call_lo to
7150 call_hi instead of entry_point_address.
7151 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7152 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7153 (generic_save_call_dummy_addr): New function.
7154
f510d44e
DM
71552002-04-24 David S. Miller <davem@redhat.com>
7156
7157 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7158 sparc_skip_prologue.
7159 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7160 information to find prologue when possible.
7161 (sparc_prologue_frameless_p): Call examine_prologue directly.
7162 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7163 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7164 second argument.
7165 (SKIP_PROLOGUE): Likewise.
7166
15d72a92
JT
71672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7168
7169 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7170 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7171 indicate that the condition it was testing is always true.
7172 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7173 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7174 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7175
accc6d1f
JT
71762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7177
7178 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7179 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7180 tdep->jb_pc and tdep->jb_elt_size.
7181 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7182 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7183 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7184 * alpha-nat.c (get_longjmp_target): Remove.
7185 (JB_ELEMENT_SIZE): Ditto.
7186 (JB_PC): Ditto.
7187 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7188 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7189 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7190 to alpha_get_longjmp_target.
7191 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7192 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7193 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7194
1bfdc549
AC
71952002-04-25 Andrew Cagney <ac131313@redhat.com>
7196
7197 * README: Update to GDB 5.2.
7198
1bd316f0
AC
71992002-04-25 Andrew Cagney <ac131313@redhat.com>
7200
7201 * gdbarch.sh (LC_ALL): Set to `c'.
7202
2e5ff58c
TR
72032002-04-25 Theodore A. Roth <troth@verinet.com>
7204
7205 * avr-tdep.c: Ran through gdb_indent.sh.
7206
e33ce519
TR
72072002-04-25 Theodore A. Roth <troth@verinet.com>
7208
7209 * MAINTAINERS: Add myself as AVR maintainer.
7210 * NEWS: Note new target avr.
7211
8818c391
TR
72122002-04-25 Theodore A. Roth <troth@verinet.com>
7213
7214 * Makefile.in: Add support for AVR target.
7215 * configure.tgt: Add support for AVR target.
7216 * avr-tdep.c: New file
7217 * config/avr/avr.mt: New file.
7218
79509c2d
TR
72192002-04-25 Theodore A. Roth <troth@verinet.com>
7220
7221 * MAINTAINERS: Add myself to write-after-approval.
7222
dac8068e
PM
72232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7224
7225 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7226 with fprintf_unfiltered (gdb_stderr,....
7227
25bf3106
PM
72282002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7229
7230 Fix PR gdb/508.
7231 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7232
24467a86
PM
72332002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7234
7235 * p-exp.y: Also use new prev_lexptr variable
7236 to improve error reporting. Based on Michael Snyder
7237 2002-04-24 dated patch to c-exp.y.
7238
95b80706
JT
72392002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7240
7241 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7242 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7243 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7244 to 0.
7245 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7246 and struct value.
7247 (FUNCTION_START_OFFSET): Remove.
7248 (BREAKPOINT): Ditto.
7249
e90cc612
JT
72502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7253 * NEWS: Ditto.
7254
6c72f9f9
JT
72552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7256
7257 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7258 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7259 alpha_linux_pc_in_sigtramp.
7260 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7261 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7262 alpha_osf1_pc_in_sigtramp.
7263 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7264 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7265 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7266 alphafbsd_pc_in_sigtramp.
7267 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7268 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7269 alphanbsd_pc_in_sigtramp.
7270 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7271 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7272
5e4f3379
JT
72732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7274
7275 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7276
da8ca43d
JT
72772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7278
7279 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7280 alphanbsd-tdep.c.
7281 (alphanbsd-nat.o): New dependency list.
7282 (alphanbsd-tdep.o): Ditto.
7283 * NEWS: Note new native NetBSD/alpha configuration.
7284 * alphanbsd-nat.c: New file.
7285 * alphanbsd-tdep.c: Ditto.
7286 * configure.host (alpha*-*-netbsd*): New host.
7287 * configure.tgt (alpha*-*-netbsd*): New target.
7288 * config/alpha/nbsd.mh: New file.
7289 * config/alpha/nbsd.mt: Ditto.
7290 * config/alpha/nm-nbsd.h: Ditto.
7291 * config/alpha/tm-nbsd.h: Ditto.
7292
36a6271d
JT
72932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7294
7295 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7296 (alpha-osf1-tdep.o): New dependency list.
7297 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7298 and skip_sigtramp_frame members.
7299 * alpha-linux-tdep.c: Include gdbcore.h.
7300 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7301 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7302 * alpha-osf1-tdep.c: New file.
7303 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7304 alpha-osf1-dep.c.
7305 (alpha_frame_past_sigtramp_frame): New function.
7306 (alpha_dynamic_sigtramp_offset): Ditto.
7307 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7308 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7309 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7310 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7311 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7312 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7313 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7314 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7315 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7316 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7317 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7318 to find_solib_trampoline_target.
7319 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7320 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7321 (SKIP_TRAMPOLINE_CODE): Remove.
7322 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7323 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7324 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7325 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7326 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7327 (PROC_SIGTRAMP_MAGIC): Ditto.
7328 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7329 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7330 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7331 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7332 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7333
2f4bc57b
JT
73342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7335
7336 * NEWS: Note that Alpha targets are now multi-arch.
7337
665132f9
MS
73382002-04-24 Michael Snyder <msnyder@redhat.com>
7339
7340 * parser-defs.h (prev_lexptr): New external variable.
7341 * parse.c (parse_exp_1): Set prev_lexptr to null before
7342 calling the language-specific parser.
7343 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7344 (yyerror): Use prev_lexptr in error reporting.
7345
32872fa7
DJ
73462002-04-24 Daniel Jacobowitz <drow@mvista.com>
7347
7348 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7349 * gregset.h: If FILL_FPXREGSET is defined, provide
7350 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7351 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7352 is defined, call fill_fpxregset.
7353
57e76fac
MS
73542002-04-24 Roland McGrath <roland@frob.com>
7355
7356 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7357 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7358 (supply_gregset, supply_fpregset): New functions.
7359
7360 * gnu-nat.c (gnu_find_memory_regions): New function.
7361 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7362 (gnu_xfer_memory): Add a cast.
7363
f43845b3
MS
73642002-04-24 Michael Snyder <msnyder@redhat.com>
7365
361d1df0 7366 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7367 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7368 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7369 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7370 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7371 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7372
a0abec03
AC
7373Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7374
7375 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7376 NUM_PSEUDO_REGS can be used.
7377
d7bd68ca
AC
73782002-04-24 Andrew Cagney <ac131313@redhat.com>
7379
7380 * arch-utils.h: Update copyright.
7381
7382 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7383 * gdbarch.h, gdbarch.c: Re-generate.
7384
7385 * inferior.h (IN_SIGTRAMP): Delete definition.
7386 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7387 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7388
7389 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7390 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7391 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7392 (find_proc_framesize): Ditto.
7393 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7394 (alpha_init_extra_frame_info): Ditto.
7395 * infrun.c (handle_inferior_event): Ditto.
7396 (handle_inferior_event): Ditto.
7397 (check_sigtramp2): Ditto.
7398 * blockframe.c (create_new_frame): Ditto.
7399 (get_prev_frame): Ditto.
7400 * ppc-linux-tdep.c: Update comments.
7401 * i386-linux-tdep.c: Update comments.
7402 * breakpoint.c (bpstat_what): Update comment.
7403
4867e41e
DM
74042002-04-24 David S. Miller <davem@redhat.com>
7405
21d83aa5
DM
7406 * i960-tdep.c (register_in_window_p): New function.
7407 (i960_find_saved_register): Use it instead of
7408 REGISTER_IN_WINDOW_P.
7409 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7410
4867e41e
DM
7411 * symtab.h (find_stab_function_addr): Kill extern.
7412 * minsyms.c (find_stab_function_addr): Remove from here...
7413 * dbxread.c: ... to here, and mark it static.
7414
69cdf6a2
DM
74152002-04-20 David S. Miller <davem@redhat.com>
7416
7417 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7418 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7419
5a595886
DM
74202002-04-21 David S. Miller <davem@redhat.com>
7421
7422 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7423 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7424 (vx_write_register): Likewise.
7425
1da1a192
JB
74262002-04-23 J. Brobecker <brobecker@gnat.com>
7427
7428 * source.c (is_regular_file): New function.
7429 (openp): Check wether file to open is a regular file
7430 to avoid opening directories.
7431
baa6f10b
JT
74322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * findvar.c (extract_signed_integer): Cast printf argument
7435 to suppress format warning.
7436 (extract_unsigned_integer): Likewise.
7437 * infcmd.c (registers_info): Likewise.
7438 * top.c (get_prompt_1): Likewise.
7439 * valops.c (value_assign): Likewise.
7440 * valprint.c (print_decimal): Likewise.
7441
b2c4da81
L
74422002-04-22 H.J. Lu (hjl@gnu.org)
7443
7444 * c-exp.y (typebase): Support
361d1df0 7445
b2c4da81
L
7446 [long|long long|short] [signed|unsigned] [int|]
7447
7448 and
7449
7450 signed [long|long long|short] int
7451
f267bd6a
JT
74522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7453
7454 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7455 and vax-tdep.h.
7456 * vax-tdep.h: New file.
7457 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7458 Make several routines static.
7459 (vax_get_saved_register): New function.
7460 (vax_gdbarch_init): New function.
7461 (_initialize_vax_tdep): Register vax_gdbarch_init.
7462 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7463 Remove macros now under the control of gdbarch.
7464
da3c6d4a
MS
74652002-04-22 Michael Snyder <msnyder@redhat.com>
7466
11d3b27d
MS
7467 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7468 Some whitespace and coding standards tweaks.
da3c6d4a 7469
a33f7558
JT
74702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * vax-tdep.c: Include regcache.h.
7473 (vax_call_dummy_words): New.
7474 (sizeof_vax_call_dummy_words): New.
7475 (vax_fix_call_dummy): New function.
7476 (vax_saved_pc_after_call): Ditto.
7477 * config/vax/tm-vax.h: Don't include regcache.h.
7478 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7479 (CALL_DUMMY): Remove.
7480 (CALL_DUMMY_WORDS): Define.
7481 (SIZEOF_CALL_DUMMY_WORDS): Define.
7482 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7483
47a73475
MS
74842002-04-18 Michael Snyder <msnyder@redhat.com>
7485
7486 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7487
52efde73
JT
74882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7489
7490 * vax-tdep.c (vax_frame_chain): New function.
7491 (vax_push_dummy_frame): Ditto.
7492 (vax_pop_frame): Ditto.
7493 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7494 (FRAMELESS_FUNCTION_INVOCATION): Use
7495 generic_frameless_function_invocation_not.
7496 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7497 (POP_FRAME): Use vax_pop_frame.
7498
ea74468c
JT
74992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * vax-tdep.c (vax_store_struct_return): New function.
7502 (vax_extract_return_value): Ditto.
7503 (vax_store_return_value): Ditto.
7504 (vax_extract_struct_value_address): Ditto.
7505 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7506 vax_store_struct_return.
7507 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7508 (STORE_RETURN_VALUE): Use vax_store_return_value.
7509 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7510
5516aa92
JT
75112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7512
7513 * vax-tdep.c (vax_frame_saved_pc): New function.
7514 (vax_frame_args_address_correct): Ditto.
7515 (vax_frame_args_address): Ditto.
7516 (vax_frame_locals_address): Ditto.
7517 (vax_frame_num_args): Move code to be in proximity to
7518 other frame-related functions.
7519 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7520 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7521 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7522 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7523 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7524
36af0b35
L
75252002-04-22 H.J. Lu (hjl@gnu.org)
7526
7527 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7528 includedir.
7529
ab62c900
JT
75302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7533 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7534 (FRAME_INIT_SAVED_REGS): New macro.
7535
7232b100
JT
75362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7537
7538 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7539
b70d2aee
JT
75402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7543 where needed.
7544 (fetch_osf_core_registers): Likewise.
7545 (supply_gregset): Likewise.
7546
a0e8a2d1 75472002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7548
a0e8a2d1
JB
7549 * symfile.h (get_section_index): Define.
7550 * symfile.c (get_section_index): New function.
7551 * mdebugread.c (SC_IS_SBSS): New macro.
7552 (SC_IS_BSS): Return true for the scBss storage class only, as
7553 the scSBss storage class refers to the .sbss section.
7554 (parse_partial_symbols): Discard the symbols which associated
7555 section does not exist.
7556 Make sure to use the .sbss section index for symbols which
7557 storage class is scBss, rather than using the .bss section index.
7558
51eb8b08
JT
75592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7560
7561 * vax-tdep.c: Update copyright years.
7562 (vax_register_name): New function.
7563 (vax_register_byte): Ditto.
7564 (vax_register_raw_size): Ditto.
7565 (vax_register_virtual_size): Ditto.
7566 (vax_register_virtual_type): Ditto.
7567 * config/vax/tm-vax.h: Update copyright years.
7568 (REGISTER_NAMES): Remove.
7569 (REGISTER_NAME): Define.
7570 (REGISTER_BYTE): Use vax_register_byte.
7571 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7572 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7573 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7574
6cc1c0a8
AC
75752002-04-21 Andrew Cagney <ac131313@redhat.com>
7576
7577 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7578 declaration
7579 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7580
9319a2fe
DM
75812002-04-21 David S. Miller <davem@redhat.com>
7582
7583 * arch-utils.c (generic_prologue_frameless_p): Kill
7584 SKIP_PROLOGUE_FRAMELESS_P code.
7585 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7586 references.
7587 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7588 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7589 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7590 references.
7591 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7592 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7593 (sparc_gdbarch_init): Pass it to
7594 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7595
e9ed6d01
JT
75962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7597
7598 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7599 (alphabsd-nat.o): New dependency list.
7600
36012033
JT
76012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7602
7603 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7604 alphafbsd-tdep.c.
7605 (alpha-linux-tdep.o): New dependency list.
7606 (alphafbsd-tdep.o): Likewise.
7607
3379287a
JT
76082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7609
7610 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7611 to here...
7612 * alpha-tdep.c: ...from here.
7613 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7614
4bcbd6cb
JT
76152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7616
7617 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7618 prototype from here...
7619 * alpha-tdep.h: ...to here.
7620
b31da25e
AC
76212002-04-21 Andrew Cagney <ac131313@redhat.com>
7622
7623 * frame.h (selected_frame_level): Document as deprecated.
7624 (frame_relative_level): Declare.
7625 * stack.c (frame_relative_level): New function.
7626 (selected_frame_level): Document as deprecated.
7627 (select_frame): Do not set the selected_frame_level.
7628
7629 * stack.c (frame_info, record_selected_frame): Update.
7630 (frame_command, current_frame_command): Update.
7631 (up_silently_base, up_command, down_silently_base): Update.
7632 (down_command): Update.
7633 * inflow.c (kill_command): Update.
7634 * tracepoint.c (finish_tfind_command): Update.
7635 * corelow.c (core_open): Update.
7636 * thread.c (info_threads_command): Update.
7637 (do_captured_thread_select): Update.
7638 * infcmd.c (finish_command): Update.
7639 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7640
9c1d6fe5
JT
76412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7644
ab89facf
AC
76452002-04-21 Andrew Cagney <ac131313@redhat.com>
7646
7647 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7648 type const.
7649
82a4efa1
JT
76502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * alphafbsd-tdep.c: Update copyright years. Include
7653 alpha-tdep.h.
7654 (alphafbsd_use_struct_convention): Make static.
7655 (alphafbsd_init_abi): New function.
7656 (_initialize_alphafbsd_tdep): New function.
7657 * config/alpha/tm-fbsd.h: Update copyright years.
7658 (USE_STRUCT_CONVENTION): Remove.
7659
44dffaac
JT
76602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7661
7662 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7663 an Alpha ABI variant.
7664 (alpha_abi_handler_list): Declare.
7665 (alpha_gdbarch_register_os_abi): New function.
7666 (alpha_gdbarch_init): Give registered ABI variant handlers a
7667 chance to tweak the gdbarch once we have set up defaults.
7668 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7669
65585be4
JT
76702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7673 to standard_coerce_float_to_double.
7674 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7675
d9b023cc
JT
76762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7677
7678 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7679 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7680 from gdbarch_tdep rather than a constant.
7681 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7682 the default text address for all Alpha Unix ABIs.
7683 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7684 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7685
dc129d82
JT
76862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7687
7688 * alpha-tdep.h: New file. Includes several Alpha target constants
7689 taken from...
7690 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7691 let gdbarch deal with.
7692 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7693 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7694 to dependency list.
7695 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7696 Alpha target register names.
7697 * alphabsd-nat.c: Likewise.
7698 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7699 Alpha target register names. Make serveral routines static.
7700 (alpha_get_saved_register): New function.
7701 (alpha_abi_names): New.
7702 (process_note_abi_tag_sections): New function.
7703 (get_elfosabi): New function.
7704 (alpha_gdbarch_init): New function.
7705 (alpha_dump_tdep): New function.
7706 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7707
d49d1e0a
AC
77082002-04-21 Andrew Cagney <ac131313@redhat.com>
7709
7710 * frame.c (find_saved_register): Delete #ifdef
7711 HAVE_REGISTER_WINDOWS code.
7712 * config/sparc/tm-sparc.h: Update comments.
7713 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7714
92e8c9ed
AC
77152002-04-21 Andrew Cagney <ac131313@redhat.com>
7716
7717 * i960-tdep.c (i960_find_saved_register): New function.
7718 (i960_get_saved_register): New function.
7719 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7720 (i960_get_saved_register): Declare.
7721 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7722
e1925118
DM
77232002-04-20 David S. Miller <davem@redhat.com>
7724
7725 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7726
29673b29
AC
77272002-04-20 Andrew Cagney <ac131313@redhat.com>
7728
7729 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7730 instead of NUM_PSEUDO_REGS.
7731
6c86dcd5
DM
77322002-04-20 David S. Miller <davem@redhat.com>
7733
7734 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7735 GDB_MULTI_ARCH_PARTIAL
7736 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7737 define, let tm-sp64.h do it.
7738
aa40ec90
JT
77392002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7740
7741 * frame.c (find_saved_register): Avoid a NULL pointer
7742 dereference and actually walk the frame list.
7743
0f79675b
AC
77442002-04-20 Andrew Cagney <ac131313@redhat.com>
7745
7746 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7747 sorted in most most-recent-used order. Document.
7748 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7749
f91305dd 77502002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7751
7752 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7753 instead of ->prev.
7754 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7755 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7756 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7757 instead of ->prev.
7758
73d322b1
EZ
77592002-04-19 Elena Zannoni <ezannoni@redhat.com>
7760
7761 Fix PR gdb/471.
7762 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7763 (build_builtin_type_vec128): Ditto.
7764 (append_composite_type_field): Fix calculation of type length in
7765 union case.
7766
ccd9a834
EZ
77672002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7768
7769 * config/djgpp/README: Update.
7770
7771 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7772 compiler warnings.
7773
a57f9e49
JT
77742002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7775
7776 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7777 (alpha_setup_arbitrary_frame): ...to this.
7778 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7779 for alpha_setup_arbitrary_frame.
7780
f4f9705a
AC
77812002-04-18 Andrew Cagney <cagney@redhat.com>
7782
7783 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7784 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7785
f4f9705a
AC
7786 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7787 * target.h (memory_breakpoint_from_pc): Update declaration.
7788 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7789
7790 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7791 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7792 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7793 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7794 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7795 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7796 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7797 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7798 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7799 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7800 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7801 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7802
7803 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7804 const pointer.
7805 * monitor.c (monitor_insert_breakpoint): Ditto.
7806 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7807
7808 * config/mcore/tm-mcore.h: Update copyright.
7809 * mem-break.c: Ditto.
7810 * xstormy16-tdep.c: Ditto.
7811
29f319b8
PM
78122002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7813
7814 * p-exp.y: Add precedence rule for '^' token.
7815 This removes the shift/reduce conflicts.
7816 Remove the comment concerning these shift/reduce conflicts.
7817
ebeac11a
EZ
78182002-04-18 Elena Zannoni <ezannoni@redhat.com>
7819
7820 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7821 (registers_powerpc_nofp): New register set for processors
7822 without floating point unit.
7823
27c31547
DM
78242002-04-18 David S. Miller <davem@redhat.com>
7825
7826 * MAINTAINERS: Add myself to write-after-approval.
7827
47a73475
MS
78282002-04-17 Michael Snyder <msnyder@redhat.com>
7829
7830 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7831
953836b2
AC
78322002-04-17 Andrew Cagney <ac131313@redhat.com>
7833
7834 * rs6000-tdep.c (frame_initial_stack_address): Use
7835 frame_register_read to read the alloca_reg.
7836
8b0d4340
AC
78372002-04-17 Andrew Cagney <ac131313@redhat.com>
7838
7839 * frame.c (find_saved_register): Find saved registers in the next
7840 not prev frame.
7841 Fix PR gdb/365.
7842
d8864532
AC
78432002-04-17 Andrew Cagney <ac131313@redhat.com>
7844
7845 * gdbarch.sh (LANG): Set to ``c''.
7846
36cc83a3 78472002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7848
36cc83a3 7849 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7850
2f4150cc 78512002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7852
7853 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7854 Update copyright.
7855
628703c6 7856 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7857 Also fix PR gdb/391.
361d1df0 7858
56157b4a
AC
78592002-04-14 Andrew Cagney <ac131313@redhat.com>
7860
7861 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7862 * aclocal.m4, configure: Re-generate.
7863 Fix PR gdb/391.
361d1df0 7864
6d1e3329
EZ
78652002-04-14 Elena Zannoni <ezannoni@redhat.com>
7866
7867 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7868 instead of tm_print_insn.
7869
cb06fa07
EZ
78702002-04-14 Elena Zannoni <ezannoni@redhat.com>
7871
7872 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7873
f208ba17
AC
78742002-04-14 Andrew Cagney <ac131313@redhat.com>
7875
7876 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7877 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7878 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7879
20f01a46
DH
78802002-04-12 Don Howard <dhoward@redhat.com>
7881
7882 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7883 max_user_call_depth.
7884 (init_cmd_lists): Initialize the new value;
7885 * cli/cli-script.c (execute_user_command): Limit the call depth of
7886 user defined commands. This avoids a core-dump when user commands
7887 are infinitly recursive.
7888
a88376a3
KB
78892002-04-12 Kevin Buettner <kevinb@redhat.com>
7890
7891 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7892 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7893 from tdep struct instead of DEFAULT_LR_SAVE.
7894 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7895 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7896 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7897
f2172603
MS
78982002-04-12 Michael Snyder <msnyder@redhat.com>
7899
694f61fb 7900 * Remote.c: Spelling fix.
20fe79c8
MS
7901 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7902 If no symbol found for "sbrk", try "_sbrk".
7903 (make_output_phdrs): Use bfd_section_name.
7904 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7905 * eval.c: Indentation fix-ups.
169a7369
MS
7906 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7907 in case it gets applied to an address that is already
7908 in the instruction space.
de74f71f
MS
7909 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7910 * symfile.c: Fix indentation, long lines.
f2172603
MS
7911 * source.c: White space fix-up.
7912
cda5a58a
AC
79132002-04-12 Andrew Cagney <cagney@redhat.com>
7914
7915 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7916 * frame.c (frame_register_read): New function. Return non-zero on
7917 success.
7918 (read_relative_register_raw_bytes_for_frame): Delete.
7919 (read_relative_register_raw_bytes): Delete.
7920 * frame.h (frame_register_read): Declare.
7921 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7922 * sh-tdep.c: Ditto.
7923 * infcmd.c (do_registers_info): Ditto.
7924 * hppa-tdep.c: Ditto.
7925 * rs6000-tdep.c: Ditto.
7926 * h8500-tdep.c: Ditto.
7927 * mips-tdep.c: Ditto.
7928 * h8300-tdep.c: Ditto.
7929 * z8k-tdep.c: Ditto.
7930
2ea5f656
KB
79312002-04-12 Kevin Buettner <kevinb@redhat.com>
7932
7933 From Jimi X <jimix@watson.ibm.com>:
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7935 64-bit SysV ABI.
7936
27b15785
KB
79372002-04-12 Kevin Buettner <kevinb@redhat.com>
7938
7939 From Jimi X <jimix@watson.ibm.com>:
7940 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7941 bfd info.
7942
5d57ee30
KB
79432002-04-12 Kevin Buettner <kevinb@redhat.com>
7944
7945 From Jimi X <jimix@watson.ibm.com>:
7946 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7947 register sets for these processor variants.
7948
bc1e36ca
DJ
79492002-04-11 Daniel Jacobowitz <drow@mvista.com>
7950
bc1e36ca
DJ
7951 * regformats/reg-ppc.dat: Support FPSCR.
7952
e3f36dbd
KB
79532002-04-11 Kevin Buettner <kevinb@redhat.com>
7954
7955 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7956 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7957 Add fpscr as an invalid/unfetchable register.
7958 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7959 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7960 (fill_fpregset): Add support for register fpscr.
7961 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7962 (fill_gregset): Account for the fact that register ``mq'' might
7963 not exist.
7964 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7965 (registers_power): Add fpscr to register set at slot 71.
7966 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7967 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7968
943c9c25
MS
79692002-04-11 Michael Snyder <msnyder@redhat.com>
7970
7971 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7972 * configure: Regenerate.
7973 * config.in: Regenerate.
7974 * acconfig.h: Add define for _SYSCALL32.
7975 * core-sol2.c: Remove #define _SYSCALL32.
7976 * solib-legacy.c: Remove #define _SYSCALL32.
7977
d8c0a2e7
AC
79782002-04-10 Andrew Cagney <ac131313@redhat.com>
7979
7980 * stack.c (select_frame): Cleanup internal error message, do not
7981 use %p.
7982
7cc19214
AC
79832002-04-10 Andrew Cagney <ac131313@redhat.com>
7984
7985 * stack.c (select_frame): Check that selected_frame and the
7986 specified level are as expected.
7987 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7988 Update copyright.
7989 * frame.h (struct frame_info): Add field `level'. Update
7990 copyright.
7991 Work-in-progress PR gdb/464.
7992
67a2b77e
AC
79932002-04-10 Andrew Cagney <ac131313@redhat.com>
7994
7995 * maint.c (maint_print_section_info): Rename print_section_info.
7996 (print_bfd_section_info, print_objfile_section_info): Update.
7997 * inferior.h (struct gdbarch): Add opaque declaration.
7998 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7999 * gdbarch.h: Regenerate.
8000
8cfda98c
ML
80012002-04-10 Michal Ludvig <mludvig@suse.cz>
8002
8003 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8004 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8005 (kernel_u_size): Added.
8006 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8007 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8008
ca439ad2 80092002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8010
ca439ad2
JI
8011 * valarith.c (find_size_for_pointer_math): New function, either returns
8012 the size for a pointer's target, returns 1 for void *, or errors for
8013 incomplete types.
8014 (value_add, value_sub): use find_size_for_pointer_math.
8015
2f2893d9
DJ
80162002-04-09 Daniel Jacobowitz <drow@mvista.com>
8017
8018 * linux-low.c (linux_look_up_symbols): New hook.
8019 (linux_target_ops): Add linux_look_up_symbols.
8020 * remote-utils.c (decode_address): New function.
8021 (look_up_one_symbol): New function.
8022 * server.c (handle_query): Call target look_up_symbols hook.
8023 * server.h (look_up_one_symbol): Add prototype.
8024 * target.h (struct target_ops): Add look_up_symbols hook.
8025
96cb11df
AC
80262002-04-09 Andrew Cagney <ac131313@redhat.com>
8027
8028 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8029 override FP_REGNUM with frame->fp. Update copyright.
8030 * parse.c (num_std_regs, std_regs): Delete.
8031 (target_map_name_to_register): Do not search std_regs. Update
8032 function description.
8033 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8034 declarations. Update copyright.
8035 Fix PR gdb/251.
361d1df0 8036
97658e92
DJ
80372002-04-09 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8040 after the last symbol in a block.
8041
6044e3eb
PM
80422002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8043
8044 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8045 is non zero as a found symbol.
8046
0406ec40
AC
80472002-04-08 Andrew Cagney <ac131313@redhat.com>
8048
8049 * findvar.c: Include "builtin-regs.h".
8050 (value_of_register): Call value_of_builtin_reg when applicable.
8051 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8052 (target_map_name_to_register): Call
8053 builtin_reg_map_name_to_regnum.
8054 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8055 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8056 (builtin_regs_h): Define.
8057 (builtin-regs.o): New target.
8058 (findvar.o): Add $(builtin_regs_h).
8059 * builtin-regs.c, builtin-regs.h: New files.
8060 * std-regs.c: New file.
8061 Partial fix for PR gdb/251.
8062
56a6dfb9
KB
80632002-04-08 Kevin Buettner <kevinb@redhat.com>
8064
8065 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8066 it's no longer required.
8067
3a808432
AC
80682002-04-08 Andrew Cagney <ac131313@redhat.com>
8069
8070 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8071
7c40d541
KB
80722002-04-08 Kevin Buettner <kevinb@redhat.com>
8073
8074 From Jimi X <jimix@watson.ibm.com>:
8075 * rs6000-tdep.c (rs6000_software_single_step): Use
8076 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8077 and size. Use target_insert_breakpoint() and
8078 target_remove_breakpoint() to insert and remove breakpoints
8079 instead of explicit memory reads and writes.
8080
cc9836a8
KB
80812002-04-08 Kevin Buettner <kevinb@redhat.com>
8082
8083 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8084 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8085 ELF_OBJECT_FORMAT ifdef.
8086
7495d1dc
KB
80872002-04-08 Kevin Buettner <kevinb@redhat.com>
8088
8089 From Jimi X <jimix@watson.ibm.com>:
8090 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8091
4288e836
KB
80922002-04-08 Kevin Buettner <kevinb@redhat.com>
8093
8094 From Jimi X <jimix@watson.ibm.com>:
8095 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8096 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8097
a4e4e501
MK
80982002-04-07 Mark Kettenis <kettenis@gnu.org>
8099
8100 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8101 s/asprintf/xasprintf/.
8102 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8103
006defba
AC
81042002-04-07 Andrew Cagney <ac131313@redhat.com>
8105
8106 I believe Jeff Law denies responsability for this one:
8107 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8108 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8109 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8110 Work-around for PR gdb/366.
8111
7aa83cac
EZ
81122002-04-07 Elena Zannoni <ezannoni@redhat.com>
8113
8114 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8115 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8116 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8117
cf1fcca1
EZ
81182002-04-07 Elena Zannoni <ezannoni@redhat.com>
8119
8120 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8121 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8122 information.
8123
3f289e6f
AC
81242002-04-07 Andrew Cagney <ac131313@redhat.com>
8125
8126 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8127 maintainer.
8128
129188f6
AC
81292002-04-07 Andrew Cagney <ac131313@redhat.com>
8130
8131 * README (Reporting Bugs in GDB): Document the bug web page as the
8132 prefered way of submitting bugs.
8133 Fix PR gdb/402.
8134
1200cd6e
AC
81352002-04-06 Andrew Cagney <ac131313@redhat.com>
8136
8137 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8138 -1. Update comment.
8139 * gdbarch.h, gdbarch.c: Re-generate.
8140
2853c33c
AS
81412002-04-07 Andreas Schwab <schwab@suse.de>
8142
8143 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8144 buffer to regcache_collect.
8145
c2169756
AC
81462002-04-06 Andrew Cagney <ac131313@redhat.com>
8147
8148 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8149 * gdbarch.c, gdbarch.h: Re-generate.
8150
25f1b008
AC
81512002-04-06 Andrew Cagney <ac131313@redhat.com>
8152
8153 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8154 declaration. Fix -Werror.
8155
59263426
DJ
81562002-04-05 Daniel Jacobowitz <drow@mvista.com>
8157
8158 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8159 * gdbarch.c: Regenerate.
8160
f5db4da3
MS
81612002-04-05 Michael Snyder <msnyder@redhat.com>
8162
80f8a6eb
MS
8163 * breakpoint.c (clear_command): Rewrite middle section to
8164 combine two loops with identical control conditions.
8165 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8166 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8167
ad3dcc5c
L
81682002-04-05 H.J. Lu (hjl@gnu.org)
8169
8170 * solib-svr4.c (bkpt_names): Add "__start".
8171
f32e7a74
AC
81722002-04-04 Andrew Cagney <ac131313@redhat.com>
8173
8174 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8175 as test for 64 bit target.
8176
8227c0ff
AC
81772002-04-05 Andrew Cagney <ac131313@redhat.com>
8178
8179 * h8500-tdep.c (h8500_write_fp): Delete function.
8180 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8181 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8182 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8184 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8185 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8186 (s390_write_fp):
8187 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8188 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8189 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8190 (d10v_write_fp): Delete function.
8191 * inferior.h (write_fp, generic_target_write_fp): Delete
8192 declarations.
8193 * regcache.c (generic_target_write_fp): Delete function.
8194 (write_fp): Delete function.
8195 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8196 * gdbarch.h, gdbarch.c: Regenerate.
8197 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8198 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8199 (sparc64_write_fp): Delete declaration.
8200 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8201 (h8500_write_fp): Delete declaration.
8202
2757dd86
AC
82032002-04-04 Andrew Cagney <ac131313@redhat.com>
8204
8205 * sparc-tdep.c (sparc64_write_fp): Delete.
8206 (sparc_push_dummy_frame): Replace write_fp call with code to store
8207 the FP directly.
8208 (sparc_gdbarch_init): Do not initialize write_fp.
8209
c69255e1
KB
82102002-04-05 Kevin Buettner <kevinb@redhat.com>
8211
8212 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8213 clause.
8214
ae767bfb
JB
82152002-03-29 Jim Blandy <jimb@redhat.com>
8216
8217 * stack.c (get_selected_block): Add new argument `addr_in_block',
8218 used to return the exact code address we used to select the block,
8219 not just the block.
8220 * blockframe.c (get_frame_block, get_current_block): Same.
8221 * frame.h (get_frame_block, get_current_block,
8222 get_selected_block): Update declarations.
8223 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8224 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8225
84d2ac95
MS
82262002-04-05 Michael Snyder <msnyder@redhat.com>
8227
8228 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8229 warning message.
8230
596aa3bf
JB
82312002-04-05 J. Brobecker <brobecker@gnat.com>
8232
8233 * utils.c (xfullpath): New function.
8234 * defs.h (xfullpath): Add declaration.
8235 * source.c (openp): Use xfullpath in place of gdb_realpath to
8236 avoid resolving the basename part of filenames when the
8237 associated file is a symbolic link. This fixes a potential
8238 inconsistency between the filenames known to GDB and the
8239 filenames it prints in the annotations.
8240 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8241 to be able to match a filename with either the real filename, or
8242 the name of any symbolic link to this file.
8243 (lookup_partial_symtab): Ditto.
8244
c02f5703
MS
82452002-04-04 Michael Snyder <msnyder@redhat.com>
8246
8247 * breakpoint.c: Add support for hardware breakpoints in overlays.
8248 (overlay_events_enabled): New state variable.
8249 (insert_breakpoints): Use overlay_events_enabled to decide
8250 whether to attempt to set a breakpoint at the overlay load addr.
8251 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8252 (remove_breakpoint): Use overlay_events_enabled to decide
8253 whether breakpoints need to be removed from overlay load addr.
8254 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8255 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8256 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8257 disable_overlay_breakpoints): Update overlay_events_enabled.
8258
5fb290d7
DJ
82592002-04-04 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * dwarf2read.c (struct function_range): New.
8262 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8263 (check_cu_functions): New.
8264 (read_file_scope): Initialize global function lists.
8265 Call dwarf_decode_line after processing children.
8266 (read_func_scope): Add to global function list.
8267 (dwarf_decode_lines): Call check_cu_functions everywhere
8268 record_line is called. Call record_line with a linenumber
8269 of 0 to mark sequence ends.
8270
7b3fabf0
ML
82712002-04-04 Michal Ludvig <mludvig@suse.cz>
8272
361d1df0 8273 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8274 change sync with glibc.
8275
bce58c09
JB
82762002-04-03 Jim Blandy <jimb@redhat.com>
8277
8278 * configure.in: Call AC_C_INLINE.
8279 * configure: Regenerated.
361d1df0 8280
2fccf04a
DJ
82812002-04-01 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8284 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8285
2d1bfe2e
MK
82862002-03-31 Mark Kettenis <kettenis@gnu.org>
8287
a5941fbf
MK
8288 * NEWS: Mention gcore support on FreeBSD/i386.
8289
a90cd31d
MK
8290 * fbsd-proc.c: New file.
8291 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8292 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8293
2d1bfe2e
MK
8294 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8295 while statement.
8296
9eb6e5a1
JB
82972002-03-29 Jim Blandy <jimb@redhat.com>
8298
8299 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8300 unescaped newlines in string literals, but newer ones don't. So
8301 escape them.
8302
f02df580
MS
83032002-03-26 Michael Snyder <msnyder@redhat.com>
8304 Andrew Cagney <cagney@redhat.com>
8305
361d1df0 8306 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8307 restore file to memory.
8308 * cli/cli-dump.h: New file.
8309 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8310 * NEWS: Mention new commands.
f02df580 8311
109f874e
MS
83122002-03-28 Michael Snyder <msnyder@redhat.com>
8313
8314 * symfile.c (symbol_file_add): Move test for null symbols to later.
8315
520f6ade
AC
83162002-03-27 Andrew Cagney <ac131313@redhat.com>
8317
8318 From veksler at il.ibm.com:
8319 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8320 the xstrduped original path.
8321 Fix PR gdb/417.
8322
d4654627
MS
83232002-03-27 Michael Snyder <msnyder@redhat.com>
8324
8325 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8326 * infcmd.c (_initialize_infcmd): Ditto.
8327 * language.c (_initialize_language): Ditto.
8328 * symfile.c (_initialize_symfile): Ditto.
8329 * top.c (_init_main): Ditto.
8330 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8331
6be8bc0c
EZ
83322002-03-27 Elena Zannoni <ezannoni@redhat.com>
8333
8334 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8335 vector registers handling.
8336 (skip_prologue): Handle new AltiVec instructions. Fill in new
8337 fields of frame data.
8338 (frame_get_saved_regs): Fill in information for AltiVec registers.
8339
12af6855
JB
83402002-03-27 Jim Blandy <jimb@redhat.com>
8341
8342 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8343 a function; leave this macro here to invoke that function.
8344 (symbol_init_mangled_name): Declaration for that function.
8345 * symtab.c (symbol_init_mangled_name): New function.
8346
dc672865
AC
83472002-03-27 Andrew Cagney <ac131313@redhat.com>
8348
8349 * valarith.c: Replace strerror with safe_strerror.
8350 * tracepoint.c: Ditto.
8351 * lin-lwp.c: Ditto.
8352 * go32-nat.c: Ditto.
8353 * inflow.c: Ditto.
8354 * gnu-nat.c: Ditto.
8355
d96429cd
AS
83562002-03-27 Andreas Schwab <schwab@suse.de>
8357
8358 * event-top.c (command_line_handler): Remove useless if.
8359
7e336ba1
AJ
83602002-03-27 Andreas Jaeger <aj@suse.de>
8361
8362 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8363 comment.
8364
de220d0f
ML
83652002-03-27 Michal Ludvig <mludvig@suse.cz>
8366
8367 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8368 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8369 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8370 (x86_64_linux_dr_get_status, supply_gregset),
8371 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8372 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8373 (x86_64_register_info_table): Add.
8374 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8375 (x86_64_register_raw_size, x86_64_register_virtual_type),
8376 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8377 general x86_64_register_info_table.
8378 (i386_gdbarch_init): gdbarch_register_bytes is now set
8379 dynamicaly during initialization.
8380 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8381 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8382
0e98d0a7
DJ
83832002-03-27 Daniel Jacobowitz <drow@mvista.com>
8384
8385 * gdbserver/server.c (main): Call target_signal_to_host_p
8386 and target_signal_to_host on signals received from the remote.
8387 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8388 target_signal_from_host on signals sent to the remote.
8389 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8390 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8391
3130066b
DJ
83922002-03-27 Daniel Jacobowitz <drow@mvista.com>
8393
8394 * signals/signals.c: Include "server.h" in gdbserver build.
8395 (target_signal_from_name): Don't use STREQ.
8396 (_initialize_signals): Likewise. Don't include function in
8397 gdbserver build.
8398
9aedf4f4
DJ
83992002-03-27 Daniel Jacobowitz <drow@mvista.com>
8400
8401 * signals.c: Moved to...
8402 * signals/signals.c: Here.
7e336ba1 8403 * Makefile (signals.o): Update.
9aedf4f4 8404
3fa41cdb
JL
84052002-03-26 Jeff Law (law@redhat.com)
8406
8407 * somread.c (som_symtab_read): Remove some commented out code and
8408 updated related comments. Do not set the minimal symbol table to
8409 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8410 in a dynamic executable.
8411 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8412 where we are unable to find the minimal symbol for the given
8413 PC value.
8414
ee677e8d
MS
84152002-03-25 Jeff Law (law@redhat.com)
8416
8417 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8418
e76e1718
ML
84192002-03-25 Michal Ludvig <mludvig@suse.cz>
8420
8421 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8422
18a642a1
AC
84232002-03-23 Andrew Cagney <ac131313@redhat.com>
8424
8425 * command.h: Update copyright.
8426 (struct cmd_list_element): Replace definition with opaque
8427 declaration.
8428 (enum cmd_types): Document that it will eventually be moved to
8429 cli/cli-decode.h
8430 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8431 (MALLOCED_REPLACEMENT): Delete macro.
8432 * Makefile.in (cli_decode_h): Add $(command_h).
8433 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8434 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8435 * completer.c: Include "cli/cli-decode.h".
8436 * maint.c: Include "cli/cli-decode.h".
8437 * cli/cli-decode.h: Include "command.h".
8438 (enum command_class): Delete.
8439 (enum cmd_types): Comment out.
8440 (enum cmd_auto_boolean): Delete.
8441 (enum var_types): Delete.
8442
b2875cc0
AC
84432002-03-23 Andrew Cagney <ac131313@redhat.com>
8444
8445 * cli/cli-decode.c: Include "gdb_assert.h".
8446 (add_set_or_show_cmd): New static function.
8447 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8448 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8449 all fields, such as func, from the set command.
8450
3b45974e
AC
84512002-03-23 Andrew Cagney <ac131313@redhat.com>
8452
8453 * MAINTAINERS (sh-elf): Change warning flag to -w.
8454
823ca731
AC
84552002-03-23 Andrew Cagney <cagney@redhat.com>
8456
8457 * defs.h (error): Add printf format attribute.
8458 * thread-db.c (thread_from_lwp): Fix error format string.
8459 * stack.c (parse_frame_specification): Ditto.
8460 * cli/cli-decode.c (undef_cmd_error): Ditto.
8461 * scm-lang.c (scm_lookup_name): Ditto.
8462 * tracepoint.c (trace_error): Ditto.
8463 * remote-utils.c (usage): Ditto.
8464 * remote.c (compare_sections_command): Ditto.
8465 Fix PR gdb/328.
8466
0e101458
AC
84672002-03-22 Andrew Cagney <ac131313@redhat.com>
8468
8469 * gdbtypes.c (append_composite_type_field): New function.
8470 (init_composite_type): New function.
8471 * gdbtypes.h (append_composite_type_field): Declare.
8472 (init_composite_type): Ditto.
8473
8e0662df
EZ
84742002-03-22 Elena Zannoni <ezannoni@redhat.com>
8475
8476 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8477 function.
8e0662df
EZ
8478 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8479 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8480 structure returning convention for SYSV ABI case, but not
8481 for GNU/Linux, FreeBSD, or NetBSD.
8482
3121eff0
DJ
84832002-03-22 Daniel Jacobowitz <drow@mvista.com>
8484
8485 * symtab.h (lookup_block_symbol): Add mangled_name argument
8486 to prototype.
8487
8488 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8489 with new mangled_name argument.
8490 * linespec.c (decode_line_1): Likewise.
8491 * valops (value_of_this): Likewise.
8492 * symtab.c (lookup_transparent_type): Likewise.
8493 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8494 (lookup_symbol): If we are given a mangled name, pass it down
8495 to lookup_symbol_aux.
8496 (lookup_block_symbol): If we are given a mangled name to check
8497 against, only return symbols which match it.
8498
349b409f
CF
84992002-03-22 Christopher Faylor <cgf@redhat.com>
8500
8501 * win32-nat.c (child_create_inferior): Check for proper shell to use
8502 here, in case the user changes it on the fly.
8503 (_initialize_inftarg): Remove shell path considerations.
8504
2a873819
EZ
85052002-03-21 Elena Zannoni <ezannoni@redhat.com>
8506
8507 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8508 for gdbarch_max_register_raw_size and max_register_virtual_size.
8509 Adjust copyright year.
8510
a1b9830c
DJ
85112002-03-21 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8514 in a function to cover the entire beginning of the function
8515 as well if it does not already.
8516
8b5790f2
TR
85172002-03-21 Tom Rix <trix@redhat.com>
8518
8519 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8520 (rs6000_ptrace64): Renamed from ptrace64.
8521
bdbe5747
MH
85222002-03-20 Martin M. Hunt <hunt@redhat.com>
8523
8524 * gdbserver/remote-utils.c (remote_open): Don't call
8525 getprotobyname, we're all using TCP here so just use
8526 IPPROTO_TCP.
7e336ba1 8527 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8528
85292002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8530
bdbe5747
MH
8531 * regcache.c (_initialize_regcache): No need to call
8532 build_regcache() at this time; it gets called whenever
8533 the gdbarch changes.
8534
7781cd62
DB
85352002-03-20 David O'Brien <obrien@FreeBSD.org>
8536
8537 * sparc-nat.c: Include sys/param.h where possible.
8538
f65ca430
DJ
85392002-03-20 Daniel Jacobowitz <drow@mvista.com>
8540
8541 Fix PR gdb/422.
8542 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8543 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8544 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8545 complex types.
8546 * stabsread.c (rs6000_builtin_type): Likewise.
8547 (read_sun_floating_type): Likewise.
8548
0c867556
PS
85492002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8550
8551 * stabsread.c (read_member_functions): Remove skip code for duplicate
8552 constructor/destructor methods. Use standard parsing for these
8553 methods and just do not chain them to the list of methods after
8554 parsing.
8555
12b9c64f
AO
85562002-03-19 Alexandre Oliva <aoliva@redhat.com>
8557
8558 * coffread.c: Remove redundant static declarations. Replace
8559 occurrences of `PTR' with `void *'.
8560 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8561 * top.h (quit_cover): Likewise.
8562 * defs.h (catch_errors): Likewise.
8563
349c5d5f
AC
85642002-03-18 Andrew Cagney <ac131313@redhat.com>
8565
8566 * defs.h (XMALLOC): Define.
8567 * gdb-events.sh (XMALLOC): Delete macro.
8568 * gdb-events.c, gdb-events.h: Regenerate.
8569 * gdbarch.sh (XMALLOC): Delete macro.
8570 * gdbarch.c: Regenerate.
8571 * serial.c (XMALLOC): Delete macro.
8572 * ui-file.c (XMALLOC): Ditto.
8573 * ser-unix.h (XMALLOC): Ditto.
8574 * sh-tdep.c (XMALLOC): Ditto.
8575 * ui-out.c (XMALLOC): Ditto.
8576 * utils.c (XMALLOC): Ditto.
8577 * i386-tdep.c (XMALLOC): Ditto.
8578 * gdb-events.c (XMALLOC): Ditto.
8579 * d10v-tdep.c (XMALLOC): Ditto.
8580 * cli-out.c (XMALLOC): Ditto.
8581
8582 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8583 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8584 * ui-file.c, ui-out.c: Ditto.
8585
7d0766f3
AC
85862002-03-18 Andrew Cagney <ac131313@redhat.com>
8587
8588 * command.h (struct cmd_list_element): Add field context.
8589 (set_cmd_context, get_cmd_context): Declare.
8590 * cli/cli-decode.h: Ditto.
8591 * cli/cli-decode.c (get_cmd_context): New function.
8592 (set_cmd_context): New function.
8593 (add_cmd): Initialize context.
8594 Part of fixing PR gdb/145 and PR gdb/146.
8595
5913bcb0
AC
85962002-03-17 Andrew Cagney <ac131313@redhat.com>
8597
1868c04e
AC
8598 * cli/cli-decode.c (cmd_type): New function.
8599 * command.h (cmd_type): Declare.
8600 * infrun.c (set_schedlock_func): Call function cmd_type.
8601 * kod.c (kod_set_os): Call cmd_type.
8602 * cris-tdep.c (cris_version_update): Use function cmd_type.
8603 (cris_mode_update, cris_abi_update): Ditto.
8604
5913bcb0
AC
8605 * command.h: (execute_cmd_post_hook): Declare.
8606 (execute_cmd_pre_hook): Declare.
8607 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8608 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8609 functions. Execute pre/post hook while ensuring that afterwords
8610 hook_in is cleared.
8611 * top.c (execute_command): Use execute_cmd_post_hook, and
8612 execute_cmd_pre_hook to execute pre/post commands.
8613 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8614 hook_stop_stub.
8615 (hook_stop_stub): Call execute_cmd_pre_hook.
8616
b51450c9
AC
86172002-03-17 Andrew Cagney <ac131313@redhat.com>
8618
8619 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8620 set'' and this leads to a core dump. Move xstrdup of
8621 operating_system to after check that it is not NULL.
8622
f66c9f11
AC
86232002-03-17 Andrew Cagney <ac131313@redhat.com>
8624
8e694ecf
AC
8625 * kod.c (kod_set_os): Remove unnecessary check that
8626 ``command->type'' is set_cmd.
8627
f66c9f11
AC
8628 * valprint.c (set_input_radix): Use input_radix.
8629 (set_output_radix): Use output_radix.
8630 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8631 isn't reverted.
8632
9d01611c
AC
86332002-03-16 Andrew Cagney <ac131313@redhat.com>
8634
8635 * value.h (struct value): Delete field ``substring_addr''. Change
8636 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8637 force_core_addr_align and force_pointer_aligh.
8638
8639 * value.h (struct value): Fix typo in above change.
9d01611c 8640
4156bb53
PS
86412002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8642
8643 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8644 to fix internal_error from ``maintenance print architecture''.
8645
0e5e3ea6
PS
86462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8647
8648 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8649 for gcc versions after gcc-2.8.1.
8650
9b013045
PS
86512002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8652
8653 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8654 for method resolution. Restore adjustment of ``this'' pointer after
8655 calling value_struct_elt, which was accidentally removed during the
8656 HP merge.
8657
376c9600
AC
86582002-03-15 Andrew Cagney <ac131313@redhat.com>
8659
8660 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8661 value_of_register.
8662 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8663 get_saved_register.
8664 * value.h (value_of_register): Update.
8665
a4db0f07
RH
86662002-03-14 Richard Henderson <rth@redhat.com>
8667
8668 * configure.in: Detect declaration for canonicalize_file_name.
8669 * utils.c (canonicalize_file_name): Declare, if needed.
8670 (gdb_realpath): Prefer realpath if available and usable.
8671 * config.in, configure: Rebuild.
8672
96383835
RH
86732002-03-14 Richard Henderson <rth@redhat.com>
8674
8675 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8676 a constant array bound.
8677
8678 * MAINTAINERS: Add myself to write-after-approval.
8679
75245b24
MS
86802002-03-14 Michael Snyder <msnyder@redhat.com>
8681
8682 * symfile.c (syms_from_objfile): Return immediately if no syms.
8683 (symbol_file_add): Return immediately if no syms.
8684 (find_sym_fns): Return immediately if no syms.
8685
e641a1ca
ML
86862002-03-13 Michal Ludvig <mludvig@suse.cz>
8687
8688 * gdbserver/remote-util.c (remote_open): Print remote-side's
8689 IP address when remote debugging over the network.
7e336ba1 8690
df08bfec
DB
86912002-03-12 David O'Brien <obrien@FreeBSD.org>
8692
8693 * config/sparc/fbsd.mh: Fix copyright.
8694 * config/sparc/fbsd.mt: Likewise.
8695
9a57864f
RE
86962002-03-11 Richard Earnshaw <rearnsha@arm.com>
8697
8698 * MAINTAINERS: Fix typo in name of gdb warnings option.
8699 (x86-64): Fix formating so that this can be parsed by awk.
8700
dd7bf85e
DJ
87012002-03-10 Daniel Jacobowitz <drow@mvista.com>
8702
8703 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8704 * defs.h: Include "gdb/signals.h".
8705 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8706
33a0a2ac
ML
87072002-03-10 Michal Ludvig <mludvig@suse.cz>
8708
8709 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8710 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8711 from x86-64-tdep.h
8712
dd824b04
DJ
87132002-03-10 Daniel Jacobowitz <drow@mvista.com>
8714 Don Howard <dhoward@redhat.com>
8715
8716 * mips-tdep.c (ST0_FR): Define.
8717 (mips2_fp_compat): New function, temporarily disabled.
8718 (mips_read_fp_register_single): New function.
8719 (mips_read_fp_register_double): New function.
8720 (mips_print_register): Use them.
8721 (do_fp_register_row): Likewise.
8722
6a41ff59
AC
87232002-03-09 Andrew Cagney <ac131313@redhat.com>
8724
8725 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8726 approval''.
8727
4ea09c10
PS
87282002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8729
8730 * stabsread.c (read_member_functions): Fix is_stub test for
8731 static member functions, improve comment.
8732
6ccc741d
RE
87332002-03-07 Richard Earnshaw <rearnsha@arm.com>
8734
8735 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8736 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8737 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8738 commands that set boolean values.
8739 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8740 (arm_rdi_resume): Always initialize PC.
8741 (arm_rdi_open): Don't use rslt as a boolean.
8742 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8743 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8744 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8745 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8746
438013df
AO
87472002-03-06 Alexandre Oliva <aoliva@redhat.com>
8748
8749 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8750 * configure: Rebuilt.
8751
70ed8774
SC
87522002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8753
8754 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8755 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8756
5ba2abeb
AC
87572002-03-06 Andrew Cagney <ac131313@redhat.com>
8758
8759 * cli/cli-decode.c (set_cmd_completer): New function.
8760 * command.h (set_cmd_completer): Declare.
8761 * cli/cli-decode.h (set_cmd_completer): Ditto.
8762
8763 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8764 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8765 * win32-nat.c (_initialize_inftarg): Ditto.
8766 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8767 * proc-api.c (_initialize_proc_api): Ditto.
8768 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8769 * source.c (_initialize_source): Ditto.
8770 * exec.c (_initialize_exec): Ditto.
8771 * solib.c (_initialize_solib): Ditto.
8772 * top.c (init_main): Ditto.
8773 * tracepoint.c (_initialize_tracepoint): Ditto.
8774 * symfile.c (_initialize_symfile): Ditto.
8775 * printcmd.c (_initialize_printcmd): Ditto.
8776 * infcmd.c (_initialize_infcmd): Ditto.
8777 * corefile.c (_initialize_core): Ditto.
8778
f779ca99
AC
87792002-03-05 Andrew Cagney <ac131313@redhat.com>
8780
8781 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8782
01a3934b
AC
87832002-03-05 Andrew Cagney <ac131313@redhat.com>
8784
8785 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8786
37057839
AC
87872002-03-05 Andrew Cagney <ac131313@redhat.com>
8788
8789 * NEWS: Update headings, 5.2 has branched.
8790
c6ecbae5
DJ
87912002-03-04 Daniel Jacobowitz <drow@mvista.com>
8792
8793 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8794 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8795 (register_addr, REGISTER_RAW_SIZE): Likewise.
8796 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8797 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8798
e9f30c21
ML
87992002-03-03 Michal Ludvig <mludvig@suse.cz>
8800
8801 * MAINTAINERS (x86-64): Add myself.
8802 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8803 changed value_ptr -> struct value *
8804
54394ac3
DB
88052002-03-01 David O'Brien <obrien@FreeBSD.org>
8806
8807 * configure.host (sparc64-*-freebsd): Add.
8808 * configure.tgt: Likewise.
8809 * config/sparc/fbsd.mh: New file.
8810 * config/sparc/fbsd.mt: Likewise.
8811 * config/sparc/nm-fbsd.h: Likewise.
8812 * config/sparc/tm-fbsd.h: Likewise.
8813
bfe95955
DJ
88142002-03-01 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8817 regformats/reg-s390x.dat.
8818
f33c6cbf
AC
88192002-03-01 Andrew Cagney <ac131313@redhat.com>
8820
8821 * utils.c: Add FIXME explaining true/false problem.
8822
5ecaa7dd
AC
88232002-02-28 Andrew Cagney <ac131313@redhat.com>
8824
8825 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8826
2a251cc2
MC
88272002-02-28 Michael Chastain <mec@shout.net>
8828
8829 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8830
6a8031a3 88312002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8832
8833 * gdbserver/linux-s390-low.c: New file.
8834 * regformats/reg-s390.dat: New file.
8835 * regformats/reg-s390x.dat: New file.
8836 * gdbserver/configure.srv: Add S/390.
8837 * gdbserver/Makefile.in: Add S/390.
8838 * configure.tgt: Enable gdbserver for S/390.
8839
ac469903
EZ
88402002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8841
8842 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8843 first line of the doc string for "info dos", except at the end of
8844 the sentence, since the short help stops at the first period.
8845
985cb1a3
JM
88462002-02-28 Jason Merrill <jason@redhat.com>
8847
8848 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8849
c570663e
FF
88502002-02-27 Fred Fish <fnf@redhat.com>
8851
8852 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8853 comment (dumy -> dummy).
8854
43630227
PS
88552002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8856
8857 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8858
b84911e8
RB
88592002-02-27 Rodney Brown <rbrown64@csc.com.au>
8860
8861 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8862
58caa3dc
DJ
88632002-02-27 Daniel Jacobowitz <drow@mvista.com>
8864
8865 * gdbserver/acconfig.h: New file.
8866 * gdbserver/i387-fp.c: New file.
8867 * gdbserver/i387-fp.h: New file.
8868 * gdbserver/linux-x86-64.c: New file.
8869 * regformats/reg-x86-64.dat: New file.
8870 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8871 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8872 * gdbserver/configure.in: Add support for regsets.
8873 * gdbserver/config.in: Regenerate.
8874 * gdbserver/configure: Regenerate.
8875 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8876 * gdbserver/linux-low.h: New file.
8877 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8878 for regsets.
8879 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8880 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8881 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8882 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8883 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8884 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8885 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8886 "i387-fp.h". Add PTRACE_GETREGS and friends.
8887 * gdbserver/regcache.c (supply_register): New function.
8888 (supply_register_by_name): New function.
8889 (collect_register): New function.
8890 (collect_register_by_name): New function.
8891
93652174
DJ
88922002-02-27 Daniel Jacobowitz <drow@mvista.com>
8893
8894 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8895 (config.status): Add configure.srv dependency.
8896 (server_h): Add config.h dependency.
8897
a02e4a61
DJ
88982002-02-27 Daniel Jacobowitz <drow@mvista.com>
8899
8900 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8901 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8902 * gdbserver/configure.srv: Change i386-*-linux* to use
8903 reg-i386-linux.o.
8904
ce0eebec
AC
89052002-02-26 Andrew Cagney <ac131313@redhat.com>
8906
8907 * x86-64-tdep.c: Re-indent. Update copyright date.
8908
82dbc5f7
AC
89092002-02-26 Andrew Cagney <ac131313@redhat.com>
8910
8911 From Michal Ludvig <mludvig@suse.cz>:
8912 * x86-64-tdep.c (value.h): Delete.
8913 (gdb_assert.h): Include.
8914 (x86_64_register_convert_to_virtual,
8915 x86_64_register_convert_to_raw ): Add check which lets only
8916 floating-point values to be converted.
8917 (value_push): Delete.
8918 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8919 (i386_gdbarch_init): Number of register_bytes fixed.
8920
e4621584
AC
89212002-02-26 Andrew Cagney <ac131313@redhat.com>
8922
8923 * MAINTAINERS: Add x86-64 target.
8924
81a9a963
AC
89252002-02-26 Andrew Cagney <ac131313@redhat.com>
8926
8927 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8928 * osfsolib.c (solib_map_sections): Ditto.
8929 * irix5-nat.c (solib_map_sections): Ditto.
8930 * corelow.c (gdb_check_format): Ditto.
8931 * symfile.c (symfile_bfd_open): Ditto.
8932 * solib.c (solib_map_sections): Ditto.
8933 Fix PR gdb/354.
7e336ba1 8934
0f017ab9
AC
89352002-02-26 Andrew Cagney <ac131313@redhat.com>
8936
8937 * remote.c (_initialize_remote): By default, disable ``e'' and
8938 ``E'' step out-of-range packets.
8939
75738c29
AS
89402002-02-26 Andreas Schwab <schwab@suse.de>
8941
8942 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8943 m68k_linux_frame_saved_pc.
8944 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8945 in_sigtramp.
8946 (SIGCONTEXT_PC_OFFSET): Remove.
8947 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8948 m68k_linux_sigtramp_saved_pc): New functions.
8949 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8950 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8951 (UCONTEXT_PC_OFFSET): Define.
8952 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8953 non-RT and RT signal trampolines.
8954
7e8ed687
RE
89552002-02-26 Richard Earnshaw <rearnsha@arm.com>
8956
8957 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8958 (TARGET_NBPG, STACK_END_ADDR): Delete
8959 (VARIABLES_INSIDE_BLOCK): Delete.
8960
6972bc8b
AC
89612002-02-25 Andrew Cagney <ac131313@redhat.com>
8962
8963 * utils.c (perror_with_name): Make string parameter constant.
8964 (print_sys_errmsg): Ditto.
8965 (query): Ditto.
8966 * defs.h (perror_with_name): Update.
8967 (print_sys_errmsg): Update.
8968 (query): Update.
8969
aa32f823
DJ
89702002-02-25 Daniel Jacobowitz <drow@mvista.com>
8971
8972 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8973 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8974
19caaa45
PS
89752002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8976
8977 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8978 if it already matches the current architecture from the exec file.
8979 Include arch-utils.h for gdbarch_info_init prototype.
8980 * Makefile.in (rs6000-nat.o): Update dependencies.
8981
d951901f
EZ
89822002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8983
8984 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8985 list of exported variables.
8986
7ea81414
DJ
89872002-02-24 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * gdbserver/configure.srv: New file.
8990 * gdbserver/configure.in: Use configure.srv instead
8991 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8992 from it.
8993 * gdbserver/configure: Regenerated.
8994 * gdbserver/terminal.h: New file.
8995 * gdbserver/Makefile.in: Update for configure changes. Remove
8996 more unneeded include paths.
8997
080fe24b
AC
89982002-02-24 Andrew Cagney <ac131313@redhat.com>
8999
9000 From wiz at danbala:
9001 * config/sparc/tm-sp64.h: Fix grammar and typos.
9002 Fix PR gdb/287.
9003
8605d56e
AC
90042002-02-24 Andrew Cagney <ac131313@redhat.com>
9005
9006 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9007 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9008 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9009 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9010 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9011 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9012 * s390-tdep.c: Ditto.
92362027
AC
9013 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9014 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9015 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9016 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9017 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9018 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9019 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9020 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9021 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9022 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9023 Fix PR gdb/378.
7e336ba1 9024
8ed32cc0
AC
90252002-02-23 Andrew Cagney <ac131313@redhat.com>
9026
a3007b6f
AC
9027 * lin-thread.c: Delete file.
9028 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9029 to gdb_proc_service.h.
9030 * configure: Re-generate.
9031
50a9e2f1
AC
9032 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9033 * serial.c (serial_open): Delete check for "ocd".
9034 Fix PR gdb/349.
9035
8b6e7932
AC
9036 * Makefile.in (linux-thread.o): Delete target.
9037 * linux-thread.c: Delete file.
9038
d155c46b
AC
9039 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9040 renamed SH files to be consistent.
9041
8ed32cc0
AC
9042 * symtab.c (sort_search_symbols): Use xfree.
9043
0e18d038
RE
90442002-02-23 Richard Earnshaw <rearnsha@arm.com>
9045
9046 * arm-linux-tdep.c (arm_linux_init_abi): Register
9047 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9048 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9049 definition with undef, since we don't want the sysvr4 definition.
9050 (SKIP_TRAMPOLINE_CODE): Likewise.
9051
27aac7ff
AC
90522002-02-23 Andrew Cagney <ac131313@redhat.com>
9053
9054 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9055
9056 * configure.in: (AC_CHECK_FUNCS) Added test for
9057 canonicalize_file_name Regenerated.
9058 * config.in, configure: Regenerated.
9059 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9060 defined use canonicalize_file_name.
7e336ba1 9061
65a6e0ee
MC
90622002-02-23 Michael Chastain <mec@shout.net>
9063
9064 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9065
47b95330
AC
90662002-02-23 Andrew Cagney <ac131313@redhat.com>
9067
9068 * README: Remove references to cygnus.com.
9069 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9070 dot com'' form. Remove references to cygnus.com and sourceware.
9071
696f451b
AC
90722002-02-23 Andrew Cagney <ac131313@redhat.com>
9073
9074 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9075 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9076 1003.1-2001 no longer allows "head -1".
9077 * gdb/Makefile.in (version.c): Likewise.
9078 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9079 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9080 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9081
bbaca940
AC
90822002-02-23 Andrew Cagney <ac131313@redhat.com>
9083
9084 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9085 * command.h (cmd_cfunc_eq): Declare.
9086 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9087
9088 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9089 ``struct cmd_list_element *''.
9090 * cli/cli-cmds.c (is_complete_command): Update. Use
9091 cmd_cfunc_eq.
9092 * top.c (execute_command): Pass the command to
9093 is_complete_command.
9094 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9095
b8b8b047
AC
90962002-02-23 Andrew Cagney <ac131313@redhat.com>
9097
9098 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9099 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9100 architecture defines.
9101 * s390-tdep.c (s390_gdbarch_init): Likewise.
9102
19d3fc80
RE
91032002-02-23 Richard Earnshaw <rearnsha@arm.com>
9104
9105 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9106 (arm_linux_push_arguments): Likewise.
9107 (arm_linux_init_abi): Register them. Also register linux-specific
9108 call_dummy_words.
9109 (find_minsym_and_objfile): Use strcmp, not STREQ.
9110 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9111 (arm_linux_call_dummy_words): Delete declaration.
9112 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9113 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9114 declarations.
9115 (LOWEST_PC): Delete.
9116
3ab13650
PS
91172002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9118
9119 * maint.c (print_section_info): Do not prepend `0x' to filepos
9120 output, it will be handled by local_hex_string_custom.
9121
19d3fc80 91222002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9123
9124 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9125 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9126 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9127
d85a5daf
JB
91282002-02-22 Jim Blandy <jimb@redhat.com>
9129
9130 Indicate that the bcache functions don't change the strings
9131 they're passed.
9132 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9133 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9134
eeb25b8a
PM
91352002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9136
9137 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9138
6badb179
CF
91392002-02-21 Christopher Faylor <cgf@redhat.com>
9140
9141 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9142 find the complete path to a loaded DLL.
9143
e8717518
FF
91442002-02-21 Fred Fish <fnf@redhat.com>
9145
9146 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9147 that marks the end of the range of a function, enter a line number
9148 entry that has a line number of zero and a PC offset that matches
9149 the end of the function. This starts a range of PC's for which no
9150 line number information is known.
9151 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9152 PC's for which no line number info is found (line number is zero)
9153 then we didn't find any valid line information.
9154 * symtab.h: Document use of zero line number entry.
9155
9abe5450
EZ
91562002-02-21 Elena Zannoni <ezannoni@redhat.com>
9157
9158 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9159 (have_ptrace_getvrregs): Define for run time checks.
9160 (gdb_vrregset_t): New type for Altivec register handling.
9161 (fetch_register, store_register): Fetch/store altivec register
9162 when needed.
9163 (fetch_altivec_register, store_altivec_register): New functions.
9164 (supply_vrregset, fill_vrregset): New functions.
9165 (fetch_altivec_registers, store_altivec_registers): New functions.
9166 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9167 registers as well.
9168
aaa38bb5
AJ
91692002-02-21 Jiri Smid <smid@suse.cz>
9170
9171 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9172
b34db576
RE
91732002-02-21 Richard Earnshaw <rearnsha@arm.com>
9174
9175 * Makefile.in (armnbsd-nat.o): Update dependencies.
9176 * armnbsd-nat.c (supply_gregset): New function. Common code to
9177 supply the integer register set.
9178 (supply_fparegset): New function. Similar for FPA registers.
9179 (fetch_regs, fetch_fp_regs): Use them.
9180 (fetch_core_registers): Likewise.
9181 (fetch_elfcore_registers): New function.
9182 (arm_netbsd_elfcore_fns): New core-file type specification.
9183 (_initialize_arm_netbsd_nat): Register it.
9184
3e56fc4b
RE
91852002-02-21 Richard Earnshaw <rearnsha@arm.com>
9186
9187 * armnbsd-nat.c: Include gdbcore.h.
9188 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9189 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9190 'void' to declaration, to shut up ARI.
9191 (fetch_core_registers): Make static. Rewrite using supply_register.
9192 (arm_netbsd_core_fns): New core-file type specification.
9193 (_initialize_arm_netbsd_nat): New function.
9194
097f6b0b
CF
91952002-02-21 Christopher Faylor <cgf@redhat.com>
9196
9197 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9198 value.
9199
c914e0cc
CF
92002002-02-20 Christopher Faylor <cgf@redhat.com>
9201
9202 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9203 fails.
9204
385fa495
DJ
92052002-02-20 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * jv-exp.y (parse_number): Change type of implicit longs
9208 to builtin_type_uint64.
9209
e5f1222d
DJ
92102002-02-20 Daniel Jacobowitz <drow@mvista.com>
9211
9212 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9213 to be an integer instead of a `union wait'.
9214
75c9abc6
DJ
92152002-02-20 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * mips-linux-nat.c: Call the operating system GNU/Linux.
9218 * mips-linux-tdep.c: Likewise.
9219 * mips-tdep.c: Likewise.
9220
551792a5
DJ
92212002-02-20 Daniel Jacobowitz <drow@mvista.com>
9222
9223 Fix PR gdb/265.
9224 * jv-exp.y (parse_number): Handle 64-bit integers.
9225
ee6e2b82
DJ
92262002-02-20 Daniel Jacobowitz <drow@mvista.com>
9227
9228 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9229 AC_STDC_HEADERS to AC_HEADER_STDC.
9230 * gdbserver/configure: Regenerated.
9231
a48442a0
RE
92322002-02-20 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9235 is defined.
9236 * sparc-tdep.c (get_longjmp_target): Likewise.
9237
fe419ffc
RE
92382002-02-20 Richard Earnshaw <rearnsha@arm.com>
9239
9240 * News: Add news about ARM and Multi-arch. Mention the new target
9241 arm*-*-netbsd*.
9242
5832ed7e
JB
92432002-02-19 Jim Blandy <jimb@redhat.com>
9244
9245 * stabsread.c (error_type_complaint): Improve error message.
9246
84563040
DJ
92472002-02-19 Daniel Jacobowitz <drow@mvista.com>
9248
9249 * gdbserver/README: Update documentation.
9250 * gdbserver/configure.in: Update configury to match documentation.
9251 * gdbserver/Makefile.in: Likewise.
9252 * gdbserver/configure: Regenerated.
9253 * gdbserver/aclocal.m4: New file, generated by aclocal.
9254 * gdbserver/config.in: New file, generated by autoheader.
9255
375fd65b
RE
92562002-02-19 Richard Earnshaw <rearnsha@arm.com>
9257
9258 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9259 armnbsd-nat.c.
9260
08216dd7
RE
92612002-02-19 Richard Earnshaw <rearnsha@arm.com>
9262
9263 * arm-tdep.h (enum arm_float_model): New enum.
9264 (struct gdbarch_tdep): Add fp_model.
9265 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9266 up floating-point conversions until we know the floating-point model
9267 in use by the inferior. Don't complain about being unable to
9268 determine the ABI of the inferior when we don't have one.
9269 (arm_extract_return_value): Support different floating-point models.
9270 (arm_store_return_value): Likewise.
aaa38bb5 9271 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9272 ARM_FLOAT_SOFT.
9273 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9274
65d6d66a
PS
92752002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9276
9277 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9278 of ``current_gdbarch''.
9279
47221191
RE
92802002-02-19 Richard Earnshaw <rearnsha@arm.com>
9281
9282 * armnbsd-nat.c : ANSIfy all function declarations.
9283 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9284 (fetch_inferior_registers): Re-implement in terms of above.
9285 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9286 (store_inferior_registers): Re-implement in terms of above.
9287
fdf39c9a
RE
92882002-02-19 Richard Earnshaw <rearnsha@arm.com>
9289
aaa38bb5 9290 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9291 kernel.
9292 * arm-linux-tdep.c: Likewise.
9293 * config/arm/tm-linux.h: Likewise.
9294
93247f88
RE
92952002-02-19 Richard Earnshaw <rearnsha@arm.com>
9296
9297 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9298 * config/arm/nbsd.mt (TM_FILE): Delete.
9299 * config/arm/tm-nbsd.h: Delete.
9300
d7b486e7
RE
93012002-02-19 Richard Earnshaw <rearnsha@arm.com>
9302
9303 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9304 Initialize CALL_DUMMY_LENGTH.
9305
41d39a95
RE
93062002-02-19 Richard Earnshaw <rearnsha@arm.com>
9307
9308 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9309 function.
9310 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9311 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9312 defines one thing and that is incorrect for this port.
9313 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9314
e1195560
PM
93152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9316
9317 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9318
c1748f97
PM
93192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9320
9321 * win32-nat.c (display_selector): New function. Displays information
9322 about the information returned by GetThreadSelectorEntry API function.
9323 (display_selectors): New function. Displays the infomation of
9324 the selector given as argument, or of CS, DS ans FS selectors
9325 if no argument is given.
9326 ( _initialize_inftarg): Add "w32" as info prefix command.
9327 Add "info w32 selector" as command calling display_selectors.
9328
e41e6bbf
PM
93292002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9330
9331 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9332 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9333 if not defined.
9334
0d3a9f48
RE
93352002-02-18 Richard Earnshaw <rearnsha@arm.com>
9336
9337 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9338
3fb4b924
RE
93392002-02-18 Richard Earnshaw <rearnsha@arm.com>
9340
9341 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9342 (arm_fix_call_dummy): Call it.
9343 (arm_call_dummy_breakpoint_offset): Delete.
9344 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9345 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9346
7f55af32
AC
93472002-02-18 Andrew Cagney <ac131313@redhat.com>
9348
9349 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9350 Default to func_frame_chain_valid.
9351 * gdbarch.h, gdbarch.c: Re-generate.
9352 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9353
05f13b9c
EZ
93542002-02-18 Elena Zannoni <ezannoni@redhat.com>
9355
9356 * ppc-linux-nat.c: Update copyright.
9357 (fetch_register, store_register): Add tid parameter, don't compute
9358 tid here.
9359 (fetch_ppc_registers, store_ppc_registers): Add tid
9360 parameter. Pass it along to callees.
9361 (fetch_inferior_registers, store_inferior_registers): Compute tid
9362 here, and pass it to calleed functions.
9363 (fill_gregset, supply_fpregset): Clean up formatting.
9364
d7afb4c9
RE
93652002-02-18 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9368 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9369
9df628e0
RE
93702002-02-18 Richard Earnshaw <rearnsha@arm.com>
9371
9372 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9373 * gdbarch.c gdbarch.h: Regenerate.
9374 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9375 function.
9376 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9377 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9378 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9379
9380 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9381 * arm-tdep.c (arm_get_longjmp_target): New function.
9382 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9383 this to a positive value register arm_get_longjmp_target as the
9384 longjmp handler.
9385 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9386 (arm_linux_init_abi): Set up longjmp description in tdep.
9387 * armnbsd-nat.c (get_longjmp_target): Delete.
9388 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9389 description in tdep.
9390 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9391 (get_longjmp_target): Delete declaration.
9392 (GET_LONGJMP_TARGET): Delete.
9393 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9394 (GET_LONGJMP_TARGET): Delete.
9395
57bc8964
KB
93962002-02-17 Kevin Buettner <kevinb@redhat.com>
9397
9398 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9399 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9400 of ``current_gdbarch''.
9401
83d31a92
TT
94022002-02-17 Tom Tromey <tromey@redhat.com>
9403
9404 * cli/cli-cmds.c (compare_strings): New function.
9405 (complete_command): Only print each unique item once.
9406 * completer.h (complete_line): Declare.
9407 * completer.c (complete_line): New function.
9408 (line_completion_function): Use it.
9409
17ef5d92
AC
94102002-02-16 Andrew Cagney <ac131313@redhat.com>
9411
9412 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9413 * gdbarch.h, gdbarch.c: Re-generate.
9414
491b8946
DJ
94152002-02-16 Daniel Jacobowitz <drow@mvista.com>
9416
9417 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9418
94192002-02-16 Daniel Jacobowitz <drow@mvista.com>
9420
9421 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9422 * valops.c (value_arg_coerce): Don't take the address of a reference
9423 to convert an argument to a reference.
9424
dfe7f3ac
CF
94252002-02-15 Christopher Faylor <cgf@redhat.com>
9426
9427 * win32-nat.c (get_image_name): New function.
9428 (handle_load_dll): Use get_image_name function.
9429 (get_child_debug_event): Avoid registering debug events until possibly
9430 execed process is started.
9431 (child_create_inferior): Allow invocation via shell so that command
9432 line redirection, etc. works ok.
9433 (_initialize_inftarg): Add new command: "set shell" to control whether
9434 a shell is used to start a process.
9435
1d33e73a
DJ
94362002-02-15 Daniel Jacobowitz <drow@mvista.com>
9437
9438 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9439 instead of find_register_by_number.
9440 (cannot_store_register): Likewise.
9441
48cd0caa
PM
94422002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9443
aaa38bb5 9444 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9445 fprintf_unfiltered (gdb_stderr, ...).
9446
8656e7d8
DJ
94472002-02-15 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * gdbserver/gdbserver.1: Document --attach.
9450
66e810cd
RE
94512002-02-15 Richard Earnshaw <rearnsha@arm.com>
9452
9453 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9454 descriptions.
9455 * arm-tdep.c (arm_default_arm_le_breakpoint)
9456 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9457 (arm_default_thumb_be_breakpoint): New. Initialize them from
9458 traditional breakpoint defines.
9459 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9460 (arm_gdbarch_init): Initialize new breakpoint variables.
9461 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9462 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9463 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9464 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9465 code out to ...
9466 (arm_netbsd_init_abi_common): ... here; new function.
9467 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9468 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9469 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9470 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9471
97e03143
RE
94722002-02-15 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * arm-tdep.h (enum arm_abi): New enum.
9475 (struct gdbarch_tdep): New structure.
9476 (LOWEST_PC): Provide a default.
9477 (arm_gdbarch_register_os_abi): Declare new function.
9478 * arm-tdep.c (arm_abi_names): New array.
9479 (process_note_abi_tag_sections): New function.
9480 (get_elfosabi): New function.
9481 (arm_gdbarch_register_os_abi): New function.
9482 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9483 support for that ABI has been built in, then call the appropriate
9484 configuration routine. Use gdbarch_num_regs() to get the number
9485 of registers.
9486 (arm_dump_tdep): New function.
9487 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9488 place-holder functions.
9489 (_initialize_arm_tdep): Register them.
9490 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9491
9492 * armnbsd-tdep.c: New file.
9493 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9494 * config/arm/nbsd.mt (TDEPFILES): Add it.
9495 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9496
9497 * armnbsd-nat.c: Include regcache.h.
9498 * Makefile.in (armnbsd-nat.o): Update dependency list.
9499
9500 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9501
ad68be46
DJ
95022002-02-14 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * gdbserver/Makefile.in: Fix typos in target rules.
9505
003d6d1d
DJ
95062002-02-14 Daniel Jacobowitz <drow@mvista.com>
9507
aaa38bb5 9508 Fix part of PR gdb/267.
003d6d1d
DJ
9509 * linespec.c (find_methods): Handle constructors specially for now.
9510
6b230f1b
CV
95112002-02-14 Corinna Vinschen <vinschen@redhat.com>
9512
9513 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9514 handling.
9515 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9516 standard_coerce_float_to_double().
9517
1ea98d12
CF
95182002-02-14 Christopher Faylor <cgf@redhat.com>
9519
9520 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9521 GDBINIT_FILENAME.
9522
dd47e6fd
EZ
95232002-02-14 Elena Zannoni <ezannoni@redhat.com>
9524
9525 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9526 find_variant_by_name, because it confuses the multiarch
9527 framework. Return NULL if there isn't an architecture with the
9528 user supplied name, instead of forcing a different one without
9529 recording the change with the multiarch machinery.
9530 (find_variant_by_name): Delete.
9531
d7e39b9e
PS
95322002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9533
9534 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9535 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9536
76e42a4f
MH
95372002-02-13 Martin M. Hunt <hunt@redhat.com>
9538
aaa38bb5 9539 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9540 print_frame_info_listing_hook, set current_source_symtab.
9541
0a30fbc4
DJ
95422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9545 and remove unused $(INCLUDE_DIR).
9546 Add regcache.c to OBS.
9547 Add generated register protocol files to clean target.
9548 Update dependencies for new objects, obsolete old target code.
9549
9550 * gdbserver/linux-low.c: Remove all platform-specific code to
9551 new files. Remove various dead code. Update to use regcache
9552 functionality.
9553 * gdbserver/remote-utils.c (fromhex): Add return statement
9554 to quiet warning.
9555 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9556 constant.
9557 (input_interrupt): Add integer parameter to match prototype
9558 of a signal handler.
9559 (outreg): Use register_data ().
9560 (prepare_resume_reply): Use gdbserver_expedite_regs.
9561 * gdbserver/server.c (main): Dynamically allocate own_buf because
9562 PBUFSIZ is no longer constant. Use registers_to_string () and
9563 registers_from_string ().
9564 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9565 for error (), fatal (), and warning (). Update definition of
9566 PBUFSIZ to use regcache functionality. Add include guard.
9567 * gdbserver/utils.c (fatal): Add missing ``const''.
9568 (warning): New function.
9569
9570 * regformats/regdat.sh: Include "regcache.h" in generated files.
9571 Provide init_registers () function.
9572 * regformats/regdef.h: Add prototype for set_register_cache ().
9573 Add include guard.
9574
9575 * gdbserver/linux-arm-low.c: New file.
9576 * gdbserver/linux-i386-low.c: New file.
9577 * gdbserver/linux-ia64-low.c: New file.
9578 * gdbserver/linux-m68k-low.c: New file.
9579 * gdbserver/linux-mips-low.c: New file.
9580 * gdbserver/linux-ppc-low.c: New file.
9581 * gdbserver/linux-sh-low.c: New file.
9582
9583 * gdbserver/regcache.c: New file.
9584 * gdbserver/regcache.h: New file.
9585
9586 * gdbserver/low-linux.c: Removed obsolete file.
9587
4cc841d0
DJ
95882002-02-14 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9591 * config/i386/linux.mt: Likewise.
9592 * config/ia64/linux.mt: Likewise.
9593 * config/m68k/linux.mh: Likewise.
9594 * config/powerpc/linux.mh: Likewise.
9595 * config/mips/linux.mt: Likewise.
9596
9597 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9598
9599 * config/i386/i386lynx.mh: Mark gdbserver variables
9600 as (currently) obsolete for this target.
9601 * config/i386/nbsd.mt: Likewise.
9602 * config/i386/nbsdelf.mt: Likewise.
9603 * config/m32r/m32r.mt: Likewise.
9604 * config/m68k/m68klynx.mh: Likewise.
9605 * config/m68k/nbsd.mt: Likewise.
9606 * config/m68k/sun3os4.mh: Likewise.
9607 * config/mips/vr5000.mt: Likewise.
9608 * config/ns32k/nbsd.mt: Likewise.
9609 * config/pa/hppabsd.mh: Likewise.
9610 * config/pa/hppaosf.mh: Likewise.
9611 * config/powerpc/nbsd.mt: Likewise.
9612 * config/rs6000/rs6000lynx.mh: Likewise.
9613 * config/s390/s390.mt: Likewise.
9614 * config/s390/s390x.mt: Likewise.
9615 * config/sparc/sparclynx.mh: Likewise.
9616 * config/sparc/sun4os4.mh: Likewise.
9617 * config/i386/x86-64linux.mt: Likewise.
9618 * config/sparc/linux.mh: Likewise.
9619
a85f51e7
DJ
96202002-02-14 Daniel Jacobowitz <drow@mvista.com>
9621
9622 * configure.tgt: Configure gdbserver only for known working
9623 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9624 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9625 SUBDIRS if it is configured. Update comment for ${nativefile}.
9626 * configure: Regenerated.
9627
65554fef
MS
96282002-02-13 Michael Snyder <msnyder@redhat.com>
9629
670a52db
MS
9630 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9631
6dbdc4a3
MS
9632 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9633 (default_gcore_mach): Just return 0, work around a problem in bfd.
9634 (default_gcore_target): OK to return NULL if exec_bfd is null.
9635 (make_mem_sec): Use a cast, avoid a warning.
9636
9637 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9638 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9639 sizeof (host pointer) != sizeof (target pointer)).
9640 (procfs_make_note_section): Avoid overflow in psargs string.
9641
aaa38bb5 9642 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9643 implementation return an error.
9644
96452002-02-13 Rodney Brown <rbrown64@csc.com.au>
9646
9647 * procfs.c (procfs_make_note_section): Provide a default definition
9648 (for alpha-dec-osf4.0f). Fix typos.
9649
1e4d76e7
EZ
96502002-02-13 Elena Zannoni <ezannoni@redhat.com>
9651
9652 * linux-proc.c: Add include of regcache.h.
9653 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9654
b6d1a1d5
AC
96552002-02-13 Andrew Cagney <ac131313@redhat.com>
9656
9657 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9658 * memattr.c (create_mem_region): Disallow useless empty region.
9659 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9660 non-overlapping.
b6d1a1d5 9661
6c6ea35e
MC
96622002-02-13 Michael Chastain <mec@shout.net>
9663
9664 * defs.h: Kill CONST_PTR.
9665 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9666 * c-lang.c (c_builtin_types): Likewise.
9667 * ch-lang.c (ch_builtin_types): Likewise.
9668 * f-lang.c (f_builtin_types): Likewise.
9669 * language.c (unknown_builtin_types): Likewise.
9670 * m2-lang.c (m2_builtin_types): Likewise.
9671 * p-lang.c (pascal_builtin_types): Likewise.
9672 * scm-lang.c (c_builtin_types): Likewise.
9673
3e0b0f48
KS
96742002-02-13 Keith Seitz <keiths@redhat.com>
9675
9676 * arm-tdep.h (arm_get_next_pc): Add declaration.
9677
67255d04
RE
96782002-02-13 Richard Earnshaw <rearnsha@arm.com>
9679
9680 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9681 with other related struct-returning functions.
9682 (arm_extract_struct_value_address): New function.
9683 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9684 initialize float_format, double_format and long_double_format as
9685 appropriate to the endianness of the target.
9686 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9687 (arm_use_struct_convention): Delete declaration.
9688 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9689
079777f6
KS
96902002-02-13 Keith Seitz <keiths@redhat.com>
9691
9692 * defs.h (core_addr_to_string_nz): New function.
9693
34588f23
MK
96942002-02-13 Mark Kettenis <kettenis@gnu.org>
9695
9696 Apply missing bits of 2002-01-15 patch.
9697 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9698 (fill_fpregset): Use i387_fill_fsave.
9699
49b563f9
KS
97002002-02-12 Keith Seitz <keiths@redhat.com>
9701
49b563f9
KS
9702 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9703 (core_addr_to_string_nz): New function.
9704
aeb98c60
RE
97052002-02-11 Richard Earnshaw <rearnsha@arm.com>
9706
9707 * arm-linux-nat.c: Really include arm-tdep.h.
9708 * config/arm/tm-linux.h (struct type, struct value): Declare.
9709
65554fef
MS
97102002-02-11 Michael Snyder <msnyder@redhat.com>
9711
9712 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9713 (gcore section): Ifdef for Solaris and Unixware only.
9714 (procfs_do_thread_registers): Unixware needs one lwpstatus
9715 per thread (not one prstatus or pstatus).
9716 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9717 not over all gdb threads. For unixware, call elfcore_write_pstatus
9718 once before iterating over threads.
9719
34e8f22d
RE
97202002-02-11 Richard Earnshaw <rearnsha@arm.com>
9721
9722 * arm-tdep.h: New file.
9723 * arm-tdep.c: Include arm-tdep.h.
9724 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9725 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9726 (arm_print_float_info, arm_register_type, convert_to_extended)
9727 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9728 (arm_extract_return_value, arm_register_name): Make static.
9729 (arm_software_single_step): Similarly. Fix types in declaration.
9730 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9731 (arm_store_return_value, arm_store_struct_return): New functions.
9732 (arm_gdbarch_init): Register the above functions. Also register
9733 call_dummy_start_offset, sizeof_call_dummy_words,
9734 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9735 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9736 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9737 prologue_cache.saved_regs here, rather than ...
9738 (_initialize_arm_tdep): ... here.
9739 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9740 declarations.
9741 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9742 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9743 (arm_print_float_info, arm_register_type, convert_to_extended)
9744 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9745 (arm_extract_return_value, arm_register_name): Delete declarations.
9746 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9747 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9748 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9749 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9750 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9751 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9752 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9753 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9754 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9755 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9756 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9757 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9758 interface.
9759 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9760 * remote-rdi.c remote-rdp.c: Likewise.
9761 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9762 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9763 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9764 definition.
9765
9766 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9767 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9768 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9769 from non-ARM_ prefixed definitions.
9770 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9771 all uses of above.
9772 * remote-rdi.c remote-rdp.c: Likewise.
9773 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9774
148754e5
RE
97752002-02-11 Richard Earnshaw <rearnsha@arm.com>
9776
9777 * arm-tdep.c (arm_frameless_function_invocation)
9778 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9779 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9780 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9781 (arm_pop_frame, arm_get_next_pc): Make static.
9782 (arm_gdbarch_init): Register above in gdbarch structure.
9783 (arm_read_fp): Renamed from arm_target_read_fp.
9784 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9785 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9786 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9787 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9788 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9789 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9790 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9791 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9792 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9793 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9794 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9795
434d2d4f
DJ
97962002-02-10 Daniel Jacobowitz <drow@mvista.com>
9797
9798 * symtab.c (compare_search_syms): New function.
9799 (sort_search_symbols): New function.
9800 (search_symbols): Sort symbols after searching rather than
9801 before.
9802
55241689
AC
98032002-02-10 Andrew Cagney <ac131313@redhat.com>
9804
9805 * NEWS: Linux -> GNU/Linux.
9806
028c194b
AC
98072002-02-10 Andrew Cagney <ac131313@redhat.com>
9808
9809 * gdbarch.sh: For for level one methods, disallow a definition
9810 when partially multi-arched. Add comments explaining rationale.
9811 * gdbarch.h: Re-generate.
9812
6acf50cd
AC
98132002-02-10 Andrew Cagney <ac131313@redhat.com>
9814
9815 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9816 multi-arch partial.
aaa38bb5 9817
50248794
AC
98182002-02-10 Andrew Cagney <ac131313@redhat.com>
9819
9820 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9821 field. Use diff -u.
9822 * gdbarch.c: Re-generate.
9823
c30e0066
AC
98242002-02-10 Andrew Cagney <ac131313@redhat.com>
9825
9b56c5f3 9826 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9827 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9828 partial.
9829
6e6d6484
AC
98302002-02-10 Andrew Cagney <ac131313@redhat.com>
9831
9832 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9833 multi-arch partial.
9834 (PUSH_ARGUMENTS): Switch to using predefault.
9835 * gdbarch.c: Regenerate.
9836
c203844d
AC
98372002-02-10 Andrew Cagney <ac131313@redhat.com>
9838
9839 * valops.c (PUSH_ARGUMENTS): Delete definition.
9840 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9841 partial. Default to default_push_arguments.
9842 * gdbarch.h, gdbarch.c: Regenerate.
9843
b5a2688f
AC
98442002-02-09 Andrew Cagney <ac131313@redhat.com>
9845
9846 * defs.h (throw_exception): Rename return_to_top_level. Update
9847 comments.
9848 * utils.c (error_stream, internal_verror, quit): Ditto.
9849 * top.c (throw_exception, catcher): Ditto.
9850 * sparclet-rom.c (sparclet_load): Ditto.
9851 * remote.c (interrupt_query, minitelnet): Ditto.
9852 * remote-sds.c (interrupt_query): Ditto.
9853 * remote-mips.c (mips_error, mips_kill): Ditto.
9854 * ocd.c (interrupt_query): Ditto.
9855 * monitor.c (monitor_interrupt_query): Ditto.
9856 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9857 * target.h: Update comment.
aaa38bb5 9858
b5a2688f 9859 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9860
2fa5c1e0
AC
98612002-02-09 Andrew Cagney <ac131313@redhat.com>
9862
9863 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9864 default_double_format.
9865 * gdbarch.h, gdbarch.c: Re-generate.
9866 * findvar.c (floatformat_unknown): Delete variable definition.
9867 * doublest.h (floatformat_unknown): Delete variable declaration.
9868
da966255
JB
98692002-02-09 Jim Blandy <jimb@redhat.com>
9870
9871 * stabsread.c (read_type): Add code to parse Sun's syntax for
9872 prototyped function types.
9873
123a4891
AC
98742002-02-09 Andrew Cagney <ac131313@redhat.com>
9875
9876 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9877 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9878
fb39c8f3
PS
98792002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9880
9881 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9882 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9883 now _initialize_xcoffsolib gets called again and overrides the
9884 commands from solib.c in a native configuration.
9885
0b87a11d
MK
98862002-02-09 Mark Kettenis <kettenis@gnu.org>
9887
9888 * doublest.c (store_typed_floating): Don't try to return a value.
9889 Fixes PR gdb/290.
9890
bdc2fc72
JB
98912002-02-08 Jim Blandy <jimb@redhat.com>
9892
9893 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9894 is prototyped and has no arguments, print its argument list as
9895 `(void)'.
9896
da69bbcf
CD
98972002-02-08 Chris Demetriou <cgd@broadcom.com>
9898
9899 * MAINTAINERS (write-after-approval): Add myself.
9900 (paper-trail): I've escaped!
aaa38bb5 9901
b69571f5
CF
99022002-02-08 Christopher Faylor <cgf@redhat.com>
9903
9904 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9905 changes.
9906 (_initialize_check_for_gdb_ini): Ditto.
9907
f6871398
MH
99082002-02-08 Martin M. Hunt <hunt@redhat.com>
9909
9910 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9911 xaprintf -> xasprintf.
9912
4e52d31c
PM
99132002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9914
9915 * win32-nat.c: Remove use of printf and sprintf functions.
9916
39bbf761
RE
99172002-02-08 Richard Earnshaw <rearnsha@arm.com>
9918
9919 * arm-tdep.c (arm_frame_chain_valid): Make static.
9920 (arm_push_arguments): Likewise.
9921 (arm_gdbarch_init): New function.
9922 (_initialize_arm_tdep): Call it.
9923 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9924 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9925 (FRAME_CHAIN_VALID): Delete.
9926 (arm_frame_chain_valid): Delete declaration.
9927 (PUSH_ARGUMENTS): Delete.
9928 (arm_push_arguments): Delete declaration.
9929 (CALL_DUMMY_P): Delete.
9930
9c9532c9
CV
99312002-02-08 Andrew Cagney <ac131313@redhat.com>
9932 Corinna Vinschen <vinschen@redhat.com>
9933
9934 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9935 on builtin float types.
9936
4e8f7a8b
DJ
99372002-02-08 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * utils.c: Include <curses.h> before "bfd.h".
9940 * tui/tui-hooks.c: Likewise.
9941 * tui/tui.c: Likewise.
9942 * tui/tuiCommand.c: Likewise.
9943 * tui/tuiData.c: Likewise.
9944 * tui/tuiDataWin.c: Likewise.
9945 * tui/tuiDisassem.c: Likewise.
9946 * tui/tuiGeneralWin.c: Likewise.
9947 * tui/tuiIO.c: Likewise.
9948 * tui/tuiLayout.c: Likewise.
9949 * tui/tuiRegs.c: Likewise.
9950 * tui/tuiSource.c: Likewise.
9951 * tui/tuiSourceWin.c: Likewise.
9952 * tui/tuiStack.c: Likewise.
9953 * tui/tuiWin.c: Likewise.
9954
cd4bffcf
EZ
99552002-02-07 Elena Zannoni <ezannoni@redhat.com>
9956
9957 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9958 to include space for pseudoregs as well. Update loops accordingly.
9959 (sh_fp_frame_init_saved_regs): Ditto.
9960 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9961
26806ce2
AC
99622002-02-07 Andrew Cagney <ac131313@redhat.com>
9963
9964 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9965 Add Richard Earnshaw to Arm maintainers.
9966
97fdab62
AC
99672002-02-07 Andrew Cagney <ac131313@redhat.com>
9968
a6b98203
AC
9969 * defs.h (warning_begin): Delete declaration.
9970
97fdab62
AC
9971 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9972 Delete macro.
9973
78b29b40
MS
99742002-02-07 Michael Snyder <msnyder@redhat.com>
9975
aaa38bb5 9976 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9977 Logic bug, remove misplaced else.
9978
d8849953
KD
99792002-02-07 Klee Dienes <klee@apple.com>
9980
9981 * fork-inferior.c (fork_inferior): Add '!' to the list of
9982 characters that need to be quoted when building a string for the
9983 shell. Quote '!' specifically with a backslash, since CSH chokes
9984 when trying to evaluate "str!str".
aaa38bb5 9985
095778a0
NC
99862002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9987
9988 * rdi-share/host.h: Only provide a typedef for bool if it is not
9989 defined.
9990
1900040c
MS
99912002-02-04 Michael Snyder <msnyder@redhat.com>
9992
9993 * breakpoint.h (enum bptype): Add new overlay event bp type.
9994 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9995
1900040c
MS
9996 * breakpoint.c (create_internal_breakpoint): New function.
9997 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9998 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9999 (create_thread_event_breakpoint): Ditto.
10000 (create_solib_event_breakpoint): Ditto.
10001 (create_overlay_event_breakpoint): New function.
10002 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10003 (update_breakpoints_after_exec): Delete and re-initialize
10004 overlay event breakpoints after an exec. Add FIXME comment
10005 about longjmp breakpoint.
10006 (print_it_typical): Ignore overlay event breakpoints.
10007 (print_one_breakpoint): Ditto.
10008 (mention): Ditto.
10009 (bpstat_what): Do not stop for overlay event breakpoints.
10010 (delete_breakpoint): Don't delete overlay event breakpoints.
10011 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10012 (breakpoint_re_set): Re-create overlay event breakpoint.
10013
10014 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10015 (overlay_manual_command): Disable overlay breakpoints.
10016 (overlay_off_command): Disable overlay breakpoints.
10017
082fc60d
RE
100182002-02-06 Richard Earnshaw <rearnsha@arm.com>
10019
10020 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10021 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10022 to here from config/tm-arm.h.
10023 (coff_sym_is_thumb): Make static.
10024 (arm_elf_make_msymbol_special): New function.
10025 (arm_coff_make_msymbol_special): New function.
10026 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10027 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10028 (coff_sym_is_thumb): Delete declaration.
10029 (arm_elf_make_msymbol_special): Declare.
10030 (arm_coff_make_msymbol_special): Declare.
10031 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10032 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10033
039c5766
RE
100342002-02-06 Richard Earnshaw <rearnsha@arm.com>
10035
10036 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10037
100382002-02-06 Richard Earnshaw <rearnsha@arm.com>
10039
10040 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10041 * gdbarch.c gdbarch.h: Regenerate.
10042 * arch-utils.c (default_print_float_info): New function.
10043 * arch-utils.h (default_print_float_info): Prototype it.
10044 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10045 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10046 (PRINT_FLOAT_INFO): Document it.
10047
10048 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10049 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10050 (PRINT_FLOAT_INFO): Define.
10051
58fa08f0
PM
100522002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10053
aaa38bb5 10054 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10055 Add typecast to sprintf argument to suppress a warning.
10056
7393af7c
PM
100572002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10058
58fa08f0 10059 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10060 to allow easier handling of pass state.
10061 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10062 that gives exception name and address.
10063 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10064 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10065 exceptions added.
aaa38bb5
AJ
10066 (child_continue): Correctly report continue_status.
10067 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10068 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10069 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10070 the exception should be passed to debuggee or not.
10071
6af4589c
MS
100722002-02-05 Michael Snyder <msnyder@redhat.com>
10073
10074 * regcache.c (fetch_register): Call target_fetch_register
10075 only if we don't call FETCH_PSEUDO_REGISTER.
10076 (store_register): Call target_store_register only if we
10077 don't call STORE_PSEUDO_REGISTER.
10078
a2cf933a
EZ
100792002-02-05 Elena Zannoni <ezannoni@redhat.com>
10080
10081 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10082 ELF_MAKE_MSYMBOL_SPECIAL.
10083 * gdbarch.c, gdbarch.h: Regenerate.
10084 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10085 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10086 * elfread.c (elf_symtab_read): Compile use of
10087 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10088 multiarched.
10089 * coffread.c (coff_symtab_read): Ditto, for
10090 COFF_MAKE_MSYMBOL_SPECIAL.
10091
6bb7be43
JB
100922002-02-05 Jim Blandy <jimb@redhat.com>
10093
10094 * solib-svr4.c (svr4_truncate_ptr): New function.
10095 (svr4_relocate_section_addresses): Do the address arithmetic with
10096 the appropriate truncation for target addresses, even when
10097 CORE_ADDR is larger than a target address.
10098
e18651ec
DJ
100992002-02-05 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10102 to (int *).
10103
6b2725be
DJ
101042002-02-05 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10107 code.
10108
fca9e603
DJ
101092002-02-05 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10112
6c537a52
DJ
101132002-02-05 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * gdbserver/linux-low.c: Remove unused include files.
10116
d844cde6
DJ
101172002-02-05 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10120 (read_inferior_memory): Use it.
10121 (write_inferior_memory): Likewise.
10122
d07c63e7
DJ
101232002-02-05 Daniel Jacobowitz <drow@mvista.com>
10124
10125 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10126 grubbing through sys_errlist.
10127
da6d8c04
DJ
101282002-02-05 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10131
5b421780
PM
101322002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10133 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10134
9f60d481
AC
101352002-02-04 Andrew Cagney <ac131313@redhat.com>
10136
10137 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10138 (do_sfunc, set_cmd_sfunc): New functions.
10139
10140 * command.h (struct cmd_list_element): Add field func.
10141 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10142 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10143 * cli/cli-decode.h: Ditto.
10144
10145 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10146 (help_all, help_cmd_list): Ditto.
10147 (find_cmd, complete_on_cmdlist): Ditto.
10148 * top.c (execute_command): Ditto.
10149
10150 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10151 function.sfunc.
10152
10153 * infcmd.c (notice_args_read): Fix function signature.
10154
10155 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10156 * cli/cli-decode.c (add_set_cmd): Ditto.
10157 * utils.c (initialize_utils): Ditto.
10158 * maint.c (_initialize_maint_cmds): Ditto.
10159 * infrun.c (_initialize_infrun): Ditto.
10160 * demangle.c (_initialize_demangler): Ditto.
10161 * remote.c (add_packet_config_cmd): Ditto.
10162 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10163 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10164 * proc-api.c (_initialize_proc_api): Ditto.
10165 * kod.c (_initialize_kod): Ditto.
10166 * valprint.c (_initialize_valprint): Ditto.
10167 * top.c (init_main): Ditto.
10168 * infcmd.c (_initialize_infcmd): Ditto.
10169 * corefile.c (_initialize_core): Ditto.
10170 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10171 * arch-utils.c (initialize_current_architecture): Ditto.
10172 (_initialize_gdbarch_utils): Ditto.
10173 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10174
10175 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10176 * wince.c (_initialize_inftarg): Ditto.
10177 * symfile.c (_initialize_symfile): Ditto.
10178 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10179 * language.c (_initialize_language): Ditto.
10180 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10181
f9ba0717
MS
101822002-02-04 Michael Snyder <msnyder@redhat.com>
10183
10184 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10185
0c74b2a7
DJ
101862002-02-04 Daniel Jacobowitz <drow@mvista.com>
10187
10188 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10189 Add rules for building the register data files.
10190
c638789f
DJ
101912002-02-04 Daniel Jacobowitz <drow@mvista.com>
10192
10193 * regformats/regdat.sh: Add braces to the definition of
10194 expedite_regs_${arch}.
10195
db253027
DJ
101962002-02-04 Daniel Jacobowitz <drow@mvista.com>
10197
10198 * regformats/regdef.h (struct reg): Add comment describing the
10199 requirements for offset and size fields.
10200
206be19c
AS
102012002-02-04 Andreas Schwab <schwab@suse.de>
10202
10203 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10204 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10205
181c1381
RE
102062002-02-04 Richard Earnshaw <rearnsha@arm.com>
10207
10208 * gdbarch.sh (copyright): Update years in generated header.
10209 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10210 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10211 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10212 * dbxread.c: Likewise.
10213 * dwarfread.c: Likewise.
10214 * elfread.c: Likewise.
10215 * somread.c: Likewise.
10216
10217 * arm-tdep.c (arm_smash_text_address): New function.
10218 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10219
fa4ba8da
PM
102202002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10221
10222 Add support for hardware watchpoints on win32 native.
aaa38bb5 10223 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10224 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10225 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10226 of debug registers.
10227 (debug_registers_changed): New variable. Reflects when debug registers
10228 are changed and need to be written to inferior.
aaa38bb5 10229 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10230 was set, used when new threads are created.
10231 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10232 i386-nat code.
10233 (thread_rec): Set dr array if id is the thread of current_event .
10234 (child_continue, child_resume): Change the debug registers for all
10235 threads if debug_registers_changed.
10236 (child_add_thread): Change the debug registers if debug_registers_used.
10237 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10238 Link nm.h to new nm-cygwin.h file.
10239 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10240 of hardware registers.
10241
a73c86fb
AC
102422002-02-03 Andrew Cagney <ac131313@redhat.com>
10243
10244 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10245 Restore behavour broken by 2002-01-20 Andrew Cagney
10246 <ac131313@redhat.com> IEEE_FLOAT removal.
10247
acf5ed49
DJ
102482002-02-03 Daniel Jacobowitz <drow@mvista.com>
10249
10250 * c-valprint.c (c_val_print): Pass a proper valaddr to
10251 cp_print_class_method.
10252 * valops.c (search_struct_method): If there is only one method
10253 and args is NULL, return that method.
10254
493d28d5
DJ
102552002-02-03 Daniel Jacobowitz <drow@mvista.com>
10256
10257 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10258 accessing tag_name directly.
10259
7495dfdb
DJ
102602002-02-03 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10263 of accessing tag_name directly.
10264
dd6bda65
DJ
102652002-02-03 Daniel Jacobowitz <drow@mvista.com>
10266
10267 PR gdb/280
10268 * gdbtypes.c (replace_type): New function.
10269 * gdbtypes.h (replace_type): Add prototype.
10270 * stabsread.c (read_type): Use replace_type.
10271
88fe217c
RE
102722002-02-03 Richard Earnshaw <rearnsha@arm.com>
10273
10274 * Makefile.in (memattr.o): Add missing dependencies rule.
10275
e5d66720
PS
102762002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10277
10278 * breakpoint.c (break_at_finish_command): Really export.
10279 (break_at_finish_at_depth_command): Ditto.
10280 (tbreak_at_finish_command): Ditto.
10281 * hppa-tdep.c: Include completer.h.
10282 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10283 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10284
fffee0be
AC
102852002-02-01 Andrew Cagney <ac131313@redhat.com>
10286
10287 * utils.c (do_write): New function.
10288 (error_stream): Rewrite combining the code from error_begin and
10289 verror.
10290 (verror): Rewrite using error_stream.
10291 (error_begin): Delete function.
10292
255e7dbf
AC
102932002-02-01 Andrew Cagney <ac131313@redhat.com>
10294
10295 * utils.c (error_begin): Make static.
10296 * defs.h (error_begin): Delete declaration.
10297
10298 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10299 (decode_line_1): Use cplusplus_error instead of error_begin,
10300 cplusplus_hint and return_to_top_level.
10301 * coffread.c (coff_symfile_read): Use error instead of error_begin
10302 and return_to_top_level.
10303 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10304
ddfe3c15
AC
103052002-02-01 Andrew Cagney <ac131313@redhat.com>
10306
10307 * language.h (type_error, range_error): Make string parameter
10308 constant.
10309 * language.c (warning_pre_print): Delete extern declaration.
10310 * dwarfread.c (warning_pre_print): Ditto.
10311 * language.c (type_error, range_error): Rewrite to use verror and
10312 vwarning instead of warning_begin.
10313
03ac34d5
MS
103142002-02-01 Michael Snyder <msnyder@redhat.com>
10315
261c4ca2
MS
10316 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10317 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10318
e00d1dc8
AC
103192002-02-01 Andrew Cagney <ac131313@redhat.com>
10320
10321 * command.h (NO_FUNCTION): Delete macro.
10322 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10323 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10324 * tracepoint.c (_initialize_tracepoint): Ditto.
10325 * cli/cli-decode.c (add_set_cmd): Ditto.
10326 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10327
76b79d6e
DJ
103282002-02-01 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10331 Update ``this'' pointer when calling virtual functions.
10332
799f9e91
MS
103332002-02-01 Michael Snyder <msnyder@redhat.com>
10334
c7bd442c 10335 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10336 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10337
3cf384d4
DJ
103382002-02-01 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * regformats/reg-arm.dat: New file.
10341 * regformats/reg-i386.dat: New file.
10342 * regformats/reg-ia64.dat: New file.
10343 * regformats/reg-m68k.dat: New file.
10344 * regformats/reg-mips.dat: New file.
10345 * regformats/reg-ppc.dat: New file.
10346 * regformats/reg-sh.dat: New file.
10347 * regformats/regdef.h: New file.
10348 * regformats/regdat.sh: New file.
10349
0defa245
RE
103502002-02-01 Richard Earnshaw <reanrsha@arm.com>
10351
10352 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10353 (arm_frame_args_address, arm_frame_locals_address): New functions.
10354 (arm_frame_num_args): New function.
10355 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10356 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10357 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10358
405f26e6
MS
103592002-01-31 Michael Snyder <msnyder@redhat.com>
10360
502fd408
MS
10361 * breakpoint.c (break_at_finish_command): Export.
10362 (break_at_finish_at_depth_command): Export.
10363 (tbreak_at_finish_command): Export.
10364 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10365 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10366 "tbreak" commands, which are HPPA specific.
10367
7d35e135
MS
10368 * printcmd.c (disassemble_command): Remove an ancient
10369 artifact of an old merge.
10370
aaa38bb5 10371 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10372 Define enum constant values for overlay mode.
10373 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10374 (overlay_is_mapped, overlay_auto_command,
10375 overlay_manual_command): Ditto.
d874f1e2 10376
aaa38bb5
AJ
10377 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10378 breakpoint_here_p, breakpoint_inserted_here_p,
10379 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10380 describe_other_breakpoints, check_duplicates, clear_command):
10381 Coding standard fixes.
10382
8add0441 10383 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10384 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10385 code: check bfd SEC_READONLY flag for section.
10386
e351066e
AC
103872002-01-31 Andrew Cagney <ac131313@redhat.com>
10388
7d35e135 10389 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10390
8a48e967
DJ
103912002-01-30 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10394 data symbols, since we search based on textlow and texthigh.
10395 (find_pc_sect_symtab): Likewise.
10396
f5a96129
AC
103972002-01-30 Andrew Cagney <ac131313@redhat.com>
10398
10399 * defs.h (vwarning): Declare.
f5a96129
AC
10400 * utils.c (vwarning): New function.
10401 (warning): Call vwarning.
10402 (warning_begin): Delete function.
10403
10404 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10405 the warning message.
10406 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10407 warning_begin.
10408
cefd4ef5
MS
104092002-01-30 Michael Snyder <msnyder@redhat.com>
10410
1a703748
MS
10411 * NEWS: Mention "set trust-readonly-sections" command.
10412 Mention generate-core-file command.
cefd4ef5 10413
3a11626d
MS
104142002-01-15 Michael Snyder <msnyder@redhat.com>
10415
10416 * target.c: New command, "set trust-readonly-sections on".
10417 (do_xfer_memory): Honor the suggestion to trust readonly sections
10418 by reading them from the object file instead of from the target.
10419 (initialize_targets): Register command "set trust-readonly-sections".
10420
d1c7e53b
AC
104212002-01-29 Andrew Cagney <ac131313@redhat.com>
10422
10423 * parse.c (target_map_name_to_register): Simplify, search regs and
10424 pseudo-regs using a single loop.
10425
e2c9a72c
AC
104262002-01-30 Andrew Cagney <ac131313@redhat.com>
10427
10428 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10429
69824b4e
MK
104302002-01-15 Rodney Brown <rbrown64@csc.com.au>
10431
10432 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10433 * config/i386/i386v42mp.mh: Add i387-nat.o .
10434 * i386v4-nat.c: Include i387-nat.h.
10435 (supply_fpregset): Use i387_supply_fsave.
10436 (fill_fpregset): Use i387_fill_fsave.
10437
6eb69eab
RE
104382002-01-30 Richard Earnshaw <rearnsha@arm.com>
10439
10440 * arm-tdep.c (arm_call_dummy_words): Define.
10441 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10442 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10443 (CALL_DUMMY_WORDS): Define.
10444 (arm_call_dummy_words): Declare.
10445 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10446 (arm_linux_call_dummy_words): Declare.
10447
9852326a
AS
104482002-01-30 Andreas Schwab <schwab@suse.de>
10449
10450 * m68klinux-nat.c: Fix last change to use regcache_collect
10451 instead of referencing registers[] directly.
10452
977a3030
AC
104532002-01-29 Andrew Cagney <ac131313@redhat.com>
10454
10455 * parse.c (target_map_name_to_register): Delete code wrapped in
10456 #ifdef REGISTER_NAME_ALIAS_HOOK.
10457
2076c72b
MS
104582002-01-28 Michael Snyder <msnyder@redhat.com>
10459
10460 * regcache.c (legacy_read_register_gen): Need to be able to
10461 read pseudo-register as well as real register.
10462 (legacy_write_register_gen): Ditto.
10463
8fcc723b
AC
104642002-01-28 Andrew Cagney <ac131313@redhat.com>
10465
10466 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10467 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10468 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10469 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10470 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10471 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10472 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10473 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10474 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10475 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10476 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10477 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10478 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10479 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10480 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10481 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10482 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10483 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10484 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10485 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10486
afe64c1a
AC
104872002-01-28 Andrew Cagney <ac131313@redhat.com>
10488
10489 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10490 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10491 (initialize_current_architecture): Update target_byte_order using
10492 information from BFD.
aaa38bb5 10493 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10494 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10495
75bc7ddf
AC
104962002-01-28 Andrew Cagney <ac131313@redhat.com>
10497
10498 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10499 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10500
10501 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10502 #ifdef INVALID_FLOAT.
10503 * infcmd.c (do_registers_info): Ditto.
10504 * values.c (unpack_double): Ditto. Add comment.
10505
10506 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10507 already commented out.
10508
0280a90a
AS
105092002-01-26 Andreas Schwab <schwab@suse.de>
10510
10511 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10512 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10513 registers and add support for PTRACE_GETREGS.
10514
7072a954
AC
105152002-01-24 Andrew Cagney <ac131313@redhat.com>
10516
10517 GDB 5.1.1 released from 5.1 branch.
10518 * NEWS: Add 5.1.1 news.
10519 * README: Sync with 5.1 branch.
10520
86f902e0
FF
105212002-01-23 Fred Fish <fnf@redhat.com>
10522
10523 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10524 stabstring on initial malloc. Reallocing will copy it for us,
10525 if necessary.
10526
8af51c36
EZ
105272002-01-23 Elena Zannoni <ezannoni@redhat.com>
10528
aaa38bb5 10529 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10530 (HFILES_NO_SRCDIR): Remove hpread.h.
10531 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10532 (hpread.o): Update dependencies.
10533 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10534
10535 * hp-psymtab-read.c: Remove file.
10536 * hp-symtab-read.c: Remove file.
10537 * hpread.h: Remove file.
10538
10539 * hpread.c: Merge all contents of hp-psymtab-read.c,
10540 hp-symtab-read.c and hpread.h into this file, as it was prior to
10541 January 1999.
10542
10543 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10544 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10545 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10546 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10547
dc5cfeb6
EZ
105482002-01-23 Elena Zannoni <ezannoni@redhat.com>
10549
10550 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10551 fill_gregset): Call gdbarch_tdep() just once, assign result to
10552 variable and use that, instead of calling the function several
10553 times.
10554
ea87b71b
AO
105552002-01-24 Alexandre Oliva <aoliva@redhat.com>
10556
10557 * configure.host: Accept sparcv9 as alias for sparc64.
10558 * configure.tgt: Likewise.
10559
13fc0c2f
KB
105602002-01-22 Kevin Buettner <kevinb@redhat.com>
10561
10562 * solib-aix5.c (build_so_list_from_mapfile)
10563 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10564 arguments is not reversed.
10565 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10566 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10567
7bd872fe
EZ
105682002-01-22 Elena Zannoni <ezannoni@redhat.com>
10569
10570 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10571 modified version of obsolete sh_fetch_pseudo_register.
10572 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10573 (sh4_register_read): New function.
10574 (sh_pseudo_register_write): New function. Renamed and modified
10575 version of obsolete sh_store_pseudo_register.
10576 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10577 (sh4_register_write): New function.
10578 (sh_gdbarch_init): Remove setting of gdbarch function
10579 fetch_pseudo_register and store_pseudo_register. Remove setting of
10580 register_convert_to_raw, register_convert_to_virtual,
10581 register_convertible.
10582 (sh_sh4_register_convertible): Delete. No longer needed. All is
10583 taken care by architecture specific functions
10584 register_read/register_write.
10585 (sh_sh4_register_convert_to_virtual): Make static.
10586 (sh_sh4_register_convert_to_raw): Ditto.
10587
069e84fd
AC
105882002-01-22 Andrew Cagney <ac131313@redhat.com>
10589
10590 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10591 (floatformat_is_nan, floatformat_mantissa): Ditto.
10592
10593 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10594 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10595 builtin_type_ieee_double_little,
10596 builtin_type_ieee_double_littlebyte_bigword,
10597 builtin_type_m68881_ext, builtin_type_i960_ext,
10598 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10599 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10600 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10601 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10602
211a4f69
CV
106032002-01-22 Corinna Vinschen <vinschen@redhat.com>
10604
10605 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10606 parameter. Set frameless flag if it exists and depended of
10607 whether the scanned function is frameless or not.
10608 (xstormy16_skip_prologue): If function is frameless, return
10609 result of xstormy16_scan_prologue().
10610 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10611 call.
10612
f81353e4
EZ
106132002-01-21 Elena Zannoni <ezannoni@redhat.com>
10614
10615 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10616 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10617 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10618 sh_sh4_register_byte, sh_sh4_register_raw_size,
10619 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10620 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10621 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10622 sh_store_pseudo_register, sh_do_pseudo_register): Call
10623 gdbarch_tdep() just once, assign result to variable and use that,
10624 instead of calling the function several times.
10625
63c73a17
MK
106262002-01-20 Mark Kettenis <kettenis@gnu.org>
10627
10628 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10629 macros instead of LAST_FPU_CTRL_REGNUM.
10630 (store_register): Likewise.
10631
39ad761d
JB
106322002-01-21 Jim Blandy <jimb@redhat.com>
10633
10634 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10635 is up-to-date before running the program, not just when a program
10636 exits.
10637
3d74b771
FF
106382002-01-21 Fred Fish <fnf@redhat.com>
10639
10640 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10641 when we have found all instructions we are looking for.
10642
966fbf70
RE
106432002-01-21 Richard Earnshaw <rearnsha@arm.com>
10644
10645 * arm-tdep.c (arm_register_name): New function.
10646 (arm_registers_names): Make static.
10647 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10648 (arm_register_name): Declare.
10649 (REGISTER_NAME): Use it.
10650
c3b4394c
RE
106512002-01-21 Richard Earnshaw <rearnsha@arm.com>
10652 Kevin Buettner <kevinb@redhat.com>
10653
10654 Convert arm targets to new FRAME interface.
10655 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10656 (arm_frame_find_save_regs): Delete.
10657 (arm_frame_init_saved_regs): New.
10658 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10659 Allocate extra_info as required. Convert all uses of fsr.regs
10660 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10661 to use extra_info.
10662 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10663 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10664 (check_prologue_cache, save_prologue_cache): Likewise.
10665 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10666 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10667 (FRAME_FIND_SAVED_REGS): Delete.
10668 (arm_frame_find_saved_regs): Delete prototype.
10669 (arm_frame_init_saved_regs): New prototype.
10670 (FRAME_INIT_SAVED_REGS): Define.
10671
61d99182
AC
106722002-01-20 Andrew Cagney <ac131313@redhat.com>
10673
10674 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10675
6aaea291
AC
106762002-01-20 Andrew Cagney <ac131313@redhat.com>
10677
10678 From Jeff Law <law@redhat.com>:
10679 * infttrace.c: Include <sys/pstat.h>.
10680 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10681 exec file if the ttrace equivalent fails.
10682
15f698d2
AC
106832002-01-20 Andrew Cagney <ac131313@redhat.com>
10684
10685 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10686 (closeLogFile): Ditto.
10687
f86ddd7c
MC
106882002-01-20 Michael Chastain <mec@shout.net>
10689
10690 * top.c (print_gdb_version): Bump copyright year to 2002.
10691
904507ce
AC
106922002-01-20 Andrew Cagney <ac131313@redhat.com>
10693
10694 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10695 Zannoni and Eli Zaretskii.
10696
d7f0b9ce
DJ
106972002-01-20 Daniel Jacobowitz <drow@mvista.com>
10698
10699 * buildsym.c: Update copyright years.
10700 * c-typeprint.c: Likewise.
10701 * dwarf2read.c: Likewise.
10702 * f-typeprint.c: Likewise.
10703 * gdbtypes.c: Likewise.
10704 * gdbtypes.h: Likewise.
10705 * hp-symtab-read.c: Likewise.
10706 * hpread.c: Likewise.
10707 * mdebugread.c: Likewise.
10708 * p-typeprint.c: Likewise.
10709
3fd3d7d2
AC
107102002-01-20 Andrew Cagney <ac131313@redhat.com>
10711
10712 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10713 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10714 byte-order selectable.
10715 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10716 * arch-utils.c: Ditto.
10717 (set_endian): Ditto.
10718 (set_endian_from_file): Ditto.
10719 * gdbserver/low-sim.c (create_inferior): Ditto.
10720 * gdbarch.sh: Ditto.
10721 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10722 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10723 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10724 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10725 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10726 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10727 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10728 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10729 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10730 macro definition.
10731 * config/mips/tm-wince.h: Remove #undef of macro
10732 TARGET_BYTE_ORDER_SELECTABLE.
10733 * config/sh/tm-wince.h: Ditto.
10734
b02dede2
DJ
107352002-01-20 Daniel Jacobowitz <drow@mvista.com>
10736
10737 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10738 member function fields. Add accessor macro
10739 TYPE_FN_FIELD_ARTIFICIAL.
10740 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10741 * c-typeprint.c (c_type_print_base): Skip artificial member
10742 functions.
10743
c3643761
DJ
107442002-01-20 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * f-typeprint.c: Delete unused function f_type_print_args.
10747 * p-typeprint.c: Delete unused function pascal_type_print_args.
10748
8176bb6d
DJ
107492002-01-20 Daniel Jacobowitz <drow@mvista.com>
10750
10751 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10752 comment. Add ``artificial'' to ``union field_location''.
10753
10754 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10755
10756 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10757 * mdebugread.c (parse_symbol): Likewise.
10758 * stabsread.c (define_symbol): Likewise.
10759 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10760 initializing TYPE_FIELD_BITPOS to n (obsolete).
10761 (hpread_doc_function_type): Likewise.
10762 * hpread.c (hpread_function_type): Likewise.
10763
7fd60527
AC
107642002-01-20 Andrew Cagney <ac131313@redhat.com>
10765
10766 * configure.in (host_makefile_frag): Only require a host makefile
10767 fragment when a native build.
10768 * configure: Re-generate.
10769
c2f05ac9
AC
107702002-01-20 Andrew Cagney <ac131313@redhat.com>
10771
10772 * doublest.h (floatformat_from_type): Declare.
10773 * doublest.c (floatformat_from_type): New function.
10774 (convert_typed_floating): Use.
10775
10776 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10777 call to function floatformat_from_type.
10778
10779 * gdbarch.sh (IEEE_FLOAT): Delete.
10780 * gdbarch.h, gdbarch.c: Re-generate.
10781 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10782 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10783 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10784 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10785 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10786 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10787 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10788 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10789 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10790 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10791 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10792 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10793
10794 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10795 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10796 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10797 * sh-tdep.c (sh_gdbarch_init): Ditto.
10798 * mips-tdep.c (mips_gdbarch_init): Ditto.
10799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10800 * cris-tdep.c (cris_gdbarch_init): Ditto.
10801
abf22e64
AJ
108022002-01-20 Jiri Smid <smid@suse.cz>
10803
10804 * configure.host, configure.tgt: Support x86-64.
10805 * NEWS: Note new target x86-64.
10806
b7c4cbf8
AJ
10807 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10808 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10809 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10810 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10811 x86-64-linux-nat.o): Fix dependencies.
10812
82600034
AC
108132002-01-19 Andrew Cagney <ac131313@redhat.com>
10814
10815 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10816 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10817 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10818 * config/sparc/xm-sun4os4.h: Delete file.
10819 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10820
bbe5c628
AC
108212002-01-19 Andrew Cagney <ac131313@redhat.com>
10822
10823 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10824 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10825 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10826 * config/i386/i386lynx.mh (XM_FILE): Delete.
10827 * config/rs6000/xm-rs6000ly.h: Delete file.
10828 * config/sparc/xm-sparclynx.h: Delete file.
10829 * config/m68k/xm-m68klynx.h: Delete file.
10830 * config/i386/xm-i386lynx.h: Delete file.
10831 * config/xm-lynx.h: Delete file.
10832 * config/djgpp/fnchange.lst: Update.
10833
f8453e34
JT
108342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10835
10836 * alpha-tdep.c (alpha_register_byte): New function.
10837 (alpha_register_raw_size): Ditto.
10838 (alpha_register_virtual_size): Ditto.
10839 (alpha_skip_prologue_internal): Renamed from
10840 alpha_skip_prologue.
10841 (alpha_skip_prologue): New version that calls
10842 alpha_skip_prologue_internal.
10843 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10844 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10845 second argument from alpha_skip_prologue.
10846 (REGISTER_BYTE): Use alpha_register_byte.
10847 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10848 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10849 (FRAMELESS_FUNCTION_INVOCATION): Use
10850 generic_frameless_function_invocation_not.
10851 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10852 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10853
52d9e613
AC
108542002-01-19 Andrew Cagney <ac131313@redhat.com>
10855
10856 * config/mips/xm-news-mips.h: Delete file.
10857 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10858
10859 * config/m88k/xm-m88k.h: Delete file.
10860 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10861 * config/m88k/xm-delta88v4.h: Ditto.
10862 * config/m88k/xm-delta88.h: Ditto.
10863
10864 * config/alpha/xm-fbsd.h: Delete file.
10865 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10866
10867 * config/sparc/xm-sparc.h: Delete file.
10868 * Makefile.in (xm-sun4os4.h): Delete dependency.
10869 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10870 * config/sparc/xm-sun4os4.h: Ditto.
10871 * config/sparc/xm-linux.h: Ditto.
10872
10873 * config/i386/xm-windows.h: Delete file.
10874
2d1b2124
AC
108752002-01-19 Andrew Cagney <ac131313@redhat.com>
10876
10877 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10878 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10879
ee1f65f0
JT
108802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10881
10882 * alpha-tdep.c (alpha_call_dummy_words): New.
10883 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10884 (CALL_DUMMY_P): Define.
10885 (CALL_DUMMY_WORDS): Define.
10886 (SIZEOF_CALL_DUMMY_WORDS): Define.
10887
98081e55
PB
108882002-01-19 Per Bothner <per@bothner.com>
10889
10890 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10891 isn't NULL, which can happen with some gcj-3.x-produced code.
10892
0d056799
JT
108932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10894
10895 * alpha-tdep.c (alpha_register_virtual_type): New function.
10896 (alpha_init_frame_pc_first): Ditto.
10897 (alpha_fix_call_dummy): Ditto.
10898 (alpha_store_struct_return): Ditto.
10899 (alpha_extract_struct_value_address): Ditto.
10900 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10901 alpha_register_virtual_type.
10902 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10903 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10904 alpha_extract_struct_value_address.
10905 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10906 (INIT_FRAME_PC): Use init_frame_pc_noop.
10907 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10908
4604bcad
MK
109092002-01-19 Mark Kettenis <kettenis@gnu.org>
10910
10911 * i386gnu-nat.c: Include "i386-tdep.h".
10912 (fetch_fpregs): Simplify code dealing with uninitialized floating
10913 point states such that it doesn't require FP7_REGNUM.
10914
140f9984
JT
109152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10916
abf22e64
AJ
10917 * alpha-tdep.c (frame_extra_info): New.
10918 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10919 frame->extra_info.
10920 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10921 (alpha_frame_saved_pc): Use frame->extra_info.
10922 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10923 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10924 (init_extra_frame_info): Rename to...
10925 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10926 (alpha_print_extra_frame_info): New function.
140f9984
JT
10927 (alpha_frame_locals_address): Ditto.
10928 (alpha_frame_args_address): Ditto.
abf22e64 10929 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10930 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10931 alpha_frame_args_address.
abf22e64 10932 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10933 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10934 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10935 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10936 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10937 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10938
d734c450
JT
109392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10940
10941 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10942 (alpha_cannot_fetch_register): Ditto.
10943 (alpha_cannot_store_register): Ditto.
10944 (alpha_register_convertible): Ditto.
10945 (alpha_use_struct_convention): Ditto.
10946 * config/alpha/tm-alpha.h: Update copyright years.
10947 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10948 (INNER_THAN): Use core_addr_lessthan.
10949 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10950 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10951 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10952 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10953 (FRAME_CHAIN): Remove unnecessary cast.
10954
b4ceaee6
AC
109552002-01-18 Andrew Cagney <ac131313@redhat.com>
10956
10957 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10958 obsolete.
10959
0a65a603
AC
109602002-01-18 Andrew Cagney <ac131313@redhat.com>
10961
10962 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10963 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10964 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10965 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10966 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10967 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10968 * x86-64-linux-nat.c: Ditto.
10969
636a6dfc
JT
109702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10971
abf22e64 10972 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10973 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10974 (REGISTER_NAME): Define.
10975
acceddb6
JT
109762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10977
10978 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10979
ec32e4be
JT
109802002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10981
10982 * alpha-tdep.c: Update copyright years.
10983 (alpha_next_pc): New function.
10984 (alpha_software_single_step): Ditto.
10985 * config/alpha/tm-alpha.h: Add prototype for
10986 alpha_software_single_step.
10987
e771a871
JT
109882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10989
10990 * alphabsd-nat.c: Update copyright years.
10991 (fill_gregset): Use regcache_collect.
10992 (fill_fpregset): Likewise.
10993 (fetch_inferior_registers): Only fetch integer registers
10994 if requested to do so.
10995 (store_inferior_registers): Only store integer registers
10996 if requested to do so.
10997
7708fa01
AC
109982002-01-17 Andrew Cagney <ac131313@redhat.com>
10999
11000 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11001 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11002 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11003 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11004 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11005 * config/arm/linux.mh (XDEPFILES): Delete.
11006 * config/arm/nbsd.mh (XDEPFILES): Delete.
11007 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11008 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11009 * config/i386/i386m3.mh (XDEPFILES): Delete.
11010 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11011 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11012 * config/i386/fbsd.mh (XDEPFILES): Delete.
11013 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11014 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11015 * config/i386/i386v4.mh (XDEPFILES): Delete.
11016 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11017 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11018 * config/i386/i386aix.mh (XDEPFILES): Delete.
11019 * config/i386/go32.mh (XDEPFILES): Delete.
11020 * config/i386/cygwin.mh (XDEPFILES): Delete.
11021 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11022 * config/i386/i386mach.mh (XDEPFILES): Delete.
11023 * config/i386/i386v32.mh (XDEPFILES): Delete.
11024 * config/i386/linux.mh (XDEPFILES): Delete.
11025 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11026 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11027 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11028 * config/i386/i386sco.mh (XDEPFILES): Delete.
11029 * config/i386/i386v.mh (XDEPFILES): Delete.
11030 * config/i386/nbsd.mh (XDEPFILES): Delete.
11031 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11032 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11033 * config/i386/symmetry.mh (XDEPFILES): Delete.
11034 * config/i386/obsd.mh (XDEPFILES): Delete.
11035 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11036 * config/ia64/linux.mh (XDEPFILES): Delete.
11037 * config/ia64/aix.mh (XDEPFILES): Delete.
11038 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11039 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11040 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11041 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11042 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11043 * config/m68k/linux.mh (XDEPFILES): Delete.
11044 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11045 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11046 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11047 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11048 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11049 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11050 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11051 * config/m88k/delta88.mh (XDEPFILES): Delete.
11052 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11053 * config/m88k/m88k.mh (XDEPFILES): Delete.
11054 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11055 * config/mips/linux.mh (XDEPFILES): Delete.
11056 * config/mips/irix6.mh (XDEPFILES): Delete.
11057 * config/mips/irix5.mh (XDEPFILES): Delete.
11058 * config/mips/irix4.mh (XDEPFILES): Delete.
11059 * config/mips/irix3.mh (XDEPFILES): Delete.
11060 * config/mips/decstation.mh (XDEPFILES): Delete.
11061 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11062 (NATDEPFILES): Move core-aout.o to here.
11063 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11064 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11065 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11066 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11067 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11068 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11069 * config/pa/hpux11.mh (XDEPFILES): Delete.
11070 * config/powerpc/aix.mh (XDEPFILES): Delete.
11071 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11072 * config/powerpc/linux.mh (XDEPFILES): Delete.
11073 * config/romp/rtbsd.mh: Rename XDEPFILES.
11074 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11075 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11076 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11077 * config/s390/s390.mh (XDEPFILES): Delete.
11078 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11079 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11080 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11081 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11082 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11083 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11084 * config/sparc/linux.mh (XDEPFILES): Delete.
11085 * config/vax/vaxult.mh (XDEPFILES): Delete.
11086 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11087 * Makefile.in (DEPFILES): Remove XDEPFILES.
11088
375fc983
AC
110892002-01-17 Andrew Cagney <ac131313@redhat.com>
11090
11091 * utils.c (internal_verror): Fix comments, default is yes not no.
11092 Update queries to match. Default to quit and dump core.
11093
8926118c
AC
110942002-01-17 Andrew Cagney <ac131313@redhat.com>
11095
11096 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11097 copyright.
11098 * defs.h, event-top.c, gdbcmd.h: Ditto.
11099 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11100 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11101 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11102 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11103 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11104 * mi/mi-main.c:Ditto.
11105
11106 * stack.c, symfile.c: Update copyright.
11107
45b7b345
DJ
111082002-01-17 Daniel Jacobowitz <drow@mvista.com>
11109
db728ff7
DJ
11110 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11111 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11112 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11113 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11114
db728ff7
DJ
111152002-01-17 Daniel Jacobowitz <drow@mvista.com>
11116
11117 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11118 * gdbserver/low-lynx.c (myattach): Likewise.
11119 * gdbserver/low-nbsd.c (myattach): Likewise.
11120 * gdbserver/low-sim.c (myattach): Likewise.
11121 * gdbserver/low-sparc.c (myattach): Likewise.
11122 * gdbserver/low-sun3.c (myattach): Likewise.
11123
11124 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11125
db728ff7 11126 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11127 (main): Handle "--attach".
11128
8de3c354
AC
111292002-01-16 Andrew Cagney <ac131313@redhat.com>
11130
11131 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11132 maintainer.
11133
b0129042
DJ
111342002-01-15 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * c-typeprint.c (is_type_conversion_operator): Add additional
11137 check for non-conversion operators.
11138
ba8679fb 111392002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11140
11141 * linux-proc.c: Add "info proc" command, a la procfs.c.
11142 (read_mapping): New function, abstract and re-use code.
11143 (linux_find_memory_regions): Use new func read_mapping.
11144 (linux_info_proc_cmd): New function, implement "info proc".
11145 (_initialize_linux_proc): Add new command "info proc".
11146
e4f9b4d5
MS
111472002-01-15 Michael Snyder <msnyder@redhat.com>
11148
11149 * symfile.c (generic_load): Use bfd_map_over_sections method
11150 instead of manipulating bfd structure members directly.
11151 (add_section_size_callback): New function, bfd sections callback
11152 used by generic_load.
11153 (load_sections_callback): New function, bfd sections callback
11154 used by generic_load.
11155
08cf96df
EZ
111562002-01-15 Elena Zannoni <ezannoni@redhat.com>
11157
abf22e64 11158 [Based on work by Jim Blandy]
08cf96df
EZ
11159 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11160 (builtin_type_vec128): Export.
11161 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11162 types.
11163 (builtin_type_vec128): New builtin type for 128 bit vector
11164 registers.
11165 (build_gdbtypes): Initialize builtin_type_v16qi and
11166 builtin_type_v8hi. Create the vec128 register builtin type
11167 structure.
11168 (build_builtin_type_vec128): New function.
abf22e64 11169 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11170 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11171 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11172 AltiVec register to new builtin type.
11173
d7242108
DJ
111742001-01-15 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11177 to make_cv_type.
11178
4ee3352d
AC
111792002-01-14 Andrew Cagney <ac131313@redhat.com>
11180
11181 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11182 CLEAN_UP_REGISTER_VALUE.
11183 * regcache.c (supply_register): Update only call.
11184
f015b2e7
AC
111852002-01-14 Andrew Cagney <ac131313@redhat.com>
11186
11187 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11188 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11189 a29k-*-vxworks* targets as obsolete.
11190
356ae49d
MS
111912002-01-14 Michael Snyder <msnyder@redhat.com>
11192
11193 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11194 until we can resolve portability issues.
11195 * gregset.h: Remove references to fpxregs.
11196 * gcore.c (gcore_command): Initialize note_sec to NULL.
11197
ade8f45e
AC
111982002-01-13 Andrew Cagney <ac131313@redhat.com>
11199
11200 * signals.c (target_signal_to_name): Rewrite. Only use
11201 signals[].name when in bounds and non-NULL.
abf22e64 11202
89c49e7a
AC
112032002-01-13 Andrew Cagney <ac131313@redhat.com>
11204
11205 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11206 * signals.c (target_signal_to_name): Verify that SIG is within the
11207 bounds of the signals array.
11208
4daa9f9f
AC
112092002-01-13 Andrew Cagney <ac131313@redhat.com>
11210
11211 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11212
ba4bbdcb
KS
112132002-01-13 Keith Seitz <keiths@redhat.com>
11214
11215 * stack.c (print_frame_info_base): Print the frame's pc
11216 only if when print_frame_info_listing_hook is not defined.
11217
575bbeb6
KS
112182002-01-13 Keith Seitz <keiths@redhat.com>
11219
11220 * varobj.c (varobj_set_value): Make sure that there were no
11221 errors evaluating the object before attempting to set its
11222 value.
11223 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11224 so this offset adjustment is no longer necessary.
11225 (create_child): Don't set the error flag if the child is
11226 a CPLUS_FAKE_CHILD.
11227 (value_of_child): If value_fetch_lazy fails, return NULL
11228 so that callers will be notified that an error occurred.
11229 (c_value_of_variable): Delay check of variable's validity
11230 until later. We actually want all structs and unions to have
11231 the value "{...}".
11232 Do not return "???" for variables which could not be evaluated.
11233 This error condition must be returned to the caller so that it
11234 can get the error condition from gdb.
11235 (cplus_name_of_child): Adjust index for vptr before figuring
11236 out the name of the child.
11237 (cplus_value_of_child): If a child's (real) parent is not valid,
11238 don't even bother trying to give a value for it. Just return
11239 an error. Change all instances in this function.
11240 (cplus_type_of_child): If our parent is one of the "fake"
11241 parents, we need to get at the type of the real parent, and
11242 derive the child's true type using this information.
11243
b76898ab
AC
112442002-01-13 Andrew Cagney <ac131313@redhat.com>
11245
11246 From 2002-01-09 John Marshall <johnm@falch.net>:
11247 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11248 sources.redhat.com, and tweak some related URLs which had
11249 suffered from linkrot.
11250
b6649e88
AC
112512002-01-13 Andrew Cagney <ac131313@redhat.com>
11252
11253 From Jeff law:
11254 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11255 structures passed in registers.
11256
82cc5033
EZ
112572002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11258
11259 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11260 white space which prevented compilation. Reported by DSK
11261 <dsk@student.unsw.edu.au>.
11262
ba5f2f8a
MS
112632002-01-11 Michael Snyder <msnyder@redhat.com>
11264
fbd35540
MS
11265 * symfile.c (build_section_addr_info_from_section_tab):
11266 Use bfd access method instead of manipulating bfd directly.
11267 (syms_from_objfile): Ditto.
11268 (simple_overlay_update_1): Ditto.
11269 (simple_overlay_update): Ditto.
11270 (generic_load): Ditto.
11271 (overlay_unmapped_address): FIXME comment, bfd access methods.
11272 (sections_overlap): FIXME comment, bfd access methods.
11273 (pc_in_mapped_range): FIXME comment, bfd access methods.
11274 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11275 (section_is_mapped): FIXME comment, bfd access methods.
11276 (section_is_overlay): FIXME comment, bfd access methods.
11277
ba5f2f8a
MS
11278 * symfile.c (generic_load): Whitespace and long line cleanups.
11279 Remove duplicate variable, change several local variables to
11280 more appropriate data types.
11281 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11282
17df2af6
AC
112832002-01-12 Andrew Cagney <ac131313@redhat.com>
11284
11285 From Peter Schauer:
11286 * language.c (longest_local_hex_string_custom): Use phex_nz to
11287 convert NUM to a hex string.
11288
ec920329
EZ
112892002-01-12 Elena Zannoni <ezannoni@redhat.com>
11290
11291 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11292 the function.
538a76d6 11293 Update Copyright year.
ec920329 11294
3abd2e01
AC
112952002-01-12 Andrew Cagney <ac131313@redhat.com>
11296
11297 * language.c (longest_raw_hex_string): Delete unused function.
11298
b21b22e0
PS
112992002-01-11 Petr Sorfa <petrs@caldera.com>
11300
11301 * MAINTAINERS (write-after-approval): Add myself.
11302 * dwarf2read.c (read_tag_string_type): Handling of
11303 DW_AT_byte_size.
11304 (read_tag_string_type): FORTRAN fix to prevent propagation of
11305 first string size.
11306 (set_cu_language): Handling of DW_LANG_Fortran95
11307
747fe712
RE
113082002-01-11 Richard Earnshaw <rearnsha@arm.com>
11309
11310 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11311 GETPID(inferior_ptid).
11312 (store_inferior_registers): Likewise.
11313
f1bea926
JM
113142002-01-10 Jason Merrill <jason@redhat.com>
11315
11316 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11317 Fix DW_OP_minus.
11318
ae940673
AC
113192002-01-10 Andrew Cagney <ac131313@redhat.com>
11320
11321 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11322 and bfd/elf32-sh-nbsd.c.
11323
00546b04
MS
113242002-01-10 Michael Snyder <msnyder@redhat.com>
11325
352ed7b4
MS
11326 * NEWS: Mention --pid and corefile/proc-id behavior change.
11327
c18be923
MS
11328 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11329 * gcore.c: Include cli/cli-decode.h instead of command.h.
11330
00546b04
MS
11331 * main.c (captured_main): Add new command line option "--pid".
11332 If the second command line argument (following the symbol-file)
11333 begins with a digit, try to attach to it before trying to open
11334 it as a corefile.
11335 (print_gdb_help): Document the "--pid" argument.
11336
db60ec62
EZ
113372002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11338
11339 * completer.c (command_completer): New function.
11340
11341 * completer.h <command_completer>: Add prototype.
11342
11343 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11344 completer for the "help" command.
11345
39c22d1a
JM
113462002-01-09 Jason Merrill <jason@redhat.com>
11347
11348 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11349
c564377f
MS
113502002-01-09 Michael Snyder <msnyder@redhat.com>
11351
975aec09
MS
11352 * i386-linux-nat.c (fill_fpxregset): Make global.
11353 (store_fpxregset): Ditto.
11354
db4a10fa
MS
11355 * gregset.h (gdb_fpxregset_t): Define.
11356 (supply_fpxregset): Prototype.
11357 (fill_fpxregset): Prototype.
11358
c564377f
MS
11359 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11360
c3d45d70
RE
113612002-01-09 Richard Earnshaw <rearnsha@arm.com>
11362
11363 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11364 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11365 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11366
fcc87af1
AC
113672002-01-09 Andrew Cagney <ac131313@redhat.com>
11368
11369 * MAINTAINERS: Update target maintainer rules so that any
11370 Maintainer can approve a tested patch for a maintenance-only
11371 target.
11372
dd96c05b
RE
113732002-01-09 Richard Earnshaw <rearnsha@arm.com>
11374
d4297db9 11375 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11376
d4297db9 11377 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11378 IN_SIGTRAMP.
11379
145fdc6e
MS
113802002-01-08 Michael Snyder <msnyder@redhat.com>
11381
11382 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11383 real name of the executable, rather than the /proc name.
11384
be4d1333
MS
113852002-01-03 Michael Snyder <msnyder@redhat.com>
11386
11387 Implement a "generate-core-file" command in gdb, save target state.
11388 * gcore.c: New file. Implement new command 'generate-core-file'.
11389 Save a corefile image of the current state of the inferior.
11390 * linux-proc.c: Add linux-specific code for saving corefiles.
11391 * target.h (struct target_ops): Add new target vectors for saving
11392 corefiles; to_find_memory_regions and to_make_corefile_notes.
11393 (target_find_memory_regions): New macro.
11394 (target_make_corefile_notes): New macro.
11395 * target.c (update_current_target): Inherit new target methods.
11396 (dummy_find_memory_regions): New place-holder method.
11397 (dummy_make_corefile_notes): New place-holder method.
11398 (init_dummy_target): Initialize new dummy target vectors.
11399 * exec.c (exec_set_find_memory_regions): New function.
11400 Allow the exec_ops vector for memory regions to be taken over.
11401 (exec_make_note_section): New function, target vector method.
11402 * defs.h (exec_set_find_memory_regions): Export prototype.
11403 * procfs.c (proc_find_memory_regions): New function, corefile method.
11404 (procfs_make_note_section): New function, corefile method.
11405 (init_procfs_ops): Set new target vector pointers.
11406 (find_memory_regions_callback): New function.
11407 (procfs_do_thread_registers): New function.
11408 (procfs_corefile_thread_callback): New function.
11409 * sol-thread.c (sol_find_memory_regions): New function.
11410 (sol_make_note_section): New function.
11411 (init_sol_thread_ops): Initialize new target vectors.
11412 * inftarg.c (inftarg_set_find_memory_regions): New function.
11413 Allow to_find_memory_regions vector to be taken over.
11414 (inftarg_set_make_corefile_notes): New function.
11415 Allow to_make_corefile_notes vector to be taken over.
11416 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11417 interface layer if not target_has_execution (may be a corefile).
11418 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11419 * config/sparc/sun4sol2.mh: Ditto.
11420 * config/alpha/alpha-linux.mh: Ditto.
11421 * config/arm/linux.mh: Ditto.
11422 * config/i386/x86-64linux.mh: Ditto.
11423 * config/ia64/linux.mh: Ditto.
11424 * config/m68k/linux.mh: Ditto.
11425 * config/mips/linux.mh: Ditto.
11426 * config/powerpc/linux.mh: Ditto.
11427 * config/sparc/linux.mh: Ditto.
11428
c6b92abd
MS
114292002-01-07 Michael Snyder <msnyder@redhat.com>
11430
11431 * arm-linux-nat.c: Remove references to regcache.c internal data
11432 (registers[] and register_valid[]).
11433
4b09dc8c
MS
114342002-01-07 Michael Snyder <msnyder@redhat.com>
11435
abf22e64
AJ
11436 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11437 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11438 symbol file and shlibs.
11439 * Makefile.in: Add rule for linux-proc.o.
11440 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11441 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11442 * config/arm/linux.mh: Ditto.
11443 * config/i386/linux.mh: Ditto.
11444 * config/i386/x86-64linux.mh: Ditto.
11445 * config/ia64/linux.mh: Ditto.
11446 * config/m68k/linux.mh: Ditto.
11447 * config/mips/linux.mh: Ditto.
11448 * config/powerpc/linux.mh: Ditto.
11449 * config/sparc/linux.mh: Ditto.
11450
c25b74ac
PM
114512002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11452
11453 * win32-nat.c: Add i386-tdep.h dependency.
11454
94cd915f
MS
114552002-01-07 Michael Snyder <msnyder@redhat.com>
11456
c7cccb76
MS
11457 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11458 instead of bfd_get_arch_size. Don't bail out just because
11459 there's no exec_bfd.
abf22e64 11460
34c0bd93
MS
11461 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11462 * p-valprint.c (pascal_object_print_value): Ditto.
11463 * somread.c (som_symtab_read): Ditto.
11464 * symfile.c (simple_free_overlay_region_table): Ditto.
11465 * valops.c (value_assign): Ditto.
11466
21c1c920
MS
11467 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11468 use tilde_expand and strerror for opening save-tracepoints file.
11469
5bbd998e
MS
11470 * thread-db.c (thread_db_new_objfile): Indendation fix.
11471
94cd915f
MS
11472 * infptrace.c (GDB_MAX_ALLOCA): New define.
11473 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11474 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11475 can be overridden with whatever value is appropriate to the host).
11476 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11477 alloca to allocate potentially large buffer.
11478 * rs6000-nat.c (child_xfer_memory): Ditto.
11479 * symm-nat.c (child_xfer_memory): Ditto.
11480 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11481
494e8a93
JSC
114822002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11483
11484 From Nick Clifton <nickc@redhat.com>
11485 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11486
d0e1d48e
MS
114872002-01-07 Michael Snyder <msnyder@redhat.com>
11488
abf22e64 11489 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11490 Don't use exec_bfd if it's NULL.
11491
290b2c7a
MK
114922002-01-06 Mark Kettenis <kettenis@gnu.org>
11493
abf22e64 11494 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11495
aef21287
AC
114962002-01-06 Andrew Cagney <ac131313@redhat.com>
11497
11498 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11499 * gnu-nat.c: Ditto.
11500
30efa627
AC
115012002-01-06 Andrew Cagney <ac131313@redhat.com>
11502
11503 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11504 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11505 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11506 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11507 z8k-coff have not been multi-arched. Update z8k-coff build
11508 status.
11509
9b4ff276
AC
115102002-01-06 Andrew Cagney <ac131313@redhat.com>
11511
11512 * MAINTAINERS: Mark a29k target as obsolete.
11513 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11514 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11515 comments.
11516 * NEWS: Note that a29k targets are obsolete.
11517 * a29k-tdep.c: Mark as obsolete.
11518 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11519 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11520 a29k-*-vxworks* targets as obsolete.
11521 * remote-adapt.c: Obsolete.
11522 * remote-eb.c: Obsolete.
11523 * remote-mm.c: Obsolete.
11524 * remote-udi.c: Obsolete.
11525 * config/a29k/a29k-udi.mt: Obsolete.
11526 * config/a29k/a29k.mt: Obsolete.
11527 * config/a29k/tm-a29k.h: Obsolete.
11528 * config/a29k/tm-vx29k.h: Obsolete.
11529 * config/a29k/vx29k.mt: Obsolete.
11530
a9011d31
AC
115312002-01-05 Andrew Cagney <ac131313@redhat.com>
11532
11533 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11534 with BFD_ENDIAN_BIG.
11535
9299404e
AC
115362002-01-05 Andrew Cagney <ac131313@redhat.com>
11537
11538 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11539 * configure, config.in: Re-generate.
11540 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11541 * defs.h: Do not include <endian.h>.
11542
7e89e357
JT
115432002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11544
11545 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11546 * config.in: Regenerate.
11547 * configure.in: Update copyright years.
11548 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11549 * configure: Regenerate.
11550 * i386bsd-nat.c: Update copyright years.
11551 (fill_gregset): Use regcache_collect.
11552 (fetch_inferior_registers): Only fetch integer registers
11553 if requested to do so. Add support for XMM registers
11554 using PT_GETXMMREGS.
11555 (store_inferior_registers): Only store integer registers
11556 if requested to do so. Add support for XMM registers
11557 using PT_SETXMMREGS.
11558 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11559 (store_inferior_registers): Remove.
11560 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11561 (fetch_elfcore_registers): New function.
11562 (i386nbsd_elfcore_fns): New.
11563 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11564 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11565 i386bsd-nat.o.
11566 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11567 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11568 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11569 * config/i386/tm-nbsd.h: Update copyright years.
11570 (HAVE_SSE_REGS): Define.
11571 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11572 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11573 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11574 (SIGCONTEXT_PC_OFFSET): Remove.
11575 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11576
a752853e
AC
115772002-01-05 Andrew Cagney <ac131313@redhat.com>
11578
11579 * configure.tgt: Remove powerpc-*-macos* target.
11580 * config/m68k/xm-mpw.h: Delete file.
11581 * config/xm-mpw.h: Delete file.
11582 * ser-mac.c: Delete file.
11583 * mpw-make.sed: Delete file.
11584 * mpw-config.in: Delete file.
11585 * mac-xdep.c: Delete file.
11586 * mac-gdb.r: Delete file.
11587 * mac-defs.h: Delete file.
11588 * mac-nat.c: Delete file.
11589 * config/powerpc/macos.mh: Delete file.
11590 * config/powerpc/macos.mt: Delete file.
11591 * config/powerpc/nm-macos.h: Delete file.
11592 * config/powerpc/tm-macos.h: Delete file.
11593 * source.c (openp, open_source_file): Remove obsolete code.
11594 * top.c (gdb_readline): Ditto.
11595 * utils.c (query): Ditto.
11596 * event-top.c (display_gdb_prompt): Ditto.
11597 * Makefile.in (ser-mac.o): Delete obsolete target.
11598 * NEWS: Update.
11599
d7449b42
AC
116002002-01-04 Andrew Cagney <ac131313@redhat.com>
11601
11602 * defs.h (BIG_ENDIAN): Delete macro definition.
11603 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11604 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11605 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11606 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11607 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11608 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11609 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11610 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11611 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11612 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11613 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11614 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11615 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11616 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11617 * gdbarch.c: Re-generate.
11618
356374e8
DJ
116192002-01-04 Daniel Jacobowitz <drow@mvista.com>
11620
11621 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11622 for core files.
11623
a2b8f8f8
JT
116242002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11625
11626 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11627
12466af9
AC
116282002-01-04 Andrew Cagney <ac131313@redhat.com>
11629
11630 * value.h (value_ptr): Delete typedef.
11631
3549ab40
JT
116322002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11633
11634 * i386nbsd-nat.c: Update copyright years.
11635 Include i386-tdep.h.
11636
fedbd091
EZ
116372002-01-04 Elena Zannoni <ezannoni@redhat.com>
11638
11639 * stabsread.c: Update copyright years.
11640
11641 From Debashis Mahata <debashis.mahata@wipro.com>:
11642 (read_struct_fields): Deal with Sun C compiler erroneous stab
11643 output for structs and unions.
fec8b34f 11644 Fix PR gdb/269.
fedbd091 11645
eb43544b
DJ
116462002-01-04 Daniel Jacobowitz <drow@mvista.com>
11647
11648 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11649 prototype.
11650
1514d34e
DJ
116512002-01-04 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * cp-abi.c: Fix whitespace.
11654 (baseclass_offset): New wrapper function.
11655 * cp-abi.h (baseclass_offset): Add prototype.
11656 (struct cp_abi_ops): Add baseclass_offset pointer.
11657
11658 * valops.c (vb_match): Move to...
11659 * gnu-v2-abi.c (vb_match): here.
11660 * valops.c (baseclass_offset): Move to...
11661 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11662
11663 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11664
11665 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11666 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11667 * hpacc-abi.c (init_hpacc_ops): Likewise.
11668
7f8c9282
DJ
116692002-01-04 Daniel Jacobowitz <drow@mvista.com>
11670
11671 * valops.c (find_overload_match): Accept obj as a
11672 reference parameter. Update it before returning.
11673 * value.h (find_overload_match): Update prototype.
11674 * eval.c (evaluate_subexp_standard): Pass object to
11675 find_overload_match by reference.
11676
f23631e4
AC
116772002-01-03 Andrew Cagney <ac131313@redhat.com>
11678
11679 * valarith.c: Replace value_ptr with struct value pointer. Remove
11680 register attribute from value declarations.
11681 * valops.c: Ditto.
11682 * value.h: Ditto.
11683 * scm-lang.c (scm_lookup_name): Ditto.
11684
79e10fab 116852002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11686
79e10fab
AC
11687 Abstract the functionality of iterating over mapped memory
11688 regions into a general purpose iterator function.
abf22e64 11689 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11690 iterator for memory sections.
11691 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11692 (solib_mappings_callback): New function, callback for above.
11693 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11694 (info_mappings_callback): New function, callback for above.
11695
11696 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11697
c5ad026a
MK
116982002-01-01 Mark Kettenis <kettenis@gnu.org>
11699
d2a7c97a
MK
11700 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11701 * i386-tdep.c: Include "elf-bfd.h".
11702 (process_note_abi_tag_sections): New function.
11703 (i386_gdbarch_init): Add code to recognize various OS/ABI
11704 combinations.
11705
c5ad026a
MK
11706 * maint.c (_initialize_maint_cmds): Add missing \ in
11707 string-literal.
11708
a1a5b71e 11709For older changes see ChangeLog-2001
c906108c
SS
11710\f
11711Local Variables:
11712mode: change-log
11713left-margin: 8
11714fill-column: 74
11715version-control: never
11716End:
This page took 1.149279 seconds and 4 git commands to generate.